Remove obsolete entries from .gitignore.
[chromium-blink-merge.git] / third_party / talloc / configure
blobc038976e386873e2de74e51c7e7dc195a2f16dab
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for talloc 2.0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME='talloc'
596 PACKAGE_TARNAME='talloc'
597 PACKAGE_VERSION='2.0.1'
598 PACKAGE_STRING='talloc 2.0.1'
599 PACKAGE_BUGREPORT=''
601 ac_unique_file="talloc.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='LTLIBOBJS
639 sharedbuilddir
640 DOC_TARGET
641 XSLTPROC
642 TALLOC_COMPAT1_MK
643 EXPORTSFILE
644 TALLOC_LIBS
645 TALLOC_CFLAGS
646 TALLOC_OBJ
647 tallocdir
648 SHLD_FLAGS
649 LD_SHLIB_DISALLOW_UNDEF_FLAG
650 LD_SHLIB_FLAGS
651 SHLD
652 LD_SHLIB_LINKER
653 VERSIONSCRIPT
654 SONAMEFLAG
655 SHLIBEXT
656 PICFLAG
657 LIBDL
658 LIBOBJS
659 libreplace_cv_immediate_structures
660 INSTALL_DATA
661 INSTALL_SCRIPT
662 INSTALL_PROGRAM
663 EGREP
664 GREP
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
673 target_os
674 target_vendor
675 target_cpu
676 target
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 LIBREPLACEOBJ
686 libreplacedir
687 TALLOC_VERSION_RELEASE
688 TALLOC_VERSION_MINOR
689 TALLOC_VERSION_MAJOR
690 TALLOC_VERSION
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_BUGREPORT
722 PACKAGE_STRING
723 PACKAGE_VERSION
724 PACKAGE_TARNAME
725 PACKAGE_NAME
726 PATH_SEPARATOR
727 SHELL'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 enable_largefile
732 enable_talloc_compat1
733 with_shared_build_dir
735 ac_precious_vars='build_alias
736 host_alias
737 target_alias
739 CFLAGS
740 LDFLAGS
741 LIBS
742 CPPFLAGS
743 CPP'
746 # Initialize some variables set by options.
747 ac_init_help=
748 ac_init_version=false
749 ac_unrecognized_opts=
750 ac_unrecognized_sep=
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
753 cache_file=/dev/null
754 exec_prefix=NONE
755 no_create=
756 no_recursion=
757 prefix=NONE
758 program_prefix=NONE
759 program_suffix=NONE
760 program_transform_name=s,x,x,
761 silent=
762 site=
763 srcdir=
764 verbose=
765 x_includes=NONE
766 x_libraries=NONE
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785 infodir='${datarootdir}/info'
786 htmldir='${docdir}'
787 dvidir='${docdir}'
788 pdfdir='${docdir}'
789 psdir='${docdir}'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
794 ac_prev=
795 ac_dashdash=
796 for ac_option
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\$ac_option
801 ac_prev=
802 continue
805 case $ac_option in
806 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 *) ac_optarg=yes ;;
808 esac
810 # Accept the important Cygnus configure options, so we can diagnose typos.
812 case $ac_dashdash$ac_option in
814 ac_dashdash=yes ;;
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
817 ac_prev=bindir ;;
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819 bindir=$ac_optarg ;;
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
833 --config-cache | -C)
834 cache_file=config.cache ;;
836 -datadir | --datadir | --datadi | --datad)
837 ac_prev=datadir ;;
838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 datadir=$ac_optarg ;;
841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
848 -disable-* | --disable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
853 { (exit 1); exit 1; }; }
854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
858 "enable_$ac_useropt"
859 "*) ;;
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
862 esac
863 eval enable_$ac_useropt=no ;;
865 -docdir | --docdir | --docdi | --doc | --do)
866 ac_prev=docdir ;;
867 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
868 docdir=$ac_optarg ;;
870 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
871 ac_prev=dvidir ;;
872 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
873 dvidir=$ac_optarg ;;
875 -enable-* | --enable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
880 { (exit 1); exit 1; }; }
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
885 "enable_$ac_useropt"
886 "*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
890 eval enable_$ac_useropt=\$ac_optarg ;;
892 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
893 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
894 | --exec | --exe | --ex)
895 ac_prev=exec_prefix ;;
896 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
897 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
898 | --exec=* | --exe=* | --ex=*)
899 exec_prefix=$ac_optarg ;;
901 -gas | --gas | --ga | --g)
902 # Obsolete; use --with-gas.
903 with_gas=yes ;;
905 -help | --help | --hel | --he | -h)
906 ac_init_help=long ;;
907 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
908 ac_init_help=recursive ;;
909 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
910 ac_init_help=short ;;
912 -host | --host | --hos | --ho)
913 ac_prev=host_alias ;;
914 -host=* | --host=* | --hos=* | --ho=*)
915 host_alias=$ac_optarg ;;
917 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918 ac_prev=htmldir ;;
919 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920 | --ht=*)
921 htmldir=$ac_optarg ;;
923 -includedir | --includedir | --includedi | --included | --include \
924 | --includ | --inclu | --incl | --inc)
925 ac_prev=includedir ;;
926 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
927 | --includ=* | --inclu=* | --incl=* | --inc=*)
928 includedir=$ac_optarg ;;
930 -infodir | --infodir | --infodi | --infod | --info | --inf)
931 ac_prev=infodir ;;
932 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
933 infodir=$ac_optarg ;;
935 -libdir | --libdir | --libdi | --libd)
936 ac_prev=libdir ;;
937 -libdir=* | --libdir=* | --libdi=* | --libd=*)
938 libdir=$ac_optarg ;;
940 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
941 | --libexe | --libex | --libe)
942 ac_prev=libexecdir ;;
943 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
944 | --libexe=* | --libex=* | --libe=*)
945 libexecdir=$ac_optarg ;;
947 -localedir | --localedir | --localedi | --localed | --locale)
948 ac_prev=localedir ;;
949 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
950 localedir=$ac_optarg ;;
952 -localstatedir | --localstatedir | --localstatedi | --localstated \
953 | --localstate | --localstat | --localsta | --localst | --locals)
954 ac_prev=localstatedir ;;
955 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
956 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
957 localstatedir=$ac_optarg ;;
959 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960 ac_prev=mandir ;;
961 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
962 mandir=$ac_optarg ;;
964 -nfp | --nfp | --nf)
965 # Obsolete; use --without-fp.
966 with_fp=no ;;
968 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
969 | --no-cr | --no-c | -n)
970 no_create=yes ;;
972 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
973 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974 no_recursion=yes ;;
976 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
977 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
978 | --oldin | --oldi | --old | --ol | --o)
979 ac_prev=oldincludedir ;;
980 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
981 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
982 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
983 oldincludedir=$ac_optarg ;;
985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986 ac_prev=prefix ;;
987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
988 prefix=$ac_optarg ;;
990 -program-prefix | --program-prefix | --program-prefi | --program-pref \
991 | --program-pre | --program-pr | --program-p)
992 ac_prev=program_prefix ;;
993 -program-prefix=* | --program-prefix=* | --program-prefi=* \
994 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
995 program_prefix=$ac_optarg ;;
997 -program-suffix | --program-suffix | --program-suffi | --program-suff \
998 | --program-suf | --program-su | --program-s)
999 ac_prev=program_suffix ;;
1000 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1001 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1002 program_suffix=$ac_optarg ;;
1004 -program-transform-name | --program-transform-name \
1005 | --program-transform-nam | --program-transform-na \
1006 | --program-transform-n | --program-transform- \
1007 | --program-transform | --program-transfor \
1008 | --program-transfo | --program-transf \
1009 | --program-trans | --program-tran \
1010 | --progr-tra | --program-tr | --program-t)
1011 ac_prev=program_transform_name ;;
1012 -program-transform-name=* | --program-transform-name=* \
1013 | --program-transform-nam=* | --program-transform-na=* \
1014 | --program-transform-n=* | --program-transform-=* \
1015 | --program-transform=* | --program-transfor=* \
1016 | --program-transfo=* | --program-transf=* \
1017 | --program-trans=* | --program-tran=* \
1018 | --progr-tra=* | --program-tr=* | --program-t=*)
1019 program_transform_name=$ac_optarg ;;
1021 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022 ac_prev=pdfdir ;;
1023 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1024 pdfdir=$ac_optarg ;;
1026 -psdir | --psdir | --psdi | --psd | --ps)
1027 ac_prev=psdir ;;
1028 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029 psdir=$ac_optarg ;;
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1033 silent=yes ;;
1035 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036 ac_prev=sbindir ;;
1037 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038 | --sbi=* | --sb=*)
1039 sbindir=$ac_optarg ;;
1041 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1042 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1043 | --sharedst | --shareds | --shared | --share | --shar \
1044 | --sha | --sh)
1045 ac_prev=sharedstatedir ;;
1046 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1047 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1048 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049 | --sha=* | --sh=*)
1050 sharedstatedir=$ac_optarg ;;
1052 -site | --site | --sit)
1053 ac_prev=site ;;
1054 -site=* | --site=* | --sit=*)
1055 site=$ac_optarg ;;
1057 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058 ac_prev=srcdir ;;
1059 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1060 srcdir=$ac_optarg ;;
1062 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1063 | --syscon | --sysco | --sysc | --sys | --sy)
1064 ac_prev=sysconfdir ;;
1065 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1066 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1067 sysconfdir=$ac_optarg ;;
1069 -target | --target | --targe | --targ | --tar | --ta | --t)
1070 ac_prev=target_alias ;;
1071 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1072 target_alias=$ac_optarg ;;
1074 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075 verbose=yes ;;
1077 -version | --version | --versio | --versi | --vers | -V)
1078 ac_init_version=: ;;
1080 -with-* | --with-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "with_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval with_$ac_useropt=\$ac_optarg ;;
1097 -without-* | --without-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=no ;;
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1154 esac
1155 done
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
1166 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1167 { (exit 1); exit 1; }; } ;;
1168 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169 esac
1172 # Check all directory arguments for consistency.
1173 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
1178 eval ac_val=\$$ac_var
1179 # Remove trailing slashes.
1180 case $ac_val in
1181 */ )
1182 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183 eval $ac_var=\$ac_val;;
1184 esac
1185 # Be sure to have absolute directory names.
1186 case $ac_val in
1187 [\\/$]* | ?:[\\/]* ) continue;;
1188 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 esac
1190 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1191 { (exit 1); exit 1; }; }
1192 done
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used." >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1208 cross_compiling=yes
1212 ac_tool_prefix=
1213 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215 test "$silent" = yes && exec 6>/dev/null
1218 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di=`ls -di .` &&
1220 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1222 { (exit 1); exit 1; }; }
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1225 { (exit 1); exit 1; }; }
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230 ac_srcdir_defaulted=yes
1231 # Try the directory containing this script, then the parent directory.
1232 ac_confdir=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234 X"$as_myself" : 'X\(//\)[^/]' \| \
1235 X"$as_myself" : 'X\(//\)$' \| \
1236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239 s//\1/
1242 /^X\(\/\/\)[^/].*/{
1243 s//\1/
1246 /^X\(\/\/\)$/{
1247 s//\1/
1250 /^X\(\/\).*/{
1251 s//\1/
1254 s/.*/./; q'`
1255 srcdir=$ac_confdir
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 srcdir=..
1259 else
1260 ac_srcdir_defaulted=no
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1265 { (exit 1); exit 1; }; }
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 ac_abs_confdir=`(
1269 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1270 { (exit 1); exit 1; }; }
1271 pwd)`
1272 # When building in place, set srcdir=.
1273 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 srcdir=.
1276 # Remove unnecessary trailing slashes from srcdir.
1277 # Double slashes in file names in object file debugging info
1278 # mess up M-x gdb in Emacs.
1279 case $srcdir in
1280 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 esac
1282 for ac_var in $ac_precious_vars; do
1283 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_env_${ac_var}_value=\$${ac_var}
1285 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287 done
1290 # Report the --help message.
1292 if test "$ac_init_help" = "long"; then
1293 # Omit some internal or obsolete options to make the list less imposing.
1294 # This message is too long to be a string in the A/UX 3.1 sh.
1295 cat <<_ACEOF
1296 \`configure' configures talloc 2.0.1 to adapt to many kinds of systems.
1298 Usage: $0 [OPTION]... [VAR=VALUE]...
1300 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301 VAR=VALUE. See below for descriptions of some of the useful variables.
1303 Defaults for the options are specified in brackets.
1305 Configuration:
1306 -h, --help display this help and exit
1307 --help=short display options specific to this package
1308 --help=recursive display the short help of all the included packages
1309 -V, --version display version information and exit
1310 -q, --quiet, --silent do not print \`checking...' messages
1311 --cache-file=FILE cache test results in FILE [disabled]
1312 -C, --config-cache alias for \`--cache-file=config.cache'
1313 -n, --no-create do not create output files
1314 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1316 Installation directories:
1317 --prefix=PREFIX install architecture-independent files in PREFIX
1318 [$ac_default_prefix]
1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 [PREFIX]
1322 By default, \`make install' will install all the files in
1323 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1324 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325 for instance \`--prefix=\$HOME'.
1327 For better control, use the options below.
1329 Fine tuning of the installation directories:
1330 --bindir=DIR user executables [EPREFIX/bin]
1331 --sbindir=DIR system admin executables [EPREFIX/sbin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec]
1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1336 --libdir=DIR object code libraries [EPREFIX/lib]
1337 --includedir=DIR C header files [PREFIX/include]
1338 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1341 --infodir=DIR info documentation [DATAROOTDIR/info]
1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1343 --mandir=DIR man documentation [DATAROOTDIR/man]
1344 --docdir=DIR documentation root [DATAROOTDIR/doc/talloc]
1345 --htmldir=DIR html documentation [DOCDIR]
1346 --dvidir=DIR dvi documentation [DOCDIR]
1347 --pdfdir=DIR pdf documentation [DOCDIR]
1348 --psdir=DIR ps documentation [DOCDIR]
1349 _ACEOF
1351 cat <<\_ACEOF
1353 System types:
1354 --build=BUILD configure for building on BUILD [guessed]
1355 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1356 --target=TARGET configure for building compilers for TARGET [HOST]
1357 _ACEOF
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive ) echo "Configuration of talloc 2.0.1:";;
1363 esac
1364 cat <<\_ACEOF
1366 Optional Features:
1367 --disable-option-checking ignore unrecognized --enable/--with options
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --disable-largefile omit support for large files
1371 --enable-talloc-compat1 Build talloc 1.x.x compat library [default=no]
1373 Optional Packages:
1374 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1375 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1376 --with-shared-build-dir=DIR
1377 temporary build directory where libraries are
1378 installed [$srcdir/sharedbuild]
1380 Some influential environment variables:
1381 CC C compiler command
1382 CFLAGS C compiler flags
1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1384 nonstandard directory <lib dir>
1385 LIBS libraries to pass to the linker, e.g. -l<library>
1386 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1387 you have headers in a nonstandard directory <include dir>
1388 CPP C preprocessor
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 _ACEOF
1394 ac_status=$?
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" ||
1401 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1402 continue
1403 ac_builddir=.
1405 case "$ac_dir" in
1406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1409 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1411 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 esac ;;
1415 esac
1416 ac_abs_top_builddir=$ac_pwd
1417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1418 # for backward compatibility:
1419 ac_top_builddir=$ac_top_build_prefix
1421 case $srcdir in
1422 .) # We are building in place.
1423 ac_srcdir=.
1424 ac_top_srcdir=$ac_top_builddir_sub
1425 ac_abs_top_srcdir=$ac_pwd ;;
1426 [\\/]* | ?:[\\/]* ) # Absolute name.
1427 ac_srcdir=$srcdir$ac_dir_suffix;
1428 ac_top_srcdir=$srcdir
1429 ac_abs_top_srcdir=$srcdir ;;
1430 *) # Relative name.
1431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1432 ac_top_srcdir=$ac_top_build_prefix$srcdir
1433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434 esac
1435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1437 cd "$ac_dir" || { ac_status=$?; continue; }
1438 # Check for guested configure.
1439 if test -f "$ac_srcdir/configure.gnu"; then
1440 echo &&
1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442 elif test -f "$ac_srcdir/configure"; then
1443 echo &&
1444 $SHELL "$ac_srcdir/configure" --help=recursive
1445 else
1446 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 fi || ac_status=$?
1448 cd "$ac_pwd" || { ac_status=$?; break; }
1449 done
1452 test -n "$ac_init_help" && exit $ac_status
1453 if $ac_init_version; then
1454 cat <<\_ACEOF
1455 talloc configure 2.0.1
1456 generated by GNU Autoconf 2.63
1458 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1459 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1460 This configure script is free software; the Free Software Foundation
1461 gives unlimited permission to copy, distribute and modify it.
1462 _ACEOF
1463 exit
1465 cat >config.log <<_ACEOF
1466 This file contains any messages produced by compilers while
1467 running configure, to aid debugging if configure makes a mistake.
1469 It was created by talloc $as_me 2.0.1, which was
1470 generated by GNU Autoconf 2.63. Invocation command line was
1472 $ $0 $@
1474 _ACEOF
1475 exec 5>>config.log
1477 cat <<_ASUNAME
1478 ## --------- ##
1479 ## Platform. ##
1480 ## --------- ##
1482 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1483 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1484 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1485 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1486 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1488 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1489 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1491 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1492 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1493 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1494 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1495 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1496 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1497 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1499 _ASUNAME
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 for as_dir in $PATH
1504 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=.
1506 $as_echo "PATH: $as_dir"
1507 done
1508 IFS=$as_save_IFS
1510 } >&5
1512 cat >&5 <<_ACEOF
1515 ## ----------- ##
1516 ## Core tests. ##
1517 ## ----------- ##
1519 _ACEOF
1522 # Keep a trace of the command line.
1523 # Strip out --no-create and --no-recursion so they do not pile up.
1524 # Strip out --silent because we don't want to record it for future runs.
1525 # Also quote any args containing shell meta-characters.
1526 # Make two passes to allow for proper duplicate-argument suppression.
1527 ac_configure_args=
1528 ac_configure_args0=
1529 ac_configure_args1=
1530 ac_must_keep_next=false
1531 for ac_pass in 1 2
1533 for ac_arg
1535 case $ac_arg in
1536 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1538 | -silent | --silent | --silen | --sile | --sil)
1539 continue ;;
1540 *\'*)
1541 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1542 esac
1543 case $ac_pass in
1544 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1546 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1547 if test $ac_must_keep_next = true; then
1548 ac_must_keep_next=false # Got value, back to normal.
1549 else
1550 case $ac_arg in
1551 *=* | --config-cache | -C | -disable-* | --disable-* \
1552 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1553 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1554 | -with-* | --with-* | -without-* | --without-* | --x)
1555 case "$ac_configure_args0 " in
1556 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1557 esac
1559 -* ) ac_must_keep_next=true ;;
1560 esac
1562 ac_configure_args="$ac_configure_args '$ac_arg'"
1564 esac
1565 done
1566 done
1567 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1568 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1570 # When interrupted or exit'd, cleanup temporary files, and complete
1571 # config.log. We remove comments because anyway the quotes in there
1572 # would cause problems or look ugly.
1573 # WARNING: Use '\'' to represent an apostrophe within the trap.
1574 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1575 trap 'exit_status=$?
1576 # Save into config.log some information that might help in debugging.
1578 echo
1580 cat <<\_ASBOX
1581 ## ---------------- ##
1582 ## Cache variables. ##
1583 ## ---------------- ##
1584 _ASBOX
1585 echo
1586 # The following way of writing the cache mishandles newlines in values,
1588 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1589 eval ac_val=\$$ac_var
1590 case $ac_val in #(
1591 *${as_nl}*)
1592 case $ac_var in #(
1593 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1594 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1595 esac
1596 case $ac_var in #(
1597 _ | IFS | as_nl) ;; #(
1598 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1599 *) $as_unset $ac_var ;;
1600 esac ;;
1601 esac
1602 done
1603 (set) 2>&1 |
1604 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1605 *${as_nl}ac_space=\ *)
1606 sed -n \
1607 "s/'\''/'\''\\\\'\'''\''/g;
1608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1609 ;; #(
1611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1613 esac |
1614 sort
1616 echo
1618 cat <<\_ASBOX
1619 ## ----------------- ##
1620 ## Output variables. ##
1621 ## ----------------- ##
1622 _ASBOX
1623 echo
1624 for ac_var in $ac_subst_vars
1626 eval ac_val=\$$ac_var
1627 case $ac_val in
1628 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1629 esac
1630 $as_echo "$ac_var='\''$ac_val'\''"
1631 done | sort
1632 echo
1634 if test -n "$ac_subst_files"; then
1635 cat <<\_ASBOX
1636 ## ------------------- ##
1637 ## File substitutions. ##
1638 ## ------------------- ##
1639 _ASBOX
1640 echo
1641 for ac_var in $ac_subst_files
1643 eval ac_val=\$$ac_var
1644 case $ac_val in
1645 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1646 esac
1647 $as_echo "$ac_var='\''$ac_val'\''"
1648 done | sort
1649 echo
1652 if test -s confdefs.h; then
1653 cat <<\_ASBOX
1654 ## ----------- ##
1655 ## confdefs.h. ##
1656 ## ----------- ##
1657 _ASBOX
1658 echo
1659 cat confdefs.h
1660 echo
1662 test "$ac_signal" != 0 &&
1663 $as_echo "$as_me: caught signal $ac_signal"
1664 $as_echo "$as_me: exit $exit_status"
1665 } >&5
1666 rm -f core *.core core.conftest.* &&
1667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1668 exit $exit_status
1670 for ac_signal in 1 2 13 15; do
1671 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1672 done
1673 ac_signal=0
1675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1676 rm -f -r conftest* confdefs.h
1678 # Predefined preprocessor variables.
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_NAME "$PACKAGE_NAME"
1682 _ACEOF
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687 _ACEOF
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692 _ACEOF
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 _ACEOF
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702 _ACEOF
1705 # Let the site file select an alternate cache file if it wants to.
1706 # Prefer an explicitly selected file to automatically selected ones.
1707 ac_site_file1=NONE
1708 ac_site_file2=NONE
1709 if test -n "$CONFIG_SITE"; then
1710 ac_site_file1=$CONFIG_SITE
1711 elif test "x$prefix" != xNONE; then
1712 ac_site_file1=$prefix/share/config.site
1713 ac_site_file2=$prefix/etc/config.site
1714 else
1715 ac_site_file1=$ac_default_prefix/share/config.site
1716 ac_site_file2=$ac_default_prefix/etc/config.site
1718 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1720 test "x$ac_site_file" = xNONE && continue
1721 if test -r "$ac_site_file"; then
1722 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1723 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1724 sed 's/^/| /' "$ac_site_file" >&5
1725 . "$ac_site_file"
1727 done
1729 if test -r "$cache_file"; then
1730 # Some versions of bash will fail to source /dev/null (special
1731 # files actually), so we avoid doing that.
1732 if test -f "$cache_file"; then
1733 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1734 $as_echo "$as_me: loading cache $cache_file" >&6;}
1735 case $cache_file in
1736 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1737 *) . "./$cache_file";;
1738 esac
1740 else
1741 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1742 $as_echo "$as_me: creating cache $cache_file" >&6;}
1743 >$cache_file
1746 # Check that the precious variables saved in the cache have kept the same
1747 # value.
1748 ac_cache_corrupted=false
1749 for ac_var in $ac_precious_vars; do
1750 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1751 eval ac_new_set=\$ac_env_${ac_var}_set
1752 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1753 eval ac_new_val=\$ac_env_${ac_var}_value
1754 case $ac_old_set,$ac_new_set in
1755 set,)
1756 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1757 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1759 ,set)
1760 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1761 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1762 ac_cache_corrupted=: ;;
1763 ,);;
1765 if test "x$ac_old_val" != "x$ac_new_val"; then
1766 # differences in whitespace do not lead to failure.
1767 ac_old_val_w=`echo x $ac_old_val`
1768 ac_new_val_w=`echo x $ac_new_val`
1769 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1770 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1771 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1772 ac_cache_corrupted=:
1773 else
1774 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1775 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1776 eval $ac_var=\$ac_old_val
1778 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1779 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1780 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1781 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1782 fi;;
1783 esac
1784 # Pass precious variables to config.status.
1785 if test "$ac_new_set" = set; then
1786 case $ac_new_val in
1787 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1788 *) ac_arg=$ac_var=$ac_new_val ;;
1789 esac
1790 case " $ac_configure_args " in
1791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1792 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1793 esac
1795 done
1796 if $ac_cache_corrupted; then
1797 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1799 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1800 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1801 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1802 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1803 { (exit 1); exit 1; }; }
1830 ac_ext=c
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1839 ac_config_headers="$ac_config_headers config.h"
1842 TALLOC_VERSION=${PACKAGE_VERSION}
1843 TALLOC_VERSION_MAJOR=`echo ${PACKAGE_VERSION} | cut -d '.' -f1`
1844 TALLOC_VERSION_MINOR=`echo ${PACKAGE_VERSION} | cut -d '.' -f2`
1845 TALLOC_VERSION_RELEASE=`echo ${PACKAGE_VERSION} | cut -d '.' -f3`
1853 cat >>confdefs.h <<_ACEOF
1854 #define TALLOC_BUILD_VERSION_MAJOR ${TALLOC_VERSION_MAJOR}
1855 _ACEOF
1858 cat >>confdefs.h <<_ACEOF
1859 #define TALLOC_BUILD_VERSION_MINOR ${TALLOC_VERSION_MINOR}
1860 _ACEOF
1863 cat >>confdefs.h <<_ACEOF
1864 #define TALLOC_BUILD_VERSION_RELEASE ${TALLOC_VERSION_RELEASE}
1865 _ACEOF
1870 #LIBREPLACE_ALL_CHECKS: START"
1872 ac_aux_dir=
1873 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1874 if test -f "$ac_dir/install-sh"; then
1875 ac_aux_dir=$ac_dir
1876 ac_install_sh="$ac_aux_dir/install-sh -c"
1877 break
1878 elif test -f "$ac_dir/install.sh"; then
1879 ac_aux_dir=$ac_dir
1880 ac_install_sh="$ac_aux_dir/install.sh -c"
1881 break
1882 elif test -f "$ac_dir/shtool"; then
1883 ac_aux_dir=$ac_dir
1884 ac_install_sh="$ac_aux_dir/shtool install -c"
1885 break
1887 done
1888 if test -z "$ac_aux_dir"; then
1889 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1890 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1891 { (exit 1); exit 1; }; }
1894 # These three variables are undocumented and unsupported,
1895 # and are intended to be withdrawn in a future Autoconf release.
1896 # They can cause serious problems if a builder's source tree is in a directory
1897 # whose full name contains unusual characters.
1898 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1899 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1900 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1904 echo "LIBREPLACE_LOCATION_CHECKS: START"
1906 libreplacedir=""
1907 libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace $srcdir/../lib/replace $srcdir/../../../lib/replace"
1908 for d in $libreplacepaths; do
1909 if test -f "$d/replace.c"; then
1910 libreplacedir="$d"
1912 break;
1914 done
1915 if test x"$libreplacedir" = "x"; then
1916 { { $as_echo "$as_me:$LINENO: error: cannot find libreplace in $libreplacepaths" >&5
1917 $as_echo "$as_me: error: cannot find libreplace in $libreplacepaths" >&2;}
1918 { (exit 1); exit 1; }; }
1920 LIBREPLACEOBJ="$libreplacedir/replace.o"
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1930 $as_echo_n "checking build system type... " >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932 $as_echo_n "(cached) " >&6
1933 else
1934 ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1947 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 $as_echo "$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1950 *-*-*) ;;
1951 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1954 esac
1955 build=$ac_cv_build
1956 ac_save_IFS=$IFS; IFS='-'
1957 set x $ac_cv_build
1958 shift
1959 build_cpu=$1
1960 build_vendor=$2
1961 shift; shift
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1964 build_os=$*
1965 IFS=$ac_save_IFS
1966 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1969 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1970 $as_echo_n "checking host system type... " >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972 $as_echo_n "(cached) " >&6
1973 else
1974 if test "x$host_alias" = x; then
1975 ac_cv_host=$ac_cv_build
1976 else
1977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980 { (exit 1); exit 1; }; }
1984 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 $as_echo "$ac_cv_host" >&6; }
1986 case $ac_cv_host in
1987 *-*-*) ;;
1988 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1991 esac
1992 host=$ac_cv_host
1993 ac_save_IFS=$IFS; IFS='-'
1994 set x $ac_cv_host
1995 shift
1996 host_cpu=$1
1997 host_vendor=$2
1998 shift; shift
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2001 host_os=$*
2002 IFS=$ac_save_IFS
2003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2006 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2007 $as_echo_n "checking target system type... " >&6; }
2008 if test "${ac_cv_target+set}" = set; then
2009 $as_echo_n "(cached) " >&6
2010 else
2011 if test "x$target_alias" = x; then
2012 ac_cv_target=$ac_cv_host
2013 else
2014 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2015 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2016 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2017 { (exit 1); exit 1; }; }
2021 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2022 $as_echo "$ac_cv_target" >&6; }
2023 case $ac_cv_target in
2024 *-*-*) ;;
2025 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2026 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2027 { (exit 1); exit 1; }; };;
2028 esac
2029 target=$ac_cv_target
2030 ac_save_IFS=$IFS; IFS='-'
2031 set x $ac_cv_target
2032 shift
2033 target_cpu=$1
2034 target_vendor=$2
2035 shift; shift
2036 # Remember, the first character of IFS is used to create $*,
2037 # except with old shells:
2038 target_os=$*
2039 IFS=$ac_save_IFS
2040 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2043 # The aliases save the names the user supplied, while $host etc.
2044 # will get canonicalized.
2045 test -n "$target_alias" &&
2046 test "$program_prefix$program_suffix$program_transform_name" = \
2047 NONENONEs,x,x, &&
2048 program_prefix=${target_alias}-
2050 echo "LIBREPLACE_LOCATION_CHECKS: END"
2054 echo "LIBREPLACE_CC_CHECKS: START"
2057 ac_cv_prog_cc_Ae=no
2059 savedCFLAGS=$CFLAGS
2060 ac_ext=c
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065 if test -n "$ac_tool_prefix"; then
2066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2067 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 $as_echo_n "checking for $ac_word... " >&6; }
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 $as_echo_n "(cached) " >&6
2072 else
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2089 IFS=$as_save_IFS
2093 CC=$ac_cv_prog_CC
2094 if test -n "$CC"; then
2095 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2096 $as_echo "$CC" >&6; }
2097 else
2098 { $as_echo "$as_me:$LINENO: result: no" >&5
2099 $as_echo "no" >&6; }
2104 if test -z "$ac_cv_prog_CC"; then
2105 ac_ct_CC=$CC
2106 # Extract the first word of "gcc", so it can be a program name with args.
2107 set dummy gcc; ac_word=$2
2108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 $as_echo_n "checking for $ac_word... " >&6; }
2110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111 $as_echo_n "(cached) " >&6
2112 else
2113 if test -n "$ac_ct_CC"; then
2114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123 ac_cv_prog_ac_ct_CC="gcc"
2124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2127 done
2128 done
2129 IFS=$as_save_IFS
2133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2134 if test -n "$ac_ct_CC"; then
2135 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2136 $as_echo "$ac_ct_CC" >&6; }
2137 else
2138 { $as_echo "$as_me:$LINENO: result: no" >&5
2139 $as_echo "no" >&6; }
2142 if test "x$ac_ct_CC" = x; then
2143 CC=""
2144 else
2145 case $cross_compiling:$ac_tool_warned in
2146 yes:)
2147 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2149 ac_tool_warned=yes ;;
2150 esac
2151 CC=$ac_ct_CC
2153 else
2154 CC="$ac_cv_prog_CC"
2157 if test -z "$CC"; then
2158 if test -n "$ac_tool_prefix"; then
2159 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2160 set dummy ${ac_tool_prefix}cc; ac_word=$2
2161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 $as_echo_n "checking for $ac_word... " >&6; }
2163 if test "${ac_cv_prog_CC+set}" = set; then
2164 $as_echo_n "(cached) " >&6
2165 else
2166 if test -n "$CC"; then
2167 ac_cv_prog_CC="$CC" # Let the user override the test.
2168 else
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2176 ac_cv_prog_CC="${ac_tool_prefix}cc"
2177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 break 2
2180 done
2181 done
2182 IFS=$as_save_IFS
2186 CC=$ac_cv_prog_CC
2187 if test -n "$CC"; then
2188 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2189 $as_echo "$CC" >&6; }
2190 else
2191 { $as_echo "$as_me:$LINENO: result: no" >&5
2192 $as_echo "no" >&6; }
2198 if test -z "$CC"; then
2199 # Extract the first word of "cc", so it can be a program name with args.
2200 set dummy cc; ac_word=$2
2201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 $as_echo_n "checking for $ac_word... " >&6; }
2203 if test "${ac_cv_prog_CC+set}" = set; then
2204 $as_echo_n "(cached) " >&6
2205 else
2206 if test -n "$CC"; then
2207 ac_cv_prog_CC="$CC" # Let the user override the test.
2208 else
2209 ac_prog_rejected=no
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2218 ac_prog_rejected=yes
2219 continue
2221 ac_cv_prog_CC="cc"
2222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 break 2
2225 done
2226 done
2227 IFS=$as_save_IFS
2229 if test $ac_prog_rejected = yes; then
2230 # We found a bogon in the path, so make sure we never use it.
2231 set dummy $ac_cv_prog_CC
2232 shift
2233 if test $# != 0; then
2234 # We chose a different compiler from the bogus one.
2235 # However, it has the same basename, so the bogon will be chosen
2236 # first if we set CC to just the basename; use the full file name.
2237 shift
2238 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2243 CC=$ac_cv_prog_CC
2244 if test -n "$CC"; then
2245 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2246 $as_echo "$CC" >&6; }
2247 else
2248 { $as_echo "$as_me:$LINENO: result: no" >&5
2249 $as_echo "no" >&6; }
2254 if test -z "$CC"; then
2255 if test -n "$ac_tool_prefix"; then
2256 for ac_prog in cl.exe
2258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 $as_echo_n "checking for $ac_word... " >&6; }
2262 if test "${ac_cv_prog_CC+set}" = set; then
2263 $as_echo_n "(cached) " >&6
2264 else
2265 if test -n "$CC"; then
2266 ac_cv_prog_CC="$CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2275 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 break 2
2279 done
2280 done
2281 IFS=$as_save_IFS
2285 CC=$ac_cv_prog_CC
2286 if test -n "$CC"; then
2287 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2288 $as_echo "$CC" >&6; }
2289 else
2290 { $as_echo "$as_me:$LINENO: result: no" >&5
2291 $as_echo "no" >&6; }
2295 test -n "$CC" && break
2296 done
2298 if test -z "$CC"; then
2299 ac_ct_CC=$CC
2300 for ac_prog in cl.exe
2302 # Extract the first word of "$ac_prog", so it can be a program name with args.
2303 set dummy $ac_prog; ac_word=$2
2304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 $as_echo_n "checking for $ac_word... " >&6; }
2306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2307 $as_echo_n "(cached) " >&6
2308 else
2309 if test -n "$ac_ct_CC"; then
2310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319 ac_cv_prog_ac_ct_CC="$ac_prog"
2320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2323 done
2324 done
2325 IFS=$as_save_IFS
2329 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2330 if test -n "$ac_ct_CC"; then
2331 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2332 $as_echo "$ac_ct_CC" >&6; }
2333 else
2334 { $as_echo "$as_me:$LINENO: result: no" >&5
2335 $as_echo "no" >&6; }
2339 test -n "$ac_ct_CC" && break
2340 done
2342 if test "x$ac_ct_CC" = x; then
2343 CC=""
2344 else
2345 case $cross_compiling:$ac_tool_warned in
2346 yes:)
2347 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2349 ac_tool_warned=yes ;;
2350 esac
2351 CC=$ac_ct_CC
2358 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2361 See \`config.log' for more details." >&5
2362 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2363 See \`config.log' for more details." >&2;}
2364 { (exit 1); exit 1; }; }; }
2366 # Provide some information about the compiler.
2367 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2368 set X $ac_compile
2369 ac_compiler=$2
2370 { (ac_try="$ac_compiler --version >&5"
2371 case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374 esac
2375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2376 $as_echo "$ac_try_echo") >&5
2377 (eval "$ac_compiler --version >&5") 2>&5
2378 ac_status=$?
2379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381 { (ac_try="$ac_compiler -v >&5"
2382 case "(($ac_try" in
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2385 esac
2386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2387 $as_echo "$ac_try_echo") >&5
2388 (eval "$ac_compiler -v >&5") 2>&5
2389 ac_status=$?
2390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }
2392 { (ac_try="$ac_compiler -V >&5"
2393 case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2396 esac
2397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2398 $as_echo "$ac_try_echo") >&5
2399 (eval "$ac_compiler -V >&5") 2>&5
2400 ac_status=$?
2401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }
2404 cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h. */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2412 main ()
2416 return 0;
2418 _ACEOF
2419 ac_clean_files_save=$ac_clean_files
2420 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2421 # Try to create an executable without -o first, disregard a.out.
2422 # It will help us diagnose broken compilers, and finding out an intuition
2423 # of exeext.
2424 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2425 $as_echo_n "checking for C compiler default output file name... " >&6; }
2426 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2428 # The possible output files:
2429 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2431 ac_rmfiles=
2432 for ac_file in $ac_files
2434 case $ac_file in
2435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2436 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2437 esac
2438 done
2439 rm -f $ac_rmfiles
2441 if { (ac_try="$ac_link_default"
2442 case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445 esac
2446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2447 $as_echo "$ac_try_echo") >&5
2448 (eval "$ac_link_default") 2>&5
2449 ac_status=$?
2450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; then
2452 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2453 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2454 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2455 # so that the user can short-circuit this test for compilers unknown to
2456 # Autoconf.
2457 for ac_file in $ac_files ''
2459 test -f "$ac_file" || continue
2460 case $ac_file in
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2463 [ab].out )
2464 # We found the default executable, but exeext='' is most
2465 # certainly right.
2466 break;;
2467 *.* )
2468 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2469 then :; else
2470 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2472 # We set ac_cv_exeext here because the later test for it is not
2473 # safe: cross compilers may not add the suffix if given an `-o'
2474 # argument, so we may need to know it at that point already.
2475 # Even if this section looks crufty: it has the advantage of
2476 # actually working.
2477 break;;
2479 break;;
2480 esac
2481 done
2482 test "$ac_cv_exeext" = no && ac_cv_exeext=
2484 else
2485 ac_file=''
2488 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2489 $as_echo "$ac_file" >&6; }
2490 if test -z "$ac_file"; then
2491 $as_echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2494 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2497 See \`config.log' for more details." >&5
2498 $as_echo "$as_me: error: C compiler cannot create executables
2499 See \`config.log' for more details." >&2;}
2500 { (exit 77); exit 77; }; }; }
2503 ac_exeext=$ac_cv_exeext
2505 # Check that the compiler produces executables we can run. If not, either
2506 # the compiler is broken, or we cross compile.
2507 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2508 $as_echo_n "checking whether the C compiler works... " >&6; }
2509 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2510 # If not cross compiling, check that we can run a simple program.
2511 if test "$cross_compiling" != yes; then
2512 if { ac_try='./$ac_file'
2513 { (case "(($ac_try" in
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2516 esac
2517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2518 $as_echo "$ac_try_echo") >&5
2519 (eval "$ac_try") 2>&5
2520 ac_status=$?
2521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2523 cross_compiling=no
2524 else
2525 if test "$cross_compiling" = maybe; then
2526 cross_compiling=yes
2527 else
2528 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2531 If you meant to cross compile, use \`--host'.
2532 See \`config.log' for more details." >&5
2533 $as_echo "$as_me: error: cannot run C compiled programs.
2534 If you meant to cross compile, use \`--host'.
2535 See \`config.log' for more details." >&2;}
2536 { (exit 1); exit 1; }; }; }
2540 { $as_echo "$as_me:$LINENO: result: yes" >&5
2541 $as_echo "yes" >&6; }
2543 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2544 ac_clean_files=$ac_clean_files_save
2545 # Check that the compiler produces executables we can run. If not, either
2546 # the compiler is broken, or we cross compile.
2547 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2548 $as_echo_n "checking whether we are cross compiling... " >&6; }
2549 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2550 $as_echo "$cross_compiling" >&6; }
2552 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2553 $as_echo_n "checking for suffix of executables... " >&6; }
2554 if { (ac_try="$ac_link"
2555 case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2558 esac
2559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2560 $as_echo "$ac_try_echo") >&5
2561 (eval "$ac_link") 2>&5
2562 ac_status=$?
2563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; then
2565 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2566 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2567 # work properly (i.e., refer to `conftest.exe'), while it won't with
2568 # `rm'.
2569 for ac_file in conftest.exe conftest conftest.*; do
2570 test -f "$ac_file" || continue
2571 case $ac_file in
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2574 break;;
2575 * ) break;;
2576 esac
2577 done
2578 else
2579 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2582 See \`config.log' for more details." >&5
2583 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2584 See \`config.log' for more details." >&2;}
2585 { (exit 1); exit 1; }; }; }
2588 rm -f conftest$ac_cv_exeext
2589 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2590 $as_echo "$ac_cv_exeext" >&6; }
2592 rm -f conftest.$ac_ext
2593 EXEEXT=$ac_cv_exeext
2594 ac_exeext=$EXEEXT
2595 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2596 $as_echo_n "checking for suffix of object files... " >&6; }
2597 if test "${ac_cv_objext+set}" = set; then
2598 $as_echo_n "(cached) " >&6
2599 else
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2608 main ()
2612 return 0;
2614 _ACEOF
2615 rm -f conftest.o conftest.obj
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2622 $as_echo "$ac_try_echo") >&5
2623 (eval "$ac_compile") 2>&5
2624 ac_status=$?
2625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; then
2627 for ac_file in conftest.o conftest.obj conftest.*; do
2628 test -f "$ac_file" || continue;
2629 case $ac_file in
2630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2631 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2632 break;;
2633 esac
2634 done
2635 else
2636 $as_echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2639 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2641 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2642 See \`config.log' for more details." >&5
2643 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2644 See \`config.log' for more details." >&2;}
2645 { (exit 1); exit 1; }; }; }
2648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2650 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2651 $as_echo "$ac_cv_objext" >&6; }
2652 OBJEXT=$ac_cv_objext
2653 ac_objext=$OBJEXT
2654 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2656 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2657 $as_echo_n "(cached) " >&6
2658 else
2659 cat >conftest.$ac_ext <<_ACEOF
2660 /* confdefs.h. */
2661 _ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h. */
2667 main ()
2669 #ifndef __GNUC__
2670 choke me
2671 #endif
2674 return 0;
2676 _ACEOF
2677 rm -f conftest.$ac_objext
2678 if { (ac_try="$ac_compile"
2679 case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682 esac
2683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2684 $as_echo "$ac_try_echo") >&5
2685 (eval "$ac_compile") 2>conftest.er1
2686 ac_status=$?
2687 grep -v '^ *+' conftest.er1 >conftest.err
2688 rm -f conftest.er1
2689 cat conftest.err >&5
2690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } && {
2692 test -z "$ac_c_werror_flag" ||
2693 test ! -s conftest.err
2694 } && test -s conftest.$ac_objext; then
2695 ac_compiler_gnu=yes
2696 else
2697 $as_echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2700 ac_compiler_gnu=no
2703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2707 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2708 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2709 if test $ac_compiler_gnu = yes; then
2710 GCC=yes
2711 else
2712 GCC=
2714 ac_test_CFLAGS=${CFLAGS+set}
2715 ac_save_CFLAGS=$CFLAGS
2716 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2717 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2718 if test "${ac_cv_prog_cc_g+set}" = set; then
2719 $as_echo_n "(cached) " >&6
2720 else
2721 ac_save_c_werror_flag=$ac_c_werror_flag
2722 ac_c_werror_flag=yes
2723 ac_cv_prog_cc_g=no
2724 CFLAGS="-g"
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h. */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2733 main ()
2737 return 0;
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (ac_try="$ac_compile"
2742 case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745 esac
2746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2747 $as_echo "$ac_try_echo") >&5
2748 (eval "$ac_compile") 2>conftest.er1
2749 ac_status=$?
2750 grep -v '^ *+' conftest.er1 >conftest.err
2751 rm -f conftest.er1
2752 cat conftest.err >&5
2753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } && {
2755 test -z "$ac_c_werror_flag" ||
2756 test ! -s conftest.err
2757 } && test -s conftest.$ac_objext; then
2758 ac_cv_prog_cc_g=yes
2759 else
2760 $as_echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2763 CFLAGS=""
2764 cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h. */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2772 main ()
2776 return 0;
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2781 case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784 esac
2785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2786 $as_echo "$ac_try_echo") >&5
2787 (eval "$ac_compile") 2>conftest.er1
2788 ac_status=$?
2789 grep -v '^ *+' conftest.er1 >conftest.err
2790 rm -f conftest.er1
2791 cat conftest.err >&5
2792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } && {
2794 test -z "$ac_c_werror_flag" ||
2795 test ! -s conftest.err
2796 } && test -s conftest.$ac_objext; then
2798 else
2799 $as_echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 ac_c_werror_flag=$ac_save_c_werror_flag
2803 CFLAGS="-g"
2804 cat >conftest.$ac_ext <<_ACEOF
2805 /* confdefs.h. */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2812 main ()
2816 return 0;
2818 _ACEOF
2819 rm -f conftest.$ac_objext
2820 if { (ac_try="$ac_compile"
2821 case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824 esac
2825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2826 $as_echo "$ac_try_echo") >&5
2827 (eval "$ac_compile") 2>conftest.er1
2828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } && {
2834 test -z "$ac_c_werror_flag" ||
2835 test ! -s conftest.err
2836 } && test -s conftest.$ac_objext; then
2837 ac_cv_prog_cc_g=yes
2838 else
2839 $as_echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 ac_c_werror_flag=$ac_save_c_werror_flag
2854 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2855 $as_echo "$ac_cv_prog_cc_g" >&6; }
2856 if test "$ac_test_CFLAGS" = set; then
2857 CFLAGS=$ac_save_CFLAGS
2858 elif test $ac_cv_prog_cc_g = yes; then
2859 if test "$GCC" = yes; then
2860 CFLAGS="-g -O2"
2861 else
2862 CFLAGS="-g"
2864 else
2865 if test "$GCC" = yes; then
2866 CFLAGS="-O2"
2867 else
2868 CFLAGS=
2871 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2872 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2873 if test "${ac_cv_prog_cc_c89+set}" = set; then
2874 $as_echo_n "(cached) " >&6
2875 else
2876 ac_cv_prog_cc_c89=no
2877 ac_save_CC=$CC
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #include <stdarg.h>
2885 #include <stdio.h>
2886 #include <sys/types.h>
2887 #include <sys/stat.h>
2888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2889 struct buf { int x; };
2890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2891 static char *e (p, i)
2892 char **p;
2893 int i;
2895 return p[i];
2897 static char *f (char * (*g) (char **, int), char **p, ...)
2899 char *s;
2900 va_list v;
2901 va_start (v,p);
2902 s = g (p, va_arg (v,int));
2903 va_end (v);
2904 return s;
2907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2908 function prototypes and stuff, but not '\xHH' hex character constants.
2909 These don't provoke an error unfortunately, instead are silently treated
2910 as 'x'. The following induces an error, until -std is added to get
2911 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2912 array size at least. It's necessary to write '\x00'==0 to get something
2913 that's true only with -std. */
2914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2916 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2917 inside strings and character constants. */
2918 #define FOO(x) 'x'
2919 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2921 int test (int i, double x);
2922 struct s1 {int (*f) (int a);};
2923 struct s2 {int (*f) (double a);};
2924 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2925 int argc;
2926 char **argv;
2928 main ()
2930 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2932 return 0;
2934 _ACEOF
2935 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2936 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2938 CC="$ac_save_CC $ac_arg"
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2946 $as_echo "$ac_try_echo") >&5
2947 (eval "$ac_compile") 2>conftest.er1
2948 ac_status=$?
2949 grep -v '^ *+' conftest.er1 >conftest.err
2950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } && {
2954 test -z "$ac_c_werror_flag" ||
2955 test ! -s conftest.err
2956 } && test -s conftest.$ac_objext; then
2957 ac_cv_prog_cc_c89=$ac_arg
2958 else
2959 $as_echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2965 rm -f core conftest.err conftest.$ac_objext
2966 test "x$ac_cv_prog_cc_c89" != "xno" && break
2967 done
2968 rm -f conftest.$ac_ext
2969 CC=$ac_save_CC
2972 # AC_CACHE_VAL
2973 case "x$ac_cv_prog_cc_c89" in
2975 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2976 $as_echo "none needed" >&6; } ;;
2977 xno)
2978 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2979 $as_echo "unsupported" >&6; } ;;
2981 CC="$CC $ac_cv_prog_cc_c89"
2982 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2983 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2984 esac
2987 ac_ext=c
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 CFLAGS=$savedCFLAGS
2995 if test x"$GCC" != x"yes" ; then
2996 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2997 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
2998 if test "${ac_cv_prog_cc_c99+set}" = set; then
2999 $as_echo_n "(cached) " >&6
3000 else
3001 ac_cv_prog_cc_c99=no
3002 ac_save_CC=$CC
3003 cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h. */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009 #include <stdarg.h>
3010 #include <stdbool.h>
3011 #include <stdlib.h>
3012 #include <wchar.h>
3013 #include <stdio.h>
3015 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3016 #define debug(...) fprintf (stderr, __VA_ARGS__)
3017 #define showlist(...) puts (#__VA_ARGS__)
3018 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3019 static void
3020 test_varargs_macros (void)
3022 int x = 1234;
3023 int y = 5678;
3024 debug ("Flag");
3025 debug ("X = %d\n", x);
3026 showlist (The first, second, and third items.);
3027 report (x>y, "x is %d but y is %d", x, y);
3030 // Check long long types.
3031 #define BIG64 18446744073709551615ull
3032 #define BIG32 4294967295ul
3033 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3034 #if !BIG_OK
3035 your preprocessor is broken;
3036 #endif
3037 #if BIG_OK
3038 #else
3039 your preprocessor is broken;
3040 #endif
3041 static long long int bignum = -9223372036854775807LL;
3042 static unsigned long long int ubignum = BIG64;
3044 struct incomplete_array
3046 int datasize;
3047 double data[];
3050 struct named_init {
3051 int number;
3052 const wchar_t *name;
3053 double average;
3056 typedef const char *ccp;
3058 static inline int
3059 test_restrict (ccp restrict text)
3061 // See if C++-style comments work.
3062 // Iterate through items via the restricted pointer.
3063 // Also check for declarations in for loops.
3064 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3065 continue;
3066 return 0;
3069 // Check varargs and va_copy.
3070 static void
3071 test_varargs (const char *format, ...)
3073 va_list args;
3074 va_start (args, format);
3075 va_list args_copy;
3076 va_copy (args_copy, args);
3078 const char *str;
3079 int number;
3080 float fnumber;
3082 while (*format)
3084 switch (*format++)
3086 case 's': // string
3087 str = va_arg (args_copy, const char *);
3088 break;
3089 case 'd': // int
3090 number = va_arg (args_copy, int);
3091 break;
3092 case 'f': // float
3093 fnumber = va_arg (args_copy, double);
3094 break;
3095 default:
3096 break;
3099 va_end (args_copy);
3100 va_end (args);
3104 main ()
3107 // Check bool.
3108 _Bool success = false;
3110 // Check restrict.
3111 if (test_restrict ("String literal") == 0)
3112 success = true;
3113 char *restrict newvar = "Another string";
3115 // Check varargs.
3116 test_varargs ("s, d' f .", "string", 65, 34.234);
3117 test_varargs_macros ();
3119 // Check flexible array members.
3120 struct incomplete_array *ia =
3121 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3122 ia->datasize = 10;
3123 for (int i = 0; i < ia->datasize; ++i)
3124 ia->data[i] = i * 1.234;
3126 // Check named initializers.
3127 struct named_init ni = {
3128 .number = 34,
3129 .name = L"Test wide string",
3130 .average = 543.34343,
3133 ni.number = 58;
3135 int dynamic_array[ni.number];
3136 dynamic_array[ni.number - 1] = 543;
3138 // work around unused variable warnings
3139 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3140 || dynamic_array[ni.number - 1] != 543);
3143 return 0;
3145 _ACEOF
3146 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3148 CC="$ac_save_CC $ac_arg"
3149 rm -f conftest.$ac_objext
3150 if { (ac_try="$ac_compile"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3156 $as_echo "$ac_try_echo") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } && {
3164 test -z "$ac_c_werror_flag" ||
3165 test ! -s conftest.err
3166 } && test -s conftest.$ac_objext; then
3167 ac_cv_prog_cc_c99=$ac_arg
3168 else
3169 $as_echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3175 rm -f core conftest.err conftest.$ac_objext
3176 test "x$ac_cv_prog_cc_c99" != "xno" && break
3177 done
3178 rm -f conftest.$ac_ext
3179 CC=$ac_save_CC
3182 # AC_CACHE_VAL
3183 case "x$ac_cv_prog_cc_c99" in
3185 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3186 $as_echo "none needed" >&6; } ;;
3187 xno)
3188 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3189 $as_echo "unsupported" >&6; } ;;
3191 CC="$CC $ac_cv_prog_cc_c99"
3192 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3193 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3194 esac
3200 if test x"$GCC" = x"yes" ; then
3201 { $as_echo "$as_me:$LINENO: checking for version of gcc" >&5
3202 $as_echo_n "checking for version of gcc... " >&6; }
3203 GCC_VERSION=`$CC -dumpversion`
3204 { $as_echo "$as_me:$LINENO: result: ${GCC_VERSION}" >&5
3205 $as_echo "${GCC_VERSION}" >&6; }
3208 ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3214 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3215 # On Suns, sometimes $CPP names a directory.
3216 if test -n "$CPP" && test -d "$CPP"; then
3217 CPP=
3219 if test -z "$CPP"; then
3220 if test "${ac_cv_prog_CPP+set}" = set; then
3221 $as_echo_n "(cached) " >&6
3222 else
3223 # Double quotes because CPP needs to be expanded
3224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3226 ac_preproc_ok=false
3227 for ac_c_preproc_warn_flag in '' yes
3229 # Use a header file that comes with gcc, so configuring glibc
3230 # with a fresh cross-compiler works.
3231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232 # <limits.h> exists even on freestanding compilers.
3233 # On the NeXT, cc -E runs the code through the compiler's parser,
3234 # not just through cpp. "Syntax error" is here to catch this case.
3235 cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h. */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3241 #ifdef __STDC__
3242 # include <limits.h>
3243 #else
3244 # include <assert.h>
3245 #endif
3246 Syntax error
3247 _ACEOF
3248 if { (ac_try="$ac_cpp conftest.$ac_ext"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3254 $as_echo "$ac_try_echo") >&5
3255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } >/dev/null && {
3262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3263 test ! -s conftest.err
3264 }; then
3266 else
3267 $as_echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3270 # Broken: fails on valid input.
3271 continue
3274 rm -f conftest.err conftest.$ac_ext
3276 # OK, works on sane cases. Now check whether nonexistent headers
3277 # can be detected and how.
3278 cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h. */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3284 #include <ac_nonexistent.h>
3285 _ACEOF
3286 if { (ac_try="$ac_cpp conftest.$ac_ext"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3292 $as_echo "$ac_try_echo") >&5
3293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } >/dev/null && {
3300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3301 test ! -s conftest.err
3302 }; then
3303 # Broken: success on invalid input.
3304 continue
3305 else
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 # Passes both tests.
3310 ac_preproc_ok=:
3311 break
3314 rm -f conftest.err conftest.$ac_ext
3316 done
3317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3318 rm -f conftest.err conftest.$ac_ext
3319 if $ac_preproc_ok; then
3320 break
3323 done
3324 ac_cv_prog_CPP=$CPP
3327 CPP=$ac_cv_prog_CPP
3328 else
3329 ac_cv_prog_CPP=$CPP
3331 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3332 $as_echo "$CPP" >&6; }
3333 ac_preproc_ok=false
3334 for ac_c_preproc_warn_flag in '' yes
3336 # Use a header file that comes with gcc, so configuring glibc
3337 # with a fresh cross-compiler works.
3338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339 # <limits.h> exists even on freestanding compilers.
3340 # On the NeXT, cc -E runs the code through the compiler's parser,
3341 # not just through cpp. "Syntax error" is here to catch this case.
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348 #ifdef __STDC__
3349 # include <limits.h>
3350 #else
3351 # include <assert.h>
3352 #endif
3353 Syntax error
3354 _ACEOF
3355 if { (ac_try="$ac_cpp conftest.$ac_ext"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3361 $as_echo "$ac_try_echo") >&5
3362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null && {
3369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3370 test ! -s conftest.err
3371 }; then
3373 else
3374 $as_echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 # Broken: fails on valid input.
3378 continue
3381 rm -f conftest.err conftest.$ac_ext
3383 # OK, works on sane cases. Now check whether nonexistent headers
3384 # can be detected and how.
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #include <ac_nonexistent.h>
3392 _ACEOF
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3399 $as_echo "$ac_try_echo") >&5
3400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } >/dev/null && {
3407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3408 test ! -s conftest.err
3409 }; then
3410 # Broken: success on invalid input.
3411 continue
3412 else
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 # Passes both tests.
3417 ac_preproc_ok=:
3418 break
3421 rm -f conftest.err conftest.$ac_ext
3423 done
3424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3425 rm -f conftest.err conftest.$ac_ext
3426 if $ac_preproc_ok; then
3428 else
3429 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432 See \`config.log' for more details." >&5
3433 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3434 See \`config.log' for more details." >&2;}
3435 { (exit 1); exit 1; }; }; }
3438 ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3446 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3447 if test "${ac_cv_path_GREP+set}" = set; then
3448 $as_echo_n "(cached) " >&6
3449 else
3450 if test -z "$GREP"; then
3451 ac_path_GREP_found=false
3452 # Loop through the user's path and test for each of PROGNAME-LIST
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_prog in grep ggrep; do
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3461 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3462 # Check for GNU ac_path_GREP and select it if it is found.
3463 # Check for GNU $ac_path_GREP
3464 case `"$ac_path_GREP" --version 2>&1` in
3465 *GNU*)
3466 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3468 ac_count=0
3469 $as_echo_n 0123456789 >"conftest.in"
3470 while :
3472 cat "conftest.in" "conftest.in" >"conftest.tmp"
3473 mv "conftest.tmp" "conftest.in"
3474 cp "conftest.in" "conftest.nl"
3475 $as_echo 'GREP' >> "conftest.nl"
3476 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3478 ac_count=`expr $ac_count + 1`
3479 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3480 # Best one so far, save it but keep looking for a better one
3481 ac_cv_path_GREP="$ac_path_GREP"
3482 ac_path_GREP_max=$ac_count
3484 # 10*(2^10) chars as input seems more than enough
3485 test $ac_count -gt 10 && break
3486 done
3487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3488 esac
3490 $ac_path_GREP_found && break 3
3491 done
3492 done
3493 done
3494 IFS=$as_save_IFS
3495 if test -z "$ac_cv_path_GREP"; then
3496 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3497 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3498 { (exit 1); exit 1; }; }
3500 else
3501 ac_cv_path_GREP=$GREP
3505 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3506 $as_echo "$ac_cv_path_GREP" >&6; }
3507 GREP="$ac_cv_path_GREP"
3510 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3511 $as_echo_n "checking for egrep... " >&6; }
3512 if test "${ac_cv_path_EGREP+set}" = set; then
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3516 then ac_cv_path_EGREP="$GREP -E"
3517 else
3518 if test -z "$EGREP"; then
3519 ac_path_EGREP_found=false
3520 # Loop through the user's path and test for each of PROGNAME-LIST
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_prog in egrep; do
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3529 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3530 # Check for GNU ac_path_EGREP and select it if it is found.
3531 # Check for GNU $ac_path_EGREP
3532 case `"$ac_path_EGREP" --version 2>&1` in
3533 *GNU*)
3534 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3536 ac_count=0
3537 $as_echo_n 0123456789 >"conftest.in"
3538 while :
3540 cat "conftest.in" "conftest.in" >"conftest.tmp"
3541 mv "conftest.tmp" "conftest.in"
3542 cp "conftest.in" "conftest.nl"
3543 $as_echo 'EGREP' >> "conftest.nl"
3544 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3546 ac_count=`expr $ac_count + 1`
3547 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3548 # Best one so far, save it but keep looking for a better one
3549 ac_cv_path_EGREP="$ac_path_EGREP"
3550 ac_path_EGREP_max=$ac_count
3552 # 10*(2^10) chars as input seems more than enough
3553 test $ac_count -gt 10 && break
3554 done
3555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3556 esac
3558 $ac_path_EGREP_found && break 3
3559 done
3560 done
3561 done
3562 IFS=$as_save_IFS
3563 if test -z "$ac_cv_path_EGREP"; then
3564 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3565 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3566 { (exit 1); exit 1; }; }
3568 else
3569 ac_cv_path_EGREP=$EGREP
3574 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3575 $as_echo "$ac_cv_path_EGREP" >&6; }
3576 EGREP="$ac_cv_path_EGREP"
3579 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3580 $as_echo_n "checking for ANSI C header files... " >&6; }
3581 if test "${ac_cv_header_stdc+set}" = set; then
3582 $as_echo_n "(cached) " >&6
3583 else
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #include <stdlib.h>
3591 #include <stdarg.h>
3592 #include <string.h>
3593 #include <float.h>
3596 main ()
3600 return 0;
3602 _ACEOF
3603 rm -f conftest.$ac_objext
3604 if { (ac_try="$ac_compile"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3610 $as_echo "$ac_try_echo") >&5
3611 (eval "$ac_compile") 2>conftest.er1
3612 ac_status=$?
3613 grep -v '^ *+' conftest.er1 >conftest.err
3614 rm -f conftest.er1
3615 cat conftest.err >&5
3616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } && {
3618 test -z "$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3620 } && test -s conftest.$ac_objext; then
3621 ac_cv_header_stdc=yes
3622 else
3623 $as_echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 ac_cv_header_stdc=no
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 if test $ac_cv_header_stdc = yes; then
3632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3633 cat >conftest.$ac_ext <<_ACEOF
3634 /* confdefs.h. */
3635 _ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3639 #include <string.h>
3641 _ACEOF
3642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3643 $EGREP "memchr" >/dev/null 2>&1; then
3645 else
3646 ac_cv_header_stdc=no
3648 rm -f conftest*
3652 if test $ac_cv_header_stdc = yes; then
3653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3654 cat >conftest.$ac_ext <<_ACEOF
3655 /* confdefs.h. */
3656 _ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3660 #include <stdlib.h>
3662 _ACEOF
3663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3664 $EGREP "free" >/dev/null 2>&1; then
3666 else
3667 ac_cv_header_stdc=no
3669 rm -f conftest*
3673 if test $ac_cv_header_stdc = yes; then
3674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3675 if test "$cross_compiling" = yes; then
3677 else
3678 cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h. */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3684 #include <ctype.h>
3685 #include <stdlib.h>
3686 #if ((' ' & 0x0FF) == 0x020)
3687 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3688 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3689 #else
3690 # define ISLOWER(c) \
3691 (('a' <= (c) && (c) <= 'i') \
3692 || ('j' <= (c) && (c) <= 'r') \
3693 || ('s' <= (c) && (c) <= 'z'))
3694 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3695 #endif
3697 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3699 main ()
3701 int i;
3702 for (i = 0; i < 256; i++)
3703 if (XOR (islower (i), ISLOWER (i))
3704 || toupper (i) != TOUPPER (i))
3705 return 2;
3706 return 0;
3708 _ACEOF
3709 rm -f conftest$ac_exeext
3710 if { (ac_try="$ac_link"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3716 $as_echo "$ac_try_echo") >&5
3717 (eval "$ac_link") 2>&5
3718 ac_status=$?
3719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3721 { (case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3726 $as_echo "$ac_try_echo") >&5
3727 (eval "$ac_try") 2>&5
3728 ac_status=$?
3729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3732 else
3733 $as_echo "$as_me: program exited with status $ac_status" >&5
3734 $as_echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 ( exit $ac_status )
3738 ac_cv_header_stdc=no
3740 rm -rf conftest.dSYM
3741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3747 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3748 $as_echo "$ac_cv_header_stdc" >&6; }
3749 if test $ac_cv_header_stdc = yes; then
3751 cat >>confdefs.h <<\_ACEOF
3752 #define STDC_HEADERS 1
3753 _ACEOF
3757 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3767 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3768 inttypes.h stdint.h unistd.h
3770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3772 $as_echo_n "checking for $ac_header... " >&6; }
3773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3774 $as_echo_n "(cached) " >&6
3775 else
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 $ac_includes_default
3784 #include <$ac_header>
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (ac_try="$ac_compile"
3788 case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791 esac
3792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3793 $as_echo "$ac_try_echo") >&5
3794 (eval "$ac_compile") 2>conftest.er1
3795 ac_status=$?
3796 grep -v '^ *+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
3799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } && {
3801 test -z "$ac_c_werror_flag" ||
3802 test ! -s conftest.err
3803 } && test -s conftest.$ac_objext; then
3804 eval "$as_ac_Header=yes"
3805 else
3806 $as_echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 eval "$as_ac_Header=no"
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_res=`eval 'as_val=${'$as_ac_Header'}
3815 $as_echo "$as_val"'`
3816 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3817 $as_echo "$ac_res" >&6; }
3818 as_val=`eval 'as_val=${'$as_ac_Header'}
3819 $as_echo "$as_val"'`
3820 if test "x$as_val" = x""yes; then
3821 cat >>confdefs.h <<_ACEOF
3822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3823 _ACEOF
3827 done
3831 if test "${ac_cv_header_minix_config_h+set}" = set; then
3832 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3833 $as_echo_n "checking for minix/config.h... " >&6; }
3834 if test "${ac_cv_header_minix_config_h+set}" = set; then
3835 $as_echo_n "(cached) " >&6
3837 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3838 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3839 else
3840 # Is the header compilable?
3841 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3842 $as_echo_n "checking minix/config.h usability... " >&6; }
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 $ac_includes_default
3850 #include <minix/config.h>
3851 _ACEOF
3852 rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3859 $as_echo "$ac_try_echo") >&5
3860 (eval "$ac_compile") 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } && {
3867 test -z "$ac_c_werror_flag" ||
3868 test ! -s conftest.err
3869 } && test -s conftest.$ac_objext; then
3870 ac_header_compiler=yes
3871 else
3872 $as_echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 ac_header_compiler=no
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3880 $as_echo "$ac_header_compiler" >&6; }
3882 # Is the header present?
3883 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3884 $as_echo_n "checking minix/config.h presence... " >&6; }
3885 cat >conftest.$ac_ext <<_ACEOF
3886 /* confdefs.h. */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3891 #include <minix/config.h>
3892 _ACEOF
3893 if { (ac_try="$ac_cpp conftest.$ac_ext"
3894 case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3899 $as_echo "$ac_try_echo") >&5
3900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3901 ac_status=$?
3902 grep -v '^ *+' conftest.er1 >conftest.err
3903 rm -f conftest.er1
3904 cat conftest.err >&5
3905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } >/dev/null && {
3907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3909 }; then
3910 ac_header_preproc=yes
3911 else
3912 $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_header_preproc=no
3918 rm -f conftest.err conftest.$ac_ext
3919 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3920 $as_echo "$ac_header_preproc" >&6; }
3922 # So? What about this header?
3923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3924 yes:no: )
3925 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3926 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3927 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3928 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3929 ac_header_preproc=yes
3931 no:yes:* )
3932 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3933 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3934 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3935 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3936 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3937 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3938 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3939 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3940 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3941 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3942 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3943 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3946 esac
3947 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3948 $as_echo_n "checking for minix/config.h... " >&6; }
3949 if test "${ac_cv_header_minix_config_h+set}" = set; then
3950 $as_echo_n "(cached) " >&6
3951 else
3952 ac_cv_header_minix_config_h=$ac_header_preproc
3954 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3955 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3958 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3959 MINIX=yes
3960 else
3961 MINIX=
3965 if test "$MINIX" = yes; then
3967 cat >>confdefs.h <<\_ACEOF
3968 #define _POSIX_SOURCE 1
3969 _ACEOF
3972 cat >>confdefs.h <<\_ACEOF
3973 #define _POSIX_1_SOURCE 2
3974 _ACEOF
3977 cat >>confdefs.h <<\_ACEOF
3978 #define _MINIX 1
3979 _ACEOF
3985 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3986 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3987 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3988 $as_echo_n "(cached) " >&6
3989 else
3990 cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h. */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3997 # define __EXTENSIONS__ 1
3998 $ac_includes_default
4000 main ()
4004 return 0;
4006 _ACEOF
4007 rm -f conftest.$ac_objext
4008 if { (ac_try="$ac_compile"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4014 $as_echo "$ac_try_echo") >&5
4015 (eval "$ac_compile") 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && {
4022 test -z "$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 } && test -s conftest.$ac_objext; then
4025 ac_cv_safe_to_define___extensions__=yes
4026 else
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 ac_cv_safe_to_define___extensions__=no
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4036 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4037 test $ac_cv_safe_to_define___extensions__ = yes &&
4038 cat >>confdefs.h <<\_ACEOF
4039 #define __EXTENSIONS__ 1
4040 _ACEOF
4042 cat >>confdefs.h <<\_ACEOF
4043 #define _ALL_SOURCE 1
4044 _ACEOF
4046 cat >>confdefs.h <<\_ACEOF
4047 #define _GNU_SOURCE 1
4048 _ACEOF
4050 cat >>confdefs.h <<\_ACEOF
4051 #define _POSIX_PTHREAD_SEMANTICS 1
4052 _ACEOF
4054 cat >>confdefs.h <<\_ACEOF
4055 #define _TANDEM_SOURCE 1
4056 _ACEOF
4060 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4061 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4062 if test "${ac_cv_c_bigendian+set}" = set; then
4063 $as_echo_n "(cached) " >&6
4064 else
4065 ac_cv_c_bigendian=unknown
4066 # See if we're dealing with a universal compiler.
4067 cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h. */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073 #ifndef __APPLE_CC__
4074 not a universal capable compiler
4075 #endif
4076 typedef int dummy;
4078 _ACEOF
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4081 case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084 esac
4085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4086 $as_echo "$ac_try_echo") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } && {
4094 test -z "$ac_c_werror_flag" ||
4095 test ! -s conftest.err
4096 } && test -s conftest.$ac_objext; then
4098 # Check for potential -arch flags. It is not universal unless
4099 # there are some -arch flags. Note that *ppc* also matches
4100 # ppc64. This check is also rather less than ideal.
4101 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
4102 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
4103 esac
4104 else
4105 $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 if test $ac_cv_c_bigendian = unknown; then
4113 # See if sys/param.h defines the BYTE_ORDER macro.
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <sys/types.h>
4121 #include <sys/param.h>
4124 main ()
4126 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4127 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4128 && LITTLE_ENDIAN)
4129 bogus endian macros
4130 #endif
4133 return 0;
4135 _ACEOF
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4138 case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141 esac
4142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4143 $as_echo "$ac_try_echo") >&5
4144 (eval "$ac_compile") 2>conftest.er1
4145 ac_status=$?
4146 grep -v '^ *+' conftest.er1 >conftest.err
4147 rm -f conftest.er1
4148 cat conftest.err >&5
4149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } && {
4151 test -z "$ac_c_werror_flag" ||
4152 test ! -s conftest.err
4153 } && test -s conftest.$ac_objext; then
4154 # It does; now see whether it defined to BIG_ENDIAN or not.
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 #include <sys/types.h>
4162 #include <sys/param.h>
4165 main ()
4167 #if BYTE_ORDER != BIG_ENDIAN
4168 not big endian
4169 #endif
4172 return 0;
4174 _ACEOF
4175 rm -f conftest.$ac_objext
4176 if { (ac_try="$ac_compile"
4177 case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4180 esac
4181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4182 $as_echo "$ac_try_echo") >&5
4183 (eval "$ac_compile") 2>conftest.er1
4184 ac_status=$?
4185 grep -v '^ *+' conftest.er1 >conftest.err
4186 rm -f conftest.er1
4187 cat conftest.err >&5
4188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } && {
4190 test -z "$ac_c_werror_flag" ||
4191 test ! -s conftest.err
4192 } && test -s conftest.$ac_objext; then
4193 ac_cv_c_bigendian=yes
4194 else
4195 $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 ac_cv_c_bigendian=no
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 else
4203 $as_echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 if test $ac_cv_c_bigendian = unknown; then
4212 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4213 cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h. */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219 #include <limits.h>
4222 main ()
4224 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4225 bogus endian macros
4226 #endif
4229 return 0;
4231 _ACEOF
4232 rm -f conftest.$ac_objext
4233 if { (ac_try="$ac_compile"
4234 case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237 esac
4238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4239 $as_echo "$ac_try_echo") >&5
4240 (eval "$ac_compile") 2>conftest.er1
4241 ac_status=$?
4242 grep -v '^ *+' conftest.er1 >conftest.err
4243 rm -f conftest.er1
4244 cat conftest.err >&5
4245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } && {
4247 test -z "$ac_c_werror_flag" ||
4248 test ! -s conftest.err
4249 } && test -s conftest.$ac_objext; then
4250 # It does; now see whether it defined to _BIG_ENDIAN or not.
4251 cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h. */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 #include <limits.h>
4260 main ()
4262 #ifndef _BIG_ENDIAN
4263 not big endian
4264 #endif
4267 return 0;
4269 _ACEOF
4270 rm -f conftest.$ac_objext
4271 if { (ac_try="$ac_compile"
4272 case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275 esac
4276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4277 $as_echo "$ac_try_echo") >&5
4278 (eval "$ac_compile") 2>conftest.er1
4279 ac_status=$?
4280 grep -v '^ *+' conftest.er1 >conftest.err
4281 rm -f conftest.er1
4282 cat conftest.err >&5
4283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && {
4285 test -z "$ac_c_werror_flag" ||
4286 test ! -s conftest.err
4287 } && test -s conftest.$ac_objext; then
4288 ac_cv_c_bigendian=yes
4289 else
4290 $as_echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 ac_cv_c_bigendian=no
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 else
4298 $as_echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 if test $ac_cv_c_bigendian = unknown; then
4307 # Compile a test program.
4308 if test "$cross_compiling" = yes; then
4309 # Try to guess by grepping values from an object file.
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h. */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 short int ascii_mm[] =
4317 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4318 short int ascii_ii[] =
4319 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4320 int use_ascii (int i) {
4321 return ascii_mm[i] + ascii_ii[i];
4323 short int ebcdic_ii[] =
4324 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4325 short int ebcdic_mm[] =
4326 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4327 int use_ebcdic (int i) {
4328 return ebcdic_mm[i] + ebcdic_ii[i];
4330 extern int foo;
4333 main ()
4335 return use_ascii (foo) == use_ebcdic (foo);
4337 return 0;
4339 _ACEOF
4340 rm -f conftest.$ac_objext
4341 if { (ac_try="$ac_compile"
4342 case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345 esac
4346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4347 $as_echo "$ac_try_echo") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } && {
4355 test -z "$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 } && test -s conftest.$ac_objext; then
4358 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4359 ac_cv_c_bigendian=yes
4361 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4362 if test "$ac_cv_c_bigendian" = unknown; then
4363 ac_cv_c_bigendian=no
4364 else
4365 # finding both strings is unlikely to happen, but who knows?
4366 ac_cv_c_bigendian=unknown
4369 else
4370 $as_echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 else
4378 cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h. */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 $ac_includes_default
4386 main ()
4389 /* Are we little or big endian? From Harbison&Steele. */
4390 union
4392 long int l;
4393 char c[sizeof (long int)];
4394 } u;
4395 u.l = 1;
4396 return u.c[sizeof (long int) - 1] == 1;
4399 return 0;
4401 _ACEOF
4402 rm -f conftest$ac_exeext
4403 if { (ac_try="$ac_link"
4404 case "(($ac_try" in
4405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4407 esac
4408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4409 $as_echo "$ac_try_echo") >&5
4410 (eval "$ac_link") 2>&5
4411 ac_status=$?
4412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4414 { (case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417 esac
4418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4419 $as_echo "$ac_try_echo") >&5
4420 (eval "$ac_try") 2>&5
4421 ac_status=$?
4422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; }; then
4424 ac_cv_c_bigendian=no
4425 else
4426 $as_echo "$as_me: program exited with status $ac_status" >&5
4427 $as_echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 ( exit $ac_status )
4431 ac_cv_c_bigendian=yes
4433 rm -rf conftest.dSYM
4434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4440 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4441 $as_echo "$ac_cv_c_bigendian" >&6; }
4442 case $ac_cv_c_bigendian in #(
4443 yes)
4444 cat >>confdefs.h <<\_ACEOF
4445 #define WORDS_BIGENDIAN 1
4446 _ACEOF
4447 ;; #(
4449 ;; #(
4450 universal)
4452 cat >>confdefs.h <<\_ACEOF
4453 #define AC_APPLE_UNIVERSAL_BUILD 1
4454 _ACEOF
4456 ;; #(
4458 { { $as_echo "$as_me:$LINENO: error: unknown endianness
4459 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4460 $as_echo "$as_me: error: unknown endianness
4461 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4462 { (exit 1); exit 1; }; } ;;
4463 esac
4465 { $as_echo "$as_me:$LINENO: checking for inline" >&5
4466 $as_echo_n "checking for inline... " >&6; }
4467 if test "${ac_cv_c_inline+set}" = set; then
4468 $as_echo_n "(cached) " >&6
4469 else
4470 ac_cv_c_inline=no
4471 for ac_kw in inline __inline__ __inline; do
4472 cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h. */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 #ifndef __cplusplus
4479 typedef int foo_t;
4480 static $ac_kw foo_t static_foo () {return 0; }
4481 $ac_kw foo_t foo () {return 0; }
4482 #endif
4484 _ACEOF
4485 rm -f conftest.$ac_objext
4486 if { (ac_try="$ac_compile"
4487 case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490 esac
4491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4492 $as_echo "$ac_try_echo") >&5
4493 (eval "$ac_compile") 2>conftest.er1
4494 ac_status=$?
4495 grep -v '^ *+' conftest.er1 >conftest.err
4496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && {
4500 test -z "$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4502 } && test -s conftest.$ac_objext; then
4503 ac_cv_c_inline=$ac_kw
4504 else
4505 $as_echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 test "$ac_cv_c_inline" != no && break
4513 done
4516 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4517 $as_echo "$ac_cv_c_inline" >&6; }
4520 case $ac_cv_c_inline in
4521 inline | yes) ;;
4523 case $ac_cv_c_inline in
4524 no) ac_val=;;
4525 *) ac_val=$ac_cv_c_inline;;
4526 esac
4527 cat >>confdefs.h <<_ACEOF
4528 #ifndef __cplusplus
4529 #define inline $ac_val
4530 #endif
4531 _ACEOF
4533 esac
4536 saved_CFLAGS="$CFLAGS";
4537 c99_init=no
4538 if test x"$c99_init" = x"no"; then
4539 { $as_echo "$as_me:$LINENO: checking for C99 designated initializers" >&5
4540 $as_echo_n "checking for C99 designated initializers... " >&6; }
4541 CFLAGS="$saved_CFLAGS";
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h. */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 #include <stdio.h>
4550 main ()
4552 struct foo {int x;char y;};
4553 struct foo bar = { .y = 'X', .x = 1 };
4556 return 0;
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (ac_try="$ac_compile"
4561 case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564 esac
4565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4566 $as_echo "$ac_try_echo") >&5
4567 (eval "$ac_compile") 2>conftest.er1
4568 ac_status=$?
4569 grep -v '^ *+' conftest.er1 >conftest.err
4570 rm -f conftest.er1
4571 cat conftest.err >&5
4572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } && {
4574 test -z "$ac_c_werror_flag" ||
4575 test ! -s conftest.err
4576 } && test -s conftest.$ac_objext; then
4577 { $as_echo "$as_me:$LINENO: result: yes" >&5
4578 $as_echo "yes" >&6; }; c99_init=yes
4579 else
4580 $as_echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 { $as_echo "$as_me:$LINENO: result: no" >&5
4584 $as_echo "no" >&6; }
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 if test x"$c99_init" = x"no"; then
4590 { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -AC99" >&5
4591 $as_echo_n "checking for C99 designated initializers with -AC99... " >&6; }
4592 CFLAGS="$saved_CFLAGS -AC99";
4593 cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h. */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 #include <stdio.h>
4601 main ()
4603 struct foo {int x;char y;};
4604 struct foo bar = { .y = 'X', .x = 1 };
4607 return 0;
4609 _ACEOF
4610 rm -f conftest.$ac_objext
4611 if { (ac_try="$ac_compile"
4612 case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615 esac
4616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4617 $as_echo "$ac_try_echo") >&5
4618 (eval "$ac_compile") 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } && {
4625 test -z "$ac_c_werror_flag" ||
4626 test ! -s conftest.err
4627 } && test -s conftest.$ac_objext; then
4628 { $as_echo "$as_me:$LINENO: result: yes" >&5
4629 $as_echo "yes" >&6; }; c99_init=yes
4630 else
4631 $as_echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 { $as_echo "$as_me:$LINENO: result: no" >&5
4635 $as_echo "no" >&6; }
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 if test x"$c99_init" = x"no"; then
4641 { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=extc99" >&5
4642 $as_echo_n "checking for C99 designated initializers with -qlanglvl=extc99... " >&6; }
4643 CFLAGS="$saved_CFLAGS -qlanglvl=extc99";
4644 cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h. */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 #include <stdio.h>
4652 main ()
4654 struct foo {int x;char y;};
4655 struct foo bar = { .y = 'X', .x = 1 };
4658 return 0;
4660 _ACEOF
4661 rm -f conftest.$ac_objext
4662 if { (ac_try="$ac_compile"
4663 case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666 esac
4667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4668 $as_echo "$ac_try_echo") >&5
4669 (eval "$ac_compile") 2>conftest.er1
4670 ac_status=$?
4671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
4674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && {
4676 test -z "$ac_c_werror_flag" ||
4677 test ! -s conftest.err
4678 } && test -s conftest.$ac_objext; then
4679 { $as_echo "$as_me:$LINENO: result: yes" >&5
4680 $as_echo "yes" >&6; }; c99_init=yes
4681 else
4682 $as_echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4685 { $as_echo "$as_me:$LINENO: result: no" >&5
4686 $as_echo "no" >&6; }
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 if test x"$c99_init" = x"no"; then
4692 { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=stdc99" >&5
4693 $as_echo_n "checking for C99 designated initializers with -qlanglvl=stdc99... " >&6; }
4694 CFLAGS="$saved_CFLAGS -qlanglvl=stdc99";
4695 cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h. */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 #include <stdio.h>
4703 main ()
4705 struct foo {int x;char y;};
4706 struct foo bar = { .y = 'X', .x = 1 };
4709 return 0;
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (ac_try="$ac_compile"
4714 case "(($ac_try" in
4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4717 esac
4718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4719 $as_echo "$ac_try_echo") >&5
4720 (eval "$ac_compile") 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } && {
4727 test -z "$ac_c_werror_flag" ||
4728 test ! -s conftest.err
4729 } && test -s conftest.$ac_objext; then
4730 { $as_echo "$as_me:$LINENO: result: yes" >&5
4731 $as_echo "yes" >&6; }; c99_init=yes
4732 else
4733 $as_echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 { $as_echo "$as_me:$LINENO: result: no" >&5
4737 $as_echo "no" >&6; }
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 if test x"$c99_init" = x"no"; then
4743 { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -c99" >&5
4744 $as_echo_n "checking for C99 designated initializers with -c99... " >&6; }
4745 CFLAGS="$saved_CFLAGS -c99"
4746 cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h. */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4752 #include <stdio.h>
4754 main ()
4756 struct foo {int x;char y;};
4757 struct foo bar = { .y = 'X', .x = 1 };
4760 return 0;
4762 _ACEOF
4763 rm -f conftest.$ac_objext
4764 if { (ac_try="$ac_compile"
4765 case "(($ac_try" in
4766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767 *) ac_try_echo=$ac_try;;
4768 esac
4769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4770 $as_echo "$ac_try_echo") >&5
4771 (eval "$ac_compile") 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } && {
4778 test -z "$ac_c_werror_flag" ||
4779 test ! -s conftest.err
4780 } && test -s conftest.$ac_objext; then
4781 { $as_echo "$as_me:$LINENO: result: yes" >&5
4782 $as_echo "yes" >&6; }; c99_init=yes
4783 else
4784 $as_echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 { $as_echo "$as_me:$LINENO: result: no" >&5
4788 $as_echo "no" >&6; }
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 if test "`uname`" = "HP-UX"; then
4795 if test "$ac_cv_c_compiler_gnu" = no; then
4796 # special override for broken HP-UX compiler - I can't find a way to test
4797 # this properly (its a compiler bug)
4798 CFLAGS="$CFLAGS -AC99";
4799 c99_init=yes;
4803 if test x"$c99_init" = x"yes"; then
4804 saved_CFLAGS=""
4806 else
4807 CFLAGS="$saved_CFLAGS"
4808 saved_CFLAGS=""
4809 { $as_echo "$as_me:$LINENO: WARNING: c99 structure initializer are not supported" >&5
4810 $as_echo "$as_me: WARNING: c99 structure initializer are not supported" >&2;}
4814 # Find a good install program. We prefer a C program (faster),
4815 # so one script is as good as another. But avoid the broken or
4816 # incompatible versions:
4817 # SysV /etc/install, /usr/sbin/install
4818 # SunOS /usr/etc/install
4819 # IRIX /sbin/install
4820 # AIX /bin/install
4821 # AmigaOS /C/install, which installs bootblocks on floppy discs
4822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4825 # OS/2's system install, which has a completely different semantic
4826 # ./install, which can be erroneously created by make from ./install.sh.
4827 # Reject install programs that cannot install multiple files.
4828 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4829 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4830 if test -z "$INSTALL"; then
4831 if test "${ac_cv_path_install+set}" = set; then
4832 $as_echo_n "(cached) " >&6
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 # Account for people who put trailing slashes in PATH elements.
4840 case $as_dir/ in
4841 ./ | .// | /cC/* | \
4842 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4843 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4844 /usr/ucb/* ) ;;
4846 # OSF1 and SCO ODT 3.0 have their own names for install.
4847 # Don't use installbsd from OSF since it installs stuff as root
4848 # by default.
4849 for ac_prog in ginstall scoinst install; do
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4852 if test $ac_prog = install &&
4853 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4854 # AIX install. It has an incompatible calling convention.
4856 elif test $ac_prog = install &&
4857 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4858 # program-specific install script used by HP pwplus--don't use.
4860 else
4861 rm -rf conftest.one conftest.two conftest.dir
4862 echo one > conftest.one
4863 echo two > conftest.two
4864 mkdir conftest.dir
4865 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4866 test -s conftest.one && test -s conftest.two &&
4867 test -s conftest.dir/conftest.one &&
4868 test -s conftest.dir/conftest.two
4869 then
4870 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4871 break 3
4875 done
4876 done
4878 esac
4880 done
4881 IFS=$as_save_IFS
4883 rm -rf conftest.one conftest.two conftest.dir
4886 if test "${ac_cv_path_install+set}" = set; then
4887 INSTALL=$ac_cv_path_install
4888 else
4889 # As a last resort, use the slow shell script. Don't cache a
4890 # value for INSTALL within a source directory, because that will
4891 # break other packages using the cache if that directory is
4892 # removed, or if the value is a relative name.
4893 INSTALL=$ac_install_sh
4896 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4897 $as_echo "$INSTALL" >&6; }
4899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4900 # It thinks the first close brace ends the variable substitution.
4901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4908 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
4909 $as_echo_n "checking for library containing strerror... " >&6; }
4910 if test "${ac_cv_search_strerror+set}" = set; then
4911 $as_echo_n "(cached) " >&6
4912 else
4913 ac_func_search_save_LIBS=$LIBS
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4921 /* Override any GCC internal prototype to avoid an error.
4922 Use char because int might match the return type of a GCC
4923 builtin and then its argument prototype would still apply. */
4924 #ifdef __cplusplus
4925 extern "C"
4926 #endif
4927 char strerror ();
4929 main ()
4931 return strerror ();
4933 return 0;
4935 _ACEOF
4936 for ac_lib in '' cposix; do
4937 if test -z "$ac_lib"; then
4938 ac_res="none required"
4939 else
4940 ac_res=-l$ac_lib
4941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4943 rm -f conftest.$ac_objext conftest$ac_exeext
4944 if { (ac_try="$ac_link"
4945 case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948 esac
4949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4950 $as_echo "$ac_try_echo") >&5
4951 (eval "$ac_link") 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } && {
4958 test -z "$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4960 } && test -s conftest$ac_exeext && {
4961 test "$cross_compiling" = yes ||
4962 $as_test_x conftest$ac_exeext
4963 }; then
4964 ac_cv_search_strerror=$ac_res
4965 else
4966 $as_echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4972 rm -rf conftest.dSYM
4973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4974 conftest$ac_exeext
4975 if test "${ac_cv_search_strerror+set}" = set; then
4976 break
4978 done
4979 if test "${ac_cv_search_strerror+set}" = set; then
4981 else
4982 ac_cv_search_strerror=no
4984 rm conftest.$ac_ext
4985 LIBS=$ac_func_search_save_LIBS
4987 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4988 $as_echo "$ac_cv_search_strerror" >&6; }
4989 ac_res=$ac_cv_search_strerror
4990 if test "$ac_res" != no; then
4991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4999 cat >>confdefs.h <<\EOF
5000 #ifndef _XOPEN_SOURCE_EXTENDED
5001 #define _XOPEN_SOURCE_EXTENDED 1
5002 #endif
5006 # Check whether --enable-largefile was given.
5007 if test "${enable_largefile+set}" = set; then
5008 enableval=$enable_largefile;
5011 if test "$enable_largefile" != no; then
5013 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5014 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5015 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5016 $as_echo_n "(cached) " >&6
5017 else
5018 ac_cv_sys_largefile_CC=no
5019 if test "$GCC" != yes; then
5020 ac_save_CC=$CC
5021 while :; do
5022 # IRIX 6.2 and later do not support large files by default,
5023 # so use the C compiler's -n32 option if that helps.
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 #include <sys/types.h>
5031 /* Check that off_t can represent 2**63 - 1 correctly.
5032 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5033 since some C++ compilers masquerading as C compilers
5034 incorrectly reject 9223372036854775807. */
5035 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5036 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5037 && LARGE_OFF_T % 2147483647 == 1)
5038 ? 1 : -1];
5040 main ()
5044 return 0;
5046 _ACEOF
5047 rm -f conftest.$ac_objext
5048 if { (ac_try="$ac_compile"
5049 case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052 esac
5053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5054 $as_echo "$ac_try_echo") >&5
5055 (eval "$ac_compile") 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && {
5062 test -z "$ac_c_werror_flag" ||
5063 test ! -s conftest.err
5064 } && test -s conftest.$ac_objext; then
5065 break
5066 else
5067 $as_echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5073 rm -f core conftest.err conftest.$ac_objext
5074 CC="$CC -n32"
5075 rm -f conftest.$ac_objext
5076 if { (ac_try="$ac_compile"
5077 case "(($ac_try" in
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5080 esac
5081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5082 $as_echo "$ac_try_echo") >&5
5083 (eval "$ac_compile") 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } && {
5090 test -z "$ac_c_werror_flag" ||
5091 test ! -s conftest.err
5092 } && test -s conftest.$ac_objext; then
5093 ac_cv_sys_largefile_CC=' -n32'; break
5094 else
5095 $as_echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5101 rm -f core conftest.err conftest.$ac_objext
5102 break
5103 done
5104 CC=$ac_save_CC
5105 rm -f conftest.$ac_ext
5108 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5109 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5110 if test "$ac_cv_sys_largefile_CC" != no; then
5111 CC=$CC$ac_cv_sys_largefile_CC
5114 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5115 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5116 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5117 $as_echo_n "(cached) " >&6
5118 else
5119 while :; do
5120 cat >conftest.$ac_ext <<_ACEOF
5121 /* confdefs.h. */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 #include <sys/types.h>
5127 /* Check that off_t can represent 2**63 - 1 correctly.
5128 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5129 since some C++ compilers masquerading as C compilers
5130 incorrectly reject 9223372036854775807. */
5131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5132 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5133 && LARGE_OFF_T % 2147483647 == 1)
5134 ? 1 : -1];
5136 main ()
5140 return 0;
5142 _ACEOF
5143 rm -f conftest.$ac_objext
5144 if { (ac_try="$ac_compile"
5145 case "(($ac_try" in
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5148 esac
5149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5150 $as_echo "$ac_try_echo") >&5
5151 (eval "$ac_compile") 2>conftest.er1
5152 ac_status=$?
5153 grep -v '^ *+' conftest.er1 >conftest.err
5154 rm -f conftest.er1
5155 cat conftest.err >&5
5156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } && {
5158 test -z "$ac_c_werror_flag" ||
5159 test ! -s conftest.err
5160 } && test -s conftest.$ac_objext; then
5161 ac_cv_sys_file_offset_bits=no; break
5162 else
5163 $as_echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h. */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 #define _FILE_OFFSET_BITS 64
5177 #include <sys/types.h>
5178 /* Check that off_t can represent 2**63 - 1 correctly.
5179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5180 since some C++ compilers masquerading as C compilers
5181 incorrectly reject 9223372036854775807. */
5182 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5184 && LARGE_OFF_T % 2147483647 == 1)
5185 ? 1 : -1];
5187 main ()
5191 return 0;
5193 _ACEOF
5194 rm -f conftest.$ac_objext
5195 if { (ac_try="$ac_compile"
5196 case "(($ac_try" in
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5199 esac
5200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5201 $as_echo "$ac_try_echo") >&5
5202 (eval "$ac_compile") 2>conftest.er1
5203 ac_status=$?
5204 grep -v '^ *+' conftest.er1 >conftest.err
5205 rm -f conftest.er1
5206 cat conftest.err >&5
5207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } && {
5209 test -z "$ac_c_werror_flag" ||
5210 test ! -s conftest.err
5211 } && test -s conftest.$ac_objext; then
5212 ac_cv_sys_file_offset_bits=64; break
5213 else
5214 $as_echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 ac_cv_sys_file_offset_bits=unknown
5222 break
5223 done
5225 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5226 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5227 case $ac_cv_sys_file_offset_bits in #(
5228 no | unknown) ;;
5230 cat >>confdefs.h <<_ACEOF
5231 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5232 _ACEOF
5234 esac
5235 rm -rf conftest*
5236 if test $ac_cv_sys_file_offset_bits = unknown; then
5237 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5238 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5239 if test "${ac_cv_sys_large_files+set}" = set; then
5240 $as_echo_n "(cached) " >&6
5241 else
5242 while :; do
5243 cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h. */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 #include <sys/types.h>
5250 /* Check that off_t can represent 2**63 - 1 correctly.
5251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5252 since some C++ compilers masquerading as C compilers
5253 incorrectly reject 9223372036854775807. */
5254 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5256 && LARGE_OFF_T % 2147483647 == 1)
5257 ? 1 : -1];
5259 main ()
5263 return 0;
5265 _ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (ac_try="$ac_compile"
5268 case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5273 $as_echo "$ac_try_echo") >&5
5274 (eval "$ac_compile") 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } && {
5281 test -z "$ac_c_werror_flag" ||
5282 test ! -s conftest.err
5283 } && test -s conftest.$ac_objext; then
5284 ac_cv_sys_large_files=no; break
5285 else
5286 $as_echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #define _LARGE_FILES 1
5300 #include <sys/types.h>
5301 /* Check that off_t can represent 2**63 - 1 correctly.
5302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5303 since some C++ compilers masquerading as C compilers
5304 incorrectly reject 9223372036854775807. */
5305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5307 && LARGE_OFF_T % 2147483647 == 1)
5308 ? 1 : -1];
5310 main ()
5314 return 0;
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (ac_try="$ac_compile"
5319 case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322 esac
5323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5324 $as_echo "$ac_try_echo") >&5
5325 (eval "$ac_compile") 2>conftest.er1
5326 ac_status=$?
5327 grep -v '^ *+' conftest.er1 >conftest.err
5328 rm -f conftest.er1
5329 cat conftest.err >&5
5330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest.$ac_objext; then
5335 ac_cv_sys_large_files=1; break
5336 else
5337 $as_echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 ac_cv_sys_large_files=unknown
5345 break
5346 done
5348 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5349 $as_echo "$ac_cv_sys_large_files" >&6; }
5350 case $ac_cv_sys_large_files in #(
5351 no | unknown) ;;
5353 cat >>confdefs.h <<_ACEOF
5354 #define _LARGE_FILES $ac_cv_sys_large_files
5355 _ACEOF
5357 esac
5358 rm -rf conftest*
5363 case "$host_os" in
5364 *irix6*) cat >> confdefs.h <<\EOF
5365 #include <standards.h>
5369 *hpux*)
5370 # mmap on HPUX is completely broken...
5372 cat >>confdefs.h <<\_ACEOF
5373 #define MMAP_BLACKLIST 1
5374 _ACEOF
5376 if test "`uname -r`" = "B.11.00" -o "`uname -r`" = "B.11.11"; then
5377 { $as_echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.00/11.11 header bug workaround" >&5
5378 $as_echo "$as_me: WARNING: Enabling HPUX 11.00/11.11 header bug workaround" >&2;}
5379 CFLAGS="$CFLAGS -Dpread=pread64 -Dpwrite=pwrite64"
5381 if test "`uname -r`" = "B.11.23"; then
5382 { $as_echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&5
5383 $as_echo "$as_me: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&2;}
5384 CFLAGS="$CFLAGS -D_MACHINE_SYS_GETPPDP_INCLUDED"
5387 *aix*)
5389 cat >>confdefs.h <<\_ACEOF
5390 #define BROKEN_STRNDUP 1
5391 _ACEOF
5394 cat >>confdefs.h <<\_ACEOF
5395 #define BROKEN_STRNLEN 1
5396 _ACEOF
5398 if test "${GCC}" != "yes"; then
5399 ## for funky AIX compiler using strncpy()
5400 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
5403 *osf*)
5404 # this brings in socklen_t
5409 cat >>confdefs.h <<\EOF
5410 #ifndef _XOPEN_SOURCE
5411 #define _XOPEN_SOURCE 600
5412 #endif
5419 cat >>confdefs.h <<\EOF
5420 #ifndef _OSF_SOURCE
5421 #define _OSF_SOURCE 1
5422 #endif
5427 # VOS may need to have POSIX support and System V compatibility enabled.
5429 *vos*)
5430 case "$CFLAGS" in
5431 *-D_POSIX_C_SOURCE*);;
5433 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L"
5435 cat >>confdefs.h <<\_ACEOF
5436 #define _POSIX_C_SOURCE 200112L
5437 _ACEOF
5440 esac
5441 case "$CFLAGS" in
5442 *-D_SYSV*|*-D_SVID_SOURCE*);;
5444 CFLAGS="$CFLAGS -D_SYSV"
5446 cat >>confdefs.h <<\_ACEOF
5447 #define _SYSV 1
5448 _ACEOF
5451 esac
5453 esac
5458 for ac_header in standards.h
5460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5462 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5463 $as_echo_n "checking for $ac_header... " >&6; }
5464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5465 $as_echo_n "(cached) " >&6
5467 ac_res=`eval 'as_val=${'$as_ac_Header'}
5468 $as_echo "$as_val"'`
5469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5470 $as_echo "$ac_res" >&6; }
5471 else
5472 # Is the header compilable?
5473 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5474 $as_echo_n "checking $ac_header usability... " >&6; }
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 #include <$ac_header>
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5491 $as_echo "$ac_try_echo") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5493 ac_status=$?
5494 grep -v '^ *+' conftest.er1 >conftest.err
5495 rm -f conftest.er1
5496 cat conftest.err >&5
5497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_c_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.$ac_objext; then
5502 ac_header_compiler=yes
5503 else
5504 $as_echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 ac_header_compiler=no
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5512 $as_echo "$ac_header_compiler" >&6; }
5514 # Is the header present?
5515 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5516 $as_echo_n "checking $ac_header presence... " >&6; }
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 #include <$ac_header>
5524 _ACEOF
5525 if { (ac_try="$ac_cpp conftest.$ac_ext"
5526 case "(($ac_try" in
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5529 esac
5530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5531 $as_echo "$ac_try_echo") >&5
5532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } >/dev/null && {
5539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 }; then
5542 ac_header_preproc=yes
5543 else
5544 $as_echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5547 ac_header_preproc=no
5550 rm -f conftest.err conftest.$ac_ext
5551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5552 $as_echo "$ac_header_preproc" >&6; }
5554 # So? What about this header?
5555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5556 yes:no: )
5557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5558 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5561 ac_header_preproc=yes
5563 no:yes:* )
5564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5565 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5567 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5569 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5571 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5575 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5578 esac
5579 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5580 $as_echo_n "checking for $ac_header... " >&6; }
5581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5582 $as_echo_n "(cached) " >&6
5583 else
5584 eval "$as_ac_Header=\$ac_header_preproc"
5586 ac_res=`eval 'as_val=${'$as_ac_Header'}
5587 $as_echo "$as_val"'`
5588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5589 $as_echo "$ac_res" >&6; }
5592 as_val=`eval 'as_val=${'$as_ac_Header'}
5593 $as_echo "$as_val"'`
5594 if test "x$as_val" = x""yes; then
5595 cat >>confdefs.h <<_ACEOF
5596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5597 _ACEOF
5601 done
5604 # Solaris needs HAVE_LONG_LONG defined
5605 { $as_echo "$as_me:$LINENO: checking for long long" >&5
5606 $as_echo_n "checking for long long... " >&6; }
5607 if test "${ac_cv_type_long_long+set}" = set; then
5608 $as_echo_n "(cached) " >&6
5609 else
5610 ac_cv_type_long_long=no
5611 cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h. */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5617 $ac_includes_default
5619 main ()
5621 if (sizeof (long long))
5622 return 0;
5624 return 0;
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5629 case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5634 $as_echo "$ac_try_echo") >&5
5635 (eval "$ac_compile") 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && {
5642 test -z "$ac_c_werror_flag" ||
5643 test ! -s conftest.err
5644 } && test -s conftest.$ac_objext; then
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 $ac_includes_default
5653 main ()
5655 if (sizeof ((long long)))
5656 return 0;
5658 return 0;
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5663 case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666 esac
5667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5668 $as_echo "$ac_try_echo") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
5680 else
5681 $as_echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 ac_cv_type_long_long=yes
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 else
5689 $as_echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5698 $as_echo "$ac_cv_type_long_long" >&6; }
5699 if test "x$ac_cv_type_long_long" = x""yes; then
5701 cat >>confdefs.h <<_ACEOF
5702 #define HAVE_LONG_LONG 1
5703 _ACEOF
5709 # The cast to long int works around a bug in the HP C Compiler
5710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5712 # This bug is HP SR number 8606223364.
5713 { $as_echo "$as_me:$LINENO: checking size of int" >&5
5714 $as_echo_n "checking size of int... " >&6; }
5715 if test "${ac_cv_sizeof_int+set}" = set; then
5716 $as_echo_n "(cached) " >&6
5717 else
5718 if test "$cross_compiling" = yes; then
5719 # Depending upon the size, compute the lo and hi bounds.
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 $ac_includes_default
5728 main ()
5730 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
5731 test_array [0] = 0
5734 return 0;
5736 _ACEOF
5737 rm -f conftest.$ac_objext
5738 if { (ac_try="$ac_compile"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744 $as_echo "$ac_try_echo") >&5
5745 (eval "$ac_compile") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest.$ac_objext; then
5755 ac_lo=0 ac_mid=0
5756 while :; do
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5765 main ()
5767 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5768 test_array [0] = 0
5771 return 0;
5773 _ACEOF
5774 rm -f conftest.$ac_objext
5775 if { (ac_try="$ac_compile"
5776 case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779 esac
5780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5781 $as_echo "$ac_try_echo") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5792 ac_hi=$ac_mid; break
5793 else
5794 $as_echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 ac_lo=`expr $ac_mid + 1`
5798 if test $ac_lo -le $ac_mid; then
5799 ac_lo= ac_hi=
5800 break
5802 ac_mid=`expr 2 '*' $ac_mid + 1`
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 done
5807 else
5808 $as_echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 $ac_includes_default
5819 main ()
5821 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
5822 test_array [0] = 0
5825 return 0;
5827 _ACEOF
5828 rm -f conftest.$ac_objext
5829 if { (ac_try="$ac_compile"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5835 $as_echo "$ac_try_echo") >&5
5836 (eval "$ac_compile") 2>conftest.er1
5837 ac_status=$?
5838 grep -v '^ *+' conftest.er1 >conftest.err
5839 rm -f conftest.er1
5840 cat conftest.err >&5
5841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } && {
5843 test -z "$ac_c_werror_flag" ||
5844 test ! -s conftest.err
5845 } && test -s conftest.$ac_objext; then
5846 ac_hi=-1 ac_mid=-1
5847 while :; do
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 $ac_includes_default
5856 main ()
5858 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
5859 test_array [0] = 0
5862 return 0;
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5867 case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870 esac
5871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5872 $as_echo "$ac_try_echo") >&5
5873 (eval "$ac_compile") 2>conftest.er1
5874 ac_status=$?
5875 grep -v '^ *+' conftest.er1 >conftest.err
5876 rm -f conftest.er1
5877 cat conftest.err >&5
5878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && {
5880 test -z "$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 } && test -s conftest.$ac_objext; then
5883 ac_lo=$ac_mid; break
5884 else
5885 $as_echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_hi=`expr '(' $ac_mid ')' - 1`
5889 if test $ac_mid -le $ac_hi; then
5890 ac_lo= ac_hi=
5891 break
5893 ac_mid=`expr 2 '*' $ac_mid`
5896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897 done
5898 else
5899 $as_echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 ac_lo= ac_hi=
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 # Binary search between lo and hi bounds.
5910 while test "x$ac_lo" != "x$ac_hi"; do
5911 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5920 main ()
5922 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
5923 test_array [0] = 0
5926 return 0;
5928 _ACEOF
5929 rm -f conftest.$ac_objext
5930 if { (ac_try="$ac_compile"
5931 case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934 esac
5935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936 $as_echo "$ac_try_echo") >&5
5937 (eval "$ac_compile") 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest.$ac_objext; then
5947 ac_hi=$ac_mid
5948 else
5949 $as_echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5952 ac_lo=`expr '(' $ac_mid ')' + 1`
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 done
5957 case $ac_lo in
5958 ?*) ac_cv_sizeof_int=$ac_lo;;
5959 '') if test "$ac_cv_type_int" = yes; then
5960 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5962 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5963 See \`config.log' for more details." >&5
5964 $as_echo "$as_me: error: cannot compute sizeof (int)
5965 See \`config.log' for more details." >&2;}
5966 { (exit 77); exit 77; }; }; }
5967 else
5968 ac_cv_sizeof_int=0
5969 fi ;;
5970 esac
5971 else
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 $ac_includes_default
5979 static long int longval () { return (long int) (sizeof (int)); }
5980 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
5981 #include <stdio.h>
5982 #include <stdlib.h>
5984 main ()
5987 FILE *f = fopen ("conftest.val", "w");
5988 if (! f)
5989 return 1;
5990 if (((long int) (sizeof (int))) < 0)
5992 long int i = longval ();
5993 if (i != ((long int) (sizeof (int))))
5994 return 1;
5995 fprintf (f, "%ld", i);
5997 else
5999 unsigned long int i = ulongval ();
6000 if (i != ((long int) (sizeof (int))))
6001 return 1;
6002 fprintf (f, "%lu", i);
6004 /* Do not output a trailing newline, as this causes \r\n confusion
6005 on some platforms. */
6006 return ferror (f) || fclose (f) != 0;
6009 return 0;
6011 _ACEOF
6012 rm -f conftest$ac_exeext
6013 if { (ac_try="$ac_link"
6014 case "(($ac_try" in
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6017 esac
6018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6019 $as_echo "$ac_try_echo") >&5
6020 (eval "$ac_link") 2>&5
6021 ac_status=$?
6022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027 esac
6028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6029 $as_echo "$ac_try_echo") >&5
6030 (eval "$ac_try") 2>&5
6031 ac_status=$?
6032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_sizeof_int=`cat conftest.val`
6035 else
6036 $as_echo "$as_me: program exited with status $ac_status" >&5
6037 $as_echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6040 ( exit $ac_status )
6041 if test "$ac_cv_type_int" = yes; then
6042 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6044 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6045 See \`config.log' for more details." >&5
6046 $as_echo "$as_me: error: cannot compute sizeof (int)
6047 See \`config.log' for more details." >&2;}
6048 { (exit 77); exit 77; }; }; }
6049 else
6050 ac_cv_sizeof_int=0
6053 rm -rf conftest.dSYM
6054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6056 rm -f conftest.val
6058 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6059 $as_echo "$ac_cv_sizeof_int" >&6; }
6063 cat >>confdefs.h <<_ACEOF
6064 #define SIZEOF_INT $ac_cv_sizeof_int
6065 _ACEOF
6068 # The cast to long int works around a bug in the HP C Compiler
6069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6071 # This bug is HP SR number 8606223364.
6072 { $as_echo "$as_me:$LINENO: checking size of char" >&5
6073 $as_echo_n "checking size of char... " >&6; }
6074 if test "${ac_cv_sizeof_char+set}" = set; then
6075 $as_echo_n "(cached) " >&6
6076 else
6077 if test "$cross_compiling" = yes; then
6078 # Depending upon the size, compute the lo and hi bounds.
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 $ac_includes_default
6087 main ()
6089 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
6090 test_array [0] = 0
6093 return 0;
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6098 case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101 esac
6102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6103 $as_echo "$ac_try_echo") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6114 ac_lo=0 ac_mid=0
6115 while :; do
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 $ac_includes_default
6124 main ()
6126 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
6127 test_array [0] = 0
6130 return 0;
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6135 case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138 esac
6139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6140 $as_echo "$ac_try_echo") >&5
6141 (eval "$ac_compile") 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && {
6148 test -z "$ac_c_werror_flag" ||
6149 test ! -s conftest.err
6150 } && test -s conftest.$ac_objext; then
6151 ac_hi=$ac_mid; break
6152 else
6153 $as_echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 ac_lo=`expr $ac_mid + 1`
6157 if test $ac_lo -le $ac_mid; then
6158 ac_lo= ac_hi=
6159 break
6161 ac_mid=`expr 2 '*' $ac_mid + 1`
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 done
6166 else
6167 $as_echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6170 cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h. */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 $ac_includes_default
6178 main ()
6180 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
6181 test_array [0] = 0
6184 return 0;
6186 _ACEOF
6187 rm -f conftest.$ac_objext
6188 if { (ac_try="$ac_compile"
6189 case "(($ac_try" in
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6192 esac
6193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6194 $as_echo "$ac_try_echo") >&5
6195 (eval "$ac_compile") 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest.$ac_objext; then
6205 ac_hi=-1 ac_mid=-1
6206 while :; do
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6215 main ()
6217 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
6218 test_array [0] = 0
6221 return 0;
6223 _ACEOF
6224 rm -f conftest.$ac_objext
6225 if { (ac_try="$ac_compile"
6226 case "(($ac_try" in
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6229 esac
6230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6231 $as_echo "$ac_try_echo") >&5
6232 (eval "$ac_compile") 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } && {
6239 test -z "$ac_c_werror_flag" ||
6240 test ! -s conftest.err
6241 } && test -s conftest.$ac_objext; then
6242 ac_lo=$ac_mid; break
6243 else
6244 $as_echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6247 ac_hi=`expr '(' $ac_mid ')' - 1`
6248 if test $ac_mid -le $ac_hi; then
6249 ac_lo= ac_hi=
6250 break
6252 ac_mid=`expr 2 '*' $ac_mid`
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 done
6257 else
6258 $as_echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6261 ac_lo= ac_hi=
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6268 # Binary search between lo and hi bounds.
6269 while test "x$ac_lo" != "x$ac_hi"; do
6270 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6271 cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 $ac_includes_default
6279 main ()
6281 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
6282 test_array [0] = 0
6285 return 0;
6287 _ACEOF
6288 rm -f conftest.$ac_objext
6289 if { (ac_try="$ac_compile"
6290 case "(($ac_try" in
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6293 esac
6294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6295 $as_echo "$ac_try_echo") >&5
6296 (eval "$ac_compile") 2>conftest.er1
6297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && {
6303 test -z "$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 } && test -s conftest.$ac_objext; then
6306 ac_hi=$ac_mid
6307 else
6308 $as_echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 ac_lo=`expr '(' $ac_mid ')' + 1`
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 done
6316 case $ac_lo in
6317 ?*) ac_cv_sizeof_char=$ac_lo;;
6318 '') if test "$ac_cv_type_char" = yes; then
6319 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6321 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
6322 See \`config.log' for more details." >&5
6323 $as_echo "$as_me: error: cannot compute sizeof (char)
6324 See \`config.log' for more details." >&2;}
6325 { (exit 77); exit 77; }; }; }
6326 else
6327 ac_cv_sizeof_char=0
6328 fi ;;
6329 esac
6330 else
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h. */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 $ac_includes_default
6338 static long int longval () { return (long int) (sizeof (char)); }
6339 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
6340 #include <stdio.h>
6341 #include <stdlib.h>
6343 main ()
6346 FILE *f = fopen ("conftest.val", "w");
6347 if (! f)
6348 return 1;
6349 if (((long int) (sizeof (char))) < 0)
6351 long int i = longval ();
6352 if (i != ((long int) (sizeof (char))))
6353 return 1;
6354 fprintf (f, "%ld", i);
6356 else
6358 unsigned long int i = ulongval ();
6359 if (i != ((long int) (sizeof (char))))
6360 return 1;
6361 fprintf (f, "%lu", i);
6363 /* Do not output a trailing newline, as this causes \r\n confusion
6364 on some platforms. */
6365 return ferror (f) || fclose (f) != 0;
6368 return 0;
6370 _ACEOF
6371 rm -f conftest$ac_exeext
6372 if { (ac_try="$ac_link"
6373 case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376 esac
6377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6378 $as_echo "$ac_try_echo") >&5
6379 (eval "$ac_link") 2>&5
6380 ac_status=$?
6381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6383 { (case "(($ac_try" in
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6386 esac
6387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6388 $as_echo "$ac_try_echo") >&5
6389 (eval "$ac_try") 2>&5
6390 ac_status=$?
6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 ac_cv_sizeof_char=`cat conftest.val`
6394 else
6395 $as_echo "$as_me: program exited with status $ac_status" >&5
6396 $as_echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6399 ( exit $ac_status )
6400 if test "$ac_cv_type_char" = yes; then
6401 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6403 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
6404 See \`config.log' for more details." >&5
6405 $as_echo "$as_me: error: cannot compute sizeof (char)
6406 See \`config.log' for more details." >&2;}
6407 { (exit 77); exit 77; }; }; }
6408 else
6409 ac_cv_sizeof_char=0
6412 rm -rf conftest.dSYM
6413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6415 rm -f conftest.val
6417 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6418 $as_echo "$ac_cv_sizeof_char" >&6; }
6422 cat >>confdefs.h <<_ACEOF
6423 #define SIZEOF_CHAR $ac_cv_sizeof_char
6424 _ACEOF
6427 # The cast to long int works around a bug in the HP C Compiler
6428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6430 # This bug is HP SR number 8606223364.
6431 { $as_echo "$as_me:$LINENO: checking size of short" >&5
6432 $as_echo_n "checking size of short... " >&6; }
6433 if test "${ac_cv_sizeof_short+set}" = set; then
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test "$cross_compiling" = yes; then
6437 # Depending upon the size, compute the lo and hi bounds.
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 $ac_includes_default
6446 main ()
6448 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
6449 test_array [0] = 0
6452 return 0;
6454 _ACEOF
6455 rm -f conftest.$ac_objext
6456 if { (ac_try="$ac_compile"
6457 case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6460 esac
6461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6462 $as_echo "$ac_try_echo") >&5
6463 (eval "$ac_compile") 2>conftest.er1
6464 ac_status=$?
6465 grep -v '^ *+' conftest.er1 >conftest.err
6466 rm -f conftest.er1
6467 cat conftest.err >&5
6468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } && {
6470 test -z "$ac_c_werror_flag" ||
6471 test ! -s conftest.err
6472 } && test -s conftest.$ac_objext; then
6473 ac_lo=0 ac_mid=0
6474 while :; do
6475 cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h. */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 $ac_includes_default
6483 main ()
6485 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
6486 test_array [0] = 0
6489 return 0;
6491 _ACEOF
6492 rm -f conftest.$ac_objext
6493 if { (ac_try="$ac_compile"
6494 case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497 esac
6498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6499 $as_echo "$ac_try_echo") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest.$ac_objext; then
6510 ac_hi=$ac_mid; break
6511 else
6512 $as_echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 ac_lo=`expr $ac_mid + 1`
6516 if test $ac_lo -le $ac_mid; then
6517 ac_lo= ac_hi=
6518 break
6520 ac_mid=`expr 2 '*' $ac_mid + 1`
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 done
6525 else
6526 $as_echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6529 cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h. */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 $ac_includes_default
6537 main ()
6539 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
6540 test_array [0] = 0
6543 return 0;
6545 _ACEOF
6546 rm -f conftest.$ac_objext
6547 if { (ac_try="$ac_compile"
6548 case "(($ac_try" in
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6551 esac
6552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6553 $as_echo "$ac_try_echo") >&5
6554 (eval "$ac_compile") 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } && {
6561 test -z "$ac_c_werror_flag" ||
6562 test ! -s conftest.err
6563 } && test -s conftest.$ac_objext; then
6564 ac_hi=-1 ac_mid=-1
6565 while :; do
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 $ac_includes_default
6574 main ()
6576 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
6577 test_array [0] = 0
6580 return 0;
6582 _ACEOF
6583 rm -f conftest.$ac_objext
6584 if { (ac_try="$ac_compile"
6585 case "(($ac_try" in
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6588 esac
6589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6590 $as_echo "$ac_try_echo") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6601 ac_lo=$ac_mid; break
6602 else
6603 $as_echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 ac_hi=`expr '(' $ac_mid ')' - 1`
6607 if test $ac_mid -le $ac_hi; then
6608 ac_lo= ac_hi=
6609 break
6611 ac_mid=`expr 2 '*' $ac_mid`
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 done
6616 else
6617 $as_echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 ac_lo= ac_hi=
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 # Binary search between lo and hi bounds.
6628 while test "x$ac_lo" != "x$ac_hi"; do
6629 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 $ac_includes_default
6638 main ()
6640 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
6641 test_array [0] = 0
6644 return 0;
6646 _ACEOF
6647 rm -f conftest.$ac_objext
6648 if { (ac_try="$ac_compile"
6649 case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652 esac
6653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6654 $as_echo "$ac_try_echo") >&5
6655 (eval "$ac_compile") 2>conftest.er1
6656 ac_status=$?
6657 grep -v '^ *+' conftest.er1 >conftest.err
6658 rm -f conftest.er1
6659 cat conftest.err >&5
6660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } && {
6662 test -z "$ac_c_werror_flag" ||
6663 test ! -s conftest.err
6664 } && test -s conftest.$ac_objext; then
6665 ac_hi=$ac_mid
6666 else
6667 $as_echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6670 ac_lo=`expr '(' $ac_mid ')' + 1`
6673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674 done
6675 case $ac_lo in
6676 ?*) ac_cv_sizeof_short=$ac_lo;;
6677 '') if test "$ac_cv_type_short" = yes; then
6678 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6680 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6681 See \`config.log' for more details." >&5
6682 $as_echo "$as_me: error: cannot compute sizeof (short)
6683 See \`config.log' for more details." >&2;}
6684 { (exit 77); exit 77; }; }; }
6685 else
6686 ac_cv_sizeof_short=0
6687 fi ;;
6688 esac
6689 else
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h. */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 $ac_includes_default
6697 static long int longval () { return (long int) (sizeof (short)); }
6698 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
6699 #include <stdio.h>
6700 #include <stdlib.h>
6702 main ()
6705 FILE *f = fopen ("conftest.val", "w");
6706 if (! f)
6707 return 1;
6708 if (((long int) (sizeof (short))) < 0)
6710 long int i = longval ();
6711 if (i != ((long int) (sizeof (short))))
6712 return 1;
6713 fprintf (f, "%ld", i);
6715 else
6717 unsigned long int i = ulongval ();
6718 if (i != ((long int) (sizeof (short))))
6719 return 1;
6720 fprintf (f, "%lu", i);
6722 /* Do not output a trailing newline, as this causes \r\n confusion
6723 on some platforms. */
6724 return ferror (f) || fclose (f) != 0;
6727 return 0;
6729 _ACEOF
6730 rm -f conftest$ac_exeext
6731 if { (ac_try="$ac_link"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737 $as_echo "$ac_try_echo") >&5
6738 (eval "$ac_link") 2>&5
6739 ac_status=$?
6740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6742 { (case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745 esac
6746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6747 $as_echo "$ac_try_echo") >&5
6748 (eval "$ac_try") 2>&5
6749 ac_status=$?
6750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_cv_sizeof_short=`cat conftest.val`
6753 else
6754 $as_echo "$as_me: program exited with status $ac_status" >&5
6755 $as_echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ( exit $ac_status )
6759 if test "$ac_cv_type_short" = yes; then
6760 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6762 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6763 See \`config.log' for more details." >&5
6764 $as_echo "$as_me: error: cannot compute sizeof (short)
6765 See \`config.log' for more details." >&2;}
6766 { (exit 77); exit 77; }; }; }
6767 else
6768 ac_cv_sizeof_short=0
6771 rm -rf conftest.dSYM
6772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6774 rm -f conftest.val
6776 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6777 $as_echo "$ac_cv_sizeof_short" >&6; }
6781 cat >>confdefs.h <<_ACEOF
6782 #define SIZEOF_SHORT $ac_cv_sizeof_short
6783 _ACEOF
6786 # The cast to long int works around a bug in the HP C Compiler
6787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6789 # This bug is HP SR number 8606223364.
6790 { $as_echo "$as_me:$LINENO: checking size of long" >&5
6791 $as_echo_n "checking size of long... " >&6; }
6792 if test "${ac_cv_sizeof_long+set}" = set; then
6793 $as_echo_n "(cached) " >&6
6794 else
6795 if test "$cross_compiling" = yes; then
6796 # Depending upon the size, compute the lo and hi bounds.
6797 cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h. */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6803 $ac_includes_default
6805 main ()
6807 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
6808 test_array [0] = 0
6811 return 0;
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6816 case "(($ac_try" in
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6819 esac
6820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6821 $as_echo "$ac_try_echo") >&5
6822 (eval "$ac_compile") 2>conftest.er1
6823 ac_status=$?
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
6827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } && {
6829 test -z "$ac_c_werror_flag" ||
6830 test ! -s conftest.err
6831 } && test -s conftest.$ac_objext; then
6832 ac_lo=0 ac_mid=0
6833 while :; do
6834 cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h. */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6840 $ac_includes_default
6842 main ()
6844 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
6845 test_array [0] = 0
6848 return 0;
6850 _ACEOF
6851 rm -f conftest.$ac_objext
6852 if { (ac_try="$ac_compile"
6853 case "(($ac_try" in
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6856 esac
6857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6858 $as_echo "$ac_try_echo") >&5
6859 (eval "$ac_compile") 2>conftest.er1
6860 ac_status=$?
6861 grep -v '^ *+' conftest.er1 >conftest.err
6862 rm -f conftest.er1
6863 cat conftest.err >&5
6864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } && {
6866 test -z "$ac_c_werror_flag" ||
6867 test ! -s conftest.err
6868 } && test -s conftest.$ac_objext; then
6869 ac_hi=$ac_mid; break
6870 else
6871 $as_echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6874 ac_lo=`expr $ac_mid + 1`
6875 if test $ac_lo -le $ac_mid; then
6876 ac_lo= ac_hi=
6877 break
6879 ac_mid=`expr 2 '*' $ac_mid + 1`
6882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883 done
6884 else
6885 $as_echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6888 cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h. */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 $ac_includes_default
6896 main ()
6898 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
6899 test_array [0] = 0
6902 return 0;
6904 _ACEOF
6905 rm -f conftest.$ac_objext
6906 if { (ac_try="$ac_compile"
6907 case "(($ac_try" in
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6910 esac
6911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6912 $as_echo "$ac_try_echo") >&5
6913 (eval "$ac_compile") 2>conftest.er1
6914 ac_status=$?
6915 grep -v '^ *+' conftest.er1 >conftest.err
6916 rm -f conftest.er1
6917 cat conftest.err >&5
6918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } && {
6920 test -z "$ac_c_werror_flag" ||
6921 test ! -s conftest.err
6922 } && test -s conftest.$ac_objext; then
6923 ac_hi=-1 ac_mid=-1
6924 while :; do
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 $ac_includes_default
6933 main ()
6935 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
6936 test_array [0] = 0
6939 return 0;
6941 _ACEOF
6942 rm -f conftest.$ac_objext
6943 if { (ac_try="$ac_compile"
6944 case "(($ac_try" in
6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6947 esac
6948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6949 $as_echo "$ac_try_echo") >&5
6950 (eval "$ac_compile") 2>conftest.er1
6951 ac_status=$?
6952 grep -v '^ *+' conftest.er1 >conftest.err
6953 rm -f conftest.er1
6954 cat conftest.err >&5
6955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && {
6957 test -z "$ac_c_werror_flag" ||
6958 test ! -s conftest.err
6959 } && test -s conftest.$ac_objext; then
6960 ac_lo=$ac_mid; break
6961 else
6962 $as_echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 ac_hi=`expr '(' $ac_mid ')' - 1`
6966 if test $ac_mid -le $ac_hi; then
6967 ac_lo= ac_hi=
6968 break
6970 ac_mid=`expr 2 '*' $ac_mid`
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 done
6975 else
6976 $as_echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 ac_lo= ac_hi=
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 # Binary search between lo and hi bounds.
6987 while test "x$ac_lo" != "x$ac_hi"; do
6988 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 $ac_includes_default
6997 main ()
6999 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
7000 test_array [0] = 0
7003 return 0;
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7013 $as_echo "$ac_try_echo") >&5
7014 (eval "$ac_compile") 2>conftest.er1
7015 ac_status=$?
7016 grep -v '^ *+' conftest.er1 >conftest.err
7017 rm -f conftest.er1
7018 cat conftest.err >&5
7019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && {
7021 test -z "$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 } && test -s conftest.$ac_objext; then
7024 ac_hi=$ac_mid
7025 else
7026 $as_echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_lo=`expr '(' $ac_mid ')' + 1`
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 done
7034 case $ac_lo in
7035 ?*) ac_cv_sizeof_long=$ac_lo;;
7036 '') if test "$ac_cv_type_long" = yes; then
7037 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7039 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7040 See \`config.log' for more details." >&5
7041 $as_echo "$as_me: error: cannot compute sizeof (long)
7042 See \`config.log' for more details." >&2;}
7043 { (exit 77); exit 77; }; }; }
7044 else
7045 ac_cv_sizeof_long=0
7046 fi ;;
7047 esac
7048 else
7049 cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h. */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7056 static long int longval () { return (long int) (sizeof (long)); }
7057 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
7058 #include <stdio.h>
7059 #include <stdlib.h>
7061 main ()
7064 FILE *f = fopen ("conftest.val", "w");
7065 if (! f)
7066 return 1;
7067 if (((long int) (sizeof (long))) < 0)
7069 long int i = longval ();
7070 if (i != ((long int) (sizeof (long))))
7071 return 1;
7072 fprintf (f, "%ld", i);
7074 else
7076 unsigned long int i = ulongval ();
7077 if (i != ((long int) (sizeof (long))))
7078 return 1;
7079 fprintf (f, "%lu", i);
7081 /* Do not output a trailing newline, as this causes \r\n confusion
7082 on some platforms. */
7083 return ferror (f) || fclose (f) != 0;
7086 return 0;
7088 _ACEOF
7089 rm -f conftest$ac_exeext
7090 if { (ac_try="$ac_link"
7091 case "(($ac_try" in
7092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093 *) ac_try_echo=$ac_try;;
7094 esac
7095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7096 $as_echo "$ac_try_echo") >&5
7097 (eval "$ac_link") 2>&5
7098 ac_status=$?
7099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7101 { (case "(($ac_try" in
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7104 esac
7105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7106 $as_echo "$ac_try_echo") >&5
7107 (eval "$ac_try") 2>&5
7108 ac_status=$?
7109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7111 ac_cv_sizeof_long=`cat conftest.val`
7112 else
7113 $as_echo "$as_me: program exited with status $ac_status" >&5
7114 $as_echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7117 ( exit $ac_status )
7118 if test "$ac_cv_type_long" = yes; then
7119 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7121 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7122 See \`config.log' for more details." >&5
7123 $as_echo "$as_me: error: cannot compute sizeof (long)
7124 See \`config.log' for more details." >&2;}
7125 { (exit 77); exit 77; }; }; }
7126 else
7127 ac_cv_sizeof_long=0
7130 rm -rf conftest.dSYM
7131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7133 rm -f conftest.val
7135 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7136 $as_echo "$ac_cv_sizeof_long" >&6; }
7140 cat >>confdefs.h <<_ACEOF
7141 #define SIZEOF_LONG $ac_cv_sizeof_long
7142 _ACEOF
7145 # The cast to long int works around a bug in the HP C Compiler
7146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7148 # This bug is HP SR number 8606223364.
7149 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
7150 $as_echo_n "checking size of long long... " >&6; }
7151 if test "${ac_cv_sizeof_long_long+set}" = set; then
7152 $as_echo_n "(cached) " >&6
7153 else
7154 if test "$cross_compiling" = yes; then
7155 # Depending upon the size, compute the lo and hi bounds.
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 $ac_includes_default
7164 main ()
7166 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
7167 test_array [0] = 0
7170 return 0;
7172 _ACEOF
7173 rm -f conftest.$ac_objext
7174 if { (ac_try="$ac_compile"
7175 case "(($ac_try" in
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7178 esac
7179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7180 $as_echo "$ac_try_echo") >&5
7181 (eval "$ac_compile") 2>conftest.er1
7182 ac_status=$?
7183 grep -v '^ *+' conftest.er1 >conftest.err
7184 rm -f conftest.er1
7185 cat conftest.err >&5
7186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } && {
7188 test -z "$ac_c_werror_flag" ||
7189 test ! -s conftest.err
7190 } && test -s conftest.$ac_objext; then
7191 ac_lo=0 ac_mid=0
7192 while :; do
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 $ac_includes_default
7201 main ()
7203 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
7204 test_array [0] = 0
7207 return 0;
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7212 case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215 esac
7216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7217 $as_echo "$ac_try_echo") >&5
7218 (eval "$ac_compile") 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest.$ac_objext; then
7228 ac_hi=$ac_mid; break
7229 else
7230 $as_echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7233 ac_lo=`expr $ac_mid + 1`
7234 if test $ac_lo -le $ac_mid; then
7235 ac_lo= ac_hi=
7236 break
7238 ac_mid=`expr 2 '*' $ac_mid + 1`
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 done
7243 else
7244 $as_echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 $ac_includes_default
7255 main ()
7257 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
7258 test_array [0] = 0
7261 return 0;
7263 _ACEOF
7264 rm -f conftest.$ac_objext
7265 if { (ac_try="$ac_compile"
7266 case "(($ac_try" in
7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7269 esac
7270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7271 $as_echo "$ac_try_echo") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7282 ac_hi=-1 ac_mid=-1
7283 while :; do
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 $ac_includes_default
7292 main ()
7294 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
7295 test_array [0] = 0
7298 return 0;
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (ac_try="$ac_compile"
7303 case "(($ac_try" in
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7306 esac
7307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7308 $as_echo "$ac_try_echo") >&5
7309 (eval "$ac_compile") 2>conftest.er1
7310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest.$ac_objext; then
7319 ac_lo=$ac_mid; break
7320 else
7321 $as_echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7324 ac_hi=`expr '(' $ac_mid ')' - 1`
7325 if test $ac_mid -le $ac_hi; then
7326 ac_lo= ac_hi=
7327 break
7329 ac_mid=`expr 2 '*' $ac_mid`
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 done
7334 else
7335 $as_echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_lo= ac_hi=
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 # Binary search between lo and hi bounds.
7346 while test "x$ac_lo" != "x$ac_hi"; do
7347 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7348 cat >conftest.$ac_ext <<_ACEOF
7349 /* confdefs.h. */
7350 _ACEOF
7351 cat confdefs.h >>conftest.$ac_ext
7352 cat >>conftest.$ac_ext <<_ACEOF
7353 /* end confdefs.h. */
7354 $ac_includes_default
7356 main ()
7358 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
7359 test_array [0] = 0
7362 return 0;
7364 _ACEOF
7365 rm -f conftest.$ac_objext
7366 if { (ac_try="$ac_compile"
7367 case "(($ac_try" in
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7370 esac
7371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7372 $as_echo "$ac_try_echo") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7383 ac_hi=$ac_mid
7384 else
7385 $as_echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 ac_lo=`expr '(' $ac_mid ')' + 1`
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 done
7393 case $ac_lo in
7394 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7395 '') if test "$ac_cv_type_long_long" = yes; then
7396 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7398 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7399 See \`config.log' for more details." >&5
7400 $as_echo "$as_me: error: cannot compute sizeof (long long)
7401 See \`config.log' for more details." >&2;}
7402 { (exit 77); exit 77; }; }; }
7403 else
7404 ac_cv_sizeof_long_long=0
7405 fi ;;
7406 esac
7407 else
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 $ac_includes_default
7415 static long int longval () { return (long int) (sizeof (long long)); }
7416 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
7417 #include <stdio.h>
7418 #include <stdlib.h>
7420 main ()
7423 FILE *f = fopen ("conftest.val", "w");
7424 if (! f)
7425 return 1;
7426 if (((long int) (sizeof (long long))) < 0)
7428 long int i = longval ();
7429 if (i != ((long int) (sizeof (long long))))
7430 return 1;
7431 fprintf (f, "%ld", i);
7433 else
7435 unsigned long int i = ulongval ();
7436 if (i != ((long int) (sizeof (long long))))
7437 return 1;
7438 fprintf (f, "%lu", i);
7440 /* Do not output a trailing newline, as this causes \r\n confusion
7441 on some platforms. */
7442 return ferror (f) || fclose (f) != 0;
7445 return 0;
7447 _ACEOF
7448 rm -f conftest$ac_exeext
7449 if { (ac_try="$ac_link"
7450 case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453 esac
7454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7455 $as_echo "$ac_try_echo") >&5
7456 (eval "$ac_link") 2>&5
7457 ac_status=$?
7458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7460 { (case "(($ac_try" in
7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 *) ac_try_echo=$ac_try;;
7463 esac
7464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7465 $as_echo "$ac_try_echo") >&5
7466 (eval "$ac_try") 2>&5
7467 ac_status=$?
7468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; }; then
7470 ac_cv_sizeof_long_long=`cat conftest.val`
7471 else
7472 $as_echo "$as_me: program exited with status $ac_status" >&5
7473 $as_echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7476 ( exit $ac_status )
7477 if test "$ac_cv_type_long_long" = yes; then
7478 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7480 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7481 See \`config.log' for more details." >&5
7482 $as_echo "$as_me: error: cannot compute sizeof (long long)
7483 See \`config.log' for more details." >&2;}
7484 { (exit 77); exit 77; }; }; }
7485 else
7486 ac_cv_sizeof_long_long=0
7489 rm -rf conftest.dSYM
7490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7492 rm -f conftest.val
7494 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7495 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7499 cat >>confdefs.h <<_ACEOF
7500 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7501 _ACEOF
7505 { $as_echo "$as_me:$LINENO: checking for uint_t" >&5
7506 $as_echo_n "checking for uint_t... " >&6; }
7507 if test "${ac_cv_type_uint_t+set}" = set; then
7508 $as_echo_n "(cached) " >&6
7509 else
7510 ac_cv_type_uint_t=no
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h. */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 $ac_includes_default
7519 main ()
7521 if (sizeof (uint_t))
7522 return 0;
7524 return 0;
7526 _ACEOF
7527 rm -f conftest.$ac_objext
7528 if { (ac_try="$ac_compile"
7529 case "(($ac_try" in
7530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531 *) ac_try_echo=$ac_try;;
7532 esac
7533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7534 $as_echo "$ac_try_echo") >&5
7535 (eval "$ac_compile") 2>conftest.er1
7536 ac_status=$?
7537 grep -v '^ *+' conftest.er1 >conftest.err
7538 rm -f conftest.er1
7539 cat conftest.err >&5
7540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest.$ac_objext; then
7545 cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h. */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 $ac_includes_default
7553 main ()
7555 if (sizeof ((uint_t)))
7556 return 0;
7558 return 0;
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7563 case "(($ac_try" in
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7566 esac
7567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7568 $as_echo "$ac_try_echo") >&5
7569 (eval "$ac_compile") 2>conftest.er1
7570 ac_status=$?
7571 grep -v '^ *+' conftest.er1 >conftest.err
7572 rm -f conftest.er1
7573 cat conftest.err >&5
7574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && {
7576 test -z "$ac_c_werror_flag" ||
7577 test ! -s conftest.err
7578 } && test -s conftest.$ac_objext; then
7580 else
7581 $as_echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7584 ac_cv_type_uint_t=yes
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 else
7589 $as_echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
7598 $as_echo "$ac_cv_type_uint_t" >&6; }
7599 if test "x$ac_cv_type_uint_t" = x""yes; then
7601 else
7603 cat >>confdefs.h <<_ACEOF
7604 #define uint_t unsigned int
7605 _ACEOF
7609 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
7610 $as_echo_n "checking for int8_t... " >&6; }
7611 if test "${ac_cv_type_int8_t+set}" = set; then
7612 $as_echo_n "(cached) " >&6
7613 else
7614 ac_cv_type_int8_t=no
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 $ac_includes_default
7623 main ()
7625 if (sizeof (int8_t))
7626 return 0;
7628 return 0;
7630 _ACEOF
7631 rm -f conftest.$ac_objext
7632 if { (ac_try="$ac_compile"
7633 case "(($ac_try" in
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7636 esac
7637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7638 $as_echo "$ac_try_echo") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
7649 cat >conftest.$ac_ext <<_ACEOF
7650 /* confdefs.h. */
7651 _ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655 $ac_includes_default
7657 main ()
7659 if (sizeof ((int8_t)))
7660 return 0;
7662 return 0;
7664 _ACEOF
7665 rm -f conftest.$ac_objext
7666 if { (ac_try="$ac_compile"
7667 case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7670 esac
7671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7672 $as_echo "$ac_try_echo") >&5
7673 (eval "$ac_compile") 2>conftest.er1
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
7678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
7684 else
7685 $as_echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7688 ac_cv_type_int8_t=yes
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 else
7693 $as_echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
7702 $as_echo "$ac_cv_type_int8_t" >&6; }
7703 if test "x$ac_cv_type_int8_t" = x""yes; then
7705 else
7707 cat >>confdefs.h <<_ACEOF
7708 #define int8_t char
7709 _ACEOF
7713 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7714 $as_echo_n "checking for uint8_t... " >&6; }
7715 if test "${ac_cv_type_uint8_t+set}" = set; then
7716 $as_echo_n "(cached) " >&6
7717 else
7718 ac_cv_type_uint8_t=no
7719 cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h. */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7725 $ac_includes_default
7727 main ()
7729 if (sizeof (uint8_t))
7730 return 0;
7732 return 0;
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (ac_try="$ac_compile"
7737 case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7740 esac
7741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7742 $as_echo "$ac_try_echo") >&5
7743 (eval "$ac_compile") 2>conftest.er1
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
7747 cat conftest.err >&5
7748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } && {
7750 test -z "$ac_c_werror_flag" ||
7751 test ! -s conftest.err
7752 } && test -s conftest.$ac_objext; then
7753 cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h. */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 $ac_includes_default
7761 main ()
7763 if (sizeof ((uint8_t)))
7764 return 0;
7766 return 0;
7768 _ACEOF
7769 rm -f conftest.$ac_objext
7770 if { (ac_try="$ac_compile"
7771 case "(($ac_try" in
7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7774 esac
7775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7776 $as_echo "$ac_try_echo") >&5
7777 (eval "$ac_compile") 2>conftest.er1
7778 ac_status=$?
7779 grep -v '^ *+' conftest.er1 >conftest.err
7780 rm -f conftest.er1
7781 cat conftest.err >&5
7782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } && {
7784 test -z "$ac_c_werror_flag" ||
7785 test ! -s conftest.err
7786 } && test -s conftest.$ac_objext; then
7788 else
7789 $as_echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7792 ac_cv_type_uint8_t=yes
7795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796 else
7797 $as_echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
7806 $as_echo "$ac_cv_type_uint8_t" >&6; }
7807 if test "x$ac_cv_type_uint8_t" = x""yes; then
7809 else
7811 cat >>confdefs.h <<_ACEOF
7812 #define uint8_t unsigned char
7813 _ACEOF
7817 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
7818 $as_echo_n "checking for int16_t... " >&6; }
7819 if test "${ac_cv_type_int16_t+set}" = set; then
7820 $as_echo_n "(cached) " >&6
7821 else
7822 ac_cv_type_int16_t=no
7823 cat >conftest.$ac_ext <<_ACEOF
7824 /* confdefs.h. */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7829 $ac_includes_default
7831 main ()
7833 if (sizeof (int16_t))
7834 return 0;
7836 return 0;
7838 _ACEOF
7839 rm -f conftest.$ac_objext
7840 if { (ac_try="$ac_compile"
7841 case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7844 esac
7845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7846 $as_echo "$ac_try_echo") >&5
7847 (eval "$ac_compile") 2>conftest.er1
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
7852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && {
7854 test -z "$ac_c_werror_flag" ||
7855 test ! -s conftest.err
7856 } && test -s conftest.$ac_objext; then
7857 cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h. */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 $ac_includes_default
7865 main ()
7867 if (sizeof ((int16_t)))
7868 return 0;
7870 return 0;
7872 _ACEOF
7873 rm -f conftest.$ac_objext
7874 if { (ac_try="$ac_compile"
7875 case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878 esac
7879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7880 $as_echo "$ac_try_echo") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7892 else
7893 $as_echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 ac_cv_type_int16_t=yes
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 else
7901 $as_echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7910 $as_echo "$ac_cv_type_int16_t" >&6; }
7911 if test "x$ac_cv_type_int16_t" = x""yes; then
7913 else
7915 cat >>confdefs.h <<_ACEOF
7916 #define int16_t short
7917 _ACEOF
7921 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7922 $as_echo_n "checking for uint16_t... " >&6; }
7923 if test "${ac_cv_type_uint16_t+set}" = set; then
7924 $as_echo_n "(cached) " >&6
7925 else
7926 ac_cv_type_uint16_t=no
7927 cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h. */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7933 $ac_includes_default
7935 main ()
7937 if (sizeof (uint16_t))
7938 return 0;
7940 return 0;
7942 _ACEOF
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7945 case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948 esac
7949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7950 $as_echo "$ac_try_echo") >&5
7951 (eval "$ac_compile") 2>conftest.er1
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest.$ac_objext; then
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 $ac_includes_default
7969 main ()
7971 if (sizeof ((uint16_t)))
7972 return 0;
7974 return 0;
7976 _ACEOF
7977 rm -f conftest.$ac_objext
7978 if { (ac_try="$ac_compile"
7979 case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7982 esac
7983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7984 $as_echo "$ac_try_echo") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.$ac_objext; then
7996 else
7997 $as_echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_cv_type_uint16_t=yes
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 else
8005 $as_echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8014 $as_echo "$ac_cv_type_uint16_t" >&6; }
8015 if test "x$ac_cv_type_uint16_t" = x""yes; then
8017 else
8019 cat >>confdefs.h <<_ACEOF
8020 #define uint16_t unsigned short
8021 _ACEOF
8026 if test $ac_cv_sizeof_int -eq 4 ; then
8027 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
8028 $as_echo_n "checking for int32_t... " >&6; }
8029 if test "${ac_cv_type_int32_t+set}" = set; then
8030 $as_echo_n "(cached) " >&6
8031 else
8032 ac_cv_type_int32_t=no
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 $ac_includes_default
8041 main ()
8043 if (sizeof (int32_t))
8044 return 0;
8046 return 0;
8048 _ACEOF
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8051 case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054 esac
8055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8056 $as_echo "$ac_try_echo") >&5
8057 (eval "$ac_compile") 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } && {
8064 test -z "$ac_c_werror_flag" ||
8065 test ! -s conftest.err
8066 } && test -s conftest.$ac_objext; then
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8075 main ()
8077 if (sizeof ((int32_t)))
8078 return 0;
8080 return 0;
8082 _ACEOF
8083 rm -f conftest.$ac_objext
8084 if { (ac_try="$ac_compile"
8085 case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8088 esac
8089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8090 $as_echo "$ac_try_echo") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
8102 else
8103 $as_echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 ac_cv_type_int32_t=yes
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 else
8111 $as_echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8120 $as_echo "$ac_cv_type_int32_t" >&6; }
8121 if test "x$ac_cv_type_int32_t" = x""yes; then
8123 else
8125 cat >>confdefs.h <<_ACEOF
8126 #define int32_t int
8127 _ACEOF
8131 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8132 $as_echo_n "checking for uint32_t... " >&6; }
8133 if test "${ac_cv_type_uint32_t+set}" = set; then
8134 $as_echo_n "(cached) " >&6
8135 else
8136 ac_cv_type_uint32_t=no
8137 cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h. */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143 $ac_includes_default
8145 main ()
8147 if (sizeof (uint32_t))
8148 return 0;
8150 return 0;
8152 _ACEOF
8153 rm -f conftest.$ac_objext
8154 if { (ac_try="$ac_compile"
8155 case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158 esac
8159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8160 $as_echo "$ac_try_echo") >&5
8161 (eval "$ac_compile") 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } && {
8168 test -z "$ac_c_werror_flag" ||
8169 test ! -s conftest.err
8170 } && test -s conftest.$ac_objext; then
8171 cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h. */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8179 main ()
8181 if (sizeof ((uint32_t)))
8182 return 0;
8184 return 0;
8186 _ACEOF
8187 rm -f conftest.$ac_objext
8188 if { (ac_try="$ac_compile"
8189 case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8192 esac
8193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8194 $as_echo "$ac_try_echo") >&5
8195 (eval "$ac_compile") 2>conftest.er1
8196 ac_status=$?
8197 grep -v '^ *+' conftest.er1 >conftest.err
8198 rm -f conftest.er1
8199 cat conftest.err >&5
8200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } && {
8202 test -z "$ac_c_werror_flag" ||
8203 test ! -s conftest.err
8204 } && test -s conftest.$ac_objext; then
8206 else
8207 $as_echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8210 ac_cv_type_uint32_t=yes
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 else
8215 $as_echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8224 $as_echo "$ac_cv_type_uint32_t" >&6; }
8225 if test "x$ac_cv_type_uint32_t" = x""yes; then
8227 else
8229 cat >>confdefs.h <<_ACEOF
8230 #define uint32_t unsigned int
8231 _ACEOF
8235 elif test $ac_cv_size_long -eq 4 ; then
8236 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
8237 $as_echo_n "checking for int32_t... " >&6; }
8238 if test "${ac_cv_type_int32_t+set}" = set; then
8239 $as_echo_n "(cached) " >&6
8240 else
8241 ac_cv_type_int32_t=no
8242 cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h. */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 $ac_includes_default
8250 main ()
8252 if (sizeof (int32_t))
8253 return 0;
8255 return 0;
8257 _ACEOF
8258 rm -f conftest.$ac_objext
8259 if { (ac_try="$ac_compile"
8260 case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263 esac
8264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8265 $as_echo "$ac_try_echo") >&5
8266 (eval "$ac_compile") 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } && {
8273 test -z "$ac_c_werror_flag" ||
8274 test ! -s conftest.err
8275 } && test -s conftest.$ac_objext; then
8276 cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h. */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8282 $ac_includes_default
8284 main ()
8286 if (sizeof ((int32_t)))
8287 return 0;
8289 return 0;
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8294 case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.$ac_objext; then
8311 else
8312 $as_echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 ac_cv_type_int32_t=yes
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 else
8320 $as_echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8329 $as_echo "$ac_cv_type_int32_t" >&6; }
8330 if test "x$ac_cv_type_int32_t" = x""yes; then
8332 else
8334 cat >>confdefs.h <<_ACEOF
8335 #define int32_t long
8336 _ACEOF
8340 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8341 $as_echo_n "checking for uint32_t... " >&6; }
8342 if test "${ac_cv_type_uint32_t+set}" = set; then
8343 $as_echo_n "(cached) " >&6
8344 else
8345 ac_cv_type_uint32_t=no
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h. */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 $ac_includes_default
8354 main ()
8356 if (sizeof (uint32_t))
8357 return 0;
8359 return 0;
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8364 case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367 esac
8368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8369 $as_echo "$ac_try_echo") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h. */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8388 main ()
8390 if (sizeof ((uint32_t)))
8391 return 0;
8393 return 0;
8395 _ACEOF
8396 rm -f conftest.$ac_objext
8397 if { (ac_try="$ac_compile"
8398 case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8401 esac
8402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8403 $as_echo "$ac_try_echo") >&5
8404 (eval "$ac_compile") 2>conftest.er1
8405 ac_status=$?
8406 grep -v '^ *+' conftest.er1 >conftest.err
8407 rm -f conftest.er1
8408 cat conftest.err >&5
8409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } && {
8411 test -z "$ac_c_werror_flag" ||
8412 test ! -s conftest.err
8413 } && test -s conftest.$ac_objext; then
8415 else
8416 $as_echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8419 ac_cv_type_uint32_t=yes
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 else
8424 $as_echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8433 $as_echo "$ac_cv_type_uint32_t" >&6; }
8434 if test "x$ac_cv_type_uint32_t" = x""yes; then
8436 else
8438 cat >>confdefs.h <<_ACEOF
8439 #define uint32_t unsigned long
8440 _ACEOF
8444 else
8445 { { $as_echo "$as_me:$LINENO: error: LIBREPLACE no 32-bit type found" >&5
8446 $as_echo "$as_me: error: LIBREPLACE no 32-bit type found" >&2;}
8447 { (exit 1); exit 1; }; }
8450 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
8451 $as_echo_n "checking for int64_t... " >&6; }
8452 if test "${ac_cv_type_int64_t+set}" = set; then
8453 $as_echo_n "(cached) " >&6
8454 else
8455 ac_cv_type_int64_t=no
8456 cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h. */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 $ac_includes_default
8464 main ()
8466 if (sizeof (int64_t))
8467 return 0;
8469 return 0;
8471 _ACEOF
8472 rm -f conftest.$ac_objext
8473 if { (ac_try="$ac_compile"
8474 case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477 esac
8478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8479 $as_echo "$ac_try_echo") >&5
8480 (eval "$ac_compile") 2>conftest.er1
8481 ac_status=$?
8482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest.$ac_objext; then
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h. */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 $ac_includes_default
8498 main ()
8500 if (sizeof ((int64_t)))
8501 return 0;
8503 return 0;
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (ac_try="$ac_compile"
8508 case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511 esac
8512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8513 $as_echo "$ac_try_echo") >&5
8514 (eval "$ac_compile") 2>conftest.er1
8515 ac_status=$?
8516 grep -v '^ *+' conftest.er1 >conftest.err
8517 rm -f conftest.er1
8518 cat conftest.err >&5
8519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest.$ac_objext; then
8525 else
8526 $as_echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8529 ac_cv_type_int64_t=yes
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 else
8534 $as_echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8543 $as_echo "$ac_cv_type_int64_t" >&6; }
8544 if test "x$ac_cv_type_int64_t" = x""yes; then
8546 else
8548 cat >>confdefs.h <<_ACEOF
8549 #define int64_t long long
8550 _ACEOF
8554 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
8555 $as_echo_n "checking for uint64_t... " >&6; }
8556 if test "${ac_cv_type_uint64_t+set}" = set; then
8557 $as_echo_n "(cached) " >&6
8558 else
8559 ac_cv_type_uint64_t=no
8560 cat >conftest.$ac_ext <<_ACEOF
8561 /* confdefs.h. */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 $ac_includes_default
8568 main ()
8570 if (sizeof (uint64_t))
8571 return 0;
8573 return 0;
8575 _ACEOF
8576 rm -f conftest.$ac_objext
8577 if { (ac_try="$ac_compile"
8578 case "(($ac_try" in
8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8581 esac
8582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8583 $as_echo "$ac_try_echo") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.$ac_objext; then
8594 cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h. */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 $ac_includes_default
8602 main ()
8604 if (sizeof ((uint64_t)))
8605 return 0;
8607 return 0;
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8612 case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8615 esac
8616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8617 $as_echo "$ac_try_echo") >&5
8618 (eval "$ac_compile") 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } && {
8625 test -z "$ac_c_werror_flag" ||
8626 test ! -s conftest.err
8627 } && test -s conftest.$ac_objext; then
8629 else
8630 $as_echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 ac_cv_type_uint64_t=yes
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 else
8638 $as_echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8647 $as_echo "$ac_cv_type_uint64_t" >&6; }
8648 if test "x$ac_cv_type_uint64_t" = x""yes; then
8650 else
8652 cat >>confdefs.h <<_ACEOF
8653 #define uint64_t unsigned long long
8654 _ACEOF
8659 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
8660 $as_echo_n "checking for size_t... " >&6; }
8661 if test "${ac_cv_type_size_t+set}" = set; then
8662 $as_echo_n "(cached) " >&6
8663 else
8664 ac_cv_type_size_t=no
8665 cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h. */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8671 $ac_includes_default
8673 main ()
8675 if (sizeof (size_t))
8676 return 0;
8678 return 0;
8680 _ACEOF
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8683 case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686 esac
8687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8688 $as_echo "$ac_try_echo") >&5
8689 (eval "$ac_compile") 2>conftest.er1
8690 ac_status=$?
8691 grep -v '^ *+' conftest.er1 >conftest.err
8692 rm -f conftest.er1
8693 cat conftest.err >&5
8694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && {
8696 test -z "$ac_c_werror_flag" ||
8697 test ! -s conftest.err
8698 } && test -s conftest.$ac_objext; then
8699 cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h. */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 $ac_includes_default
8707 main ()
8709 if (sizeof ((size_t)))
8710 return 0;
8712 return 0;
8714 _ACEOF
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8717 case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720 esac
8721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8722 $as_echo "$ac_try_echo") >&5
8723 (eval "$ac_compile") 2>conftest.er1
8724 ac_status=$?
8725 grep -v '^ *+' conftest.er1 >conftest.err
8726 rm -f conftest.er1
8727 cat conftest.err >&5
8728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } && {
8730 test -z "$ac_c_werror_flag" ||
8731 test ! -s conftest.err
8732 } && test -s conftest.$ac_objext; then
8734 else
8735 $as_echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_cv_type_size_t=yes
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742 else
8743 $as_echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8752 $as_echo "$ac_cv_type_size_t" >&6; }
8753 if test "x$ac_cv_type_size_t" = x""yes; then
8755 else
8757 cat >>confdefs.h <<_ACEOF
8758 #define size_t unsigned int
8759 _ACEOF
8763 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
8764 $as_echo_n "checking for ssize_t... " >&6; }
8765 if test "${ac_cv_type_ssize_t+set}" = set; then
8766 $as_echo_n "(cached) " >&6
8767 else
8768 ac_cv_type_ssize_t=no
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h. */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 $ac_includes_default
8777 main ()
8779 if (sizeof (ssize_t))
8780 return 0;
8782 return 0;
8784 _ACEOF
8785 rm -f conftest.$ac_objext
8786 if { (ac_try="$ac_compile"
8787 case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790 esac
8791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8792 $as_echo "$ac_try_echo") >&5
8793 (eval "$ac_compile") 2>conftest.er1
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } && {
8800 test -z "$ac_c_werror_flag" ||
8801 test ! -s conftest.err
8802 } && test -s conftest.$ac_objext; then
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h. */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 $ac_includes_default
8811 main ()
8813 if (sizeof ((ssize_t)))
8814 return 0;
8816 return 0;
8818 _ACEOF
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8821 case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8824 esac
8825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8826 $as_echo "$ac_try_echo") >&5
8827 (eval "$ac_compile") 2>conftest.er1
8828 ac_status=$?
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
8832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest.$ac_objext; then
8838 else
8839 $as_echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8842 ac_cv_type_ssize_t=yes
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 else
8847 $as_echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8856 $as_echo "$ac_cv_type_ssize_t" >&6; }
8857 if test "x$ac_cv_type_ssize_t" = x""yes; then
8859 else
8861 cat >>confdefs.h <<_ACEOF
8862 #define ssize_t int
8863 _ACEOF
8868 # The cast to long int works around a bug in the HP C Compiler
8869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8871 # This bug is HP SR number 8606223364.
8872 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
8873 $as_echo_n "checking size of off_t... " >&6; }
8874 if test "${ac_cv_sizeof_off_t+set}" = set; then
8875 $as_echo_n "(cached) " >&6
8876 else
8877 if test "$cross_compiling" = yes; then
8878 # Depending upon the size, compute the lo and hi bounds.
8879 cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h. */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 $ac_includes_default
8887 main ()
8889 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
8890 test_array [0] = 0
8893 return 0;
8895 _ACEOF
8896 rm -f conftest.$ac_objext
8897 if { (ac_try="$ac_compile"
8898 case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8901 esac
8902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8903 $as_echo "$ac_try_echo") >&5
8904 (eval "$ac_compile") 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } && {
8911 test -z "$ac_c_werror_flag" ||
8912 test ! -s conftest.err
8913 } && test -s conftest.$ac_objext; then
8914 ac_lo=0 ac_mid=0
8915 while :; do
8916 cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h. */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 $ac_includes_default
8924 main ()
8926 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
8927 test_array [0] = 0
8930 return 0;
8932 _ACEOF
8933 rm -f conftest.$ac_objext
8934 if { (ac_try="$ac_compile"
8935 case "(($ac_try" in
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8938 esac
8939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8940 $as_echo "$ac_try_echo") >&5
8941 (eval "$ac_compile") 2>conftest.er1
8942 ac_status=$?
8943 grep -v '^ *+' conftest.er1 >conftest.err
8944 rm -f conftest.er1
8945 cat conftest.err >&5
8946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } && {
8948 test -z "$ac_c_werror_flag" ||
8949 test ! -s conftest.err
8950 } && test -s conftest.$ac_objext; then
8951 ac_hi=$ac_mid; break
8952 else
8953 $as_echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8956 ac_lo=`expr $ac_mid + 1`
8957 if test $ac_lo -le $ac_mid; then
8958 ac_lo= ac_hi=
8959 break
8961 ac_mid=`expr 2 '*' $ac_mid + 1`
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 done
8966 else
8967 $as_echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 cat >conftest.$ac_ext <<_ACEOF
8971 /* confdefs.h. */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8976 $ac_includes_default
8978 main ()
8980 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
8981 test_array [0] = 0
8984 return 0;
8986 _ACEOF
8987 rm -f conftest.$ac_objext
8988 if { (ac_try="$ac_compile"
8989 case "(($ac_try" in
8990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8992 esac
8993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8994 $as_echo "$ac_try_echo") >&5
8995 (eval "$ac_compile") 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } && {
9002 test -z "$ac_c_werror_flag" ||
9003 test ! -s conftest.err
9004 } && test -s conftest.$ac_objext; then
9005 ac_hi=-1 ac_mid=-1
9006 while :; do
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9013 $ac_includes_default
9015 main ()
9017 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
9018 test_array [0] = 0
9021 return 0;
9023 _ACEOF
9024 rm -f conftest.$ac_objext
9025 if { (ac_try="$ac_compile"
9026 case "(($ac_try" in
9027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028 *) ac_try_echo=$ac_try;;
9029 esac
9030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9031 $as_echo "$ac_try_echo") >&5
9032 (eval "$ac_compile") 2>conftest.er1
9033 ac_status=$?
9034 grep -v '^ *+' conftest.er1 >conftest.err
9035 rm -f conftest.er1
9036 cat conftest.err >&5
9037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && {
9039 test -z "$ac_c_werror_flag" ||
9040 test ! -s conftest.err
9041 } && test -s conftest.$ac_objext; then
9042 ac_lo=$ac_mid; break
9043 else
9044 $as_echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9047 ac_hi=`expr '(' $ac_mid ')' - 1`
9048 if test $ac_mid -le $ac_hi; then
9049 ac_lo= ac_hi=
9050 break
9052 ac_mid=`expr 2 '*' $ac_mid`
9055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 done
9057 else
9058 $as_echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9061 ac_lo= ac_hi=
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068 # Binary search between lo and hi bounds.
9069 while test "x$ac_lo" != "x$ac_hi"; do
9070 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9071 cat >conftest.$ac_ext <<_ACEOF
9072 /* confdefs.h. */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9077 $ac_includes_default
9079 main ()
9081 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
9082 test_array [0] = 0
9085 return 0;
9087 _ACEOF
9088 rm -f conftest.$ac_objext
9089 if { (ac_try="$ac_compile"
9090 case "(($ac_try" in
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9093 esac
9094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9095 $as_echo "$ac_try_echo") >&5
9096 (eval "$ac_compile") 2>conftest.er1
9097 ac_status=$?
9098 grep -v '^ *+' conftest.er1 >conftest.err
9099 rm -f conftest.er1
9100 cat conftest.err >&5
9101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } && {
9103 test -z "$ac_c_werror_flag" ||
9104 test ! -s conftest.err
9105 } && test -s conftest.$ac_objext; then
9106 ac_hi=$ac_mid
9107 else
9108 $as_echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9111 ac_lo=`expr '(' $ac_mid ')' + 1`
9114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9115 done
9116 case $ac_lo in
9117 ?*) ac_cv_sizeof_off_t=$ac_lo;;
9118 '') if test "$ac_cv_type_off_t" = yes; then
9119 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9121 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
9122 See \`config.log' for more details." >&5
9123 $as_echo "$as_me: error: cannot compute sizeof (off_t)
9124 See \`config.log' for more details." >&2;}
9125 { (exit 77); exit 77; }; }; }
9126 else
9127 ac_cv_sizeof_off_t=0
9128 fi ;;
9129 esac
9130 else
9131 cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h. */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137 $ac_includes_default
9138 static long int longval () { return (long int) (sizeof (off_t)); }
9139 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
9140 #include <stdio.h>
9141 #include <stdlib.h>
9143 main ()
9146 FILE *f = fopen ("conftest.val", "w");
9147 if (! f)
9148 return 1;
9149 if (((long int) (sizeof (off_t))) < 0)
9151 long int i = longval ();
9152 if (i != ((long int) (sizeof (off_t))))
9153 return 1;
9154 fprintf (f, "%ld", i);
9156 else
9158 unsigned long int i = ulongval ();
9159 if (i != ((long int) (sizeof (off_t))))
9160 return 1;
9161 fprintf (f, "%lu", i);
9163 /* Do not output a trailing newline, as this causes \r\n confusion
9164 on some platforms. */
9165 return ferror (f) || fclose (f) != 0;
9168 return 0;
9170 _ACEOF
9171 rm -f conftest$ac_exeext
9172 if { (ac_try="$ac_link"
9173 case "(($ac_try" in
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9176 esac
9177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9178 $as_echo "$ac_try_echo") >&5
9179 (eval "$ac_link") 2>&5
9180 ac_status=$?
9181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9183 { (case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186 esac
9187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9188 $as_echo "$ac_try_echo") >&5
9189 (eval "$ac_try") 2>&5
9190 ac_status=$?
9191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 ac_cv_sizeof_off_t=`cat conftest.val`
9194 else
9195 $as_echo "$as_me: program exited with status $ac_status" >&5
9196 $as_echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 ( exit $ac_status )
9200 if test "$ac_cv_type_off_t" = yes; then
9201 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9203 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
9204 See \`config.log' for more details." >&5
9205 $as_echo "$as_me: error: cannot compute sizeof (off_t)
9206 See \`config.log' for more details." >&2;}
9207 { (exit 77); exit 77; }; }; }
9208 else
9209 ac_cv_sizeof_off_t=0
9212 rm -rf conftest.dSYM
9213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9215 rm -f conftest.val
9217 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9218 $as_echo "$ac_cv_sizeof_off_t" >&6; }
9222 cat >>confdefs.h <<_ACEOF
9223 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9224 _ACEOF
9227 # The cast to long int works around a bug in the HP C Compiler
9228 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9229 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9230 # This bug is HP SR number 8606223364.
9231 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
9232 $as_echo_n "checking size of size_t... " >&6; }
9233 if test "${ac_cv_sizeof_size_t+set}" = set; then
9234 $as_echo_n "(cached) " >&6
9235 else
9236 if test "$cross_compiling" = yes; then
9237 # Depending upon the size, compute the lo and hi bounds.
9238 cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h. */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 $ac_includes_default
9246 main ()
9248 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
9249 test_array [0] = 0
9252 return 0;
9254 _ACEOF
9255 rm -f conftest.$ac_objext
9256 if { (ac_try="$ac_compile"
9257 case "(($ac_try" in
9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259 *) ac_try_echo=$ac_try;;
9260 esac
9261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9262 $as_echo "$ac_try_echo") >&5
9263 (eval "$ac_compile") 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } && {
9270 test -z "$ac_c_werror_flag" ||
9271 test ! -s conftest.err
9272 } && test -s conftest.$ac_objext; then
9273 ac_lo=0 ac_mid=0
9274 while :; do
9275 cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 $ac_includes_default
9283 main ()
9285 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
9286 test_array [0] = 0
9289 return 0;
9291 _ACEOF
9292 rm -f conftest.$ac_objext
9293 if { (ac_try="$ac_compile"
9294 case "(($ac_try" in
9295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296 *) ac_try_echo=$ac_try;;
9297 esac
9298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9299 $as_echo "$ac_try_echo") >&5
9300 (eval "$ac_compile") 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } && {
9307 test -z "$ac_c_werror_flag" ||
9308 test ! -s conftest.err
9309 } && test -s conftest.$ac_objext; then
9310 ac_hi=$ac_mid; break
9311 else
9312 $as_echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9315 ac_lo=`expr $ac_mid + 1`
9316 if test $ac_lo -le $ac_mid; then
9317 ac_lo= ac_hi=
9318 break
9320 ac_mid=`expr 2 '*' $ac_mid + 1`
9323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9324 done
9325 else
9326 $as_echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h. */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 $ac_includes_default
9337 main ()
9339 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
9340 test_array [0] = 0
9343 return 0;
9345 _ACEOF
9346 rm -f conftest.$ac_objext
9347 if { (ac_try="$ac_compile"
9348 case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9351 esac
9352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9353 $as_echo "$ac_try_echo") >&5
9354 (eval "$ac_compile") 2>conftest.er1
9355 ac_status=$?
9356 grep -v '^ *+' conftest.er1 >conftest.err
9357 rm -f conftest.er1
9358 cat conftest.err >&5
9359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } && {
9361 test -z "$ac_c_werror_flag" ||
9362 test ! -s conftest.err
9363 } && test -s conftest.$ac_objext; then
9364 ac_hi=-1 ac_mid=-1
9365 while :; do
9366 cat >conftest.$ac_ext <<_ACEOF
9367 /* confdefs.h. */
9368 _ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9372 $ac_includes_default
9374 main ()
9376 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
9377 test_array [0] = 0
9380 return 0;
9382 _ACEOF
9383 rm -f conftest.$ac_objext
9384 if { (ac_try="$ac_compile"
9385 case "(($ac_try" in
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9388 esac
9389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9390 $as_echo "$ac_try_echo") >&5
9391 (eval "$ac_compile") 2>conftest.er1
9392 ac_status=$?
9393 grep -v '^ *+' conftest.er1 >conftest.err
9394 rm -f conftest.er1
9395 cat conftest.err >&5
9396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && {
9398 test -z "$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9400 } && test -s conftest.$ac_objext; then
9401 ac_lo=$ac_mid; break
9402 else
9403 $as_echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_hi=`expr '(' $ac_mid ')' - 1`
9407 if test $ac_mid -le $ac_hi; then
9408 ac_lo= ac_hi=
9409 break
9411 ac_mid=`expr 2 '*' $ac_mid`
9414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415 done
9416 else
9417 $as_echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9420 ac_lo= ac_hi=
9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9427 # Binary search between lo and hi bounds.
9428 while test "x$ac_lo" != "x$ac_hi"; do
9429 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9430 cat >conftest.$ac_ext <<_ACEOF
9431 /* confdefs.h. */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 $ac_includes_default
9438 main ()
9440 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
9441 test_array [0] = 0
9444 return 0;
9446 _ACEOF
9447 rm -f conftest.$ac_objext
9448 if { (ac_try="$ac_compile"
9449 case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9452 esac
9453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9454 $as_echo "$ac_try_echo") >&5
9455 (eval "$ac_compile") 2>conftest.er1
9456 ac_status=$?
9457 grep -v '^ *+' conftest.er1 >conftest.err
9458 rm -f conftest.er1
9459 cat conftest.err >&5
9460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } && {
9462 test -z "$ac_c_werror_flag" ||
9463 test ! -s conftest.err
9464 } && test -s conftest.$ac_objext; then
9465 ac_hi=$ac_mid
9466 else
9467 $as_echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9470 ac_lo=`expr '(' $ac_mid ')' + 1`
9473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9474 done
9475 case $ac_lo in
9476 ?*) ac_cv_sizeof_size_t=$ac_lo;;
9477 '') if test "$ac_cv_type_size_t" = yes; then
9478 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9480 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
9481 See \`config.log' for more details." >&5
9482 $as_echo "$as_me: error: cannot compute sizeof (size_t)
9483 See \`config.log' for more details." >&2;}
9484 { (exit 77); exit 77; }; }; }
9485 else
9486 ac_cv_sizeof_size_t=0
9487 fi ;;
9488 esac
9489 else
9490 cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h. */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 $ac_includes_default
9497 static long int longval () { return (long int) (sizeof (size_t)); }
9498 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
9499 #include <stdio.h>
9500 #include <stdlib.h>
9502 main ()
9505 FILE *f = fopen ("conftest.val", "w");
9506 if (! f)
9507 return 1;
9508 if (((long int) (sizeof (size_t))) < 0)
9510 long int i = longval ();
9511 if (i != ((long int) (sizeof (size_t))))
9512 return 1;
9513 fprintf (f, "%ld", i);
9515 else
9517 unsigned long int i = ulongval ();
9518 if (i != ((long int) (sizeof (size_t))))
9519 return 1;
9520 fprintf (f, "%lu", i);
9522 /* Do not output a trailing newline, as this causes \r\n confusion
9523 on some platforms. */
9524 return ferror (f) || fclose (f) != 0;
9527 return 0;
9529 _ACEOF
9530 rm -f conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9532 case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9535 esac
9536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9537 $as_echo "$ac_try_echo") >&5
9538 (eval "$ac_link") 2>&5
9539 ac_status=$?
9540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9542 { (case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9545 esac
9546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9547 $as_echo "$ac_try_echo") >&5
9548 (eval "$ac_try") 2>&5
9549 ac_status=$?
9550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 ac_cv_sizeof_size_t=`cat conftest.val`
9553 else
9554 $as_echo "$as_me: program exited with status $ac_status" >&5
9555 $as_echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9558 ( exit $ac_status )
9559 if test "$ac_cv_type_size_t" = yes; then
9560 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9562 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
9563 See \`config.log' for more details." >&5
9564 $as_echo "$as_me: error: cannot compute sizeof (size_t)
9565 See \`config.log' for more details." >&2;}
9566 { (exit 77); exit 77; }; }; }
9567 else
9568 ac_cv_sizeof_size_t=0
9571 rm -rf conftest.dSYM
9572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9574 rm -f conftest.val
9576 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
9577 $as_echo "$ac_cv_sizeof_size_t" >&6; }
9581 cat >>confdefs.h <<_ACEOF
9582 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9583 _ACEOF
9586 # The cast to long int works around a bug in the HP C Compiler
9587 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9588 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9589 # This bug is HP SR number 8606223364.
9590 { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
9591 $as_echo_n "checking size of ssize_t... " >&6; }
9592 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
9593 $as_echo_n "(cached) " >&6
9594 else
9595 if test "$cross_compiling" = yes; then
9596 # Depending upon the size, compute the lo and hi bounds.
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h. */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9603 $ac_includes_default
9605 main ()
9607 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
9608 test_array [0] = 0
9611 return 0;
9613 _ACEOF
9614 rm -f conftest.$ac_objext
9615 if { (ac_try="$ac_compile"
9616 case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619 esac
9620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9621 $as_echo "$ac_try_echo") >&5
9622 (eval "$ac_compile") 2>conftest.er1
9623 ac_status=$?
9624 grep -v '^ *+' conftest.er1 >conftest.err
9625 rm -f conftest.er1
9626 cat conftest.err >&5
9627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } && {
9629 test -z "$ac_c_werror_flag" ||
9630 test ! -s conftest.err
9631 } && test -s conftest.$ac_objext; then
9632 ac_lo=0 ac_mid=0
9633 while :; do
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h. */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 $ac_includes_default
9642 main ()
9644 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
9645 test_array [0] = 0
9648 return 0;
9650 _ACEOF
9651 rm -f conftest.$ac_objext
9652 if { (ac_try="$ac_compile"
9653 case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9656 esac
9657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9658 $as_echo "$ac_try_echo") >&5
9659 (eval "$ac_compile") 2>conftest.er1
9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } && {
9666 test -z "$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest.$ac_objext; then
9669 ac_hi=$ac_mid; break
9670 else
9671 $as_echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_lo=`expr $ac_mid + 1`
9675 if test $ac_lo -le $ac_mid; then
9676 ac_lo= ac_hi=
9677 break
9679 ac_mid=`expr 2 '*' $ac_mid + 1`
9682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9683 done
9684 else
9685 $as_echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h. */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 $ac_includes_default
9696 main ()
9698 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
9699 test_array [0] = 0
9702 return 0;
9704 _ACEOF
9705 rm -f conftest.$ac_objext
9706 if { (ac_try="$ac_compile"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9712 $as_echo "$ac_try_echo") >&5
9713 (eval "$ac_compile") 2>conftest.er1
9714 ac_status=$?
9715 grep -v '^ *+' conftest.er1 >conftest.err
9716 rm -f conftest.er1
9717 cat conftest.err >&5
9718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } && {
9720 test -z "$ac_c_werror_flag" ||
9721 test ! -s conftest.err
9722 } && test -s conftest.$ac_objext; then
9723 ac_hi=-1 ac_mid=-1
9724 while :; do
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h. */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 $ac_includes_default
9733 main ()
9735 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
9736 test_array [0] = 0
9739 return 0;
9741 _ACEOF
9742 rm -f conftest.$ac_objext
9743 if { (ac_try="$ac_compile"
9744 case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747 esac
9748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9749 $as_echo "$ac_try_echo") >&5
9750 (eval "$ac_compile") 2>conftest.er1
9751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } && {
9757 test -z "$ac_c_werror_flag" ||
9758 test ! -s conftest.err
9759 } && test -s conftest.$ac_objext; then
9760 ac_lo=$ac_mid; break
9761 else
9762 $as_echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_hi=`expr '(' $ac_mid ')' - 1`
9766 if test $ac_mid -le $ac_hi; then
9767 ac_lo= ac_hi=
9768 break
9770 ac_mid=`expr 2 '*' $ac_mid`
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774 done
9775 else
9776 $as_echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 ac_lo= ac_hi=
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 # Binary search between lo and hi bounds.
9787 while test "x$ac_lo" != "x$ac_hi"; do
9788 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h. */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 $ac_includes_default
9797 main ()
9799 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
9800 test_array [0] = 0
9803 return 0;
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (ac_try="$ac_compile"
9808 case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811 esac
9812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9813 $as_echo "$ac_try_echo") >&5
9814 (eval "$ac_compile") 2>conftest.er1
9815 ac_status=$?
9816 grep -v '^ *+' conftest.er1 >conftest.err
9817 rm -f conftest.er1
9818 cat conftest.err >&5
9819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } && {
9821 test -z "$ac_c_werror_flag" ||
9822 test ! -s conftest.err
9823 } && test -s conftest.$ac_objext; then
9824 ac_hi=$ac_mid
9825 else
9826 $as_echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9829 ac_lo=`expr '(' $ac_mid ')' + 1`
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 done
9834 case $ac_lo in
9835 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
9836 '') if test "$ac_cv_type_ssize_t" = yes; then
9837 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9839 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
9840 See \`config.log' for more details." >&5
9841 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
9842 See \`config.log' for more details." >&2;}
9843 { (exit 77); exit 77; }; }; }
9844 else
9845 ac_cv_sizeof_ssize_t=0
9846 fi ;;
9847 esac
9848 else
9849 cat >conftest.$ac_ext <<_ACEOF
9850 /* confdefs.h. */
9851 _ACEOF
9852 cat confdefs.h >>conftest.$ac_ext
9853 cat >>conftest.$ac_ext <<_ACEOF
9854 /* end confdefs.h. */
9855 $ac_includes_default
9856 static long int longval () { return (long int) (sizeof (ssize_t)); }
9857 static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
9858 #include <stdio.h>
9859 #include <stdlib.h>
9861 main ()
9864 FILE *f = fopen ("conftest.val", "w");
9865 if (! f)
9866 return 1;
9867 if (((long int) (sizeof (ssize_t))) < 0)
9869 long int i = longval ();
9870 if (i != ((long int) (sizeof (ssize_t))))
9871 return 1;
9872 fprintf (f, "%ld", i);
9874 else
9876 unsigned long int i = ulongval ();
9877 if (i != ((long int) (sizeof (ssize_t))))
9878 return 1;
9879 fprintf (f, "%lu", i);
9881 /* Do not output a trailing newline, as this causes \r\n confusion
9882 on some platforms. */
9883 return ferror (f) || fclose (f) != 0;
9886 return 0;
9888 _ACEOF
9889 rm -f conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9891 case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894 esac
9895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9896 $as_echo "$ac_try_echo") >&5
9897 (eval "$ac_link") 2>&5
9898 ac_status=$?
9899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904 esac
9905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9906 $as_echo "$ac_try_echo") >&5
9907 (eval "$ac_try") 2>&5
9908 ac_status=$?
9909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_cv_sizeof_ssize_t=`cat conftest.val`
9912 else
9913 $as_echo "$as_me: program exited with status $ac_status" >&5
9914 $as_echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9917 ( exit $ac_status )
9918 if test "$ac_cv_type_ssize_t" = yes; then
9919 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9921 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
9922 See \`config.log' for more details." >&5
9923 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
9924 See \`config.log' for more details." >&2;}
9925 { (exit 77); exit 77; }; }; }
9926 else
9927 ac_cv_sizeof_ssize_t=0
9930 rm -rf conftest.dSYM
9931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9933 rm -f conftest.val
9935 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
9936 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
9940 cat >>confdefs.h <<_ACEOF
9941 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
9942 _ACEOF
9946 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
9947 $as_echo_n "checking for intptr_t... " >&6; }
9948 if test "${ac_cv_type_intptr_t+set}" = set; then
9949 $as_echo_n "(cached) " >&6
9950 else
9951 ac_cv_type_intptr_t=no
9952 cat >conftest.$ac_ext <<_ACEOF
9953 /* confdefs.h. */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 $ac_includes_default
9960 main ()
9962 if (sizeof (intptr_t))
9963 return 0;
9965 return 0;
9967 _ACEOF
9968 rm -f conftest.$ac_objext
9969 if { (ac_try="$ac_compile"
9970 case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973 esac
9974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9975 $as_echo "$ac_try_echo") >&5
9976 (eval "$ac_compile") 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && {
9983 test -z "$ac_c_werror_flag" ||
9984 test ! -s conftest.err
9985 } && test -s conftest.$ac_objext; then
9986 cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h. */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 $ac_includes_default
9994 main ()
9996 if (sizeof ((intptr_t)))
9997 return 0;
9999 return 0;
10001 _ACEOF
10002 rm -f conftest.$ac_objext
10003 if { (ac_try="$ac_compile"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007 esac
10008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10009 $as_echo "$ac_try_echo") >&5
10010 (eval "$ac_compile") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest.$ac_objext; then
10021 else
10022 $as_echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_cv_type_intptr_t=yes
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 else
10030 $as_echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10038 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
10039 $as_echo "$ac_cv_type_intptr_t" >&6; }
10040 if test "x$ac_cv_type_intptr_t" = x""yes; then
10042 cat >>confdefs.h <<_ACEOF
10043 #define HAVE_INTPTR_T 1
10044 _ACEOF
10048 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
10049 $as_echo_n "checking for uintptr_t... " >&6; }
10050 if test "${ac_cv_type_uintptr_t+set}" = set; then
10051 $as_echo_n "(cached) " >&6
10052 else
10053 ac_cv_type_uintptr_t=no
10054 cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h. */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 $ac_includes_default
10062 main ()
10064 if (sizeof (uintptr_t))
10065 return 0;
10067 return 0;
10069 _ACEOF
10070 rm -f conftest.$ac_objext
10071 if { (ac_try="$ac_compile"
10072 case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075 esac
10076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10077 $as_echo "$ac_try_echo") >&5
10078 (eval "$ac_compile") 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && {
10085 test -z "$ac_c_werror_flag" ||
10086 test ! -s conftest.err
10087 } && test -s conftest.$ac_objext; then
10088 cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h. */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10094 $ac_includes_default
10096 main ()
10098 if (sizeof ((uintptr_t)))
10099 return 0;
10101 return 0;
10103 _ACEOF
10104 rm -f conftest.$ac_objext
10105 if { (ac_try="$ac_compile"
10106 case "(($ac_try" in
10107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108 *) ac_try_echo=$ac_try;;
10109 esac
10110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10111 $as_echo "$ac_try_echo") >&5
10112 (eval "$ac_compile") 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest.$ac_objext; then
10123 else
10124 $as_echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10127 ac_cv_type_uintptr_t=yes
10130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10131 else
10132 $as_echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10140 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10141 $as_echo "$ac_cv_type_uintptr_t" >&6; }
10142 if test "x$ac_cv_type_uintptr_t" = x""yes; then
10144 cat >>confdefs.h <<_ACEOF
10145 #define HAVE_UINTPTR_T 1
10146 _ACEOF
10150 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10151 $as_echo_n "checking for ptrdiff_t... " >&6; }
10152 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10153 $as_echo_n "(cached) " >&6
10154 else
10155 ac_cv_type_ptrdiff_t=no
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h. */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 $ac_includes_default
10164 main ()
10166 if (sizeof (ptrdiff_t))
10167 return 0;
10169 return 0;
10171 _ACEOF
10172 rm -f conftest.$ac_objext
10173 if { (ac_try="$ac_compile"
10174 case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10177 esac
10178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10179 $as_echo "$ac_try_echo") >&5
10180 (eval "$ac_compile") 2>conftest.er1
10181 ac_status=$?
10182 grep -v '^ *+' conftest.er1 >conftest.err
10183 rm -f conftest.er1
10184 cat conftest.err >&5
10185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } && {
10187 test -z "$ac_c_werror_flag" ||
10188 test ! -s conftest.err
10189 } && test -s conftest.$ac_objext; then
10190 cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h. */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196 $ac_includes_default
10198 main ()
10200 if (sizeof ((ptrdiff_t)))
10201 return 0;
10203 return 0;
10205 _ACEOF
10206 rm -f conftest.$ac_objext
10207 if { (ac_try="$ac_compile"
10208 case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10211 esac
10212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10213 $as_echo "$ac_try_echo") >&5
10214 (eval "$ac_compile") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && {
10221 test -z "$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 } && test -s conftest.$ac_objext; then
10225 else
10226 $as_echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ac_cv_type_ptrdiff_t=yes
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233 else
10234 $as_echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10242 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10243 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
10244 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
10246 cat >>confdefs.h <<_ACEOF
10247 #define HAVE_PTRDIFF_T 1
10248 _ACEOF
10254 if test x"$ac_cv_type_long_long" != x"yes";then
10255 { { $as_echo "$as_me:$LINENO: error: LIBREPLACE needs type 'long long'" >&5
10256 $as_echo "$as_me: error: LIBREPLACE needs type 'long long'" >&2;}
10257 { (exit 1); exit 1; }; }
10259 if test $ac_cv_sizeof_long_long -lt 8;then
10260 { { $as_echo "$as_me:$LINENO: error: LIBREPLACE needs sizeof(long long) >= 8" >&5
10261 $as_echo "$as_me: error: LIBREPLACE needs sizeof(long long) >= 8" >&2;}
10262 { (exit 1); exit 1; }; }
10265 ############################################
10266 # check if the compiler can do immediate structures
10268 { $as_echo "$as_me:$LINENO: checking for immediate structures" >&5
10269 $as_echo_n "checking for immediate structures... " >&6; }
10270 if test "${libreplace_cv_immediate_structures+set}" = set; then
10271 $as_echo_n "(cached) " >&6
10272 else
10274 cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h. */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10281 #include <stdio.h>
10284 main ()
10287 typedef struct {unsigned x;} FOOBAR;
10288 #define X_FOOBAR(x) ((FOOBAR) { x })
10289 #define FOO_ONE X_FOOBAR(1)
10290 FOOBAR f = FOO_ONE;
10291 static const struct {
10292 FOOBAR y;
10293 } f2[] = {
10294 {FOO_ONE}
10296 static const FOOBAR f3[] = {FOO_ONE};
10299 return 0;
10301 _ACEOF
10302 rm -f conftest.$ac_objext
10303 if { (ac_try="$ac_compile"
10304 case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10307 esac
10308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10309 $as_echo "$ac_try_echo") >&5
10310 (eval "$ac_compile") 2>conftest.er1
10311 ac_status=$?
10312 grep -v '^ *+' conftest.er1 >conftest.err
10313 rm -f conftest.er1
10314 cat conftest.err >&5
10315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } && {
10317 test -z "$ac_c_werror_flag" ||
10318 test ! -s conftest.err
10319 } && test -s conftest.$ac_objext; then
10320 libreplace_cv_immediate_structures=yes
10321 else
10322 $as_echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 libreplace_cv_immediate_structures=no
10328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_immediate_structures" >&5
10332 $as_echo "$libreplace_cv_immediate_structures" >&6; }
10333 if test x"$libreplace_cv_immediate_structures" = x"yes"; then
10335 cat >>confdefs.h <<\_ACEOF
10336 #define HAVE_IMMEDIATE_STRUCTURES 1
10337 _ACEOF
10342 echo "LIBREPLACE_CC_CHECKS: END"
10346 echo "LIBREPLACE_BROKEN_CHECKS: START"
10348 libreplacedir=""
10349 libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace $srcdir/../lib/replace $srcdir/../../../lib/replace"
10350 for d in $libreplacepaths; do
10351 if test -f "$d/replace.c"; then
10352 libreplacedir="$d"
10354 break;
10356 done
10357 if test x"$libreplacedir" = "x"; then
10358 { { $as_echo "$as_me:$LINENO: error: cannot find libreplace in $libreplacepaths" >&5
10359 $as_echo "$as_me: error: cannot find libreplace in $libreplacepaths" >&2;}
10360 { (exit 1); exit 1; }; }
10363 LIBREPLACEOBJ="$libreplacedir/replace.o"
10366 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/snprintf.o"
10368 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10369 $as_echo_n "checking return type of signal handlers... " >&6; }
10370 if test "${ac_cv_type_signal+set}" = set; then
10371 $as_echo_n "(cached) " >&6
10372 else
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h. */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 #include <sys/types.h>
10380 #include <signal.h>
10383 main ()
10385 return *(signal (0, 0)) (0) == 1;
10387 return 0;
10389 _ACEOF
10390 rm -f conftest.$ac_objext
10391 if { (ac_try="$ac_compile"
10392 case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10395 esac
10396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10397 $as_echo "$ac_try_echo") >&5
10398 (eval "$ac_compile") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest.$ac_objext; then
10408 ac_cv_type_signal=int
10409 else
10410 $as_echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 ac_cv_type_signal=void
10416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10419 $as_echo "$ac_cv_type_signal" >&6; }
10421 cat >>confdefs.h <<_ACEOF
10422 #define RETSIGTYPE $ac_cv_type_signal
10423 _ACEOF
10426 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10427 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10428 if test "${ac_cv_type_uid_t+set}" = set; then
10429 $as_echo_n "(cached) " >&6
10430 else
10431 cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h. */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 #include <sys/types.h>
10439 _ACEOF
10440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10441 $EGREP "uid_t" >/dev/null 2>&1; then
10442 ac_cv_type_uid_t=yes
10443 else
10444 ac_cv_type_uid_t=no
10446 rm -f conftest*
10449 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10450 $as_echo "$ac_cv_type_uid_t" >&6; }
10451 if test $ac_cv_type_uid_t = no; then
10453 cat >>confdefs.h <<\_ACEOF
10454 #define uid_t int
10455 _ACEOF
10458 cat >>confdefs.h <<\_ACEOF
10459 #define gid_t int
10460 _ACEOF
10464 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
10465 $as_echo_n "checking for mode_t... " >&6; }
10466 if test "${ac_cv_type_mode_t+set}" = set; then
10467 $as_echo_n "(cached) " >&6
10468 else
10469 ac_cv_type_mode_t=no
10470 cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h. */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 $ac_includes_default
10478 main ()
10480 if (sizeof (mode_t))
10481 return 0;
10483 return 0;
10485 _ACEOF
10486 rm -f conftest.$ac_objext
10487 if { (ac_try="$ac_compile"
10488 case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10491 esac
10492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10493 $as_echo "$ac_try_echo") >&5
10494 (eval "$ac_compile") 2>conftest.er1
10495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && {
10501 test -z "$ac_c_werror_flag" ||
10502 test ! -s conftest.err
10503 } && test -s conftest.$ac_objext; then
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h. */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 $ac_includes_default
10512 main ()
10514 if (sizeof ((mode_t)))
10515 return 0;
10517 return 0;
10519 _ACEOF
10520 rm -f conftest.$ac_objext
10521 if { (ac_try="$ac_compile"
10522 case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525 esac
10526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10527 $as_echo "$ac_try_echo") >&5
10528 (eval "$ac_compile") 2>conftest.er1
10529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && {
10535 test -z "$ac_c_werror_flag" ||
10536 test ! -s conftest.err
10537 } && test -s conftest.$ac_objext; then
10539 else
10540 $as_echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 ac_cv_type_mode_t=yes
10546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10547 else
10548 $as_echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10556 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10557 $as_echo "$ac_cv_type_mode_t" >&6; }
10558 if test "x$ac_cv_type_mode_t" = x""yes; then
10560 else
10562 cat >>confdefs.h <<_ACEOF
10563 #define mode_t int
10564 _ACEOF
10568 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
10569 $as_echo_n "checking for off_t... " >&6; }
10570 if test "${ac_cv_type_off_t+set}" = set; then
10571 $as_echo_n "(cached) " >&6
10572 else
10573 ac_cv_type_off_t=no
10574 cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580 $ac_includes_default
10582 main ()
10584 if (sizeof (off_t))
10585 return 0;
10587 return 0;
10589 _ACEOF
10590 rm -f conftest.$ac_objext
10591 if { (ac_try="$ac_compile"
10592 case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10595 esac
10596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10597 $as_echo "$ac_try_echo") >&5
10598 (eval "$ac_compile") 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest.$ac_objext; then
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 $ac_includes_default
10616 main ()
10618 if (sizeof ((off_t)))
10619 return 0;
10621 return 0;
10623 _ACEOF
10624 rm -f conftest.$ac_objext
10625 if { (ac_try="$ac_compile"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629 esac
10630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10631 $as_echo "$ac_try_echo") >&5
10632 (eval "$ac_compile") 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && {
10639 test -z "$ac_c_werror_flag" ||
10640 test ! -s conftest.err
10641 } && test -s conftest.$ac_objext; then
10643 else
10644 $as_echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10647 ac_cv_type_off_t=yes
10650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10651 else
10652 $as_echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10661 $as_echo "$ac_cv_type_off_t" >&6; }
10662 if test "x$ac_cv_type_off_t" = x""yes; then
10664 else
10666 cat >>confdefs.h <<_ACEOF
10667 #define off_t long int
10668 _ACEOF
10672 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
10673 $as_echo_n "checking for size_t... " >&6; }
10674 if test "${ac_cv_type_size_t+set}" = set; then
10675 $as_echo_n "(cached) " >&6
10676 else
10677 ac_cv_type_size_t=no
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h. */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 $ac_includes_default
10686 main ()
10688 if (sizeof (size_t))
10689 return 0;
10691 return 0;
10693 _ACEOF
10694 rm -f conftest.$ac_objext
10695 if { (ac_try="$ac_compile"
10696 case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10699 esac
10700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10701 $as_echo "$ac_try_echo") >&5
10702 (eval "$ac_compile") 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && {
10709 test -z "$ac_c_werror_flag" ||
10710 test ! -s conftest.err
10711 } && test -s conftest.$ac_objext; then
10712 cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h. */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 $ac_includes_default
10720 main ()
10722 if (sizeof ((size_t)))
10723 return 0;
10725 return 0;
10727 _ACEOF
10728 rm -f conftest.$ac_objext
10729 if { (ac_try="$ac_compile"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10735 $as_echo "$ac_try_echo") >&5
10736 (eval "$ac_compile") 2>conftest.er1
10737 ac_status=$?
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
10741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && {
10743 test -z "$ac_c_werror_flag" ||
10744 test ! -s conftest.err
10745 } && test -s conftest.$ac_objext; then
10747 else
10748 $as_echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_type_size_t=yes
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 else
10756 $as_echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10765 $as_echo "$ac_cv_type_size_t" >&6; }
10766 if test "x$ac_cv_type_size_t" = x""yes; then
10768 else
10770 cat >>confdefs.h <<_ACEOF
10771 #define size_t unsigned int
10772 _ACEOF
10776 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
10777 $as_echo_n "checking for pid_t... " >&6; }
10778 if test "${ac_cv_type_pid_t+set}" = set; then
10779 $as_echo_n "(cached) " >&6
10780 else
10781 ac_cv_type_pid_t=no
10782 cat >conftest.$ac_ext <<_ACEOF
10783 /* confdefs.h. */
10784 _ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10788 $ac_includes_default
10790 main ()
10792 if (sizeof (pid_t))
10793 return 0;
10795 return 0;
10797 _ACEOF
10798 rm -f conftest.$ac_objext
10799 if { (ac_try="$ac_compile"
10800 case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10803 esac
10804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10805 $as_echo "$ac_try_echo") >&5
10806 (eval "$ac_compile") 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } && {
10813 test -z "$ac_c_werror_flag" ||
10814 test ! -s conftest.err
10815 } && test -s conftest.$ac_objext; then
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h. */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 $ac_includes_default
10824 main ()
10826 if (sizeof ((pid_t)))
10827 return 0;
10829 return 0;
10831 _ACEOF
10832 rm -f conftest.$ac_objext
10833 if { (ac_try="$ac_compile"
10834 case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10837 esac
10838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10839 $as_echo "$ac_try_echo") >&5
10840 (eval "$ac_compile") 2>conftest.er1
10841 ac_status=$?
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
10845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } && {
10847 test -z "$ac_c_werror_flag" ||
10848 test ! -s conftest.err
10849 } && test -s conftest.$ac_objext; then
10851 else
10852 $as_echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 ac_cv_type_pid_t=yes
10858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10859 else
10860 $as_echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10868 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10869 $as_echo "$ac_cv_type_pid_t" >&6; }
10870 if test "x$ac_cv_type_pid_t" = x""yes; then
10872 else
10874 cat >>confdefs.h <<_ACEOF
10875 #define pid_t int
10876 _ACEOF
10880 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
10881 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
10882 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
10883 $as_echo_n "(cached) " >&6
10884 else
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 $ac_includes_default
10893 main ()
10895 static struct stat ac_aggr;
10896 if (ac_aggr.st_rdev)
10897 return 0;
10899 return 0;
10901 _ACEOF
10902 rm -f conftest.$ac_objext
10903 if { (ac_try="$ac_compile"
10904 case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907 esac
10908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10909 $as_echo "$ac_try_echo") >&5
10910 (eval "$ac_compile") 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest.$ac_objext; then
10920 ac_cv_member_struct_stat_st_rdev=yes
10921 else
10922 $as_echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h. */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 $ac_includes_default
10933 main ()
10935 static struct stat ac_aggr;
10936 if (sizeof ac_aggr.st_rdev)
10937 return 0;
10939 return 0;
10941 _ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (ac_try="$ac_compile"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947 esac
10948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10949 $as_echo "$ac_try_echo") >&5
10950 (eval "$ac_compile") 2>conftest.er1
10951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
10955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } && {
10957 test -z "$ac_c_werror_flag" ||
10958 test ! -s conftest.err
10959 } && test -s conftest.$ac_objext; then
10960 ac_cv_member_struct_stat_st_rdev=yes
10961 else
10962 $as_echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 ac_cv_member_struct_stat_st_rdev=no
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
10974 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
10975 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
10977 cat >>confdefs.h <<_ACEOF
10978 #define HAVE_STRUCT_STAT_ST_RDEV 1
10979 _ACEOF
10982 cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_ST_RDEV 1
10984 _ACEOF
10989 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
10990 $as_echo_n "checking for ino_t... " >&6; }
10991 if test "${ac_cv_type_ino_t+set}" = set; then
10992 $as_echo_n "(cached) " >&6
10993 else
10994 ac_cv_type_ino_t=no
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h. */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 $ac_includes_default
11003 main ()
11005 if (sizeof (ino_t))
11006 return 0;
11008 return 0;
11010 _ACEOF
11011 rm -f conftest.$ac_objext
11012 if { (ac_try="$ac_compile"
11013 case "(($ac_try" in
11014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015 *) ac_try_echo=$ac_try;;
11016 esac
11017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11018 $as_echo "$ac_try_echo") >&5
11019 (eval "$ac_compile") 2>conftest.er1
11020 ac_status=$?
11021 grep -v '^ *+' conftest.er1 >conftest.err
11022 rm -f conftest.er1
11023 cat conftest.err >&5
11024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } && {
11026 test -z "$ac_c_werror_flag" ||
11027 test ! -s conftest.err
11028 } && test -s conftest.$ac_objext; then
11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 $ac_includes_default
11037 main ()
11039 if (sizeof ((ino_t)))
11040 return 0;
11042 return 0;
11044 _ACEOF
11045 rm -f conftest.$ac_objext
11046 if { (ac_try="$ac_compile"
11047 case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11050 esac
11051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11052 $as_echo "$ac_try_echo") >&5
11053 (eval "$ac_compile") 2>conftest.er1
11054 ac_status=$?
11055 grep -v '^ *+' conftest.er1 >conftest.err
11056 rm -f conftest.er1
11057 cat conftest.err >&5
11058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_c_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest.$ac_objext; then
11064 else
11065 $as_echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 ac_cv_type_ino_t=yes
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 else
11073 $as_echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11082 $as_echo "$ac_cv_type_ino_t" >&6; }
11083 if test "x$ac_cv_type_ino_t" = x""yes; then
11085 else
11087 cat >>confdefs.h <<_ACEOF
11088 #define ino_t unsigned
11089 _ACEOF
11093 { $as_echo "$as_me:$LINENO: checking for loff_t" >&5
11094 $as_echo_n "checking for loff_t... " >&6; }
11095 if test "${ac_cv_type_loff_t+set}" = set; then
11096 $as_echo_n "(cached) " >&6
11097 else
11098 ac_cv_type_loff_t=no
11099 cat >conftest.$ac_ext <<_ACEOF
11100 /* confdefs.h. */
11101 _ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11105 $ac_includes_default
11107 main ()
11109 if (sizeof (loff_t))
11110 return 0;
11112 return 0;
11114 _ACEOF
11115 rm -f conftest.$ac_objext
11116 if { (ac_try="$ac_compile"
11117 case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11120 esac
11121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11122 $as_echo "$ac_try_echo") >&5
11123 (eval "$ac_compile") 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && {
11130 test -z "$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 } && test -s conftest.$ac_objext; then
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 $ac_includes_default
11141 main ()
11143 if (sizeof ((loff_t)))
11144 return 0;
11146 return 0;
11148 _ACEOF
11149 rm -f conftest.$ac_objext
11150 if { (ac_try="$ac_compile"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11154 esac
11155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11156 $as_echo "$ac_try_echo") >&5
11157 (eval "$ac_compile") 2>conftest.er1
11158 ac_status=$?
11159 grep -v '^ *+' conftest.er1 >conftest.err
11160 rm -f conftest.er1
11161 cat conftest.err >&5
11162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } && {
11164 test -z "$ac_c_werror_flag" ||
11165 test ! -s conftest.err
11166 } && test -s conftest.$ac_objext; then
11168 else
11169 $as_echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11172 ac_cv_type_loff_t=yes
11175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11176 else
11177 $as_echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11185 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
11186 $as_echo "$ac_cv_type_loff_t" >&6; }
11187 if test "x$ac_cv_type_loff_t" = x""yes; then
11189 else
11191 cat >>confdefs.h <<_ACEOF
11192 #define loff_t off_t
11193 _ACEOF
11197 { $as_echo "$as_me:$LINENO: checking for offset_t" >&5
11198 $as_echo_n "checking for offset_t... " >&6; }
11199 if test "${ac_cv_type_offset_t+set}" = set; then
11200 $as_echo_n "(cached) " >&6
11201 else
11202 ac_cv_type_offset_t=no
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h. */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 $ac_includes_default
11211 main ()
11213 if (sizeof (offset_t))
11214 return 0;
11216 return 0;
11218 _ACEOF
11219 rm -f conftest.$ac_objext
11220 if { (ac_try="$ac_compile"
11221 case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224 esac
11225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11226 $as_echo "$ac_try_echo") >&5
11227 (eval "$ac_compile") 2>conftest.er1
11228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && {
11234 test -z "$ac_c_werror_flag" ||
11235 test ! -s conftest.err
11236 } && test -s conftest.$ac_objext; then
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h. */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 $ac_includes_default
11245 main ()
11247 if (sizeof ((offset_t)))
11248 return 0;
11250 return 0;
11252 _ACEOF
11253 rm -f conftest.$ac_objext
11254 if { (ac_try="$ac_compile"
11255 case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11258 esac
11259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11260 $as_echo "$ac_try_echo") >&5
11261 (eval "$ac_compile") 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } && {
11268 test -z "$ac_c_werror_flag" ||
11269 test ! -s conftest.err
11270 } && test -s conftest.$ac_objext; then
11272 else
11273 $as_echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_cv_type_offset_t=yes
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 else
11281 $as_echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
11290 $as_echo "$ac_cv_type_offset_t" >&6; }
11291 if test "x$ac_cv_type_offset_t" = x""yes; then
11293 else
11295 cat >>confdefs.h <<_ACEOF
11296 #define offset_t loff_t
11297 _ACEOF
11302 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
11303 $as_echo_n "checking for working memcmp... " >&6; }
11304 if test "${ac_cv_func_memcmp_working+set}" = set; then
11305 $as_echo_n "(cached) " >&6
11306 else
11307 if test "$cross_compiling" = yes; then
11308 ac_cv_func_memcmp_working=no
11309 else
11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h. */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 $ac_includes_default
11318 main ()
11321 /* Some versions of memcmp are not 8-bit clean. */
11322 char c0 = '\100', c1 = '\200', c2 = '\201';
11323 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11324 return 1;
11326 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11327 or more and with at least one buffer not starting on a 4-byte boundary.
11328 William Lewis provided this test program. */
11330 char foo[21];
11331 char bar[21];
11332 int i;
11333 for (i = 0; i < 4; i++)
11335 char *a = foo + i;
11336 char *b = bar + i;
11337 strcpy (a, "--------01111111");
11338 strcpy (b, "--------10000000");
11339 if (memcmp (a, b, 16) >= 0)
11340 return 1;
11342 return 0;
11346 return 0;
11348 _ACEOF
11349 rm -f conftest$ac_exeext
11350 if { (ac_try="$ac_link"
11351 case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354 esac
11355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11356 $as_echo "$ac_try_echo") >&5
11357 (eval "$ac_link") 2>&5
11358 ac_status=$?
11359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11361 { (case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11364 esac
11365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11366 $as_echo "$ac_try_echo") >&5
11367 (eval "$ac_try") 2>&5
11368 ac_status=$?
11369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_cv_func_memcmp_working=yes
11372 else
11373 $as_echo "$as_me: program exited with status $ac_status" >&5
11374 $as_echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11377 ( exit $ac_status )
11378 ac_cv_func_memcmp_working=no
11380 rm -rf conftest.dSYM
11381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11386 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11387 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11388 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11389 *" memcmp.$ac_objext "* ) ;;
11390 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11392 esac
11408 for ac_func in pipe strftime srandom random srand rand usleep setbuffer lstat getpgrp utime utimes
11410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11411 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11412 $as_echo_n "checking for $ac_func... " >&6; }
11413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11414 $as_echo_n "(cached) " >&6
11415 else
11416 cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h. */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11424 #define $ac_func innocuous_$ac_func
11426 /* System header to define __stub macros and hopefully few prototypes,
11427 which can conflict with char $ac_func (); below.
11428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11429 <limits.h> exists even on freestanding compilers. */
11431 #ifdef __STDC__
11432 # include <limits.h>
11433 #else
11434 # include <assert.h>
11435 #endif
11437 #undef $ac_func
11439 /* Override any GCC internal prototype to avoid an error.
11440 Use char because int might match the return type of a GCC
11441 builtin and then its argument prototype would still apply. */
11442 #ifdef __cplusplus
11443 extern "C"
11444 #endif
11445 char $ac_func ();
11446 /* The GNU C library defines this for functions which it implements
11447 to always fail with ENOSYS. Some functions are actually named
11448 something starting with __ and the normal name is an alias. */
11449 #if defined __stub_$ac_func || defined __stub___$ac_func
11450 choke me
11451 #endif
11454 main ()
11456 return $ac_func ();
11458 return 0;
11460 _ACEOF
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (ac_try="$ac_link"
11463 case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11466 esac
11467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11468 $as_echo "$ac_try_echo") >&5
11469 (eval "$ac_link") 2>conftest.er1
11470 ac_status=$?
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
11474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } && {
11476 test -z "$ac_c_werror_flag" ||
11477 test ! -s conftest.err
11478 } && test -s conftest$ac_exeext && {
11479 test "$cross_compiling" = yes ||
11480 $as_test_x conftest$ac_exeext
11481 }; then
11482 eval "$as_ac_var=yes"
11483 else
11484 $as_echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 eval "$as_ac_var=no"
11490 rm -rf conftest.dSYM
11491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11492 conftest$ac_exeext conftest.$ac_ext
11494 ac_res=`eval 'as_val=${'$as_ac_var'}
11495 $as_echo "$as_val"'`
11496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11497 $as_echo "$ac_res" >&6; }
11498 as_val=`eval 'as_val=${'$as_ac_var'}
11499 $as_echo "$as_val"'`
11500 if test "x$as_val" = x""yes; then
11501 cat >>confdefs.h <<_ACEOF
11502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11503 _ACEOF
11506 done
11512 for ac_header in stdbool.h stdint.h sys/select.h
11514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11516 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11517 $as_echo_n "checking for $ac_header... " >&6; }
11518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11519 $as_echo_n "(cached) " >&6
11521 ac_res=`eval 'as_val=${'$as_ac_Header'}
11522 $as_echo "$as_val"'`
11523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11524 $as_echo "$ac_res" >&6; }
11525 else
11526 # Is the header compilable?
11527 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11528 $as_echo_n "checking $ac_header usability... " >&6; }
11529 cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h. */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 $ac_includes_default
11536 #include <$ac_header>
11537 _ACEOF
11538 rm -f conftest.$ac_objext
11539 if { (ac_try="$ac_compile"
11540 case "(($ac_try" in
11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11543 esac
11544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11545 $as_echo "$ac_try_echo") >&5
11546 (eval "$ac_compile") 2>conftest.er1
11547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } && {
11553 test -z "$ac_c_werror_flag" ||
11554 test ! -s conftest.err
11555 } && test -s conftest.$ac_objext; then
11556 ac_header_compiler=yes
11557 else
11558 $as_echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11561 ac_header_compiler=no
11564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11565 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11566 $as_echo "$ac_header_compiler" >&6; }
11568 # Is the header present?
11569 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11570 $as_echo_n "checking $ac_header presence... " >&6; }
11571 cat >conftest.$ac_ext <<_ACEOF
11572 /* confdefs.h. */
11573 _ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 #include <$ac_header>
11578 _ACEOF
11579 if { (ac_try="$ac_cpp conftest.$ac_ext"
11580 case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583 esac
11584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11585 $as_echo "$ac_try_echo") >&5
11586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11587 ac_status=$?
11588 grep -v '^ *+' conftest.er1 >conftest.err
11589 rm -f conftest.er1
11590 cat conftest.err >&5
11591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } >/dev/null && {
11593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11594 test ! -s conftest.err
11595 }; then
11596 ac_header_preproc=yes
11597 else
11598 $as_echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11601 ac_header_preproc=no
11604 rm -f conftest.err conftest.$ac_ext
11605 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11606 $as_echo "$ac_header_preproc" >&6; }
11608 # So? What about this header?
11609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11610 yes:no: )
11611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11612 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11615 ac_header_preproc=yes
11617 no:yes:* )
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11625 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11627 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11629 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11632 esac
11633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11634 $as_echo_n "checking for $ac_header... " >&6; }
11635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11636 $as_echo_n "(cached) " >&6
11637 else
11638 eval "$as_ac_Header=\$ac_header_preproc"
11640 ac_res=`eval 'as_val=${'$as_ac_Header'}
11641 $as_echo "$as_val"'`
11642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11643 $as_echo "$ac_res" >&6; }
11646 as_val=`eval 'as_val=${'$as_ac_Header'}
11647 $as_echo "$as_val"'`
11648 if test "x$as_val" = x""yes; then
11649 cat >>confdefs.h <<_ACEOF
11650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11651 _ACEOF
11655 done
11659 for ac_header in setjmp.h utime.h
11661 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11663 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11664 $as_echo_n "checking for $ac_header... " >&6; }
11665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11666 $as_echo_n "(cached) " >&6
11668 ac_res=`eval 'as_val=${'$as_ac_Header'}
11669 $as_echo "$as_val"'`
11670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11671 $as_echo "$ac_res" >&6; }
11672 else
11673 # Is the header compilable?
11674 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11675 $as_echo_n "checking $ac_header usability... " >&6; }
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h. */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 $ac_includes_default
11683 #include <$ac_header>
11684 _ACEOF
11685 rm -f conftest.$ac_objext
11686 if { (ac_try="$ac_compile"
11687 case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690 esac
11691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11692 $as_echo "$ac_try_echo") >&5
11693 (eval "$ac_compile") 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest.$ac_objext; then
11703 ac_header_compiler=yes
11704 else
11705 $as_echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 ac_header_compiler=no
11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11713 $as_echo "$ac_header_compiler" >&6; }
11715 # Is the header present?
11716 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11717 $as_echo_n "checking $ac_header presence... " >&6; }
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h. */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 #include <$ac_header>
11725 _ACEOF
11726 if { (ac_try="$ac_cpp conftest.$ac_ext"
11727 case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11730 esac
11731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11732 $as_echo "$ac_try_echo") >&5
11733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } >/dev/null && {
11740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11741 test ! -s conftest.err
11742 }; then
11743 ac_header_preproc=yes
11744 else
11745 $as_echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11748 ac_header_preproc=no
11751 rm -f conftest.err conftest.$ac_ext
11752 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11753 $as_echo "$ac_header_preproc" >&6; }
11755 # So? What about this header?
11756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11757 yes:no: )
11758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11759 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11761 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11762 ac_header_preproc=yes
11764 no:yes:* )
11765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11766 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11768 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11770 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11772 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11774 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11776 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11779 esac
11780 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11781 $as_echo_n "checking for $ac_header... " >&6; }
11782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11783 $as_echo_n "(cached) " >&6
11784 else
11785 eval "$as_ac_Header=\$ac_header_preproc"
11787 ac_res=`eval 'as_val=${'$as_ac_Header'}
11788 $as_echo "$as_val"'`
11789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11790 $as_echo "$ac_res" >&6; }
11793 as_val=`eval 'as_val=${'$as_ac_Header'}
11794 $as_echo "$as_val"'`
11795 if test "x$as_val" = x""yes; then
11796 cat >>confdefs.h <<_ACEOF
11797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11798 _ACEOF
11802 done
11805 if test "${ac_cv_header_stdint_h+set}" = set; then
11806 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
11807 $as_echo_n "checking for stdint.h... " >&6; }
11808 if test "${ac_cv_header_stdint_h+set}" = set; then
11809 $as_echo_n "(cached) " >&6
11811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11812 $as_echo "$ac_cv_header_stdint_h" >&6; }
11813 else
11814 # Is the header compilable?
11815 { $as_echo "$as_me:$LINENO: checking stdint.h usability" >&5
11816 $as_echo_n "checking stdint.h usability... " >&6; }
11817 cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h. */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 $ac_includes_default
11824 #include <stdint.h>
11825 _ACEOF
11826 rm -f conftest.$ac_objext
11827 if { (ac_try="$ac_compile"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831 esac
11832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11833 $as_echo "$ac_try_echo") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
11844 ac_header_compiler=yes
11845 else
11846 $as_echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_header_compiler=no
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11854 $as_echo "$ac_header_compiler" >&6; }
11856 # Is the header present?
11857 { $as_echo "$as_me:$LINENO: checking stdint.h presence" >&5
11858 $as_echo_n "checking stdint.h presence... " >&6; }
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 #include <stdint.h>
11866 _ACEOF
11867 if { (ac_try="$ac_cpp conftest.$ac_ext"
11868 case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871 esac
11872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11873 $as_echo "$ac_try_echo") >&5
11874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } >/dev/null && {
11881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11882 test ! -s conftest.err
11883 }; then
11884 ac_header_preproc=yes
11885 else
11886 $as_echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11889 ac_header_preproc=no
11892 rm -f conftest.err conftest.$ac_ext
11893 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11894 $as_echo "$ac_header_preproc" >&6; }
11896 # So? What about this header?
11897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11898 yes:no: )
11899 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
11900 $as_echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11901 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
11902 $as_echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
11903 ac_header_preproc=yes
11905 no:yes:* )
11906 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
11907 $as_echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
11908 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
11909 $as_echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
11910 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
11911 $as_echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
11912 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
11913 $as_echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
11914 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
11915 $as_echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
11916 { $as_echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
11917 $as_echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
11920 esac
11921 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
11922 $as_echo_n "checking for stdint.h... " >&6; }
11923 if test "${ac_cv_header_stdint_h+set}" = set; then
11924 $as_echo_n "(cached) " >&6
11925 else
11926 ac_cv_header_stdint_h=$ac_header_preproc
11928 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11929 $as_echo "$ac_cv_header_stdint_h" >&6; }
11932 if test "x$ac_cv_header_stdint_h" = x""yes; then
11933 ac_config_commands="$ac_config_commands rm-stdint.h"
11935 else
11936 ac_config_commands="$ac_config_commands mk-stdint.h"
11943 if test "${ac_cv_header_stdbool_h+set}" = set; then
11944 { $as_echo "$as_me:$LINENO: checking for stdbool.h" >&5
11945 $as_echo_n "checking for stdbool.h... " >&6; }
11946 if test "${ac_cv_header_stdbool_h+set}" = set; then
11947 $as_echo_n "(cached) " >&6
11949 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11950 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11951 else
11952 # Is the header compilable?
11953 { $as_echo "$as_me:$LINENO: checking stdbool.h usability" >&5
11954 $as_echo_n "checking stdbool.h usability... " >&6; }
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 $ac_includes_default
11962 #include <stdbool.h>
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969 esac
11970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11971 $as_echo "$ac_try_echo") >&5
11972 (eval "$ac_compile") 2>conftest.er1
11973 ac_status=$?
11974 grep -v '^ *+' conftest.er1 >conftest.err
11975 rm -f conftest.er1
11976 cat conftest.err >&5
11977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest.$ac_objext; then
11982 ac_header_compiler=yes
11983 else
11984 $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_header_compiler=no
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11992 $as_echo "$ac_header_compiler" >&6; }
11994 # Is the header present?
11995 { $as_echo "$as_me:$LINENO: checking stdbool.h presence" >&5
11996 $as_echo_n "checking stdbool.h presence... " >&6; }
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h. */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 #include <stdbool.h>
12004 _ACEOF
12005 if { (ac_try="$ac_cpp conftest.$ac_ext"
12006 case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12009 esac
12010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12011 $as_echo "$ac_try_echo") >&5
12012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12013 ac_status=$?
12014 grep -v '^ *+' conftest.er1 >conftest.err
12015 rm -f conftest.er1
12016 cat conftest.err >&5
12017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } >/dev/null && {
12019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12020 test ! -s conftest.err
12021 }; then
12022 ac_header_preproc=yes
12023 else
12024 $as_echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ac_header_preproc=no
12030 rm -f conftest.err conftest.$ac_ext
12031 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12032 $as_echo "$ac_header_preproc" >&6; }
12034 # So? What about this header?
12035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12036 yes:no: )
12037 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: accepted by the compiler, rejected by the preprocessor!" >&5
12038 $as_echo "$as_me: WARNING: stdbool.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12039 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: proceeding with the compiler's result" >&5
12040 $as_echo "$as_me: WARNING: stdbool.h: proceeding with the compiler's result" >&2;}
12041 ac_header_preproc=yes
12043 no:yes:* )
12044 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: present but cannot be compiled" >&5
12045 $as_echo "$as_me: WARNING: stdbool.h: present but cannot be compiled" >&2;}
12046 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: check for missing prerequisite headers?" >&5
12047 $as_echo "$as_me: WARNING: stdbool.h: check for missing prerequisite headers?" >&2;}
12048 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: see the Autoconf documentation" >&5
12049 $as_echo "$as_me: WARNING: stdbool.h: see the Autoconf documentation" >&2;}
12050 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: section \"Present But Cannot Be Compiled\"" >&5
12051 $as_echo "$as_me: WARNING: stdbool.h: section \"Present But Cannot Be Compiled\"" >&2;}
12052 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: proceeding with the preprocessor's result" >&5
12053 $as_echo "$as_me: WARNING: stdbool.h: proceeding with the preprocessor's result" >&2;}
12054 { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: in the future, the compiler will take precedence" >&5
12055 $as_echo "$as_me: WARNING: stdbool.h: in the future, the compiler will take precedence" >&2;}
12058 esac
12059 { $as_echo "$as_me:$LINENO: checking for stdbool.h" >&5
12060 $as_echo_n "checking for stdbool.h... " >&6; }
12061 if test "${ac_cv_header_stdbool_h+set}" = set; then
12062 $as_echo_n "(cached) " >&6
12063 else
12064 ac_cv_header_stdbool_h=$ac_header_preproc
12066 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12067 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12070 if test "x$ac_cv_header_stdbool_h" = x""yes; then
12071 ac_config_commands="$ac_config_commands rm-stdbool.h"
12073 else
12074 ac_config_commands="$ac_config_commands mk-stdbool.h"
12082 { $as_echo "$as_me:$LINENO: checking for bool" >&5
12083 $as_echo_n "checking for bool... " >&6; }
12084 if test "${ac_cv_type_bool+set}" = set; then
12085 $as_echo_n "(cached) " >&6
12086 else
12087 ac_cv_type_bool=no
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12095 $ac_includes_default
12096 #ifdef HAVE_STDBOOL_H
12097 #include <stdbool.h>
12098 #endif
12102 main ()
12104 if (sizeof (bool))
12105 return 0;
12107 return 0;
12109 _ACEOF
12110 rm -f conftest.$ac_objext
12111 if { (ac_try="$ac_compile"
12112 case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115 esac
12116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12117 $as_echo "$ac_try_echo") >&5
12118 (eval "$ac_compile") 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } && {
12125 test -z "$ac_c_werror_flag" ||
12126 test ! -s conftest.err
12127 } && test -s conftest.$ac_objext; then
12128 cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h. */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12135 $ac_includes_default
12136 #ifdef HAVE_STDBOOL_H
12137 #include <stdbool.h>
12138 #endif
12142 main ()
12144 if (sizeof ((bool)))
12145 return 0;
12147 return 0;
12149 _ACEOF
12150 rm -f conftest.$ac_objext
12151 if { (ac_try="$ac_compile"
12152 case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12155 esac
12156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12157 $as_echo "$ac_try_echo") >&5
12158 (eval "$ac_compile") 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } && {
12165 test -z "$ac_c_werror_flag" ||
12166 test ! -s conftest.err
12167 } && test -s conftest.$ac_objext; then
12169 else
12170 $as_echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12173 ac_cv_type_bool=yes
12176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 else
12178 $as_echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12186 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
12187 $as_echo "$ac_cv_type_bool" >&6; }
12188 if test "x$ac_cv_type_bool" = x""yes; then
12190 cat >>confdefs.h <<\_ACEOF
12191 #define HAVE_BOOL 1
12192 _ACEOF
12197 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
12198 $as_echo_n "checking for _Bool... " >&6; }
12199 if test "${ac_cv_type__Bool+set}" = set; then
12200 $as_echo_n "(cached) " >&6
12201 else
12202 ac_cv_type__Bool=no
12203 cat >conftest.$ac_ext <<_ACEOF
12204 /* confdefs.h. */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12210 $ac_includes_default
12211 #ifdef HAVE_STDBOOL_H
12212 #include <stdbool.h>
12213 #endif
12217 main ()
12219 if (sizeof (_Bool))
12220 return 0;
12222 return 0;
12224 _ACEOF
12225 rm -f conftest.$ac_objext
12226 if { (ac_try="$ac_compile"
12227 case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12230 esac
12231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12232 $as_echo "$ac_try_echo") >&5
12233 (eval "$ac_compile") 2>conftest.er1
12234 ac_status=$?
12235 grep -v '^ *+' conftest.er1 >conftest.err
12236 rm -f conftest.er1
12237 cat conftest.err >&5
12238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } && {
12240 test -z "$ac_c_werror_flag" ||
12241 test ! -s conftest.err
12242 } && test -s conftest.$ac_objext; then
12243 cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12250 $ac_includes_default
12251 #ifdef HAVE_STDBOOL_H
12252 #include <stdbool.h>
12253 #endif
12257 main ()
12259 if (sizeof ((_Bool)))
12260 return 0;
12262 return 0;
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (ac_try="$ac_compile"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270 esac
12271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12272 $as_echo "$ac_try_echo") >&5
12273 (eval "$ac_compile") 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest.$ac_objext; then
12284 else
12285 $as_echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_cv_type__Bool=yes
12291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292 else
12293 $as_echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12302 $as_echo "$ac_cv_type__Bool" >&6; }
12303 if test "x$ac_cv_type__Bool" = x""yes; then
12305 cat >>confdefs.h <<\_ACEOF
12306 #define HAVE__Bool 1
12307 _ACEOF
12312 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
12313 $as_echo_n "checking for working mmap... " >&6; }
12314 if test "${libreplace_cv_HAVE_MMAP+set}" = set; then
12315 $as_echo_n "(cached) " >&6
12316 else
12318 if test "$cross_compiling" = yes; then
12319 libreplace_cv_HAVE_MMAP=cross
12320 else
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h. */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 #include "$libreplacedir/test/shared_mmap.c"
12328 _ACEOF
12329 rm -f conftest$ac_exeext
12330 if { (ac_try="$ac_link"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12336 $as_echo "$ac_try_echo") >&5
12337 (eval "$ac_link") 2>&5
12338 ac_status=$?
12339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12341 { (case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12344 esac
12345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12346 $as_echo "$ac_try_echo") >&5
12347 (eval "$ac_try") 2>&5
12348 ac_status=$?
12349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 libreplace_cv_HAVE_MMAP=yes
12352 else
12353 $as_echo "$as_me: program exited with status $ac_status" >&5
12354 $as_echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ( exit $ac_status )
12358 libreplace_cv_HAVE_MMAP=no
12360 rm -rf conftest.dSYM
12361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12366 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_MMAP" >&5
12367 $as_echo "$libreplace_cv_HAVE_MMAP" >&6; }
12368 if test x"$libreplace_cv_HAVE_MMAP" = x"yes"; then
12370 cat >>confdefs.h <<\_ACEOF
12371 #define HAVE_MMAP 1
12372 _ACEOF
12379 for ac_header in sys/syslog.h syslog.h
12381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12384 $as_echo_n "checking for $ac_header... " >&6; }
12385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12386 $as_echo_n "(cached) " >&6
12388 ac_res=`eval 'as_val=${'$as_ac_Header'}
12389 $as_echo "$as_val"'`
12390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12391 $as_echo "$ac_res" >&6; }
12392 else
12393 # Is the header compilable?
12394 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12395 $as_echo_n "checking $ac_header usability... " >&6; }
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402 $ac_includes_default
12403 #include <$ac_header>
12404 _ACEOF
12405 rm -f conftest.$ac_objext
12406 if { (ac_try="$ac_compile"
12407 case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410 esac
12411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12412 $as_echo "$ac_try_echo") >&5
12413 (eval "$ac_compile") 2>conftest.er1
12414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
12418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } && {
12420 test -z "$ac_c_werror_flag" ||
12421 test ! -s conftest.err
12422 } && test -s conftest.$ac_objext; then
12423 ac_header_compiler=yes
12424 else
12425 $as_echo "$as_me: failed program was:" >&5
12426 sed 's/^/| /' conftest.$ac_ext >&5
12428 ac_header_compiler=no
12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12433 $as_echo "$ac_header_compiler" >&6; }
12435 # Is the header present?
12436 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12437 $as_echo_n "checking $ac_header presence... " >&6; }
12438 cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h. */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 #include <$ac_header>
12445 _ACEOF
12446 if { (ac_try="$ac_cpp conftest.$ac_ext"
12447 case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12450 esac
12451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12452 $as_echo "$ac_try_echo") >&5
12453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12454 ac_status=$?
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
12458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } >/dev/null && {
12460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12461 test ! -s conftest.err
12462 }; then
12463 ac_header_preproc=yes
12464 else
12465 $as_echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12468 ac_header_preproc=no
12471 rm -f conftest.err conftest.$ac_ext
12472 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12473 $as_echo "$ac_header_preproc" >&6; }
12475 # So? What about this header?
12476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12477 yes:no: )
12478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12479 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12481 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12482 ac_header_preproc=yes
12484 no:yes:* )
12485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12486 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12488 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12490 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12492 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12494 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12496 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12499 esac
12500 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12501 $as_echo_n "checking for $ac_header... " >&6; }
12502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12503 $as_echo_n "(cached) " >&6
12504 else
12505 eval "$as_ac_Header=\$ac_header_preproc"
12507 ac_res=`eval 'as_val=${'$as_ac_Header'}
12508 $as_echo "$as_val"'`
12509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12510 $as_echo "$ac_res" >&6; }
12513 as_val=`eval 'as_val=${'$as_ac_Header'}
12514 $as_echo "$as_val"'`
12515 if test "x$as_val" = x""yes; then
12516 cat >>confdefs.h <<_ACEOF
12517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12518 _ACEOF
12522 done
12526 for ac_header in sys/time.h time.h
12528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12531 $as_echo_n "checking for $ac_header... " >&6; }
12532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12533 $as_echo_n "(cached) " >&6
12535 ac_res=`eval 'as_val=${'$as_ac_Header'}
12536 $as_echo "$as_val"'`
12537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12538 $as_echo "$ac_res" >&6; }
12539 else
12540 # Is the header compilable?
12541 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12542 $as_echo_n "checking $ac_header usability... " >&6; }
12543 cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h. */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12549 $ac_includes_default
12550 #include <$ac_header>
12551 _ACEOF
12552 rm -f conftest.$ac_objext
12553 if { (ac_try="$ac_compile"
12554 case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12557 esac
12558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12559 $as_echo "$ac_try_echo") >&5
12560 (eval "$ac_compile") 2>conftest.er1
12561 ac_status=$?
12562 grep -v '^ *+' conftest.er1 >conftest.err
12563 rm -f conftest.er1
12564 cat conftest.err >&5
12565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } && {
12567 test -z "$ac_c_werror_flag" ||
12568 test ! -s conftest.err
12569 } && test -s conftest.$ac_objext; then
12570 ac_header_compiler=yes
12571 else
12572 $as_echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575 ac_header_compiler=no
12578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12580 $as_echo "$ac_header_compiler" >&6; }
12582 # Is the header present?
12583 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12584 $as_echo_n "checking $ac_header presence... " >&6; }
12585 cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h. */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12591 #include <$ac_header>
12592 _ACEOF
12593 if { (ac_try="$ac_cpp conftest.$ac_ext"
12594 case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12597 esac
12598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12599 $as_echo "$ac_try_echo") >&5
12600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } >/dev/null && {
12607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12608 test ! -s conftest.err
12609 }; then
12610 ac_header_preproc=yes
12611 else
12612 $as_echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12615 ac_header_preproc=no
12618 rm -f conftest.err conftest.$ac_ext
12619 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12620 $as_echo "$ac_header_preproc" >&6; }
12622 # So? What about this header?
12623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12624 yes:no: )
12625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12626 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12629 ac_header_preproc=yes
12631 no:yes:* )
12632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12633 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12635 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12637 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12639 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12643 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12646 esac
12647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12648 $as_echo_n "checking for $ac_header... " >&6; }
12649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12650 $as_echo_n "(cached) " >&6
12651 else
12652 eval "$as_ac_Header=\$ac_header_preproc"
12654 ac_res=`eval 'as_val=${'$as_ac_Header'}
12655 $as_echo "$as_val"'`
12656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12657 $as_echo "$ac_res" >&6; }
12660 as_val=`eval 'as_val=${'$as_ac_Header'}
12661 $as_echo "$as_val"'`
12662 if test "x$as_val" = x""yes; then
12663 cat >>confdefs.h <<_ACEOF
12664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12665 _ACEOF
12669 done
12673 for ac_header in stdarg.h vararg.h
12675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12677 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12678 $as_echo_n "checking for $ac_header... " >&6; }
12679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12680 $as_echo_n "(cached) " >&6
12682 ac_res=`eval 'as_val=${'$as_ac_Header'}
12683 $as_echo "$as_val"'`
12684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12685 $as_echo "$ac_res" >&6; }
12686 else
12687 # Is the header compilable?
12688 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12689 $as_echo_n "checking $ac_header usability... " >&6; }
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h. */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12696 $ac_includes_default
12697 #include <$ac_header>
12698 _ACEOF
12699 rm -f conftest.$ac_objext
12700 if { (ac_try="$ac_compile"
12701 case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12704 esac
12705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12706 $as_echo "$ac_try_echo") >&5
12707 (eval "$ac_compile") 2>conftest.er1
12708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } && {
12714 test -z "$ac_c_werror_flag" ||
12715 test ! -s conftest.err
12716 } && test -s conftest.$ac_objext; then
12717 ac_header_compiler=yes
12718 else
12719 $as_echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ac_header_compiler=no
12725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12727 $as_echo "$ac_header_compiler" >&6; }
12729 # Is the header present?
12730 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12731 $as_echo_n "checking $ac_header presence... " >&6; }
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h. */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12738 #include <$ac_header>
12739 _ACEOF
12740 if { (ac_try="$ac_cpp conftest.$ac_ext"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744 esac
12745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12746 $as_echo "$ac_try_echo") >&5
12747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } >/dev/null && {
12754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12756 }; then
12757 ac_header_preproc=yes
12758 else
12759 $as_echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12762 ac_header_preproc=no
12765 rm -f conftest.err conftest.$ac_ext
12766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12767 $as_echo "$ac_header_preproc" >&6; }
12769 # So? What about this header?
12770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12771 yes:no: )
12772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12773 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12776 ac_header_preproc=yes
12778 no:yes:* )
12779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12780 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12782 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12784 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12786 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12790 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12793 esac
12794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12795 $as_echo_n "checking for $ac_header... " >&6; }
12796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12797 $as_echo_n "(cached) " >&6
12798 else
12799 eval "$as_ac_Header=\$ac_header_preproc"
12801 ac_res=`eval 'as_val=${'$as_ac_Header'}
12802 $as_echo "$as_val"'`
12803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12804 $as_echo "$ac_res" >&6; }
12807 as_val=`eval 'as_val=${'$as_ac_Header'}
12808 $as_echo "$as_val"'`
12809 if test "x$as_val" = x""yes; then
12810 cat >>confdefs.h <<_ACEOF
12811 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12812 _ACEOF
12816 done
12820 for ac_header in sys/mount.h mntent.h
12822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12824 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12825 $as_echo_n "checking for $ac_header... " >&6; }
12826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12827 $as_echo_n "(cached) " >&6
12829 ac_res=`eval 'as_val=${'$as_ac_Header'}
12830 $as_echo "$as_val"'`
12831 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12832 $as_echo "$ac_res" >&6; }
12833 else
12834 # Is the header compilable?
12835 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12836 $as_echo_n "checking $ac_header usability... " >&6; }
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h. */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 $ac_includes_default
12844 #include <$ac_header>
12845 _ACEOF
12846 rm -f conftest.$ac_objext
12847 if { (ac_try="$ac_compile"
12848 case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12851 esac
12852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12853 $as_echo "$ac_try_echo") >&5
12854 (eval "$ac_compile") 2>conftest.er1
12855 ac_status=$?
12856 grep -v '^ *+' conftest.er1 >conftest.err
12857 rm -f conftest.er1
12858 cat conftest.err >&5
12859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } && {
12861 test -z "$ac_c_werror_flag" ||
12862 test ! -s conftest.err
12863 } && test -s conftest.$ac_objext; then
12864 ac_header_compiler=yes
12865 else
12866 $as_echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12869 ac_header_compiler=no
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12874 $as_echo "$ac_header_compiler" >&6; }
12876 # Is the header present?
12877 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12878 $as_echo_n "checking $ac_header presence... " >&6; }
12879 cat >conftest.$ac_ext <<_ACEOF
12880 /* confdefs.h. */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12885 #include <$ac_header>
12886 _ACEOF
12887 if { (ac_try="$ac_cpp conftest.$ac_ext"
12888 case "(($ac_try" in
12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890 *) ac_try_echo=$ac_try;;
12891 esac
12892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12893 $as_echo "$ac_try_echo") >&5
12894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } >/dev/null && {
12901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12902 test ! -s conftest.err
12903 }; then
12904 ac_header_preproc=yes
12905 else
12906 $as_echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12909 ac_header_preproc=no
12912 rm -f conftest.err conftest.$ac_ext
12913 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12914 $as_echo "$ac_header_preproc" >&6; }
12916 # So? What about this header?
12917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12918 yes:no: )
12919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12920 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12922 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12923 ac_header_preproc=yes
12925 no:yes:* )
12926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12927 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12929 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12931 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12933 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12937 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12940 esac
12941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12942 $as_echo_n "checking for $ac_header... " >&6; }
12943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12944 $as_echo_n "(cached) " >&6
12945 else
12946 eval "$as_ac_Header=\$ac_header_preproc"
12948 ac_res=`eval 'as_val=${'$as_ac_Header'}
12949 $as_echo "$as_val"'`
12950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12951 $as_echo "$ac_res" >&6; }
12954 as_val=`eval 'as_val=${'$as_ac_Header'}
12955 $as_echo "$as_val"'`
12956 if test "x$as_val" = x""yes; then
12957 cat >>confdefs.h <<_ACEOF
12958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12959 _ACEOF
12963 done
12966 for ac_header in stropts.h
12968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12971 $as_echo_n "checking for $ac_header... " >&6; }
12972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12973 $as_echo_n "(cached) " >&6
12975 ac_res=`eval 'as_val=${'$as_ac_Header'}
12976 $as_echo "$as_val"'`
12977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12978 $as_echo "$ac_res" >&6; }
12979 else
12980 # Is the header compilable?
12981 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12982 $as_echo_n "checking $ac_header usability... " >&6; }
12983 cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h. */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12989 $ac_includes_default
12990 #include <$ac_header>
12991 _ACEOF
12992 rm -f conftest.$ac_objext
12993 if { (ac_try="$ac_compile"
12994 case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12997 esac
12998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12999 $as_echo "$ac_try_echo") >&5
13000 (eval "$ac_compile") 2>conftest.er1
13001 ac_status=$?
13002 grep -v '^ *+' conftest.er1 >conftest.err
13003 rm -f conftest.er1
13004 cat conftest.err >&5
13005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } && {
13007 test -z "$ac_c_werror_flag" ||
13008 test ! -s conftest.err
13009 } && test -s conftest.$ac_objext; then
13010 ac_header_compiler=yes
13011 else
13012 $as_echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13015 ac_header_compiler=no
13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13020 $as_echo "$ac_header_compiler" >&6; }
13022 # Is the header present?
13023 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13024 $as_echo_n "checking $ac_header presence... " >&6; }
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h. */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13031 #include <$ac_header>
13032 _ACEOF
13033 if { (ac_try="$ac_cpp conftest.$ac_ext"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037 esac
13038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13039 $as_echo "$ac_try_echo") >&5
13040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13041 ac_status=$?
13042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
13045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } >/dev/null && {
13047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 }; then
13050 ac_header_preproc=yes
13051 else
13052 $as_echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13055 ac_header_preproc=no
13058 rm -f conftest.err conftest.$ac_ext
13059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13060 $as_echo "$ac_header_preproc" >&6; }
13062 # So? What about this header?
13063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13064 yes:no: )
13065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13066 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13069 ac_header_preproc=yes
13071 no:yes:* )
13072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13073 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13075 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13077 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13079 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13083 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13086 esac
13087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13088 $as_echo_n "checking for $ac_header... " >&6; }
13089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13090 $as_echo_n "(cached) " >&6
13091 else
13092 eval "$as_ac_Header=\$ac_header_preproc"
13094 ac_res=`eval 'as_val=${'$as_ac_Header'}
13095 $as_echo "$as_val"'`
13096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13097 $as_echo "$ac_res" >&6; }
13100 as_val=`eval 'as_val=${'$as_ac_Header'}
13101 $as_echo "$as_val"'`
13102 if test "x$as_val" = x""yes; then
13103 cat >>confdefs.h <<_ACEOF
13104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13105 _ACEOF
13109 done
13112 for ac_header in unix.h
13114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13117 $as_echo_n "checking for $ac_header... " >&6; }
13118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13119 $as_echo_n "(cached) " >&6
13121 ac_res=`eval 'as_val=${'$as_ac_Header'}
13122 $as_echo "$as_val"'`
13123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13124 $as_echo "$ac_res" >&6; }
13125 else
13126 # Is the header compilable?
13127 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13128 $as_echo_n "checking $ac_header usability... " >&6; }
13129 cat >conftest.$ac_ext <<_ACEOF
13130 /* confdefs.h. */
13131 _ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13135 $ac_includes_default
13136 #include <$ac_header>
13137 _ACEOF
13138 rm -f conftest.$ac_objext
13139 if { (ac_try="$ac_compile"
13140 case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13143 esac
13144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13145 $as_echo "$ac_try_echo") >&5
13146 (eval "$ac_compile") 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } && {
13153 test -z "$ac_c_werror_flag" ||
13154 test ! -s conftest.err
13155 } && test -s conftest.$ac_objext; then
13156 ac_header_compiler=yes
13157 else
13158 $as_echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13161 ac_header_compiler=no
13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13166 $as_echo "$ac_header_compiler" >&6; }
13168 # Is the header present?
13169 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13170 $as_echo_n "checking $ac_header presence... " >&6; }
13171 cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h. */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 #include <$ac_header>
13178 _ACEOF
13179 if { (ac_try="$ac_cpp conftest.$ac_ext"
13180 case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13183 esac
13184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13185 $as_echo "$ac_try_echo") >&5
13186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } >/dev/null && {
13193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13194 test ! -s conftest.err
13195 }; then
13196 ac_header_preproc=yes
13197 else
13198 $as_echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13201 ac_header_preproc=no
13204 rm -f conftest.err conftest.$ac_ext
13205 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13206 $as_echo "$ac_header_preproc" >&6; }
13208 # So? What about this header?
13209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13210 yes:no: )
13211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13212 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13215 ac_header_preproc=yes
13217 no:yes:* )
13218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13219 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13221 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13223 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13225 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13229 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13232 esac
13233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13234 $as_echo_n "checking for $ac_header... " >&6; }
13235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13236 $as_echo_n "(cached) " >&6
13237 else
13238 eval "$as_ac_Header=\$ac_header_preproc"
13240 ac_res=`eval 'as_val=${'$as_ac_Header'}
13241 $as_echo "$as_val"'`
13242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13243 $as_echo "$ac_res" >&6; }
13246 as_val=`eval 'as_val=${'$as_ac_Header'}
13247 $as_echo "$as_val"'`
13248 if test "x$as_val" = x""yes; then
13249 cat >>confdefs.h <<_ACEOF
13250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13251 _ACEOF
13255 done
13265 for ac_func in seteuid setresuid setegid setresgid chroot bzero strerror
13267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13268 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13269 $as_echo_n "checking for $ac_func... " >&6; }
13270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13271 $as_echo_n "(cached) " >&6
13272 else
13273 cat >conftest.$ac_ext <<_ACEOF
13274 /* confdefs.h. */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13281 #define $ac_func innocuous_$ac_func
13283 /* System header to define __stub macros and hopefully few prototypes,
13284 which can conflict with char $ac_func (); below.
13285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13286 <limits.h> exists even on freestanding compilers. */
13288 #ifdef __STDC__
13289 # include <limits.h>
13290 #else
13291 # include <assert.h>
13292 #endif
13294 #undef $ac_func
13296 /* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13299 #ifdef __cplusplus
13300 extern "C"
13301 #endif
13302 char $ac_func ();
13303 /* The GNU C library defines this for functions which it implements
13304 to always fail with ENOSYS. Some functions are actually named
13305 something starting with __ and the normal name is an alias. */
13306 #if defined __stub_$ac_func || defined __stub___$ac_func
13307 choke me
13308 #endif
13311 main ()
13313 return $ac_func ();
13315 return 0;
13317 _ACEOF
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (ac_try="$ac_link"
13320 case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13323 esac
13324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13325 $as_echo "$ac_try_echo") >&5
13326 (eval "$ac_link") 2>conftest.er1
13327 ac_status=$?
13328 grep -v '^ *+' conftest.er1 >conftest.err
13329 rm -f conftest.er1
13330 cat conftest.err >&5
13331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } && {
13333 test -z "$ac_c_werror_flag" ||
13334 test ! -s conftest.err
13335 } && test -s conftest$ac_exeext && {
13336 test "$cross_compiling" = yes ||
13337 $as_test_x conftest$ac_exeext
13338 }; then
13339 eval "$as_ac_var=yes"
13340 else
13341 $as_echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13344 eval "$as_ac_var=no"
13347 rm -rf conftest.dSYM
13348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13349 conftest$ac_exeext conftest.$ac_ext
13351 ac_res=`eval 'as_val=${'$as_ac_var'}
13352 $as_echo "$as_val"'`
13353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13354 $as_echo "$ac_res" >&6; }
13355 as_val=`eval 'as_val=${'$as_ac_var'}
13356 $as_echo "$as_val"'`
13357 if test "x$as_val" = x""yes; then
13358 cat >>confdefs.h <<_ACEOF
13359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13360 _ACEOF
13363 done
13371 for ac_func in vsyslog setlinebuf mktime ftruncate chsize rename
13373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13374 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13375 $as_echo_n "checking for $ac_func... " >&6; }
13376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13377 $as_echo_n "(cached) " >&6
13378 else
13379 cat >conftest.$ac_ext <<_ACEOF
13380 /* confdefs.h. */
13381 _ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13387 #define $ac_func innocuous_$ac_func
13389 /* System header to define __stub macros and hopefully few prototypes,
13390 which can conflict with char $ac_func (); below.
13391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13392 <limits.h> exists even on freestanding compilers. */
13394 #ifdef __STDC__
13395 # include <limits.h>
13396 #else
13397 # include <assert.h>
13398 #endif
13400 #undef $ac_func
13402 /* Override any GCC internal prototype to avoid an error.
13403 Use char because int might match the return type of a GCC
13404 builtin and then its argument prototype would still apply. */
13405 #ifdef __cplusplus
13406 extern "C"
13407 #endif
13408 char $ac_func ();
13409 /* The GNU C library defines this for functions which it implements
13410 to always fail with ENOSYS. Some functions are actually named
13411 something starting with __ and the normal name is an alias. */
13412 #if defined __stub_$ac_func || defined __stub___$ac_func
13413 choke me
13414 #endif
13417 main ()
13419 return $ac_func ();
13421 return 0;
13423 _ACEOF
13424 rm -f conftest.$ac_objext conftest$ac_exeext
13425 if { (ac_try="$ac_link"
13426 case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429 esac
13430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13431 $as_echo "$ac_try_echo") >&5
13432 (eval "$ac_link") 2>conftest.er1
13433 ac_status=$?
13434 grep -v '^ *+' conftest.er1 >conftest.err
13435 rm -f conftest.er1
13436 cat conftest.err >&5
13437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } && {
13439 test -z "$ac_c_werror_flag" ||
13440 test ! -s conftest.err
13441 } && test -s conftest$ac_exeext && {
13442 test "$cross_compiling" = yes ||
13443 $as_test_x conftest$ac_exeext
13444 }; then
13445 eval "$as_ac_var=yes"
13446 else
13447 $as_echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 eval "$as_ac_var=no"
13453 rm -rf conftest.dSYM
13454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13455 conftest$ac_exeext conftest.$ac_ext
13457 ac_res=`eval 'as_val=${'$as_ac_var'}
13458 $as_echo "$as_val"'`
13459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13460 $as_echo "$ac_res" >&6; }
13461 as_val=`eval 'as_val=${'$as_ac_var'}
13462 $as_echo "$as_val"'`
13463 if test "x$as_val" = x""yes; then
13464 cat >>confdefs.h <<_ACEOF
13465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13466 _ACEOF
13469 done
13478 for ac_func in waitpid wait4 strlcpy strlcat initgroups memmove strdup
13480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13481 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13482 $as_echo_n "checking for $ac_func... " >&6; }
13483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13484 $as_echo_n "(cached) " >&6
13485 else
13486 cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h. */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13494 #define $ac_func innocuous_$ac_func
13496 /* System header to define __stub macros and hopefully few prototypes,
13497 which can conflict with char $ac_func (); below.
13498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13499 <limits.h> exists even on freestanding compilers. */
13501 #ifdef __STDC__
13502 # include <limits.h>
13503 #else
13504 # include <assert.h>
13505 #endif
13507 #undef $ac_func
13509 /* Override any GCC internal prototype to avoid an error.
13510 Use char because int might match the return type of a GCC
13511 builtin and then its argument prototype would still apply. */
13512 #ifdef __cplusplus
13513 extern "C"
13514 #endif
13515 char $ac_func ();
13516 /* The GNU C library defines this for functions which it implements
13517 to always fail with ENOSYS. Some functions are actually named
13518 something starting with __ and the normal name is an alias. */
13519 #if defined __stub_$ac_func || defined __stub___$ac_func
13520 choke me
13521 #endif
13524 main ()
13526 return $ac_func ();
13528 return 0;
13530 _ACEOF
13531 rm -f conftest.$ac_objext conftest$ac_exeext
13532 if { (ac_try="$ac_link"
13533 case "(($ac_try" in
13534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13535 *) ac_try_echo=$ac_try;;
13536 esac
13537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13538 $as_echo "$ac_try_echo") >&5
13539 (eval "$ac_link") 2>conftest.er1
13540 ac_status=$?
13541 grep -v '^ *+' conftest.er1 >conftest.err
13542 rm -f conftest.er1
13543 cat conftest.err >&5
13544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } && {
13546 test -z "$ac_c_werror_flag" ||
13547 test ! -s conftest.err
13548 } && test -s conftest$ac_exeext && {
13549 test "$cross_compiling" = yes ||
13550 $as_test_x conftest$ac_exeext
13551 }; then
13552 eval "$as_ac_var=yes"
13553 else
13554 $as_echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13557 eval "$as_ac_var=no"
13560 rm -rf conftest.dSYM
13561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13562 conftest$ac_exeext conftest.$ac_ext
13564 ac_res=`eval 'as_val=${'$as_ac_var'}
13565 $as_echo "$as_val"'`
13566 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13567 $as_echo "$ac_res" >&6; }
13568 as_val=`eval 'as_val=${'$as_ac_var'}
13569 $as_echo "$as_val"'`
13570 if test "x$as_val" = x""yes; then
13571 cat >>confdefs.h <<_ACEOF
13572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13573 _ACEOF
13576 done
13585 for ac_func in pread pwrite strndup strcasestr strtok_r mkdtemp dup2
13587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13589 $as_echo_n "checking for $ac_func... " >&6; }
13590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13591 $as_echo_n "(cached) " >&6
13592 else
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h. */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13601 #define $ac_func innocuous_$ac_func
13603 /* System header to define __stub macros and hopefully few prototypes,
13604 which can conflict with char $ac_func (); below.
13605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606 <limits.h> exists even on freestanding compilers. */
13608 #ifdef __STDC__
13609 # include <limits.h>
13610 #else
13611 # include <assert.h>
13612 #endif
13614 #undef $ac_func
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char $ac_func ();
13623 /* The GNU C library defines this for functions which it implements
13624 to always fail with ENOSYS. Some functions are actually named
13625 something starting with __ and the normal name is an alias. */
13626 #if defined __stub_$ac_func || defined __stub___$ac_func
13627 choke me
13628 #endif
13631 main ()
13633 return $ac_func ();
13635 return 0;
13637 _ACEOF
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (ac_try="$ac_link"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643 esac
13644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13645 $as_echo "$ac_try_echo") >&5
13646 (eval "$ac_link") 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest$ac_exeext && {
13656 test "$cross_compiling" = yes ||
13657 $as_test_x conftest$ac_exeext
13658 }; then
13659 eval "$as_ac_var=yes"
13660 else
13661 $as_echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13664 eval "$as_ac_var=no"
13667 rm -rf conftest.dSYM
13668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13669 conftest$ac_exeext conftest.$ac_ext
13671 ac_res=`eval 'as_val=${'$as_ac_var'}
13672 $as_echo "$as_val"'`
13673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13674 $as_echo "$ac_res" >&6; }
13675 as_val=`eval 'as_val=${'$as_ac_var'}
13676 $as_echo "$as_val"'`
13677 if test "x$as_val" = x""yes; then
13678 cat >>confdefs.h <<_ACEOF
13679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13680 _ACEOF
13683 done
13692 for ac_func in isatty chown lchown link readlink symlink realpath
13694 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13695 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13696 $as_echo_n "checking for $ac_func... " >&6; }
13697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13698 $as_echo_n "(cached) " >&6
13699 else
13700 cat >conftest.$ac_ext <<_ACEOF
13701 /* confdefs.h. */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13708 #define $ac_func innocuous_$ac_func
13710 /* System header to define __stub macros and hopefully few prototypes,
13711 which can conflict with char $ac_func (); below.
13712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13713 <limits.h> exists even on freestanding compilers. */
13715 #ifdef __STDC__
13716 # include <limits.h>
13717 #else
13718 # include <assert.h>
13719 #endif
13721 #undef $ac_func
13723 /* Override any GCC internal prototype to avoid an error.
13724 Use char because int might match the return type of a GCC
13725 builtin and then its argument prototype would still apply. */
13726 #ifdef __cplusplus
13727 extern "C"
13728 #endif
13729 char $ac_func ();
13730 /* The GNU C library defines this for functions which it implements
13731 to always fail with ENOSYS. Some functions are actually named
13732 something starting with __ and the normal name is an alias. */
13733 #if defined __stub_$ac_func || defined __stub___$ac_func
13734 choke me
13735 #endif
13738 main ()
13740 return $ac_func ();
13742 return 0;
13744 _ACEOF
13745 rm -f conftest.$ac_objext conftest$ac_exeext
13746 if { (ac_try="$ac_link"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750 esac
13751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13752 $as_echo "$ac_try_echo") >&5
13753 (eval "$ac_link") 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } && {
13760 test -z "$ac_c_werror_flag" ||
13761 test ! -s conftest.err
13762 } && test -s conftest$ac_exeext && {
13763 test "$cross_compiling" = yes ||
13764 $as_test_x conftest$ac_exeext
13765 }; then
13766 eval "$as_ac_var=yes"
13767 else
13768 $as_echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 eval "$as_ac_var=no"
13774 rm -rf conftest.dSYM
13775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13776 conftest$ac_exeext conftest.$ac_ext
13778 ac_res=`eval 'as_val=${'$as_ac_var'}
13779 $as_echo "$as_val"'`
13780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13781 $as_echo "$ac_res" >&6; }
13782 as_val=`eval 'as_val=${'$as_ac_var'}
13783 $as_echo "$as_val"'`
13784 if test "x$as_val" = x""yes; then
13785 cat >>confdefs.h <<_ACEOF
13786 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13787 _ACEOF
13790 done
13793 { $as_echo "$as_me:$LINENO: checking for setresuid declaration" >&5
13794 $as_echo_n "checking for setresuid declaration... " >&6; }
13795 if test "${ac_cv_have_setresuid_decl+set}" = set; then
13796 $as_echo_n "(cached) " >&6
13797 else
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h. */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 #include <unistd.h>
13807 main ()
13809 int i = (int)setresuid
13811 return 0;
13813 _ACEOF
13814 rm -f conftest.$ac_objext
13815 if { (ac_try="$ac_compile"
13816 case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13819 esac
13820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13821 $as_echo "$ac_try_echo") >&5
13822 (eval "$ac_compile") 2>conftest.er1
13823 ac_status=$?
13824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
13827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } && {
13829 test -z "$ac_c_werror_flag" ||
13830 test ! -s conftest.err
13831 } && test -s conftest.$ac_objext; then
13832 ac_cv_have_setresuid_decl=yes
13833 else
13834 $as_echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13837 ac_cv_have_setresuid_decl=no
13840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
13843 $as_echo "$ac_cv_have_setresuid_decl" >&6; }
13844 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
13846 cat >>confdefs.h <<\_ACEOF
13847 #define HAVE_SETRESUID_DECL 1
13848 _ACEOF
13853 { $as_echo "$as_me:$LINENO: checking for setresgid declaration" >&5
13854 $as_echo_n "checking for setresgid declaration... " >&6; }
13855 if test "${ac_cv_have_setresgid_decl+set}" = set; then
13856 $as_echo_n "(cached) " >&6
13857 else
13859 cat >conftest.$ac_ext <<_ACEOF
13860 /* confdefs.h. */
13861 _ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h. */
13865 #include <unistd.h>
13867 main ()
13869 int i = (int)setresgid
13871 return 0;
13873 _ACEOF
13874 rm -f conftest.$ac_objext
13875 if { (ac_try="$ac_compile"
13876 case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13879 esac
13880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13881 $as_echo "$ac_try_echo") >&5
13882 (eval "$ac_compile") 2>conftest.er1
13883 ac_status=$?
13884 grep -v '^ *+' conftest.er1 >conftest.err
13885 rm -f conftest.er1
13886 cat conftest.err >&5
13887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } && {
13889 test -z "$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13891 } && test -s conftest.$ac_objext; then
13892 ac_cv_have_setresgid_decl=yes
13893 else
13894 $as_echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_cv_have_setresgid_decl=no
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13902 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
13903 $as_echo "$ac_cv_have_setresgid_decl" >&6; }
13904 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
13906 cat >>confdefs.h <<\_ACEOF
13907 #define HAVE_SETRESGID_DECL 1
13908 _ACEOF
13913 { $as_echo "$as_me:$LINENO: checking for errno declaration" >&5
13914 $as_echo_n "checking for errno declaration... " >&6; }
13915 if test "${ac_cv_have_errno_decl+set}" = set; then
13916 $as_echo_n "(cached) " >&6
13917 else
13919 cat >conftest.$ac_ext <<_ACEOF
13920 /* confdefs.h. */
13921 _ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13925 #include <errno.h>
13927 main ()
13929 int i = (int)errno
13931 return 0;
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (ac_try="$ac_compile"
13936 case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13939 esac
13940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13941 $as_echo "$ac_try_echo") >&5
13942 (eval "$ac_compile") 2>conftest.er1
13943 ac_status=$?
13944 grep -v '^ *+' conftest.er1 >conftest.err
13945 rm -f conftest.er1
13946 cat conftest.err >&5
13947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } && {
13949 test -z "$ac_c_werror_flag" ||
13950 test ! -s conftest.err
13951 } && test -s conftest.$ac_objext; then
13952 ac_cv_have_errno_decl=yes
13953 else
13954 $as_echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13957 ac_cv_have_errno_decl=no
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
13963 $as_echo "$ac_cv_have_errno_decl" >&6; }
13964 if test x"$ac_cv_have_errno_decl" = x"yes"; then
13966 cat >>confdefs.h <<\_ACEOF
13967 #define HAVE_ERRNO_DECL 1
13968 _ACEOF
13973 { $as_echo "$as_me:$LINENO: checking for secure mkstemp" >&5
13974 $as_echo_n "checking for secure mkstemp... " >&6; }
13975 if test "${libreplace_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
13976 $as_echo_n "(cached) " >&6
13977 else
13979 if test "$cross_compiling" = yes; then
13980 libreplace_cv_HAVE_SECURE_MKSTEMP=cross
13981 else
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 #include <stdlib.h>
13989 #include <sys/types.h>
13990 #include <sys/stat.h>
13991 #include <unistd.h>
13992 main() {
13993 struct stat st;
13994 char tpl[20]="/tmp/test.XXXXXX";
13995 int fd = mkstemp(tpl);
13996 if (fd == -1) exit(1);
13997 unlink(tpl);
13998 if (fstat(fd, &st) != 0) exit(1);
13999 if ((st.st_mode & 0777) != 0600) exit(1);
14000 exit(0);
14002 _ACEOF
14003 rm -f conftest$ac_exeext
14004 if { (ac_try="$ac_link"
14005 case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14008 esac
14009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14010 $as_echo "$ac_try_echo") >&5
14011 (eval "$ac_link") 2>&5
14012 ac_status=$?
14013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14015 { (case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14018 esac
14019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14020 $as_echo "$ac_try_echo") >&5
14021 (eval "$ac_try") 2>&5
14022 ac_status=$?
14023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 libreplace_cv_HAVE_SECURE_MKSTEMP=yes
14026 else
14027 $as_echo "$as_me: program exited with status $ac_status" >&5
14028 $as_echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14031 ( exit $ac_status )
14032 libreplace_cv_HAVE_SECURE_MKSTEMP=no
14034 rm -rf conftest.dSYM
14035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14040 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_SECURE_MKSTEMP" >&5
14041 $as_echo "$libreplace_cv_HAVE_SECURE_MKSTEMP" >&6; }
14042 if test x"$libreplace_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
14044 cat >>confdefs.h <<\_ACEOF
14045 #define HAVE_SECURE_MKSTEMP 1
14046 _ACEOF
14052 for ac_header in stdio.h strings.h
14054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14056 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14057 $as_echo_n "checking for $ac_header... " >&6; }
14058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14059 $as_echo_n "(cached) " >&6
14061 ac_res=`eval 'as_val=${'$as_ac_Header'}
14062 $as_echo "$as_val"'`
14063 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14064 $as_echo "$ac_res" >&6; }
14065 else
14066 # Is the header compilable?
14067 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14068 $as_echo_n "checking $ac_header usability... " >&6; }
14069 cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h. */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14075 $ac_includes_default
14076 #include <$ac_header>
14077 _ACEOF
14078 rm -f conftest.$ac_objext
14079 if { (ac_try="$ac_compile"
14080 case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14083 esac
14084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14085 $as_echo "$ac_try_echo") >&5
14086 (eval "$ac_compile") 2>conftest.er1
14087 ac_status=$?
14088 grep -v '^ *+' conftest.er1 >conftest.err
14089 rm -f conftest.er1
14090 cat conftest.err >&5
14091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } && {
14093 test -z "$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14095 } && test -s conftest.$ac_objext; then
14096 ac_header_compiler=yes
14097 else
14098 $as_echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ac_header_compiler=no
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14106 $as_echo "$ac_header_compiler" >&6; }
14108 # Is the header present?
14109 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14110 $as_echo_n "checking $ac_header presence... " >&6; }
14111 cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h. */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 #include <$ac_header>
14118 _ACEOF
14119 if { (ac_try="$ac_cpp conftest.$ac_ext"
14120 case "(($ac_try" in
14121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14122 *) ac_try_echo=$ac_try;;
14123 esac
14124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14125 $as_echo "$ac_try_echo") >&5
14126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14127 ac_status=$?
14128 grep -v '^ *+' conftest.er1 >conftest.err
14129 rm -f conftest.er1
14130 cat conftest.err >&5
14131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } >/dev/null && {
14133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14134 test ! -s conftest.err
14135 }; then
14136 ac_header_preproc=yes
14137 else
14138 $as_echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14141 ac_header_preproc=no
14144 rm -f conftest.err conftest.$ac_ext
14145 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14146 $as_echo "$ac_header_preproc" >&6; }
14148 # So? What about this header?
14149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14150 yes:no: )
14151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14152 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14154 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14155 ac_header_preproc=yes
14157 no:yes:* )
14158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14159 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14161 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14163 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14165 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14167 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14169 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14172 esac
14173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14174 $as_echo_n "checking for $ac_header... " >&6; }
14175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14176 $as_echo_n "(cached) " >&6
14177 else
14178 eval "$as_ac_Header=\$ac_header_preproc"
14180 ac_res=`eval 'as_val=${'$as_ac_Header'}
14181 $as_echo "$as_val"'`
14182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14183 $as_echo "$ac_res" >&6; }
14186 as_val=`eval 'as_val=${'$as_ac_Header'}
14187 $as_echo "$as_val"'`
14188 if test "x$as_val" = x""yes; then
14189 cat >>confdefs.h <<_ACEOF
14190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14191 _ACEOF
14195 done
14197 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14198 $as_echo_n "checking whether snprintf is declared... " >&6; }
14199 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14200 $as_echo_n "(cached) " >&6
14201 else
14202 cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h. */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 $ac_includes_default
14210 main ()
14212 #ifndef snprintf
14213 (void) snprintf;
14214 #endif
14217 return 0;
14219 _ACEOF
14220 rm -f conftest.$ac_objext
14221 if { (ac_try="$ac_compile"
14222 case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225 esac
14226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14227 $as_echo "$ac_try_echo") >&5
14228 (eval "$ac_compile") 2>conftest.er1
14229 ac_status=$?
14230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } && {
14235 test -z "$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14237 } && test -s conftest.$ac_objext; then
14238 ac_cv_have_decl_snprintf=yes
14239 else
14240 $as_echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 ac_cv_have_decl_snprintf=no
14246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14248 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14249 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
14250 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
14252 cat >>confdefs.h <<_ACEOF
14253 #define HAVE_DECL_SNPRINTF 1
14254 _ACEOF
14257 else
14258 cat >>confdefs.h <<_ACEOF
14259 #define HAVE_DECL_SNPRINTF 0
14260 _ACEOF
14264 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14265 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
14266 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14267 $as_echo_n "(cached) " >&6
14268 else
14269 cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h. */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 $ac_includes_default
14277 main ()
14279 #ifndef vsnprintf
14280 (void) vsnprintf;
14281 #endif
14284 return 0;
14286 _ACEOF
14287 rm -f conftest.$ac_objext
14288 if { (ac_try="$ac_compile"
14289 case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14292 esac
14293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14294 $as_echo "$ac_try_echo") >&5
14295 (eval "$ac_compile") 2>conftest.er1
14296 ac_status=$?
14297 grep -v '^ *+' conftest.er1 >conftest.err
14298 rm -f conftest.er1
14299 cat conftest.err >&5
14300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } && {
14302 test -z "$ac_c_werror_flag" ||
14303 test ! -s conftest.err
14304 } && test -s conftest.$ac_objext; then
14305 ac_cv_have_decl_vsnprintf=yes
14306 else
14307 $as_echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14310 ac_cv_have_decl_vsnprintf=no
14313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14316 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
14317 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
14319 cat >>confdefs.h <<_ACEOF
14320 #define HAVE_DECL_VSNPRINTF 1
14321 _ACEOF
14324 else
14325 cat >>confdefs.h <<_ACEOF
14326 #define HAVE_DECL_VSNPRINTF 0
14327 _ACEOF
14331 { $as_echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
14332 $as_echo_n "checking whether asprintf is declared... " >&6; }
14333 if test "${ac_cv_have_decl_asprintf+set}" = set; then
14334 $as_echo_n "(cached) " >&6
14335 else
14336 cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h. */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 $ac_includes_default
14344 main ()
14346 #ifndef asprintf
14347 (void) asprintf;
14348 #endif
14351 return 0;
14353 _ACEOF
14354 rm -f conftest.$ac_objext
14355 if { (ac_try="$ac_compile"
14356 case "(($ac_try" in
14357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14359 esac
14360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14361 $as_echo "$ac_try_echo") >&5
14362 (eval "$ac_compile") 2>conftest.er1
14363 ac_status=$?
14364 grep -v '^ *+' conftest.er1 >conftest.err
14365 rm -f conftest.er1
14366 cat conftest.err >&5
14367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } && {
14369 test -z "$ac_c_werror_flag" ||
14370 test ! -s conftest.err
14371 } && test -s conftest.$ac_objext; then
14372 ac_cv_have_decl_asprintf=yes
14373 else
14374 $as_echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14377 ac_cv_have_decl_asprintf=no
14380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14382 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
14383 $as_echo "$ac_cv_have_decl_asprintf" >&6; }
14384 if test "x$ac_cv_have_decl_asprintf" = x""yes; then
14386 cat >>confdefs.h <<_ACEOF
14387 #define HAVE_DECL_ASPRINTF 1
14388 _ACEOF
14391 else
14392 cat >>confdefs.h <<_ACEOF
14393 #define HAVE_DECL_ASPRINTF 0
14394 _ACEOF
14398 { $as_echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
14399 $as_echo_n "checking whether vasprintf is declared... " >&6; }
14400 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
14401 $as_echo_n "(cached) " >&6
14402 else
14403 cat >conftest.$ac_ext <<_ACEOF
14404 /* confdefs.h. */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14409 $ac_includes_default
14411 main ()
14413 #ifndef vasprintf
14414 (void) vasprintf;
14415 #endif
14418 return 0;
14420 _ACEOF
14421 rm -f conftest.$ac_objext
14422 if { (ac_try="$ac_compile"
14423 case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14426 esac
14427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14428 $as_echo "$ac_try_echo") >&5
14429 (eval "$ac_compile") 2>conftest.er1
14430 ac_status=$?
14431 grep -v '^ *+' conftest.er1 >conftest.err
14432 rm -f conftest.er1
14433 cat conftest.err >&5
14434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } && {
14436 test -z "$ac_c_werror_flag" ||
14437 test ! -s conftest.err
14438 } && test -s conftest.$ac_objext; then
14439 ac_cv_have_decl_vasprintf=yes
14440 else
14441 $as_echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14444 ac_cv_have_decl_vasprintf=no
14447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
14450 $as_echo "$ac_cv_have_decl_vasprintf" >&6; }
14451 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then
14453 cat >>confdefs.h <<_ACEOF
14454 #define HAVE_DECL_VASPRINTF 1
14455 _ACEOF
14458 else
14459 cat >>confdefs.h <<_ACEOF
14460 #define HAVE_DECL_VASPRINTF 0
14461 _ACEOF
14471 for ac_func in snprintf vsnprintf asprintf vasprintf
14473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14475 $as_echo_n "checking for $ac_func... " >&6; }
14476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14477 $as_echo_n "(cached) " >&6
14478 else
14479 cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h. */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14487 #define $ac_func innocuous_$ac_func
14489 /* System header to define __stub macros and hopefully few prototypes,
14490 which can conflict with char $ac_func (); below.
14491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14492 <limits.h> exists even on freestanding compilers. */
14494 #ifdef __STDC__
14495 # include <limits.h>
14496 #else
14497 # include <assert.h>
14498 #endif
14500 #undef $ac_func
14502 /* Override any GCC internal prototype to avoid an error.
14503 Use char because int might match the return type of a GCC
14504 builtin and then its argument prototype would still apply. */
14505 #ifdef __cplusplus
14506 extern "C"
14507 #endif
14508 char $ac_func ();
14509 /* The GNU C library defines this for functions which it implements
14510 to always fail with ENOSYS. Some functions are actually named
14511 something starting with __ and the normal name is an alias. */
14512 #if defined __stub_$ac_func || defined __stub___$ac_func
14513 choke me
14514 #endif
14517 main ()
14519 return $ac_func ();
14521 return 0;
14523 _ACEOF
14524 rm -f conftest.$ac_objext conftest$ac_exeext
14525 if { (ac_try="$ac_link"
14526 case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14529 esac
14530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14531 $as_echo "$ac_try_echo") >&5
14532 (eval "$ac_link") 2>conftest.er1
14533 ac_status=$?
14534 grep -v '^ *+' conftest.er1 >conftest.err
14535 rm -f conftest.er1
14536 cat conftest.err >&5
14537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } && {
14539 test -z "$ac_c_werror_flag" ||
14540 test ! -s conftest.err
14541 } && test -s conftest$ac_exeext && {
14542 test "$cross_compiling" = yes ||
14543 $as_test_x conftest$ac_exeext
14544 }; then
14545 eval "$as_ac_var=yes"
14546 else
14547 $as_echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 eval "$as_ac_var=no"
14553 rm -rf conftest.dSYM
14554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14555 conftest$ac_exeext conftest.$ac_ext
14557 ac_res=`eval 'as_val=${'$as_ac_var'}
14558 $as_echo "$as_val"'`
14559 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14560 $as_echo "$ac_res" >&6; }
14561 as_val=`eval 'as_val=${'$as_ac_var'}
14562 $as_echo "$as_val"'`
14563 if test "x$as_val" = x""yes; then
14564 cat >>confdefs.h <<_ACEOF
14565 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14566 _ACEOF
14569 done
14572 { $as_echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
14573 $as_echo_n "checking for C99 vsnprintf... " >&6; }
14574 if test "${libreplace_cv_HAVE_C99_VSNPRINTF+set}" = set; then
14575 $as_echo_n "(cached) " >&6
14576 else
14578 if test "$cross_compiling" = yes; then
14579 libreplace_cv_HAVE_C99_VSNPRINTF=cross
14580 else
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14588 #include <sys/types.h>
14589 #include <stdio.h>
14590 #include <stdarg.h>
14591 #include <stdlib.h>
14592 void foo(const char *format, ...) {
14593 va_list ap;
14594 int len;
14595 char buf[20];
14596 long long l = 1234567890;
14597 l *= 100;
14599 va_start(ap, format);
14600 len = vsnprintf(buf, 0, format, ap);
14601 va_end(ap);
14602 if (len != 5) exit(1);
14604 va_start(ap, format);
14605 len = vsnprintf(0, 0, format, ap);
14606 va_end(ap);
14607 if (len != 5) exit(2);
14609 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(3);
14611 if (snprintf(buf, 20, "%lld", l) != 12 || strcmp(buf, "123456789000") != 0) exit(4);
14612 if (snprintf(buf, 20, "%zu", 123456789) != 9 || strcmp(buf, "123456789") != 0) exit(5);
14613 if (snprintf(buf, 20, "%2\$d %1\$d", 3, 4) != 3 || strcmp(buf, "4 3") != 0) exit(6);
14614 if (snprintf(buf, 20, "%s", 0) < 3) exit(7);
14616 exit(0);
14618 main() { foo("hello"); }
14620 _ACEOF
14621 rm -f conftest$ac_exeext
14622 if { (ac_try="$ac_link"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626 esac
14627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628 $as_echo "$ac_try_echo") >&5
14629 (eval "$ac_link") 2>&5
14630 ac_status=$?
14631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14633 { (case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14636 esac
14637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14638 $as_echo "$ac_try_echo") >&5
14639 (eval "$ac_try") 2>&5
14640 ac_status=$?
14641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 libreplace_cv_HAVE_C99_VSNPRINTF=yes
14644 else
14645 $as_echo "$as_me: program exited with status $ac_status" >&5
14646 $as_echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 ( exit $ac_status )
14650 libreplace_cv_HAVE_C99_VSNPRINTF=no
14652 rm -rf conftest.dSYM
14653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14658 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_C99_VSNPRINTF" >&5
14659 $as_echo "$libreplace_cv_HAVE_C99_VSNPRINTF" >&6; }
14660 if test x"$libreplace_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_C99_VSNPRINTF 1
14664 _ACEOF
14669 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
14670 $as_echo_n "checking for va_copy... " >&6; }
14671 if test "${libreplace_cv_HAVE_VA_COPY+set}" = set; then
14672 $as_echo_n "(cached) " >&6
14673 else
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h. */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 #include <stdarg.h>
14682 va_list ap1,ap2;
14684 main ()
14686 va_copy(ap1,ap2);
14688 return 0;
14690 _ACEOF
14691 rm -f conftest.$ac_objext conftest$ac_exeext
14692 if { (ac_try="$ac_link"
14693 case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696 esac
14697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14698 $as_echo "$ac_try_echo") >&5
14699 (eval "$ac_link") 2>conftest.er1
14700 ac_status=$?
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
14704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } && {
14706 test -z "$ac_c_werror_flag" ||
14707 test ! -s conftest.err
14708 } && test -s conftest$ac_exeext && {
14709 test "$cross_compiling" = yes ||
14710 $as_test_x conftest$ac_exeext
14711 }; then
14712 libreplace_cv_HAVE_VA_COPY=yes
14713 else
14714 $as_echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 libreplace_cv_HAVE_VA_COPY=no
14720 rm -rf conftest.dSYM
14721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14722 conftest$ac_exeext conftest.$ac_ext
14724 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_VA_COPY" >&5
14725 $as_echo "$libreplace_cv_HAVE_VA_COPY" >&6; }
14726 if test x"$libreplace_cv_HAVE_VA_COPY" = x"yes"; then
14728 cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_VA_COPY 1
14730 _ACEOF
14734 if test x"$libreplace_cv_HAVE_VA_COPY" != x"yes"; then
14735 { $as_echo "$as_me:$LINENO: checking for __va_copy" >&5
14736 $as_echo_n "checking for __va_copy... " >&6; }
14737 if test "${libreplace_cv_HAVE___VA_COPY+set}" = set; then
14738 $as_echo_n "(cached) " >&6
14739 else
14741 cat >conftest.$ac_ext <<_ACEOF
14742 /* confdefs.h. */
14743 _ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 #include <stdarg.h>
14748 va_list ap1,ap2;
14750 main ()
14752 __va_copy(ap1,ap2);
14754 return 0;
14756 _ACEOF
14757 rm -f conftest.$ac_objext conftest$ac_exeext
14758 if { (ac_try="$ac_link"
14759 case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14762 esac
14763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14764 $as_echo "$ac_try_echo") >&5
14765 (eval "$ac_link") 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 } && test -s conftest$ac_exeext && {
14775 test "$cross_compiling" = yes ||
14776 $as_test_x conftest$ac_exeext
14777 }; then
14778 libreplace_cv_HAVE___VA_COPY=yes
14779 else
14780 $as_echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 libreplace_cv_HAVE___VA_COPY=no
14786 rm -rf conftest.dSYM
14787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14788 conftest$ac_exeext conftest.$ac_ext
14790 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE___VA_COPY" >&5
14791 $as_echo "$libreplace_cv_HAVE___VA_COPY" >&6; }
14792 if test x"$libreplace_cv_HAVE___VA_COPY" = x"yes"; then
14794 cat >>confdefs.h <<\_ACEOF
14795 #define HAVE___VA_COPY 1
14796 _ACEOF
14801 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
14802 $as_echo_n "checking for __FUNCTION__ macro... " >&6; }
14803 if test "${libreplace_cv_HAVE_FUNCTION_MACRO+set}" = set; then
14804 $as_echo_n "(cached) " >&6
14805 else
14807 cat >conftest.$ac_ext <<_ACEOF
14808 /* confdefs.h. */
14809 _ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14813 #include <stdio.h>
14815 main ()
14817 printf("%s\n", __FUNCTION__);
14819 return 0;
14821 _ACEOF
14822 rm -f conftest.$ac_objext
14823 if { (ac_try="$ac_compile"
14824 case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14827 esac
14828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14829 $as_echo "$ac_try_echo") >&5
14830 (eval "$ac_compile") 2>conftest.er1
14831 ac_status=$?
14832 grep -v '^ *+' conftest.er1 >conftest.err
14833 rm -f conftest.er1
14834 cat conftest.err >&5
14835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } && {
14837 test -z "$ac_c_werror_flag" ||
14838 test ! -s conftest.err
14839 } && test -s conftest.$ac_objext; then
14840 libreplace_cv_HAVE_FUNCTION_MACRO=yes
14841 else
14842 $as_echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14845 libreplace_cv_HAVE_FUNCTION_MACRO=no
14848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14850 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_FUNCTION_MACRO" >&5
14851 $as_echo "$libreplace_cv_HAVE_FUNCTION_MACRO" >&6; }
14852 if test x"$libreplace_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
14854 cat >>confdefs.h <<\_ACEOF
14855 #define HAVE_FUNCTION_MACRO 1
14856 _ACEOF
14858 else
14859 { $as_echo "$as_me:$LINENO: checking for __func__ macro" >&5
14860 $as_echo_n "checking for __func__ macro... " >&6; }
14861 if test "${libreplace_cv_HAVE_func_MACRO+set}" = set; then
14862 $as_echo_n "(cached) " >&6
14863 else
14865 cat >conftest.$ac_ext <<_ACEOF
14866 /* confdefs.h. */
14867 _ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 #include <stdio.h>
14873 main ()
14875 printf("%s\n", __func__);
14877 return 0;
14879 _ACEOF
14880 rm -f conftest.$ac_objext
14881 if { (ac_try="$ac_compile"
14882 case "(($ac_try" in
14883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14884 *) ac_try_echo=$ac_try;;
14885 esac
14886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14887 $as_echo "$ac_try_echo") >&5
14888 (eval "$ac_compile") 2>conftest.er1
14889 ac_status=$?
14890 grep -v '^ *+' conftest.er1 >conftest.err
14891 rm -f conftest.er1
14892 cat conftest.err >&5
14893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } && {
14895 test -z "$ac_c_werror_flag" ||
14896 test ! -s conftest.err
14897 } && test -s conftest.$ac_objext; then
14898 libreplace_cv_HAVE_func_MACRO=yes
14899 else
14900 $as_echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 libreplace_cv_HAVE_func_MACRO=no
14906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_func_MACRO" >&5
14909 $as_echo "$libreplace_cv_HAVE_func_MACRO" >&6; }
14910 if test x"$libreplace_cv_HAVE_func_MACRO" = x"yes"; then
14912 cat >>confdefs.h <<\_ACEOF
14913 #define HAVE_func_MACRO 1
14914 _ACEOF
14921 for ac_header in sys/param.h limits.h
14923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14926 $as_echo_n "checking for $ac_header... " >&6; }
14927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14928 $as_echo_n "(cached) " >&6
14930 ac_res=`eval 'as_val=${'$as_ac_Header'}
14931 $as_echo "$as_val"'`
14932 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14933 $as_echo "$ac_res" >&6; }
14934 else
14935 # Is the header compilable?
14936 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14937 $as_echo_n "checking $ac_header usability... " >&6; }
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h. */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 $ac_includes_default
14945 #include <$ac_header>
14946 _ACEOF
14947 rm -f conftest.$ac_objext
14948 if { (ac_try="$ac_compile"
14949 case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14952 esac
14953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14954 $as_echo "$ac_try_echo") >&5
14955 (eval "$ac_compile") 2>conftest.er1
14956 ac_status=$?
14957 grep -v '^ *+' conftest.er1 >conftest.err
14958 rm -f conftest.er1
14959 cat conftest.err >&5
14960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } && {
14962 test -z "$ac_c_werror_flag" ||
14963 test ! -s conftest.err
14964 } && test -s conftest.$ac_objext; then
14965 ac_header_compiler=yes
14966 else
14967 $as_echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14970 ac_header_compiler=no
14973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14974 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14975 $as_echo "$ac_header_compiler" >&6; }
14977 # Is the header present?
14978 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14979 $as_echo_n "checking $ac_header presence... " >&6; }
14980 cat >conftest.$ac_ext <<_ACEOF
14981 /* confdefs.h. */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14986 #include <$ac_header>
14987 _ACEOF
14988 if { (ac_try="$ac_cpp conftest.$ac_ext"
14989 case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14992 esac
14993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14994 $as_echo "$ac_try_echo") >&5
14995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } >/dev/null && {
15002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15004 }; then
15005 ac_header_preproc=yes
15006 else
15007 $as_echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 ac_header_preproc=no
15013 rm -f conftest.err conftest.$ac_ext
15014 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15015 $as_echo "$ac_header_preproc" >&6; }
15017 # So? What about this header?
15018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15019 yes:no: )
15020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15021 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15023 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15024 ac_header_preproc=yes
15026 no:yes:* )
15027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15028 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15030 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15032 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15034 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15036 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15038 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15041 esac
15042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15043 $as_echo_n "checking for $ac_header... " >&6; }
15044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15045 $as_echo_n "(cached) " >&6
15046 else
15047 eval "$as_ac_Header=\$ac_header_preproc"
15049 ac_res=`eval 'as_val=${'$as_ac_Header'}
15050 $as_echo "$as_val"'`
15051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15052 $as_echo "$ac_res" >&6; }
15055 as_val=`eval 'as_val=${'$as_ac_Header'}
15056 $as_echo "$as_val"'`
15057 if test "x$as_val" = x""yes; then
15058 cat >>confdefs.h <<_ACEOF
15059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15060 _ACEOF
15064 done
15067 { $as_echo "$as_me:$LINENO: checking for comparison_fn_t" >&5
15068 $as_echo_n "checking for comparison_fn_t... " >&6; }
15069 if test "${ac_cv_type_comparison_fn_t+set}" = set; then
15070 $as_echo_n "(cached) " >&6
15071 else
15072 ac_cv_type_comparison_fn_t=no
15073 cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h. */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 $ac_includes_default
15081 main ()
15083 if (sizeof (comparison_fn_t))
15084 return 0;
15086 return 0;
15088 _ACEOF
15089 rm -f conftest.$ac_objext
15090 if { (ac_try="$ac_compile"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094 esac
15095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15096 $as_echo "$ac_try_echo") >&5
15097 (eval "$ac_compile") 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } && {
15104 test -z "$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15106 } && test -s conftest.$ac_objext; then
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h. */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 $ac_includes_default
15115 main ()
15117 if (sizeof ((comparison_fn_t)))
15118 return 0;
15120 return 0;
15122 _ACEOF
15123 rm -f conftest.$ac_objext
15124 if { (ac_try="$ac_compile"
15125 case "(($ac_try" in
15126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15128 esac
15129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15130 $as_echo "$ac_try_echo") >&5
15131 (eval "$ac_compile") 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } && {
15138 test -z "$ac_c_werror_flag" ||
15139 test ! -s conftest.err
15140 } && test -s conftest.$ac_objext; then
15142 else
15143 $as_echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15146 ac_cv_type_comparison_fn_t=yes
15149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15150 else
15151 $as_echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_comparison_fn_t" >&5
15160 $as_echo "$ac_cv_type_comparison_fn_t" >&6; }
15161 if test "x$ac_cv_type_comparison_fn_t" = x""yes; then
15163 cat >>confdefs.h <<\_ACEOF
15164 #define HAVE_COMPARISON_FN_T 1
15165 _ACEOF
15171 { $as_echo "$as_me:$LINENO: checking for setenv declaration" >&5
15172 $as_echo_n "checking for setenv declaration... " >&6; }
15173 if test "${ac_cv_have_setenv_decl+set}" = set; then
15174 $as_echo_n "(cached) " >&6
15175 else
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h. */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 #include <stdlib.h>
15185 main ()
15187 int i = (int)setenv
15189 return 0;
15191 _ACEOF
15192 rm -f conftest.$ac_objext
15193 if { (ac_try="$ac_compile"
15194 case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15197 esac
15198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15199 $as_echo "$ac_try_echo") >&5
15200 (eval "$ac_compile") 2>conftest.er1
15201 ac_status=$?
15202 grep -v '^ *+' conftest.er1 >conftest.err
15203 rm -f conftest.er1
15204 cat conftest.err >&5
15205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest.$ac_objext; then
15210 ac_cv_have_setenv_decl=yes
15211 else
15212 $as_echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_cv_have_setenv_decl=no
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_setenv_decl" >&5
15221 $as_echo "$ac_cv_have_setenv_decl" >&6; }
15222 if test x"$ac_cv_have_setenv_decl" = x"yes"; then
15224 cat >>confdefs.h <<\_ACEOF
15225 #define HAVE_SETENV_DECL 1
15226 _ACEOF
15232 for ac_func in setenv unsetenv
15234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15235 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15236 $as_echo_n "checking for $ac_func... " >&6; }
15237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15238 $as_echo_n "(cached) " >&6
15239 else
15240 cat >conftest.$ac_ext <<_ACEOF
15241 /* confdefs.h. */
15242 _ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15248 #define $ac_func innocuous_$ac_func
15250 /* System header to define __stub macros and hopefully few prototypes,
15251 which can conflict with char $ac_func (); below.
15252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15253 <limits.h> exists even on freestanding compilers. */
15255 #ifdef __STDC__
15256 # include <limits.h>
15257 #else
15258 # include <assert.h>
15259 #endif
15261 #undef $ac_func
15263 /* Override any GCC internal prototype to avoid an error.
15264 Use char because int might match the return type of a GCC
15265 builtin and then its argument prototype would still apply. */
15266 #ifdef __cplusplus
15267 extern "C"
15268 #endif
15269 char $ac_func ();
15270 /* The GNU C library defines this for functions which it implements
15271 to always fail with ENOSYS. Some functions are actually named
15272 something starting with __ and the normal name is an alias. */
15273 #if defined __stub_$ac_func || defined __stub___$ac_func
15274 choke me
15275 #endif
15278 main ()
15280 return $ac_func ();
15282 return 0;
15284 _ACEOF
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (ac_try="$ac_link"
15287 case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15290 esac
15291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15292 $as_echo "$ac_try_echo") >&5
15293 (eval "$ac_link") 2>conftest.er1
15294 ac_status=$?
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
15298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } && {
15300 test -z "$ac_c_werror_flag" ||
15301 test ! -s conftest.err
15302 } && test -s conftest$ac_exeext && {
15303 test "$cross_compiling" = yes ||
15304 $as_test_x conftest$ac_exeext
15305 }; then
15306 eval "$as_ac_var=yes"
15307 else
15308 $as_echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 eval "$as_ac_var=no"
15314 rm -rf conftest.dSYM
15315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15316 conftest$ac_exeext conftest.$ac_ext
15318 ac_res=`eval 'as_val=${'$as_ac_var'}
15319 $as_echo "$as_val"'`
15320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15321 $as_echo "$ac_res" >&6; }
15322 as_val=`eval 'as_val=${'$as_ac_var'}
15323 $as_echo "$as_val"'`
15324 if test "x$as_val" = x""yes; then
15325 cat >>confdefs.h <<_ACEOF
15326 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15327 _ACEOF
15330 done
15333 { $as_echo "$as_me:$LINENO: checking for environ declaration" >&5
15334 $as_echo_n "checking for environ declaration... " >&6; }
15335 if test "${ac_cv_have_environ_decl+set}" = set; then
15336 $as_echo_n "(cached) " >&6
15337 else
15339 cat >conftest.$ac_ext <<_ACEOF
15340 /* confdefs.h. */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15345 #include <unistd.h>
15347 main ()
15349 int i = (int)environ
15351 return 0;
15353 _ACEOF
15354 rm -f conftest.$ac_objext
15355 if { (ac_try="$ac_compile"
15356 case "(($ac_try" in
15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358 *) ac_try_echo=$ac_try;;
15359 esac
15360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15361 $as_echo "$ac_try_echo") >&5
15362 (eval "$ac_compile") 2>conftest.er1
15363 ac_status=$?
15364 grep -v '^ *+' conftest.er1 >conftest.err
15365 rm -f conftest.er1
15366 cat conftest.err >&5
15367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } && {
15369 test -z "$ac_c_werror_flag" ||
15370 test ! -s conftest.err
15371 } && test -s conftest.$ac_objext; then
15372 ac_cv_have_environ_decl=yes
15373 else
15374 $as_echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ac_cv_have_environ_decl=no
15380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_environ_decl" >&5
15383 $as_echo "$ac_cv_have_environ_decl" >&6; }
15384 if test x"$ac_cv_have_environ_decl" = x"yes"; then
15386 cat >>confdefs.h <<\_ACEOF
15387 #define HAVE_ENVIRON_DECL 1
15388 _ACEOF
15394 for ac_func in strnlen
15396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15397 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15398 $as_echo_n "checking for $ac_func... " >&6; }
15399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15400 $as_echo_n "(cached) " >&6
15401 else
15402 cat >conftest.$ac_ext <<_ACEOF
15403 /* confdefs.h. */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15410 #define $ac_func innocuous_$ac_func
15412 /* System header to define __stub macros and hopefully few prototypes,
15413 which can conflict with char $ac_func (); below.
15414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15415 <limits.h> exists even on freestanding compilers. */
15417 #ifdef __STDC__
15418 # include <limits.h>
15419 #else
15420 # include <assert.h>
15421 #endif
15423 #undef $ac_func
15425 /* Override any GCC internal prototype to avoid an error.
15426 Use char because int might match the return type of a GCC
15427 builtin and then its argument prototype would still apply. */
15428 #ifdef __cplusplus
15429 extern "C"
15430 #endif
15431 char $ac_func ();
15432 /* The GNU C library defines this for functions which it implements
15433 to always fail with ENOSYS. Some functions are actually named
15434 something starting with __ and the normal name is an alias. */
15435 #if defined __stub_$ac_func || defined __stub___$ac_func
15436 choke me
15437 #endif
15440 main ()
15442 return $ac_func ();
15444 return 0;
15446 _ACEOF
15447 rm -f conftest.$ac_objext conftest$ac_exeext
15448 if { (ac_try="$ac_link"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15452 esac
15453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15454 $as_echo "$ac_try_echo") >&5
15455 (eval "$ac_link") 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } && {
15462 test -z "$ac_c_werror_flag" ||
15463 test ! -s conftest.err
15464 } && test -s conftest$ac_exeext && {
15465 test "$cross_compiling" = yes ||
15466 $as_test_x conftest$ac_exeext
15467 }; then
15468 eval "$as_ac_var=yes"
15469 else
15470 $as_echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15473 eval "$as_ac_var=no"
15476 rm -rf conftest.dSYM
15477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15478 conftest$ac_exeext conftest.$ac_ext
15480 ac_res=`eval 'as_val=${'$as_ac_var'}
15481 $as_echo "$as_val"'`
15482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15483 $as_echo "$ac_res" >&6; }
15484 as_val=`eval 'as_val=${'$as_ac_var'}
15485 $as_echo "$as_val"'`
15486 if test "x$as_val" = x""yes; then
15487 cat >>confdefs.h <<_ACEOF
15488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15489 _ACEOF
15492 done
15500 for ac_func in strtoull __strtoull strtouq strtoll __strtoll strtoq
15502 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15503 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15504 $as_echo_n "checking for $ac_func... " >&6; }
15505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15506 $as_echo_n "(cached) " >&6
15507 else
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h. */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15516 #define $ac_func innocuous_$ac_func
15518 /* System header to define __stub macros and hopefully few prototypes,
15519 which can conflict with char $ac_func (); below.
15520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15521 <limits.h> exists even on freestanding compilers. */
15523 #ifdef __STDC__
15524 # include <limits.h>
15525 #else
15526 # include <assert.h>
15527 #endif
15529 #undef $ac_func
15531 /* Override any GCC internal prototype to avoid an error.
15532 Use char because int might match the return type of a GCC
15533 builtin and then its argument prototype would still apply. */
15534 #ifdef __cplusplus
15535 extern "C"
15536 #endif
15537 char $ac_func ();
15538 /* The GNU C library defines this for functions which it implements
15539 to always fail with ENOSYS. Some functions are actually named
15540 something starting with __ and the normal name is an alias. */
15541 #if defined __stub_$ac_func || defined __stub___$ac_func
15542 choke me
15543 #endif
15546 main ()
15548 return $ac_func ();
15550 return 0;
15552 _ACEOF
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (ac_try="$ac_link"
15555 case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15558 esac
15559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15560 $as_echo "$ac_try_echo") >&5
15561 (eval "$ac_link") 2>conftest.er1
15562 ac_status=$?
15563 grep -v '^ *+' conftest.er1 >conftest.err
15564 rm -f conftest.er1
15565 cat conftest.err >&5
15566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && {
15568 test -z "$ac_c_werror_flag" ||
15569 test ! -s conftest.err
15570 } && test -s conftest$ac_exeext && {
15571 test "$cross_compiling" = yes ||
15572 $as_test_x conftest$ac_exeext
15573 }; then
15574 eval "$as_ac_var=yes"
15575 else
15576 $as_echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 eval "$as_ac_var=no"
15582 rm -rf conftest.dSYM
15583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15584 conftest$ac_exeext conftest.$ac_ext
15586 ac_res=`eval 'as_val=${'$as_ac_var'}
15587 $as_echo "$as_val"'`
15588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15589 $as_echo "$ac_res" >&6; }
15590 as_val=`eval 'as_val=${'$as_ac_var'}
15591 $as_echo "$as_val"'`
15592 if test "x$as_val" = x""yes; then
15593 cat >>confdefs.h <<_ACEOF
15594 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15595 _ACEOF
15598 done
15601 # this test disabled as we don't actually need __VA_ARGS__ yet
15602 cat >conftest.$ac_ext <<_ACEOF
15603 /* confdefs.h. */
15604 _ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15609 #define eprintf(...) fprintf(stderr, __VA_ARGS__)
15610 eprintf("bla", "bar");
15612 _ACEOF
15613 if { (ac_try="$ac_cpp conftest.$ac_ext"
15614 case "(($ac_try" in
15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15617 esac
15618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15619 $as_echo "$ac_try_echo") >&5
15620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15621 ac_status=$?
15622 grep -v '^ *+' conftest.er1 >conftest.err
15623 rm -f conftest.er1
15624 cat conftest.err >&5
15625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } >/dev/null && {
15627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15628 test ! -s conftest.err
15629 }; then
15631 cat >>confdefs.h <<\_ACEOF
15632 #define HAVE__VA_ARGS__MACRO 1
15633 _ACEOF
15635 else
15636 $as_echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15642 rm -f conftest.err conftest.$ac_ext
15645 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
15646 $as_echo_n "checking for sig_atomic_t type... " >&6; }
15647 if test "${libreplace_cv_sig_atomic_t+set}" = set; then
15648 $as_echo_n "(cached) " >&6
15649 else
15651 cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h. */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15658 #include <sys/types.h>
15659 #if STDC_HEADERS
15660 #include <stdlib.h>
15661 #include <stddef.h>
15662 #endif
15663 #include <signal.h>
15665 main ()
15667 sig_atomic_t i = 0
15669 return 0;
15671 _ACEOF
15672 rm -f conftest.$ac_objext
15673 if { (ac_try="$ac_compile"
15674 case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15677 esac
15678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15679 $as_echo "$ac_try_echo") >&5
15680 (eval "$ac_compile") 2>conftest.er1
15681 ac_status=$?
15682 grep -v '^ *+' conftest.er1 >conftest.err
15683 rm -f conftest.er1
15684 cat conftest.err >&5
15685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } && {
15687 test -z "$ac_c_werror_flag" ||
15688 test ! -s conftest.err
15689 } && test -s conftest.$ac_objext; then
15690 libreplace_cv_sig_atomic_t=yes
15691 else
15692 $as_echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 libreplace_cv_sig_atomic_t=no
15698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15700 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_sig_atomic_t" >&5
15701 $as_echo "$libreplace_cv_sig_atomic_t" >&6; }
15702 if test x"$libreplace_cv_sig_atomic_t" = x"yes"; then
15704 cat >>confdefs.h <<\_ACEOF
15705 #define HAVE_SIG_ATOMIC_T_TYPE 1
15706 _ACEOF
15711 { $as_echo "$as_me:$LINENO: checking for O_DIRECT flag to open(2)" >&5
15712 $as_echo_n "checking for O_DIRECT flag to open(2)... " >&6; }
15713 if test "${libreplace_cv_HAVE_OPEN_O_DIRECT+set}" = set; then
15714 $as_echo_n "(cached) " >&6
15715 else
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h. */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15724 #include <unistd.h>
15725 #ifdef HAVE_FCNTL_H
15726 #include <fcntl.h>
15727 #endif
15729 main ()
15731 int fd = open("/dev/null", O_DIRECT);
15733 return 0;
15735 _ACEOF
15736 rm -f conftest.$ac_objext
15737 if { (ac_try="$ac_compile"
15738 case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15741 esac
15742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15743 $as_echo "$ac_try_echo") >&5
15744 (eval "$ac_compile") 2>conftest.er1
15745 ac_status=$?
15746 grep -v '^ *+' conftest.er1 >conftest.err
15747 rm -f conftest.er1
15748 cat conftest.err >&5
15749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } && {
15751 test -z "$ac_c_werror_flag" ||
15752 test ! -s conftest.err
15753 } && test -s conftest.$ac_objext; then
15754 libreplace_cv_HAVE_OPEN_O_DIRECT=yes
15755 else
15756 $as_echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 libreplace_cv_HAVE_OPEN_O_DIRECT=no
15762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15764 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_OPEN_O_DIRECT" >&5
15765 $as_echo "$libreplace_cv_HAVE_OPEN_O_DIRECT" >&6; }
15766 if test x"$libreplace_cv_HAVE_OPEN_O_DIRECT" = x"yes"; then
15768 cat >>confdefs.h <<\_ACEOF
15769 #define HAVE_OPEN_O_DIRECT 1
15770 _ACEOF
15775 { $as_echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
15776 $as_echo_n "checking that the C compiler understands volatile... " >&6; }
15777 if test "${libreplace_cv_volatile+set}" = set; then
15778 $as_echo_n "(cached) " >&6
15779 else
15781 cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h. */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 #include <sys/types.h>
15789 main ()
15791 volatile int i = 0
15793 return 0;
15795 _ACEOF
15796 rm -f conftest.$ac_objext
15797 if { (ac_try="$ac_compile"
15798 case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15801 esac
15802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15803 $as_echo "$ac_try_echo") >&5
15804 (eval "$ac_compile") 2>conftest.er1
15805 ac_status=$?
15806 grep -v '^ *+' conftest.er1 >conftest.err
15807 rm -f conftest.er1
15808 cat conftest.err >&5
15809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } && {
15811 test -z "$ac_c_werror_flag" ||
15812 test ! -s conftest.err
15813 } && test -s conftest.$ac_objext; then
15814 libreplace_cv_volatile=yes
15815 else
15816 $as_echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15819 libreplace_cv_volatile=no
15822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_volatile" >&5
15825 $as_echo "$libreplace_cv_volatile" >&6; }
15826 if test x"$libreplace_cv_volatile" = x"yes"; then
15828 cat >>confdefs.h <<\_ACEOF
15829 #define HAVE_VOLATILE 1
15830 _ACEOF
15834 # filesys
15840 ac_header_dirent=no
15841 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15842 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15843 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15844 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15846 $as_echo_n "(cached) " >&6
15847 else
15848 cat >conftest.$ac_ext <<_ACEOF
15849 /* confdefs.h. */
15850 _ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15854 #include <sys/types.h>
15855 #include <$ac_hdr>
15858 main ()
15860 if ((DIR *) 0)
15861 return 0;
15863 return 0;
15865 _ACEOF
15866 rm -f conftest.$ac_objext
15867 if { (ac_try="$ac_compile"
15868 case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15871 esac
15872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15873 $as_echo "$ac_try_echo") >&5
15874 (eval "$ac_compile") 2>conftest.er1
15875 ac_status=$?
15876 grep -v '^ *+' conftest.er1 >conftest.err
15877 rm -f conftest.er1
15878 cat conftest.err >&5
15879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } && {
15881 test -z "$ac_c_werror_flag" ||
15882 test ! -s conftest.err
15883 } && test -s conftest.$ac_objext; then
15884 eval "$as_ac_Header=yes"
15885 else
15886 $as_echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 eval "$as_ac_Header=no"
15892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15894 ac_res=`eval 'as_val=${'$as_ac_Header'}
15895 $as_echo "$as_val"'`
15896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15897 $as_echo "$ac_res" >&6; }
15898 as_val=`eval 'as_val=${'$as_ac_Header'}
15899 $as_echo "$as_val"'`
15900 if test "x$as_val" = x""yes; then
15901 cat >>confdefs.h <<_ACEOF
15902 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15903 _ACEOF
15905 ac_header_dirent=$ac_hdr; break
15908 done
15909 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15910 if test $ac_header_dirent = dirent.h; then
15911 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
15912 $as_echo_n "checking for library containing opendir... " >&6; }
15913 if test "${ac_cv_search_opendir+set}" = set; then
15914 $as_echo_n "(cached) " >&6
15915 else
15916 ac_func_search_save_LIBS=$LIBS
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h. */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15924 /* Override any GCC internal prototype to avoid an error.
15925 Use char because int might match the return type of a GCC
15926 builtin and then its argument prototype would still apply. */
15927 #ifdef __cplusplus
15928 extern "C"
15929 #endif
15930 char opendir ();
15932 main ()
15934 return opendir ();
15936 return 0;
15938 _ACEOF
15939 for ac_lib in '' dir; do
15940 if test -z "$ac_lib"; then
15941 ac_res="none required"
15942 else
15943 ac_res=-l$ac_lib
15944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15946 rm -f conftest.$ac_objext conftest$ac_exeext
15947 if { (ac_try="$ac_link"
15948 case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15951 esac
15952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15953 $as_echo "$ac_try_echo") >&5
15954 (eval "$ac_link") 2>conftest.er1
15955 ac_status=$?
15956 grep -v '^ *+' conftest.er1 >conftest.err
15957 rm -f conftest.er1
15958 cat conftest.err >&5
15959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); } && {
15961 test -z "$ac_c_werror_flag" ||
15962 test ! -s conftest.err
15963 } && test -s conftest$ac_exeext && {
15964 test "$cross_compiling" = yes ||
15965 $as_test_x conftest$ac_exeext
15966 }; then
15967 ac_cv_search_opendir=$ac_res
15968 else
15969 $as_echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15975 rm -rf conftest.dSYM
15976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15977 conftest$ac_exeext
15978 if test "${ac_cv_search_opendir+set}" = set; then
15979 break
15981 done
15982 if test "${ac_cv_search_opendir+set}" = set; then
15984 else
15985 ac_cv_search_opendir=no
15987 rm conftest.$ac_ext
15988 LIBS=$ac_func_search_save_LIBS
15990 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15991 $as_echo "$ac_cv_search_opendir" >&6; }
15992 ac_res=$ac_cv_search_opendir
15993 if test "$ac_res" != no; then
15994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15998 else
15999 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
16000 $as_echo_n "checking for library containing opendir... " >&6; }
16001 if test "${ac_cv_search_opendir+set}" = set; then
16002 $as_echo_n "(cached) " >&6
16003 else
16004 ac_func_search_save_LIBS=$LIBS
16005 cat >conftest.$ac_ext <<_ACEOF
16006 /* confdefs.h. */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16012 /* Override any GCC internal prototype to avoid an error.
16013 Use char because int might match the return type of a GCC
16014 builtin and then its argument prototype would still apply. */
16015 #ifdef __cplusplus
16016 extern "C"
16017 #endif
16018 char opendir ();
16020 main ()
16022 return opendir ();
16024 return 0;
16026 _ACEOF
16027 for ac_lib in '' x; do
16028 if test -z "$ac_lib"; then
16029 ac_res="none required"
16030 else
16031 ac_res=-l$ac_lib
16032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16034 rm -f conftest.$ac_objext conftest$ac_exeext
16035 if { (ac_try="$ac_link"
16036 case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16039 esac
16040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16041 $as_echo "$ac_try_echo") >&5
16042 (eval "$ac_link") 2>conftest.er1
16043 ac_status=$?
16044 grep -v '^ *+' conftest.er1 >conftest.err
16045 rm -f conftest.er1
16046 cat conftest.err >&5
16047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } && {
16049 test -z "$ac_c_werror_flag" ||
16050 test ! -s conftest.err
16051 } && test -s conftest$ac_exeext && {
16052 test "$cross_compiling" = yes ||
16053 $as_test_x conftest$ac_exeext
16054 }; then
16055 ac_cv_search_opendir=$ac_res
16056 else
16057 $as_echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16063 rm -rf conftest.dSYM
16064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16065 conftest$ac_exeext
16066 if test "${ac_cv_search_opendir+set}" = set; then
16067 break
16069 done
16070 if test "${ac_cv_search_opendir+set}" = set; then
16072 else
16073 ac_cv_search_opendir=no
16075 rm conftest.$ac_ext
16076 LIBS=$ac_func_search_save_LIBS
16078 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16079 $as_echo "$ac_cv_search_opendir" >&6; }
16080 ac_res=$ac_cv_search_opendir
16081 if test "$ac_res" != no; then
16082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16096 for ac_header in fcntl.h sys/fcntl.h sys/resource.h sys/ioctl.h sys/mode.h sys/filio.h sys/fs/s5param.h sys/filsys.h
16098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16100 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16101 $as_echo_n "checking for $ac_header... " >&6; }
16102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16103 $as_echo_n "(cached) " >&6
16105 ac_res=`eval 'as_val=${'$as_ac_Header'}
16106 $as_echo "$as_val"'`
16107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16108 $as_echo "$ac_res" >&6; }
16109 else
16110 # Is the header compilable?
16111 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16112 $as_echo_n "checking $ac_header usability... " >&6; }
16113 cat >conftest.$ac_ext <<_ACEOF
16114 /* confdefs.h. */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 $ac_includes_default
16120 #include <$ac_header>
16121 _ACEOF
16122 rm -f conftest.$ac_objext
16123 if { (ac_try="$ac_compile"
16124 case "(($ac_try" in
16125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16126 *) ac_try_echo=$ac_try;;
16127 esac
16128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16129 $as_echo "$ac_try_echo") >&5
16130 (eval "$ac_compile") 2>conftest.er1
16131 ac_status=$?
16132 grep -v '^ *+' conftest.er1 >conftest.err
16133 rm -f conftest.er1
16134 cat conftest.err >&5
16135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } && {
16137 test -z "$ac_c_werror_flag" ||
16138 test ! -s conftest.err
16139 } && test -s conftest.$ac_objext; then
16140 ac_header_compiler=yes
16141 else
16142 $as_echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 ac_header_compiler=no
16148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16150 $as_echo "$ac_header_compiler" >&6; }
16152 # Is the header present?
16153 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16154 $as_echo_n "checking $ac_header presence... " >&6; }
16155 cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h. */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 #include <$ac_header>
16162 _ACEOF
16163 if { (ac_try="$ac_cpp conftest.$ac_ext"
16164 case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16167 esac
16168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16169 $as_echo "$ac_try_echo") >&5
16170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171 ac_status=$?
16172 grep -v '^ *+' conftest.er1 >conftest.err
16173 rm -f conftest.er1
16174 cat conftest.err >&5
16175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } >/dev/null && {
16177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16178 test ! -s conftest.err
16179 }; then
16180 ac_header_preproc=yes
16181 else
16182 $as_echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 ac_header_preproc=no
16188 rm -f conftest.err conftest.$ac_ext
16189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16190 $as_echo "$ac_header_preproc" >&6; }
16192 # So? What about this header?
16193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16194 yes:no: )
16195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16196 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16199 ac_header_preproc=yes
16201 no:yes:* )
16202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16203 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16205 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16207 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16209 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16213 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16216 esac
16217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16218 $as_echo_n "checking for $ac_header... " >&6; }
16219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16220 $as_echo_n "(cached) " >&6
16221 else
16222 eval "$as_ac_Header=\$ac_header_preproc"
16224 ac_res=`eval 'as_val=${'$as_ac_Header'}
16225 $as_echo "$as_val"'`
16226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16227 $as_echo "$ac_res" >&6; }
16230 as_val=`eval 'as_val=${'$as_ac_Header'}
16231 $as_echo "$as_val"'`
16232 if test "x$as_val" = x""yes; then
16233 cat >>confdefs.h <<_ACEOF
16234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16235 _ACEOF
16239 done
16243 for ac_header in sys/acl.h acl/libacl.h
16245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16247 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16248 $as_echo_n "checking for $ac_header... " >&6; }
16249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16250 $as_echo_n "(cached) " >&6
16252 ac_res=`eval 'as_val=${'$as_ac_Header'}
16253 $as_echo "$as_val"'`
16254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16255 $as_echo "$ac_res" >&6; }
16256 else
16257 # Is the header compilable?
16258 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16259 $as_echo_n "checking $ac_header usability... " >&6; }
16260 cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h. */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 $ac_includes_default
16267 #include <$ac_header>
16268 _ACEOF
16269 rm -f conftest.$ac_objext
16270 if { (ac_try="$ac_compile"
16271 case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16274 esac
16275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16276 $as_echo "$ac_try_echo") >&5
16277 (eval "$ac_compile") 2>conftest.er1
16278 ac_status=$?
16279 grep -v '^ *+' conftest.er1 >conftest.err
16280 rm -f conftest.er1
16281 cat conftest.err >&5
16282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } && {
16284 test -z "$ac_c_werror_flag" ||
16285 test ! -s conftest.err
16286 } && test -s conftest.$ac_objext; then
16287 ac_header_compiler=yes
16288 else
16289 $as_echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 ac_header_compiler=no
16295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16297 $as_echo "$ac_header_compiler" >&6; }
16299 # Is the header present?
16300 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16301 $as_echo_n "checking $ac_header presence... " >&6; }
16302 cat >conftest.$ac_ext <<_ACEOF
16303 /* confdefs.h. */
16304 _ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16308 #include <$ac_header>
16309 _ACEOF
16310 if { (ac_try="$ac_cpp conftest.$ac_ext"
16311 case "(($ac_try" in
16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16314 esac
16315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16316 $as_echo "$ac_try_echo") >&5
16317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16318 ac_status=$?
16319 grep -v '^ *+' conftest.er1 >conftest.err
16320 rm -f conftest.er1
16321 cat conftest.err >&5
16322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } >/dev/null && {
16324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16325 test ! -s conftest.err
16326 }; then
16327 ac_header_preproc=yes
16328 else
16329 $as_echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16332 ac_header_preproc=no
16335 rm -f conftest.err conftest.$ac_ext
16336 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16337 $as_echo "$ac_header_preproc" >&6; }
16339 # So? What about this header?
16340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16341 yes:no: )
16342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16343 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16346 ac_header_preproc=yes
16348 no:yes:* )
16349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16350 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16352 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16354 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16356 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16360 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16363 esac
16364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16365 $as_echo_n "checking for $ac_header... " >&6; }
16366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16367 $as_echo_n "(cached) " >&6
16368 else
16369 eval "$as_ac_Header=\$ac_header_preproc"
16371 ac_res=`eval 'as_val=${'$as_ac_Header'}
16372 $as_echo "$as_val"'`
16373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16374 $as_echo "$ac_res" >&6; }
16377 as_val=`eval 'as_val=${'$as_ac_Header'}
16378 $as_echo "$as_val"'`
16379 if test "x$as_val" = x""yes; then
16380 cat >>confdefs.h <<_ACEOF
16381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16382 _ACEOF
16386 done
16389 # select
16391 for ac_header in sys/select.h
16393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16395 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16396 $as_echo_n "checking for $ac_header... " >&6; }
16397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16398 $as_echo_n "(cached) " >&6
16400 ac_res=`eval 'as_val=${'$as_ac_Header'}
16401 $as_echo "$as_val"'`
16402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16403 $as_echo "$ac_res" >&6; }
16404 else
16405 # Is the header compilable?
16406 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16407 $as_echo_n "checking $ac_header usability... " >&6; }
16408 cat >conftest.$ac_ext <<_ACEOF
16409 /* confdefs.h. */
16410 _ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16414 $ac_includes_default
16415 #include <$ac_header>
16416 _ACEOF
16417 rm -f conftest.$ac_objext
16418 if { (ac_try="$ac_compile"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16422 esac
16423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16424 $as_echo "$ac_try_echo") >&5
16425 (eval "$ac_compile") 2>conftest.er1
16426 ac_status=$?
16427 grep -v '^ *+' conftest.er1 >conftest.err
16428 rm -f conftest.er1
16429 cat conftest.err >&5
16430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } && {
16432 test -z "$ac_c_werror_flag" ||
16433 test ! -s conftest.err
16434 } && test -s conftest.$ac_objext; then
16435 ac_header_compiler=yes
16436 else
16437 $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ac_header_compiler=no
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16445 $as_echo "$ac_header_compiler" >&6; }
16447 # Is the header present?
16448 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16449 $as_echo_n "checking $ac_header presence... " >&6; }
16450 cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h. */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 #include <$ac_header>
16457 _ACEOF
16458 if { (ac_try="$ac_cpp conftest.$ac_ext"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16462 esac
16463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16464 $as_echo "$ac_try_echo") >&5
16465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } >/dev/null && {
16472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16473 test ! -s conftest.err
16474 }; then
16475 ac_header_preproc=yes
16476 else
16477 $as_echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 ac_header_preproc=no
16483 rm -f conftest.err conftest.$ac_ext
16484 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16485 $as_echo "$ac_header_preproc" >&6; }
16487 # So? What about this header?
16488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16489 yes:no: )
16490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16491 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16493 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16494 ac_header_preproc=yes
16496 no:yes:* )
16497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16498 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16500 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16502 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16504 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16506 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16508 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16511 esac
16512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16513 $as_echo_n "checking for $ac_header... " >&6; }
16514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16515 $as_echo_n "(cached) " >&6
16516 else
16517 eval "$as_ac_Header=\$ac_header_preproc"
16519 ac_res=`eval 'as_val=${'$as_ac_Header'}
16520 $as_echo "$as_val"'`
16521 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16522 $as_echo "$ac_res" >&6; }
16525 as_val=`eval 'as_val=${'$as_ac_Header'}
16526 $as_echo "$as_val"'`
16527 if test "x$as_val" = x""yes; then
16528 cat >>confdefs.h <<_ACEOF
16529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16530 _ACEOF
16534 done
16537 # time
16540 for ac_header in sys/time.h utime.h
16542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16545 $as_echo_n "checking for $ac_header... " >&6; }
16546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16547 $as_echo_n "(cached) " >&6
16549 ac_res=`eval 'as_val=${'$as_ac_Header'}
16550 $as_echo "$as_val"'`
16551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16552 $as_echo "$ac_res" >&6; }
16553 else
16554 # Is the header compilable?
16555 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16556 $as_echo_n "checking $ac_header usability... " >&6; }
16557 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h. */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 $ac_includes_default
16564 #include <$ac_header>
16565 _ACEOF
16566 rm -f conftest.$ac_objext
16567 if { (ac_try="$ac_compile"
16568 case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16571 esac
16572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16573 $as_echo "$ac_try_echo") >&5
16574 (eval "$ac_compile") 2>conftest.er1
16575 ac_status=$?
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
16578 cat conftest.err >&5
16579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } && {
16581 test -z "$ac_c_werror_flag" ||
16582 test ! -s conftest.err
16583 } && test -s conftest.$ac_objext; then
16584 ac_header_compiler=yes
16585 else
16586 $as_echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 ac_header_compiler=no
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16594 $as_echo "$ac_header_compiler" >&6; }
16596 # Is the header present?
16597 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16598 $as_echo_n "checking $ac_header presence... " >&6; }
16599 cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h. */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 #include <$ac_header>
16606 _ACEOF
16607 if { (ac_try="$ac_cpp conftest.$ac_ext"
16608 case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16611 esac
16612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16613 $as_echo "$ac_try_echo") >&5
16614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16615 ac_status=$?
16616 grep -v '^ *+' conftest.er1 >conftest.err
16617 rm -f conftest.er1
16618 cat conftest.err >&5
16619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } >/dev/null && {
16621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16622 test ! -s conftest.err
16623 }; then
16624 ac_header_preproc=yes
16625 else
16626 $as_echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_header_preproc=no
16632 rm -f conftest.err conftest.$ac_ext
16633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16634 $as_echo "$ac_header_preproc" >&6; }
16636 # So? What about this header?
16637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16638 yes:no: )
16639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16640 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16643 ac_header_preproc=yes
16645 no:yes:* )
16646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16647 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16649 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16651 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16653 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16655 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16657 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16660 esac
16661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16662 $as_echo_n "checking for $ac_header... " >&6; }
16663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16664 $as_echo_n "(cached) " >&6
16665 else
16666 eval "$as_ac_Header=\$ac_header_preproc"
16668 ac_res=`eval 'as_val=${'$as_ac_Header'}
16669 $as_echo "$as_val"'`
16670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16671 $as_echo "$ac_res" >&6; }
16674 as_val=`eval 'as_val=${'$as_ac_Header'}
16675 $as_echo "$as_val"'`
16676 if test "x$as_val" = x""yes; then
16677 cat >>confdefs.h <<_ACEOF
16678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16679 _ACEOF
16683 done
16685 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16686 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16687 if test "${ac_cv_header_time+set}" = set; then
16688 $as_echo_n "(cached) " >&6
16689 else
16690 cat >conftest.$ac_ext <<_ACEOF
16691 /* confdefs.h. */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696 #include <sys/types.h>
16697 #include <sys/time.h>
16698 #include <time.h>
16701 main ()
16703 if ((struct tm *) 0)
16704 return 0;
16706 return 0;
16708 _ACEOF
16709 rm -f conftest.$ac_objext
16710 if { (ac_try="$ac_compile"
16711 case "(($ac_try" in
16712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713 *) ac_try_echo=$ac_try;;
16714 esac
16715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16716 $as_echo "$ac_try_echo") >&5
16717 (eval "$ac_compile") 2>conftest.er1
16718 ac_status=$?
16719 grep -v '^ *+' conftest.er1 >conftest.err
16720 rm -f conftest.er1
16721 cat conftest.err >&5
16722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } && {
16724 test -z "$ac_c_werror_flag" ||
16725 test ! -s conftest.err
16726 } && test -s conftest.$ac_objext; then
16727 ac_cv_header_time=yes
16728 else
16729 $as_echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16732 ac_cv_header_time=no
16735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16738 $as_echo "$ac_cv_header_time" >&6; }
16739 if test $ac_cv_header_time = yes; then
16741 cat >>confdefs.h <<\_ACEOF
16742 #define TIME_WITH_SYS_TIME 1
16743 _ACEOF
16749 for ac_func in utime utimes
16751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16752 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16753 $as_echo_n "checking for $ac_func... " >&6; }
16754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16755 $as_echo_n "(cached) " >&6
16756 else
16757 cat >conftest.$ac_ext <<_ACEOF
16758 /* confdefs.h. */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16765 #define $ac_func innocuous_$ac_func
16767 /* System header to define __stub macros and hopefully few prototypes,
16768 which can conflict with char $ac_func (); below.
16769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770 <limits.h> exists even on freestanding compilers. */
16772 #ifdef __STDC__
16773 # include <limits.h>
16774 #else
16775 # include <assert.h>
16776 #endif
16778 #undef $ac_func
16780 /* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16783 #ifdef __cplusplus
16784 extern "C"
16785 #endif
16786 char $ac_func ();
16787 /* The GNU C library defines this for functions which it implements
16788 to always fail with ENOSYS. Some functions are actually named
16789 something starting with __ and the normal name is an alias. */
16790 #if defined __stub_$ac_func || defined __stub___$ac_func
16791 choke me
16792 #endif
16795 main ()
16797 return $ac_func ();
16799 return 0;
16801 _ACEOF
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (ac_try="$ac_link"
16804 case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16807 esac
16808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16809 $as_echo "$ac_try_echo") >&5
16810 (eval "$ac_link") 2>conftest.er1
16811 ac_status=$?
16812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
16815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } && {
16817 test -z "$ac_c_werror_flag" ||
16818 test ! -s conftest.err
16819 } && test -s conftest$ac_exeext && {
16820 test "$cross_compiling" = yes ||
16821 $as_test_x conftest$ac_exeext
16822 }; then
16823 eval "$as_ac_var=yes"
16824 else
16825 $as_echo "$as_me: failed program was:" >&5
16826 sed 's/^/| /' conftest.$ac_ext >&5
16828 eval "$as_ac_var=no"
16831 rm -rf conftest.dSYM
16832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16833 conftest$ac_exeext conftest.$ac_ext
16835 ac_res=`eval 'as_val=${'$as_ac_var'}
16836 $as_echo "$as_val"'`
16837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16838 $as_echo "$ac_res" >&6; }
16839 as_val=`eval 'as_val=${'$as_ac_var'}
16840 $as_echo "$as_val"'`
16841 if test "x$as_val" = x""yes; then
16842 cat >>confdefs.h <<_ACEOF
16843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16844 _ACEOF
16847 done
16850 # wait
16851 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
16852 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16853 if test "${ac_cv_header_sys_wait_h+set}" = set; then
16854 $as_echo_n "(cached) " >&6
16855 else
16856 cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h. */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 #include <sys/types.h>
16863 #include <sys/wait.h>
16864 #ifndef WEXITSTATUS
16865 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16866 #endif
16867 #ifndef WIFEXITED
16868 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16869 #endif
16872 main ()
16874 int s;
16875 wait (&s);
16876 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16878 return 0;
16880 _ACEOF
16881 rm -f conftest.$ac_objext
16882 if { (ac_try="$ac_compile"
16883 case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16886 esac
16887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16888 $as_echo "$ac_try_echo") >&5
16889 (eval "$ac_compile") 2>conftest.er1
16890 ac_status=$?
16891 grep -v '^ *+' conftest.er1 >conftest.err
16892 rm -f conftest.er1
16893 cat conftest.err >&5
16894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } && {
16896 test -z "$ac_c_werror_flag" ||
16897 test ! -s conftest.err
16898 } && test -s conftest.$ac_objext; then
16899 ac_cv_header_sys_wait_h=yes
16900 else
16901 $as_echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16904 ac_cv_header_sys_wait_h=no
16907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16909 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
16910 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16911 if test $ac_cv_header_sys_wait_h = yes; then
16913 cat >>confdefs.h <<\_ACEOF
16914 #define HAVE_SYS_WAIT_H 1
16915 _ACEOF
16920 # capability
16922 for ac_header in sys/capability.h
16924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16926 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16927 $as_echo_n "checking for $ac_header... " >&6; }
16928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16929 $as_echo_n "(cached) " >&6
16931 ac_res=`eval 'as_val=${'$as_ac_Header'}
16932 $as_echo "$as_val"'`
16933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16934 $as_echo "$ac_res" >&6; }
16935 else
16936 # Is the header compilable?
16937 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16938 $as_echo_n "checking $ac_header usability... " >&6; }
16939 cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h. */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 $ac_includes_default
16946 #include <$ac_header>
16947 _ACEOF
16948 rm -f conftest.$ac_objext
16949 if { (ac_try="$ac_compile"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953 esac
16954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16955 $as_echo "$ac_try_echo") >&5
16956 (eval "$ac_compile") 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } && {
16963 test -z "$ac_c_werror_flag" ||
16964 test ! -s conftest.err
16965 } && test -s conftest.$ac_objext; then
16966 ac_header_compiler=yes
16967 else
16968 $as_echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16971 ac_header_compiler=no
16974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16975 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16976 $as_echo "$ac_header_compiler" >&6; }
16978 # Is the header present?
16979 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16980 $as_echo_n "checking $ac_header presence... " >&6; }
16981 cat >conftest.$ac_ext <<_ACEOF
16982 /* confdefs.h. */
16983 _ACEOF
16984 cat confdefs.h >>conftest.$ac_ext
16985 cat >>conftest.$ac_ext <<_ACEOF
16986 /* end confdefs.h. */
16987 #include <$ac_header>
16988 _ACEOF
16989 if { (ac_try="$ac_cpp conftest.$ac_ext"
16990 case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16993 esac
16994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16995 $as_echo "$ac_try_echo") >&5
16996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16997 ac_status=$?
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
17001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } >/dev/null && {
17003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17005 }; then
17006 ac_header_preproc=yes
17007 else
17008 $as_echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ac_header_preproc=no
17014 rm -f conftest.err conftest.$ac_ext
17015 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17016 $as_echo "$ac_header_preproc" >&6; }
17018 # So? What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17020 yes:no: )
17021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17022 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17024 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17025 ac_header_preproc=yes
17027 no:yes:* )
17028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17029 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17031 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17033 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17035 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17037 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17039 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17042 esac
17043 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17044 $as_echo_n "checking for $ac_header... " >&6; }
17045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17046 $as_echo_n "(cached) " >&6
17047 else
17048 eval "$as_ac_Header=\$ac_header_preproc"
17050 ac_res=`eval 'as_val=${'$as_ac_Header'}
17051 $as_echo "$as_val"'`
17052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17053 $as_echo "$ac_res" >&6; }
17056 as_val=`eval 'as_val=${'$as_ac_Header'}
17057 $as_echo "$as_val"'`
17058 if test "x$as_val" = x""yes; then
17059 cat >>confdefs.h <<_ACEOF
17060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17061 _ACEOF
17065 done
17068 case "$host_os" in
17069 *linux*)
17070 { $as_echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
17071 $as_echo_n "checking for broken RedHat 7.2 system header files... " >&6; }
17072 if test "${libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
17073 $as_echo_n "(cached) " >&6
17074 else
17076 cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h. */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17083 #ifdef HAVE_SYS_VFS_H
17084 #include <sys/vfs.h>
17085 #endif
17086 #ifdef HAVE_SYS_CAPABILITY_H
17087 #include <sys/capability.h>
17088 #endif
17091 main ()
17094 int i;
17097 return 0;
17099 _ACEOF
17100 rm -f conftest.$ac_objext
17101 if { (ac_try="$ac_compile"
17102 case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17105 esac
17106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17107 $as_echo "$ac_try_echo") >&5
17108 (eval "$ac_compile") 2>conftest.er1
17109 ac_status=$?
17110 grep -v '^ *+' conftest.er1 >conftest.err
17111 rm -f conftest.er1
17112 cat conftest.err >&5
17113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } && {
17115 test -z "$ac_c_werror_flag" ||
17116 test ! -s conftest.err
17117 } && test -s conftest.$ac_objext; then
17118 libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
17119 else
17120 $as_echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17123 libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
17127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
17130 $as_echo "$libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6; }
17131 if test x"$libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
17133 cat >>confdefs.h <<\_ACEOF
17134 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
17135 _ACEOF
17139 { $as_echo "$as_me:$LINENO: checking for broken RHEL5 sys/capability.h" >&5
17140 $as_echo_n "checking for broken RHEL5 sys/capability.h... " >&6; }
17141 if test "${libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER+set}" = set; then
17142 $as_echo_n "(cached) " >&6
17143 else
17145 cat >conftest.$ac_ext <<_ACEOF
17146 /* confdefs.h. */
17147 _ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17152 #ifdef HAVE_SYS_CAPABILITY_H
17153 #include <sys/capability.h>
17154 #endif
17155 #include <linux/types.h>
17158 main ()
17161 __s8 i;
17164 return 0;
17166 _ACEOF
17167 rm -f conftest.$ac_objext
17168 if { (ac_try="$ac_compile"
17169 case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172 esac
17173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17174 $as_echo "$ac_try_echo") >&5
17175 (eval "$ac_compile") 2>conftest.er1
17176 ac_status=$?
17177 grep -v '^ *+' conftest.er1 >conftest.err
17178 rm -f conftest.er1
17179 cat conftest.err >&5
17180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } && {
17182 test -z "$ac_c_werror_flag" ||
17183 test ! -s conftest.err
17184 } && test -s conftest.$ac_objext; then
17185 libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER=no
17186 else
17187 $as_echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17190 libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER=yes
17194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" >&5
17197 $as_echo "$libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" >&6; }
17198 if test x"$libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" = x"yes"; then
17200 cat >>confdefs.h <<\_ACEOF
17201 #define BROKEN_RHEL5_SYS_CAP_HEADER 1
17202 _ACEOF
17206 esac
17208 # passwd
17216 for ac_header in grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h
17218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17221 $as_echo_n "checking for $ac_header... " >&6; }
17222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17223 $as_echo_n "(cached) " >&6
17225 ac_res=`eval 'as_val=${'$as_ac_Header'}
17226 $as_echo "$as_val"'`
17227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17228 $as_echo "$ac_res" >&6; }
17229 else
17230 # Is the header compilable?
17231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17232 $as_echo_n "checking $ac_header usability... " >&6; }
17233 cat >conftest.$ac_ext <<_ACEOF
17234 /* confdefs.h. */
17235 _ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17239 $ac_includes_default
17240 #include <$ac_header>
17241 _ACEOF
17242 rm -f conftest.$ac_objext
17243 if { (ac_try="$ac_compile"
17244 case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17247 esac
17248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17249 $as_echo "$ac_try_echo") >&5
17250 (eval "$ac_compile") 2>conftest.er1
17251 ac_status=$?
17252 grep -v '^ *+' conftest.er1 >conftest.err
17253 rm -f conftest.er1
17254 cat conftest.err >&5
17255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } && {
17257 test -z "$ac_c_werror_flag" ||
17258 test ! -s conftest.err
17259 } && test -s conftest.$ac_objext; then
17260 ac_header_compiler=yes
17261 else
17262 $as_echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17265 ac_header_compiler=no
17268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17270 $as_echo "$ac_header_compiler" >&6; }
17272 # Is the header present?
17273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17274 $as_echo_n "checking $ac_header presence... " >&6; }
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 #include <$ac_header>
17282 _ACEOF
17283 if { (ac_try="$ac_cpp conftest.$ac_ext"
17284 case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17287 esac
17288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17289 $as_echo "$ac_try_echo") >&5
17290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17291 ac_status=$?
17292 grep -v '^ *+' conftest.er1 >conftest.err
17293 rm -f conftest.er1
17294 cat conftest.err >&5
17295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } >/dev/null && {
17297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17298 test ! -s conftest.err
17299 }; then
17300 ac_header_preproc=yes
17301 else
17302 $as_echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17305 ac_header_preproc=no
17308 rm -f conftest.err conftest.$ac_ext
17309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17310 $as_echo "$ac_header_preproc" >&6; }
17312 # So? What about this header?
17313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17314 yes:no: )
17315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17319 ac_header_preproc=yes
17321 no:yes:* )
17322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17336 esac
17337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17338 $as_echo_n "checking for $ac_header... " >&6; }
17339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17340 $as_echo_n "(cached) " >&6
17341 else
17342 eval "$as_ac_Header=\$ac_header_preproc"
17344 ac_res=`eval 'as_val=${'$as_ac_Header'}
17345 $as_echo "$as_val"'`
17346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17347 $as_echo "$ac_res" >&6; }
17350 as_val=`eval 'as_val=${'$as_ac_Header'}
17351 $as_echo "$as_val"'`
17352 if test "x$as_val" = x""yes; then
17353 cat >>confdefs.h <<_ACEOF
17354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17355 _ACEOF
17359 done
17364 for ac_func in getpwnam_r getpwuid_r getpwent_r
17366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17367 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17368 $as_echo_n "checking for $ac_func... " >&6; }
17369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17370 $as_echo_n "(cached) " >&6
17371 else
17372 cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h. */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17380 #define $ac_func innocuous_$ac_func
17382 /* System header to define __stub macros and hopefully few prototypes,
17383 which can conflict with char $ac_func (); below.
17384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17385 <limits.h> exists even on freestanding compilers. */
17387 #ifdef __STDC__
17388 # include <limits.h>
17389 #else
17390 # include <assert.h>
17391 #endif
17393 #undef $ac_func
17395 /* Override any GCC internal prototype to avoid an error.
17396 Use char because int might match the return type of a GCC
17397 builtin and then its argument prototype would still apply. */
17398 #ifdef __cplusplus
17399 extern "C"
17400 #endif
17401 char $ac_func ();
17402 /* The GNU C library defines this for functions which it implements
17403 to always fail with ENOSYS. Some functions are actually named
17404 something starting with __ and the normal name is an alias. */
17405 #if defined __stub_$ac_func || defined __stub___$ac_func
17406 choke me
17407 #endif
17410 main ()
17412 return $ac_func ();
17414 return 0;
17416 _ACEOF
17417 rm -f conftest.$ac_objext conftest$ac_exeext
17418 if { (ac_try="$ac_link"
17419 case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17422 esac
17423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17424 $as_echo "$ac_try_echo") >&5
17425 (eval "$ac_link") 2>conftest.er1
17426 ac_status=$?
17427 grep -v '^ *+' conftest.er1 >conftest.err
17428 rm -f conftest.er1
17429 cat conftest.err >&5
17430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } && {
17432 test -z "$ac_c_werror_flag" ||
17433 test ! -s conftest.err
17434 } && test -s conftest$ac_exeext && {
17435 test "$cross_compiling" = yes ||
17436 $as_test_x conftest$ac_exeext
17437 }; then
17438 eval "$as_ac_var=yes"
17439 else
17440 $as_echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 eval "$as_ac_var=no"
17446 rm -rf conftest.dSYM
17447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17448 conftest$ac_exeext conftest.$ac_ext
17450 ac_res=`eval 'as_val=${'$as_ac_var'}
17451 $as_echo "$as_val"'`
17452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17453 $as_echo "$ac_res" >&6; }
17454 as_val=`eval 'as_val=${'$as_ac_var'}
17455 $as_echo "$as_val"'`
17456 if test "x$as_val" = x""yes; then
17457 cat >>confdefs.h <<_ACEOF
17458 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17459 _ACEOF
17462 done
17465 { $as_echo "$as_me:$LINENO: checking for getpwent_r declaration" >&5
17466 $as_echo_n "checking for getpwent_r declaration... " >&6; }
17467 if test "${ac_cv_have_getpwent_r_decl+set}" = set; then
17468 $as_echo_n "(cached) " >&6
17469 else
17471 cat >conftest.$ac_ext <<_ACEOF
17472 /* confdefs.h. */
17473 _ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17478 #include <unistd.h>
17479 #include <pwd.h>
17482 main ()
17484 int i = (int)getpwent_r
17486 return 0;
17488 _ACEOF
17489 rm -f conftest.$ac_objext
17490 if { (ac_try="$ac_compile"
17491 case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17494 esac
17495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17496 $as_echo "$ac_try_echo") >&5
17497 (eval "$ac_compile") 2>conftest.er1
17498 ac_status=$?
17499 grep -v '^ *+' conftest.er1 >conftest.err
17500 rm -f conftest.er1
17501 cat conftest.err >&5
17502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } && {
17504 test -z "$ac_c_werror_flag" ||
17505 test ! -s conftest.err
17506 } && test -s conftest.$ac_objext; then
17507 ac_cv_have_getpwent_r_decl=yes
17508 else
17509 $as_echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17512 ac_cv_have_getpwent_r_decl=no
17515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17517 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_getpwent_r_decl" >&5
17518 $as_echo "$ac_cv_have_getpwent_r_decl" >&6; }
17519 if test x"$ac_cv_have_getpwent_r_decl" = x"yes"; then
17521 cat >>confdefs.h <<\_ACEOF
17522 #define HAVE_GETPWENT_R_DECL 1
17523 _ACEOF
17527 { $as_echo "$as_me:$LINENO: checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)" >&5
17528 $as_echo_n "checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)... " >&6; }
17529 if test "${ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_+set}" = set; then
17530 $as_echo_n "(cached) " >&6
17531 else
17532 cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h. */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17539 $ac_includes_default
17541 #include <unistd.h>
17542 #include <pwd.h>
17544 struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)
17547 #ifndef HAVE_GETPWENT_R_DECL
17548 #error missing getpwent_r prototype
17549 #endif
17550 return NULL;
17554 _ACEOF
17555 rm -f conftest.$ac_objext
17556 if { (ac_try="$ac_compile"
17557 case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17560 esac
17561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17562 $as_echo "$ac_try_echo") >&5
17563 (eval "$ac_compile") 2>conftest.er1
17564 ac_status=$?
17565 grep -v '^ *+' conftest.er1 >conftest.err
17566 rm -f conftest.er1
17567 cat conftest.err >&5
17568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && {
17570 test -z "$ac_c_werror_flag" ||
17571 test ! -s conftest.err
17572 } && test -s conftest.$ac_objext; then
17574 ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_=yes
17576 else
17577 $as_echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17581 ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_=no
17585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17588 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_" >&5
17589 $as_echo "$ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_" >&6; }
17590 if test $ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_ = yes; then
17593 cat >>confdefs.h <<\_ACEOF
17594 #define SOLARIS_GETPWENT_R 1
17595 _ACEOF
17601 { $as_echo "$as_me:$LINENO: checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)" >&5
17602 $as_echo_n "checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)... " >&6; }
17603 if test "${ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_+set}" = set; then
17604 $as_echo_n "(cached) " >&6
17605 else
17606 cat >conftest.$ac_ext <<_ACEOF
17607 /* confdefs.h. */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17613 $ac_includes_default
17615 #include <unistd.h>
17616 #include <pwd.h>
17618 struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)
17621 #ifndef HAVE_GETPWENT_R_DECL
17622 #error missing getpwent_r prototype
17623 #endif
17624 return NULL;
17628 _ACEOF
17629 rm -f conftest.$ac_objext
17630 if { (ac_try="$ac_compile"
17631 case "(($ac_try" in
17632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17634 esac
17635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17636 $as_echo "$ac_try_echo") >&5
17637 (eval "$ac_compile") 2>conftest.er1
17638 ac_status=$?
17639 grep -v '^ *+' conftest.er1 >conftest.err
17640 rm -f conftest.er1
17641 cat conftest.err >&5
17642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } && {
17644 test -z "$ac_c_werror_flag" ||
17645 test ! -s conftest.err
17646 } && test -s conftest.$ac_objext; then
17648 ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_=yes
17650 else
17651 $as_echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17655 ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_=no
17659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_" >&5
17663 $as_echo "$ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_" >&6; }
17664 if test $ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_ = yes; then
17667 cat >>confdefs.h <<\_ACEOF
17668 #define SOLARIS_GETPWENT_R 1
17669 _ACEOF
17678 for ac_func in getgrnam_r getgrgid_r getgrent_r
17680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17681 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17682 $as_echo_n "checking for $ac_func... " >&6; }
17683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17684 $as_echo_n "(cached) " >&6
17685 else
17686 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h. */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17694 #define $ac_func innocuous_$ac_func
17696 /* System header to define __stub macros and hopefully few prototypes,
17697 which can conflict with char $ac_func (); below.
17698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17699 <limits.h> exists even on freestanding compilers. */
17701 #ifdef __STDC__
17702 # include <limits.h>
17703 #else
17704 # include <assert.h>
17705 #endif
17707 #undef $ac_func
17709 /* Override any GCC internal prototype to avoid an error.
17710 Use char because int might match the return type of a GCC
17711 builtin and then its argument prototype would still apply. */
17712 #ifdef __cplusplus
17713 extern "C"
17714 #endif
17715 char $ac_func ();
17716 /* The GNU C library defines this for functions which it implements
17717 to always fail with ENOSYS. Some functions are actually named
17718 something starting with __ and the normal name is an alias. */
17719 #if defined __stub_$ac_func || defined __stub___$ac_func
17720 choke me
17721 #endif
17724 main ()
17726 return $ac_func ();
17728 return 0;
17730 _ACEOF
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736 esac
17737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17738 $as_echo "$ac_try_echo") >&5
17739 (eval "$ac_link") 2>conftest.er1
17740 ac_status=$?
17741 grep -v '^ *+' conftest.er1 >conftest.err
17742 rm -f conftest.er1
17743 cat conftest.err >&5
17744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } && {
17746 test -z "$ac_c_werror_flag" ||
17747 test ! -s conftest.err
17748 } && test -s conftest$ac_exeext && {
17749 test "$cross_compiling" = yes ||
17750 $as_test_x conftest$ac_exeext
17751 }; then
17752 eval "$as_ac_var=yes"
17753 else
17754 $as_echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 eval "$as_ac_var=no"
17760 rm -rf conftest.dSYM
17761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17762 conftest$ac_exeext conftest.$ac_ext
17764 ac_res=`eval 'as_val=${'$as_ac_var'}
17765 $as_echo "$as_val"'`
17766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17767 $as_echo "$ac_res" >&6; }
17768 as_val=`eval 'as_val=${'$as_ac_var'}
17769 $as_echo "$as_val"'`
17770 if test "x$as_val" = x""yes; then
17771 cat >>confdefs.h <<_ACEOF
17772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17773 _ACEOF
17776 done
17779 { $as_echo "$as_me:$LINENO: checking for getgrent_r declaration" >&5
17780 $as_echo_n "checking for getgrent_r declaration... " >&6; }
17781 if test "${ac_cv_have_getgrent_r_decl+set}" = set; then
17782 $as_echo_n "(cached) " >&6
17783 else
17785 cat >conftest.$ac_ext <<_ACEOF
17786 /* confdefs.h. */
17787 _ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17792 #include <unistd.h>
17793 #include <grp.h>
17796 main ()
17798 int i = (int)getgrent_r
17800 return 0;
17802 _ACEOF
17803 rm -f conftest.$ac_objext
17804 if { (ac_try="$ac_compile"
17805 case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17808 esac
17809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17810 $as_echo "$ac_try_echo") >&5
17811 (eval "$ac_compile") 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } && {
17818 test -z "$ac_c_werror_flag" ||
17819 test ! -s conftest.err
17820 } && test -s conftest.$ac_objext; then
17821 ac_cv_have_getgrent_r_decl=yes
17822 else
17823 $as_echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17826 ac_cv_have_getgrent_r_decl=no
17829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17831 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_getgrent_r_decl" >&5
17832 $as_echo "$ac_cv_have_getgrent_r_decl" >&6; }
17833 if test x"$ac_cv_have_getgrent_r_decl" = x"yes"; then
17835 cat >>confdefs.h <<\_ACEOF
17836 #define HAVE_GETGRENT_R_DECL 1
17837 _ACEOF
17841 { $as_echo "$as_me:$LINENO: checking for prototype struct group *getgrent_r(struct group *src, char *buf, int buflen)" >&5
17842 $as_echo_n "checking for prototype struct group *getgrent_r(struct group *src, char *buf, int buflen)... " >&6; }
17843 if test "${ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_+set}" = set; then
17844 $as_echo_n "(cached) " >&6
17845 else
17846 cat >conftest.$ac_ext <<_ACEOF
17847 /* confdefs.h. */
17848 _ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17853 $ac_includes_default
17855 #include <unistd.h>
17856 #include <grp.h>
17858 struct group *getgrent_r(struct group *src, char *buf, int buflen)
17861 #ifndef HAVE_GETGRENT_R_DECL
17862 #error missing getgrent_r prototype
17863 #endif
17864 return NULL;
17868 _ACEOF
17869 rm -f conftest.$ac_objext
17870 if { (ac_try="$ac_compile"
17871 case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17874 esac
17875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17876 $as_echo "$ac_try_echo") >&5
17877 (eval "$ac_compile") 2>conftest.er1
17878 ac_status=$?
17879 grep -v '^ *+' conftest.er1 >conftest.err
17880 rm -f conftest.er1
17881 cat conftest.err >&5
17882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } && {
17884 test -z "$ac_c_werror_flag" ||
17885 test ! -s conftest.err
17886 } && test -s conftest.$ac_objext; then
17888 ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_=yes
17890 else
17891 $as_echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17895 ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_=no
17899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17902 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_" >&5
17903 $as_echo "$ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_" >&6; }
17904 if test $ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_ = yes; then
17907 cat >>confdefs.h <<\_ACEOF
17908 #define SOLARIS_GETGRENT_R 1
17909 _ACEOF
17916 { $as_echo "$as_me:$LINENO: checking for prototype struct group *getgrent_r(struct group *src, char *buf, size_t buflen)" >&5
17917 $as_echo_n "checking for prototype struct group *getgrent_r(struct group *src, char *buf, size_t buflen)... " >&6; }
17918 if test "${ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_+set}" = set; then
17919 $as_echo_n "(cached) " >&6
17920 else
17921 cat >conftest.$ac_ext <<_ACEOF
17922 /* confdefs.h. */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17928 $ac_includes_default
17930 #include <unistd.h>
17931 #include <grp.h>
17933 struct group *getgrent_r(struct group *src, char *buf, size_t buflen)
17936 #ifndef HAVE_GETGRENT_R_DECL
17937 #error missing getgrent_r prototype
17938 #endif
17939 return NULL;
17943 _ACEOF
17944 rm -f conftest.$ac_objext
17945 if { (ac_try="$ac_compile"
17946 case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17949 esac
17950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17951 $as_echo "$ac_try_echo") >&5
17952 (eval "$ac_compile") 2>conftest.er1
17953 ac_status=$?
17954 grep -v '^ *+' conftest.er1 >conftest.err
17955 rm -f conftest.er1
17956 cat conftest.err >&5
17957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } && {
17959 test -z "$ac_c_werror_flag" ||
17960 test ! -s conftest.err
17961 } && test -s conftest.$ac_objext; then
17963 ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_=yes
17965 else
17966 $as_echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17970 ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_=no
17974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17977 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_" >&5
17978 $as_echo "$ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_" >&6; }
17979 if test $ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_ = yes; then
17982 cat >>confdefs.h <<\_ACEOF
17983 #define SOLARIS_GETGRENT_R 1
17984 _ACEOF
17991 for ac_func in getgrouplist
17993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17994 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17995 $as_echo_n "checking for $ac_func... " >&6; }
17996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17997 $as_echo_n "(cached) " >&6
17998 else
17999 cat >conftest.$ac_ext <<_ACEOF
18000 /* confdefs.h. */
18001 _ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18007 #define $ac_func innocuous_$ac_func
18009 /* System header to define __stub macros and hopefully few prototypes,
18010 which can conflict with char $ac_func (); below.
18011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18012 <limits.h> exists even on freestanding compilers. */
18014 #ifdef __STDC__
18015 # include <limits.h>
18016 #else
18017 # include <assert.h>
18018 #endif
18020 #undef $ac_func
18022 /* Override any GCC internal prototype to avoid an error.
18023 Use char because int might match the return type of a GCC
18024 builtin and then its argument prototype would still apply. */
18025 #ifdef __cplusplus
18026 extern "C"
18027 #endif
18028 char $ac_func ();
18029 /* The GNU C library defines this for functions which it implements
18030 to always fail with ENOSYS. Some functions are actually named
18031 something starting with __ and the normal name is an alias. */
18032 #if defined __stub_$ac_func || defined __stub___$ac_func
18033 choke me
18034 #endif
18037 main ()
18039 return $ac_func ();
18041 return 0;
18043 _ACEOF
18044 rm -f conftest.$ac_objext conftest$ac_exeext
18045 if { (ac_try="$ac_link"
18046 case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18049 esac
18050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18051 $as_echo "$ac_try_echo") >&5
18052 (eval "$ac_link") 2>conftest.er1
18053 ac_status=$?
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
18057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } && {
18059 test -z "$ac_c_werror_flag" ||
18060 test ! -s conftest.err
18061 } && test -s conftest$ac_exeext && {
18062 test "$cross_compiling" = yes ||
18063 $as_test_x conftest$ac_exeext
18064 }; then
18065 eval "$as_ac_var=yes"
18066 else
18067 $as_echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 eval "$as_ac_var=no"
18073 rm -rf conftest.dSYM
18074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18075 conftest$ac_exeext conftest.$ac_ext
18077 ac_res=`eval 'as_val=${'$as_ac_var'}
18078 $as_echo "$as_val"'`
18079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18080 $as_echo "$ac_res" >&6; }
18081 as_val=`eval 'as_val=${'$as_ac_var'}
18082 $as_echo "$as_val"'`
18083 if test "x$as_val" = x""yes; then
18084 cat >>confdefs.h <<_ACEOF
18085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18086 _ACEOF
18089 done
18092 # locale
18096 for ac_header in ctype.h locale.h langinfo.h
18098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18100 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18101 $as_echo_n "checking for $ac_header... " >&6; }
18102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18103 $as_echo_n "(cached) " >&6
18105 ac_res=`eval 'as_val=${'$as_ac_Header'}
18106 $as_echo "$as_val"'`
18107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18108 $as_echo "$ac_res" >&6; }
18109 else
18110 # Is the header compilable?
18111 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18112 $as_echo_n "checking $ac_header usability... " >&6; }
18113 cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h. */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119 $ac_includes_default
18120 #include <$ac_header>
18121 _ACEOF
18122 rm -f conftest.$ac_objext
18123 if { (ac_try="$ac_compile"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127 esac
18128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18129 $as_echo "$ac_try_echo") >&5
18130 (eval "$ac_compile") 2>conftest.er1
18131 ac_status=$?
18132 grep -v '^ *+' conftest.er1 >conftest.err
18133 rm -f conftest.er1
18134 cat conftest.err >&5
18135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest.$ac_objext; then
18140 ac_header_compiler=yes
18141 else
18142 $as_echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18145 ac_header_compiler=no
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18150 $as_echo "$ac_header_compiler" >&6; }
18152 # Is the header present?
18153 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18154 $as_echo_n "checking $ac_header presence... " >&6; }
18155 cat >conftest.$ac_ext <<_ACEOF
18156 /* confdefs.h. */
18157 _ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18161 #include <$ac_header>
18162 _ACEOF
18163 if { (ac_try="$ac_cpp conftest.$ac_ext"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167 esac
18168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18169 $as_echo "$ac_try_echo") >&5
18170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18171 ac_status=$?
18172 grep -v '^ *+' conftest.er1 >conftest.err
18173 rm -f conftest.er1
18174 cat conftest.err >&5
18175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } >/dev/null && {
18177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18178 test ! -s conftest.err
18179 }; then
18180 ac_header_preproc=yes
18181 else
18182 $as_echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 ac_header_preproc=no
18188 rm -f conftest.err conftest.$ac_ext
18189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18190 $as_echo "$ac_header_preproc" >&6; }
18192 # So? What about this header?
18193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18194 yes:no: )
18195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18196 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18199 ac_header_preproc=yes
18201 no:yes:* )
18202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18203 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18205 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18207 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18209 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18213 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18216 esac
18217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18218 $as_echo_n "checking for $ac_header... " >&6; }
18219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18220 $as_echo_n "(cached) " >&6
18221 else
18222 eval "$as_ac_Header=\$ac_header_preproc"
18224 ac_res=`eval 'as_val=${'$as_ac_Header'}
18225 $as_echo "$as_val"'`
18226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18227 $as_echo "$ac_res" >&6; }
18230 as_val=`eval 'as_val=${'$as_ac_Header'}
18231 $as_echo "$as_val"'`
18232 if test "x$as_val" = x""yes; then
18233 cat >>confdefs.h <<_ACEOF
18234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18235 _ACEOF
18239 done
18242 # glob
18244 for ac_header in fnmatch.h
18246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18248 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18249 $as_echo_n "checking for $ac_header... " >&6; }
18250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18251 $as_echo_n "(cached) " >&6
18253 ac_res=`eval 'as_val=${'$as_ac_Header'}
18254 $as_echo "$as_val"'`
18255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18256 $as_echo "$ac_res" >&6; }
18257 else
18258 # Is the header compilable?
18259 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18260 $as_echo_n "checking $ac_header usability... " >&6; }
18261 cat >conftest.$ac_ext <<_ACEOF
18262 /* confdefs.h. */
18263 _ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18267 $ac_includes_default
18268 #include <$ac_header>
18269 _ACEOF
18270 rm -f conftest.$ac_objext
18271 if { (ac_try="$ac_compile"
18272 case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18275 esac
18276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18277 $as_echo "$ac_try_echo") >&5
18278 (eval "$ac_compile") 2>conftest.er1
18279 ac_status=$?
18280 grep -v '^ *+' conftest.er1 >conftest.err
18281 rm -f conftest.er1
18282 cat conftest.err >&5
18283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } && {
18285 test -z "$ac_c_werror_flag" ||
18286 test ! -s conftest.err
18287 } && test -s conftest.$ac_objext; then
18288 ac_header_compiler=yes
18289 else
18290 $as_echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18293 ac_header_compiler=no
18296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18297 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18298 $as_echo "$ac_header_compiler" >&6; }
18300 # Is the header present?
18301 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18302 $as_echo_n "checking $ac_header presence... " >&6; }
18303 cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h. */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18309 #include <$ac_header>
18310 _ACEOF
18311 if { (ac_try="$ac_cpp conftest.$ac_ext"
18312 case "(($ac_try" in
18313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18315 esac
18316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18317 $as_echo "$ac_try_echo") >&5
18318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18319 ac_status=$?
18320 grep -v '^ *+' conftest.er1 >conftest.err
18321 rm -f conftest.er1
18322 cat conftest.err >&5
18323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } >/dev/null && {
18325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 }; then
18328 ac_header_preproc=yes
18329 else
18330 $as_echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18333 ac_header_preproc=no
18336 rm -f conftest.err conftest.$ac_ext
18337 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18338 $as_echo "$ac_header_preproc" >&6; }
18340 # So? What about this header?
18341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18342 yes:no: )
18343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18344 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18346 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18347 ac_header_preproc=yes
18349 no:yes:* )
18350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18351 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18353 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18355 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18357 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18361 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18364 esac
18365 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18366 $as_echo_n "checking for $ac_header... " >&6; }
18367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18368 $as_echo_n "(cached) " >&6
18369 else
18370 eval "$as_ac_Header=\$ac_header_preproc"
18372 ac_res=`eval 'as_val=${'$as_ac_Header'}
18373 $as_echo "$as_val"'`
18374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18375 $as_echo "$ac_res" >&6; }
18378 as_val=`eval 'as_val=${'$as_ac_Header'}
18379 $as_echo "$as_val"'`
18380 if test "x$as_val" = x""yes; then
18381 cat >>confdefs.h <<_ACEOF
18382 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18383 _ACEOF
18387 done
18390 # shmem
18394 for ac_header in sys/ipc.h sys/mman.h sys/shm.h
18396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18399 $as_echo_n "checking for $ac_header... " >&6; }
18400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18401 $as_echo_n "(cached) " >&6
18403 ac_res=`eval 'as_val=${'$as_ac_Header'}
18404 $as_echo "$as_val"'`
18405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18406 $as_echo "$ac_res" >&6; }
18407 else
18408 # Is the header compilable?
18409 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18410 $as_echo_n "checking $ac_header usability... " >&6; }
18411 cat >conftest.$ac_ext <<_ACEOF
18412 /* confdefs.h. */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18417 $ac_includes_default
18418 #include <$ac_header>
18419 _ACEOF
18420 rm -f conftest.$ac_objext
18421 if { (ac_try="$ac_compile"
18422 case "(($ac_try" in
18423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424 *) ac_try_echo=$ac_try;;
18425 esac
18426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18427 $as_echo "$ac_try_echo") >&5
18428 (eval "$ac_compile") 2>conftest.er1
18429 ac_status=$?
18430 grep -v '^ *+' conftest.er1 >conftest.err
18431 rm -f conftest.er1
18432 cat conftest.err >&5
18433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } && {
18435 test -z "$ac_c_werror_flag" ||
18436 test ! -s conftest.err
18437 } && test -s conftest.$ac_objext; then
18438 ac_header_compiler=yes
18439 else
18440 $as_echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.$ac_ext >&5
18443 ac_header_compiler=no
18446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18448 $as_echo "$ac_header_compiler" >&6; }
18450 # Is the header present?
18451 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18452 $as_echo_n "checking $ac_header presence... " >&6; }
18453 cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h. */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18459 #include <$ac_header>
18460 _ACEOF
18461 if { (ac_try="$ac_cpp conftest.$ac_ext"
18462 case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18465 esac
18466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18467 $as_echo "$ac_try_echo") >&5
18468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18469 ac_status=$?
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
18473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } >/dev/null && {
18475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18476 test ! -s conftest.err
18477 }; then
18478 ac_header_preproc=yes
18479 else
18480 $as_echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 ac_header_preproc=no
18486 rm -f conftest.err conftest.$ac_ext
18487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18488 $as_echo "$ac_header_preproc" >&6; }
18490 # So? What about this header?
18491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18492 yes:no: )
18493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18494 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18497 ac_header_preproc=yes
18499 no:yes:* )
18500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18501 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18503 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18505 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18507 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18511 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18514 esac
18515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18516 $as_echo_n "checking for $ac_header... " >&6; }
18517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18518 $as_echo_n "(cached) " >&6
18519 else
18520 eval "$as_ac_Header=\$ac_header_preproc"
18522 ac_res=`eval 'as_val=${'$as_ac_Header'}
18523 $as_echo "$as_val"'`
18524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18525 $as_echo "$ac_res" >&6; }
18528 as_val=`eval 'as_val=${'$as_ac_Header'}
18529 $as_echo "$as_val"'`
18530 if test "x$as_val" = x""yes; then
18531 cat >>confdefs.h <<_ACEOF
18532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18533 _ACEOF
18537 done
18540 # terminal
18544 for ac_header in termios.h termio.h sys/termio.h
18546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18548 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18549 $as_echo_n "checking for $ac_header... " >&6; }
18550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18551 $as_echo_n "(cached) " >&6
18553 ac_res=`eval 'as_val=${'$as_ac_Header'}
18554 $as_echo "$as_val"'`
18555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18556 $as_echo "$ac_res" >&6; }
18557 else
18558 # Is the header compilable?
18559 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18560 $as_echo_n "checking $ac_header usability... " >&6; }
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h. */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 $ac_includes_default
18568 #include <$ac_header>
18569 _ACEOF
18570 rm -f conftest.$ac_objext
18571 if { (ac_try="$ac_compile"
18572 case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18575 esac
18576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18577 $as_echo "$ac_try_echo") >&5
18578 (eval "$ac_compile") 2>conftest.er1
18579 ac_status=$?
18580 grep -v '^ *+' conftest.er1 >conftest.err
18581 rm -f conftest.er1
18582 cat conftest.err >&5
18583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } && {
18585 test -z "$ac_c_werror_flag" ||
18586 test ! -s conftest.err
18587 } && test -s conftest.$ac_objext; then
18588 ac_header_compiler=yes
18589 else
18590 $as_echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18593 ac_header_compiler=no
18596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18598 $as_echo "$ac_header_compiler" >&6; }
18600 # Is the header present?
18601 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18602 $as_echo_n "checking $ac_header presence... " >&6; }
18603 cat >conftest.$ac_ext <<_ACEOF
18604 /* confdefs.h. */
18605 _ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18609 #include <$ac_header>
18610 _ACEOF
18611 if { (ac_try="$ac_cpp conftest.$ac_ext"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615 esac
18616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18617 $as_echo "$ac_try_echo") >&5
18618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18619 ac_status=$?
18620 grep -v '^ *+' conftest.er1 >conftest.err
18621 rm -f conftest.er1
18622 cat conftest.err >&5
18623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } >/dev/null && {
18625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18626 test ! -s conftest.err
18627 }; then
18628 ac_header_preproc=yes
18629 else
18630 $as_echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18633 ac_header_preproc=no
18636 rm -f conftest.err conftest.$ac_ext
18637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18638 $as_echo "$ac_header_preproc" >&6; }
18640 # So? What about this header?
18641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18642 yes:no: )
18643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18644 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18646 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18647 ac_header_preproc=yes
18649 no:yes:* )
18650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18651 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18653 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18655 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18657 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18659 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18661 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18664 esac
18665 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18666 $as_echo_n "checking for $ac_header... " >&6; }
18667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18668 $as_echo_n "(cached) " >&6
18669 else
18670 eval "$as_ac_Header=\$ac_header_preproc"
18672 ac_res=`eval 'as_val=${'$as_ac_Header'}
18673 $as_echo "$as_val"'`
18674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18675 $as_echo "$ac_res" >&6; }
18678 as_val=`eval 'as_val=${'$as_ac_Header'}
18679 $as_echo "$as_val"'`
18680 if test "x$as_val" = x""yes; then
18681 cat >>confdefs.h <<_ACEOF
18682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18683 _ACEOF
18687 done
18691 save_LIBS="$LIBS"
18692 LIBS=""
18694 libreplace_cv_dlfcn=no
18695 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18696 $as_echo_n "checking for library containing dlopen... " >&6; }
18697 if test "${ac_cv_search_dlopen+set}" = set; then
18698 $as_echo_n "(cached) " >&6
18699 else
18700 ac_func_search_save_LIBS=$LIBS
18701 cat >conftest.$ac_ext <<_ACEOF
18702 /* confdefs.h. */
18703 _ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h. */
18708 /* Override any GCC internal prototype to avoid an error.
18709 Use char because int might match the return type of a GCC
18710 builtin and then its argument prototype would still apply. */
18711 #ifdef __cplusplus
18712 extern "C"
18713 #endif
18714 char dlopen ();
18716 main ()
18718 return dlopen ();
18720 return 0;
18722 _ACEOF
18723 for ac_lib in '' dl; do
18724 if test -z "$ac_lib"; then
18725 ac_res="none required"
18726 else
18727 ac_res=-l$ac_lib
18728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18735 esac
18736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18737 $as_echo "$ac_try_echo") >&5
18738 (eval "$ac_link") 2>conftest.er1
18739 ac_status=$?
18740 grep -v '^ *+' conftest.er1 >conftest.err
18741 rm -f conftest.er1
18742 cat conftest.err >&5
18743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } && {
18745 test -z "$ac_c_werror_flag" ||
18746 test ! -s conftest.err
18747 } && test -s conftest$ac_exeext && {
18748 test "$cross_compiling" = yes ||
18749 $as_test_x conftest$ac_exeext
18750 }; then
18751 ac_cv_search_dlopen=$ac_res
18752 else
18753 $as_echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18759 rm -rf conftest.dSYM
18760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18761 conftest$ac_exeext
18762 if test "${ac_cv_search_dlopen+set}" = set; then
18763 break
18765 done
18766 if test "${ac_cv_search_dlopen+set}" = set; then
18768 else
18769 ac_cv_search_dlopen=no
18771 rm conftest.$ac_ext
18772 LIBS=$ac_func_search_save_LIBS
18774 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18775 $as_echo "$ac_cv_search_dlopen" >&6; }
18776 ac_res=$ac_cv_search_dlopen
18777 if test "$ac_res" != no; then
18778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18784 for ac_header in dlfcn.h
18786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18789 $as_echo_n "checking for $ac_header... " >&6; }
18790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18791 $as_echo_n "(cached) " >&6
18793 ac_res=`eval 'as_val=${'$as_ac_Header'}
18794 $as_echo "$as_val"'`
18795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18796 $as_echo "$ac_res" >&6; }
18797 else
18798 # Is the header compilable?
18799 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18800 $as_echo_n "checking $ac_header usability... " >&6; }
18801 cat >conftest.$ac_ext <<_ACEOF
18802 /* confdefs.h. */
18803 _ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 $ac_includes_default
18808 #include <$ac_header>
18809 _ACEOF
18810 rm -f conftest.$ac_objext
18811 if { (ac_try="$ac_compile"
18812 case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18815 esac
18816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18817 $as_echo "$ac_try_echo") >&5
18818 (eval "$ac_compile") 2>conftest.er1
18819 ac_status=$?
18820 grep -v '^ *+' conftest.er1 >conftest.err
18821 rm -f conftest.er1
18822 cat conftest.err >&5
18823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } && {
18825 test -z "$ac_c_werror_flag" ||
18826 test ! -s conftest.err
18827 } && test -s conftest.$ac_objext; then
18828 ac_header_compiler=yes
18829 else
18830 $as_echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18833 ac_header_compiler=no
18836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18837 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18838 $as_echo "$ac_header_compiler" >&6; }
18840 # Is the header present?
18841 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18842 $as_echo_n "checking $ac_header presence... " >&6; }
18843 cat >conftest.$ac_ext <<_ACEOF
18844 /* confdefs.h. */
18845 _ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18849 #include <$ac_header>
18850 _ACEOF
18851 if { (ac_try="$ac_cpp conftest.$ac_ext"
18852 case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18855 esac
18856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18857 $as_echo "$ac_try_echo") >&5
18858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } >/dev/null && {
18865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18866 test ! -s conftest.err
18867 }; then
18868 ac_header_preproc=yes
18869 else
18870 $as_echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 ac_header_preproc=no
18876 rm -f conftest.err conftest.$ac_ext
18877 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18878 $as_echo "$ac_header_preproc" >&6; }
18880 # So? What about this header?
18881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18882 yes:no: )
18883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18884 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18886 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18887 ac_header_preproc=yes
18889 no:yes:* )
18890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18891 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18893 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18895 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18897 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18899 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18901 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18904 esac
18905 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18906 $as_echo_n "checking for $ac_header... " >&6; }
18907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18908 $as_echo_n "(cached) " >&6
18909 else
18910 eval "$as_ac_Header=\$ac_header_preproc"
18912 ac_res=`eval 'as_val=${'$as_ac_Header'}
18913 $as_echo "$as_val"'`
18914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18915 $as_echo "$ac_res" >&6; }
18918 as_val=`eval 'as_val=${'$as_ac_Header'}
18919 $as_echo "$as_val"'`
18920 if test "x$as_val" = x""yes; then
18921 cat >>confdefs.h <<_ACEOF
18922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18923 _ACEOF
18927 done
18933 for ac_func in dlopen dlsym dlerror dlclose
18935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18936 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18937 $as_echo_n "checking for $ac_func... " >&6; }
18938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18939 $as_echo_n "(cached) " >&6
18940 else
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h. */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18949 #define $ac_func innocuous_$ac_func
18951 /* System header to define __stub macros and hopefully few prototypes,
18952 which can conflict with char $ac_func (); below.
18953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18954 <limits.h> exists even on freestanding compilers. */
18956 #ifdef __STDC__
18957 # include <limits.h>
18958 #else
18959 # include <assert.h>
18960 #endif
18962 #undef $ac_func
18964 /* Override any GCC internal prototype to avoid an error.
18965 Use char because int might match the return type of a GCC
18966 builtin and then its argument prototype would still apply. */
18967 #ifdef __cplusplus
18968 extern "C"
18969 #endif
18970 char $ac_func ();
18971 /* The GNU C library defines this for functions which it implements
18972 to always fail with ENOSYS. Some functions are actually named
18973 something starting with __ and the normal name is an alias. */
18974 #if defined __stub_$ac_func || defined __stub___$ac_func
18975 choke me
18976 #endif
18979 main ()
18981 return $ac_func ();
18983 return 0;
18985 _ACEOF
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if { (ac_try="$ac_link"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991 esac
18992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18993 $as_echo "$ac_try_echo") >&5
18994 (eval "$ac_link") 2>conftest.er1
18995 ac_status=$?
18996 grep -v '^ *+' conftest.er1 >conftest.err
18997 rm -f conftest.er1
18998 cat conftest.err >&5
18999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } && {
19001 test -z "$ac_c_werror_flag" ||
19002 test ! -s conftest.err
19003 } && test -s conftest$ac_exeext && {
19004 test "$cross_compiling" = yes ||
19005 $as_test_x conftest$ac_exeext
19006 }; then
19007 eval "$as_ac_var=yes"
19008 else
19009 $as_echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19012 eval "$as_ac_var=no"
19015 rm -rf conftest.dSYM
19016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19017 conftest$ac_exeext conftest.$ac_ext
19019 ac_res=`eval 'as_val=${'$as_ac_var'}
19020 $as_echo "$as_val"'`
19021 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19022 $as_echo "$ac_res" >&6; }
19023 as_val=`eval 'as_val=${'$as_ac_var'}
19024 $as_echo "$as_val"'`
19025 if test "x$as_val" = x""yes; then
19026 cat >>confdefs.h <<_ACEOF
19027 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19028 _ACEOF
19030 else
19031 libreplace_cv_dlfcn=yes
19033 done
19036 libreplace_cv_shl=no
19037 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
19038 $as_echo_n "checking for library containing shl_load... " >&6; }
19039 if test "${ac_cv_search_shl_load+set}" = set; then
19040 $as_echo_n "(cached) " >&6
19041 else
19042 ac_func_search_save_LIBS=$LIBS
19043 cat >conftest.$ac_ext <<_ACEOF
19044 /* confdefs.h. */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19050 /* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19053 #ifdef __cplusplus
19054 extern "C"
19055 #endif
19056 char shl_load ();
19058 main ()
19060 return shl_load ();
19062 return 0;
19064 _ACEOF
19065 for ac_lib in '' sl; do
19066 if test -z "$ac_lib"; then
19067 ac_res="none required"
19068 else
19069 ac_res=-l$ac_lib
19070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19072 rm -f conftest.$ac_objext conftest$ac_exeext
19073 if { (ac_try="$ac_link"
19074 case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077 esac
19078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19079 $as_echo "$ac_try_echo") >&5
19080 (eval "$ac_link") 2>conftest.er1
19081 ac_status=$?
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
19085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } && {
19087 test -z "$ac_c_werror_flag" ||
19088 test ! -s conftest.err
19089 } && test -s conftest$ac_exeext && {
19090 test "$cross_compiling" = yes ||
19091 $as_test_x conftest$ac_exeext
19092 }; then
19093 ac_cv_search_shl_load=$ac_res
19094 else
19095 $as_echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19101 rm -rf conftest.dSYM
19102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19103 conftest$ac_exeext
19104 if test "${ac_cv_search_shl_load+set}" = set; then
19105 break
19107 done
19108 if test "${ac_cv_search_shl_load+set}" = set; then
19110 else
19111 ac_cv_search_shl_load=no
19113 rm conftest.$ac_ext
19114 LIBS=$ac_func_search_save_LIBS
19116 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
19117 $as_echo "$ac_cv_search_shl_load" >&6; }
19118 ac_res=$ac_cv_search_shl_load
19119 if test "$ac_res" != no; then
19120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19125 for ac_header in dl.h
19127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19130 $as_echo_n "checking for $ac_header... " >&6; }
19131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19132 $as_echo_n "(cached) " >&6
19134 ac_res=`eval 'as_val=${'$as_ac_Header'}
19135 $as_echo "$as_val"'`
19136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19137 $as_echo "$ac_res" >&6; }
19138 else
19139 # Is the header compilable?
19140 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19141 $as_echo_n "checking $ac_header usability... " >&6; }
19142 cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h. */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19148 $ac_includes_default
19149 #include <$ac_header>
19150 _ACEOF
19151 rm -f conftest.$ac_objext
19152 if { (ac_try="$ac_compile"
19153 case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19156 esac
19157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19158 $as_echo "$ac_try_echo") >&5
19159 (eval "$ac_compile") 2>conftest.er1
19160 ac_status=$?
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
19164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } && {
19166 test -z "$ac_c_werror_flag" ||
19167 test ! -s conftest.err
19168 } && test -s conftest.$ac_objext; then
19169 ac_header_compiler=yes
19170 else
19171 $as_echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19174 ac_header_compiler=no
19177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19178 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19179 $as_echo "$ac_header_compiler" >&6; }
19181 # Is the header present?
19182 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19183 $as_echo_n "checking $ac_header presence... " >&6; }
19184 cat >conftest.$ac_ext <<_ACEOF
19185 /* confdefs.h. */
19186 _ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19190 #include <$ac_header>
19191 _ACEOF
19192 if { (ac_try="$ac_cpp conftest.$ac_ext"
19193 case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19196 esac
19197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19198 $as_echo "$ac_try_echo") >&5
19199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19200 ac_status=$?
19201 grep -v '^ *+' conftest.er1 >conftest.err
19202 rm -f conftest.er1
19203 cat conftest.err >&5
19204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); } >/dev/null && {
19206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19207 test ! -s conftest.err
19208 }; then
19209 ac_header_preproc=yes
19210 else
19211 $as_echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19214 ac_header_preproc=no
19217 rm -f conftest.err conftest.$ac_ext
19218 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19219 $as_echo "$ac_header_preproc" >&6; }
19221 # So? What about this header?
19222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19223 yes:no: )
19224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19225 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19228 ac_header_preproc=yes
19230 no:yes:* )
19231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19232 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19234 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19236 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19238 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19242 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19245 esac
19246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19247 $as_echo_n "checking for $ac_header... " >&6; }
19248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19249 $as_echo_n "(cached) " >&6
19250 else
19251 eval "$as_ac_Header=\$ac_header_preproc"
19253 ac_res=`eval 'as_val=${'$as_ac_Header'}
19254 $as_echo "$as_val"'`
19255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19256 $as_echo "$ac_res" >&6; }
19259 as_val=`eval 'as_val=${'$as_ac_Header'}
19260 $as_echo "$as_val"'`
19261 if test "x$as_val" = x""yes; then
19262 cat >>confdefs.h <<_ACEOF
19263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19264 _ACEOF
19268 done
19273 for ac_func in shl_load shl_unload shl_findsym
19275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19276 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19277 $as_echo_n "checking for $ac_func... " >&6; }
19278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19279 $as_echo_n "(cached) " >&6
19280 else
19281 cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h. */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19289 #define $ac_func innocuous_$ac_func
19291 /* System header to define __stub macros and hopefully few prototypes,
19292 which can conflict with char $ac_func (); below.
19293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19294 <limits.h> exists even on freestanding compilers. */
19296 #ifdef __STDC__
19297 # include <limits.h>
19298 #else
19299 # include <assert.h>
19300 #endif
19302 #undef $ac_func
19304 /* Override any GCC internal prototype to avoid an error.
19305 Use char because int might match the return type of a GCC
19306 builtin and then its argument prototype would still apply. */
19307 #ifdef __cplusplus
19308 extern "C"
19309 #endif
19310 char $ac_func ();
19311 /* The GNU C library defines this for functions which it implements
19312 to always fail with ENOSYS. Some functions are actually named
19313 something starting with __ and the normal name is an alias. */
19314 #if defined __stub_$ac_func || defined __stub___$ac_func
19315 choke me
19316 #endif
19319 main ()
19321 return $ac_func ();
19323 return 0;
19325 _ACEOF
19326 rm -f conftest.$ac_objext conftest$ac_exeext
19327 if { (ac_try="$ac_link"
19328 case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19331 esac
19332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19333 $as_echo "$ac_try_echo") >&5
19334 (eval "$ac_link") 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } && {
19341 test -z "$ac_c_werror_flag" ||
19342 test ! -s conftest.err
19343 } && test -s conftest$ac_exeext && {
19344 test "$cross_compiling" = yes ||
19345 $as_test_x conftest$ac_exeext
19346 }; then
19347 eval "$as_ac_var=yes"
19348 else
19349 $as_echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19352 eval "$as_ac_var=no"
19355 rm -rf conftest.dSYM
19356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19357 conftest$ac_exeext conftest.$ac_ext
19359 ac_res=`eval 'as_val=${'$as_ac_var'}
19360 $as_echo "$as_val"'`
19361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19362 $as_echo "$ac_res" >&6; }
19363 as_val=`eval 'as_val=${'$as_ac_var'}
19364 $as_echo "$as_val"'`
19365 if test "x$as_val" = x""yes; then
19366 cat >>confdefs.h <<_ACEOF
19367 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19368 _ACEOF
19370 else
19371 libreplace_cv_shl=yes
19373 done
19376 { $as_echo "$as_me:$LINENO: checking for prototype void *dlopen(const char* filename, unsigned int flags)" >&5
19377 $as_echo_n "checking for prototype void *dlopen(const char* filename, unsigned int flags)... " >&6; }
19378 if test "${ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_+set}" = set; then
19379 $as_echo_n "(cached) " >&6
19380 else
19381 cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h. */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19388 $ac_includes_default
19390 #include <dlfcn.h>
19392 void *dlopen(const char* filename, unsigned int flags)
19395 return 0;
19399 _ACEOF
19400 rm -f conftest.$ac_objext
19401 if { (ac_try="$ac_compile"
19402 case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405 esac
19406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19407 $as_echo "$ac_try_echo") >&5
19408 (eval "$ac_compile") 2>conftest.er1
19409 ac_status=$?
19410 grep -v '^ *+' conftest.er1 >conftest.err
19411 rm -f conftest.er1
19412 cat conftest.err >&5
19413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } && {
19415 test -z "$ac_c_werror_flag" ||
19416 test ! -s conftest.err
19417 } && test -s conftest.$ac_objext; then
19419 ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_=yes
19421 else
19422 $as_echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19426 ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_=no
19430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_" >&5
19434 $as_echo "$ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_" >&6; }
19435 if test $ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_ = yes; then
19438 cat >>confdefs.h <<\_ACEOF
19439 #define DLOPEN_TAKES_UNSIGNED_FLAGS 1
19440 _ACEOF
19447 if test x"${libreplace_cv_dlfcn}" = x"yes";then
19448 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/dlfcn.o"
19451 LIBDL="$LIBS"
19453 LIBS="$save_LIBS"
19455 { $as_echo "$as_me:$LINENO: checking for getpass" >&5
19456 $as_echo_n "checking for getpass... " >&6; }
19457 if test "${ac_cv_func_getpass+set}" = set; then
19458 $as_echo_n "(cached) " >&6
19459 else
19460 cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h. */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19466 /* Define getpass to an innocuous variant, in case <limits.h> declares getpass.
19467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19468 #define getpass innocuous_getpass
19470 /* System header to define __stub macros and hopefully few prototypes,
19471 which can conflict with char getpass (); below.
19472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19473 <limits.h> exists even on freestanding compilers. */
19475 #ifdef __STDC__
19476 # include <limits.h>
19477 #else
19478 # include <assert.h>
19479 #endif
19481 #undef getpass
19483 /* Override any GCC internal prototype to avoid an error.
19484 Use char because int might match the return type of a GCC
19485 builtin and then its argument prototype would still apply. */
19486 #ifdef __cplusplus
19487 extern "C"
19488 #endif
19489 char getpass ();
19490 /* The GNU C library defines this for functions which it implements
19491 to always fail with ENOSYS. Some functions are actually named
19492 something starting with __ and the normal name is an alias. */
19493 #if defined __stub_getpass || defined __stub___getpass
19494 choke me
19495 #endif
19498 main ()
19500 return getpass ();
19502 return 0;
19504 _ACEOF
19505 rm -f conftest.$ac_objext conftest$ac_exeext
19506 if { (ac_try="$ac_link"
19507 case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19510 esac
19511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19512 $as_echo "$ac_try_echo") >&5
19513 (eval "$ac_link") 2>conftest.er1
19514 ac_status=$?
19515 grep -v '^ *+' conftest.er1 >conftest.err
19516 rm -f conftest.er1
19517 cat conftest.err >&5
19518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } && {
19520 test -z "$ac_c_werror_flag" ||
19521 test ! -s conftest.err
19522 } && test -s conftest$ac_exeext && {
19523 test "$cross_compiling" = yes ||
19524 $as_test_x conftest$ac_exeext
19525 }; then
19526 ac_cv_func_getpass=yes
19527 else
19528 $as_echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 ac_cv_func_getpass=no
19534 rm -rf conftest.dSYM
19535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19536 conftest$ac_exeext conftest.$ac_ext
19538 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpass" >&5
19539 $as_echo "$ac_cv_func_getpass" >&6; }
19540 if test "x$ac_cv_func_getpass" = x""yes; then
19541 libreplace_cv_HAVE_GETPASS=yes
19544 { $as_echo "$as_me:$LINENO: checking for getpassphrase" >&5
19545 $as_echo_n "checking for getpassphrase... " >&6; }
19546 if test "${ac_cv_func_getpassphrase+set}" = set; then
19547 $as_echo_n "(cached) " >&6
19548 else
19549 cat >conftest.$ac_ext <<_ACEOF
19550 /* confdefs.h. */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555 /* Define getpassphrase to an innocuous variant, in case <limits.h> declares getpassphrase.
19556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19557 #define getpassphrase innocuous_getpassphrase
19559 /* System header to define __stub macros and hopefully few prototypes,
19560 which can conflict with char getpassphrase (); below.
19561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19562 <limits.h> exists even on freestanding compilers. */
19564 #ifdef __STDC__
19565 # include <limits.h>
19566 #else
19567 # include <assert.h>
19568 #endif
19570 #undef getpassphrase
19572 /* Override any GCC internal prototype to avoid an error.
19573 Use char because int might match the return type of a GCC
19574 builtin and then its argument prototype would still apply. */
19575 #ifdef __cplusplus
19576 extern "C"
19577 #endif
19578 char getpassphrase ();
19579 /* The GNU C library defines this for functions which it implements
19580 to always fail with ENOSYS. Some functions are actually named
19581 something starting with __ and the normal name is an alias. */
19582 #if defined __stub_getpassphrase || defined __stub___getpassphrase
19583 choke me
19584 #endif
19587 main ()
19589 return getpassphrase ();
19591 return 0;
19593 _ACEOF
19594 rm -f conftest.$ac_objext conftest$ac_exeext
19595 if { (ac_try="$ac_link"
19596 case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19599 esac
19600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19601 $as_echo "$ac_try_echo") >&5
19602 (eval "$ac_link") 2>conftest.er1
19603 ac_status=$?
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
19607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } && {
19609 test -z "$ac_c_werror_flag" ||
19610 test ! -s conftest.err
19611 } && test -s conftest$ac_exeext && {
19612 test "$cross_compiling" = yes ||
19613 $as_test_x conftest$ac_exeext
19614 }; then
19615 ac_cv_func_getpassphrase=yes
19616 else
19617 $as_echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19620 ac_cv_func_getpassphrase=no
19623 rm -rf conftest.dSYM
19624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19625 conftest$ac_exeext conftest.$ac_ext
19627 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpassphrase" >&5
19628 $as_echo "$ac_cv_func_getpassphrase" >&6; }
19629 if test "x$ac_cv_func_getpassphrase" = x""yes; then
19630 libreplace_cv_HAVE_GETPASSPHRASE=yes
19633 if test x"$libreplace_cv_HAVE_GETPASS" = x"yes" -a x"$libreplace_cv_HAVE_GETPASSPHRASE" = x"yes"; then
19635 cat >>confdefs.h <<\_ACEOF
19636 #define REPLACE_GETPASS_BY_GETPASSPHRASE 1
19637 _ACEOF
19640 cat >>confdefs.h <<\_ACEOF
19641 #define REPLACE_GETPASS 1
19642 _ACEOF
19644 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/getpass.o"
19645 else
19647 { $as_echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
19648 $as_echo_n "checking whether getpass should be replaced... " >&6; }
19649 if test "${libreplace_cv_REPLACE_GETPASS+set}" = set; then
19650 $as_echo_n "(cached) " >&6
19651 else
19653 SAVE_CPPFLAGS="$CPPFLAGS"
19654 CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
19655 cat >conftest.$ac_ext <<_ACEOF
19656 /* confdefs.h. */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19662 #include "confdefs.h"
19663 #define NO_CONFIG_H
19664 #include "$libreplacedir/getpass.c"
19667 main ()
19671 return 0;
19673 _ACEOF
19674 rm -f conftest.$ac_objext
19675 if { (ac_try="$ac_compile"
19676 case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19679 esac
19680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19681 $as_echo "$ac_try_echo") >&5
19682 (eval "$ac_compile") 2>conftest.er1
19683 ac_status=$?
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
19687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } && {
19689 test -z "$ac_c_werror_flag" ||
19690 test ! -s conftest.err
19691 } && test -s conftest.$ac_objext; then
19692 libreplace_cv_REPLACE_GETPASS=yes
19693 else
19694 $as_echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 libreplace_cv_REPLACE_GETPASS=no
19700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19701 CPPFLAGS="$SAVE_CPPFLAGS"
19704 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_REPLACE_GETPASS" >&5
19705 $as_echo "$libreplace_cv_REPLACE_GETPASS" >&6; }
19706 if test x"$libreplace_cv_REPLACE_GETPASS" = x"yes"; then
19708 cat >>confdefs.h <<\_ACEOF
19709 #define REPLACE_GETPASS 1
19710 _ACEOF
19712 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/getpass.o"
19717 { $as_echo "$as_me:$LINENO: checking whether strptime is available and works" >&5
19718 $as_echo_n "checking whether strptime is available and works... " >&6; }
19719 if test "${libreplace_cv_STRPTIME_OK+set}" = set; then
19720 $as_echo_n "(cached) " >&6
19721 else
19723 if test "$cross_compiling" = yes; then
19724 libreplace_cv_STRPTIME_OK="assuming not"
19725 else
19726 cat >conftest.$ac_ext <<_ACEOF
19727 /* confdefs.h. */
19728 _ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19733 #define LIBREPLACE_CONFIGURE_TEST_STRPTIME
19734 #include "$libreplacedir/test/strptime.c"
19736 _ACEOF
19737 rm -f conftest$ac_exeext
19738 if { (ac_try="$ac_link"
19739 case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19742 esac
19743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19744 $as_echo "$ac_try_echo") >&5
19745 (eval "$ac_link") 2>&5
19746 ac_status=$?
19747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19749 { (case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19752 esac
19753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19754 $as_echo "$ac_try_echo") >&5
19755 (eval "$ac_try") 2>&5
19756 ac_status=$?
19757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 libreplace_cv_STRPTIME_OK=yes
19760 else
19761 $as_echo "$as_me: program exited with status $ac_status" >&5
19762 $as_echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 ( exit $ac_status )
19766 libreplace_cv_STRPTIME_OK=no
19768 rm -rf conftest.dSYM
19769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19775 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_STRPTIME_OK" >&5
19776 $as_echo "$libreplace_cv_STRPTIME_OK" >&6; }
19777 if test x"$libreplace_cv_STRPTIME_OK" != x"yes"; then
19779 cat >>confdefs.h <<\_ACEOF
19780 #define REPLACE_STRPTIME 1
19781 _ACEOF
19783 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/strptime.o"
19790 for ac_header in direct.h windows.h winsock2.h ws2tcpip.h
19792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19795 $as_echo_n "checking for $ac_header... " >&6; }
19796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19797 $as_echo_n "(cached) " >&6
19799 ac_res=`eval 'as_val=${'$as_ac_Header'}
19800 $as_echo "$as_val"'`
19801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19802 $as_echo "$ac_res" >&6; }
19803 else
19804 # Is the header compilable?
19805 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19806 $as_echo_n "checking $ac_header usability... " >&6; }
19807 cat >conftest.$ac_ext <<_ACEOF
19808 /* confdefs.h. */
19809 _ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h. */
19813 $ac_includes_default
19814 #include <$ac_header>
19815 _ACEOF
19816 rm -f conftest.$ac_objext
19817 if { (ac_try="$ac_compile"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821 esac
19822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19823 $as_echo "$ac_try_echo") >&5
19824 (eval "$ac_compile") 2>conftest.er1
19825 ac_status=$?
19826 grep -v '^ *+' conftest.er1 >conftest.err
19827 rm -f conftest.er1
19828 cat conftest.err >&5
19829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } && {
19831 test -z "$ac_c_werror_flag" ||
19832 test ! -s conftest.err
19833 } && test -s conftest.$ac_objext; then
19834 ac_header_compiler=yes
19835 else
19836 $as_echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 ac_header_compiler=no
19842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19844 $as_echo "$ac_header_compiler" >&6; }
19846 # Is the header present?
19847 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19848 $as_echo_n "checking $ac_header presence... " >&6; }
19849 cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h. */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 #include <$ac_header>
19856 _ACEOF
19857 if { (ac_try="$ac_cpp conftest.$ac_ext"
19858 case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861 esac
19862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19863 $as_echo "$ac_try_echo") >&5
19864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19865 ac_status=$?
19866 grep -v '^ *+' conftest.er1 >conftest.err
19867 rm -f conftest.er1
19868 cat conftest.err >&5
19869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } >/dev/null && {
19871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19872 test ! -s conftest.err
19873 }; then
19874 ac_header_preproc=yes
19875 else
19876 $as_echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 ac_header_preproc=no
19882 rm -f conftest.err conftest.$ac_ext
19883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19884 $as_echo "$ac_header_preproc" >&6; }
19886 # So? What about this header?
19887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19888 yes:no: )
19889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19890 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19893 ac_header_preproc=yes
19895 no:yes:* )
19896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19897 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19899 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19901 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19903 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19907 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19910 esac
19911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19912 $as_echo_n "checking for $ac_header... " >&6; }
19913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19914 $as_echo_n "(cached) " >&6
19915 else
19916 eval "$as_ac_Header=\$ac_header_preproc"
19918 ac_res=`eval 'as_val=${'$as_ac_Header'}
19919 $as_echo "$as_val"'`
19920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19921 $as_echo "$ac_res" >&6; }
19924 as_val=`eval 'as_val=${'$as_ac_Header'}
19925 $as_echo "$as_val"'`
19926 if test "x$as_val" = x""yes; then
19927 cat >>confdefs.h <<_ACEOF
19928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19929 _ACEOF
19933 done
19936 #######################################
19937 # Check for mkdir mode
19938 { $as_echo "$as_me:$LINENO: checking whether mkdir supports mode" >&5
19939 $as_echo_n "checking whether mkdir supports mode... " >&6; }
19940 if test "${libreplace_cv_mkdir_has_mode+set}" = set; then
19941 $as_echo_n "(cached) " >&6
19942 else
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h. */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19950 #include <stdio.h>
19951 #ifdef HAVE_DIRECT_H
19952 #include <direct.h>
19953 #endif
19955 main ()
19958 mkdir("foo",0777);
19959 return 0;
19962 return 0;
19964 _ACEOF
19965 rm -f conftest.$ac_objext
19966 if { (ac_try="$ac_compile"
19967 case "(($ac_try" in
19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969 *) ac_try_echo=$ac_try;;
19970 esac
19971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19972 $as_echo "$ac_try_echo") >&5
19973 (eval "$ac_compile") 2>conftest.er1
19974 ac_status=$?
19975 grep -v '^ *+' conftest.er1 >conftest.err
19976 rm -f conftest.er1
19977 cat conftest.err >&5
19978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } && {
19980 test -z "$ac_c_werror_flag" ||
19981 test ! -s conftest.err
19982 } && test -s conftest.$ac_objext; then
19983 libreplace_cv_mkdir_has_mode="yes"
19984 else
19985 $as_echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 libreplace_cv_mkdir_has_mode="no"
19991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19993 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_mkdir_has_mode" >&5
19994 $as_echo "$libreplace_cv_mkdir_has_mode" >&6; }
19996 if test "$libreplace_cv_mkdir_has_mode" = "yes"
19997 then
19999 cat >>confdefs.h <<\_ACEOF
20000 #define HAVE_MKDIR_MODE 1
20001 _ACEOF
20006 for ac_func in timegm
20008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20009 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20010 $as_echo_n "checking for $ac_func... " >&6; }
20011 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20012 $as_echo_n "(cached) " >&6
20013 else
20014 cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h. */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20022 #define $ac_func innocuous_$ac_func
20024 /* System header to define __stub macros and hopefully few prototypes,
20025 which can conflict with char $ac_func (); below.
20026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20027 <limits.h> exists even on freestanding compilers. */
20029 #ifdef __STDC__
20030 # include <limits.h>
20031 #else
20032 # include <assert.h>
20033 #endif
20035 #undef $ac_func
20037 /* Override any GCC internal prototype to avoid an error.
20038 Use char because int might match the return type of a GCC
20039 builtin and then its argument prototype would still apply. */
20040 #ifdef __cplusplus
20041 extern "C"
20042 #endif
20043 char $ac_func ();
20044 /* The GNU C library defines this for functions which it implements
20045 to always fail with ENOSYS. Some functions are actually named
20046 something starting with __ and the normal name is an alias. */
20047 #if defined __stub_$ac_func || defined __stub___$ac_func
20048 choke me
20049 #endif
20052 main ()
20054 return $ac_func ();
20056 return 0;
20058 _ACEOF
20059 rm -f conftest.$ac_objext conftest$ac_exeext
20060 if { (ac_try="$ac_link"
20061 case "(($ac_try" in
20062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063 *) ac_try_echo=$ac_try;;
20064 esac
20065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20066 $as_echo "$ac_try_echo") >&5
20067 (eval "$ac_link") 2>conftest.er1
20068 ac_status=$?
20069 grep -v '^ *+' conftest.er1 >conftest.err
20070 rm -f conftest.er1
20071 cat conftest.err >&5
20072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } && {
20074 test -z "$ac_c_werror_flag" ||
20075 test ! -s conftest.err
20076 } && test -s conftest$ac_exeext && {
20077 test "$cross_compiling" = yes ||
20078 $as_test_x conftest$ac_exeext
20079 }; then
20080 eval "$as_ac_var=yes"
20081 else
20082 $as_echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 eval "$as_ac_var=no"
20088 rm -rf conftest.dSYM
20089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20090 conftest$ac_exeext conftest.$ac_ext
20092 ac_res=`eval 'as_val=${'$as_ac_var'}
20093 $as_echo "$as_val"'`
20094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20095 $as_echo "$ac_res" >&6; }
20096 as_val=`eval 'as_val=${'$as_ac_var'}
20097 $as_echo "$as_val"'`
20098 if test "x$as_val" = x""yes; then
20099 cat >>confdefs.h <<_ACEOF
20100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20101 _ACEOF
20103 else
20104 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/timegm.o"
20106 done
20109 { $as_echo "$as_me:$LINENO: checking for broken readdir" >&5
20110 $as_echo_n "checking for broken readdir... " >&6; }
20111 if test "${libreplace_cv_READDIR_NEEDED+set}" = set; then
20112 $as_echo_n "(cached) " >&6
20113 else
20115 if test "$cross_compiling" = yes; then
20116 libreplace_cv_READDIR_NEEDED="assuming not"
20117 else
20118 cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h. */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20125 #define test_readdir_os2_delete main
20126 #include "$libreplacedir/test/os2_delete.c"
20127 _ACEOF
20128 rm -f conftest$ac_exeext
20129 if { (ac_try="$ac_link"
20130 case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20133 esac
20134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20135 $as_echo "$ac_try_echo") >&5
20136 (eval "$ac_link") 2>&5
20137 ac_status=$?
20138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20140 { (case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143 esac
20144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20145 $as_echo "$ac_try_echo") >&5
20146 (eval "$ac_try") 2>&5
20147 ac_status=$?
20148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; }; then
20150 libreplace_cv_READDIR_NEEDED=no
20151 else
20152 $as_echo "$as_me: program exited with status $ac_status" >&5
20153 $as_echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 ( exit $ac_status )
20157 libreplace_cv_READDIR_NEEDED=yes
20159 rm -rf conftest.dSYM
20160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20166 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_NEEDED" >&5
20167 $as_echo "$libreplace_cv_READDIR_NEEDED" >&6; }
20170 for ac_func in dirfd
20172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20173 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20174 $as_echo_n "checking for $ac_func... " >&6; }
20175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20176 $as_echo_n "(cached) " >&6
20177 else
20178 cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h. */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h. */
20184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20186 #define $ac_func innocuous_$ac_func
20188 /* System header to define __stub macros and hopefully few prototypes,
20189 which can conflict with char $ac_func (); below.
20190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20191 <limits.h> exists even on freestanding compilers. */
20193 #ifdef __STDC__
20194 # include <limits.h>
20195 #else
20196 # include <assert.h>
20197 #endif
20199 #undef $ac_func
20201 /* Override any GCC internal prototype to avoid an error.
20202 Use char because int might match the return type of a GCC
20203 builtin and then its argument prototype would still apply. */
20204 #ifdef __cplusplus
20205 extern "C"
20206 #endif
20207 char $ac_func ();
20208 /* The GNU C library defines this for functions which it implements
20209 to always fail with ENOSYS. Some functions are actually named
20210 something starting with __ and the normal name is an alias. */
20211 #if defined __stub_$ac_func || defined __stub___$ac_func
20212 choke me
20213 #endif
20216 main ()
20218 return $ac_func ();
20220 return 0;
20222 _ACEOF
20223 rm -f conftest.$ac_objext conftest$ac_exeext
20224 if { (ac_try="$ac_link"
20225 case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20228 esac
20229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20230 $as_echo "$ac_try_echo") >&5
20231 (eval "$ac_link") 2>conftest.er1
20232 ac_status=$?
20233 grep -v '^ *+' conftest.er1 >conftest.err
20234 rm -f conftest.er1
20235 cat conftest.err >&5
20236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } && {
20238 test -z "$ac_c_werror_flag" ||
20239 test ! -s conftest.err
20240 } && test -s conftest$ac_exeext && {
20241 test "$cross_compiling" = yes ||
20242 $as_test_x conftest$ac_exeext
20243 }; then
20244 eval "$as_ac_var=yes"
20245 else
20246 $as_echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20249 eval "$as_ac_var=no"
20252 rm -rf conftest.dSYM
20253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20254 conftest$ac_exeext conftest.$ac_ext
20256 ac_res=`eval 'as_val=${'$as_ac_var'}
20257 $as_echo "$as_val"'`
20258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20259 $as_echo "$ac_res" >&6; }
20260 as_val=`eval 'as_val=${'$as_ac_var'}
20261 $as_echo "$as_val"'`
20262 if test "x$as_val" = x""yes; then
20263 cat >>confdefs.h <<_ACEOF
20264 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20265 _ACEOF
20268 done
20271 { $as_echo "$as_me:$LINENO: checking for dirfd declaration" >&5
20272 $as_echo_n "checking for dirfd declaration... " >&6; }
20273 if test "${ac_cv_have_dirfd_decl+set}" = set; then
20274 $as_echo_n "(cached) " >&6
20275 else
20277 cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h. */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20283 #include <dirent.h>
20285 main ()
20287 int i = (int)dirfd
20289 return 0;
20291 _ACEOF
20292 rm -f conftest.$ac_objext
20293 if { (ac_try="$ac_compile"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20297 esac
20298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20299 $as_echo "$ac_try_echo") >&5
20300 (eval "$ac_compile") 2>conftest.er1
20301 ac_status=$?
20302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
20305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } && {
20307 test -z "$ac_c_werror_flag" ||
20308 test ! -s conftest.err
20309 } && test -s conftest.$ac_objext; then
20310 ac_cv_have_dirfd_decl=yes
20311 else
20312 $as_echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20315 ac_cv_have_dirfd_decl=no
20318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_dirfd_decl" >&5
20321 $as_echo "$ac_cv_have_dirfd_decl" >&6; }
20322 if test x"$ac_cv_have_dirfd_decl" = x"yes"; then
20324 cat >>confdefs.h <<\_ACEOF
20325 #define HAVE_DIRFD_DECL 1
20326 _ACEOF
20332 # try to replace with getdirentries() if needed
20334 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
20336 for ac_func in getdirentries
20338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20340 $as_echo_n "checking for $ac_func... " >&6; }
20341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20342 $as_echo_n "(cached) " >&6
20343 else
20344 cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h. */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20352 #define $ac_func innocuous_$ac_func
20354 /* System header to define __stub macros and hopefully few prototypes,
20355 which can conflict with char $ac_func (); below.
20356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20357 <limits.h> exists even on freestanding compilers. */
20359 #ifdef __STDC__
20360 # include <limits.h>
20361 #else
20362 # include <assert.h>
20363 #endif
20365 #undef $ac_func
20367 /* Override any GCC internal prototype to avoid an error.
20368 Use char because int might match the return type of a GCC
20369 builtin and then its argument prototype would still apply. */
20370 #ifdef __cplusplus
20371 extern "C"
20372 #endif
20373 char $ac_func ();
20374 /* The GNU C library defines this for functions which it implements
20375 to always fail with ENOSYS. Some functions are actually named
20376 something starting with __ and the normal name is an alias. */
20377 #if defined __stub_$ac_func || defined __stub___$ac_func
20378 choke me
20379 #endif
20382 main ()
20384 return $ac_func ();
20386 return 0;
20388 _ACEOF
20389 rm -f conftest.$ac_objext conftest$ac_exeext
20390 if { (ac_try="$ac_link"
20391 case "(($ac_try" in
20392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393 *) ac_try_echo=$ac_try;;
20394 esac
20395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20396 $as_echo "$ac_try_echo") >&5
20397 (eval "$ac_link") 2>conftest.er1
20398 ac_status=$?
20399 grep -v '^ *+' conftest.er1 >conftest.err
20400 rm -f conftest.er1
20401 cat conftest.err >&5
20402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } && {
20404 test -z "$ac_c_werror_flag" ||
20405 test ! -s conftest.err
20406 } && test -s conftest$ac_exeext && {
20407 test "$cross_compiling" = yes ||
20408 $as_test_x conftest$ac_exeext
20409 }; then
20410 eval "$as_ac_var=yes"
20411 else
20412 $as_echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20415 eval "$as_ac_var=no"
20418 rm -rf conftest.dSYM
20419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20420 conftest$ac_exeext conftest.$ac_ext
20422 ac_res=`eval 'as_val=${'$as_ac_var'}
20423 $as_echo "$as_val"'`
20424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20425 $as_echo "$ac_res" >&6; }
20426 as_val=`eval 'as_val=${'$as_ac_var'}
20427 $as_echo "$as_val"'`
20428 if test "x$as_val" = x""yes; then
20429 cat >>confdefs.h <<_ACEOF
20430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20431 _ACEOF
20434 done
20436 { $as_echo "$as_me:$LINENO: checking for prototype long telldir(const DIR *dir)" >&5
20437 $as_echo_n "checking for prototype long telldir(const DIR *dir)... " >&6; }
20438 if test "${ac_cv_c_prototype_long_telldir_const_DIR_pdir_+set}" = set; then
20439 $as_echo_n "(cached) " >&6
20440 else
20441 cat >conftest.$ac_ext <<_ACEOF
20442 /* confdefs.h. */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20448 $ac_includes_default
20450 #include <dirent.h>
20452 long telldir(const DIR *dir)
20455 return 0;
20459 _ACEOF
20460 rm -f conftest.$ac_objext
20461 if { (ac_try="$ac_compile"
20462 case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20465 esac
20466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20467 $as_echo "$ac_try_echo") >&5
20468 (eval "$ac_compile") 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest.$ac_objext; then
20479 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=yes
20481 else
20482 $as_echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20486 ac_cv_c_prototype_long_telldir_const_DIR_pdir_=no
20490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&5
20494 $as_echo "$ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&6; }
20495 if test $ac_cv_c_prototype_long_telldir_const_DIR_pdir_ = yes; then
20498 cat >>confdefs.h <<\_ACEOF
20499 #define TELLDIR_TAKES_CONST_DIR 1
20500 _ACEOF
20507 { $as_echo "$as_me:$LINENO: checking for prototype int seekdir(DIR *dir, long ofs)" >&5
20508 $as_echo_n "checking for prototype int seekdir(DIR *dir, long ofs)... " >&6; }
20509 if test "${ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_+set}" = set; then
20510 $as_echo_n "(cached) " >&6
20511 else
20512 cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h. */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20519 $ac_includes_default
20521 #include <dirent.h>
20523 int seekdir(DIR *dir, long ofs)
20526 return 0;
20530 _ACEOF
20531 rm -f conftest.$ac_objext
20532 if { (ac_try="$ac_compile"
20533 case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20536 esac
20537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20538 $as_echo "$ac_try_echo") >&5
20539 (eval "$ac_compile") 2>conftest.er1
20540 ac_status=$?
20541 grep -v '^ *+' conftest.er1 >conftest.err
20542 rm -f conftest.er1
20543 cat conftest.err >&5
20544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } && {
20546 test -z "$ac_c_werror_flag" ||
20547 test ! -s conftest.err
20548 } && test -s conftest.$ac_objext; then
20550 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=yes
20552 else
20553 $as_echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20557 ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=no
20561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20564 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&5
20565 $as_echo "$ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&6; }
20566 if test $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_ = yes; then
20569 cat >>confdefs.h <<\_ACEOF
20570 #define SEEKDIR_RETURNS_INT 1
20571 _ACEOF
20577 { $as_echo "$as_me:$LINENO: checking for replacing readdir using getdirentries()" >&5
20578 $as_echo_n "checking for replacing readdir using getdirentries()... " >&6; }
20579 if test "${libreplace_cv_READDIR_GETDIRENTRIES+set}" = set; then
20580 $as_echo_n "(cached) " >&6
20581 else
20583 if test "$cross_compiling" = yes; then
20584 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20586 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20587 See \`config.log' for more details." >&5
20588 $as_echo "$as_me: error: cannot run test program while cross compiling
20589 See \`config.log' for more details." >&2;}
20590 { (exit 1); exit 1; }; }; }
20591 else
20592 cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h. */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20599 #define _LIBREPLACE_REPLACE_H
20600 #include "$libreplacedir/repdir_getdirentries.c"
20601 #define test_readdir_os2_delete main
20602 #include "$libreplacedir/test/os2_delete.c"
20603 _ACEOF
20604 rm -f conftest$ac_exeext
20605 if { (ac_try="$ac_link"
20606 case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20609 esac
20610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20611 $as_echo "$ac_try_echo") >&5
20612 (eval "$ac_link") 2>&5
20613 ac_status=$?
20614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20616 { (case "(($ac_try" in
20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618 *) ac_try_echo=$ac_try;;
20619 esac
20620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20621 $as_echo "$ac_try_echo") >&5
20622 (eval "$ac_try") 2>&5
20623 ac_status=$?
20624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20626 libreplace_cv_READDIR_GETDIRENTRIES=yes
20627 else
20628 $as_echo "$as_me: program exited with status $ac_status" >&5
20629 $as_echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20632 ( exit $ac_status )
20633 libreplace_cv_READDIR_GETDIRENTRIES=no
20635 rm -rf conftest.dSYM
20636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20642 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDIRENTRIES" >&5
20643 $as_echo "$libreplace_cv_READDIR_GETDIRENTRIES" >&6; }
20645 if test x"$libreplace_cv_READDIR_GETDIRENTRIES" = x"yes"; then
20647 cat >>confdefs.h <<\_ACEOF
20648 #define REPLACE_READDIR 1
20649 _ACEOF
20652 cat >>confdefs.h <<\_ACEOF
20653 #define REPLACE_READDIR_GETDIRENTRIES 1
20654 _ACEOF
20656 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/repdir_getdirentries.o"
20657 libreplace_cv_READDIR_NEEDED=no
20661 # try to replace with getdents() if needed
20663 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
20665 for ac_func in getdents
20667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20668 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20669 $as_echo_n "checking for $ac_func... " >&6; }
20670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20671 $as_echo_n "(cached) " >&6
20672 else
20673 cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h. */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20681 #define $ac_func innocuous_$ac_func
20683 /* System header to define __stub macros and hopefully few prototypes,
20684 which can conflict with char $ac_func (); below.
20685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20686 <limits.h> exists even on freestanding compilers. */
20688 #ifdef __STDC__
20689 # include <limits.h>
20690 #else
20691 # include <assert.h>
20692 #endif
20694 #undef $ac_func
20696 /* Override any GCC internal prototype to avoid an error.
20697 Use char because int might match the return type of a GCC
20698 builtin and then its argument prototype would still apply. */
20699 #ifdef __cplusplus
20700 extern "C"
20701 #endif
20702 char $ac_func ();
20703 /* The GNU C library defines this for functions which it implements
20704 to always fail with ENOSYS. Some functions are actually named
20705 something starting with __ and the normal name is an alias. */
20706 #if defined __stub_$ac_func || defined __stub___$ac_func
20707 choke me
20708 #endif
20711 main ()
20713 return $ac_func ();
20715 return 0;
20717 _ACEOF
20718 rm -f conftest.$ac_objext conftest$ac_exeext
20719 if { (ac_try="$ac_link"
20720 case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20723 esac
20724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20725 $as_echo "$ac_try_echo") >&5
20726 (eval "$ac_link") 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } && {
20733 test -z "$ac_c_werror_flag" ||
20734 test ! -s conftest.err
20735 } && test -s conftest$ac_exeext && {
20736 test "$cross_compiling" = yes ||
20737 $as_test_x conftest$ac_exeext
20738 }; then
20739 eval "$as_ac_var=yes"
20740 else
20741 $as_echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20744 eval "$as_ac_var=no"
20747 rm -rf conftest.dSYM
20748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20749 conftest$ac_exeext conftest.$ac_ext
20751 ac_res=`eval 'as_val=${'$as_ac_var'}
20752 $as_echo "$as_val"'`
20753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20754 $as_echo "$ac_res" >&6; }
20755 as_val=`eval 'as_val=${'$as_ac_var'}
20756 $as_echo "$as_val"'`
20757 if test "x$as_val" = x""yes; then
20758 cat >>confdefs.h <<_ACEOF
20759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20760 _ACEOF
20763 done
20765 { $as_echo "$as_me:$LINENO: checking for replacing readdir using getdents()" >&5
20766 $as_echo_n "checking for replacing readdir using getdents()... " >&6; }
20767 if test "${libreplace_cv_READDIR_GETDENTS+set}" = set; then
20768 $as_echo_n "(cached) " >&6
20769 else
20771 if test "$cross_compiling" = yes; then
20772 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20774 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20775 See \`config.log' for more details." >&5
20776 $as_echo "$as_me: error: cannot run test program while cross compiling
20777 See \`config.log' for more details." >&2;}
20778 { (exit 1); exit 1; }; }; }
20779 else
20780 cat >conftest.$ac_ext <<_ACEOF
20781 /* confdefs.h. */
20782 _ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20787 #define _LIBREPLACE_REPLACE_H
20788 #error _donot_use_getdents_replacement_anymore
20789 #include "$libreplacedir/repdir_getdents.c"
20790 #define test_readdir_os2_delete main
20791 #include "$libreplacedir/test/os2_delete.c"
20792 _ACEOF
20793 rm -f conftest$ac_exeext
20794 if { (ac_try="$ac_link"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20798 esac
20799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_link") 2>&5
20802 ac_status=$?
20803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20805 { (case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20808 esac
20809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20810 $as_echo "$ac_try_echo") >&5
20811 (eval "$ac_try") 2>&5
20812 ac_status=$?
20813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; }; then
20815 libreplace_cv_READDIR_GETDENTS=yes
20816 else
20817 $as_echo "$as_me: program exited with status $ac_status" >&5
20818 $as_echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 ( exit $ac_status )
20822 libreplace_cv_READDIR_GETDENTS=no
20824 rm -rf conftest.dSYM
20825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20831 { $as_echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDENTS" >&5
20832 $as_echo "$libreplace_cv_READDIR_GETDENTS" >&6; }
20834 if test x"$libreplace_cv_READDIR_GETDENTS" = x"yes"; then
20836 cat >>confdefs.h <<\_ACEOF
20837 #define REPLACE_READDIR 1
20838 _ACEOF
20841 cat >>confdefs.h <<\_ACEOF
20842 #define REPLACE_READDIR_GETDENTS 1
20843 _ACEOF
20845 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/repdir_getdents.o"
20846 libreplace_cv_READDIR_NEEDED=no
20849 { $as_echo "$as_me:$LINENO: checking a usable readdir()" >&5
20850 $as_echo_n "checking a usable readdir()... " >&6; }
20851 if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
20852 { $as_echo "$as_me:$LINENO: result: no" >&5
20853 $as_echo "no" >&6; }
20854 { $as_echo "$as_me:$LINENO: WARNING: the provided readdir() is broken" >&5
20855 $as_echo "$as_me: WARNING: the provided readdir() is broken" >&2;}
20856 else
20857 { $as_echo "$as_me:$LINENO: result: yes" >&5
20858 $as_echo "yes" >&6; }
20861 ###############################################
20862 # test for where we get crypt() from
20864 for ac_header in crypt.h
20866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20869 $as_echo_n "checking for $ac_header... " >&6; }
20870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20871 $as_echo_n "(cached) " >&6
20873 ac_res=`eval 'as_val=${'$as_ac_Header'}
20874 $as_echo "$as_val"'`
20875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20876 $as_echo "$ac_res" >&6; }
20877 else
20878 # Is the header compilable?
20879 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20880 $as_echo_n "checking $ac_header usability... " >&6; }
20881 cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h. */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 $ac_includes_default
20888 #include <$ac_header>
20889 _ACEOF
20890 rm -f conftest.$ac_objext
20891 if { (ac_try="$ac_compile"
20892 case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20895 esac
20896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20897 $as_echo "$ac_try_echo") >&5
20898 (eval "$ac_compile") 2>conftest.er1
20899 ac_status=$?
20900 grep -v '^ *+' conftest.er1 >conftest.err
20901 rm -f conftest.er1
20902 cat conftest.err >&5
20903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } && {
20905 test -z "$ac_c_werror_flag" ||
20906 test ! -s conftest.err
20907 } && test -s conftest.$ac_objext; then
20908 ac_header_compiler=yes
20909 else
20910 $as_echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20913 ac_header_compiler=no
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20918 $as_echo "$ac_header_compiler" >&6; }
20920 # Is the header present?
20921 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20922 $as_echo_n "checking $ac_header presence... " >&6; }
20923 cat >conftest.$ac_ext <<_ACEOF
20924 /* confdefs.h. */
20925 _ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h. */
20929 #include <$ac_header>
20930 _ACEOF
20931 if { (ac_try="$ac_cpp conftest.$ac_ext"
20932 case "(($ac_try" in
20933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934 *) ac_try_echo=$ac_try;;
20935 esac
20936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20937 $as_echo "$ac_try_echo") >&5
20938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20939 ac_status=$?
20940 grep -v '^ *+' conftest.er1 >conftest.err
20941 rm -f conftest.er1
20942 cat conftest.err >&5
20943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } >/dev/null && {
20945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20947 }; then
20948 ac_header_preproc=yes
20949 else
20950 $as_echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20953 ac_header_preproc=no
20956 rm -f conftest.err conftest.$ac_ext
20957 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20958 $as_echo "$ac_header_preproc" >&6; }
20960 # So? What about this header?
20961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20962 yes:no: )
20963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20964 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20966 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20967 ac_header_preproc=yes
20969 no:yes:* )
20970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20971 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20973 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20975 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20977 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20979 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20981 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20984 esac
20985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20986 $as_echo_n "checking for $ac_header... " >&6; }
20987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20988 $as_echo_n "(cached) " >&6
20989 else
20990 eval "$as_ac_Header=\$ac_header_preproc"
20992 ac_res=`eval 'as_val=${'$as_ac_Header'}
20993 $as_echo "$as_val"'`
20994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20995 $as_echo "$ac_res" >&6; }
20998 as_val=`eval 'as_val=${'$as_ac_Header'}
20999 $as_echo "$as_val"'`
21000 if test "x$as_val" = x""yes; then
21001 cat >>confdefs.h <<_ACEOF
21002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21003 _ACEOF
21007 done
21009 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
21010 $as_echo_n "checking for library containing crypt... " >&6; }
21011 if test "${ac_cv_search_ext_crypt+set}" = set; then
21012 $as_echo_n "(cached) " >&6
21013 else
21015 ac_func_search_ext_save_LIBS=$LIBS
21016 ac_cv_search_ext_crypt=no
21017 cat >conftest.$ac_ext <<_ACEOF
21018 /* confdefs.h. */
21019 _ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h. */
21024 /* Override any GCC internal prototype to avoid an error.
21025 Use char because int might match the return type of a GCC
21026 builtin and then its argument prototype would still apply. */
21027 #ifdef __cplusplus
21028 extern "C"
21029 #endif
21030 char crypt ();
21032 main ()
21034 return crypt ();
21036 return 0;
21038 _ACEOF
21039 rm -f conftest.$ac_objext conftest$ac_exeext
21040 if { (ac_try="$ac_link"
21041 case "(($ac_try" in
21042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043 *) ac_try_echo=$ac_try;;
21044 esac
21045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21046 $as_echo "$ac_try_echo") >&5
21047 (eval "$ac_link") 2>conftest.er1
21048 ac_status=$?
21049 grep -v '^ *+' conftest.er1 >conftest.err
21050 rm -f conftest.er1
21051 cat conftest.err >&5
21052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } && {
21054 test -z "$ac_c_werror_flag" ||
21055 test ! -s conftest.err
21056 } && test -s conftest$ac_exeext && {
21057 test "$cross_compiling" = yes ||
21058 $as_test_x conftest$ac_exeext
21059 }; then
21060 ac_cv_search_ext_crypt="none required"
21061 else
21062 $as_echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21068 rm -rf conftest.dSYM
21069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21070 conftest$ac_exeext conftest.$ac_ext
21071 if test "$ac_cv_search_ext_crypt" = no; then
21072 for ac_lib in crypt; do
21073 LIBS="-l$ac_lib $CRYPT_LIBS $ac_func_search_save_ext_LIBS"
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h. */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21081 /* Override any GCC internal prototype to avoid an error.
21082 Use char because int might match the return type of a GCC
21083 builtin and then its argument prototype would still apply. */
21084 #ifdef __cplusplus
21085 extern "C"
21086 #endif
21087 char crypt ();
21089 main ()
21091 return crypt ();
21093 return 0;
21095 _ACEOF
21096 rm -f conftest.$ac_objext conftest$ac_exeext
21097 if { (ac_try="$ac_link"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21101 esac
21102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21103 $as_echo "$ac_try_echo") >&5
21104 (eval "$ac_link") 2>conftest.er1
21105 ac_status=$?
21106 grep -v '^ *+' conftest.er1 >conftest.err
21107 rm -f conftest.er1
21108 cat conftest.err >&5
21109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } && {
21111 test -z "$ac_c_werror_flag" ||
21112 test ! -s conftest.err
21113 } && test -s conftest$ac_exeext && {
21114 test "$cross_compiling" = yes ||
21115 $as_test_x conftest$ac_exeext
21116 }; then
21117 ac_cv_search_ext_crypt="-l$ac_lib"
21118 break
21119 else
21120 $as_echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21126 rm -rf conftest.dSYM
21127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21128 conftest$ac_exeext conftest.$ac_ext
21129 done
21131 LIBS=$ac_func_search_ext_save_LIBS
21133 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ext_crypt" >&5
21134 $as_echo "$ac_cv_search_ext_crypt" >&6; }
21135 if test "$ac_cv_search_ext_crypt" != no; then
21136 test "$ac_cv_search_ext_crypt" = "none required" || CRYPT_LIBS="$ac_cv_search_ext_crypt $CRYPT_LIBS"
21138 cat >>confdefs.h <<\_ACEOF
21139 #define HAVE_CRYPT 1
21140 _ACEOF
21142 else
21143 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/crypt.o"
21151 for ac_func in printf memset memcpy
21153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21154 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21155 $as_echo_n "checking for $ac_func... " >&6; }
21156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21157 $as_echo_n "(cached) " >&6
21158 else
21159 cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h. */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21167 #define $ac_func innocuous_$ac_func
21169 /* System header to define __stub macros and hopefully few prototypes,
21170 which can conflict with char $ac_func (); below.
21171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21172 <limits.h> exists even on freestanding compilers. */
21174 #ifdef __STDC__
21175 # include <limits.h>
21176 #else
21177 # include <assert.h>
21178 #endif
21180 #undef $ac_func
21182 /* Override any GCC internal prototype to avoid an error.
21183 Use char because int might match the return type of a GCC
21184 builtin and then its argument prototype would still apply. */
21185 #ifdef __cplusplus
21186 extern "C"
21187 #endif
21188 char $ac_func ();
21189 /* The GNU C library defines this for functions which it implements
21190 to always fail with ENOSYS. Some functions are actually named
21191 something starting with __ and the normal name is an alias. */
21192 #if defined __stub_$ac_func || defined __stub___$ac_func
21193 choke me
21194 #endif
21197 main ()
21199 return $ac_func ();
21201 return 0;
21203 _ACEOF
21204 rm -f conftest.$ac_objext conftest$ac_exeext
21205 if { (ac_try="$ac_link"
21206 case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21209 esac
21210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21211 $as_echo "$ac_try_echo") >&5
21212 (eval "$ac_link") 2>conftest.er1
21213 ac_status=$?
21214 grep -v '^ *+' conftest.er1 >conftest.err
21215 rm -f conftest.er1
21216 cat conftest.err >&5
21217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); } && {
21219 test -z "$ac_c_werror_flag" ||
21220 test ! -s conftest.err
21221 } && test -s conftest$ac_exeext && {
21222 test "$cross_compiling" = yes ||
21223 $as_test_x conftest$ac_exeext
21224 }; then
21225 eval "$as_ac_var=yes"
21226 else
21227 $as_echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21230 eval "$as_ac_var=no"
21233 rm -rf conftest.dSYM
21234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21235 conftest$ac_exeext conftest.$ac_ext
21237 ac_res=`eval 'as_val=${'$as_ac_var'}
21238 $as_echo "$as_val"'`
21239 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21240 $as_echo "$ac_res" >&6; }
21241 as_val=`eval 'as_val=${'$as_ac_var'}
21242 $as_echo "$as_val"'`
21243 if test "x$as_val" = x""yes; then
21244 cat >>confdefs.h <<_ACEOF
21245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21246 _ACEOF
21248 else
21249 { { $as_echo "$as_me:$LINENO: error: Required function not found" >&5
21250 $as_echo "$as_me: error: Required function not found" >&2;}
21251 { (exit 1); exit 1; }; }
21253 done
21256 echo "LIBREPLACE_BROKEN_CHECKS: END"
21259 #LIBREPLACE_ALL_CHECKS: END"
21261 CFLAGS="$CFLAGS -I$libreplacedir"
21265 case "$host_os" in
21266 *linux*|*gnu*)
21267 PICFLAG="-fPIC"
21269 *solaris*)
21270 if test "${GCC}" = "yes"; then
21271 PICFLAG="-fPIC"
21272 else
21273 PICFLAG="-KPIC"
21276 *sunos*)
21277 PICFLAG="-KPIC" # Is this correct for SunOS
21279 *netbsd* | *freebsd* | *dragonfly* )
21280 PICFLAG="-fPIC -DPIC"
21282 *openbsd*)
21283 PICFLAG="-fPIC"
21285 *irix*)
21286 if test "${GCC}" = "yes"; then
21287 PICFLAG="-fPIC"
21288 else
21289 PICFLAG="-KPIC"
21292 *aix*)
21293 # as AIX code is always position independent...
21294 PICFLAG="-O2"
21296 *hpux*)
21297 if test "${GCC}" = "yes"; then
21298 PICFLAG="-fPIC"
21299 elif test "$host_cpu" = "ia64"; then
21300 PICFLAG="+z"
21301 elif test $ac_cv_prog_cc_Ae = yes; then
21302 PICFLAG="+z +ESnolit"
21305 *osf*)
21306 PICFLAG="-fPIC"
21308 *unixware*)
21309 PICFLAG="-KPIC"
21311 *darwin*)
21312 PICFLAG="-fno-common"
21314 esac
21318 SHLIBEXT="so"
21319 case "$host_os" in
21320 *hpux*)
21321 if test "$host_cpu" = "ia64"; then
21322 SHLIBEXT="so"
21323 else
21324 SHLIBEXT="sl"
21327 *darwin*)
21328 SHLIBEXT="dylib"
21330 esac
21335 SONAMEFLAG=""
21336 case "$host_os" in
21337 *linux*|*gnu*|*qnx*)
21338 SONAMEFLAG="-Wl,-soname="
21340 *solaris*)
21341 SONAMEFLAG="-h "
21342 if test "${GCC}" = "yes"; then
21343 SONAMEFLAG="-Wl,-soname="
21346 *sunos*)
21347 SONAMEFLAG="-Wl,-h,"
21349 *netbsd* | *freebsd* | *dragonfly* )
21350 SONAMEFLAG="-Wl,-soname,"
21352 *openbsd*)
21353 SONAMEFLAG="-Wl,-soname,"
21355 *irix*)
21356 SONAMEFLAG="-Wl,-soname,"
21358 *hpux*)
21359 SONAMEFLAG="-Wl,+h,"
21361 *osf*)
21362 SONAMEFLAG="-Wl,-soname,"
21364 *unixware*)
21365 SONAMEFLAG="-Wl,-soname,"
21367 *darwin*)
21368 SONAMEFLAG="#"
21370 *aix*)
21371 # Not supported
21372 SONAMEFLAG="#"
21374 esac
21378 VERSIONSCRIPT=""
21379 case "$host_os" in
21380 *linux*|*gnu*)
21381 VERSIONSCRIPT="-Wl,--version-script"
21383 *solaris*)
21384 if test "${GCC}" = "yes"; then
21385 VERSIONSCRIPT="-Wl,--version-script"
21388 esac
21391 LD_SHLIB_LINKER="${CC}"
21393 case "$host_os" in
21394 *irix*)
21395 LD_SHLIB_LINKER="${PROG_LD}"
21397 esac
21403 SHLD="$LD_SHLIB_LINKER"
21407 LD_SHLIB_FLAGS="-shared"
21409 case "$host_os" in
21410 *linux*|*gnu*)
21411 LD_SHLIB_FLAGS="-shared -Wl,-Bsymbolic"
21413 *solaris*)
21414 LD_SHLIB_FLAGS="-G"
21415 if test "${GCC}" = "no"; then
21416 ## ${CFLAGS} added for building 64-bit shared
21417 ## libs using Sun's Compiler
21418 LD_SHLIB_FLAGS="-G \${CFLAGS}"
21421 *sunos*)
21422 LD_SHLIB_FLAGS="-G"
21424 *irix*)
21425 LD_SHLIB_FLAGS="-shared"
21427 *aix*)
21428 LD_SHLIB_FLAGS="-Wl,-G,-bexpall,-bbigtoc"
21430 *hpux*)
21431 if test "${GCC}" = "yes"; then
21432 LD_SHLIB_FLAGS="-shared"
21433 else
21434 LD_SHLIB_FLAGS="-b"
21437 *osf*)
21438 LD_SHLIB_FLAGS="-shared"
21440 *darwin*)
21441 LD_SHLIB_FLAGS="-dynamiclib -Wl,-search_paths_first"
21443 esac
21448 LD_SHLIB_DISALLOW_UNDEF_FLAG=""
21451 # TODO: enforce error not only warnings
21453 # NOTE: -Wl,--no-allow-shlib-undefined isn't what we want...
21454 # as it bails out on broken system libraries
21456 case "$host_os" in
21457 *osf*)
21458 LD_SHLIB_DISALLOW_UNDEF_FLAG="-warning_unresolved"
21460 *darwin*)
21461 LD_SHLIB_DISALLOW_UNDEF_FLAG="-undefined error"
21463 esac
21470 SHLD_FLAGS="$LD_SHLIB_FLAGS $LD_SHLIB_DISALLOW_UNDEF_FLAG"
21474 tallocdir=""
21475 tallocpaths=". lib/talloc talloc ../talloc ../lib/talloc"
21476 for d in $tallocpaths; do
21477 if test -f "$srcdir/$d/talloc.c"; then
21478 tallocdir="$d"
21480 break;
21482 done
21483 if test x"$tallocdir" = "x"; then
21484 { { $as_echo "$as_me:$LINENO: error: cannot find talloc source in $tallocpaths" >&5
21485 $as_echo "$as_me: error: cannot find talloc source in $tallocpaths" >&2;}
21486 { (exit 1); exit 1; }; }
21488 TALLOC_OBJ="talloc.o"
21491 TALLOC_CFLAGS="-I$srcdir/$tallocdir"
21494 TALLOC_LIBS=""
21497 # The cast to long int works around a bug in the HP C Compiler
21498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21500 # This bug is HP SR number 8606223364.
21501 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
21502 $as_echo_n "checking size of size_t... " >&6; }
21503 if test "${ac_cv_sizeof_size_t+set}" = set; then
21504 $as_echo_n "(cached) " >&6
21505 else
21506 if test "$cross_compiling" = yes; then
21507 # Depending upon the size, compute the lo and hi bounds.
21508 cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h. */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 $ac_includes_default
21516 main ()
21518 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
21519 test_array [0] = 0
21522 return 0;
21524 _ACEOF
21525 rm -f conftest.$ac_objext
21526 if { (ac_try="$ac_compile"
21527 case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21530 esac
21531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21532 $as_echo "$ac_try_echo") >&5
21533 (eval "$ac_compile") 2>conftest.er1
21534 ac_status=$?
21535 grep -v '^ *+' conftest.er1 >conftest.err
21536 rm -f conftest.er1
21537 cat conftest.err >&5
21538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } && {
21540 test -z "$ac_c_werror_flag" ||
21541 test ! -s conftest.err
21542 } && test -s conftest.$ac_objext; then
21543 ac_lo=0 ac_mid=0
21544 while :; do
21545 cat >conftest.$ac_ext <<_ACEOF
21546 /* confdefs.h. */
21547 _ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h. */
21551 $ac_includes_default
21553 main ()
21555 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
21556 test_array [0] = 0
21559 return 0;
21561 _ACEOF
21562 rm -f conftest.$ac_objext
21563 if { (ac_try="$ac_compile"
21564 case "(($ac_try" in
21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566 *) ac_try_echo=$ac_try;;
21567 esac
21568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21569 $as_echo "$ac_try_echo") >&5
21570 (eval "$ac_compile") 2>conftest.er1
21571 ac_status=$?
21572 grep -v '^ *+' conftest.er1 >conftest.err
21573 rm -f conftest.er1
21574 cat conftest.err >&5
21575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } && {
21577 test -z "$ac_c_werror_flag" ||
21578 test ! -s conftest.err
21579 } && test -s conftest.$ac_objext; then
21580 ac_hi=$ac_mid; break
21581 else
21582 $as_echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 ac_lo=`expr $ac_mid + 1`
21586 if test $ac_lo -le $ac_mid; then
21587 ac_lo= ac_hi=
21588 break
21590 ac_mid=`expr 2 '*' $ac_mid + 1`
21593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21594 done
21595 else
21596 $as_echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21599 cat >conftest.$ac_ext <<_ACEOF
21600 /* confdefs.h. */
21601 _ACEOF
21602 cat confdefs.h >>conftest.$ac_ext
21603 cat >>conftest.$ac_ext <<_ACEOF
21604 /* end confdefs.h. */
21605 $ac_includes_default
21607 main ()
21609 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
21610 test_array [0] = 0
21613 return 0;
21615 _ACEOF
21616 rm -f conftest.$ac_objext
21617 if { (ac_try="$ac_compile"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21621 esac
21622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21623 $as_echo "$ac_try_echo") >&5
21624 (eval "$ac_compile") 2>conftest.er1
21625 ac_status=$?
21626 grep -v '^ *+' conftest.er1 >conftest.err
21627 rm -f conftest.er1
21628 cat conftest.err >&5
21629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } && {
21631 test -z "$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21633 } && test -s conftest.$ac_objext; then
21634 ac_hi=-1 ac_mid=-1
21635 while :; do
21636 cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h. */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h. */
21642 $ac_includes_default
21644 main ()
21646 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
21647 test_array [0] = 0
21650 return 0;
21652 _ACEOF
21653 rm -f conftest.$ac_objext
21654 if { (ac_try="$ac_compile"
21655 case "(($ac_try" in
21656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21658 esac
21659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21660 $as_echo "$ac_try_echo") >&5
21661 (eval "$ac_compile") 2>conftest.er1
21662 ac_status=$?
21663 grep -v '^ *+' conftest.er1 >conftest.err
21664 rm -f conftest.er1
21665 cat conftest.err >&5
21666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } && {
21668 test -z "$ac_c_werror_flag" ||
21669 test ! -s conftest.err
21670 } && test -s conftest.$ac_objext; then
21671 ac_lo=$ac_mid; break
21672 else
21673 $as_echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21676 ac_hi=`expr '(' $ac_mid ')' - 1`
21677 if test $ac_mid -le $ac_hi; then
21678 ac_lo= ac_hi=
21679 break
21681 ac_mid=`expr 2 '*' $ac_mid`
21684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21685 done
21686 else
21687 $as_echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21690 ac_lo= ac_hi=
21693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697 # Binary search between lo and hi bounds.
21698 while test "x$ac_lo" != "x$ac_hi"; do
21699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21700 cat >conftest.$ac_ext <<_ACEOF
21701 /* confdefs.h. */
21702 _ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21706 $ac_includes_default
21708 main ()
21710 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
21711 test_array [0] = 0
21714 return 0;
21716 _ACEOF
21717 rm -f conftest.$ac_objext
21718 if { (ac_try="$ac_compile"
21719 case "(($ac_try" in
21720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21721 *) ac_try_echo=$ac_try;;
21722 esac
21723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21724 $as_echo "$ac_try_echo") >&5
21725 (eval "$ac_compile") 2>conftest.er1
21726 ac_status=$?
21727 grep -v '^ *+' conftest.er1 >conftest.err
21728 rm -f conftest.er1
21729 cat conftest.err >&5
21730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } && {
21732 test -z "$ac_c_werror_flag" ||
21733 test ! -s conftest.err
21734 } && test -s conftest.$ac_objext; then
21735 ac_hi=$ac_mid
21736 else
21737 $as_echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 ac_lo=`expr '(' $ac_mid ')' + 1`
21743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21744 done
21745 case $ac_lo in
21746 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21747 '') if test "$ac_cv_type_size_t" = yes; then
21748 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21750 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21751 See \`config.log' for more details." >&5
21752 $as_echo "$as_me: error: cannot compute sizeof (size_t)
21753 See \`config.log' for more details." >&2;}
21754 { (exit 77); exit 77; }; }; }
21755 else
21756 ac_cv_sizeof_size_t=0
21757 fi ;;
21758 esac
21759 else
21760 cat >conftest.$ac_ext <<_ACEOF
21761 /* confdefs.h. */
21762 _ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h. */
21766 $ac_includes_default
21767 static long int longval () { return (long int) (sizeof (size_t)); }
21768 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
21769 #include <stdio.h>
21770 #include <stdlib.h>
21772 main ()
21775 FILE *f = fopen ("conftest.val", "w");
21776 if (! f)
21777 return 1;
21778 if (((long int) (sizeof (size_t))) < 0)
21780 long int i = longval ();
21781 if (i != ((long int) (sizeof (size_t))))
21782 return 1;
21783 fprintf (f, "%ld", i);
21785 else
21787 unsigned long int i = ulongval ();
21788 if (i != ((long int) (sizeof (size_t))))
21789 return 1;
21790 fprintf (f, "%lu", i);
21792 /* Do not output a trailing newline, as this causes \r\n confusion
21793 on some platforms. */
21794 return ferror (f) || fclose (f) != 0;
21797 return 0;
21799 _ACEOF
21800 rm -f conftest$ac_exeext
21801 if { (ac_try="$ac_link"
21802 case "(($ac_try" in
21803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804 *) ac_try_echo=$ac_try;;
21805 esac
21806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21807 $as_echo "$ac_try_echo") >&5
21808 (eval "$ac_link") 2>&5
21809 ac_status=$?
21810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21812 { (case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21815 esac
21816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21817 $as_echo "$ac_try_echo") >&5
21818 (eval "$ac_try") 2>&5
21819 ac_status=$?
21820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); }; }; then
21822 ac_cv_sizeof_size_t=`cat conftest.val`
21823 else
21824 $as_echo "$as_me: program exited with status $ac_status" >&5
21825 $as_echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21828 ( exit $ac_status )
21829 if test "$ac_cv_type_size_t" = yes; then
21830 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21832 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21833 See \`config.log' for more details." >&5
21834 $as_echo "$as_me: error: cannot compute sizeof (size_t)
21835 See \`config.log' for more details." >&2;}
21836 { (exit 77); exit 77; }; }; }
21837 else
21838 ac_cv_sizeof_size_t=0
21841 rm -rf conftest.dSYM
21842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21844 rm -f conftest.val
21846 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21847 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21851 cat >>confdefs.h <<_ACEOF
21852 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21853 _ACEOF
21856 # The cast to long int works around a bug in the HP C Compiler
21857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21859 # This bug is HP SR number 8606223364.
21860 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
21861 $as_echo_n "checking size of void *... " >&6; }
21862 if test "${ac_cv_sizeof_void_p+set}" = set; then
21863 $as_echo_n "(cached) " >&6
21864 else
21865 if test "$cross_compiling" = yes; then
21866 # Depending upon the size, compute the lo and hi bounds.
21867 cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h. */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 $ac_includes_default
21875 main ()
21877 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
21878 test_array [0] = 0
21881 return 0;
21883 _ACEOF
21884 rm -f conftest.$ac_objext
21885 if { (ac_try="$ac_compile"
21886 case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21889 esac
21890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21891 $as_echo "$ac_try_echo") >&5
21892 (eval "$ac_compile") 2>conftest.er1
21893 ac_status=$?
21894 grep -v '^ *+' conftest.er1 >conftest.err
21895 rm -f conftest.er1
21896 cat conftest.err >&5
21897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } && {
21899 test -z "$ac_c_werror_flag" ||
21900 test ! -s conftest.err
21901 } && test -s conftest.$ac_objext; then
21902 ac_lo=0 ac_mid=0
21903 while :; do
21904 cat >conftest.$ac_ext <<_ACEOF
21905 /* confdefs.h. */
21906 _ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 $ac_includes_default
21912 main ()
21914 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
21915 test_array [0] = 0
21918 return 0;
21920 _ACEOF
21921 rm -f conftest.$ac_objext
21922 if { (ac_try="$ac_compile"
21923 case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21926 esac
21927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21928 $as_echo "$ac_try_echo") >&5
21929 (eval "$ac_compile") 2>conftest.er1
21930 ac_status=$?
21931 grep -v '^ *+' conftest.er1 >conftest.err
21932 rm -f conftest.er1
21933 cat conftest.err >&5
21934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); } && {
21936 test -z "$ac_c_werror_flag" ||
21937 test ! -s conftest.err
21938 } && test -s conftest.$ac_objext; then
21939 ac_hi=$ac_mid; break
21940 else
21941 $as_echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ac_lo=`expr $ac_mid + 1`
21945 if test $ac_lo -le $ac_mid; then
21946 ac_lo= ac_hi=
21947 break
21949 ac_mid=`expr 2 '*' $ac_mid + 1`
21952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21953 done
21954 else
21955 $as_echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h. */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 $ac_includes_default
21966 main ()
21968 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
21969 test_array [0] = 0
21972 return 0;
21974 _ACEOF
21975 rm -f conftest.$ac_objext
21976 if { (ac_try="$ac_compile"
21977 case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21980 esac
21981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21982 $as_echo "$ac_try_echo") >&5
21983 (eval "$ac_compile") 2>conftest.er1
21984 ac_status=$?
21985 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1
21987 cat conftest.err >&5
21988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } && {
21990 test -z "$ac_c_werror_flag" ||
21991 test ! -s conftest.err
21992 } && test -s conftest.$ac_objext; then
21993 ac_hi=-1 ac_mid=-1
21994 while :; do
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h. */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 $ac_includes_default
22003 main ()
22005 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
22006 test_array [0] = 0
22009 return 0;
22011 _ACEOF
22012 rm -f conftest.$ac_objext
22013 if { (ac_try="$ac_compile"
22014 case "(($ac_try" in
22015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22016 *) ac_try_echo=$ac_try;;
22017 esac
22018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22019 $as_echo "$ac_try_echo") >&5
22020 (eval "$ac_compile") 2>conftest.er1
22021 ac_status=$?
22022 grep -v '^ *+' conftest.er1 >conftest.err
22023 rm -f conftest.er1
22024 cat conftest.err >&5
22025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } && {
22027 test -z "$ac_c_werror_flag" ||
22028 test ! -s conftest.err
22029 } && test -s conftest.$ac_objext; then
22030 ac_lo=$ac_mid; break
22031 else
22032 $as_echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22035 ac_hi=`expr '(' $ac_mid ')' - 1`
22036 if test $ac_mid -le $ac_hi; then
22037 ac_lo= ac_hi=
22038 break
22040 ac_mid=`expr 2 '*' $ac_mid`
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044 done
22045 else
22046 $as_echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22049 ac_lo= ac_hi=
22052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 # Binary search between lo and hi bounds.
22057 while test "x$ac_lo" != "x$ac_hi"; do
22058 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h. */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 $ac_includes_default
22067 main ()
22069 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
22070 test_array [0] = 0
22073 return 0;
22075 _ACEOF
22076 rm -f conftest.$ac_objext
22077 if { (ac_try="$ac_compile"
22078 case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22081 esac
22082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22083 $as_echo "$ac_try_echo") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22085 ac_status=$?
22086 grep -v '^ *+' conftest.er1 >conftest.err
22087 rm -f conftest.er1
22088 cat conftest.err >&5
22089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22094 ac_hi=$ac_mid
22095 else
22096 $as_echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_lo=`expr '(' $ac_mid ')' + 1`
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 done
22104 case $ac_lo in
22105 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22106 '') if test "$ac_cv_type_void_p" = yes; then
22107 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22109 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22110 See \`config.log' for more details." >&5
22111 $as_echo "$as_me: error: cannot compute sizeof (void *)
22112 See \`config.log' for more details." >&2;}
22113 { (exit 77); exit 77; }; }; }
22114 else
22115 ac_cv_sizeof_void_p=0
22116 fi ;;
22117 esac
22118 else
22119 cat >conftest.$ac_ext <<_ACEOF
22120 /* confdefs.h. */
22121 _ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h. */
22125 $ac_includes_default
22126 static long int longval () { return (long int) (sizeof (void *)); }
22127 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
22128 #include <stdio.h>
22129 #include <stdlib.h>
22131 main ()
22134 FILE *f = fopen ("conftest.val", "w");
22135 if (! f)
22136 return 1;
22137 if (((long int) (sizeof (void *))) < 0)
22139 long int i = longval ();
22140 if (i != ((long int) (sizeof (void *))))
22141 return 1;
22142 fprintf (f, "%ld", i);
22144 else
22146 unsigned long int i = ulongval ();
22147 if (i != ((long int) (sizeof (void *))))
22148 return 1;
22149 fprintf (f, "%lu", i);
22151 /* Do not output a trailing newline, as this causes \r\n confusion
22152 on some platforms. */
22153 return ferror (f) || fclose (f) != 0;
22156 return 0;
22158 _ACEOF
22159 rm -f conftest$ac_exeext
22160 if { (ac_try="$ac_link"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22164 esac
22165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22166 $as_echo "$ac_try_echo") >&5
22167 (eval "$ac_link") 2>&5
22168 ac_status=$?
22169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22171 { (case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22174 esac
22175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22176 $as_echo "$ac_try_echo") >&5
22177 (eval "$ac_try") 2>&5
22178 ac_status=$?
22179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; }; then
22181 ac_cv_sizeof_void_p=`cat conftest.val`
22182 else
22183 $as_echo "$as_me: program exited with status $ac_status" >&5
22184 $as_echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 ( exit $ac_status )
22188 if test "$ac_cv_type_void_p" = yes; then
22189 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22191 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22192 See \`config.log' for more details." >&5
22193 $as_echo "$as_me: error: cannot compute sizeof (void *)
22194 See \`config.log' for more details." >&2;}
22195 { (exit 77); exit 77; }; }; }
22196 else
22197 ac_cv_sizeof_void_p=0
22200 rm -rf conftest.dSYM
22201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22203 rm -f conftest.val
22205 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22206 $as_echo "$ac_cv_sizeof_void_p" >&6; }
22210 cat >>confdefs.h <<_ACEOF
22211 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22212 _ACEOF
22216 if test $ac_cv_sizeof_size_t -lt $ac_cv_sizeof_void_p; then
22217 { $as_echo "$as_me:$LINENO: WARNING: size_t cannot represent the amount of used memory of a process" >&5
22218 $as_echo "$as_me: WARNING: size_t cannot represent the amount of used memory of a process" >&2;}
22219 { $as_echo "$as_me:$LINENO: WARNING: please report this to <samba-technical@samba.org>" >&5
22220 $as_echo "$as_me: WARNING: please report this to <samba-technical@samba.org>" >&2;}
22221 { $as_echo "$as_me:$LINENO: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&5
22222 $as_echo "$as_me: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&2;}
22223 { $as_echo "$as_me:$LINENO: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&5
22224 $as_echo "$as_me: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&2;}
22225 { { $as_echo "$as_me:$LINENO: error: sizeof(size_t) < sizeof(void *)" >&5
22226 $as_echo "$as_me: error: sizeof(size_t) < sizeof(void *)" >&2;}
22227 { (exit 1); exit 1; }; }
22230 if test x"$VERSIONSCRIPT" != "x"; then
22231 EXPORTSFILE=talloc.exports
22235 TALLOC_COMPAT1_MK=""
22238 # Check whether --enable-talloc-compat1 was given.
22239 if test "${enable_talloc_compat1+set}" = set; then
22240 enableval=$enable_talloc_compat1; enable_talloc_compat1=$enableval
22241 else
22242 enable_talloc_compat1=no
22247 if test "x$enable_talloc_compat1" = x"yes"; then
22248 TALLOC_COMPAT1_MK='include $(tallocdir)/compat/talloc_compat1.mk'
22253 # Extract the first word of "xsltproc", so it can be a program name with args.
22254 set dummy xsltproc; ac_word=$2
22255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22256 $as_echo_n "checking for $ac_word... " >&6; }
22257 if test "${ac_cv_path_XSLTPROC+set}" = set; then
22258 $as_echo_n "(cached) " >&6
22259 else
22260 case $XSLTPROC in
22261 [\\/]* | ?:[\\/]*)
22262 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
22265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22266 for as_dir in $PATH
22268 IFS=$as_save_IFS
22269 test -z "$as_dir" && as_dir=.
22270 for ac_exec_ext in '' $ac_executable_extensions; do
22271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22272 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
22273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22274 break 2
22276 done
22277 done
22278 IFS=$as_save_IFS
22281 esac
22283 XSLTPROC=$ac_cv_path_XSLTPROC
22284 if test -n "$XSLTPROC"; then
22285 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
22286 $as_echo "$XSLTPROC" >&6; }
22287 else
22288 { $as_echo "$as_me:$LINENO: result: no" >&5
22289 $as_echo "no" >&6; }
22293 DOC_TARGET=""
22294 if test -n "$XSLTPROC"; then
22295 DOC_TARGET=doc
22303 # Check whether --with-shared-build-dir was given.
22304 if test "${with_shared_build_dir+set}" = set; then
22305 withval=$with_shared_build_dir;
22309 sharedbuilddir="$srcdir/sharedbuild"
22310 if test x"$with_shared_build_dir" != x; then
22311 sharedbuilddir=$with_shared_build_dir
22312 CFLAGS="$CFLAGS -I$with_shared_build_dir/include"
22313 LDFLAGS="$LDFLAGS -L$with_shared_build_dir/lib"
22318 ac_config_files="$ac_config_files Makefile talloc.pc"
22320 cat >confcache <<\_ACEOF
22321 # This file is a shell script that caches the results of configure
22322 # tests run on this system so they can be shared between configure
22323 # scripts and configure runs, see configure's option --config-cache.
22324 # It is not useful on other systems. If it contains results you don't
22325 # want to keep, you may remove or edit it.
22327 # config.status only pays attention to the cache file if you give it
22328 # the --recheck option to rerun configure.
22330 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22331 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22332 # following values.
22334 _ACEOF
22336 # The following way of writing the cache mishandles newlines in values,
22337 # but we know of no workaround that is simple, portable, and efficient.
22338 # So, we kill variables containing newlines.
22339 # Ultrix sh set writes to stderr and can't be redirected directly,
22340 # and sets the high bit in the cache file unless we assign to the vars.
22342 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22343 eval ac_val=\$$ac_var
22344 case $ac_val in #(
22345 *${as_nl}*)
22346 case $ac_var in #(
22347 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22348 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22349 esac
22350 case $ac_var in #(
22351 _ | IFS | as_nl) ;; #(
22352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22353 *) $as_unset $ac_var ;;
22354 esac ;;
22355 esac
22356 done
22358 (set) 2>&1 |
22359 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22360 *${as_nl}ac_space=\ *)
22361 # `set' does not quote correctly, so add quotes (double-quote
22362 # substitution turns \\\\ into \\, and sed turns \\ into \).
22363 sed -n \
22364 "s/'/'\\\\''/g;
22365 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22366 ;; #(
22368 # `set' quotes correctly as required by POSIX, so do not add quotes.
22369 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22371 esac |
22372 sort
22374 sed '
22375 /^ac_cv_env_/b end
22376 t clear
22377 :clear
22378 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22379 t end
22380 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22381 :end' >>confcache
22382 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22383 if test -w "$cache_file"; then
22384 test "x$cache_file" != "x/dev/null" &&
22385 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22386 $as_echo "$as_me: updating cache $cache_file" >&6;}
22387 cat confcache >$cache_file
22388 else
22389 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22390 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22393 rm -f confcache
22395 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22396 # Let make expand exec_prefix.
22397 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22399 DEFS=-DHAVE_CONFIG_H
22401 ac_libobjs=
22402 ac_ltlibobjs=
22403 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22404 # 1. Remove the extension, and $U if already installed.
22405 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22406 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22407 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22408 # will be set to the directory where LIBOBJS objects are built.
22409 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22410 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22411 done
22412 LIBOBJS=$ac_libobjs
22414 LTLIBOBJS=$ac_ltlibobjs
22419 : ${CONFIG_STATUS=./config.status}
22420 ac_write_fail=0
22421 ac_clean_files_save=$ac_clean_files
22422 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22423 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22424 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22425 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22426 #! $SHELL
22427 # Generated by $as_me.
22428 # Run this file to recreate the current configuration.
22429 # Compiler output produced by configure, useful for debugging
22430 # configure, is in config.log if it exists.
22432 debug=false
22433 ac_cs_recheck=false
22434 ac_cs_silent=false
22435 SHELL=\${CONFIG_SHELL-$SHELL}
22436 _ACEOF
22438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22439 ## --------------------- ##
22440 ## M4sh Initialization. ##
22441 ## --------------------- ##
22443 # Be more Bourne compatible
22444 DUALCASE=1; export DUALCASE # for MKS sh
22445 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22446 emulate sh
22447 NULLCMD=:
22448 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22449 # is contrary to our usage. Disable this feature.
22450 alias -g '${1+"$@"}'='"$@"'
22451 setopt NO_GLOB_SUBST
22452 else
22453 case `(set -o) 2>/dev/null` in
22454 *posix*) set -o posix ;;
22455 esac
22462 # PATH needs CR
22463 # Avoid depending upon Character Ranges.
22464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22467 as_cr_digits='0123456789'
22468 as_cr_alnum=$as_cr_Letters$as_cr_digits
22470 as_nl='
22472 export as_nl
22473 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22474 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22476 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22477 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22478 as_echo='printf %s\n'
22479 as_echo_n='printf %s'
22480 else
22481 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22482 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22483 as_echo_n='/usr/ucb/echo -n'
22484 else
22485 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22486 as_echo_n_body='eval
22487 arg=$1;
22488 case $arg in
22489 *"$as_nl"*)
22490 expr "X$arg" : "X\\(.*\\)$as_nl";
22491 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22492 esac;
22493 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22495 export as_echo_n_body
22496 as_echo_n='sh -c $as_echo_n_body as_echo'
22498 export as_echo_body
22499 as_echo='sh -c $as_echo_body as_echo'
22502 # The user is always right.
22503 if test "${PATH_SEPARATOR+set}" != set; then
22504 PATH_SEPARATOR=:
22505 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22506 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22507 PATH_SEPARATOR=';'
22511 # Support unset when possible.
22512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22513 as_unset=unset
22514 else
22515 as_unset=false
22519 # IFS
22520 # We need space, tab and new line, in precisely that order. Quoting is
22521 # there to prevent editors from complaining about space-tab.
22522 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22523 # splitting by setting IFS to empty value.)
22524 IFS=" "" $as_nl"
22526 # Find who we are. Look in the path if we contain no directory separator.
22527 case $0 in
22528 *[\\/]* ) as_myself=$0 ;;
22529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22530 for as_dir in $PATH
22532 IFS=$as_save_IFS
22533 test -z "$as_dir" && as_dir=.
22534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22535 done
22536 IFS=$as_save_IFS
22539 esac
22540 # We did not find ourselves, most probably we were run as `sh COMMAND'
22541 # in which case we are not to be found in the path.
22542 if test "x$as_myself" = x; then
22543 as_myself=$0
22545 if test ! -f "$as_myself"; then
22546 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22547 { (exit 1); exit 1; }
22550 # Work around bugs in pre-3.0 UWIN ksh.
22551 for as_var in ENV MAIL MAILPATH
22552 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22553 done
22554 PS1='$ '
22555 PS2='> '
22556 PS4='+ '
22558 # NLS nuisances.
22559 LC_ALL=C
22560 export LC_ALL
22561 LANGUAGE=C
22562 export LANGUAGE
22564 # Required to use basename.
22565 if expr a : '\(a\)' >/dev/null 2>&1 &&
22566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22567 as_expr=expr
22568 else
22569 as_expr=false
22572 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22573 as_basename=basename
22574 else
22575 as_basename=false
22579 # Name of the executable.
22580 as_me=`$as_basename -- "$0" ||
22581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22582 X"$0" : 'X\(//\)$' \| \
22583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22584 $as_echo X/"$0" |
22585 sed '/^.*\/\([^/][^/]*\)\/*$/{
22586 s//\1/
22589 /^X\/\(\/\/\)$/{
22590 s//\1/
22593 /^X\/\(\/\).*/{
22594 s//\1/
22597 s/.*/./; q'`
22599 # CDPATH.
22600 $as_unset CDPATH
22604 as_lineno_1=$LINENO
22605 as_lineno_2=$LINENO
22606 test "x$as_lineno_1" != "x$as_lineno_2" &&
22607 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22609 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22610 # uniformly replaced by the line number. The first 'sed' inserts a
22611 # line-number line after each line using $LINENO; the second 'sed'
22612 # does the real work. The second script uses 'N' to pair each
22613 # line-number line with the line containing $LINENO, and appends
22614 # trailing '-' during substitution so that $LINENO is not a special
22615 # case at line end.
22616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22617 # scripts with optimization help from Paolo Bonzini. Blame Lee
22618 # E. McMahon (1931-1989) for sed's syntax. :-)
22619 sed -n '
22621 /[$]LINENO/=
22622 ' <$as_myself |
22623 sed '
22624 s/[$]LINENO.*/&-/
22625 t lineno
22627 :lineno
22629 :loop
22630 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22631 t loop
22632 s/-\n.*//
22633 ' >$as_me.lineno &&
22634 chmod +x "$as_me.lineno" ||
22635 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22636 { (exit 1); exit 1; }; }
22638 # Don't try to exec as it changes $[0], causing all sort of problems
22639 # (the dirname of $[0] is not the place where we might find the
22640 # original and so on. Autoconf is especially sensitive to this).
22641 . "./$as_me.lineno"
22642 # Exit status is that of the last command.
22643 exit
22647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22648 as_dirname=dirname
22649 else
22650 as_dirname=false
22653 ECHO_C= ECHO_N= ECHO_T=
22654 case `echo -n x` in
22655 -n*)
22656 case `echo 'x\c'` in
22657 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22658 *) ECHO_C='\c';;
22659 esac;;
22661 ECHO_N='-n';;
22662 esac
22663 if expr a : '\(a\)' >/dev/null 2>&1 &&
22664 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22665 as_expr=expr
22666 else
22667 as_expr=false
22670 rm -f conf$$ conf$$.exe conf$$.file
22671 if test -d conf$$.dir; then
22672 rm -f conf$$.dir/conf$$.file
22673 else
22674 rm -f conf$$.dir
22675 mkdir conf$$.dir 2>/dev/null
22677 if (echo >conf$$.file) 2>/dev/null; then
22678 if ln -s conf$$.file conf$$ 2>/dev/null; then
22679 as_ln_s='ln -s'
22680 # ... but there are two gotchas:
22681 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22682 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22683 # In both cases, we have to default to `cp -p'.
22684 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22685 as_ln_s='cp -p'
22686 elif ln conf$$.file conf$$ 2>/dev/null; then
22687 as_ln_s=ln
22688 else
22689 as_ln_s='cp -p'
22691 else
22692 as_ln_s='cp -p'
22694 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22695 rmdir conf$$.dir 2>/dev/null
22697 if mkdir -p . 2>/dev/null; then
22698 as_mkdir_p=:
22699 else
22700 test -d ./-p && rmdir ./-p
22701 as_mkdir_p=false
22704 if test -x / >/dev/null 2>&1; then
22705 as_test_x='test -x'
22706 else
22707 if ls -dL / >/dev/null 2>&1; then
22708 as_ls_L_option=L
22709 else
22710 as_ls_L_option=
22712 as_test_x='
22713 eval sh -c '\''
22714 if test -d "$1"; then
22715 test -d "$1/.";
22716 else
22717 case $1 in
22718 -*)set "./$1";;
22719 esac;
22720 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22721 ???[sx]*):;;*)false;;esac;fi
22722 '\'' sh
22725 as_executable_p=$as_test_x
22727 # Sed expression to map a string onto a valid CPP name.
22728 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22730 # Sed expression to map a string onto a valid variable name.
22731 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22734 exec 6>&1
22736 # Save the log message, to keep $[0] and so on meaningful, and to
22737 # report actual input values of CONFIG_FILES etc. instead of their
22738 # values after options handling.
22739 ac_log="
22740 This file was extended by talloc $as_me 2.0.1, which was
22741 generated by GNU Autoconf 2.63. Invocation command line was
22743 CONFIG_FILES = $CONFIG_FILES
22744 CONFIG_HEADERS = $CONFIG_HEADERS
22745 CONFIG_LINKS = $CONFIG_LINKS
22746 CONFIG_COMMANDS = $CONFIG_COMMANDS
22747 $ $0 $@
22749 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22752 _ACEOF
22754 case $ac_config_files in *"
22755 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22756 esac
22758 case $ac_config_headers in *"
22759 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22760 esac
22763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22764 # Files that config.status was made for.
22765 config_files="$ac_config_files"
22766 config_headers="$ac_config_headers"
22767 config_commands="$ac_config_commands"
22769 _ACEOF
22771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22772 ac_cs_usage="\
22773 \`$as_me' instantiates files from templates according to the
22774 current configuration.
22776 Usage: $0 [OPTION]... [FILE]...
22778 -h, --help print this help, then exit
22779 -V, --version print version number and configuration settings, then exit
22780 -q, --quiet, --silent
22781 do not print progress messages
22782 -d, --debug don't remove temporary files
22783 --recheck update $as_me by reconfiguring in the same conditions
22784 --file=FILE[:TEMPLATE]
22785 instantiate the configuration file FILE
22786 --header=FILE[:TEMPLATE]
22787 instantiate the configuration header FILE
22789 Configuration files:
22790 $config_files
22792 Configuration headers:
22793 $config_headers
22795 Configuration commands:
22796 $config_commands
22798 Report bugs to <bug-autoconf@gnu.org>."
22800 _ACEOF
22801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22802 ac_cs_version="\\
22803 talloc config.status 2.0.1
22804 configured by $0, generated by GNU Autoconf 2.63,
22805 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22807 Copyright (C) 2008 Free Software Foundation, Inc.
22808 This config.status script is free software; the Free Software Foundation
22809 gives unlimited permission to copy, distribute and modify it."
22811 ac_pwd='$ac_pwd'
22812 srcdir='$srcdir'
22813 INSTALL='$INSTALL'
22814 test -n "\$AWK" || AWK=awk
22815 _ACEOF
22817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22818 # The default lists apply if the user does not specify any file.
22819 ac_need_defaults=:
22820 while test $# != 0
22822 case $1 in
22823 --*=*)
22824 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22825 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22826 ac_shift=:
22829 ac_option=$1
22830 ac_optarg=$2
22831 ac_shift=shift
22833 esac
22835 case $ac_option in
22836 # Handling of the options.
22837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22838 ac_cs_recheck=: ;;
22839 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22840 $as_echo "$ac_cs_version"; exit ;;
22841 --debug | --debu | --deb | --de | --d | -d )
22842 debug=: ;;
22843 --file | --fil | --fi | --f )
22844 $ac_shift
22845 case $ac_optarg in
22846 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22847 esac
22848 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22849 ac_need_defaults=false;;
22850 --header | --heade | --head | --hea )
22851 $ac_shift
22852 case $ac_optarg in
22853 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22854 esac
22855 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22856 ac_need_defaults=false;;
22857 --he | --h)
22858 # Conflict between --help and --header
22859 { $as_echo "$as_me: error: ambiguous option: $1
22860 Try \`$0 --help' for more information." >&2
22861 { (exit 1); exit 1; }; };;
22862 --help | --hel | -h )
22863 $as_echo "$ac_cs_usage"; exit ;;
22864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22865 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22866 ac_cs_silent=: ;;
22868 # This is an error.
22869 -*) { $as_echo "$as_me: error: unrecognized option: $1
22870 Try \`$0 --help' for more information." >&2
22871 { (exit 1); exit 1; }; } ;;
22873 *) ac_config_targets="$ac_config_targets $1"
22874 ac_need_defaults=false ;;
22876 esac
22877 shift
22878 done
22880 ac_configure_extra_args=
22882 if $ac_cs_silent; then
22883 exec 6>/dev/null
22884 ac_configure_extra_args="$ac_configure_extra_args --silent"
22887 _ACEOF
22888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22889 if \$ac_cs_recheck; then
22890 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22891 shift
22892 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22893 CONFIG_SHELL='$SHELL'
22894 export CONFIG_SHELL
22895 exec "\$@"
22898 _ACEOF
22899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22900 exec 5>>config.log
22902 echo
22903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22904 ## Running $as_me. ##
22905 _ASBOX
22906 $as_echo "$ac_log"
22907 } >&5
22909 _ACEOF
22910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22912 # INIT-COMMANDS
22914 libreplacedir=$libreplacedir
22915 libreplacedir=$libreplacedir
22916 libreplacedir=$libreplacedir
22917 libreplacedir=$libreplacedir
22919 _ACEOF
22921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22923 # Handling of arguments.
22924 for ac_config_target in $ac_config_targets
22926 case $ac_config_target in
22927 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22928 "rm-stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rm-stdint.h" ;;
22929 "mk-stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS mk-stdint.h" ;;
22930 "rm-stdbool.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rm-stdbool.h" ;;
22931 "mk-stdbool.h") CONFIG_COMMANDS="$CONFIG_COMMANDS mk-stdbool.h" ;;
22932 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22933 "talloc.pc") CONFIG_FILES="$CONFIG_FILES talloc.pc" ;;
22935 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22936 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22937 { (exit 1); exit 1; }; };;
22938 esac
22939 done
22942 # If the user did not use the arguments to specify the items to instantiate,
22943 # then the envvar interface is used. Set only those that are not.
22944 # We use the long form for the default assignment because of an extremely
22945 # bizarre bug on SunOS 4.1.3.
22946 if $ac_need_defaults; then
22947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22952 # Have a temporary directory for convenience. Make it in the build tree
22953 # simply because there is no reason against having it here, and in addition,
22954 # creating and moving files from /tmp can sometimes cause problems.
22955 # Hook for its removal unless debugging.
22956 # Note that there is a small window in which the directory will not be cleaned:
22957 # after its creation but before its name has been assigned to `$tmp'.
22958 $debug ||
22960 tmp=
22961 trap 'exit_status=$?
22962 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22964 trap '{ (exit 1); exit 1; }' 1 2 13 15
22966 # Create a (secure) tmp directory for tmp files.
22969 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22970 test -n "$tmp" && test -d "$tmp"
22971 } ||
22973 tmp=./conf$$-$RANDOM
22974 (umask 077 && mkdir "$tmp")
22975 } ||
22977 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22978 { (exit 1); exit 1; }
22981 # Set up the scripts for CONFIG_FILES section.
22982 # No need to generate them if there are no CONFIG_FILES.
22983 # This happens for instance with `./config.status config.h'.
22984 if test -n "$CONFIG_FILES"; then
22987 ac_cr=' '
22988 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22989 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22990 ac_cs_awk_cr='\\r'
22991 else
22992 ac_cs_awk_cr=$ac_cr
22995 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22996 _ACEOF
23000 echo "cat >conf$$subs.awk <<_ACEOF" &&
23001 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23002 echo "_ACEOF"
23003 } >conf$$subs.sh ||
23004 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23005 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23006 { (exit 1); exit 1; }; }
23007 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23008 ac_delim='%!_!# '
23009 for ac_last_try in false false false false false :; do
23010 . ./conf$$subs.sh ||
23011 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23012 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23013 { (exit 1); exit 1; }; }
23015 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23016 if test $ac_delim_n = $ac_delim_num; then
23017 break
23018 elif $ac_last_try; then
23019 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23020 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23021 { (exit 1); exit 1; }; }
23022 else
23023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23025 done
23026 rm -f conf$$subs.sh
23028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23029 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23030 _ACEOF
23031 sed -n '
23033 s/^/S["/; s/!.*/"]=/
23036 s/^[^!]*!//
23037 :repl
23038 t repl
23039 s/'"$ac_delim"'$//
23040 t delim
23043 s/\(.\{148\}\).*/\1/
23044 t more1
23045 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23048 b repl
23049 :more1
23050 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23053 s/.\{148\}//
23054 t nl
23055 :delim
23057 s/\(.\{148\}\).*/\1/
23058 t more2
23059 s/["\\]/\\&/g; s/^/"/; s/$/"/
23062 :more2
23063 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23066 s/.\{148\}//
23067 t delim
23068 ' <conf$$subs.awk | sed '
23069 /^[^""]/{
23071 s/\n//
23073 ' >>$CONFIG_STATUS || ac_write_fail=1
23074 rm -f conf$$subs.awk
23075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23076 _ACAWK
23077 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23078 for (key in S) S_is_set[key] = 1
23079 FS = "\a"
23083 line = $ 0
23084 nfields = split(line, field, "@")
23085 substed = 0
23086 len = length(field[1])
23087 for (i = 2; i < nfields; i++) {
23088 key = field[i]
23089 keylen = length(key)
23090 if (S_is_set[key]) {
23091 value = S[key]
23092 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23093 len += length(value) + length(field[++i])
23094 substed = 1
23095 } else
23096 len += 1 + keylen
23099 print line
23102 _ACAWK
23103 _ACEOF
23104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23105 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23106 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23107 else
23109 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23110 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23111 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23112 { (exit 1); exit 1; }; }
23113 _ACEOF
23115 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23116 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23117 # trailing colons and then remove the whole line if VPATH becomes empty
23118 # (actually we leave an empty line to preserve line numbers).
23119 if test "x$srcdir" = x.; then
23120 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23121 s/:*\$(srcdir):*/:/
23122 s/:*\${srcdir}:*/:/
23123 s/:*@srcdir@:*/:/
23124 s/^\([^=]*=[ ]*\):*/\1/
23125 s/:*$//
23126 s/^[^=]*=[ ]*$//
23130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23131 fi # test -n "$CONFIG_FILES"
23133 # Set up the scripts for CONFIG_HEADERS section.
23134 # No need to generate them if there are no CONFIG_HEADERS.
23135 # This happens for instance with `./config.status Makefile'.
23136 if test -n "$CONFIG_HEADERS"; then
23137 cat >"$tmp/defines.awk" <<\_ACAWK ||
23138 BEGIN {
23139 _ACEOF
23141 # Transform confdefs.h into an awk script `defines.awk', embedded as
23142 # here-document in config.status, that substitutes the proper values into
23143 # config.h.in to produce config.h.
23145 # Create a delimiter string that does not exist in confdefs.h, to ease
23146 # handling of long lines.
23147 ac_delim='%!_!# '
23148 for ac_last_try in false false :; do
23149 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23150 if test -z "$ac_t"; then
23151 break
23152 elif $ac_last_try; then
23153 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23154 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23155 { (exit 1); exit 1; }; }
23156 else
23157 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23159 done
23161 # For the awk script, D is an array of macro values keyed by name,
23162 # likewise P contains macro parameters if any. Preserve backslash
23163 # newline sequences.
23165 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23166 sed -n '
23167 s/.\{148\}/&'"$ac_delim"'/g
23168 t rset
23169 :rset
23170 s/^[ ]*#[ ]*define[ ][ ]*/ /
23171 t def
23173 :def
23174 s/\\$//
23175 t bsnl
23176 s/["\\]/\\&/g
23177 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23178 D["\1"]=" \3"/p
23179 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23181 :bsnl
23182 s/["\\]/\\&/g
23183 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23184 D["\1"]=" \3\\\\\\n"\\/p
23185 t cont
23186 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23187 t cont
23189 :cont
23191 s/.\{148\}/&'"$ac_delim"'/g
23192 t clear
23193 :clear
23194 s/\\$//
23195 t bsnlc
23196 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23198 :bsnlc
23199 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23200 b cont
23201 ' <confdefs.h | sed '
23202 s/'"$ac_delim"'/"\\\
23203 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23206 for (key in D) D_is_set[key] = 1
23207 FS = "\a"
23209 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23210 line = \$ 0
23211 split(line, arg, " ")
23212 if (arg[1] == "#") {
23213 defundef = arg[2]
23214 mac1 = arg[3]
23215 } else {
23216 defundef = substr(arg[1], 2)
23217 mac1 = arg[2]
23219 split(mac1, mac2, "(") #)
23220 macro = mac2[1]
23221 prefix = substr(line, 1, index(line, defundef) - 1)
23222 if (D_is_set[macro]) {
23223 # Preserve the white space surrounding the "#".
23224 print prefix "define", macro P[macro] D[macro]
23225 next
23226 } else {
23227 # Replace #undef with comments. This is necessary, for example,
23228 # in the case of _POSIX_SOURCE, which is predefined and required
23229 # on some systems where configure will not decide to define it.
23230 if (defundef == "undef") {
23231 print "/*", prefix defundef, macro, "*/"
23232 next
23236 { print }
23237 _ACAWK
23238 _ACEOF
23239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23240 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23241 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23242 { (exit 1); exit 1; }; }
23243 fi # test -n "$CONFIG_HEADERS"
23246 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23247 shift
23248 for ac_tag
23250 case $ac_tag in
23251 :[FHLC]) ac_mode=$ac_tag; continue;;
23252 esac
23253 case $ac_mode$ac_tag in
23254 :[FHL]*:*);;
23255 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23256 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23257 { (exit 1); exit 1; }; };;
23258 :[FH]-) ac_tag=-:-;;
23259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23260 esac
23261 ac_save_IFS=$IFS
23262 IFS=:
23263 set x $ac_tag
23264 IFS=$ac_save_IFS
23265 shift
23266 ac_file=$1
23267 shift
23269 case $ac_mode in
23270 :L) ac_source=$1;;
23271 :[FH])
23272 ac_file_inputs=
23273 for ac_f
23275 case $ac_f in
23276 -) ac_f="$tmp/stdin";;
23277 *) # Look for the file first in the build tree, then in the source tree
23278 # (if the path is not absolute). The absolute path cannot be DOS-style,
23279 # because $ac_f cannot contain `:'.
23280 test -f "$ac_f" ||
23281 case $ac_f in
23282 [\\/$]*) false;;
23283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23284 esac ||
23285 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23286 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23287 { (exit 1); exit 1; }; };;
23288 esac
23289 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23290 ac_file_inputs="$ac_file_inputs '$ac_f'"
23291 done
23293 # Let's still pretend it is `configure' which instantiates (i.e., don't
23294 # use $as_me), people would be surprised to read:
23295 # /* config.h. Generated by config.status. */
23296 configure_input='Generated from '`
23297 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23298 `' by configure.'
23299 if test x"$ac_file" != x-; then
23300 configure_input="$ac_file. $configure_input"
23301 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23302 $as_echo "$as_me: creating $ac_file" >&6;}
23304 # Neutralize special characters interpreted by sed in replacement strings.
23305 case $configure_input in #(
23306 *\&* | *\|* | *\\* )
23307 ac_sed_conf_input=`$as_echo "$configure_input" |
23308 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23309 *) ac_sed_conf_input=$configure_input;;
23310 esac
23312 case $ac_tag in
23313 *:-:* | *:-) cat >"$tmp/stdin" \
23314 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23315 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23316 { (exit 1); exit 1; }; } ;;
23317 esac
23319 esac
23321 ac_dir=`$as_dirname -- "$ac_file" ||
23322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23323 X"$ac_file" : 'X\(//\)[^/]' \| \
23324 X"$ac_file" : 'X\(//\)$' \| \
23325 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23326 $as_echo X"$ac_file" |
23327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23328 s//\1/
23331 /^X\(\/\/\)[^/].*/{
23332 s//\1/
23335 /^X\(\/\/\)$/{
23336 s//\1/
23339 /^X\(\/\).*/{
23340 s//\1/
23343 s/.*/./; q'`
23344 { as_dir="$ac_dir"
23345 case $as_dir in #(
23346 -*) as_dir=./$as_dir;;
23347 esac
23348 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23349 as_dirs=
23350 while :; do
23351 case $as_dir in #(
23352 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23353 *) as_qdir=$as_dir;;
23354 esac
23355 as_dirs="'$as_qdir' $as_dirs"
23356 as_dir=`$as_dirname -- "$as_dir" ||
23357 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23358 X"$as_dir" : 'X\(//\)[^/]' \| \
23359 X"$as_dir" : 'X\(//\)$' \| \
23360 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23361 $as_echo X"$as_dir" |
23362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23363 s//\1/
23366 /^X\(\/\/\)[^/].*/{
23367 s//\1/
23370 /^X\(\/\/\)$/{
23371 s//\1/
23374 /^X\(\/\).*/{
23375 s//\1/
23378 s/.*/./; q'`
23379 test -d "$as_dir" && break
23380 done
23381 test -z "$as_dirs" || eval "mkdir $as_dirs"
23382 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23383 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23384 { (exit 1); exit 1; }; }; }
23385 ac_builddir=.
23387 case "$ac_dir" in
23388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23390 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23391 # A ".." for each directory in $ac_dir_suffix.
23392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23393 case $ac_top_builddir_sub in
23394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23396 esac ;;
23397 esac
23398 ac_abs_top_builddir=$ac_pwd
23399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23400 # for backward compatibility:
23401 ac_top_builddir=$ac_top_build_prefix
23403 case $srcdir in
23404 .) # We are building in place.
23405 ac_srcdir=.
23406 ac_top_srcdir=$ac_top_builddir_sub
23407 ac_abs_top_srcdir=$ac_pwd ;;
23408 [\\/]* | ?:[\\/]* ) # Absolute name.
23409 ac_srcdir=$srcdir$ac_dir_suffix;
23410 ac_top_srcdir=$srcdir
23411 ac_abs_top_srcdir=$srcdir ;;
23412 *) # Relative name.
23413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23414 ac_top_srcdir=$ac_top_build_prefix$srcdir
23415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23416 esac
23417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23420 case $ac_mode in
23423 # CONFIG_FILE
23426 case $INSTALL in
23427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23428 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23429 esac
23430 _ACEOF
23432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23433 # If the template does not know about datarootdir, expand it.
23434 # FIXME: This hack should be removed a few years after 2.60.
23435 ac_datarootdir_hack=; ac_datarootdir_seen=
23437 ac_sed_dataroot='
23438 /datarootdir/ {
23442 /@datadir@/p
23443 /@docdir@/p
23444 /@infodir@/p
23445 /@localedir@/p
23446 /@mandir@/p
23448 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23449 *datarootdir*) ac_datarootdir_seen=yes;;
23450 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23451 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23452 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23453 _ACEOF
23454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23455 ac_datarootdir_hack='
23456 s&@datadir@&$datadir&g
23457 s&@docdir@&$docdir&g
23458 s&@infodir@&$infodir&g
23459 s&@localedir@&$localedir&g
23460 s&@mandir@&$mandir&g
23461 s&\\\${datarootdir}&$datarootdir&g' ;;
23462 esac
23463 _ACEOF
23465 # Neutralize VPATH when `$srcdir' = `.'.
23466 # Shell code in configure.ac might set extrasub.
23467 # FIXME: do we really want to maintain this feature?
23468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23469 ac_sed_extra="$ac_vpsub
23470 $extrasub
23471 _ACEOF
23472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23475 s|@configure_input@|$ac_sed_conf_input|;t t
23476 s&@top_builddir@&$ac_top_builddir_sub&;t t
23477 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23478 s&@srcdir@&$ac_srcdir&;t t
23479 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23480 s&@top_srcdir@&$ac_top_srcdir&;t t
23481 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23482 s&@builddir@&$ac_builddir&;t t
23483 s&@abs_builddir@&$ac_abs_builddir&;t t
23484 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23485 s&@INSTALL@&$ac_INSTALL&;t t
23486 $ac_datarootdir_hack
23488 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23489 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23490 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23491 { (exit 1); exit 1; }; }
23493 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23494 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23495 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23496 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23497 which seems to be undefined. Please make sure it is defined." >&5
23498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23499 which seems to be undefined. Please make sure it is defined." >&2;}
23501 rm -f "$tmp/stdin"
23502 case $ac_file in
23503 -) cat "$tmp/out" && rm -f "$tmp/out";;
23504 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23505 esac \
23506 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23507 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23508 { (exit 1); exit 1; }; }
23512 # CONFIG_HEADER
23514 if test x"$ac_file" != x-; then
23516 $as_echo "/* $configure_input */" \
23517 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23518 } >"$tmp/config.h" \
23519 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23520 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23521 { (exit 1); exit 1; }; }
23522 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23523 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23524 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23525 else
23526 rm -f "$ac_file"
23527 mv "$tmp/config.h" "$ac_file" \
23528 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23529 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23530 { (exit 1); exit 1; }; }
23532 else
23533 $as_echo "/* $configure_input */" \
23534 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23535 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23536 $as_echo "$as_me: error: could not create -" >&2;}
23537 { (exit 1); exit 1; }; }
23541 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23542 $as_echo "$as_me: executing $ac_file commands" >&6;}
23544 esac
23547 case $ac_file$ac_mode in
23548 "rm-stdint.h":C) rm -f $libreplacedir/stdint.h ;;
23549 "mk-stdint.h":C) echo "#include \"replace.h\"" > $libreplacedir/stdint.h ;;
23550 "rm-stdbool.h":C) rm -f $libreplacedir/stdbool.h ;;
23551 "mk-stdbool.h":C) echo "#include \"replace.h\"" > $libreplacedir/stdbool.h ;;
23553 esac
23554 done # for ac_tag
23557 { (exit 0); exit 0; }
23558 _ACEOF
23559 chmod +x $CONFIG_STATUS
23560 ac_clean_files=$ac_clean_files_save
23562 test $ac_write_fail = 0 ||
23563 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23564 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23565 { (exit 1); exit 1; }; }
23568 # configure is writing to config.log, and then calls config.status.
23569 # config.status does its own redirection, appending to config.log.
23570 # Unfortunately, on DOS this fails, as config.log is still kept open
23571 # by configure, so config.status won't be able to write to it; its
23572 # output is simply discarded. So we exec the FD to /dev/null,
23573 # effectively closing config.log, so it can be properly (re)opened and
23574 # appended to by config.status. When coming back to configure, we
23575 # need to make the FD available again.
23576 if test "$no_create" != yes; then
23577 ac_cs_success=:
23578 ac_config_status_args=
23579 test "$silent" = yes &&
23580 ac_config_status_args="$ac_config_status_args --quiet"
23581 exec 5>/dev/null
23582 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23583 exec 5>>config.log
23584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23585 # would make configure fail if this is the last instruction.
23586 $ac_cs_success || { (exit 1); exit 1; }
23588 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23589 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23590 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}