configure revision 1.65 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libnbcompat noversion.
4 #
5 # Report bugs to <lib-bug-people (at] NetBSD.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='libnbcompat'
576 PACKAGE_TARNAME='libnbcompat'
577 PACKAGE_VERSION='noversion'
578 PACKAGE_STRING='libnbcompat noversion'
579 PACKAGE_BUGREPORT='lib-bug-people@NetBSD.org'
580
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 CC
655 CFLAGS
656 LDFLAGS
657 CPPFLAGS
658 ac_ct_CC
659 EXEEXT
660 OBJEXT
661 CPP
662 GREP
663 EGREP
664 BSHELL
665 ALLOCA
666 LIBOBJS
667 LTLIBOBJS'
668 ac_subst_files=''
669 ac_precious_vars='build_alias
670 host_alias
671 target_alias
672 CC
673 CFLAGS
674 LDFLAGS
675 LIBS
676 CPPFLAGS
677 CPP'
678
679
680 # Initialize some variables set by options.
681 ac_init_help=
682 ac_init_version=false
683 # The variables have the same names as the options, with
684 # dashes changed to underlines.
685 cache_file=/dev/null
686 exec_prefix=NONE
687 no_create=
688 no_recursion=
689 prefix=NONE
690 program_prefix=NONE
691 program_suffix=NONE
692 program_transform_name=s,x,x,
693 silent=
694 site=
695 srcdir=
696 verbose=
697 x_includes=NONE
698 x_libraries=NONE
699
700 # Installation directory options.
701 # These are left unexpanded so users can "make install exec_prefix=/foo"
702 # and all the variables that are supposed to be based on exec_prefix
703 # by default will actually change.
704 # Use braces instead of parens because sh, perl, etc. also accept them.
705 # (The list follows the same order as the GNU Coding Standards.)
706 bindir='${exec_prefix}/bin'
707 sbindir='${exec_prefix}/sbin'
708 libexecdir='${exec_prefix}/libexec'
709 datarootdir='${prefix}/share'
710 datadir='${datarootdir}'
711 sysconfdir='${prefix}/etc'
712 sharedstatedir='${prefix}/com'
713 localstatedir='${prefix}/var'
714 includedir='${prefix}/include'
715 oldincludedir='/usr/include'
716 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
717 infodir='${datarootdir}/info'
718 htmldir='${docdir}'
719 dvidir='${docdir}'
720 pdfdir='${docdir}'
721 psdir='${docdir}'
722 libdir='${exec_prefix}/lib'
723 localedir='${datarootdir}/locale'
724 mandir='${datarootdir}/man'
725
726 ac_prev=
727 ac_dashdash=
728 for ac_option
729 do
730 # If the previous option needs an argument, assign it.
731 if test -n "$ac_prev"; then
732 eval $ac_prev=\$ac_option
733 ac_prev=
734 continue
735 fi
736
737 case $ac_option in
738 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
739 *) ac_optarg=yes ;;
740 esac
741
742 # Accept the important Cygnus configure options, so we can diagnose typos.
743
744 case $ac_dashdash$ac_option in
745 --)
746 ac_dashdash=yes ;;
747
748 -bindir | --bindir | --bindi | --bind | --bin | --bi)
749 ac_prev=bindir ;;
750 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
751 bindir=$ac_optarg ;;
752
753 -build | --build | --buil | --bui | --bu)
754 ac_prev=build_alias ;;
755 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
756 build_alias=$ac_optarg ;;
757
758 -cache-file | --cache-file | --cache-fil | --cache-fi \
759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
760 ac_prev=cache_file ;;
761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
763 cache_file=$ac_optarg ;;
764
765 --config-cache | -C)
766 cache_file=config.cache ;;
767
768 -datadir | --datadir | --datadi | --datad)
769 ac_prev=datadir ;;
770 -datadir=* | --datadir=* | --datadi=* | --datad=*)
771 datadir=$ac_optarg ;;
772
773 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
774 | --dataroo | --dataro | --datar)
775 ac_prev=datarootdir ;;
776 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
777 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
778 datarootdir=$ac_optarg ;;
779
780 -disable-* | --disable-*)
781 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
785 { (exit 1); exit 1; }; }
786 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
787 eval enable_$ac_feature=no ;;
788
789 -docdir | --docdir | --docdi | --doc | --do)
790 ac_prev=docdir ;;
791 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
792 docdir=$ac_optarg ;;
793
794 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
795 ac_prev=dvidir ;;
796 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
797 dvidir=$ac_optarg ;;
798
799 -enable-* | --enable-*)
800 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
804 { (exit 1); exit 1; }; }
805 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
806 eval enable_$ac_feature=\$ac_optarg ;;
807
808 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
809 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
810 | --exec | --exe | --ex)
811 ac_prev=exec_prefix ;;
812 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
813 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
814 | --exec=* | --exe=* | --ex=*)
815 exec_prefix=$ac_optarg ;;
816
817 -gas | --gas | --ga | --g)
818 # Obsolete; use --with-gas.
819 with_gas=yes ;;
820
821 -help | --help | --hel | --he | -h)
822 ac_init_help=long ;;
823 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
824 ac_init_help=recursive ;;
825 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
826 ac_init_help=short ;;
827
828 -host | --host | --hos | --ho)
829 ac_prev=host_alias ;;
830 -host=* | --host=* | --hos=* | --ho=*)
831 host_alias=$ac_optarg ;;
832
833 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
834 ac_prev=htmldir ;;
835 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
836 | --ht=*)
837 htmldir=$ac_optarg ;;
838
839 -includedir | --includedir | --includedi | --included | --include \
840 | --includ | --inclu | --incl | --inc)
841 ac_prev=includedir ;;
842 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
843 | --includ=* | --inclu=* | --incl=* | --inc=*)
844 includedir=$ac_optarg ;;
845
846 -infodir | --infodir | --infodi | --infod | --info | --inf)
847 ac_prev=infodir ;;
848 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
849 infodir=$ac_optarg ;;
850
851 -libdir | --libdir | --libdi | --libd)
852 ac_prev=libdir ;;
853 -libdir=* | --libdir=* | --libdi=* | --libd=*)
854 libdir=$ac_optarg ;;
855
856 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
857 | --libexe | --libex | --libe)
858 ac_prev=libexecdir ;;
859 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
860 | --libexe=* | --libex=* | --libe=*)
861 libexecdir=$ac_optarg ;;
862
863 -localedir | --localedir | --localedi | --localed | --locale)
864 ac_prev=localedir ;;
865 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
866 localedir=$ac_optarg ;;
867
868 -localstatedir | --localstatedir | --localstatedi | --localstated \
869 | --localstate | --localstat | --localsta | --localst | --locals)
870 ac_prev=localstatedir ;;
871 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
872 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
873 localstatedir=$ac_optarg ;;
874
875 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
876 ac_prev=mandir ;;
877 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
878 mandir=$ac_optarg ;;
879
880 -nfp | --nfp | --nf)
881 # Obsolete; use --without-fp.
882 with_fp=no ;;
883
884 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
885 | --no-cr | --no-c | -n)
886 no_create=yes ;;
887
888 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
889 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
890 no_recursion=yes ;;
891
892 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
893 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
894 | --oldin | --oldi | --old | --ol | --o)
895 ac_prev=oldincludedir ;;
896 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
897 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
898 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
899 oldincludedir=$ac_optarg ;;
900
901 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
902 ac_prev=prefix ;;
903 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
904 prefix=$ac_optarg ;;
905
906 -program-prefix | --program-prefix | --program-prefi | --program-pref \
907 | --program-pre | --program-pr | --program-p)
908 ac_prev=program_prefix ;;
909 -program-prefix=* | --program-prefix=* | --program-prefi=* \
910 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
911 program_prefix=$ac_optarg ;;
912
913 -program-suffix | --program-suffix | --program-suffi | --program-suff \
914 | --program-suf | --program-su | --program-s)
915 ac_prev=program_suffix ;;
916 -program-suffix=* | --program-suffix=* | --program-suffi=* \
917 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
918 program_suffix=$ac_optarg ;;
919
920 -program-transform-name | --program-transform-name \
921 | --program-transform-nam | --program-transform-na \
922 | --program-transform-n | --program-transform- \
923 | --program-transform | --program-transfor \
924 | --program-transfo | --program-transf \
925 | --program-trans | --program-tran \
926 | --progr-tra | --program-tr | --program-t)
927 ac_prev=program_transform_name ;;
928 -program-transform-name=* | --program-transform-name=* \
929 | --program-transform-nam=* | --program-transform-na=* \
930 | --program-transform-n=* | --program-transform-=* \
931 | --program-transform=* | --program-transfor=* \
932 | --program-transfo=* | --program-transf=* \
933 | --program-trans=* | --program-tran=* \
934 | --progr-tra=* | --program-tr=* | --program-t=*)
935 program_transform_name=$ac_optarg ;;
936
937 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
938 ac_prev=pdfdir ;;
939 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
940 pdfdir=$ac_optarg ;;
941
942 -psdir | --psdir | --psdi | --psd | --ps)
943 ac_prev=psdir ;;
944 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
945 psdir=$ac_optarg ;;
946
947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
948 | -silent | --silent | --silen | --sile | --sil)
949 silent=yes ;;
950
951 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
952 ac_prev=sbindir ;;
953 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
954 | --sbi=* | --sb=*)
955 sbindir=$ac_optarg ;;
956
957 -sharedstatedir | --sharedstatedir | --sharedstatedi \
958 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
959 | --sharedst | --shareds | --shared | --share | --shar \
960 | --sha | --sh)
961 ac_prev=sharedstatedir ;;
962 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
963 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
964 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
965 | --sha=* | --sh=*)
966 sharedstatedir=$ac_optarg ;;
967
968 -site | --site | --sit)
969 ac_prev=site ;;
970 -site=* | --site=* | --sit=*)
971 site=$ac_optarg ;;
972
973 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
974 ac_prev=srcdir ;;
975 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
976 srcdir=$ac_optarg ;;
977
978 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
979 | --syscon | --sysco | --sysc | --sys | --sy)
980 ac_prev=sysconfdir ;;
981 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
982 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
983 sysconfdir=$ac_optarg ;;
984
985 -target | --target | --targe | --targ | --tar | --ta | --t)
986 ac_prev=target_alias ;;
987 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
988 target_alias=$ac_optarg ;;
989
990 -v | -verbose | --verbose | --verbos | --verbo | --verb)
991 verbose=yes ;;
992
993 -version | --version | --versio | --versi | --vers | -V)
994 ac_init_version=: ;;
995
996 -with-* | --with-*)
997 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid package name: $ac_package" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1003 eval with_$ac_package=\$ac_optarg ;;
1004
1005 -without-* | --without-*)
1006 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid package name: $ac_package" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1012 eval with_$ac_package=no ;;
1013
1014 --x)
1015 # Obsolete; use --with-x.
1016 with_x=yes ;;
1017
1018 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1019 | --x-incl | --x-inc | --x-in | --x-i)
1020 ac_prev=x_includes ;;
1021 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1022 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1023 x_includes=$ac_optarg ;;
1024
1025 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1026 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1027 ac_prev=x_libraries ;;
1028 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1029 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1030 x_libraries=$ac_optarg ;;
1031
1032 -*) { echo "$as_me: error: unrecognized option: $ac_option
1033 Try \`$0 --help' for more information." >&2
1034 { (exit 1); exit 1; }; }
1035 ;;
1036
1037 *=*)
1038 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1042 { (exit 1); exit 1; }; }
1043 eval $ac_envvar=\$ac_optarg
1044 export $ac_envvar ;;
1045
1046 *)
1047 # FIXME: should be removed in autoconf 3.0.
1048 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1049 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1051 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1052 ;;
1053
1054 esac
1055 done
1056
1057 if test -n "$ac_prev"; then
1058 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1059 { echo "$as_me: error: missing argument to $ac_option" >&2
1060 { (exit 1); exit 1; }; }
1061 fi
1062
1063 # Be sure to have absolute directory names.
1064 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1065 datadir sysconfdir sharedstatedir localstatedir includedir \
1066 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1067 libdir localedir mandir
1068 do
1069 eval ac_val=\$$ac_var
1070 case $ac_val in
1071 [\\/$]* | ?:[\\/]* ) continue;;
1072 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1073 esac
1074 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1075 { (exit 1); exit 1; }; }
1076 done
1077
1078 # There might be people who depend on the old broken behavior: `$host'
1079 # used to hold the argument of --host etc.
1080 # FIXME: To remove some day.
1081 build=$build_alias
1082 host=$host_alias
1083 target=$target_alias
1084
1085 # FIXME: To remove some day.
1086 if test "x$host_alias" != x; then
1087 if test "x$build_alias" = x; then
1088 cross_compiling=maybe
1089 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1090 If a cross compiler is detected then cross compile mode will be used." >&2
1091 elif test "x$build_alias" != "x$host_alias"; then
1092 cross_compiling=yes
1093 fi
1094 fi
1095
1096 ac_tool_prefix=
1097 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1098
1099 test "$silent" = yes && exec 6>/dev/null
1100
1101
1102 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1103 ac_ls_di=`ls -di .` &&
1104 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1105 { echo "$as_me: error: Working directory cannot be determined" >&2
1106 { (exit 1); exit 1; }; }
1107 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1108 { echo "$as_me: error: pwd does not report name of working directory" >&2
1109 { (exit 1); exit 1; }; }
1110
1111
1112 # Find the source files, if location was not specified.
1113 if test -z "$srcdir"; then
1114 ac_srcdir_defaulted=yes
1115 # Try the directory containing this script, then the parent directory.
1116 ac_confdir=`$as_dirname -- "$0" ||
1117 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1118 X"$0" : 'X\(//\)[^/]' \| \
1119 X"$0" : 'X\(//\)$' \| \
1120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1121 echo X"$0" |
1122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1123 s//\1/
1124 q
1125 }
1126 /^X\(\/\/\)[^/].*/{
1127 s//\1/
1128 q
1129 }
1130 /^X\(\/\/\)$/{
1131 s//\1/
1132 q
1133 }
1134 /^X\(\/\).*/{
1135 s//\1/
1136 q
1137 }
1138 s/.*/./; q'`
1139 srcdir=$ac_confdir
1140 if test ! -r "$srcdir/$ac_unique_file"; then
1141 srcdir=..
1142 fi
1143 else
1144 ac_srcdir_defaulted=no
1145 fi
1146 if test ! -r "$srcdir/$ac_unique_file"; then
1147 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1148 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1149 { (exit 1); exit 1; }; }
1150 fi
1151 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1152 ac_abs_confdir=`(
1153 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1154 { (exit 1); exit 1; }; }
1155 pwd)`
1156 # When building in place, set srcdir=.
1157 if test "$ac_abs_confdir" = "$ac_pwd"; then
1158 srcdir=.
1159 fi
1160 # Remove unnecessary trailing slashes from srcdir.
1161 # Double slashes in file names in object file debugging info
1162 # mess up M-x gdb in Emacs.
1163 case $srcdir in
1164 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1165 esac
1166 for ac_var in $ac_precious_vars; do
1167 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1168 eval ac_env_${ac_var}_value=\$${ac_var}
1169 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1170 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1171 done
1172
1173 #
1174 # Report the --help message.
1175 #
1176 if test "$ac_init_help" = "long"; then
1177 # Omit some internal or obsolete options to make the list less imposing.
1178 # This message is too long to be a string in the A/UX 3.1 sh.
1179 cat <<_ACEOF
1180 \`configure' configures libnbcompat noversion to adapt to many kinds of systems.
1181
1182 Usage: $0 [OPTION]... [VAR=VALUE]...
1183
1184 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1185 VAR=VALUE. See below for descriptions of some of the useful variables.
1186
1187 Defaults for the options are specified in brackets.
1188
1189 Configuration:
1190 -h, --help display this help and exit
1191 --help=short display options specific to this package
1192 --help=recursive display the short help of all the included packages
1193 -V, --version display version information and exit
1194 -q, --quiet, --silent do not print \`checking...' messages
1195 --cache-file=FILE cache test results in FILE [disabled]
1196 -C, --config-cache alias for \`--cache-file=config.cache'
1197 -n, --no-create do not create output files
1198 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1199
1200 Installation directories:
1201 --prefix=PREFIX install architecture-independent files in PREFIX
1202 [$ac_default_prefix]
1203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1204 [PREFIX]
1205
1206 By default, \`make install' will install all the files in
1207 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1208 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1209 for instance \`--prefix=\$HOME'.
1210
1211 For better control, use the options below.
1212
1213 Fine tuning of the installation directories:
1214 --bindir=DIR user executables [EPREFIX/bin]
1215 --sbindir=DIR system admin executables [EPREFIX/sbin]
1216 --libexecdir=DIR program executables [EPREFIX/libexec]
1217 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1218 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1219 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1220 --libdir=DIR object code libraries [EPREFIX/lib]
1221 --includedir=DIR C header files [PREFIX/include]
1222 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1223 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1224 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1225 --infodir=DIR info documentation [DATAROOTDIR/info]
1226 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1227 --mandir=DIR man documentation [DATAROOTDIR/man]
1228 --docdir=DIR documentation root [DATAROOTDIR/doc/libnbcompat]
1229 --htmldir=DIR html documentation [DOCDIR]
1230 --dvidir=DIR dvi documentation [DOCDIR]
1231 --pdfdir=DIR pdf documentation [DOCDIR]
1232 --psdir=DIR ps documentation [DOCDIR]
1233 _ACEOF
1234
1235 cat <<\_ACEOF
1236 _ACEOF
1237 fi
1238
1239 if test -n "$ac_init_help"; then
1240 case $ac_init_help in
1241 short | recursive ) echo "Configuration of libnbcompat noversion:";;
1242 esac
1243 cat <<\_ACEOF
1244
1245 Some influential environment variables:
1246 CC C compiler command
1247 CFLAGS C compiler flags
1248 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1249 nonstandard directory <lib dir>
1250 LIBS libraries to pass to the linker, e.g. -l<library>
1251 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1252 you have headers in a nonstandard directory <include dir>
1253 CPP C preprocessor
1254
1255 Use these variables to override the choices made by `configure' or to help
1256 it to find libraries and programs with nonstandard names/locations.
1257
1258 Report bugs to <lib-bug-people@NetBSD.org>.
1259 _ACEOF
1260 ac_status=$?
1261 fi
1262
1263 if test "$ac_init_help" = "recursive"; then
1264 # If there are subdirs, report their specific --help.
1265 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1266 test -d "$ac_dir" || continue
1267 ac_builddir=.
1268
1269 case "$ac_dir" in
1270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1271 *)
1272 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1273 # A ".." for each directory in $ac_dir_suffix.
1274 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1275 case $ac_top_builddir_sub in
1276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1278 esac ;;
1279 esac
1280 ac_abs_top_builddir=$ac_pwd
1281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1282 # for backward compatibility:
1283 ac_top_builddir=$ac_top_build_prefix
1284
1285 case $srcdir in
1286 .) # We are building in place.
1287 ac_srcdir=.
1288 ac_top_srcdir=$ac_top_builddir_sub
1289 ac_abs_top_srcdir=$ac_pwd ;;
1290 [\\/]* | ?:[\\/]* ) # Absolute name.
1291 ac_srcdir=$srcdir$ac_dir_suffix;
1292 ac_top_srcdir=$srcdir
1293 ac_abs_top_srcdir=$srcdir ;;
1294 *) # Relative name.
1295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1296 ac_top_srcdir=$ac_top_build_prefix$srcdir
1297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1298 esac
1299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1300
1301 cd "$ac_dir" || { ac_status=$?; continue; }
1302 # Check for guested configure.
1303 if test -f "$ac_srcdir/configure.gnu"; then
1304 echo &&
1305 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1306 elif test -f "$ac_srcdir/configure"; then
1307 echo &&
1308 $SHELL "$ac_srcdir/configure" --help=recursive
1309 else
1310 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1311 fi || ac_status=$?
1312 cd "$ac_pwd" || { ac_status=$?; break; }
1313 done
1314 fi
1315
1316 test -n "$ac_init_help" && exit $ac_status
1317 if $ac_init_version; then
1318 cat <<\_ACEOF
1319 libnbcompat configure noversion
1320 generated by GNU Autoconf 2.61
1321
1322 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1323 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1324 This configure script is free software; the Free Software Foundation
1325 gives unlimited permission to copy, distribute and modify it.
1326 _ACEOF
1327 exit
1328 fi
1329 cat >config.log <<_ACEOF
1330 This file contains any messages produced by compilers while
1331 running configure, to aid debugging if configure makes a mistake.
1332
1333 It was created by libnbcompat $as_me noversion, which was
1334 generated by GNU Autoconf 2.61. Invocation command line was
1335
1336 $ $0 $@
1337
1338 _ACEOF
1339 exec 5>>config.log
1340 {
1341 cat <<_ASUNAME
1342 ## --------- ##
1343 ## Platform. ##
1344 ## --------- ##
1345
1346 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1347 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1348 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1349 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1350 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1351
1352 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1353 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1354
1355 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1356 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1357 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1358 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1359 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1360 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1361 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1362
1363 _ASUNAME
1364
1365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366 for as_dir in $PATH
1367 do
1368 IFS=$as_save_IFS
1369 test -z "$as_dir" && as_dir=.
1370 echo "PATH: $as_dir"
1371 done
1372 IFS=$as_save_IFS
1373
1374 } >&5
1375
1376 cat >&5 <<_ACEOF
1377
1378
1379 ## ----------- ##
1380 ## Core tests. ##
1381 ## ----------- ##
1382
1383 _ACEOF
1384
1385
1386 # Keep a trace of the command line.
1387 # Strip out --no-create and --no-recursion so they do not pile up.
1388 # Strip out --silent because we don't want to record it for future runs.
1389 # Also quote any args containing shell meta-characters.
1390 # Make two passes to allow for proper duplicate-argument suppression.
1391 ac_configure_args=
1392 ac_configure_args0=
1393 ac_configure_args1=
1394 ac_must_keep_next=false
1395 for ac_pass in 1 2
1396 do
1397 for ac_arg
1398 do
1399 case $ac_arg in
1400 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1402 | -silent | --silent | --silen | --sile | --sil)
1403 continue ;;
1404 *\'*)
1405 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1406 esac
1407 case $ac_pass in
1408 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1409 2)
1410 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1411 if test $ac_must_keep_next = true; then
1412 ac_must_keep_next=false # Got value, back to normal.
1413 else
1414 case $ac_arg in
1415 *=* | --config-cache | -C | -disable-* | --disable-* \
1416 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1417 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1418 | -with-* | --with-* | -without-* | --without-* | --x)
1419 case "$ac_configure_args0 " in
1420 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1421 esac
1422 ;;
1423 -* ) ac_must_keep_next=true ;;
1424 esac
1425 fi
1426 ac_configure_args="$ac_configure_args '$ac_arg'"
1427 ;;
1428 esac
1429 done
1430 done
1431 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1432 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1433
1434 # When interrupted or exit'd, cleanup temporary files, and complete
1435 # config.log. We remove comments because anyway the quotes in there
1436 # would cause problems or look ugly.
1437 # WARNING: Use '\'' to represent an apostrophe within the trap.
1438 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1439 trap 'exit_status=$?
1440 # Save into config.log some information that might help in debugging.
1441 {
1442 echo
1443
1444 cat <<\_ASBOX
1445 ## ---------------- ##
1446 ## Cache variables. ##
1447 ## ---------------- ##
1448 _ASBOX
1449 echo
1450 # The following way of writing the cache mishandles newlines in values,
1451 (
1452 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1453 eval ac_val=\$$ac_var
1454 case $ac_val in #(
1455 *${as_nl}*)
1456 case $ac_var in #(
1457 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1458 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1459 esac
1460 case $ac_var in #(
1461 _ | IFS | as_nl) ;; #(
1462 *) $as_unset $ac_var ;;
1463 esac ;;
1464 esac
1465 done
1466 (set) 2>&1 |
1467 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1468 *${as_nl}ac_space=\ *)
1469 sed -n \
1470 "s/'\''/'\''\\\\'\'''\''/g;
1471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1472 ;; #(
1473 *)
1474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1475 ;;
1476 esac |
1477 sort
1478 )
1479 echo
1480
1481 cat <<\_ASBOX
1482 ## ----------------- ##
1483 ## Output variables. ##
1484 ## ----------------- ##
1485 _ASBOX
1486 echo
1487 for ac_var in $ac_subst_vars
1488 do
1489 eval ac_val=\$$ac_var
1490 case $ac_val in
1491 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1492 esac
1493 echo "$ac_var='\''$ac_val'\''"
1494 done | sort
1495 echo
1496
1497 if test -n "$ac_subst_files"; then
1498 cat <<\_ASBOX
1499 ## ------------------- ##
1500 ## File substitutions. ##
1501 ## ------------------- ##
1502 _ASBOX
1503 echo
1504 for ac_var in $ac_subst_files
1505 do
1506 eval ac_val=\$$ac_var
1507 case $ac_val in
1508 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1509 esac
1510 echo "$ac_var='\''$ac_val'\''"
1511 done | sort
1512 echo
1513 fi
1514
1515 if test -s confdefs.h; then
1516 cat <<\_ASBOX
1517 ## ----------- ##
1518 ## confdefs.h. ##
1519 ## ----------- ##
1520 _ASBOX
1521 echo
1522 cat confdefs.h
1523 echo
1524 fi
1525 test "$ac_signal" != 0 &&
1526 echo "$as_me: caught signal $ac_signal"
1527 echo "$as_me: exit $exit_status"
1528 } >&5
1529 rm -f core *.core core.conftest.* &&
1530 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1531 exit $exit_status
1532 ' 0
1533 for ac_signal in 1 2 13 15; do
1534 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1535 done
1536 ac_signal=0
1537
1538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1539 rm -f -r conftest* confdefs.h
1540
1541 # Predefined preprocessor variables.
1542
1543 cat >>confdefs.h <<_ACEOF
1544 #define PACKAGE_NAME "$PACKAGE_NAME"
1545 _ACEOF
1546
1547
1548 cat >>confdefs.h <<_ACEOF
1549 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1550 _ACEOF
1551
1552
1553 cat >>confdefs.h <<_ACEOF
1554 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1555 _ACEOF
1556
1557
1558 cat >>confdefs.h <<_ACEOF
1559 #define PACKAGE_STRING "$PACKAGE_STRING"
1560 _ACEOF
1561
1562
1563 cat >>confdefs.h <<_ACEOF
1564 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1565 _ACEOF
1566
1567
1568 # Let the site file select an alternate cache file if it wants to.
1569 # Prefer explicitly selected file to automatically selected ones.
1570 if test -n "$CONFIG_SITE"; then
1571 set x "$CONFIG_SITE"
1572 elif test "x$prefix" != xNONE; then
1573 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1574 else
1575 set x "$ac_default_prefix/share/config.site" \
1576 "$ac_default_prefix/etc/config.site"
1577 fi
1578 shift
1579 for ac_site_file
1580 do
1581 if test -r "$ac_site_file"; then
1582 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1583 echo "$as_me: loading site script $ac_site_file" >&6;}
1584 sed 's/^/| /' "$ac_site_file" >&5
1585 . "$ac_site_file"
1586 fi
1587 done
1588
1589 if test -r "$cache_file"; then
1590 # Some versions of bash will fail to source /dev/null (special
1591 # files actually), so we avoid doing that.
1592 if test -f "$cache_file"; then
1593 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1594 echo "$as_me: loading cache $cache_file" >&6;}
1595 case $cache_file in
1596 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1597 *) . "./$cache_file";;
1598 esac
1599 fi
1600 else
1601 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1602 echo "$as_me: creating cache $cache_file" >&6;}
1603 >$cache_file
1604 fi
1605
1606 # Check that the precious variables saved in the cache have kept the same
1607 # value.
1608 ac_cache_corrupted=false
1609 for ac_var in $ac_precious_vars; do
1610 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1611 eval ac_new_set=\$ac_env_${ac_var}_set
1612 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1613 eval ac_new_val=\$ac_env_${ac_var}_value
1614 case $ac_old_set,$ac_new_set in
1615 set,)
1616 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1617 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1618 ac_cache_corrupted=: ;;
1619 ,set)
1620 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1621 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1622 ac_cache_corrupted=: ;;
1623 ,);;
1624 *)
1625 if test "x$ac_old_val" != "x$ac_new_val"; then
1626 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1627 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1628 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1629 echo "$as_me: former value: $ac_old_val" >&2;}
1630 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1631 echo "$as_me: current value: $ac_new_val" >&2;}
1632 ac_cache_corrupted=:
1633 fi;;
1634 esac
1635 # Pass precious variables to config.status.
1636 if test "$ac_new_set" = set; then
1637 case $ac_new_val in
1638 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1639 *) ac_arg=$ac_var=$ac_new_val ;;
1640 esac
1641 case " $ac_configure_args " in
1642 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1643 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1644 esac
1645 fi
1646 done
1647 if $ac_cache_corrupted; then
1648 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1649 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1650 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1651 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1652 { (exit 1); exit 1; }; }
1653 fi
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679 ac_ext=c
1680 ac_cpp='$CPP $CPPFLAGS'
1681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1684
1685
1686 ac_config_headers="$ac_config_headers nbtool_config.h"
1687
1688 ac_config_files="$ac_config_files defs.mk"
1689
1690
1691 # Autoheader header and footer
1692
1693
1694
1695
1696
1697
1698 # AC_NETBSD
1699
1700 ac_ext=c
1701 ac_cpp='$CPP $CPPFLAGS'
1702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1705 if test -n "$ac_tool_prefix"; then
1706 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1707 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1710 if test "${ac_cv_prog_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713 if test -n "$CC"; then
1714 ac_cv_prog_CC="$CC" # Let the user override the test.
1715 else
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1718 do
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1723 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 break 2
1726 fi
1727 done
1728 done
1729 IFS=$as_save_IFS
1730
1731 fi
1732 fi
1733 CC=$ac_cv_prog_CC
1734 if test -n "$CC"; then
1735 { echo "$as_me:$LINENO: result: $CC" >&5
1736 echo "${ECHO_T}$CC" >&6; }
1737 else
1738 { echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6; }
1740 fi
1741
1742
1743 fi
1744 if test -z "$ac_cv_prog_CC"; then
1745 ac_ct_CC=$CC
1746 # Extract the first word of "gcc", so it can be a program name with args.
1747 set dummy gcc; ac_word=$2
1748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$ac_ct_CC"; then
1754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1763 ac_cv_prog_ac_ct_CC="gcc"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1766 fi
1767 done
1768 done
1769 IFS=$as_save_IFS
1770
1771 fi
1772 fi
1773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1774 if test -n "$ac_ct_CC"; then
1775 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 echo "${ECHO_T}$ac_ct_CC" >&6; }
1777 else
1778 { echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6; }
1780 fi
1781
1782 if test "x$ac_ct_CC" = x; then
1783 CC=""
1784 else
1785 case $cross_compiling:$ac_tool_warned in
1786 yes:)
1787 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1788 whose name does not start with the host triplet. If you think this
1789 configuration is useful to you, please write to autoconf@gnu.org." >&5
1790 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1791 whose name does not start with the host triplet. If you think this
1792 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1793 ac_tool_warned=yes ;;
1794 esac
1795 CC=$ac_ct_CC
1796 fi
1797 else
1798 CC="$ac_cv_prog_CC"
1799 fi
1800
1801 if test -z "$CC"; then
1802 if test -n "$ac_tool_prefix"; then
1803 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1804 set dummy ${ac_tool_prefix}cc; ac_word=$2
1805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1807 if test "${ac_cv_prog_CC+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810 if test -n "$CC"; then
1811 ac_cv_prog_CC="$CC" # Let the user override the test.
1812 else
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 for as_dir in $PATH
1815 do
1816 IFS=$as_save_IFS
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
1819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1820 ac_cv_prog_CC="${ac_tool_prefix}cc"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 break 2
1823 fi
1824 done
1825 done
1826 IFS=$as_save_IFS
1827
1828 fi
1829 fi
1830 CC=$ac_cv_prog_CC
1831 if test -n "$CC"; then
1832 { echo "$as_me:$LINENO: result: $CC" >&5
1833 echo "${ECHO_T}$CC" >&6; }
1834 else
1835 { echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6; }
1837 fi
1838
1839
1840 fi
1841 fi
1842 if test -z "$CC"; then
1843 # Extract the first word of "cc", so it can be a program name with args.
1844 set dummy cc; ac_word=$2
1845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1847 if test "${ac_cv_prog_CC+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850 if test -n "$CC"; then
1851 ac_cv_prog_CC="$CC" # Let the user override the test.
1852 else
1853 ac_prog_rejected=no
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1856 do
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1861 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1862 ac_prog_rejected=yes
1863 continue
1864 fi
1865 ac_cv_prog_CC="cc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2
1868 fi
1869 done
1870 done
1871 IFS=$as_save_IFS
1872
1873 if test $ac_prog_rejected = yes; then
1874 # We found a bogon in the path, so make sure we never use it.
1875 set dummy $ac_cv_prog_CC
1876 shift
1877 if test $# != 0; then
1878 # We chose a different compiler from the bogus one.
1879 # However, it has the same basename, so the bogon will be chosen
1880 # first if we set CC to just the basename; use the full file name.
1881 shift
1882 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1883 fi
1884 fi
1885 fi
1886 fi
1887 CC=$ac_cv_prog_CC
1888 if test -n "$CC"; then
1889 { echo "$as_me:$LINENO: result: $CC" >&5
1890 echo "${ECHO_T}$CC" >&6; }
1891 else
1892 { echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6; }
1894 fi
1895
1896
1897 fi
1898 if test -z "$CC"; then
1899 if test -n "$ac_tool_prefix"; then
1900 for ac_prog in cl.exe
1901 do
1902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1906 if test "${ac_cv_prog_CC+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1919 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1922 fi
1923 done
1924 done
1925 IFS=$as_save_IFS
1926
1927 fi
1928 fi
1929 CC=$ac_cv_prog_CC
1930 if test -n "$CC"; then
1931 { echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6; }
1933 else
1934 { echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6; }
1936 fi
1937
1938
1939 test -n "$CC" && break
1940 done
1941 fi
1942 if test -z "$CC"; then
1943 ac_ct_CC=$CC
1944 for ac_prog in cl.exe
1945 do
1946 # Extract the first word of "$ac_prog", so it can be a program name with args.
1947 set dummy $ac_prog; ac_word=$2
1948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953 if test -n "$ac_ct_CC"; then
1954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1955 else
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1958 do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1963 ac_cv_prog_ac_ct_CC="$ac_prog"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 break 2
1966 fi
1967 done
1968 done
1969 IFS=$as_save_IFS
1970
1971 fi
1972 fi
1973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974 if test -n "$ac_ct_CC"; then
1975 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976 echo "${ECHO_T}$ac_ct_CC" >&6; }
1977 else
1978 { echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6; }
1980 fi
1981
1982
1983 test -n "$ac_ct_CC" && break
1984 done
1985
1986 if test "x$ac_ct_CC" = x; then
1987 CC=""
1988 else
1989 case $cross_compiling:$ac_tool_warned in
1990 yes:)
1991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1992 whose name does not start with the host triplet. If you think this
1993 configuration is useful to you, please write to autoconf@gnu.org." >&5
1994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1995 whose name does not start with the host triplet. If you think this
1996 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1997 ac_tool_warned=yes ;;
1998 esac
1999 CC=$ac_ct_CC
2000 fi
2001 fi
2002
2003 fi
2004
2005
2006 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: no acceptable C compiler found in \$PATH
2009 See \`config.log' for more details." >&2;}
2010 { (exit 1); exit 1; }; }
2011
2012 # Provide some information about the compiler.
2013 echo "$as_me:$LINENO: checking for C compiler version" >&5
2014 ac_compiler=`set X $ac_compile; echo $2`
2015 { (ac_try="$ac_compiler --version >&5"
2016 case "(($ac_try" in
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2019 esac
2020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2021 (eval "$ac_compiler --version >&5") 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }
2025 { (ac_try="$ac_compiler -v >&5"
2026 case "(($ac_try" in
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2029 esac
2030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2031 (eval "$ac_compiler -v >&5") 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }
2035 { (ac_try="$ac_compiler -V >&5"
2036 case "(($ac_try" in
2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038 *) ac_try_echo=$ac_try;;
2039 esac
2040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2041 (eval "$ac_compiler -V >&5") 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }
2045
2046 cat >conftest.$ac_ext <<_ACEOF
2047 /* confdefs.h. */
2048 _ACEOF
2049 cat confdefs.h >>conftest.$ac_ext
2050 cat >>conftest.$ac_ext <<_ACEOF
2051 /* end confdefs.h. */
2052
2053 int
2054 main ()
2055 {
2056
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 ac_clean_files_save=$ac_clean_files
2062 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2063 # Try to create an executable without -o first, disregard a.out.
2064 # It will help us diagnose broken compilers, and finding out an intuition
2065 # of exeext.
2066 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2067 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2068 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2069 #
2070 # List of possible output files, starting from the most likely.
2071 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2072 # only as a last resort. b.out is created by i960 compilers.
2073 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2074 #
2075 # The IRIX 6 linker writes into existing files which may not be
2076 # executable, retaining their permissions. Remove them first so a
2077 # subsequent execution test works.
2078 ac_rmfiles=
2079 for ac_file in $ac_files
2080 do
2081 case $ac_file in
2082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2083 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2084 esac
2085 done
2086 rm -f $ac_rmfiles
2087
2088 if { (ac_try="$ac_link_default"
2089 case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092 esac
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_link_default") 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; then
2098 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2099 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2100 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2101 # so that the user can short-circuit this test for compilers unknown to
2102 # Autoconf.
2103 for ac_file in $ac_files ''
2104 do
2105 test -f "$ac_file" || continue
2106 case $ac_file in
2107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2108 ;;
2109 [ab].out )
2110 # We found the default executable, but exeext='' is most
2111 # certainly right.
2112 break;;
2113 *.* )
2114 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2115 then :; else
2116 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2117 fi
2118 # We set ac_cv_exeext here because the later test for it is not
2119 # safe: cross compilers may not add the suffix if given an `-o'
2120 # argument, so we may need to know it at that point already.
2121 # Even if this section looks crufty: it has the advantage of
2122 # actually working.
2123 break;;
2124 * )
2125 break;;
2126 esac
2127 done
2128 test "$ac_cv_exeext" = no && ac_cv_exeext=
2129
2130 else
2131 ac_file=''
2132 fi
2133
2134 { echo "$as_me:$LINENO: result: $ac_file" >&5
2135 echo "${ECHO_T}$ac_file" >&6; }
2136 if test -z "$ac_file"; then
2137 echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2139
2140 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2141 See \`config.log' for more details." >&5
2142 echo "$as_me: error: C compiler cannot create executables
2143 See \`config.log' for more details." >&2;}
2144 { (exit 77); exit 77; }; }
2145 fi
2146
2147 ac_exeext=$ac_cv_exeext
2148
2149 # Check that the compiler produces executables we can run. If not, either
2150 # the compiler is broken, or we cross compile.
2151 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2152 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2153 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2154 # If not cross compiling, check that we can run a simple program.
2155 if test "$cross_compiling" != yes; then
2156 if { ac_try='./$ac_file'
2157 { (case "(($ac_try" in
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2160 esac
2161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2162 (eval "$ac_try") 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; }; then
2166 cross_compiling=no
2167 else
2168 if test "$cross_compiling" = maybe; then
2169 cross_compiling=yes
2170 else
2171 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2172 If you meant to cross compile, use \`--host'.
2173 See \`config.log' for more details." >&5
2174 echo "$as_me: error: cannot run C compiled programs.
2175 If you meant to cross compile, use \`--host'.
2176 See \`config.log' for more details." >&2;}
2177 { (exit 1); exit 1; }; }
2178 fi
2179 fi
2180 fi
2181 { echo "$as_me:$LINENO: result: yes" >&5
2182 echo "${ECHO_T}yes" >&6; }
2183
2184 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2185 ac_clean_files=$ac_clean_files_save
2186 # Check that the compiler produces executables we can run. If not, either
2187 # the compiler is broken, or we cross compile.
2188 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2189 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2190 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2191 echo "${ECHO_T}$cross_compiling" >&6; }
2192
2193 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2194 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2195 if { (ac_try="$ac_link"
2196 case "(($ac_try" in
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2199 esac
2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201 (eval "$ac_link") 2>&5
2202 ac_status=$?
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; then
2205 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2206 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2207 # work properly (i.e., refer to `conftest.exe'), while it won't with
2208 # `rm'.
2209 for ac_file in conftest.exe conftest conftest.*; do
2210 test -f "$ac_file" || continue
2211 case $ac_file in
2212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2213 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214 break;;
2215 * ) break;;
2216 esac
2217 done
2218 else
2219 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2222 See \`config.log' for more details." >&2;}
2223 { (exit 1); exit 1; }; }
2224 fi
2225
2226 rm -f conftest$ac_cv_exeext
2227 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2228 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2229
2230 rm -f conftest.$ac_ext
2231 EXEEXT=$ac_cv_exeext
2232 ac_exeext=$EXEEXT
2233 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2234 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2235 if test "${ac_cv_objext+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 cat >conftest.$ac_ext <<_ACEOF
2239 /* confdefs.h. */
2240 _ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2244
2245 int
2246 main ()
2247 {
2248
2249 ;
2250 return 0;
2251 }
2252 _ACEOF
2253 rm -f conftest.o conftest.obj
2254 if { (ac_try="$ac_compile"
2255 case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258 esac
2259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260 (eval "$ac_compile") 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 for ac_file in conftest.o conftest.obj conftest.*; do
2265 test -f "$ac_file" || continue;
2266 case $ac_file in
2267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2269 break;;
2270 esac
2271 done
2272 else
2273 echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2275
2276 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2279 See \`config.log' for more details." >&2;}
2280 { (exit 1); exit 1; }; }
2281 fi
2282
2283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2284 fi
2285 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2286 echo "${ECHO_T}$ac_cv_objext" >&6; }
2287 OBJEXT=$ac_cv_objext
2288 ac_objext=$OBJEXT
2289 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2290 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2291 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294 cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h. */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h. */
2300
2301 int
2302 main ()
2303 {
2304 #ifndef __GNUC__
2305 choke me
2306 #endif
2307
2308 ;
2309 return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext
2313 if { (ac_try="$ac_compile"
2314 case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317 esac
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319 (eval "$ac_compile") 2>conftest.er1
2320 ac_status=$?
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } && {
2326 test -z "$ac_c_werror_flag" ||
2327 test ! -s conftest.err
2328 } && test -s conftest.$ac_objext; then
2329 ac_compiler_gnu=yes
2330 else
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334 ac_compiler_gnu=no
2335 fi
2336
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2339
2340 fi
2341 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2342 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2343 GCC=`test $ac_compiler_gnu = yes && echo yes`
2344 ac_test_CFLAGS=${CFLAGS+set}
2345 ac_save_CFLAGS=$CFLAGS
2346 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2347 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_cc_g+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 ac_save_c_werror_flag=$ac_c_werror_flag
2352 ac_c_werror_flag=yes
2353 ac_cv_prog_cc_g=no
2354 CFLAGS="-g"
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2361
2362 int
2363 main ()
2364 {
2365
2366 ;
2367 return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (ac_try="$ac_compile"
2372 case "(($ac_try" in
2373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374 *) ac_try_echo=$ac_try;;
2375 esac
2376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2377 (eval "$ac_compile") 2>conftest.er1
2378 ac_status=$?
2379 grep -v '^ *+' conftest.er1 >conftest.err
2380 rm -f conftest.er1
2381 cat conftest.err >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); } && {
2384 test -z "$ac_c_werror_flag" ||
2385 test ! -s conftest.err
2386 } && test -s conftest.$ac_objext; then
2387 ac_cv_prog_cc_g=yes
2388 else
2389 echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2391
2392 CFLAGS=""
2393 cat >conftest.$ac_ext <<_ACEOF
2394 /* confdefs.h. */
2395 _ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h. */
2399
2400 int
2401 main ()
2402 {
2403
2404 ;
2405 return 0;
2406 }
2407 _ACEOF
2408 rm -f conftest.$ac_objext
2409 if { (ac_try="$ac_compile"
2410 case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2413 esac
2414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415 (eval "$ac_compile") 2>conftest.er1
2416 ac_status=$?
2417 grep -v '^ *+' conftest.er1 >conftest.err
2418 rm -f conftest.er1
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } && {
2422 test -z "$ac_c_werror_flag" ||
2423 test ! -s conftest.err
2424 } && test -s conftest.$ac_objext; then
2425 :
2426 else
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2429
2430 ac_c_werror_flag=$ac_save_c_werror_flag
2431 CFLAGS="-g"
2432 cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h. */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2438
2439 int
2440 main ()
2441 {
2442
2443 ;
2444 return 0;
2445 }
2446 _ACEOF
2447 rm -f conftest.$ac_objext
2448 if { (ac_try="$ac_compile"
2449 case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2452 esac
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_compile") 2>conftest.er1
2455 ac_status=$?
2456 grep -v '^ *+' conftest.er1 >conftest.err
2457 rm -f conftest.er1
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } && {
2461 test -z "$ac_c_werror_flag" ||
2462 test ! -s conftest.err
2463 } && test -s conftest.$ac_objext; then
2464 ac_cv_prog_cc_g=yes
2465 else
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2468
2469
2470 fi
2471
2472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 fi
2474
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476 fi
2477
2478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 ac_c_werror_flag=$ac_save_c_werror_flag
2480 fi
2481 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2482 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2483 if test "$ac_test_CFLAGS" = set; then
2484 CFLAGS=$ac_save_CFLAGS
2485 elif test $ac_cv_prog_cc_g = yes; then
2486 if test "$GCC" = yes; then
2487 CFLAGS="-g -O2"
2488 else
2489 CFLAGS="-g"
2490 fi
2491 else
2492 if test "$GCC" = yes; then
2493 CFLAGS="-O2"
2494 else
2495 CFLAGS=
2496 fi
2497 fi
2498 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2499 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_cc_c89+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503 ac_cv_prog_cc_c89=no
2504 ac_save_CC=$CC
2505 cat >conftest.$ac_ext <<_ACEOF
2506 /* confdefs.h. */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2511 #include <stdarg.h>
2512 #include <stdio.h>
2513 #include <sys/types.h>
2514 #include <sys/stat.h>
2515 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2516 struct buf { int x; };
2517 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2518 static char *e (p, i)
2519 char **p;
2520 int i;
2521 {
2522 return p[i];
2523 }
2524 static char *f (char * (*g) (char **, int), char **p, ...)
2525 {
2526 char *s;
2527 va_list v;
2528 va_start (v,p);
2529 s = g (p, va_arg (v,int));
2530 va_end (v);
2531 return s;
2532 }
2533
2534 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2535 function prototypes and stuff, but not '\xHH' hex character constants.
2536 These don't provoke an error unfortunately, instead are silently treated
2537 as 'x'. The following induces an error, until -std is added to get
2538 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2539 array size at least. It's necessary to write '\x00'==0 to get something
2540 that's true only with -std. */
2541 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2542
2543 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2544 inside strings and character constants. */
2545 #define FOO(x) 'x'
2546 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2547
2548 int test (int i, double x);
2549 struct s1 {int (*f) (int a);};
2550 struct s2 {int (*f) (double a);};
2551 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2552 int argc;
2553 char **argv;
2554 int
2555 main ()
2556 {
2557 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2558 ;
2559 return 0;
2560 }
2561 _ACEOF
2562 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2563 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2564 do
2565 CC="$ac_save_CC $ac_arg"
2566 rm -f conftest.$ac_objext
2567 if { (ac_try="$ac_compile"
2568 case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2571 esac
2572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573 (eval "$ac_compile") 2>conftest.er1
2574 ac_status=$?
2575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } && {
2580 test -z "$ac_c_werror_flag" ||
2581 test ! -s conftest.err
2582 } && test -s conftest.$ac_objext; then
2583 ac_cv_prog_cc_c89=$ac_arg
2584 else
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588
2589 fi
2590
2591 rm -f core conftest.err conftest.$ac_objext
2592 test "x$ac_cv_prog_cc_c89" != "xno" && break
2593 done
2594 rm -f conftest.$ac_ext
2595 CC=$ac_save_CC
2596
2597 fi
2598 # AC_CACHE_VAL
2599 case "x$ac_cv_prog_cc_c89" in
2600 x)
2601 { echo "$as_me:$LINENO: result: none needed" >&5
2602 echo "${ECHO_T}none needed" >&6; } ;;
2603 xno)
2604 { echo "$as_me:$LINENO: result: unsupported" >&5
2605 echo "${ECHO_T}unsupported" >&6; } ;;
2606 *)
2607 CC="$CC $ac_cv_prog_cc_c89"
2608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2610 esac
2611
2612
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618
2619
2620 ac_ext=c
2621 ac_cpp='$CPP $CPPFLAGS'
2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2626 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2627 # On Suns, sometimes $CPP names a directory.
2628 if test -n "$CPP" && test -d "$CPP"; then
2629 CPP=
2630 fi
2631 if test -z "$CPP"; then
2632 if test "${ac_cv_prog_CPP+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635 # Double quotes because CPP needs to be expanded
2636 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2637 do
2638 ac_preproc_ok=false
2639 for ac_c_preproc_warn_flag in '' yes
2640 do
2641 # Use a header file that comes with gcc, so configuring glibc
2642 # with a fresh cross-compiler works.
2643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2644 # <limits.h> exists even on freestanding compilers.
2645 # On the NeXT, cc -E runs the code through the compiler's parser,
2646 # not just through cpp. "Syntax error" is here to catch this case.
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h. */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2653 #ifdef __STDC__
2654 # include <limits.h>
2655 #else
2656 # include <assert.h>
2657 #endif
2658 Syntax error
2659 _ACEOF
2660 if { (ac_try="$ac_cpp conftest.$ac_ext"
2661 case "(($ac_try" in
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2664 esac
2665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2667 ac_status=$?
2668 grep -v '^ *+' conftest.er1 >conftest.err
2669 rm -f conftest.er1
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } >/dev/null && {
2673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2674 test ! -s conftest.err
2675 }; then
2676 :
2677 else
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2680
2681 # Broken: fails on valid input.
2682 continue
2683 fi
2684
2685 rm -f conftest.err conftest.$ac_ext
2686
2687 # OK, works on sane cases. Now check whether nonexistent headers
2688 # can be detected and how.
2689 cat >conftest.$ac_ext <<_ACEOF
2690 /* confdefs.h. */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2695 #include <ac_nonexistent.h>
2696 _ACEOF
2697 if { (ac_try="$ac_cpp conftest.$ac_ext"
2698 case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } >/dev/null && {
2710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 }; then
2713 # Broken: success on invalid input.
2714 continue
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 # Passes both tests.
2720 ac_preproc_ok=:
2721 break
2722 fi
2723
2724 rm -f conftest.err conftest.$ac_ext
2725
2726 done
2727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2728 rm -f conftest.err conftest.$ac_ext
2729 if $ac_preproc_ok; then
2730 break
2731 fi
2732
2733 done
2734 ac_cv_prog_CPP=$CPP
2735
2736 fi
2737 CPP=$ac_cv_prog_CPP
2738 else
2739 ac_cv_prog_CPP=$CPP
2740 fi
2741 { echo "$as_me:$LINENO: result: $CPP" >&5
2742 echo "${ECHO_T}$CPP" >&6; }
2743 ac_preproc_ok=false
2744 for ac_c_preproc_warn_flag in '' yes
2745 do
2746 # Use a header file that comes with gcc, so configuring glibc
2747 # with a fresh cross-compiler works.
2748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2749 # <limits.h> exists even on freestanding compilers.
2750 # On the NeXT, cc -E runs the code through the compiler's parser,
2751 # not just through cpp. "Syntax error" is here to catch this case.
2752 cat >conftest.$ac_ext <<_ACEOF
2753 /* confdefs.h. */
2754 _ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2758 #ifdef __STDC__
2759 # include <limits.h>
2760 #else
2761 # include <assert.h>
2762 #endif
2763 Syntax error
2764 _ACEOF
2765 if { (ac_try="$ac_cpp conftest.$ac_ext"
2766 case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2772 ac_status=$?
2773 grep -v '^ *+' conftest.er1 >conftest.err
2774 rm -f conftest.er1
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } >/dev/null && {
2778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2779 test ! -s conftest.err
2780 }; then
2781 :
2782 else
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 # Broken: fails on valid input.
2787 continue
2788 fi
2789
2790 rm -f conftest.err conftest.$ac_ext
2791
2792 # OK, works on sane cases. Now check whether nonexistent headers
2793 # can be detected and how.
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h. */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2800 #include <ac_nonexistent.h>
2801 _ACEOF
2802 if { (ac_try="$ac_cpp conftest.$ac_ext"
2803 case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2806 esac
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2809 ac_status=$?
2810 grep -v '^ *+' conftest.er1 >conftest.err
2811 rm -f conftest.er1
2812 cat conftest.err >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } >/dev/null && {
2815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2816 test ! -s conftest.err
2817 }; then
2818 # Broken: success on invalid input.
2819 continue
2820 else
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 # Passes both tests.
2825 ac_preproc_ok=:
2826 break
2827 fi
2828
2829 rm -f conftest.err conftest.$ac_ext
2830
2831 done
2832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2833 rm -f conftest.err conftest.$ac_ext
2834 if $ac_preproc_ok; then
2835 :
2836 else
2837 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2838 See \`config.log' for more details." >&5
2839 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2840 See \`config.log' for more details." >&2;}
2841 { (exit 1); exit 1; }; }
2842 fi
2843
2844 ac_ext=c
2845 ac_cpp='$CPP $CPPFLAGS'
2846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849
2850
2851 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2852 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2853 if test "${ac_cv_path_GREP+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 # Extract the first word of "grep ggrep" to use in msg output
2857 if test -z "$GREP"; then
2858 set dummy grep ggrep; ac_prog_name=$2
2859 if test "${ac_cv_path_GREP+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 ac_path_GREP_found=false
2863 # Loop through the user's path and test for each of PROGNAME-LIST
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2866 do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_prog in grep ggrep; do
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2872 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2873 # Check for GNU ac_path_GREP and select it if it is found.
2874 # Check for GNU $ac_path_GREP
2875 case `"$ac_path_GREP" --version 2>&1` in
2876 *GNU*)
2877 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2878 *)
2879 ac_count=0
2880 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2881 while :
2882 do
2883 cat "conftest.in" "conftest.in" >"conftest.tmp"
2884 mv "conftest.tmp" "conftest.in"
2885 cp "conftest.in" "conftest.nl"
2886 echo 'GREP' >> "conftest.nl"
2887 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2889 ac_count=`expr $ac_count + 1`
2890 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2891 # Best one so far, save it but keep looking for a better one
2892 ac_cv_path_GREP="$ac_path_GREP"
2893 ac_path_GREP_max=$ac_count
2894 fi
2895 # 10*(2^10) chars as input seems more than enough
2896 test $ac_count -gt 10 && break
2897 done
2898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2899 esac
2900
2901
2902 $ac_path_GREP_found && break 3
2903 done
2904 done
2905
2906 done
2907 IFS=$as_save_IFS
2908
2909
2910 fi
2911
2912 GREP="$ac_cv_path_GREP"
2913 if test -z "$GREP"; then
2914 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2915 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2916 { (exit 1); exit 1; }; }
2917 fi
2918
2919 else
2920 ac_cv_path_GREP=$GREP
2921 fi
2922
2923
2924 fi
2925 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2926 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
2927 GREP="$ac_cv_path_GREP"
2928
2929
2930 { echo "$as_me:$LINENO: checking for egrep" >&5
2931 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2932 if test "${ac_cv_path_EGREP+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2936 then ac_cv_path_EGREP="$GREP -E"
2937 else
2938 # Extract the first word of "egrep" to use in msg output
2939 if test -z "$EGREP"; then
2940 set dummy egrep; ac_prog_name=$2
2941 if test "${ac_cv_path_EGREP+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 ac_path_EGREP_found=false
2945 # Loop through the user's path and test for each of PROGNAME-LIST
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2948 do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_prog in egrep; do
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2954 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2955 # Check for GNU ac_path_EGREP and select it if it is found.
2956 # Check for GNU $ac_path_EGREP
2957 case `"$ac_path_EGREP" --version 2>&1` in
2958 *GNU*)
2959 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2960 *)
2961 ac_count=0
2962 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2963 while :
2964 do
2965 cat "conftest.in" "conftest.in" >"conftest.tmp"
2966 mv "conftest.tmp" "conftest.in"
2967 cp "conftest.in" "conftest.nl"
2968 echo 'EGREP' >> "conftest.nl"
2969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2971 ac_count=`expr $ac_count + 1`
2972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2973 # Best one so far, save it but keep looking for a better one
2974 ac_cv_path_EGREP="$ac_path_EGREP"
2975 ac_path_EGREP_max=$ac_count
2976 fi
2977 # 10*(2^10) chars as input seems more than enough
2978 test $ac_count -gt 10 && break
2979 done
2980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2981 esac
2982
2983
2984 $ac_path_EGREP_found && break 3
2985 done
2986 done
2987
2988 done
2989 IFS=$as_save_IFS
2990
2991
2992 fi
2993
2994 EGREP="$ac_cv_path_EGREP"
2995 if test -z "$EGREP"; then
2996 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2997 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2998 { (exit 1); exit 1; }; }
2999 fi
3000
3001 else
3002 ac_cv_path_EGREP=$EGREP
3003 fi
3004
3005
3006 fi
3007 fi
3008 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3009 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3010 EGREP="$ac_cv_path_EGREP"
3011
3012
3013 { echo "$as_me:$LINENO: checking for NetBSD" >&5
3014 echo $ECHO_N "checking for NetBSD... $ECHO_C" >&6; }
3015 cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021 #ifdef __NetBSD__
3022 yes
3023 #endif
3024
3025 _ACEOF
3026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3027 $EGREP "yes" >/dev/null 2>&1; then
3028 { echo "$as_me:$LINENO: result: yes" >&5
3029 echo "${ECHO_T}yes" >&6; }
3030
3031 cat >>confdefs.h <<\_ACEOF
3032 #define _POSIX_SOURCE 1
3033 _ACEOF
3034
3035
3036 cat >>confdefs.h <<\_ACEOF
3037 #define _POSIX_C_SOURCE 200112L
3038 _ACEOF
3039
3040
3041 cat >>confdefs.h <<\_ACEOF
3042 #define _XOPEN_SOURCE 600
3043 _ACEOF
3044
3045 else
3046 { echo "$as_me:$LINENO: result: no" >&5
3047 echo "${ECHO_T}no" >&6; }
3048 fi
3049 rm -f conftest*
3050
3051
3052 # Extract the first word of "sh", so it can be a program name with args.
3053 set dummy sh; ac_word=$2
3054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3056 if test "${ac_cv_path_BSHELL+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059 case $BSHELL in
3060 [\\/]* | ?:[\\/]*)
3061 ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
3062 ;;
3063 *)
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext"
3072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 ;;
3080 esac
3081 fi
3082 BSHELL=$ac_cv_path_BSHELL
3083 if test -n "$BSHELL"; then
3084 { echo "$as_me:$LINENO: result: $BSHELL" >&5
3085 echo "${ECHO_T}$BSHELL" >&6; }
3086 else
3087 { echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6; }
3089 fi
3090
3091
3092 if test x"$BSHELL" = x; then
3093 { { echo "$as_me:$LINENO: error: sh must be somewhere on \$PATH" >&5
3094 echo "$as_me: error: sh must be somewhere on \$PATH" >&2;}
3095 { (exit 1); exit 1; }; }
3096 fi
3097
3098 cat >>confdefs.h <<_ACEOF
3099 #define PATH_BSHELL "$BSHELL"
3100 _ACEOF
3101
3102
3103 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3105 if test "${ac_cv_header_stdc+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h. */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3114 #include <stdlib.h>
3115 #include <stdarg.h>
3116 #include <string.h>
3117 #include <float.h>
3118
3119 int
3120 main ()
3121 {
3122
3123 ;
3124 return 0;
3125 }
3126 _ACEOF
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3129 case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && {
3141 test -z "$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 } && test -s conftest.$ac_objext; then
3144 ac_cv_header_stdc=yes
3145 else
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 ac_cv_header_stdc=no
3150 fi
3151
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153
3154 if test $ac_cv_header_stdc = yes; then
3155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162 #include <string.h>
3163
3164 _ACEOF
3165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3166 $EGREP "memchr" >/dev/null 2>&1; then
3167 :
3168 else
3169 ac_cv_header_stdc=no
3170 fi
3171 rm -f conftest*
3172
3173 fi
3174
3175 if test $ac_cv_header_stdc = yes; then
3176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3183 #include <stdlib.h>
3184
3185 _ACEOF
3186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3187 $EGREP "free" >/dev/null 2>&1; then
3188 :
3189 else
3190 ac_cv_header_stdc=no
3191 fi
3192 rm -f conftest*
3193
3194 fi
3195
3196 if test $ac_cv_header_stdc = yes; then
3197 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3198 if test "$cross_compiling" = yes; then
3199 :
3200 else
3201 cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h. */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3207 #include <ctype.h>
3208 #include <stdlib.h>
3209 #if ((' ' & 0x0FF) == 0x020)
3210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3212 #else
3213 # define ISLOWER(c) \
3214 (('a' <= (c) && (c) <= 'i') \
3215 || ('j' <= (c) && (c) <= 'r') \
3216 || ('s' <= (c) && (c) <= 'z'))
3217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3218 #endif
3219
3220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3221 int
3222 main ()
3223 {
3224 int i;
3225 for (i = 0; i < 256; i++)
3226 if (XOR (islower (i), ISLOWER (i))
3227 || toupper (i) != TOUPPER (i))
3228 return 2;
3229 return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest$ac_exeext
3233 if { (ac_try="$ac_link"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_link") 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3243 { (case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_try") 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; }; then
3252 :
3253 else
3254 echo "$as_me: program exited with status $ac_status" >&5
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 ( exit $ac_status )
3259 ac_cv_header_stdc=no
3260 fi
3261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3262 fi
3263
3264
3265 fi
3266 fi
3267 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3268 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3269 if test $ac_cv_header_stdc = yes; then
3270
3271 cat >>confdefs.h <<\_ACEOF
3272 #define STDC_HEADERS 1
3273 _ACEOF
3274
3275 fi
3276
3277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3288 inttypes.h stdint.h unistd.h
3289 do
3290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302 $ac_includes_default
3303
3304 #include <$ac_header>
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (ac_try="$ac_compile"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_compile") 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } && {
3320 test -z "$ac_c_werror_flag" ||
3321 test ! -s conftest.err
3322 } && test -s conftest.$ac_objext; then
3323 eval "$as_ac_Header=yes"
3324 else
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328 eval "$as_ac_Header=no"
3329 fi
3330
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 fi
3333 ac_res=`eval echo '${'$as_ac_Header'}'`
3334 { echo "$as_me:$LINENO: result: $ac_res" >&5
3335 echo "${ECHO_T}$ac_res" >&6; }
3336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3337 cat >>confdefs.h <<_ACEOF
3338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3339 _ACEOF
3340
3341 fi
3342
3343 done
3344
3345
3346 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3347 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3348 if test "${ac_cv_c_bigendian+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 # See if sys/param.h defines the BYTE_ORDER macro.
3352 cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h. */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3358 #include <sys/types.h>
3359 #include <sys/param.h>
3360
3361 int
3362 main ()
3363 {
3364 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3365 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3366 bogus endian macros
3367 #endif
3368
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3390 # It does; now see whether it defined to BIG_ENDIAN or not.
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 #include <sys/types.h>
3398 #include <sys/param.h>
3399
3400 int
3401 main ()
3402 {
3403 #if BYTE_ORDER != BIG_ENDIAN
3404 not big endian
3405 #endif
3406
3407 ;
3408 return 0;
3409 }
3410 _ACEOF
3411 rm -f conftest.$ac_objext
3412 if { (ac_try="$ac_compile"
3413 case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_compile") 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } && {
3425 test -z "$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3427 } && test -s conftest.$ac_objext; then
3428 ac_cv_c_bigendian=yes
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 ac_cv_c_bigendian=no
3434 fi
3435
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 else
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441 # It does not; compile a test program.
3442 if test "$cross_compiling" = yes; then
3443 # try to guess the endianness by grepping values into an object file
3444 ac_cv_c_bigendian=unknown
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3452 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3453 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3454 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3455 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3456 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3457 int
3458 main ()
3459 {
3460 _ascii (); _ebcdic ();
3461 ;
3462 return 0;
3463 }
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (ac_try="$ac_compile"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_compile") 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } && {
3479 test -z "$ac_c_werror_flag" ||
3480 test ! -s conftest.err
3481 } && test -s conftest.$ac_objext; then
3482 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3483 ac_cv_c_bigendian=yes
3484 fi
3485 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3486 if test "$ac_cv_c_bigendian" = unknown; then
3487 ac_cv_c_bigendian=no
3488 else
3489 # finding both strings is unlikely to happen, but who knows?
3490 ac_cv_c_bigendian=unknown
3491 fi
3492 fi
3493 else
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497
3498 fi
3499
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 else
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h. */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 $ac_includes_default
3509 int
3510 main ()
3511 {
3512
3513 /* Are we little or big endian? From Harbison&Steele. */
3514 union
3515 {
3516 long int l;
3517 char c[sizeof (long int)];
3518 } u;
3519 u.l = 1;
3520 return u.c[sizeof (long int) - 1] == 1;
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 rm -f conftest$ac_exeext
3527 if { (ac_try="$ac_link"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_link") 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3537 { (case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_try") 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; }; then
3546 ac_cv_c_bigendian=no
3547 else
3548 echo "$as_me: program exited with status $ac_status" >&5
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 ( exit $ac_status )
3553 ac_cv_c_bigendian=yes
3554 fi
3555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3556 fi
3557
3558
3559 fi
3560
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 fi
3563 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3564 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3565 case $ac_cv_c_bigendian in
3566 yes)
3567
3568 cat >>confdefs.h <<\_ACEOF
3569 #define WORDS_BIGENDIAN 1
3570 _ACEOF
3571 ;;
3572 no)
3573 ;;
3574 *)
3575 { { echo "$as_me:$LINENO: error: unknown endianness
3576 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3577 echo "$as_me: error: unknown endianness
3578 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3579 { (exit 1); exit 1; }; } ;;
3580 esac
3581
3582 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3584 if test "${ac_cv_header_stdc+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h. */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593 #include <stdlib.h>
3594 #include <stdarg.h>
3595 #include <string.h>
3596 #include <float.h>
3597
3598 int
3599 main ()
3600 {
3601
3602 ;
3603 return 0;
3604 }
3605 _ACEOF
3606 rm -f conftest.$ac_objext
3607 if { (ac_try="$ac_compile"
3608 case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611 esac
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_compile") 2>conftest.er1
3614 ac_status=$?
3615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } && {
3620 test -z "$ac_c_werror_flag" ||
3621 test ! -s conftest.err
3622 } && test -s conftest.$ac_objext; then
3623 ac_cv_header_stdc=yes
3624 else
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628 ac_cv_header_stdc=no
3629 fi
3630
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632
3633 if test $ac_cv_header_stdc = yes; then
3634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3635 cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h. */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3641 #include <string.h>
3642
3643 _ACEOF
3644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3645 $EGREP "memchr" >/dev/null 2>&1; then
3646 :
3647 else
3648 ac_cv_header_stdc=no
3649 fi
3650 rm -f conftest*
3651
3652 fi
3653
3654 if test $ac_cv_header_stdc = yes; then
3655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3656 cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h. */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 #include <stdlib.h>
3663
3664 _ACEOF
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666 $EGREP "free" >/dev/null 2>&1; then
3667 :
3668 else
3669 ac_cv_header_stdc=no
3670 fi
3671 rm -f conftest*
3672
3673 fi
3674
3675 if test $ac_cv_header_stdc = yes; then
3676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3677 if test "$cross_compiling" = yes; then
3678 :
3679 else
3680 cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 #include <ctype.h>
3687 #include <stdlib.h>
3688 #if ((' ' & 0x0FF) == 0x020)
3689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3691 #else
3692 # define ISLOWER(c) \
3693 (('a' <= (c) && (c) <= 'i') \
3694 || ('j' <= (c) && (c) <= 'r') \
3695 || ('s' <= (c) && (c) <= 'z'))
3696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3697 #endif
3698
3699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3700 int
3701 main ()
3702 {
3703 int i;
3704 for (i = 0; i < 256; i++)
3705 if (XOR (islower (i), ISLOWER (i))
3706 || toupper (i) != TOUPPER (i))
3707 return 2;
3708 return 0;
3709 }
3710 _ACEOF
3711 rm -f conftest$ac_exeext
3712 if { (ac_try="$ac_link"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_link") 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3722 { (case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725 esac
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_try") 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 :
3732 else
3733 echo "$as_me: program exited with status $ac_status" >&5
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 ( exit $ac_status )
3738 ac_cv_header_stdc=no
3739 fi
3740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3741 fi
3742
3743
3744 fi
3745 fi
3746 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3747 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3748 if test $ac_cv_header_stdc = yes; then
3749
3750 cat >>confdefs.h <<\_ACEOF
3751 #define STDC_HEADERS 1
3752 _ACEOF
3753
3754 fi
3755
3756
3757 # Confirm existence of zlib. (This is available as a default install
3758 # option on many OS's; this could be added as a reachover build in the
3759 # future.)
3760 if test "${ac_cv_header_zlib_h+set}" = set; then
3761 { echo "$as_me:$LINENO: checking for zlib.h" >&5
3762 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
3763 if test "${ac_cv_header_zlib_h+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 fi
3766 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3767 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
3768 else
3769 # Is the header compilable?
3770 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
3771 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 $ac_includes_default
3779 #include <zlib.h>
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_compile") 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } && {
3795 test -z "$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3797 } && test -s conftest.$ac_objext; then
3798 ac_header_compiler=yes
3799 else
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803 ac_header_compiler=no
3804 fi
3805
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3808 echo "${ECHO_T}$ac_header_compiler" >&6; }
3809
3810 # Is the header present?
3811 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
3812 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #include <zlib.h>
3820 _ACEOF
3821 if { (ac_try="$ac_cpp conftest.$ac_ext"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } >/dev/null && {
3834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3835 test ! -s conftest.err
3836 }; then
3837 ac_header_preproc=yes
3838 else
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842 ac_header_preproc=no
3843 fi
3844
3845 rm -f conftest.err conftest.$ac_ext
3846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3847 echo "${ECHO_T}$ac_header_preproc" >&6; }
3848
3849 # So? What about this header?
3850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3851 yes:no: )
3852 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
3853 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3854 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
3855 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
3856 ac_header_preproc=yes
3857 ;;
3858 no:yes:* )
3859 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
3860 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
3861 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
3862 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
3863 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
3864 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
3865 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
3866 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
3867 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
3868 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
3869 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
3870 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
3871 ( cat <<\_ASBOX
3872 ## ---------------------------------------- ##
3873 ## Report this to lib-bug-people (at] NetBSD.org ##
3874 ## ---------------------------------------- ##
3875 _ASBOX
3876 ) | sed "s/^/$as_me: WARNING: /" >&2
3877 ;;
3878 esac
3879 { echo "$as_me:$LINENO: checking for zlib.h" >&5
3880 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
3881 if test "${ac_cv_header_zlib_h+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884 ac_cv_header_zlib_h=$ac_header_preproc
3885 fi
3886 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3887 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
3888
3889 fi
3890 if test $ac_cv_header_zlib_h = yes; then
3891 :
3892 else
3893 { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3894 echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3895 { (exit 1); exit 1; }; }
3896 fi
3897
3898
3899
3900 { echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5
3901 echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6; }
3902 if test "${ac_cv_lib_z_gzdopen+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 ac_check_lib_save_LIBS=$LIBS
3906 LIBS="-lz $LIBS"
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913
3914 /* Override any GCC internal prototype to avoid an error.
3915 Use char because int might match the return type of a GCC
3916 builtin and then its argument prototype would still apply. */
3917 #ifdef __cplusplus
3918 extern "C"
3919 #endif
3920 char gzdopen ();
3921 int
3922 main ()
3923 {
3924 return gzdopen ();
3925 ;
3926 return 0;
3927 }
3928 _ACEOF
3929 rm -f conftest.$ac_objext conftest$ac_exeext
3930 if { (ac_try="$ac_link"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_link") 2>conftest.er1
3937 ac_status=$?
3938 grep -v '^ *+' conftest.er1 >conftest.err
3939 rm -f conftest.er1
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } && {
3943 test -z "$ac_c_werror_flag" ||
3944 test ! -s conftest.err
3945 } && test -s conftest$ac_exeext &&
3946 $as_test_x conftest$ac_exeext; then
3947 ac_cv_lib_z_gzdopen=yes
3948 else
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 ac_cv_lib_z_gzdopen=no
3953 fi
3954
3955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3956 conftest$ac_exeext conftest.$ac_ext
3957 LIBS=$ac_check_lib_save_LIBS
3958 fi
3959 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5
3960 echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6; }
3961 if test $ac_cv_lib_z_gzdopen = yes; then
3962 cat >>confdefs.h <<_ACEOF
3963 #define HAVE_LIBZ 1
3964 _ACEOF
3965
3966 LIBS="-lz $LIBS"
3967
3968 else
3969 { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3970 echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3971 { (exit 1); exit 1; }; }
3972 fi
3973
3974
3975 # Make sure certain required headers are available.
3976 # These are not necessarily required by the code, but they are not
3977 # currently conditionalized.
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004 for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
4005 sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
4006 sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
4007 netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
4008 termios.h unistd.h
4009 do
4010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 fi
4017 ac_res=`eval echo '${'$as_ac_Header'}'`
4018 { echo "$as_me:$LINENO: result: $ac_res" >&5
4019 echo "${ECHO_T}$ac_res" >&6; }
4020 else
4021 # Is the header compilable?
4022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4024 cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h. */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 $ac_includes_default
4031 #include <$ac_header>
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (ac_try="$ac_compile"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } && {
4047 test -z "$ac_c_werror_flag" ||
4048 test ! -s conftest.err
4049 } && test -s conftest.$ac_objext; then
4050 ac_header_compiler=yes
4051 else
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4054
4055 ac_header_compiler=no
4056 fi
4057
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4060 echo "${ECHO_T}$ac_header_compiler" >&6; }
4061
4062 # Is the header present?
4063 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4065 cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h. */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4071 #include <$ac_header>
4072 _ACEOF
4073 if { (ac_try="$ac_cpp conftest.$ac_ext"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } >/dev/null && {
4086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4088 }; then
4089 ac_header_preproc=yes
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 ac_header_preproc=no
4095 fi
4096
4097 rm -f conftest.err conftest.$ac_ext
4098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4099 echo "${ECHO_T}$ac_header_preproc" >&6; }
4100
4101 # So? What about this header?
4102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4103 yes:no: )
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4108 ac_header_preproc=yes
4109 ;;
4110 no:yes:* )
4111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4118 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4123 ( cat <<\_ASBOX
4124 ## ---------------------------------------- ##
4125 ## Report this to lib-bug-people (at] NetBSD.org ##
4126 ## ---------------------------------------- ##
4127 _ASBOX
4128 ) | sed "s/^/$as_me: WARNING: /" >&2
4129 ;;
4130 esac
4131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 eval "$as_ac_Header=\$ac_header_preproc"
4137 fi
4138 ac_res=`eval echo '${'$as_ac_Header'}'`
4139 { echo "$as_me:$LINENO: result: $ac_res" >&5
4140 echo "${ECHO_T}$ac_res" >&6; }
4141
4142 fi
4143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4144 cat >>confdefs.h <<_ACEOF
4145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4146 _ACEOF
4147
4148 else
4149 { { echo "$as_me:$LINENO: error: standard system header file not found" >&5
4150 echo "$as_me: error: standard system header file not found" >&2;}
4151 { (exit 1); exit 1; }; }
4152 fi
4153
4154 done
4155
4156
4157 # Find headers that may not be available.
4158
4159
4160
4161
4162
4163 ac_header_dirent=no
4164 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4165 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4166 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4167 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h. */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 #include <sys/types.h>
4178 #include <$ac_hdr>
4179
4180 int
4181 main ()
4182 {
4183 if ((DIR *) 0)
4184 return 0;
4185 ;
4186 return 0;
4187 }
4188 _ACEOF
4189 rm -f conftest.$ac_objext
4190 if { (ac_try="$ac_compile"
4191 case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_compile") 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } && {
4203 test -z "$ac_c_werror_flag" ||
4204 test ! -s conftest.err
4205 } && test -s conftest.$ac_objext; then
4206 eval "$as_ac_Header=yes"
4207 else
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211 eval "$as_ac_Header=no"
4212 fi
4213
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 fi
4216 ac_res=`eval echo '${'$as_ac_Header'}'`
4217 { echo "$as_me:$LINENO: result: $ac_res" >&5
4218 echo "${ECHO_T}$ac_res" >&6; }
4219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4220 cat >>confdefs.h <<_ACEOF
4221 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4222 _ACEOF
4223
4224 ac_header_dirent=$ac_hdr; break
4225 fi
4226
4227 done
4228 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4229 if test $ac_header_dirent = dirent.h; then
4230 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4231 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4232 if test "${ac_cv_search_opendir+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 ac_func_search_save_LIBS=$LIBS
4236 cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h. */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242
4243 /* Override any GCC internal prototype to avoid an error.
4244 Use char because int might match the return type of a GCC
4245 builtin and then its argument prototype would still apply. */
4246 #ifdef __cplusplus
4247 extern "C"
4248 #endif
4249 char opendir ();
4250 int
4251 main ()
4252 {
4253 return opendir ();
4254 ;
4255 return 0;
4256 }
4257 _ACEOF
4258 for ac_lib in '' dir; do
4259 if test -z "$ac_lib"; then
4260 ac_res="none required"
4261 else
4262 ac_res=-l$ac_lib
4263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4264 fi
4265 rm -f conftest.$ac_objext conftest$ac_exeext
4266 if { (ac_try="$ac_link"
4267 case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_link") 2>conftest.er1
4273 ac_status=$?
4274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } && {
4279 test -z "$ac_c_werror_flag" ||
4280 test ! -s conftest.err
4281 } && test -s conftest$ac_exeext &&
4282 $as_test_x conftest$ac_exeext; then
4283 ac_cv_search_opendir=$ac_res
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288
4289 fi
4290
4291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4292 conftest$ac_exeext
4293 if test "${ac_cv_search_opendir+set}" = set; then
4294 break
4295 fi
4296 done
4297 if test "${ac_cv_search_opendir+set}" = set; then
4298 :
4299 else
4300 ac_cv_search_opendir=no
4301 fi
4302 rm conftest.$ac_ext
4303 LIBS=$ac_func_search_save_LIBS
4304 fi
4305 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4306 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4307 ac_res=$ac_cv_search_opendir
4308 if test "$ac_res" != no; then
4309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4310
4311 fi
4312
4313 else
4314 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4315 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4316 if test "${ac_cv_search_opendir+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319 ac_func_search_save_LIBS=$LIBS
4320 cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h. */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326
4327 /* Override any GCC internal prototype to avoid an error.
4328 Use char because int might match the return type of a GCC
4329 builtin and then its argument prototype would still apply. */
4330 #ifdef __cplusplus
4331 extern "C"
4332 #endif
4333 char opendir ();
4334 int
4335 main ()
4336 {
4337 return opendir ();
4338 ;
4339 return 0;
4340 }
4341 _ACEOF
4342 for ac_lib in '' x; do
4343 if test -z "$ac_lib"; then
4344 ac_res="none required"
4345 else
4346 ac_res=-l$ac_lib
4347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4348 fi
4349 rm -f conftest.$ac_objext conftest$ac_exeext
4350 if { (ac_try="$ac_link"
4351 case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354 esac
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_link") 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } && {
4363 test -z "$ac_c_werror_flag" ||
4364 test ! -s conftest.err
4365 } && test -s conftest$ac_exeext &&
4366 $as_test_x conftest$ac_exeext; then
4367 ac_cv_search_opendir=$ac_res
4368 else
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372
4373 fi
4374
4375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4376 conftest$ac_exeext
4377 if test "${ac_cv_search_opendir+set}" = set; then
4378 break
4379 fi
4380 done
4381 if test "${ac_cv_search_opendir+set}" = set; then
4382 :
4383 else
4384 ac_cv_search_opendir=no
4385 fi
4386 rm conftest.$ac_ext
4387 LIBS=$ac_func_search_save_LIBS
4388 fi
4389 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4390 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4391 ac_res=$ac_cv_search_opendir
4392 if test "$ac_res" != no; then
4393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4394
4395 fi
4396
4397 fi
4398
4399
4400
4401
4402
4403
4404
4405
4406 for ac_header in sys/sysmacros.h sys/syslimits.h \
4407 getopt.h features.h malloc.h sys/poll.h stddef.h
4408 do
4409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 fi
4416 ac_res=`eval echo '${'$as_ac_Header'}'`
4417 { echo "$as_me:$LINENO: result: $ac_res" >&5
4418 echo "${ECHO_T}$ac_res" >&6; }
4419 else
4420 # Is the header compilable?
4421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h. */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 $ac_includes_default
4430 #include <$ac_header>
4431 _ACEOF
4432 rm -f conftest.$ac_objext
4433 if { (ac_try="$ac_compile"
4434 case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437 esac
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_compile") 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } && {
4446 test -z "$ac_c_werror_flag" ||
4447 test ! -s conftest.err
4448 } && test -s conftest.$ac_objext; then
4449 ac_header_compiler=yes
4450 else
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454 ac_header_compiler=no
4455 fi
4456
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4459 echo "${ECHO_T}$ac_header_compiler" >&6; }
4460
4461 # Is the header present?
4462 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4464 cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h. */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <$ac_header>
4471 _ACEOF
4472 if { (ac_try="$ac_cpp conftest.$ac_ext"
4473 case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476 esac
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4479 ac_status=$?
4480 grep -v '^ *+' conftest.er1 >conftest.err
4481 rm -f conftest.er1
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } >/dev/null && {
4485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4486 test ! -s conftest.err
4487 }; then
4488 ac_header_preproc=yes
4489 else
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493 ac_header_preproc=no
4494 fi
4495
4496 rm -f conftest.err conftest.$ac_ext
4497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4498 echo "${ECHO_T}$ac_header_preproc" >&6; }
4499
4500 # So? What about this header?
4501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4502 yes:no: )
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4507 ac_header_preproc=yes
4508 ;;
4509 no:yes:* )
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4522 ( cat <<\_ASBOX
4523 ## ---------------------------------------- ##
4524 ## Report this to lib-bug-people (at] NetBSD.org ##
4525 ## ---------------------------------------- ##
4526 _ASBOX
4527 ) | sed "s/^/$as_me: WARNING: /" >&2
4528 ;;
4529 esac
4530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 eval "$as_ac_Header=\$ac_header_preproc"
4536 fi
4537 ac_res=`eval echo '${'$as_ac_Header'}'`
4538 { echo "$as_me:$LINENO: result: $ac_res" >&5
4539 echo "${ECHO_T}$ac_res" >&6; }
4540
4541 fi
4542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4543 cat >>confdefs.h <<_ACEOF
4544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4545 _ACEOF
4546
4547 fi
4548
4549 done
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562 for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
4563 sys/featuretest.h err.h inttypes.h libgen.h paths.h stdint.h util.h
4564 do
4565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 fi
4572 ac_res=`eval echo '${'$as_ac_Header'}'`
4573 { echo "$as_me:$LINENO: result: $ac_res" >&5
4574 echo "${ECHO_T}$ac_res" >&6; }
4575 else
4576 # Is the header compilable?
4577 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4579 cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h. */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 $ac_includes_default
4586 #include <$ac_header>
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (ac_try="$ac_compile"
4590 case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_compile") 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } && {
4602 test -z "$ac_c_werror_flag" ||
4603 test ! -s conftest.err
4604 } && test -s conftest.$ac_objext; then
4605 ac_header_compiler=yes
4606 else
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 ac_header_compiler=no
4611 fi
4612
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4615 echo "${ECHO_T}$ac_header_compiler" >&6; }
4616
4617 # Is the header present?
4618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4620 cat >conftest.$ac_ext <<_ACEOF
4621 /* confdefs.h. */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4626 #include <$ac_header>
4627 _ACEOF
4628 if { (ac_try="$ac_cpp conftest.$ac_ext"
4629 case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632 esac
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4635 ac_status=$?
4636 grep -v '^ *+' conftest.er1 >conftest.err
4637 rm -f conftest.er1
4638 cat conftest.err >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } >/dev/null && {
4641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4642 test ! -s conftest.err
4643 }; then
4644 ac_header_preproc=yes
4645 else
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 ac_header_preproc=no
4650 fi
4651
4652 rm -f conftest.err conftest.$ac_ext
4653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4654 echo "${ECHO_T}$ac_header_preproc" >&6; }
4655
4656 # So? What about this header?
4657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4658 yes:no: )
4659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4663 ac_header_preproc=yes
4664 ;;
4665 no:yes:* )
4666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4678 ( cat <<\_ASBOX
4679 ## ---------------------------------------- ##
4680 ## Report this to lib-bug-people (at] NetBSD.org ##
4681 ## ---------------------------------------- ##
4682 _ASBOX
4683 ) | sed "s/^/$as_me: WARNING: /" >&2
4684 ;;
4685 esac
4686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691 eval "$as_ac_Header=\$ac_header_preproc"
4692 fi
4693 ac_res=`eval echo '${'$as_ac_Header'}'`
4694 { echo "$as_me:$LINENO: result: $ac_res" >&5
4695 echo "${ECHO_T}$ac_res" >&6; }
4696
4697 fi
4698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4699 cat >>confdefs.h <<_ACEOF
4700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4701 _ACEOF
4702
4703 else
4704 test -f include/$ac_header || touch include/$ac_header
4705 fi
4706
4707 done
4708
4709
4710
4711 for ac_header in rpc/types.h netconfig.h
4712 do
4713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 fi
4720 ac_res=`eval echo '${'$as_ac_Header'}'`
4721 { echo "$as_me:$LINENO: result: $ac_res" >&5
4722 echo "${ECHO_T}$ac_res" >&6; }
4723 else
4724 # Is the header compilable?
4725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 $ac_includes_default
4734 #include <$ac_header>
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (ac_try="$ac_compile"
4738 case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_compile") 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && {
4750 test -z "$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 } && test -s conftest.$ac_objext; then
4753 ac_header_compiler=yes
4754 else
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758 ac_header_compiler=no
4759 fi
4760
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4763 echo "${ECHO_T}$ac_header_compiler" >&6; }
4764
4765 # Is the header present?
4766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4768 cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h. */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4774 #include <$ac_header>
4775 _ACEOF
4776 if { (ac_try="$ac_cpp conftest.$ac_ext"
4777 case "(($ac_try" in
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4780 esac
4781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } >/dev/null && {
4789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4790 test ! -s conftest.err
4791 }; then
4792 ac_header_preproc=yes
4793 else
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4796
4797 ac_header_preproc=no
4798 fi
4799
4800 rm -f conftest.err conftest.$ac_ext
4801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4802 echo "${ECHO_T}$ac_header_preproc" >&6; }
4803
4804 # So? What about this header?
4805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4806 yes:no: )
4807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4811 ac_header_preproc=yes
4812 ;;
4813 no:yes:* )
4814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4826 ( cat <<\_ASBOX
4827 ## ---------------------------------------- ##
4828 ## Report this to lib-bug-people (at] NetBSD.org ##
4829 ## ---------------------------------------- ##
4830 _ASBOX
4831 ) | sed "s/^/$as_me: WARNING: /" >&2
4832 ;;
4833 esac
4834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 eval "$as_ac_Header=\$ac_header_preproc"
4840 fi
4841 ac_res=`eval echo '${'$as_ac_Header'}'`
4842 { echo "$as_me:$LINENO: result: $ac_res" >&5
4843 echo "${ECHO_T}$ac_res" >&6; }
4844
4845 fi
4846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4847 cat >>confdefs.h <<_ACEOF
4848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4849 _ACEOF
4850
4851 else
4852 echo '#include "nbtool_config.h"' >include/$ac_header.new
4853 echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
4854 if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
4855 rm -f include/$ac_header.new
4856 else
4857 mv -f include/$ac_header.new include/$ac_header
4858 fi
4859 fi
4860
4861 done
4862
4863
4864 # Typedefs.
4865 { echo "$as_me:$LINENO: checking for size_t" >&5
4866 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4867 if test "${ac_cv_type_size_t+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 $ac_includes_default
4877 typedef size_t ac__type_new_;
4878 int
4879 main ()
4880 {
4881 if ((ac__type_new_ *) 0)
4882 return 0;
4883 if (sizeof (ac__type_new_))
4884 return 0;
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 rm -f conftest.$ac_objext
4890 if { (ac_try="$ac_compile"
4891 case "(($ac_try" in
4892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893 *) ac_try_echo=$ac_try;;
4894 esac
4895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4896 (eval "$ac_compile") 2>conftest.er1
4897 ac_status=$?
4898 grep -v '^ *+' conftest.er1 >conftest.err
4899 rm -f conftest.er1
4900 cat conftest.err >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } && {
4903 test -z "$ac_c_werror_flag" ||
4904 test ! -s conftest.err
4905 } && test -s conftest.$ac_objext; then
4906 ac_cv_type_size_t=yes
4907 else
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911 ac_cv_type_size_t=no
4912 fi
4913
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 fi
4916 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4917 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4918 if test $ac_cv_type_size_t = yes; then
4919 :
4920 else
4921
4922 cat >>confdefs.h <<_ACEOF
4923 #define size_t unsigned int
4924 _ACEOF
4925
4926 fi
4927
4928 { echo "$as_me:$LINENO: checking for id_t" >&5
4929 echo $ECHO_N "checking for id_t... $ECHO_C" >&6; }
4930 if test "${ac_cv_type_id_t+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933 cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h. */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 $ac_includes_default
4940 typedef id_t ac__type_new_;
4941 int
4942 main ()
4943 {
4944 if ((ac__type_new_ *) 0)
4945 return 0;
4946 if (sizeof (ac__type_new_))
4947 return 0;
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 rm -f conftest.$ac_objext
4953 if { (ac_try="$ac_compile"
4954 case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957 esac
4958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_compile") 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } && {
4966 test -z "$ac_c_werror_flag" ||
4967 test ! -s conftest.err
4968 } && test -s conftest.$ac_objext; then
4969 ac_cv_type_id_t=yes
4970 else
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4973
4974 ac_cv_type_id_t=no
4975 fi
4976
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978 fi
4979 { echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5
4980 echo "${ECHO_T}$ac_cv_type_id_t" >&6; }
4981 if test $ac_cv_type_id_t = yes; then
4982
4983 cat >>confdefs.h <<_ACEOF
4984 #define HAVE_ID_T 1
4985 _ACEOF
4986
4987
4988 fi
4989 { echo "$as_me:$LINENO: checking for long long" >&5
4990 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
4991 if test "${ac_cv_type_long_long+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h. */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 $ac_includes_default
5001 typedef long long ac__type_new_;
5002 int
5003 main ()
5004 {
5005 if ((ac__type_new_ *) 0)
5006 return 0;
5007 if (sizeof (ac__type_new_))
5008 return 0;
5009 ;
5010 return 0;
5011 }
5012 _ACEOF
5013 rm -f conftest.$ac_objext
5014 if { (ac_try="$ac_compile"
5015 case "(($ac_try" in
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5018 esac
5019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020 (eval "$ac_compile") 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } && {
5027 test -z "$ac_c_werror_flag" ||
5028 test ! -s conftest.err
5029 } && test -s conftest.$ac_objext; then
5030 ac_cv_type_long_long=yes
5031 else
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 ac_cv_type_long_long=no
5036 fi
5037
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039 fi
5040 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5041 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5042 if test $ac_cv_type_long_long = yes; then
5043
5044 cat >>confdefs.h <<_ACEOF
5045 #define HAVE_LONG_LONG 1
5046 _ACEOF
5047
5048
5049 fi
5050 { echo "$as_me:$LINENO: checking for u_long" >&5
5051 echo $ECHO_N "checking for u_long... $ECHO_C" >&6; }
5052 if test "${ac_cv_type_u_long+set}" = set; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 else
5055 cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h. */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 $ac_includes_default
5062 typedef u_long ac__type_new_;
5063 int
5064 main ()
5065 {
5066 if ((ac__type_new_ *) 0)
5067 return 0;
5068 if (sizeof (ac__type_new_))
5069 return 0;
5070 ;
5071 return 0;
5072 }
5073 _ACEOF
5074 rm -f conftest.$ac_objext
5075 if { (ac_try="$ac_compile"
5076 case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079 esac
5080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081 (eval "$ac_compile") 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } && {
5088 test -z "$ac_c_werror_flag" ||
5089 test ! -s conftest.err
5090 } && test -s conftest.$ac_objext; then
5091 ac_cv_type_u_long=yes
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5095
5096 ac_cv_type_u_long=no
5097 fi
5098
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 fi
5101 { echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
5102 echo "${ECHO_T}$ac_cv_type_u_long" >&6; }
5103 if test $ac_cv_type_u_long = yes; then
5104
5105 cat >>confdefs.h <<_ACEOF
5106 #define HAVE_U_LONG 1
5107 _ACEOF
5108
5109
5110 fi
5111 { echo "$as_me:$LINENO: checking for u_char" >&5
5112 echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
5113 if test "${ac_cv_type_u_char+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h. */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 $ac_includes_default
5123 typedef u_char ac__type_new_;
5124 int
5125 main ()
5126 {
5127 if ((ac__type_new_ *) 0)
5128 return 0;
5129 if (sizeof (ac__type_new_))
5130 return 0;
5131 ;
5132 return 0;
5133 }
5134 _ACEOF
5135 rm -f conftest.$ac_objext
5136 if { (ac_try="$ac_compile"
5137 case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140 esac
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_compile") 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.$ac_objext; then
5152 ac_cv_type_u_char=yes
5153 else
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 ac_cv_type_u_char=no
5158 fi
5159
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 fi
5162 { echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
5163 echo "${ECHO_T}$ac_cv_type_u_char" >&6; }
5164 if test $ac_cv_type_u_char = yes; then
5165
5166 cat >>confdefs.h <<_ACEOF
5167 #define HAVE_U_CHAR 1
5168 _ACEOF
5169
5170
5171 fi
5172 { echo "$as_me:$LINENO: checking for u_short" >&5
5173 echo $ECHO_N "checking for u_short... $ECHO_C" >&6; }
5174 if test "${ac_cv_type_u_short+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 $ac_includes_default
5184 typedef u_short ac__type_new_;
5185 int
5186 main ()
5187 {
5188 if ((ac__type_new_ *) 0)
5189 return 0;
5190 if (sizeof (ac__type_new_))
5191 return 0;
5192 ;
5193 return 0;
5194 }
5195 _ACEOF
5196 rm -f conftest.$ac_objext
5197 if { (ac_try="$ac_compile"
5198 case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5201 esac
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_compile") 2>conftest.er1
5204 ac_status=$?
5205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } && {
5210 test -z "$ac_c_werror_flag" ||
5211 test ! -s conftest.err
5212 } && test -s conftest.$ac_objext; then
5213 ac_cv_type_u_short=yes
5214 else
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218 ac_cv_type_u_short=no
5219 fi
5220
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 fi
5223 { echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
5224 echo "${ECHO_T}$ac_cv_type_u_short" >&6; }
5225 if test $ac_cv_type_u_short = yes; then
5226
5227 cat >>confdefs.h <<_ACEOF
5228 #define HAVE_U_SHORT 1
5229 _ACEOF
5230
5231
5232 fi
5233 { echo "$as_me:$LINENO: checking for u_int" >&5
5234 echo $ECHO_N "checking for u_int... $ECHO_C" >&6; }
5235 if test "${ac_cv_type_u_int+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 $ac_includes_default
5245 typedef u_int ac__type_new_;
5246 int
5247 main ()
5248 {
5249 if ((ac__type_new_ *) 0)
5250 return 0;
5251 if (sizeof (ac__type_new_))
5252 return 0;
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 rm -f conftest.$ac_objext
5258 if { (ac_try="$ac_compile"
5259 case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_compile") 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } && {
5271 test -z "$ac_c_werror_flag" ||
5272 test ! -s conftest.err
5273 } && test -s conftest.$ac_objext; then
5274 ac_cv_type_u_int=yes
5275 else
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5278
5279 ac_cv_type_u_int=no
5280 fi
5281
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 fi
5284 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
5285 echo "${ECHO_T}$ac_cv_type_u_int" >&6; }
5286 if test $ac_cv_type_u_int = yes; then
5287
5288 cat >>confdefs.h <<_ACEOF
5289 #define HAVE_U_INT 1
5290 _ACEOF
5291
5292
5293 fi
5294 { echo "$as_me:$LINENO: checking for u_quad_t" >&5
5295 echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6; }
5296 if test "${ac_cv_type_u_quad_t+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299 cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h. */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 $ac_includes_default
5306 typedef u_quad_t ac__type_new_;
5307 int
5308 main ()
5309 {
5310 if ((ac__type_new_ *) 0)
5311 return 0;
5312 if (sizeof (ac__type_new_))
5313 return 0;
5314 ;
5315 return 0;
5316 }
5317 _ACEOF
5318 rm -f conftest.$ac_objext
5319 if { (ac_try="$ac_compile"
5320 case "(($ac_try" in
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5323 esac
5324 eval "echo \"\$as_me:$LINENO: $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 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_type_u_quad_t=yes
5336 else
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340 ac_cv_type_u_quad_t=no
5341 fi
5342
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 fi
5345 { echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5
5346 echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6; }
5347 if test $ac_cv_type_u_quad_t = yes; then
5348
5349 cat >>confdefs.h <<_ACEOF
5350 #define HAVE_U_QUAD_T 1
5351 _ACEOF
5352
5353
5354 fi
5355
5356 { echo "$as_me:$LINENO: checking for socklen_t" >&5
5357 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
5358 if test "${ac_cv_type_socklen_t+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 #include <sys/types.h>
5368 #include <sys/socket.h>
5369
5370 typedef socklen_t ac__type_new_;
5371 int
5372 main ()
5373 {
5374 if ((ac__type_new_ *) 0)
5375 return 0;
5376 if (sizeof (ac__type_new_))
5377 return 0;
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5384 case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_c_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5399 ac_cv_type_socklen_t=yes
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 ac_cv_type_socklen_t=no
5405 fi
5406
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 fi
5409 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
5410 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
5411 if test $ac_cv_type_socklen_t = yes; then
5412
5413 cat >>confdefs.h <<\_ACEOF
5414 #define HAVE_SOCKLEN_T 1
5415 _ACEOF
5416
5417 fi
5418
5419
5420
5421
5422
5423 { echo "$as_me:$LINENO: checking for uint8_t" >&5
5424 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
5425 if test "${ac_cv_type_uint8_t+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428 cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h. */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 $ac_includes_default
5435 typedef uint8_t ac__type_new_;
5436 int
5437 main ()
5438 {
5439 if ((ac__type_new_ *) 0)
5440 return 0;
5441 if (sizeof (ac__type_new_))
5442 return 0;
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 rm -f conftest.$ac_objext
5448 if { (ac_try="$ac_compile"
5449 case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_compile") 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } && {
5461 test -z "$ac_c_werror_flag" ||
5462 test ! -s conftest.err
5463 } && test -s conftest.$ac_objext; then
5464 ac_cv_type_uint8_t=yes
5465 else
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 ac_cv_type_uint8_t=no
5470 fi
5471
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 fi
5474 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5475 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
5476 if test $ac_cv_type_uint8_t = yes; then
5477 :
5478 else
5479
5480 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
5481 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
5482 if test "${ac_cv_type_u_int8_t+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485 cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h. */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5492 typedef u_int8_t ac__type_new_;
5493 int
5494 main ()
5495 {
5496 if ((ac__type_new_ *) 0)
5497 return 0;
5498 if (sizeof (ac__type_new_))
5499 return 0;
5500 ;
5501 return 0;
5502 }
5503 _ACEOF
5504 rm -f conftest.$ac_objext
5505 if { (ac_try="$ac_compile"
5506 case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_compile") 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && {
5518 test -z "$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 } && test -s conftest.$ac_objext; then
5521 ac_cv_type_u_int8_t=yes
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5525
5526 ac_cv_type_u_int8_t=no
5527 fi
5528
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 fi
5531 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
5532 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
5533 if test $ac_cv_type_u_int8_t = yes; then
5534
5535 cat >>confdefs.h <<\_ACEOF
5536 #define uint8_t u_int8_t
5537 _ACEOF
5538
5539 else
5540 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint8_t" >&5
5541 echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
5542 { (exit 1); exit 1; }; }
5543 fi
5544
5545
5546 fi
5547
5548 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
5549 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
5550 if test "${ac_cv_type_u_int8_t+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h. */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 $ac_includes_default
5560 typedef u_int8_t ac__type_new_;
5561 int
5562 main ()
5563 {
5564 if ((ac__type_new_ *) 0)
5565 return 0;
5566 if (sizeof (ac__type_new_))
5567 return 0;
5568 ;
5569 return 0;
5570 }
5571 _ACEOF
5572 rm -f conftest.$ac_objext
5573 if { (ac_try="$ac_compile"
5574 case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577 esac
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_compile") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && {
5586 test -z "$ac_c_werror_flag" ||
5587 test ! -s conftest.err
5588 } && test -s conftest.$ac_objext; then
5589 ac_cv_type_u_int8_t=yes
5590 else
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594 ac_cv_type_u_int8_t=no
5595 fi
5596
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 fi
5599 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
5600 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
5601 if test $ac_cv_type_u_int8_t = yes; then
5602 :
5603 else
5604
5605 { echo "$as_me:$LINENO: checking for uint8_t" >&5
5606 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
5607 if test "${ac_cv_type_uint8_t+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h. */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616 $ac_includes_default
5617 typedef uint8_t ac__type_new_;
5618 int
5619 main ()
5620 {
5621 if ((ac__type_new_ *) 0)
5622 return 0;
5623 if (sizeof (ac__type_new_))
5624 return 0;
5625 ;
5626 return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5631 case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
5646 ac_cv_type_uint8_t=yes
5647 else
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651 ac_cv_type_uint8_t=no
5652 fi
5653
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 fi
5656 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5657 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
5658 if test $ac_cv_type_uint8_t = yes; then
5659
5660 cat >>confdefs.h <<\_ACEOF
5661 #define u_int8_t uint8_t
5662 _ACEOF
5663
5664 else
5665 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int8_t" >&5
5666 echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
5667 { (exit 1); exit 1; }; }
5668 fi
5669
5670
5671 fi
5672
5673
5674
5675 { echo "$as_me:$LINENO: checking for uint16_t" >&5
5676 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
5677 if test "${ac_cv_type_uint16_t+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 $ac_includes_default
5687 typedef uint16_t ac__type_new_;
5688 int
5689 main ()
5690 {
5691 if ((ac__type_new_ *) 0)
5692 return 0;
5693 if (sizeof (ac__type_new_))
5694 return 0;
5695 ;
5696 return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (ac_try="$ac_compile"
5701 case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704 esac
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_compile") 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } && {
5713 test -z "$ac_c_werror_flag" ||
5714 test ! -s conftest.err
5715 } && test -s conftest.$ac_objext; then
5716 ac_cv_type_uint16_t=yes
5717 else
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5720
5721 ac_cv_type_uint16_t=no
5722 fi
5723
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 fi
5726 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5727 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
5728 if test $ac_cv_type_uint16_t = yes; then
5729 :
5730 else
5731
5732 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
5733 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
5734 if test "${ac_cv_type_u_int16_t+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5744 typedef u_int16_t ac__type_new_;
5745 int
5746 main ()
5747 {
5748 if ((ac__type_new_ *) 0)
5749 return 0;
5750 if (sizeof (ac__type_new_))
5751 return 0;
5752 ;
5753 return 0;
5754 }
5755 _ACEOF
5756 rm -f conftest.$ac_objext
5757 if { (ac_try="$ac_compile"
5758 case "(($ac_try" in
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5761 esac
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_compile") 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && {
5770 test -z "$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest.$ac_objext; then
5773 ac_cv_type_u_int16_t=yes
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 ac_cv_type_u_int16_t=no
5779 fi
5780
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 fi
5783 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5784 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
5785 if test $ac_cv_type_u_int16_t = yes; then
5786
5787 cat >>confdefs.h <<\_ACEOF
5788 #define uint16_t u_int16_t
5789 _ACEOF
5790
5791 else
5792 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint16_t" >&5
5793 echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
5794 { (exit 1); exit 1; }; }
5795 fi
5796
5797
5798 fi
5799
5800 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
5801 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
5802 if test "${ac_cv_type_u_int16_t+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 $ac_includes_default
5812 typedef u_int16_t ac__type_new_;
5813 int
5814 main ()
5815 {
5816 if ((ac__type_new_ *) 0)
5817 return 0;
5818 if (sizeof (ac__type_new_))
5819 return 0;
5820 ;
5821 return 0;
5822 }
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (ac_try="$ac_compile"
5826 case "(($ac_try" in
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5829 esac
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compile") 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } && {
5838 test -z "$ac_c_werror_flag" ||
5839 test ! -s conftest.err
5840 } && test -s conftest.$ac_objext; then
5841 ac_cv_type_u_int16_t=yes
5842 else
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5845
5846 ac_cv_type_u_int16_t=no
5847 fi
5848
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 fi
5851 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5852 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
5853 if test $ac_cv_type_u_int16_t = yes; then
5854 :
5855 else
5856
5857 { echo "$as_me:$LINENO: checking for uint16_t" >&5
5858 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
5859 if test "${ac_cv_type_uint16_t+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 $ac_includes_default
5869 typedef uint16_t ac__type_new_;
5870 int
5871 main ()
5872 {
5873 if ((ac__type_new_ *) 0)
5874 return 0;
5875 if (sizeof (ac__type_new_))
5876 return 0;
5877 ;
5878 return 0;
5879 }
5880 _ACEOF
5881 rm -f conftest.$ac_objext
5882 if { (ac_try="$ac_compile"
5883 case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_compile") 2>conftest.er1
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } && {
5895 test -z "$ac_c_werror_flag" ||
5896 test ! -s conftest.err
5897 } && test -s conftest.$ac_objext; then
5898 ac_cv_type_uint16_t=yes
5899 else
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 ac_cv_type_uint16_t=no
5904 fi
5905
5906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907 fi
5908 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5909 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
5910 if test $ac_cv_type_uint16_t = yes; then
5911
5912 cat >>confdefs.h <<\_ACEOF
5913 #define u_int16_t uint16_t
5914 _ACEOF
5915
5916 else
5917 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int16_t" >&5
5918 echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
5919 { (exit 1); exit 1; }; }
5920 fi
5921
5922
5923 fi
5924
5925
5926
5927 { echo "$as_me:$LINENO: checking for uint32_t" >&5
5928 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
5929 if test "${ac_cv_type_uint32_t+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932 cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h. */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 $ac_includes_default
5939 typedef uint32_t ac__type_new_;
5940 int
5941 main ()
5942 {
5943 if ((ac__type_new_ *) 0)
5944 return 0;
5945 if (sizeof (ac__type_new_))
5946 return 0;
5947 ;
5948 return 0;
5949 }
5950 _ACEOF
5951 rm -f conftest.$ac_objext
5952 if { (ac_try="$ac_compile"
5953 case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_compile") 2>conftest.er1
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } && {
5965 test -z "$ac_c_werror_flag" ||
5966 test ! -s conftest.err
5967 } && test -s conftest.$ac_objext; then
5968 ac_cv_type_uint32_t=yes
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973 ac_cv_type_uint32_t=no
5974 fi
5975
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 fi
5978 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5979 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
5980 if test $ac_cv_type_uint32_t = yes; then
5981 :
5982 else
5983
5984 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
5985 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
5986 if test "${ac_cv_type_u_int32_t+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 $ac_includes_default
5996 typedef u_int32_t ac__type_new_;
5997 int
5998 main ()
5999 {
6000 if ((ac__type_new_ *) 0)
6001 return 0;
6002 if (sizeof (ac__type_new_))
6003 return 0;
6004 ;
6005 return 0;
6006 }
6007 _ACEOF
6008 rm -f conftest.$ac_objext
6009 if { (ac_try="$ac_compile"
6010 case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_compile") 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && {
6022 test -z "$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest.$ac_objext; then
6025 ac_cv_type_u_int32_t=yes
6026 else
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 ac_cv_type_u_int32_t=no
6031 fi
6032
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 fi
6035 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6036 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
6037 if test $ac_cv_type_u_int32_t = yes; then
6038
6039 cat >>confdefs.h <<\_ACEOF
6040 #define uint32_t u_int32_t
6041 _ACEOF
6042
6043 else
6044 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint32_t" >&5
6045 echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
6046 { (exit 1); exit 1; }; }
6047 fi
6048
6049
6050 fi
6051
6052 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
6053 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
6054 if test "${ac_cv_type_u_int32_t+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6064 typedef u_int32_t ac__type_new_;
6065 int
6066 main ()
6067 {
6068 if ((ac__type_new_ *) 0)
6069 return 0;
6070 if (sizeof (ac__type_new_))
6071 return 0;
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (ac_try="$ac_compile"
6078 case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.$ac_objext; then
6093 ac_cv_type_u_int32_t=yes
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 ac_cv_type_u_int32_t=no
6099 fi
6100
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 fi
6103 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6104 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
6105 if test $ac_cv_type_u_int32_t = yes; then
6106 :
6107 else
6108
6109 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6110 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6111 if test "${ac_cv_type_uint32_t+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114 cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h. */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 $ac_includes_default
6121 typedef uint32_t ac__type_new_;
6122 int
6123 main ()
6124 {
6125 if ((ac__type_new_ *) 0)
6126 return 0;
6127 if (sizeof (ac__type_new_))
6128 return 0;
6129 ;
6130 return 0;
6131 }
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_compile") 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest.$ac_objext; then
6150 ac_cv_type_uint32_t=yes
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155 ac_cv_type_uint32_t=no
6156 fi
6157
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 fi
6160 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6161 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
6162 if test $ac_cv_type_uint32_t = yes; then
6163
6164 cat >>confdefs.h <<\_ACEOF
6165 #define u_int32_t uint32_t
6166 _ACEOF
6167
6168 else
6169 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int32_t" >&5
6170 echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
6171 { (exit 1); exit 1; }; }
6172 fi
6173
6174
6175 fi
6176
6177
6178
6179 { echo "$as_me:$LINENO: checking for uint64_t" >&5
6180 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6181 if test "${ac_cv_type_uint64_t+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h. */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 $ac_includes_default
6191 typedef uint64_t ac__type_new_;
6192 int
6193 main ()
6194 {
6195 if ((ac__type_new_ *) 0)
6196 return 0;
6197 if (sizeof (ac__type_new_))
6198 return 0;
6199 ;
6200 return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6205 case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 ac_cv_type_uint64_t=yes
6221 else
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_cv_type_uint64_t=no
6226 fi
6227
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 fi
6230 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6231 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
6232 if test $ac_cv_type_uint64_t = yes; then
6233 :
6234 else
6235
6236 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
6237 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
6238 if test "${ac_cv_type_u_int64_t+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241 cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h. */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 $ac_includes_default
6248 typedef u_int64_t ac__type_new_;
6249 int
6250 main ()
6251 {
6252 if ((ac__type_new_ *) 0)
6253 return 0;
6254 if (sizeof (ac__type_new_))
6255 return 0;
6256 ;
6257 return 0;
6258 }
6259 _ACEOF
6260 rm -f conftest.$ac_objext
6261 if { (ac_try="$ac_compile"
6262 case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265 esac
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_compile") 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && {
6274 test -z "$ac_c_werror_flag" ||
6275 test ! -s conftest.err
6276 } && test -s conftest.$ac_objext; then
6277 ac_cv_type_u_int64_t=yes
6278 else
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6281
6282 ac_cv_type_u_int64_t=no
6283 fi
6284
6285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 fi
6287 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6288 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
6289 if test $ac_cv_type_u_int64_t = yes; then
6290
6291 cat >>confdefs.h <<\_ACEOF
6292 #define uint64_t u_int64_t
6293 _ACEOF
6294
6295 else
6296 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint64_t" >&5
6297 echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
6298 { (exit 1); exit 1; }; }
6299 fi
6300
6301
6302 fi
6303
6304 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
6305 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
6306 if test "${ac_cv_type_u_int64_t+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309 cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h. */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6315 $ac_includes_default
6316 typedef u_int64_t ac__type_new_;
6317 int
6318 main ()
6319 {
6320 if ((ac__type_new_ *) 0)
6321 return 0;
6322 if (sizeof (ac__type_new_))
6323 return 0;
6324 ;
6325 return 0;
6326 }
6327 _ACEOF
6328 rm -f conftest.$ac_objext
6329 if { (ac_try="$ac_compile"
6330 case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_compile") 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest.$ac_objext; then
6345 ac_cv_type_u_int64_t=yes
6346 else
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350 ac_cv_type_u_int64_t=no
6351 fi
6352
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 fi
6355 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6356 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
6357 if test $ac_cv_type_u_int64_t = yes; then
6358 :
6359 else
6360
6361 { echo "$as_me:$LINENO: checking for uint64_t" >&5
6362 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6363 if test "${ac_cv_type_uint64_t+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366 cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h. */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6373 typedef uint64_t ac__type_new_;
6374 int
6375 main ()
6376 {
6377 if ((ac__type_new_ *) 0)
6378 return 0;
6379 if (sizeof (ac__type_new_))
6380 return 0;
6381 ;
6382 return 0;
6383 }
6384 _ACEOF
6385 rm -f conftest.$ac_objext
6386 if { (ac_try="$ac_compile"
6387 case "(($ac_try" in
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6390 esac
6391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392 (eval "$ac_compile") 2>conftest.er1
6393 ac_status=$?
6394 grep -v '^ *+' conftest.er1 >conftest.err
6395 rm -f conftest.er1
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && {
6399 test -z "$ac_c_werror_flag" ||
6400 test ! -s conftest.err
6401 } && test -s conftest.$ac_objext; then
6402 ac_cv_type_uint64_t=yes
6403 else
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6406
6407 ac_cv_type_uint64_t=no
6408 fi
6409
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411 fi
6412 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6413 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
6414 if test $ac_cv_type_uint64_t = yes; then
6415
6416 cat >>confdefs.h <<\_ACEOF
6417 #define u_int64_t uint64_t
6418 _ACEOF
6419
6420 else
6421 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int64_t" >&5
6422 echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
6423 { (exit 1); exit 1; }; }
6424 fi
6425
6426
6427 fi
6428
6429
6430
6431 # Struct members.
6432 { echo "$as_me:$LINENO: checking for DIR.dd_fd" >&5
6433 echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6; }
6434 if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h. */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <sys/types.h>
6444 #include <dirent.h>
6445
6446 int
6447 main ()
6448 {
6449 static DIR ac_aggr;
6450 if (ac_aggr.dd_fd)
6451 return 0;
6452 ;
6453 return 0;
6454 }
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (ac_try="$ac_compile"
6458 case "(($ac_try" in
6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6461 esac
6462 eval "echo \"\$as_me:$LINENO: $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 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_cv_member_DIR_dd_fd=yes
6474 else
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6477
6478 cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h. */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 #include <sys/types.h>
6485 #include <dirent.h>
6486
6487 int
6488 main ()
6489 {
6490 static DIR ac_aggr;
6491 if (sizeof ac_aggr.dd_fd)
6492 return 0;
6493 ;
6494 return 0;
6495 }
6496 _ACEOF
6497 rm -f conftest.$ac_objext
6498 if { (ac_try="$ac_compile"
6499 case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6502 esac
6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_compile") 2>conftest.er1
6505 ac_status=$?
6506 grep -v '^ *+' conftest.er1 >conftest.err
6507 rm -f conftest.er1
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } && {
6511 test -z "$ac_c_werror_flag" ||
6512 test ! -s conftest.err
6513 } && test -s conftest.$ac_objext; then
6514 ac_cv_member_DIR_dd_fd=yes
6515 else
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6518
6519 ac_cv_member_DIR_dd_fd=no
6520 fi
6521
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 fi
6524
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 fi
6527 { echo "$as_me:$LINENO: result: $ac_cv_member_DIR_dd_fd" >&5
6528 echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6; }
6529 if test $ac_cv_member_DIR_dd_fd = yes; then
6530
6531 cat >>confdefs.h <<_ACEOF
6532 #define HAVE_DIR_DD_FD 1
6533 _ACEOF
6534
6535
6536 fi
6537 { echo "$as_me:$LINENO: checking for DIR.__dd_fd" >&5
6538 echo $ECHO_N "checking for DIR.__dd_fd... $ECHO_C" >&6; }
6539 if test "${ac_cv_member_DIR___dd_fd+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h. */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 #include <sys/types.h>
6549 #include <dirent.h>
6550
6551 int
6552 main ()
6553 {
6554 static DIR ac_aggr;
6555 if (ac_aggr.__dd_fd)
6556 return 0;
6557 ;
6558 return 0;
6559 }
6560 _ACEOF
6561 rm -f conftest.$ac_objext
6562 if { (ac_try="$ac_compile"
6563 case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566 esac
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 ac_cv_member_DIR___dd_fd=yes
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h. */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 #include <sys/types.h>
6590 #include <dirent.h>
6591
6592 int
6593 main ()
6594 {
6595 static DIR ac_aggr;
6596 if (sizeof ac_aggr.__dd_fd)
6597 return 0;
6598 ;
6599 return 0;
6600 }
6601 _ACEOF
6602 rm -f conftest.$ac_objext
6603 if { (ac_try="$ac_compile"
6604 case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607 esac
6608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_compile") 2>conftest.er1
6610 ac_status=$?
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } && {
6616 test -z "$ac_c_werror_flag" ||
6617 test ! -s conftest.err
6618 } && test -s conftest.$ac_objext; then
6619 ac_cv_member_DIR___dd_fd=yes
6620 else
6621 echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6623
6624 ac_cv_member_DIR___dd_fd=no
6625 fi
6626
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 fi
6629
6630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631 fi
6632 { echo "$as_me:$LINENO: result: $ac_cv_member_DIR___dd_fd" >&5
6633 echo "${ECHO_T}$ac_cv_member_DIR___dd_fd" >&6; }
6634 if test $ac_cv_member_DIR___dd_fd = yes; then
6635
6636 cat >>confdefs.h <<_ACEOF
6637 #define HAVE_DIR___DD_FD 1
6638 _ACEOF
6639
6640
6641 fi
6642 { echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
6643 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6; }
6644 if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647 cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h. */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6653 #include <sys/types.h>
6654 #include <dirent.h>
6655
6656 int
6657 main ()
6658 {
6659 static struct dirent ac_aggr;
6660 if (ac_aggr.d_namlen)
6661 return 0;
6662 ;
6663 return 0;
6664 }
6665 _ACEOF
6666 rm -f conftest.$ac_objext
6667 if { (ac_try="$ac_compile"
6668 case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6671 esac
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_compile") 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest.$ac_objext; then
6683 ac_cv_member_struct_dirent_d_namlen=yes
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 cat >conftest.$ac_ext <<_ACEOF
6689 /* confdefs.h. */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 #include <sys/types.h>
6695 #include <dirent.h>
6696
6697 int
6698 main ()
6699 {
6700 static struct dirent ac_aggr;
6701 if (sizeof ac_aggr.d_namlen)
6702 return 0;
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext
6708 if { (ac_try="$ac_compile"
6709 case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_compile") 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest.$ac_objext; then
6724 ac_cv_member_struct_dirent_d_namlen=yes
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729 ac_cv_member_struct_dirent_d_namlen=no
6730 fi
6731
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 fi
6734
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 fi
6737 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5
6738 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6; }
6739 if test $ac_cv_member_struct_dirent_d_namlen = yes; then
6740
6741 cat >>confdefs.h <<_ACEOF
6742 #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
6743 _ACEOF
6744
6745
6746 fi
6747
6748 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
6749 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
6750 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753 cat >conftest.$ac_ext <<_ACEOF
6754 /* confdefs.h. */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 #include <sys/stat.h>
6760
6761 int
6762 main ()
6763 {
6764 static struct stat ac_aggr;
6765 if (ac_aggr.st_flags)
6766 return 0;
6767 ;
6768 return 0;
6769 }
6770 _ACEOF
6771 rm -f conftest.$ac_objext
6772 if { (ac_try="$ac_compile"
6773 case "(($ac_try" in
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6776 esac
6777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 (eval "$ac_compile") 2>conftest.er1
6779 ac_status=$?
6780 grep -v '^ *+' conftest.er1 >conftest.err
6781 rm -f conftest.er1
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && {
6785 test -z "$ac_c_werror_flag" ||
6786 test ! -s conftest.err
6787 } && test -s conftest.$ac_objext; then
6788 ac_cv_member_struct_stat_st_flags=yes
6789 else
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6792
6793 cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h. */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6799 #include <sys/stat.h>
6800
6801 int
6802 main ()
6803 {
6804 static struct stat ac_aggr;
6805 if (sizeof ac_aggr.st_flags)
6806 return 0;
6807 ;
6808 return 0;
6809 }
6810 _ACEOF
6811 rm -f conftest.$ac_objext
6812 if { (ac_try="$ac_compile"
6813 case "(($ac_try" in
6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815 *) ac_try_echo=$ac_try;;
6816 esac
6817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818 (eval "$ac_compile") 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } && {
6825 test -z "$ac_c_werror_flag" ||
6826 test ! -s conftest.err
6827 } && test -s conftest.$ac_objext; then
6828 ac_cv_member_struct_stat_st_flags=yes
6829 else
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833 ac_cv_member_struct_stat_st_flags=no
6834 fi
6835
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 fi
6838
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840 fi
6841 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
6842 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
6843 if test $ac_cv_member_struct_stat_st_flags = yes; then
6844
6845 cat >>confdefs.h <<_ACEOF
6846 #define HAVE_STRUCT_STAT_ST_FLAGS 1
6847 _ACEOF
6848
6849
6850 fi
6851 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
6852 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
6853 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h. */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 #include <sys/stat.h>
6863
6864 int
6865 main ()
6866 {
6867 static struct stat ac_aggr;
6868 if (ac_aggr.st_gen)
6869 return 0;
6870 ;
6871 return 0;
6872 }
6873 _ACEOF
6874 rm -f conftest.$ac_objext
6875 if { (ac_try="$ac_compile"
6876 case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879 esac
6880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6881 (eval "$ac_compile") 2>conftest.er1
6882 ac_status=$?
6883 grep -v '^ *+' conftest.er1 >conftest.err
6884 rm -f conftest.er1
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } && {
6888 test -z "$ac_c_werror_flag" ||
6889 test ! -s conftest.err
6890 } && test -s conftest.$ac_objext; then
6891 ac_cv_member_struct_stat_st_gen=yes
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896 cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 #include <sys/stat.h>
6903
6904 int
6905 main ()
6906 {
6907 static struct stat ac_aggr;
6908 if (sizeof ac_aggr.st_gen)
6909 return 0;
6910 ;
6911 return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext
6915 if { (ac_try="$ac_compile"
6916 case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_compile") 2>conftest.er1
6922 ac_status=$?
6923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } && {
6928 test -z "$ac_c_werror_flag" ||
6929 test ! -s conftest.err
6930 } && test -s conftest.$ac_objext; then
6931 ac_cv_member_struct_stat_st_gen=yes
6932 else
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6935
6936 ac_cv_member_struct_stat_st_gen=no
6937 fi
6938
6939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940 fi
6941
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943 fi
6944 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
6945 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
6946 if test $ac_cv_member_struct_stat_st_gen = yes; then
6947
6948 cat >>confdefs.h <<_ACEOF
6949 #define HAVE_STRUCT_STAT_ST_GEN 1
6950 _ACEOF
6951
6952
6953 fi
6954 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
6955 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
6956 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 #include <sys/stat.h>
6966
6967 int
6968 main ()
6969 {
6970 static struct stat ac_aggr;
6971 if (ac_aggr.st_birthtime)
6972 return 0;
6973 ;
6974 return 0;
6975 }
6976 _ACEOF
6977 rm -f conftest.$ac_objext
6978 if { (ac_try="$ac_compile"
6979 case "(($ac_try" in
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6982 esac
6983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984 (eval "$ac_compile") 2>conftest.er1
6985 ac_status=$?
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } && {
6991 test -z "$ac_c_werror_flag" ||
6992 test ! -s conftest.err
6993 } && test -s conftest.$ac_objext; then
6994 ac_cv_member_struct_stat_st_birthtime=yes
6995 else
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6998
6999 cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h. */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 #include <sys/stat.h>
7006
7007 int
7008 main ()
7009 {
7010 static struct stat ac_aggr;
7011 if (sizeof ac_aggr.st_birthtime)
7012 return 0;
7013 ;
7014 return 0;
7015 }
7016 _ACEOF
7017 rm -f conftest.$ac_objext
7018 if { (ac_try="$ac_compile"
7019 case "(($ac_try" in
7020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021 *) ac_try_echo=$ac_try;;
7022 esac
7023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7024 (eval "$ac_compile") 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } && {
7031 test -z "$ac_c_werror_flag" ||
7032 test ! -s conftest.err
7033 } && test -s conftest.$ac_objext; then
7034 ac_cv_member_struct_stat_st_birthtime=yes
7035 else
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7038
7039 ac_cv_member_struct_stat_st_birthtime=no
7040 fi
7041
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043 fi
7044
7045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 fi
7047 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
7048 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
7049 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
7050
7051 cat >>confdefs.h <<_ACEOF
7052 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
7053 _ACEOF
7054
7055
7056 fi
7057 { echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
7058 echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6; }
7059 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062 cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h. */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 #include <sys/stat.h>
7069
7070 int
7071 main ()
7072 {
7073 static struct stat ac_aggr;
7074 if (ac_aggr.st_birthtimensec)
7075 return 0;
7076 ;
7077 return 0;
7078 }
7079 _ACEOF
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7082 case "(($ac_try" in
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7085 esac
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_compile") 2>conftest.er1
7088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && {
7094 test -z "$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest.$ac_objext; then
7097 ac_cv_member_struct_stat_st_birthtimensec=yes
7098 else
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7101
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h. */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 #include <sys/stat.h>
7109
7110 int
7111 main ()
7112 {
7113 static struct stat ac_aggr;
7114 if (sizeof ac_aggr.st_birthtimensec)
7115 return 0;
7116 ;
7117 return 0;
7118 }
7119 _ACEOF
7120 rm -f conftest.$ac_objext
7121 if { (ac_try="$ac_compile"
7122 case "(($ac_try" in
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7125 esac
7126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7127 (eval "$ac_compile") 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest.$ac_objext; then
7137 ac_cv_member_struct_stat_st_birthtimensec=yes
7138 else
7139 echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7141
7142 ac_cv_member_struct_stat_st_birthtimensec=no
7143 fi
7144
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 fi
7147
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 fi
7150 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
7151 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
7152 if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
7153
7154 cat >>confdefs.h <<_ACEOF
7155 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
7156 _ACEOF
7157
7158
7159 fi
7160 { echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
7161 echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6; }
7162 if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #include <sys/stat.h>
7172
7173 int
7174 main ()
7175 {
7176 static struct stat ac_aggr;
7177 if (ac_aggr.st_atim)
7178 return 0;
7179 ;
7180 return 0;
7181 }
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (ac_try="$ac_compile"
7185 case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188 esac
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_compile") 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest.$ac_objext; then
7200 ac_cv_member_struct_stat_st_atim=yes
7201 else
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7204
7205 cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h. */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7211 #include <sys/stat.h>
7212
7213 int
7214 main ()
7215 {
7216 static struct stat ac_aggr;
7217 if (sizeof ac_aggr.st_atim)
7218 return 0;
7219 ;
7220 return 0;
7221 }
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (ac_try="$ac_compile"
7225 case "(($ac_try" in
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7228 esac
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230 (eval "$ac_compile") 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && {
7237 test -z "$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 } && test -s conftest.$ac_objext; then
7240 ac_cv_member_struct_stat_st_atim=yes
7241 else
7242 echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7244
7245 ac_cv_member_struct_stat_st_atim=no
7246 fi
7247
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 fi
7250
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 fi
7253 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
7254 echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6; }
7255 if test $ac_cv_member_struct_stat_st_atim = yes; then
7256
7257 cat >>confdefs.h <<_ACEOF
7258 #define HAVE_STRUCT_STAT_ST_ATIM 1
7259 _ACEOF
7260
7261
7262 fi
7263 { echo "$as_me:$LINENO: checking for struct stat.st_mtimensec" >&5
7264 echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6; }
7265 if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 #include <sys/stat.h>
7275
7276 int
7277 main ()
7278 {
7279 static struct stat ac_aggr;
7280 if (ac_aggr.st_mtimensec)
7281 return 0;
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (ac_try="$ac_compile"
7288 case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291 esac
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 (eval "$ac_compile") 2>conftest.er1
7294 ac_status=$?
7295 grep -v '^ *+' conftest.er1 >conftest.err
7296 rm -f conftest.er1
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && {
7300 test -z "$ac_c_werror_flag" ||
7301 test ! -s conftest.err
7302 } && test -s conftest.$ac_objext; then
7303 ac_cv_member_struct_stat_st_mtimensec=yes
7304 else
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <sys/stat.h>
7315
7316 int
7317 main ()
7318 {
7319 static struct stat ac_aggr;
7320 if (sizeof ac_aggr.st_mtimensec)
7321 return 0;
7322 ;
7323 return 0;
7324 }
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (ac_try="$ac_compile"
7328 case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7331 esac
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_compile") 2>conftest.er1
7334 ac_status=$?
7335 grep -v '^ *+' conftest.er1 >conftest.err
7336 rm -f conftest.er1
7337 cat conftest.err >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && {
7340 test -z "$ac_c_werror_flag" ||
7341 test ! -s conftest.err
7342 } && test -s conftest.$ac_objext; then
7343 ac_cv_member_struct_stat_st_mtimensec=yes
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7347
7348 ac_cv_member_struct_stat_st_mtimensec=no
7349 fi
7350
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352 fi
7353
7354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355 fi
7356 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
7357 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6; }
7358 if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
7359
7360 cat >>confdefs.h <<_ACEOF
7361 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
7362 _ACEOF
7363
7364
7365 fi
7366
7367 { echo "$as_me:$LINENO: checking for struct statvfs.f_iosize" >&5
7368 echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6; }
7369 if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h. */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 #include <sys/statvfs.h>
7379
7380 int
7381 main ()
7382 {
7383 static struct statvfs ac_aggr;
7384 if (ac_aggr.f_iosize)
7385 return 0;
7386 ;
7387 return 0;
7388 }
7389 _ACEOF
7390 rm -f conftest.$ac_objext
7391 if { (ac_try="$ac_compile"
7392 case "(($ac_try" in
7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394 *) ac_try_echo=$ac_try;;
7395 esac
7396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7397 (eval "$ac_compile") 2>conftest.er1
7398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } && {
7404 test -z "$ac_c_werror_flag" ||
7405 test ! -s conftest.err
7406 } && test -s conftest.$ac_objext; then
7407 ac_cv_member_struct_statvfs_f_iosize=yes
7408 else
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7411
7412 cat >conftest.$ac_ext <<_ACEOF
7413 /* confdefs.h. */
7414 _ACEOF
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h. */
7418 #include <sys/statvfs.h>
7419
7420 int
7421 main ()
7422 {
7423 static struct statvfs ac_aggr;
7424 if (sizeof ac_aggr.f_iosize)
7425 return 0;
7426 ;
7427 return 0;
7428 }
7429 _ACEOF
7430 rm -f conftest.$ac_objext
7431 if { (ac_try="$ac_compile"
7432 case "(($ac_try" in
7433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434 *) ac_try_echo=$ac_try;;
7435 esac
7436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437 (eval "$ac_compile") 2>conftest.er1
7438 ac_status=$?
7439 grep -v '^ *+' conftest.er1 >conftest.err
7440 rm -f conftest.er1
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } && {
7444 test -z "$ac_c_werror_flag" ||
7445 test ! -s conftest.err
7446 } && test -s conftest.$ac_objext; then
7447 ac_cv_member_struct_statvfs_f_iosize=yes
7448 else
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7451
7452 ac_cv_member_struct_statvfs_f_iosize=no
7453 fi
7454
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 fi
7457
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 fi
7460 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_iosize" >&5
7461 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6; }
7462 if test $ac_cv_member_struct_statvfs_f_iosize = yes; then
7463
7464 cat >>confdefs.h <<_ACEOF
7465 #define HAVE_STRUCT_STATVFS_F_IOSIZE 1
7466 _ACEOF
7467
7468
7469 fi
7470
7471
7472 # Global variable decls.
7473 { echo "$as_me:$LINENO: checking whether optind is declared" >&5
7474 echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6; }
7475 if test "${ac_cv_have_decl_optind+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484
7485 #include <stdio.h>
7486 #include <stdlib.h>
7487 #include <unistd.h>
7488
7489
7490 int
7491 main ()
7492 {
7493 #ifndef optind
7494 (void) optind;
7495 #endif
7496
7497 ;
7498 return 0;
7499 }
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (ac_try="$ac_compile"
7503 case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7506 esac
7507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508 (eval "$ac_compile") 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest.$ac_objext; then
7518 ac_cv_have_decl_optind=yes
7519 else
7520 echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523 ac_cv_have_decl_optind=no
7524 fi
7525
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 fi
7528 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
7529 echo "${ECHO_T}$ac_cv_have_decl_optind" >&6; }
7530 if test $ac_cv_have_decl_optind = yes; then
7531
7532 cat >>confdefs.h <<_ACEOF
7533 #define HAVE_DECL_OPTIND 1
7534 _ACEOF
7535
7536
7537 else
7538 cat >>confdefs.h <<_ACEOF
7539 #define HAVE_DECL_OPTIND 0
7540 _ACEOF
7541
7542
7543 fi
7544 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
7545 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
7546 if test "${ac_cv_have_decl_optreset+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549 cat >conftest.$ac_ext <<_ACEOF
7550 /* confdefs.h. */
7551 _ACEOF
7552 cat confdefs.h >>conftest.$ac_ext
7553 cat >>conftest.$ac_ext <<_ACEOF
7554 /* end confdefs.h. */
7555
7556 #include <stdio.h>
7557 #include <stdlib.h>
7558 #include <unistd.h>
7559
7560
7561 int
7562 main ()
7563 {
7564 #ifndef optreset
7565 (void) optreset;
7566 #endif
7567
7568 ;
7569 return 0;
7570 }
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (ac_try="$ac_compile"
7574 case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7577 esac
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_compile") 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest.$ac_objext; then
7589 ac_cv_have_decl_optreset=yes
7590 else
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 ac_cv_have_decl_optreset=no
7595 fi
7596
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 fi
7599 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
7600 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
7601 if test $ac_cv_have_decl_optreset = yes; then
7602
7603 cat >>confdefs.h <<_ACEOF
7604 #define HAVE_DECL_OPTRESET 1
7605 _ACEOF
7606
7607
7608 else
7609 cat >>confdefs.h <<_ACEOF
7610 #define HAVE_DECL_OPTRESET 0
7611 _ACEOF
7612
7613
7614 fi
7615
7616
7617 { echo "$as_me:$LINENO: checking whether sys_signame is declared" >&5
7618 echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6; }
7619 if test "${ac_cv_have_decl_sys_signame+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622 cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h. */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7628 #include <signal.h>
7629
7630 int
7631 main ()
7632 {
7633 #ifndef sys_signame
7634 (void) sys_signame;
7635 #endif
7636
7637 ;
7638 return 0;
7639 }
7640 _ACEOF
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7643 case "(($ac_try" in
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7646 esac
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648 (eval "$ac_compile") 2>conftest.er1
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } && {
7655 test -z "$ac_c_werror_flag" ||
7656 test ! -s conftest.err
7657 } && test -s conftest.$ac_objext; then
7658 ac_cv_have_decl_sys_signame=yes
7659 else
7660 echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7662
7663 ac_cv_have_decl_sys_signame=no
7664 fi
7665
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_signame" >&5
7669 echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6; }
7670 if test $ac_cv_have_decl_sys_signame = yes; then
7671
7672 cat >>confdefs.h <<_ACEOF
7673 #define HAVE_DECL_SYS_SIGNAME 1
7674 _ACEOF
7675
7676
7677 else
7678 cat >>confdefs.h <<_ACEOF
7679 #define HAVE_DECL_SYS_SIGNAME 0
7680 _ACEOF
7681
7682
7683 fi
7684
7685
7686
7687 # Library functions (where a .h check isn't enough).
7688 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7689 # for constant arguments. Useless!
7690 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
7691 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
7692 if test "${ac_cv_working_alloca_h+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695 cat >conftest.$ac_ext <<_ACEOF
7696 /* confdefs.h. */
7697 _ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 #include <alloca.h>
7702 int
7703 main ()
7704 {
7705 char *p = (char *) alloca (2 * sizeof (int));
7706 if (p) return 0;
7707 ;
7708 return 0;
7709 }
7710 _ACEOF
7711 rm -f conftest.$ac_objext conftest$ac_exeext
7712 if { (ac_try="$ac_link"
7713 case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7716 esac
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_link") 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } && {
7725 test -z "$ac_c_werror_flag" ||
7726 test ! -s conftest.err
7727 } && test -s conftest$ac_exeext &&
7728 $as_test_x conftest$ac_exeext; then
7729 ac_cv_working_alloca_h=yes
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ac_cv_working_alloca_h=no
7735 fi
7736
7737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7738 conftest$ac_exeext conftest.$ac_ext
7739 fi
7740 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7741 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
7742 if test $ac_cv_working_alloca_h = yes; then
7743
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_ALLOCA_H 1
7746 _ACEOF
7747
7748 fi
7749
7750 { echo "$as_me:$LINENO: checking for alloca" >&5
7751 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
7752 if test "${ac_cv_func_alloca_works+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h. */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 #ifdef __GNUC__
7762 # define alloca __builtin_alloca
7763 #else
7764 # ifdef _MSC_VER
7765 # include <malloc.h>
7766 # define alloca _alloca
7767 # else
7768 # ifdef HAVE_ALLOCA_H
7769 # include <alloca.h>
7770 # else
7771 # ifdef _AIX
7772 #pragma alloca
7773 # else
7774 # ifndef alloca /* predefined by HP cc +Olibcalls */
7775 char *alloca ();
7776 # endif
7777 # endif
7778 # endif
7779 # endif
7780 #endif
7781
7782 int
7783 main ()
7784 {
7785 char *p = (char *) alloca (1);
7786 if (p) return 0;
7787 ;
7788 return 0;
7789 }
7790 _ACEOF
7791 rm -f conftest.$ac_objext conftest$ac_exeext
7792 if { (ac_try="$ac_link"
7793 case "(($ac_try" in
7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7796 esac
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_link") 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest$ac_exeext &&
7808 $as_test_x conftest$ac_exeext; then
7809 ac_cv_func_alloca_works=yes
7810 else
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 ac_cv_func_alloca_works=no
7815 fi
7816
7817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7818 conftest$ac_exeext conftest.$ac_ext
7819 fi
7820 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7821 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7822
7823 if test $ac_cv_func_alloca_works = yes; then
7824
7825 cat >>confdefs.h <<\_ACEOF
7826 #define HAVE_ALLOCA 1
7827 _ACEOF
7828
7829 else
7830 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7831 # that cause trouble. Some versions do not even contain alloca or
7832 # contain a buggy version. If you still want to use their alloca,
7833 # use ar to extract alloca.o from them instead of compiling alloca.c.
7834
7835 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7836
7837 cat >>confdefs.h <<\_ACEOF
7838 #define C_ALLOCA 1
7839 _ACEOF
7840
7841
7842 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7843 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7844 if test "${ac_cv_os_cray+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847 cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h. */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 #if defined CRAY && ! defined CRAY2
7854 webecray
7855 #else
7856 wenotbecray
7857 #endif
7858
7859 _ACEOF
7860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7861 $EGREP "webecray" >/dev/null 2>&1; then
7862 ac_cv_os_cray=yes
7863 else
7864 ac_cv_os_cray=no
7865 fi
7866 rm -f conftest*
7867
7868 fi
7869 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7870 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7871 if test $ac_cv_os_cray = yes; then
7872 for ac_func in _getb67 GETB67 getb67; do
7873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7887 #define $ac_func innocuous_$ac_func
7888
7889 /* System header to define __stub macros and hopefully few prototypes,
7890 which can conflict with char $ac_func (); below.
7891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7892 <limits.h> exists even on freestanding compilers. */
7893
7894 #ifdef __STDC__
7895 # include <limits.h>
7896 #else
7897 # include <assert.h>
7898 #endif
7899
7900 #undef $ac_func
7901
7902 /* Override any GCC internal prototype to avoid an error.
7903 Use char because int might match the return type of a GCC
7904 builtin and then its argument prototype would still apply. */
7905 #ifdef __cplusplus
7906 extern "C"
7907 #endif
7908 char $ac_func ();
7909 /* The GNU C library defines this for functions which it implements
7910 to always fail with ENOSYS. Some functions are actually named
7911 something starting with __ and the normal name is an alias. */
7912 #if defined __stub_$ac_func || defined __stub___$ac_func
7913 choke me
7914 #endif
7915
7916 int
7917 main ()
7918 {
7919 return $ac_func ();
7920 ;
7921 return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (ac_try="$ac_link"
7926 case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7929 esac
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 (eval "$ac_link") 2>conftest.er1
7932 ac_status=$?
7933 grep -v '^ *+' conftest.er1 >conftest.err
7934 rm -f conftest.er1
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } && {
7938 test -z "$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7940 } && test -s conftest$ac_exeext &&
7941 $as_test_x conftest$ac_exeext; then
7942 eval "$as_ac_var=yes"
7943 else
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7946
7947 eval "$as_ac_var=no"
7948 fi
7949
7950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7951 conftest$ac_exeext conftest.$ac_ext
7952 fi
7953 ac_res=`eval echo '${'$as_ac_var'}'`
7954 { echo "$as_me:$LINENO: result: $ac_res" >&5
7955 echo "${ECHO_T}$ac_res" >&6; }
7956 if test `eval echo '${'$as_ac_var'}'` = yes; then
7957
7958 cat >>confdefs.h <<_ACEOF
7959 #define CRAY_STACKSEG_END $ac_func
7960 _ACEOF
7961
7962 break
7963 fi
7964
7965 done
7966 fi
7967
7968 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7969 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7970 if test "${ac_cv_c_stack_direction+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973 if test "$cross_compiling" = yes; then
7974 ac_cv_c_stack_direction=0
7975 else
7976 cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h. */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 $ac_includes_default
7983 int
7984 find_stack_direction ()
7985 {
7986 static char *addr = 0;
7987 auto char dummy;
7988 if (addr == 0)
7989 {
7990 addr = &dummy;
7991 return find_stack_direction ();
7992 }
7993 else
7994 return (&dummy > addr) ? 1 : -1;
7995 }
7996
7997 int
7998 main ()
7999 {
8000 return find_stack_direction () < 0;
8001 }
8002 _ACEOF
8003 rm -f conftest$ac_exeext
8004 if { (ac_try="$ac_link"
8005 case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_link") 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8014 { (case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_try") 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
8023 ac_cv_c_stack_direction=1
8024 else
8025 echo "$as_me: program exited with status $ac_status" >&5
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8028
8029 ( exit $ac_status )
8030 ac_cv_c_stack_direction=-1
8031 fi
8032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8033 fi
8034
8035
8036 fi
8037 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8038 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8039
8040 cat >>confdefs.h <<_ACEOF
8041 #define STACK_DIRECTION $ac_cv_c_stack_direction
8042 _ACEOF
8043
8044
8045 fi
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097 for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
8098 esetfunc fgetln flock fparseln futimes getopt getopt_long \
8099 group_from_gid gid_from_group \
8100 heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
8101 mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb pwrite \
8102 raise_default_signal random setenv \
8103 setgroupent setprogname setpassent snprintf strlcat strlcpy strmode \
8104 strndup strsep strsuftoll strtoll \
8105 user_from_uid uid_from_user vasprintf vasnprintf vsnprintf
8106 do
8107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8121 #define $ac_func innocuous_$ac_func
8122
8123 /* System header to define __stub macros and hopefully few prototypes,
8124 which can conflict with char $ac_func (); below.
8125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8126 <limits.h> exists even on freestanding compilers. */
8127
8128 #ifdef __STDC__
8129 # include <limits.h>
8130 #else
8131 # include <assert.h>
8132 #endif
8133
8134 #undef $ac_func
8135
8136 /* Override any GCC internal prototype to avoid an error.
8137 Use char because int might match the return type of a GCC
8138 builtin and then its argument prototype would still apply. */
8139 #ifdef __cplusplus
8140 extern "C"
8141 #endif
8142 char $ac_func ();
8143 /* The GNU C library defines this for functions which it implements
8144 to always fail with ENOSYS. Some functions are actually named
8145 something starting with __ and the normal name is an alias. */
8146 #if defined __stub_$ac_func || defined __stub___$ac_func
8147 choke me
8148 #endif
8149
8150 int
8151 main ()
8152 {
8153 return $ac_func ();
8154 ;
8155 return 0;
8156 }
8157 _ACEOF
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (ac_try="$ac_link"
8160 case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163 esac
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_link") 2>conftest.er1
8166 ac_status=$?
8167 grep -v '^ *+' conftest.er1 >conftest.err
8168 rm -f conftest.er1
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest$ac_exeext &&
8175 $as_test_x conftest$ac_exeext; then
8176 eval "$as_ac_var=yes"
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 eval "$as_ac_var=no"
8182 fi
8183
8184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8185 conftest$ac_exeext conftest.$ac_ext
8186 fi
8187 ac_res=`eval echo '${'$as_ac_var'}'`
8188 { echo "$as_me:$LINENO: result: $ac_res" >&5
8189 echo "${ECHO_T}$ac_res" >&6; }
8190 if test `eval echo '${'$as_ac_var'}'` = yes; then
8191 cat >>confdefs.h <<_ACEOF
8192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8193 _ACEOF
8194
8195 fi
8196 done
8197
8198
8199 { echo "$as_me:$LINENO: checking whether user_from_uid is declared" >&5
8200 echo $ECHO_N "checking whether user_from_uid is declared... $ECHO_C" >&6; }
8201 if test "${ac_cv_have_decl_user_from_uid+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h. */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210
8211 #include <pwd.h>
8212
8213
8214 int
8215 main ()
8216 {
8217 #ifndef user_from_uid
8218 (void) user_from_uid;
8219 #endif
8220
8221 ;
8222 return 0;
8223 }
8224 _ACEOF
8225 rm -f conftest.$ac_objext
8226 if { (ac_try="$ac_compile"
8227 case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8230 esac
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_compile") 2>conftest.er1
8233 ac_status=$?
8234 grep -v '^ *+' conftest.er1 >conftest.err
8235 rm -f conftest.er1
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest.$ac_objext; then
8242 ac_cv_have_decl_user_from_uid=yes
8243 else
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8246
8247 ac_cv_have_decl_user_from_uid=no
8248 fi
8249
8250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 fi
8252 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_user_from_uid" >&5
8253 echo "${ECHO_T}$ac_cv_have_decl_user_from_uid" >&6; }
8254 if test $ac_cv_have_decl_user_from_uid = yes; then
8255
8256 cat >>confdefs.h <<_ACEOF
8257 #define HAVE_DECL_USER_FROM_UID 1
8258 _ACEOF
8259
8260
8261 else
8262 cat >>confdefs.h <<_ACEOF
8263 #define HAVE_DECL_USER_FROM_UID 0
8264 _ACEOF
8265
8266
8267 fi
8268 { echo "$as_me:$LINENO: checking whether uid_from_user is declared" >&5
8269 echo $ECHO_N "checking whether uid_from_user is declared... $ECHO_C" >&6; }
8270 if test "${ac_cv_have_decl_uid_from_user+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273 cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h. */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279
8280 #include <pwd.h>
8281
8282
8283 int
8284 main ()
8285 {
8286 #ifndef uid_from_user
8287 (void) uid_from_user;
8288 #endif
8289
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 rm -f conftest.$ac_objext
8295 if { (ac_try="$ac_compile"
8296 case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8302 ac_status=$?
8303 grep -v '^ *+' conftest.er1 >conftest.err
8304 rm -f conftest.er1
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest.$ac_objext; then
8311 ac_cv_have_decl_uid_from_user=yes
8312 else
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316 ac_cv_have_decl_uid_from_user=no
8317 fi
8318
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 fi
8321 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_uid_from_user" >&5
8322 echo "${ECHO_T}$ac_cv_have_decl_uid_from_user" >&6; }
8323 if test $ac_cv_have_decl_uid_from_user = yes; then
8324
8325 cat >>confdefs.h <<_ACEOF
8326 #define HAVE_DECL_UID_FROM_USER 1
8327 _ACEOF
8328
8329
8330 else
8331 cat >>confdefs.h <<_ACEOF
8332 #define HAVE_DECL_UID_FROM_USER 0
8333 _ACEOF
8334
8335
8336 fi
8337 { echo "$as_me:$LINENO: checking whether pwcache_userdb is declared" >&5
8338 echo $ECHO_N "checking whether pwcache_userdb is declared... $ECHO_C" >&6; }
8339 if test "${ac_cv_have_decl_pwcache_userdb+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h. */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348
8349 #include <pwd.h>
8350
8351
8352 int
8353 main ()
8354 {
8355 #ifndef pwcache_userdb
8356 (void) pwcache_userdb;
8357 #endif
8358
8359 ;
8360 return 0;
8361 }
8362 _ACEOF
8363 rm -f conftest.$ac_objext
8364 if { (ac_try="$ac_compile"
8365 case "(($ac_try" in
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8368 esac
8369 eval "echo \"\$as_me:$LINENO: $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 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 ac_cv_have_decl_pwcache_userdb=yes
8381 else
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385 ac_cv_have_decl_pwcache_userdb=no
8386 fi
8387
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 fi
8390 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwcache_userdb" >&5
8391 echo "${ECHO_T}$ac_cv_have_decl_pwcache_userdb" >&6; }
8392 if test $ac_cv_have_decl_pwcache_userdb = yes; then
8393
8394 cat >>confdefs.h <<_ACEOF
8395 #define HAVE_DECL_PWCACHE_USERDB 1
8396 _ACEOF
8397
8398
8399 else
8400 cat >>confdefs.h <<_ACEOF
8401 #define HAVE_DECL_PWCACHE_USERDB 0
8402 _ACEOF
8403
8404
8405 fi
8406
8407
8408 { echo "$as_me:$LINENO: checking whether group_from_gid is declared" >&5
8409 echo $ECHO_N "checking whether group_from_gid is declared... $ECHO_C" >&6; }
8410 if test "${ac_cv_have_decl_group_from_gid+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h. */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419
8420 #include <grp.h>
8421
8422
8423 int
8424 main ()
8425 {
8426 #ifndef group_from_gid
8427 (void) group_from_gid;
8428 #endif
8429
8430 ;
8431 return 0;
8432 }
8433 _ACEOF
8434 rm -f conftest.$ac_objext
8435 if { (ac_try="$ac_compile"
8436 case "(($ac_try" in
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8439 esac
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_compile") 2>conftest.er1
8442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } && {
8448 test -z "$ac_c_werror_flag" ||
8449 test ! -s conftest.err
8450 } && test -s conftest.$ac_objext; then
8451 ac_cv_have_decl_group_from_gid=yes
8452 else
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8455
8456 ac_cv_have_decl_group_from_gid=no
8457 fi
8458
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 fi
8461 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_group_from_gid" >&5
8462 echo "${ECHO_T}$ac_cv_have_decl_group_from_gid" >&6; }
8463 if test $ac_cv_have_decl_group_from_gid = yes; then
8464
8465 cat >>confdefs.h <<_ACEOF
8466 #define HAVE_DECL_GROUP_FROM_GID 1
8467 _ACEOF
8468
8469
8470 else
8471 cat >>confdefs.h <<_ACEOF
8472 #define HAVE_DECL_GROUP_FROM_GID 0
8473 _ACEOF
8474
8475
8476 fi
8477 { echo "$as_me:$LINENO: checking whether gid_from_group is declared" >&5
8478 echo $ECHO_N "checking whether gid_from_group is declared... $ECHO_C" >&6; }
8479 if test "${ac_cv_have_decl_gid_from_group+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482 cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h. */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488
8489 #include <grp.h>
8490
8491
8492 int
8493 main ()
8494 {
8495 #ifndef gid_from_group
8496 (void) gid_from_group;
8497 #endif
8498
8499 ;
8500 return 0;
8501 }
8502 _ACEOF
8503 rm -f conftest.$ac_objext
8504 if { (ac_try="$ac_compile"
8505 case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8508 esac
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_compile") 2>conftest.er1
8511 ac_status=$?
8512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && {
8517 test -z "$ac_c_werror_flag" ||
8518 test ! -s conftest.err
8519 } && test -s conftest.$ac_objext; then
8520 ac_cv_have_decl_gid_from_group=yes
8521 else
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525 ac_cv_have_decl_gid_from_group=no
8526 fi
8527
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 fi
8530 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gid_from_group" >&5
8531 echo "${ECHO_T}$ac_cv_have_decl_gid_from_group" >&6; }
8532 if test $ac_cv_have_decl_gid_from_group = yes; then
8533
8534 cat >>confdefs.h <<_ACEOF
8535 #define HAVE_DECL_GID_FROM_GROUP 1
8536 _ACEOF
8537
8538
8539 else
8540 cat >>confdefs.h <<_ACEOF
8541 #define HAVE_DECL_GID_FROM_GROUP 0
8542 _ACEOF
8543
8544
8545 fi
8546 { echo "$as_me:$LINENO: checking whether pwcache_groupdb is declared" >&5
8547 echo $ECHO_N "checking whether pwcache_groupdb is declared... $ECHO_C" >&6; }
8548 if test "${ac_cv_have_decl_pwcache_groupdb+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h. */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557
8558 #include <grp.h>
8559
8560
8561 int
8562 main ()
8563 {
8564 #ifndef pwcache_groupdb
8565 (void) pwcache_groupdb;
8566 #endif
8567
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8574 case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577 esac
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8580 ac_status=$?
8581 grep -v '^ *+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_c_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest.$ac_objext; then
8589 ac_cv_have_decl_pwcache_groupdb=yes
8590 else
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594 ac_cv_have_decl_pwcache_groupdb=no
8595 fi
8596
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 fi
8599 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwcache_groupdb" >&5
8600 echo "${ECHO_T}$ac_cv_have_decl_pwcache_groupdb" >&6; }
8601 if test $ac_cv_have_decl_pwcache_groupdb = yes; then
8602
8603 cat >>confdefs.h <<_ACEOF
8604 #define HAVE_DECL_PWCACHE_GROUPDB 1
8605 _ACEOF
8606
8607
8608 else
8609 cat >>confdefs.h <<_ACEOF
8610 #define HAVE_DECL_PWCACHE_GROUPDB 0
8611 _ACEOF
8612
8613
8614 fi
8615
8616
8617 { echo "$as_me:$LINENO: checking whether strndup is declared" >&5
8618 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; }
8619 if test "${ac_cv_have_decl_strndup+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 #include <string.h>
8629
8630 int
8631 main ()
8632 {
8633 #ifndef strndup
8634 (void) strndup;
8635 #endif
8636
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext
8642 if { (ac_try="$ac_compile"
8643 case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646 esac
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_compile") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest.$ac_objext; then
8658 ac_cv_have_decl_strndup=yes
8659 else
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663 ac_cv_have_decl_strndup=no
8664 fi
8665
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 fi
8668 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
8669 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; }
8670 if test $ac_cv_have_decl_strndup = yes; then
8671
8672 cat >>confdefs.h <<_ACEOF
8673 #define HAVE_DECL_STRNDUP 1
8674 _ACEOF
8675
8676
8677 else
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_DECL_STRNDUP 0
8680 _ACEOF
8681
8682
8683 fi
8684
8685
8686 { echo "$as_me:$LINENO: checking whether strsuftoll is declared" >&5
8687 echo $ECHO_N "checking whether strsuftoll is declared... $ECHO_C" >&6; }
8688 if test "${ac_cv_have_decl_strsuftoll+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691 cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h. */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 #include <stdlib.h>
8698
8699 int
8700 main ()
8701 {
8702 #ifndef strsuftoll
8703 (void) strsuftoll;
8704 #endif
8705
8706 ;
8707 return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext
8711 if { (ac_try="$ac_compile"
8712 case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_compile") 2>conftest.er1
8718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && {
8724 test -z "$ac_c_werror_flag" ||
8725 test ! -s conftest.err
8726 } && test -s conftest.$ac_objext; then
8727 ac_cv_have_decl_strsuftoll=yes
8728 else
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8731
8732 ac_cv_have_decl_strsuftoll=no
8733 fi
8734
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 fi
8737 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsuftoll" >&5
8738 echo "${ECHO_T}$ac_cv_have_decl_strsuftoll" >&6; }
8739 if test $ac_cv_have_decl_strsuftoll = yes; then
8740
8741 cat >>confdefs.h <<_ACEOF
8742 #define HAVE_DECL_STRSUFTOLL 1
8743 _ACEOF
8744
8745
8746 else
8747 cat >>confdefs.h <<_ACEOF
8748 #define HAVE_DECL_STRSUFTOLL 0
8749 _ACEOF
8750
8751
8752 fi
8753
8754
8755 { echo "$as_me:$LINENO: checking whether lchflags is declared" >&5
8756 echo $ECHO_N "checking whether lchflags is declared... $ECHO_C" >&6; }
8757 if test "${ac_cv_have_decl_lchflags+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 else
8760 cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h. */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8766
8767 #include <sys/stat.h>
8768 #include <unistd.h>
8769
8770
8771 int
8772 main ()
8773 {
8774 #ifndef lchflags
8775 (void) lchflags;
8776 #endif
8777
8778 ;
8779 return 0;
8780 }
8781 _ACEOF
8782 rm -f conftest.$ac_objext
8783 if { (ac_try="$ac_compile"
8784 case "(($ac_try" in
8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8787 esac
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_compile") 2>conftest.er1
8790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } && {
8796 test -z "$ac_c_werror_flag" ||
8797 test ! -s conftest.err
8798 } && test -s conftest.$ac_objext; then
8799 ac_cv_have_decl_lchflags=yes
8800 else
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 ac_cv_have_decl_lchflags=no
8805 fi
8806
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808 fi
8809 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lchflags" >&5
8810 echo "${ECHO_T}$ac_cv_have_decl_lchflags" >&6; }
8811 if test $ac_cv_have_decl_lchflags = yes; then
8812
8813 cat >>confdefs.h <<_ACEOF
8814 #define HAVE_DECL_LCHFLAGS 1
8815 _ACEOF
8816
8817
8818 else
8819 cat >>confdefs.h <<_ACEOF
8820 #define HAVE_DECL_LCHFLAGS 0
8821 _ACEOF
8822
8823
8824 fi
8825 { echo "$as_me:$LINENO: checking whether lchmod is declared" >&5
8826 echo $ECHO_N "checking whether lchmod is declared... $ECHO_C" >&6; }
8827 if test "${ac_cv_have_decl_lchmod+set}" = set; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 else
8830 cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h. */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8836
8837 #include <sys/stat.h>
8838 #include <unistd.h>
8839
8840
8841 int
8842 main ()
8843 {
8844 #ifndef lchmod
8845 (void) lchmod;
8846 #endif
8847
8848 ;
8849 return 0;
8850 }
8851 _ACEOF
8852 rm -f conftest.$ac_objext
8853 if { (ac_try="$ac_compile"
8854 case "(($ac_try" in
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8857 esac
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859 (eval "$ac_compile") 2>conftest.er1
8860 ac_status=$?
8861 grep -v '^ *+' conftest.er1 >conftest.err
8862 rm -f conftest.er1
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } && {
8866 test -z "$ac_c_werror_flag" ||
8867 test ! -s conftest.err
8868 } && test -s conftest.$ac_objext; then
8869 ac_cv_have_decl_lchmod=yes
8870 else
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 ac_cv_have_decl_lchmod=no
8875 fi
8876
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 fi
8879 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lchmod" >&5
8880 echo "${ECHO_T}$ac_cv_have_decl_lchmod" >&6; }
8881 if test $ac_cv_have_decl_lchmod = yes; then
8882
8883 cat >>confdefs.h <<_ACEOF
8884 #define HAVE_DECL_LCHMOD 1
8885 _ACEOF
8886
8887
8888 else
8889 cat >>confdefs.h <<_ACEOF
8890 #define HAVE_DECL_LCHMOD 0
8891 _ACEOF
8892
8893
8894 fi
8895 { echo "$as_me:$LINENO: checking whether lchown is declared" >&5
8896 echo $ECHO_N "checking whether lchown is declared... $ECHO_C" >&6; }
8897 if test "${ac_cv_have_decl_lchown+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else
8900 cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h. */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906
8907 #include <sys/stat.h>
8908 #include <unistd.h>
8909
8910
8911 int
8912 main ()
8913 {
8914 #ifndef lchown
8915 (void) lchown;
8916 #endif
8917
8918 ;
8919 return 0;
8920 }
8921 _ACEOF
8922 rm -f conftest.$ac_objext
8923 if { (ac_try="$ac_compile"
8924 case "(($ac_try" in
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8927 esac
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929 (eval "$ac_compile") 2>conftest.er1
8930 ac_status=$?
8931 grep -v '^ *+' conftest.er1 >conftest.err
8932 rm -f conftest.er1
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } && {
8936 test -z "$ac_c_werror_flag" ||
8937 test ! -s conftest.err
8938 } && test -s conftest.$ac_objext; then
8939 ac_cv_have_decl_lchown=yes
8940 else
8941 echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8943
8944 ac_cv_have_decl_lchown=no
8945 fi
8946
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 fi
8949 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lchown" >&5
8950 echo "${ECHO_T}$ac_cv_have_decl_lchown" >&6; }
8951 if test $ac_cv_have_decl_lchown = yes; then
8952
8953 cat >>confdefs.h <<_ACEOF
8954 #define HAVE_DECL_LCHOWN 1
8955 _ACEOF
8956
8957
8958 else
8959 cat >>confdefs.h <<_ACEOF
8960 #define HAVE_DECL_LCHOWN 0
8961 _ACEOF
8962
8963
8964 fi
8965
8966
8967
8968 { echo "$as_me:$LINENO: checking whether htobe16 is declared" >&5
8969 echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6; }
8970 if test "${ac_cv_have_decl_htobe16+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 else
8973 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h. */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979 #include <sys/types.h>
8980
8981 int
8982 main ()
8983 {
8984 #ifndef htobe16
8985 (void) htobe16;
8986 #endif
8987
8988 ;
8989 return 0;
8990 }
8991 _ACEOF
8992 rm -f conftest.$ac_objext
8993 if { (ac_try="$ac_compile"
8994 case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8997 esac
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_compile") 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } && {
9006 test -z "$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9008 } && test -s conftest.$ac_objext; then
9009 ac_cv_have_decl_htobe16=yes
9010 else
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_cv_have_decl_htobe16=no
9015 fi
9016
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018 fi
9019 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe16" >&5
9020 echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6; }
9021 if test $ac_cv_have_decl_htobe16 = yes; then
9022
9023 cat >>confdefs.h <<_ACEOF
9024 #define HAVE_DECL_HTOBE16 1
9025 _ACEOF
9026
9027
9028 else
9029 cat >>confdefs.h <<_ACEOF
9030 #define HAVE_DECL_HTOBE16 0
9031 _ACEOF
9032
9033
9034 fi
9035 { echo "$as_me:$LINENO: checking whether htobe32 is declared" >&5
9036 echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6; }
9037 if test "${ac_cv_have_decl_htobe32+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040 cat >conftest.$ac_ext <<_ACEOF
9041 /* confdefs.h. */
9042 _ACEOF
9043 cat confdefs.h >>conftest.$ac_ext
9044 cat >>conftest.$ac_ext <<_ACEOF
9045 /* end confdefs.h. */
9046 #include <sys/types.h>
9047
9048 int
9049 main ()
9050 {
9051 #ifndef htobe32
9052 (void) htobe32;
9053 #endif
9054
9055 ;
9056 return 0;
9057 }
9058 _ACEOF
9059 rm -f conftest.$ac_objext
9060 if { (ac_try="$ac_compile"
9061 case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9064 esac
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_compile") 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } && {
9073 test -z "$ac_c_werror_flag" ||
9074 test ! -s conftest.err
9075 } && test -s conftest.$ac_objext; then
9076 ac_cv_have_decl_htobe32=yes
9077 else
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9080
9081 ac_cv_have_decl_htobe32=no
9082 fi
9083
9084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085 fi
9086 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe32" >&5
9087 echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6; }
9088 if test $ac_cv_have_decl_htobe32 = yes; then
9089
9090 cat >>confdefs.h <<_ACEOF
9091 #define HAVE_DECL_HTOBE32 1
9092 _ACEOF
9093
9094
9095 else
9096 cat >>confdefs.h <<_ACEOF
9097 #define HAVE_DECL_HTOBE32 0
9098 _ACEOF
9099
9100
9101 fi
9102 { echo "$as_me:$LINENO: checking whether htobe64 is declared" >&5
9103 echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6; }
9104 if test "${ac_cv_have_decl_htobe64+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 else
9107 cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h. */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 #include <sys/types.h>
9114
9115 int
9116 main ()
9117 {
9118 #ifndef htobe64
9119 (void) htobe64;
9120 #endif
9121
9122 ;
9123 return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext
9127 if { (ac_try="$ac_compile"
9128 case "(($ac_try" in
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9131 esac
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_compile") 2>conftest.er1
9134 ac_status=$?
9135 grep -v '^ *+' conftest.er1 >conftest.err
9136 rm -f conftest.er1
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } && {
9140 test -z "$ac_c_werror_flag" ||
9141 test ! -s conftest.err
9142 } && test -s conftest.$ac_objext; then
9143 ac_cv_have_decl_htobe64=yes
9144 else
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9147
9148 ac_cv_have_decl_htobe64=no
9149 fi
9150
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 fi
9153 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe64" >&5
9154 echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6; }
9155 if test $ac_cv_have_decl_htobe64 = yes; then
9156
9157 cat >>confdefs.h <<_ACEOF
9158 #define HAVE_DECL_HTOBE64 1
9159 _ACEOF
9160
9161
9162 else
9163 cat >>confdefs.h <<_ACEOF
9164 #define HAVE_DECL_HTOBE64 0
9165 _ACEOF
9166
9167
9168 fi
9169 { echo "$as_me:$LINENO: checking whether htole16 is declared" >&5
9170 echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6; }
9171 if test "${ac_cv_have_decl_htole16+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174 cat >conftest.$ac_ext <<_ACEOF
9175 /* confdefs.h. */
9176 _ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9180 #include <sys/types.h>
9181
9182 int
9183 main ()
9184 {
9185 #ifndef htole16
9186 (void) htole16;
9187 #endif
9188
9189 ;
9190 return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext
9194 if { (ac_try="$ac_compile"
9195 case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198 esac
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_compile") 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && {
9207 test -z "$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9209 } && test -s conftest.$ac_objext; then
9210 ac_cv_have_decl_htole16=yes
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215 ac_cv_have_decl_htole16=no
9216 fi
9217
9218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219 fi
9220 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole16" >&5
9221 echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6; }
9222 if test $ac_cv_have_decl_htole16 = yes; then
9223
9224 cat >>confdefs.h <<_ACEOF
9225 #define HAVE_DECL_HTOLE16 1
9226 _ACEOF
9227
9228
9229 else
9230 cat >>confdefs.h <<_ACEOF
9231 #define HAVE_DECL_HTOLE16 0
9232 _ACEOF
9233
9234
9235 fi
9236 { echo "$as_me:$LINENO: checking whether htole32 is declared" >&5
9237 echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6; }
9238 if test "${ac_cv_have_decl_htole32+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h. */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 #include <sys/types.h>
9248
9249 int
9250 main ()
9251 {
9252 #ifndef htole32
9253 (void) htole32;
9254 #endif
9255
9256 ;
9257 return 0;
9258 }
9259 _ACEOF
9260 rm -f conftest.$ac_objext
9261 if { (ac_try="$ac_compile"
9262 case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9265 esac
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_compile") 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest.$ac_objext; then
9277 ac_cv_have_decl_htole32=yes
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9281
9282 ac_cv_have_decl_htole32=no
9283 fi
9284
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286 fi
9287 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole32" >&5
9288 echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6; }
9289 if test $ac_cv_have_decl_htole32 = yes; then
9290
9291 cat >>confdefs.h <<_ACEOF
9292 #define HAVE_DECL_HTOLE32 1
9293 _ACEOF
9294
9295
9296 else
9297 cat >>confdefs.h <<_ACEOF
9298 #define HAVE_DECL_HTOLE32 0
9299 _ACEOF
9300
9301
9302 fi
9303 { echo "$as_me:$LINENO: checking whether htole64 is declared" >&5
9304 echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6; }
9305 if test "${ac_cv_have_decl_htole64+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308 cat >conftest.$ac_ext <<_ACEOF
9309 /* confdefs.h. */
9310 _ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h. */
9314 #include <sys/types.h>
9315
9316 int
9317 main ()
9318 {
9319 #ifndef htole64
9320 (void) htole64;
9321 #endif
9322
9323 ;
9324 return 0;
9325 }
9326 _ACEOF
9327 rm -f conftest.$ac_objext
9328 if { (ac_try="$ac_compile"
9329 case "(($ac_try" in
9330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9331 *) ac_try_echo=$ac_try;;
9332 esac
9333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9334 (eval "$ac_compile") 2>conftest.er1
9335 ac_status=$?
9336 grep -v '^ *+' conftest.er1 >conftest.err
9337 rm -f conftest.er1
9338 cat conftest.err >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } && {
9341 test -z "$ac_c_werror_flag" ||
9342 test ! -s conftest.err
9343 } && test -s conftest.$ac_objext; then
9344 ac_cv_have_decl_htole64=yes
9345 else
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349 ac_cv_have_decl_htole64=no
9350 fi
9351
9352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353 fi
9354 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole64" >&5
9355 echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6; }
9356 if test $ac_cv_have_decl_htole64 = yes; then
9357
9358 cat >>confdefs.h <<_ACEOF
9359 #define HAVE_DECL_HTOLE64 1
9360 _ACEOF
9361
9362
9363 else
9364 cat >>confdefs.h <<_ACEOF
9365 #define HAVE_DECL_HTOLE64 0
9366 _ACEOF
9367
9368
9369 fi
9370 { echo "$as_me:$LINENO: checking whether be16toh is declared" >&5
9371 echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6; }
9372 if test "${ac_cv_have_decl_be16toh+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h. */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 #include <sys/types.h>
9382
9383 int
9384 main ()
9385 {
9386 #ifndef be16toh
9387 (void) be16toh;
9388 #endif
9389
9390 ;
9391 return 0;
9392 }
9393 _ACEOF
9394 rm -f conftest.$ac_objext
9395 if { (ac_try="$ac_compile"
9396 case "(($ac_try" in
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9399 esac
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_compile") 2>conftest.er1
9402 ac_status=$?
9403 grep -v '^ *+' conftest.er1 >conftest.err
9404 rm -f conftest.er1
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest.$ac_objext; then
9411 ac_cv_have_decl_be16toh=yes
9412 else
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9415
9416 ac_cv_have_decl_be16toh=no
9417 fi
9418
9419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420 fi
9421 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16toh" >&5
9422 echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6; }
9423 if test $ac_cv_have_decl_be16toh = yes; then
9424
9425 cat >>confdefs.h <<_ACEOF
9426 #define HAVE_DECL_BE16TOH 1
9427 _ACEOF
9428
9429
9430 else
9431 cat >>confdefs.h <<_ACEOF
9432 #define HAVE_DECL_BE16TOH 0
9433 _ACEOF
9434
9435
9436 fi
9437 { echo "$as_me:$LINENO: checking whether be32toh is declared" >&5
9438 echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6; }
9439 if test "${ac_cv_have_decl_be32toh+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 #include <sys/types.h>
9449
9450 int
9451 main ()
9452 {
9453 #ifndef be32toh
9454 (void) be32toh;
9455 #endif
9456
9457 ;
9458 return 0;
9459 }
9460 _ACEOF
9461 rm -f conftest.$ac_objext
9462 if { (ac_try="$ac_compile"
9463 case "(($ac_try" in
9464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465 *) ac_try_echo=$ac_try;;
9466 esac
9467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468 (eval "$ac_compile") 2>conftest.er1
9469 ac_status=$?
9470 grep -v '^ *+' conftest.er1 >conftest.err
9471 rm -f conftest.er1
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && {
9475 test -z "$ac_c_werror_flag" ||
9476 test ! -s conftest.err
9477 } && test -s conftest.$ac_objext; then
9478 ac_cv_have_decl_be32toh=yes
9479 else
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9482
9483 ac_cv_have_decl_be32toh=no
9484 fi
9485
9486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487 fi
9488 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32toh" >&5
9489 echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6; }
9490 if test $ac_cv_have_decl_be32toh = yes; then
9491
9492 cat >>confdefs.h <<_ACEOF
9493 #define HAVE_DECL_BE32TOH 1
9494 _ACEOF
9495
9496
9497 else
9498 cat >>confdefs.h <<_ACEOF
9499 #define HAVE_DECL_BE32TOH 0
9500 _ACEOF
9501
9502
9503 fi
9504 { echo "$as_me:$LINENO: checking whether be64toh is declared" >&5
9505 echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6; }
9506 if test "${ac_cv_have_decl_be64toh+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509 cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h. */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 #include <sys/types.h>
9516
9517 int
9518 main ()
9519 {
9520 #ifndef be64toh
9521 (void) be64toh;
9522 #endif
9523
9524 ;
9525 return 0;
9526 }
9527 _ACEOF
9528 rm -f conftest.$ac_objext
9529 if { (ac_try="$ac_compile"
9530 case "(($ac_try" in
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9533 esac
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_compile") 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } && {
9542 test -z "$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest.$ac_objext; then
9545 ac_cv_have_decl_be64toh=yes
9546 else
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550 ac_cv_have_decl_be64toh=no
9551 fi
9552
9553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 fi
9555 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64toh" >&5
9556 echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6; }
9557 if test $ac_cv_have_decl_be64toh = yes; then
9558
9559 cat >>confdefs.h <<_ACEOF
9560 #define HAVE_DECL_BE64TOH 1
9561 _ACEOF
9562
9563
9564 else
9565 cat >>confdefs.h <<_ACEOF
9566 #define HAVE_DECL_BE64TOH 0
9567 _ACEOF
9568
9569
9570 fi
9571 { echo "$as_me:$LINENO: checking whether le16toh is declared" >&5
9572 echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6; }
9573 if test "${ac_cv_have_decl_le16toh+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576 cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h. */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582 #include <sys/types.h>
9583
9584 int
9585 main ()
9586 {
9587 #ifndef le16toh
9588 (void) le16toh;
9589 #endif
9590
9591 ;
9592 return 0;
9593 }
9594 _ACEOF
9595 rm -f conftest.$ac_objext
9596 if { (ac_try="$ac_compile"
9597 case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600 esac
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_compile") 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest.$ac_objext; then
9612 ac_cv_have_decl_le16toh=yes
9613 else
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 ac_cv_have_decl_le16toh=no
9618 fi
9619
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621 fi
9622 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16toh" >&5
9623 echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6; }
9624 if test $ac_cv_have_decl_le16toh = yes; then
9625
9626 cat >>confdefs.h <<_ACEOF
9627 #define HAVE_DECL_LE16TOH 1
9628 _ACEOF
9629
9630
9631 else
9632 cat >>confdefs.h <<_ACEOF
9633 #define HAVE_DECL_LE16TOH 0
9634 _ACEOF
9635
9636
9637 fi
9638 { echo "$as_me:$LINENO: checking whether le32toh is declared" >&5
9639 echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6; }
9640 if test "${ac_cv_have_decl_le32toh+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h. */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 #include <sys/types.h>
9650
9651 int
9652 main ()
9653 {
9654 #ifndef le32toh
9655 (void) le32toh;
9656 #endif
9657
9658 ;
9659 return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext
9663 if { (ac_try="$ac_compile"
9664 case "(($ac_try" in
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9667 esac
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_compile") 2>conftest.er1
9670 ac_status=$?
9671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } && {
9676 test -z "$ac_c_werror_flag" ||
9677 test ! -s conftest.err
9678 } && test -s conftest.$ac_objext; then
9679 ac_cv_have_decl_le32toh=yes
9680 else
9681 echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9683
9684 ac_cv_have_decl_le32toh=no
9685 fi
9686
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688 fi
9689 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32toh" >&5
9690 echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6; }
9691 if test $ac_cv_have_decl_le32toh = yes; then
9692
9693 cat >>confdefs.h <<_ACEOF
9694 #define HAVE_DECL_LE32TOH 1
9695 _ACEOF
9696
9697
9698 else
9699 cat >>confdefs.h <<_ACEOF
9700 #define HAVE_DECL_LE32TOH 0
9701 _ACEOF
9702
9703
9704 fi
9705 { echo "$as_me:$LINENO: checking whether le64toh is declared" >&5
9706 echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6; }
9707 if test "${ac_cv_have_decl_le64toh+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h. */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 #include <sys/types.h>
9717
9718 int
9719 main ()
9720 {
9721 #ifndef le64toh
9722 (void) le64toh;
9723 #endif
9724
9725 ;
9726 return 0;
9727 }
9728 _ACEOF
9729 rm -f conftest.$ac_objext
9730 if { (ac_try="$ac_compile"
9731 case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9734 esac
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_compile") 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && {
9743 test -z "$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 } && test -s conftest.$ac_objext; then
9746 ac_cv_have_decl_le64toh=yes
9747 else
9748 echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9750
9751 ac_cv_have_decl_le64toh=no
9752 fi
9753
9754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 fi
9756 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64toh" >&5
9757 echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6; }
9758 if test $ac_cv_have_decl_le64toh = yes; then
9759
9760 cat >>confdefs.h <<_ACEOF
9761 #define HAVE_DECL_LE64TOH 1
9762 _ACEOF
9763
9764
9765 else
9766 cat >>confdefs.h <<_ACEOF
9767 #define HAVE_DECL_LE64TOH 0
9768 _ACEOF
9769
9770
9771 fi
9772
9773
9774
9775 { echo "$as_me:$LINENO: checking whether bswap16 is declared" >&5
9776 echo $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6; }
9777 if test "${ac_cv_have_decl_bswap16+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 #include <machine/bswap.h>
9787
9788 int
9789 main ()
9790 {
9791 #ifndef bswap16
9792 (void) bswap16;
9793 #endif
9794
9795 ;
9796 return 0;
9797 }
9798 _ACEOF
9799 rm -f conftest.$ac_objext
9800 if { (ac_try="$ac_compile"
9801 case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_compile") 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } && {
9813 test -z "$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 } && test -s conftest.$ac_objext; then
9816 ac_cv_have_decl_bswap16=yes
9817 else
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9820
9821 ac_cv_have_decl_bswap16=no
9822 fi
9823
9824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 fi
9826 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap16" >&5
9827 echo "${ECHO_T}$ac_cv_have_decl_bswap16" >&6; }
9828 if test $ac_cv_have_decl_bswap16 = yes; then
9829
9830 cat >>confdefs.h <<_ACEOF
9831 #define HAVE_DECL_BSWAP16 1
9832 _ACEOF
9833
9834
9835 else
9836 cat >>confdefs.h <<_ACEOF
9837 #define HAVE_DECL_BSWAP16 0
9838 _ACEOF
9839
9840
9841 fi
9842 { echo "$as_me:$LINENO: checking whether bswap32 is declared" >&5
9843 echo $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6; }
9844 if test "${ac_cv_have_decl_bswap32+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847 cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h. */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9853 #include <machine/bswap.h>
9854
9855 int
9856 main ()
9857 {
9858 #ifndef bswap32
9859 (void) bswap32;
9860 #endif
9861
9862 ;
9863 return 0;
9864 }
9865 _ACEOF
9866 rm -f conftest.$ac_objext
9867 if { (ac_try="$ac_compile"
9868 case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_compile") 2>conftest.er1
9874 ac_status=$?
9875 grep -v '^ *+' conftest.er1 >conftest.err
9876 rm -f conftest.er1
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } && {
9880 test -z "$ac_c_werror_flag" ||
9881 test ! -s conftest.err
9882 } && test -s conftest.$ac_objext; then
9883 ac_cv_have_decl_bswap32=yes
9884 else
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888 ac_cv_have_decl_bswap32=no
9889 fi
9890
9891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9892 fi
9893 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap32" >&5
9894 echo "${ECHO_T}$ac_cv_have_decl_bswap32" >&6; }
9895 if test $ac_cv_have_decl_bswap32 = yes; then
9896
9897 cat >>confdefs.h <<_ACEOF
9898 #define HAVE_DECL_BSWAP32 1
9899 _ACEOF
9900
9901
9902 else
9903 cat >>confdefs.h <<_ACEOF
9904 #define HAVE_DECL_BSWAP32 0
9905 _ACEOF
9906
9907
9908 fi
9909 { echo "$as_me:$LINENO: checking whether bswap64 is declared" >&5
9910 echo $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6; }
9911 if test "${ac_cv_have_decl_bswap64+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 #include <machine/bswap.h>
9921
9922 int
9923 main ()
9924 {
9925 #ifndef bswap64
9926 (void) bswap64;
9927 #endif
9928
9929 ;
9930 return 0;
9931 }
9932 _ACEOF
9933 rm -f conftest.$ac_objext
9934 if { (ac_try="$ac_compile"
9935 case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9938 esac
9939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 (eval "$ac_compile") 2>conftest.er1
9941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } && {
9947 test -z "$ac_c_werror_flag" ||
9948 test ! -s conftest.err
9949 } && test -s conftest.$ac_objext; then
9950 ac_cv_have_decl_bswap64=yes
9951 else
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9954
9955 ac_cv_have_decl_bswap64=no
9956 fi
9957
9958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959 fi
9960 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap64" >&5
9961 echo "${ECHO_T}$ac_cv_have_decl_bswap64" >&6; }
9962 if test $ac_cv_have_decl_bswap64 = yes; then
9963
9964 cat >>confdefs.h <<_ACEOF
9965 #define HAVE_DECL_BSWAP64 1
9966 _ACEOF
9967
9968
9969 else
9970 cat >>confdefs.h <<_ACEOF
9971 #define HAVE_DECL_BSWAP64 0
9972 _ACEOF
9973
9974
9975 fi
9976
9977
9978
9979 { echo "$as_me:$LINENO: checking whether be16enc is declared" >&5
9980 echo $ECHO_N "checking whether be16enc is declared... $ECHO_C" >&6; }
9981 if test "${ac_cv_have_decl_be16enc+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 #include <sys/endian.h>
9991
9992 int
9993 main ()
9994 {
9995 #ifndef be16enc
9996 (void) be16enc;
9997 #endif
9998
9999 ;
10000 return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext
10004 if { (ac_try="$ac_compile"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $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 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
10020 ac_cv_have_decl_be16enc=yes
10021 else
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10024
10025 ac_cv_have_decl_be16enc=no
10026 fi
10027
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 fi
10030 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16enc" >&5
10031 echo "${ECHO_T}$ac_cv_have_decl_be16enc" >&6; }
10032 if test $ac_cv_have_decl_be16enc = yes; then
10033
10034 cat >>confdefs.h <<_ACEOF
10035 #define HAVE_DECL_BE16ENC 1
10036 _ACEOF
10037
10038
10039 else
10040 cat >>confdefs.h <<_ACEOF
10041 #define HAVE_DECL_BE16ENC 0
10042 _ACEOF
10043
10044
10045 fi
10046 { echo "$as_me:$LINENO: checking whether le16enc is declared" >&5
10047 echo $ECHO_N "checking whether le16enc is declared... $ECHO_C" >&6; }
10048 if test "${ac_cv_have_decl_le16enc+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h. */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 #include <sys/endian.h>
10058
10059 int
10060 main ()
10061 {
10062 #ifndef le16enc
10063 (void) le16enc;
10064 #endif
10065
10066 ;
10067 return 0;
10068 }
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_compile") 2>conftest.er1
10078 ac_status=$?
10079 grep -v '^ *+' conftest.er1 >conftest.err
10080 rm -f conftest.er1
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } && {
10084 test -z "$ac_c_werror_flag" ||
10085 test ! -s conftest.err
10086 } && test -s conftest.$ac_objext; then
10087 ac_cv_have_decl_le16enc=yes
10088 else
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ac_cv_have_decl_le16enc=no
10093 fi
10094
10095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 fi
10097 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16enc" >&5
10098 echo "${ECHO_T}$ac_cv_have_decl_le16enc" >&6; }
10099 if test $ac_cv_have_decl_le16enc = yes; then
10100
10101 cat >>confdefs.h <<_ACEOF
10102 #define HAVE_DECL_LE16ENC 1
10103 _ACEOF
10104
10105
10106 else
10107 cat >>confdefs.h <<_ACEOF
10108 #define HAVE_DECL_LE16ENC 0
10109 _ACEOF
10110
10111
10112 fi
10113 { echo "$as_me:$LINENO: checking whether be16dec is declared" >&5
10114 echo $ECHO_N "checking whether be16dec is declared... $ECHO_C" >&6; }
10115 if test "${ac_cv_have_decl_be16dec+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 else
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h. */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 #include <sys/endian.h>
10125
10126 int
10127 main ()
10128 {
10129 #ifndef be16dec
10130 (void) be16dec;
10131 #endif
10132
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_compile") 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && {
10151 test -z "$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10153 } && test -s conftest.$ac_objext; then
10154 ac_cv_have_decl_be16dec=yes
10155 else
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 ac_cv_have_decl_be16dec=no
10160 fi
10161
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 fi
10164 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16dec" >&5
10165 echo "${ECHO_T}$ac_cv_have_decl_be16dec" >&6; }
10166 if test $ac_cv_have_decl_be16dec = yes; then
10167
10168 cat >>confdefs.h <<_ACEOF
10169 #define HAVE_DECL_BE16DEC 1
10170 _ACEOF
10171
10172
10173 else
10174 cat >>confdefs.h <<_ACEOF
10175 #define HAVE_DECL_BE16DEC 0
10176 _ACEOF
10177
10178
10179 fi
10180 { echo "$as_me:$LINENO: checking whether le16dec is declared" >&5
10181 echo $ECHO_N "checking whether le16dec is declared... $ECHO_C" >&6; }
10182 if test "${ac_cv_have_decl_le16dec+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 else
10185 cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h. */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191 #include <sys/endian.h>
10192
10193 int
10194 main ()
10195 {
10196 #ifndef le16dec
10197 (void) le16dec;
10198 #endif
10199
10200 ;
10201 return 0;
10202 }
10203 _ACEOF
10204 rm -f conftest.$ac_objext
10205 if { (ac_try="$ac_compile"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && {
10218 test -z "$ac_c_werror_flag" ||
10219 test ! -s conftest.err
10220 } && test -s conftest.$ac_objext; then
10221 ac_cv_have_decl_le16dec=yes
10222 else
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 ac_cv_have_decl_le16dec=no
10227 fi
10228
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 fi
10231 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16dec" >&5
10232 echo "${ECHO_T}$ac_cv_have_decl_le16dec" >&6; }
10233 if test $ac_cv_have_decl_le16dec = yes; then
10234
10235 cat >>confdefs.h <<_ACEOF
10236 #define HAVE_DECL_LE16DEC 1
10237 _ACEOF
10238
10239
10240 else
10241 cat >>confdefs.h <<_ACEOF
10242 #define HAVE_DECL_LE16DEC 0
10243 _ACEOF
10244
10245
10246 fi
10247 { echo "$as_me:$LINENO: checking whether be32enc is declared" >&5
10248 echo $ECHO_N "checking whether be32enc is declared... $ECHO_C" >&6; }
10249 if test "${ac_cv_have_decl_be32enc+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252 cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h. */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 #include <sys/endian.h>
10259
10260 int
10261 main ()
10262 {
10263 #ifndef be32enc
10264 (void) be32enc;
10265 #endif
10266
10267 ;
10268 return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext
10272 if { (ac_try="$ac_compile"
10273 case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_compile") 2>conftest.er1
10279 ac_status=$?
10280 grep -v '^ *+' conftest.er1 >conftest.err
10281 rm -f conftest.er1
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } && {
10285 test -z "$ac_c_werror_flag" ||
10286 test ! -s conftest.err
10287 } && test -s conftest.$ac_objext; then
10288 ac_cv_have_decl_be32enc=yes
10289 else
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10292
10293 ac_cv_have_decl_be32enc=no
10294 fi
10295
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 fi
10298 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32enc" >&5
10299 echo "${ECHO_T}$ac_cv_have_decl_be32enc" >&6; }
10300 if test $ac_cv_have_decl_be32enc = yes; then
10301
10302 cat >>confdefs.h <<_ACEOF
10303 #define HAVE_DECL_BE32ENC 1
10304 _ACEOF
10305
10306
10307 else
10308 cat >>confdefs.h <<_ACEOF
10309 #define HAVE_DECL_BE32ENC 0
10310 _ACEOF
10311
10312
10313 fi
10314 { echo "$as_me:$LINENO: checking whether le32enc is declared" >&5
10315 echo $ECHO_N "checking whether le32enc is declared... $ECHO_C" >&6; }
10316 if test "${ac_cv_have_decl_le32enc+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319 cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h. */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325 #include <sys/endian.h>
10326
10327 int
10328 main ()
10329 {
10330 #ifndef le32enc
10331 (void) le32enc;
10332 #endif
10333
10334 ;
10335 return 0;
10336 }
10337 _ACEOF
10338 rm -f conftest.$ac_objext
10339 if { (ac_try="$ac_compile"
10340 case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343 esac
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_compile") 2>conftest.er1
10346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest.$ac_objext; then
10355 ac_cv_have_decl_le32enc=yes
10356 else
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10359
10360 ac_cv_have_decl_le32enc=no
10361 fi
10362
10363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364 fi
10365 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32enc" >&5
10366 echo "${ECHO_T}$ac_cv_have_decl_le32enc" >&6; }
10367 if test $ac_cv_have_decl_le32enc = yes; then
10368
10369 cat >>confdefs.h <<_ACEOF
10370 #define HAVE_DECL_LE32ENC 1
10371 _ACEOF
10372
10373
10374 else
10375 cat >>confdefs.h <<_ACEOF
10376 #define HAVE_DECL_LE32ENC 0
10377 _ACEOF
10378
10379
10380 fi
10381 { echo "$as_me:$LINENO: checking whether be32dec is declared" >&5
10382 echo $ECHO_N "checking whether be32dec is declared... $ECHO_C" >&6; }
10383 if test "${ac_cv_have_decl_be32dec+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386 cat >conftest.$ac_ext <<_ACEOF
10387 /* confdefs.h. */
10388 _ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h. */
10392 #include <sys/endian.h>
10393
10394 int
10395 main ()
10396 {
10397 #ifndef be32dec
10398 (void) be32dec;
10399 #endif
10400
10401 ;
10402 return 0;
10403 }
10404 _ACEOF
10405 rm -f conftest.$ac_objext
10406 if { (ac_try="$ac_compile"
10407 case "(($ac_try" in
10408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409 *) ac_try_echo=$ac_try;;
10410 esac
10411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10412 (eval "$ac_compile") 2>conftest.er1
10413 ac_status=$?
10414 grep -v '^ *+' conftest.er1 >conftest.err
10415 rm -f conftest.er1
10416 cat conftest.err >&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } && {
10419 test -z "$ac_c_werror_flag" ||
10420 test ! -s conftest.err
10421 } && test -s conftest.$ac_objext; then
10422 ac_cv_have_decl_be32dec=yes
10423 else
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10426
10427 ac_cv_have_decl_be32dec=no
10428 fi
10429
10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431 fi
10432 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32dec" >&5
10433 echo "${ECHO_T}$ac_cv_have_decl_be32dec" >&6; }
10434 if test $ac_cv_have_decl_be32dec = yes; then
10435
10436 cat >>confdefs.h <<_ACEOF
10437 #define HAVE_DECL_BE32DEC 1
10438 _ACEOF
10439
10440
10441 else
10442 cat >>confdefs.h <<_ACEOF
10443 #define HAVE_DECL_BE32DEC 0
10444 _ACEOF
10445
10446
10447 fi
10448 { echo "$as_me:$LINENO: checking whether le32dec is declared" >&5
10449 echo $ECHO_N "checking whether le32dec is declared... $ECHO_C" >&6; }
10450 if test "${ac_cv_have_decl_le32dec+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10452 else
10453 cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h. */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10459 #include <sys/endian.h>
10460
10461 int
10462 main ()
10463 {
10464 #ifndef le32dec
10465 (void) le32dec;
10466 #endif
10467
10468 ;
10469 return 0;
10470 }
10471 _ACEOF
10472 rm -f conftest.$ac_objext
10473 if { (ac_try="$ac_compile"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_compile") 2>conftest.er1
10480 ac_status=$?
10481 grep -v '^ *+' conftest.er1 >conftest.err
10482 rm -f conftest.er1
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } && {
10486 test -z "$ac_c_werror_flag" ||
10487 test ! -s conftest.err
10488 } && test -s conftest.$ac_objext; then
10489 ac_cv_have_decl_le32dec=yes
10490 else
10491 echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10493
10494 ac_cv_have_decl_le32dec=no
10495 fi
10496
10497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10498 fi
10499 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32dec" >&5
10500 echo "${ECHO_T}$ac_cv_have_decl_le32dec" >&6; }
10501 if test $ac_cv_have_decl_le32dec = yes; then
10502
10503 cat >>confdefs.h <<_ACEOF
10504 #define HAVE_DECL_LE32DEC 1
10505 _ACEOF
10506
10507
10508 else
10509 cat >>confdefs.h <<_ACEOF
10510 #define HAVE_DECL_LE32DEC 0
10511 _ACEOF
10512
10513
10514 fi
10515 { echo "$as_me:$LINENO: checking whether be64enc is declared" >&5
10516 echo $ECHO_N "checking whether be64enc is declared... $ECHO_C" >&6; }
10517 if test "${ac_cv_have_decl_be64enc+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520 cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h. */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 #include <sys/endian.h>
10527
10528 int
10529 main ()
10530 {
10531 #ifndef be64enc
10532 (void) be64enc;
10533 #endif
10534
10535 ;
10536 return 0;
10537 }
10538 _ACEOF
10539 rm -f conftest.$ac_objext
10540 if { (ac_try="$ac_compile"
10541 case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10544 esac
10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546 (eval "$ac_compile") 2>conftest.er1
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest.$ac_objext; then
10556 ac_cv_have_decl_be64enc=yes
10557 else
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561 ac_cv_have_decl_be64enc=no
10562 fi
10563
10564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10565 fi
10566 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64enc" >&5
10567 echo "${ECHO_T}$ac_cv_have_decl_be64enc" >&6; }
10568 if test $ac_cv_have_decl_be64enc = yes; then
10569
10570 cat >>confdefs.h <<_ACEOF
10571 #define HAVE_DECL_BE64ENC 1
10572 _ACEOF
10573
10574
10575 else
10576 cat >>confdefs.h <<_ACEOF
10577 #define HAVE_DECL_BE64ENC 0
10578 _ACEOF
10579
10580
10581 fi
10582 { echo "$as_me:$LINENO: checking whether le64enc is declared" >&5
10583 echo $ECHO_N "checking whether le64enc is declared... $ECHO_C" >&6; }
10584 if test "${ac_cv_have_decl_le64enc+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 else
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593 #include <sys/endian.h>
10594
10595 int
10596 main ()
10597 {
10598 #ifndef le64enc
10599 (void) le64enc;
10600 #endif
10601
10602 ;
10603 return 0;
10604 }
10605 _ACEOF
10606 rm -f conftest.$ac_objext
10607 if { (ac_try="$ac_compile"
10608 case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_compile") 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest.$ac_objext; then
10623 ac_cv_have_decl_le64enc=yes
10624 else
10625 echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10627
10628 ac_cv_have_decl_le64enc=no
10629 fi
10630
10631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 fi
10633 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64enc" >&5
10634 echo "${ECHO_T}$ac_cv_have_decl_le64enc" >&6; }
10635 if test $ac_cv_have_decl_le64enc = yes; then
10636
10637 cat >>confdefs.h <<_ACEOF
10638 #define HAVE_DECL_LE64ENC 1
10639 _ACEOF
10640
10641
10642 else
10643 cat >>confdefs.h <<_ACEOF
10644 #define HAVE_DECL_LE64ENC 0
10645 _ACEOF
10646
10647
10648 fi
10649 { echo "$as_me:$LINENO: checking whether be64dec is declared" >&5
10650 echo $ECHO_N "checking whether be64dec is declared... $ECHO_C" >&6; }
10651 if test "${ac_cv_have_decl_be64dec+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654 cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h. */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10660 #include <sys/endian.h>
10661
10662 int
10663 main ()
10664 {
10665 #ifndef be64dec
10666 (void) be64dec;
10667 #endif
10668
10669 ;
10670 return 0;
10671 }
10672 _ACEOF
10673 rm -f conftest.$ac_objext
10674 if { (ac_try="$ac_compile"
10675 case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10678 esac
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_compile") 2>conftest.er1
10681 ac_status=$?
10682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } && {
10687 test -z "$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 } && test -s conftest.$ac_objext; then
10690 ac_cv_have_decl_be64dec=yes
10691 else
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10694
10695 ac_cv_have_decl_be64dec=no
10696 fi
10697
10698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10699 fi
10700 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64dec" >&5
10701 echo "${ECHO_T}$ac_cv_have_decl_be64dec" >&6; }
10702 if test $ac_cv_have_decl_be64dec = yes; then
10703
10704 cat >>confdefs.h <<_ACEOF
10705 #define HAVE_DECL_BE64DEC 1
10706 _ACEOF
10707
10708
10709 else
10710 cat >>confdefs.h <<_ACEOF
10711 #define HAVE_DECL_BE64DEC 0
10712 _ACEOF
10713
10714
10715 fi
10716 { echo "$as_me:$LINENO: checking whether le64dec is declared" >&5
10717 echo $ECHO_N "checking whether le64dec is declared... $ECHO_C" >&6; }
10718 if test "${ac_cv_have_decl_le64dec+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721 cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h. */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 #include <sys/endian.h>
10728
10729 int
10730 main ()
10731 {
10732 #ifndef le64dec
10733 (void) le64dec;
10734 #endif
10735
10736 ;
10737 return 0;
10738 }
10739 _ACEOF
10740 rm -f conftest.$ac_objext
10741 if { (ac_try="$ac_compile"
10742 case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10745 esac
10746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 (eval "$ac_compile") 2>conftest.er1
10748 ac_status=$?
10749 grep -v '^ *+' conftest.er1 >conftest.err
10750 rm -f conftest.er1
10751 cat conftest.err >&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } && {
10754 test -z "$ac_c_werror_flag" ||
10755 test ! -s conftest.err
10756 } && test -s conftest.$ac_objext; then
10757 ac_cv_have_decl_le64dec=yes
10758 else
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10761
10762 ac_cv_have_decl_le64dec=no
10763 fi
10764
10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10766 fi
10767 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64dec" >&5
10768 echo "${ECHO_T}$ac_cv_have_decl_le64dec" >&6; }
10769 if test $ac_cv_have_decl_le64dec = yes; then
10770
10771 cat >>confdefs.h <<_ACEOF
10772 #define HAVE_DECL_LE64DEC 1
10773 _ACEOF
10774
10775
10776 else
10777 cat >>confdefs.h <<_ACEOF
10778 #define HAVE_DECL_LE64DEC 0
10779 _ACEOF
10780
10781
10782 fi
10783
10784
10785
10786 { echo "$as_me:$LINENO: checking whether fstatvfs is declared" >&5
10787 echo $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6; }
10788 if test "${ac_cv_have_decl_fstatvfs+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791 cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h. */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 #include <sys/statvfs.h>
10798
10799 int
10800 main ()
10801 {
10802 #ifndef fstatvfs
10803 (void) fstatvfs;
10804 #endif
10805
10806 ;
10807 return 0;
10808 }
10809 _ACEOF
10810 rm -f conftest.$ac_objext
10811 if { (ac_try="$ac_compile"
10812 case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815 esac
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_compile") 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } && {
10824 test -z "$ac_c_werror_flag" ||
10825 test ! -s conftest.err
10826 } && test -s conftest.$ac_objext; then
10827 ac_cv_have_decl_fstatvfs=yes
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10831
10832 ac_cv_have_decl_fstatvfs=no
10833 fi
10834
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 fi
10837 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fstatvfs" >&5
10838 echo "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6; }
10839 if test $ac_cv_have_decl_fstatvfs = yes; then
10840
10841 cat >>confdefs.h <<_ACEOF
10842 #define HAVE_DECL_FSTATVFS 1
10843 _ACEOF
10844
10845
10846 else
10847 cat >>confdefs.h <<_ACEOF
10848 #define HAVE_DECL_FSTATVFS 0
10849 _ACEOF
10850
10851
10852 fi
10853
10854
10855
10856 { echo "$as_me:$LINENO: checking whether setgroupent is declared" >&5
10857 echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6; }
10858 if test "${ac_cv_have_decl_setgroupent+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861 cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h. */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10867
10868 #include <sys/types.h>
10869 #include <grp.h>
10870 #include <pwd.h>
10871
10872
10873 int
10874 main ()
10875 {
10876 #ifndef setgroupent
10877 (void) setgroupent;
10878 #endif
10879
10880 ;
10881 return 0;
10882 }
10883 _ACEOF
10884 rm -f conftest.$ac_objext
10885 if { (ac_try="$ac_compile"
10886 case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_compile") 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } && {
10898 test -z "$ac_c_werror_flag" ||
10899 test ! -s conftest.err
10900 } && test -s conftest.$ac_objext; then
10901 ac_cv_have_decl_setgroupent=yes
10902 else
10903 echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10905
10906 ac_cv_have_decl_setgroupent=no
10907 fi
10908
10909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10910 fi
10911 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setgroupent" >&5
10912 echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6; }
10913 if test $ac_cv_have_decl_setgroupent = yes; then
10914
10915 cat >>confdefs.h <<_ACEOF
10916 #define HAVE_DECL_SETGROUPENT 1
10917 _ACEOF
10918
10919
10920 else
10921 cat >>confdefs.h <<_ACEOF
10922 #define HAVE_DECL_SETGROUPENT 0
10923 _ACEOF
10924
10925
10926 fi
10927 { echo "$as_me:$LINENO: checking whether setpassent is declared" >&5
10928 echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6; }
10929 if test "${ac_cv_have_decl_setpassent+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931 else
10932 cat >conftest.$ac_ext <<_ACEOF
10933 /* confdefs.h. */
10934 _ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10938
10939 #include <sys/types.h>
10940 #include <grp.h>
10941 #include <pwd.h>
10942
10943
10944 int
10945 main ()
10946 {
10947 #ifndef setpassent
10948 (void) setpassent;
10949 #endif
10950
10951 ;
10952 return 0;
10953 }
10954 _ACEOF
10955 rm -f conftest.$ac_objext
10956 if { (ac_try="$ac_compile"
10957 case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10960 esac
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_compile") 2>conftest.er1
10963 ac_status=$?
10964 grep -v '^ *+' conftest.er1 >conftest.err
10965 rm -f conftest.er1
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } && {
10969 test -z "$ac_c_werror_flag" ||
10970 test ! -s conftest.err
10971 } && test -s conftest.$ac_objext; then
10972 ac_cv_have_decl_setpassent=yes
10973 else
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10976
10977 ac_cv_have_decl_setpassent=no
10978 fi
10979
10980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10981 fi
10982 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_setpassent" >&5
10983 echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6; }
10984 if test $ac_cv_have_decl_setpassent = yes; then
10985
10986 cat >>confdefs.h <<_ACEOF
10987 #define HAVE_DECL_SETPASSENT 1
10988 _ACEOF
10989
10990
10991 else
10992 cat >>confdefs.h <<_ACEOF
10993 #define HAVE_DECL_SETPASSENT 0
10994 _ACEOF
10995
10996
10997 fi
10998
10999
11000
11001 # regcomp() and regexec() are also names of functions in the old V8
11002 # regexp package. To avoid them, we need to find out who has regfree().
11003
11004
11005 { echo "$as_me:$LINENO: checking for regfree in -lregex" >&5
11006 echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6; }
11007 if test "${ac_cv_lib_regex_regfree+set}" = set; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010 ac_check_lib_save_LIBS=$LIBS
11011 LIBS="-lregex $LIBS"
11012 cat >conftest.$ac_ext <<_ACEOF
11013 /* confdefs.h. */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018
11019 /* Override any GCC internal prototype to avoid an error.
11020 Use char because int might match the return type of a GCC
11021 builtin and then its argument prototype would still apply. */
11022 #ifdef __cplusplus
11023 extern "C"
11024 #endif
11025 char regfree ();
11026 int
11027 main ()
11028 {
11029 return regfree ();
11030 ;
11031 return 0;
11032 }
11033 _ACEOF
11034 rm -f conftest.$ac_objext conftest$ac_exeext
11035 if { (ac_try="$ac_link"
11036 case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11039 esac
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_link") 2>conftest.er1
11042 ac_status=$?
11043 grep -v '^ *+' conftest.er1 >conftest.err
11044 rm -f conftest.er1
11045 cat conftest.err >&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } && {
11048 test -z "$ac_c_werror_flag" ||
11049 test ! -s conftest.err
11050 } && test -s conftest$ac_exeext &&
11051 $as_test_x conftest$ac_exeext; then
11052 ac_cv_lib_regex_regfree=yes
11053 else
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11056
11057 ac_cv_lib_regex_regfree=no
11058 fi
11059
11060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11061 conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_lib_save_LIBS
11063 fi
11064 { echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regfree" >&5
11065 echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6; }
11066 if test $ac_cv_lib_regex_regfree = yes; then
11067 cat >>confdefs.h <<_ACEOF
11068 #define HAVE_LIBREGEX 1
11069 _ACEOF
11070
11071 LIBS="-lregex $LIBS"
11072
11073 fi
11074
11075 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
11076 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
11077 if test "${ac_cv_search_regfree+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 else
11080 ac_func_search_save_LIBS=$LIBS
11081 cat >conftest.$ac_ext <<_ACEOF
11082 /* confdefs.h. */
11083 _ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087
11088 /* Override any GCC internal prototype to avoid an error.
11089 Use char because int might match the return type of a GCC
11090 builtin and then its argument prototype would still apply. */
11091 #ifdef __cplusplus
11092 extern "C"
11093 #endif
11094 char regfree ();
11095 int
11096 main ()
11097 {
11098 return regfree ();
11099 ;
11100 return 0;
11101 }
11102 _ACEOF
11103 for ac_lib in '' rx posix; do
11104 if test -z "$ac_lib"; then
11105 ac_res="none required"
11106 else
11107 ac_res=-l$ac_lib
11108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11109 fi
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (ac_try="$ac_link"
11112 case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115 esac
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_link") 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } && {
11124 test -z "$ac_c_werror_flag" ||
11125 test ! -s conftest.err
11126 } && test -s conftest$ac_exeext &&
11127 $as_test_x conftest$ac_exeext; then
11128 ac_cv_search_regfree=$ac_res
11129 else
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11132
11133
11134 fi
11135
11136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11137 conftest$ac_exeext
11138 if test "${ac_cv_search_regfree+set}" = set; then
11139 break
11140 fi
11141 done
11142 if test "${ac_cv_search_regfree+set}" = set; then
11143 :
11144 else
11145 ac_cv_search_regfree=no
11146 fi
11147 rm conftest.$ac_ext
11148 LIBS=$ac_func_search_save_LIBS
11149 fi
11150 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
11151 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
11152 ac_res=$ac_cv_search_regfree
11153 if test "$ac_res" != no; then
11154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11155
11156 fi
11157
11158
11159 cat >confcache <<\_ACEOF
11160 # This file is a shell script that caches the results of configure
11161 # tests run on this system so they can be shared between configure
11162 # scripts and configure runs, see configure's option --config-cache.
11163 # It is not useful on other systems. If it contains results you don't
11164 # want to keep, you may remove or edit it.
11165 #
11166 # config.status only pays attention to the cache file if you give it
11167 # the --recheck option to rerun configure.
11168 #
11169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11171 # following values.
11172
11173 _ACEOF
11174
11175 # The following way of writing the cache mishandles newlines in values,
11176 # but we know of no workaround that is simple, portable, and efficient.
11177 # So, we kill variables containing newlines.
11178 # Ultrix sh set writes to stderr and can't be redirected directly,
11179 # and sets the high bit in the cache file unless we assign to the vars.
11180 (
11181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11182 eval ac_val=\$$ac_var
11183 case $ac_val in #(
11184 *${as_nl}*)
11185 case $ac_var in #(
11186 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11187 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11188 esac
11189 case $ac_var in #(
11190 _ | IFS | as_nl) ;; #(
11191 *) $as_unset $ac_var ;;
11192 esac ;;
11193 esac
11194 done
11195
11196 (set) 2>&1 |
11197 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11198 *${as_nl}ac_space=\ *)
11199 # `set' does not quote correctly, so add quotes (double-quote
11200 # substitution turns \\\\ into \\, and sed turns \\ into \).
11201 sed -n \
11202 "s/'/'\\\\''/g;
11203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11204 ;; #(
11205 *)
11206 # `set' quotes correctly as required by POSIX, so do not add quotes.
11207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11208 ;;
11209 esac |
11210 sort
11211 ) |
11212 sed '
11213 /^ac_cv_env_/b end
11214 t clear
11215 :clear
11216 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11217 t end
11218 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11219 :end' >>confcache
11220 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11221 if test -w "$cache_file"; then
11222 test "x$cache_file" != "x/dev/null" &&
11223 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11224 echo "$as_me: updating cache $cache_file" >&6;}
11225 cat confcache >$cache_file
11226 else
11227 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11228 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11229 fi
11230 fi
11231 rm -f confcache
11232
11233 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11234 # Let make expand exec_prefix.
11235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11236
11237 DEFS=-DHAVE_CONFIG_H
11238
11239 ac_libobjs=
11240 ac_ltlibobjs=
11241 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11242 # 1. Remove the extension, and $U if already installed.
11243 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11244 ac_i=`echo "$ac_i" | sed "$ac_script"`
11245 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11246 # will be set to the directory where LIBOBJS objects are built.
11247 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11248 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11249 done
11250 LIBOBJS=$ac_libobjs
11251
11252 LTLIBOBJS=$ac_ltlibobjs
11253
11254
11255
11256 : ${CONFIG_STATUS=./config.status}
11257 ac_clean_files_save=$ac_clean_files
11258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11259 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11260 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11261 cat >$CONFIG_STATUS <<_ACEOF
11262 #! $SHELL
11263 # Generated by $as_me.
11264 # Run this file to recreate the current configuration.
11265 # Compiler output produced by configure, useful for debugging
11266 # configure, is in config.log if it exists.
11267
11268 debug=false
11269 ac_cs_recheck=false
11270 ac_cs_silent=false
11271 SHELL=\${CONFIG_SHELL-$SHELL}
11272 _ACEOF
11273
11274 cat >>$CONFIG_STATUS <<\_ACEOF
11275 ## --------------------- ##
11276 ## M4sh Initialization. ##
11277 ## --------------------- ##
11278
11279 # Be more Bourne compatible
11280 DUALCASE=1; export DUALCASE # for MKS sh
11281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11282 emulate sh
11283 NULLCMD=:
11284 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11285 # is contrary to our usage. Disable this feature.
11286 alias -g '${1+"$@"}'='"$@"'
11287 setopt NO_GLOB_SUBST
11288 else
11289 case `(set -o) 2>/dev/null` in
11290 *posix*) set -o posix ;;
11291 esac
11292
11293 fi
11294
11295
11296
11297
11298 # PATH needs CR
11299 # Avoid depending upon Character Ranges.
11300 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11301 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11302 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11303 as_cr_digits='0123456789'
11304 as_cr_alnum=$as_cr_Letters$as_cr_digits
11305
11306 # The user is always right.
11307 if test "${PATH_SEPARATOR+set}" != set; then
11308 echo "#! /bin/sh" >conf$$.sh
11309 echo "exit 0" >>conf$$.sh
11310 chmod +x conf$$.sh
11311 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11312 PATH_SEPARATOR=';'
11313 else
11314 PATH_SEPARATOR=:
11315 fi
11316 rm -f conf$$.sh
11317 fi
11318
11319 # Support unset when possible.
11320 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11321 as_unset=unset
11322 else
11323 as_unset=false
11324 fi
11325
11326
11327 # IFS
11328 # We need space, tab and new line, in precisely that order. Quoting is
11329 # there to prevent editors from complaining about space-tab.
11330 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11331 # splitting by setting IFS to empty value.)
11332 as_nl='
11333 '
11334 IFS=" "" $as_nl"
11335
11336 # Find who we are. Look in the path if we contain no directory separator.
11337 case $0 in
11338 *[\\/]* ) as_myself=$0 ;;
11339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11341 do
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11345 done
11346 IFS=$as_save_IFS
11347
11348 ;;
11349 esac
11350 # We did not find ourselves, most probably we were run as `sh COMMAND'
11351 # in which case we are not to be found in the path.
11352 if test "x$as_myself" = x; then
11353 as_myself=$0
11354 fi
11355 if test ! -f "$as_myself"; then
11356 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11357 { (exit 1); exit 1; }
11358 fi
11359
11360 # Work around bugs in pre-3.0 UWIN ksh.
11361 for as_var in ENV MAIL MAILPATH
11362 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11363 done
11364 PS1='$ '
11365 PS2='> '
11366 PS4='+ '
11367
11368 # NLS nuisances.
11369 for as_var in \
11370 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11371 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11372 LC_TELEPHONE LC_TIME
11373 do
11374 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11375 eval $as_var=C; export $as_var
11376 else
11377 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11378 fi
11379 done
11380
11381 # Required to use basename.
11382 if expr a : '\(a\)' >/dev/null 2>&1 &&
11383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11384 as_expr=expr
11385 else
11386 as_expr=false
11387 fi
11388
11389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11390 as_basename=basename
11391 else
11392 as_basename=false
11393 fi
11394
11395
11396 # Name of the executable.
11397 as_me=`$as_basename -- "$0" ||
11398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11399 X"$0" : 'X\(//\)$' \| \
11400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11401 echo X/"$0" |
11402 sed '/^.*\/\([^/][^/]*\)\/*$/{
11403 s//\1/
11404 q
11405 }
11406 /^X\/\(\/\/\)$/{
11407 s//\1/
11408 q
11409 }
11410 /^X\/\(\/\).*/{
11411 s//\1/
11412 q
11413 }
11414 s/.*/./; q'`
11415
11416 # CDPATH.
11417 $as_unset CDPATH
11418
11419
11420
11421 as_lineno_1=$LINENO
11422 as_lineno_2=$LINENO
11423 test "x$as_lineno_1" != "x$as_lineno_2" &&
11424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11425
11426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11427 # uniformly replaced by the line number. The first 'sed' inserts a
11428 # line-number line after each line using $LINENO; the second 'sed'
11429 # does the real work. The second script uses 'N' to pair each
11430 # line-number line with the line containing $LINENO, and appends
11431 # trailing '-' during substitution so that $LINENO is not a special
11432 # case at line end.
11433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11434 # scripts with optimization help from Paolo Bonzini. Blame Lee
11435 # E. McMahon (1931-1989) for sed's syntax. :-)
11436 sed -n '
11437 p
11438 /[$]LINENO/=
11439 ' <$as_myself |
11440 sed '
11441 s/[$]LINENO.*/&-/
11442 t lineno
11443 b
11444 :lineno
11445 N
11446 :loop
11447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11448 t loop
11449 s/-\n.*//
11450 ' >$as_me.lineno &&
11451 chmod +x "$as_me.lineno" ||
11452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11453 { (exit 1); exit 1; }; }
11454
11455 # Don't try to exec as it changes $[0], causing all sort of problems
11456 # (the dirname of $[0] is not the place where we might find the
11457 # original and so on. Autoconf is especially sensitive to this).
11458 . "./$as_me.lineno"
11459 # Exit status is that of the last command.
11460 exit
11461 }
11462
11463
11464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11465 as_dirname=dirname
11466 else
11467 as_dirname=false
11468 fi
11469
11470 ECHO_C= ECHO_N= ECHO_T=
11471 case `echo -n x` in
11472 -n*)
11473 case `echo 'x\c'` in
11474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11475 *) ECHO_C='\c';;
11476 esac;;
11477 *)
11478 ECHO_N='-n';;
11479 esac
11480
11481 if expr a : '\(a\)' >/dev/null 2>&1 &&
11482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11483 as_expr=expr
11484 else
11485 as_expr=false
11486 fi
11487
11488 rm -f conf$$ conf$$.exe conf$$.file
11489 if test -d conf$$.dir; then
11490 rm -f conf$$.dir/conf$$.file
11491 else
11492 rm -f conf$$.dir
11493 mkdir conf$$.dir
11494 fi
11495 echo >conf$$.file
11496 if ln -s conf$$.file conf$$ 2>/dev/null; then
11497 as_ln_s='ln -s'
11498 # ... but there are two gotchas:
11499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11501 # In both cases, we have to default to `cp -p'.
11502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11503 as_ln_s='cp -p'
11504 elif ln conf$$.file conf$$ 2>/dev/null; then
11505 as_ln_s=ln
11506 else
11507 as_ln_s='cp -p'
11508 fi
11509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11510 rmdir conf$$.dir 2>/dev/null
11511
11512 if mkdir -p . 2>/dev/null; then
11513 as_mkdir_p=:
11514 else
11515 test -d ./-p && rmdir ./-p
11516 as_mkdir_p=false
11517 fi
11518
11519 if test -x / >/dev/null 2>&1; then
11520 as_test_x='test -x'
11521 else
11522 if ls -dL / >/dev/null 2>&1; then
11523 as_ls_L_option=L
11524 else
11525 as_ls_L_option=
11526 fi
11527 as_test_x='
11528 eval sh -c '\''
11529 if test -d "$1"; then
11530 test -d "$1/.";
11531 else
11532 case $1 in
11533 -*)set "./$1";;
11534 esac;
11535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11536 ???[sx]*):;;*)false;;esac;fi
11537 '\'' sh
11538 '
11539 fi
11540 as_executable_p=$as_test_x
11541
11542 # Sed expression to map a string onto a valid CPP name.
11543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11544
11545 # Sed expression to map a string onto a valid variable name.
11546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11547
11548
11549 exec 6>&1
11550
11551 # Save the log message, to keep $[0] and so on meaningful, and to
11552 # report actual input values of CONFIG_FILES etc. instead of their
11553 # values after options handling.
11554 ac_log="
11555 This file was extended by libnbcompat $as_me noversion, which was
11556 generated by GNU Autoconf 2.61. Invocation command line was
11557
11558 CONFIG_FILES = $CONFIG_FILES
11559 CONFIG_HEADERS = $CONFIG_HEADERS
11560 CONFIG_LINKS = $CONFIG_LINKS
11561 CONFIG_COMMANDS = $CONFIG_COMMANDS
11562 $ $0 $@
11563
11564 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11565 "
11566
11567 _ACEOF
11568
11569 cat >>$CONFIG_STATUS <<_ACEOF
11570 # Files that config.status was made for.
11571 config_files="$ac_config_files"
11572 config_headers="$ac_config_headers"
11573
11574 _ACEOF
11575
11576 cat >>$CONFIG_STATUS <<\_ACEOF
11577 ac_cs_usage="\
11578 \`$as_me' instantiates files from templates according to the
11579 current configuration.
11580
11581 Usage: $0 [OPTIONS] [FILE]...
11582
11583 -h, --help print this help, then exit
11584 -V, --version print version number and configuration settings, then exit
11585 -q, --quiet do not print progress messages
11586 -d, --debug don't remove temporary files
11587 --recheck update $as_me by reconfiguring in the same conditions
11588 --file=FILE[:TEMPLATE]
11589 instantiate the configuration file FILE
11590 --header=FILE[:TEMPLATE]
11591 instantiate the configuration header FILE
11592
11593 Configuration files:
11594 $config_files
11595
11596 Configuration headers:
11597 $config_headers
11598
11599 Report bugs to <bug-autoconf (at] gnu.org>."
11600
11601 _ACEOF
11602 cat >>$CONFIG_STATUS <<_ACEOF
11603 ac_cs_version="\\
11604 libnbcompat config.status noversion
11605 configured by $0, generated by GNU Autoconf 2.61,
11606 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11607
11608 Copyright (C) 2006 Free Software Foundation, Inc.
11609 This config.status script is free software; the Free Software Foundation
11610 gives unlimited permission to copy, distribute and modify it."
11611
11612 ac_pwd='$ac_pwd'
11613 srcdir='$srcdir'
11614 _ACEOF
11615
11616 cat >>$CONFIG_STATUS <<\_ACEOF
11617 # If no file are specified by the user, then we need to provide default
11618 # value. By we need to know if files were specified by the user.
11619 ac_need_defaults=:
11620 while test $# != 0
11621 do
11622 case $1 in
11623 --*=*)
11624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11626 ac_shift=:
11627 ;;
11628 *)
11629 ac_option=$1
11630 ac_optarg=$2
11631 ac_shift=shift
11632 ;;
11633 esac
11634
11635 case $ac_option in
11636 # Handling of the options.
11637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11638 ac_cs_recheck=: ;;
11639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11640 echo "$ac_cs_version"; exit ;;
11641 --debug | --debu | --deb | --de | --d | -d )
11642 debug=: ;;
11643 --file | --fil | --fi | --f )
11644 $ac_shift
11645 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11646 ac_need_defaults=false;;
11647 --header | --heade | --head | --hea )
11648 $ac_shift
11649 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11650 ac_need_defaults=false;;
11651 --he | --h)
11652 # Conflict between --help and --header
11653 { echo "$as_me: error: ambiguous option: $1
11654 Try \`$0 --help' for more information." >&2
11655 { (exit 1); exit 1; }; };;
11656 --help | --hel | -h )
11657 echo "$ac_cs_usage"; exit ;;
11658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11660 ac_cs_silent=: ;;
11661
11662 # This is an error.
11663 -*) { echo "$as_me: error: unrecognized option: $1
11664 Try \`$0 --help' for more information." >&2
11665 { (exit 1); exit 1; }; } ;;
11666
11667 *) ac_config_targets="$ac_config_targets $1"
11668 ac_need_defaults=false ;;
11669
11670 esac
11671 shift
11672 done
11673
11674 ac_configure_extra_args=
11675
11676 if $ac_cs_silent; then
11677 exec 6>/dev/null
11678 ac_configure_extra_args="$ac_configure_extra_args --silent"
11679 fi
11680
11681 _ACEOF
11682 cat >>$CONFIG_STATUS <<_ACEOF
11683 if \$ac_cs_recheck; then
11684 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11685 CONFIG_SHELL=$SHELL
11686 export CONFIG_SHELL
11687 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11688 fi
11689
11690 _ACEOF
11691 cat >>$CONFIG_STATUS <<\_ACEOF
11692 exec 5>>config.log
11693 {
11694 echo
11695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11696 ## Running $as_me. ##
11697 _ASBOX
11698 echo "$ac_log"
11699 } >&5
11700
11701 _ACEOF
11702 cat >>$CONFIG_STATUS <<_ACEOF
11703 _ACEOF
11704
11705 cat >>$CONFIG_STATUS <<\_ACEOF
11706
11707 # Handling of arguments.
11708 for ac_config_target in $ac_config_targets
11709 do
11710 case $ac_config_target in
11711 "nbtool_config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
11712 "defs.mk") CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
11713
11714 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11715 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11716 { (exit 1); exit 1; }; };;
11717 esac
11718 done
11719
11720
11721 # If the user did not use the arguments to specify the items to instantiate,
11722 # then the envvar interface is used. Set only those that are not.
11723 # We use the long form for the default assignment because of an extremely
11724 # bizarre bug on SunOS 4.1.3.
11725 if $ac_need_defaults; then
11726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11728 fi
11729
11730 # Have a temporary directory for convenience. Make it in the build tree
11731 # simply because there is no reason against having it here, and in addition,
11732 # creating and moving files from /tmp can sometimes cause problems.
11733 # Hook for its removal unless debugging.
11734 # Note that there is a small window in which the directory will not be cleaned:
11735 # after its creation but before its name has been assigned to `$tmp'.
11736 $debug ||
11737 {
11738 tmp=
11739 trap 'exit_status=$?
11740 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11741 ' 0
11742 trap '{ (exit 1); exit 1; }' 1 2 13 15
11743 }
11744 # Create a (secure) tmp directory for tmp files.
11745
11746 {
11747 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11748 test -n "$tmp" && test -d "$tmp"
11749 } ||
11750 {
11751 tmp=./conf$$-$RANDOM
11752 (umask 077 && mkdir "$tmp")
11753 } ||
11754 {
11755 echo "$me: cannot create a temporary directory in ." >&2
11756 { (exit 1); exit 1; }
11757 }
11758
11759 #
11760 # Set up the sed scripts for CONFIG_FILES section.
11761 #
11762
11763 # No need to generate the scripts if there are no CONFIG_FILES.
11764 # This happens for instance when ./config.status config.h
11765 if test -n "$CONFIG_FILES"; then
11766
11767 _ACEOF
11768
11769
11770
11771 ac_delim='%!_!# '
11772 for ac_last_try in false false false false false :; do
11773 cat >conf$$subs.sed <<_ACEOF
11774 SHELL!$SHELL$ac_delim
11775 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11776 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11777 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11778 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11779 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11780 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11781 exec_prefix!$exec_prefix$ac_delim
11782 prefix!$prefix$ac_delim
11783 program_transform_name!$program_transform_name$ac_delim
11784 bindir!$bindir$ac_delim
11785 sbindir!$sbindir$ac_delim
11786 libexecdir!$libexecdir$ac_delim
11787 datarootdir!$datarootdir$ac_delim
11788 datadir!$datadir$ac_delim
11789 sysconfdir!$sysconfdir$ac_delim
11790 sharedstatedir!$sharedstatedir$ac_delim
11791 localstatedir!$localstatedir$ac_delim
11792 includedir!$includedir$ac_delim
11793 oldincludedir!$oldincludedir$ac_delim
11794 docdir!$docdir$ac_delim
11795 infodir!$infodir$ac_delim
11796 htmldir!$htmldir$ac_delim
11797 dvidir!$dvidir$ac_delim
11798 pdfdir!$pdfdir$ac_delim
11799 psdir!$psdir$ac_delim
11800 libdir!$libdir$ac_delim
11801 localedir!$localedir$ac_delim
11802 mandir!$mandir$ac_delim
11803 DEFS!$DEFS$ac_delim
11804 ECHO_C!$ECHO_C$ac_delim
11805 ECHO_N!$ECHO_N$ac_delim
11806 ECHO_T!$ECHO_T$ac_delim
11807 LIBS!$LIBS$ac_delim
11808 build_alias!$build_alias$ac_delim
11809 host_alias!$host_alias$ac_delim
11810 target_alias!$target_alias$ac_delim
11811 CC!$CC$ac_delim
11812 CFLAGS!$CFLAGS$ac_delim
11813 LDFLAGS!$LDFLAGS$ac_delim
11814 CPPFLAGS!$CPPFLAGS$ac_delim
11815 ac_ct_CC!$ac_ct_CC$ac_delim
11816 EXEEXT!$EXEEXT$ac_delim
11817 OBJEXT!$OBJEXT$ac_delim
11818 CPP!$CPP$ac_delim
11819 GREP!$GREP$ac_delim
11820 EGREP!$EGREP$ac_delim
11821 BSHELL!$BSHELL$ac_delim
11822 ALLOCA!$ALLOCA$ac_delim
11823 LIBOBJS!$LIBOBJS$ac_delim
11824 LTLIBOBJS!$LTLIBOBJS$ac_delim
11825 _ACEOF
11826
11827 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
11828 break
11829 elif $ac_last_try; then
11830 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11831 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11832 { (exit 1); exit 1; }; }
11833 else
11834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11835 fi
11836 done
11837
11838 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11839 if test -n "$ac_eof"; then
11840 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11841 ac_eof=`expr $ac_eof + 1`
11842 fi
11843
11844 cat >>$CONFIG_STATUS <<_ACEOF
11845 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11846 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11847 _ACEOF
11848 sed '
11849 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11850 s/^/s,@/; s/!/@,|#_!!_#|/
11851 :n
11852 t n
11853 s/'"$ac_delim"'$/,g/; t
11854 s/$/\\/; p
11855 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11856 ' >>$CONFIG_STATUS <conf$$subs.sed
11857 rm -f conf$$subs.sed
11858 cat >>$CONFIG_STATUS <<_ACEOF
11859 :end
11860 s/|#_!!_#|//g
11861 CEOF$ac_eof
11862 _ACEOF
11863
11864
11865 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11866 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11867 # trailing colons and then remove the whole line if VPATH becomes empty
11868 # (actually we leave an empty line to preserve line numbers).
11869 if test "x$srcdir" = x.; then
11870 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11871 s/:*\$(srcdir):*/:/
11872 s/:*\${srcdir}:*/:/
11873 s/:*@srcdir@:*/:/
11874 s/^\([^=]*=[ ]*\):*/\1/
11875 s/:*$//
11876 s/^[^=]*=[ ]*$//
11877 }'
11878 fi
11879
11880 cat >>$CONFIG_STATUS <<\_ACEOF
11881 fi # test -n "$CONFIG_FILES"
11882
11883
11884 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11885 do
11886 case $ac_tag in
11887 :[FHLC]) ac_mode=$ac_tag; continue;;
11888 esac
11889 case $ac_mode$ac_tag in
11890 :[FHL]*:*);;
11891 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11892 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11893 { (exit 1); exit 1; }; };;
11894 :[FH]-) ac_tag=-:-;;
11895 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11896 esac
11897 ac_save_IFS=$IFS
11898 IFS=:
11899 set x $ac_tag
11900 IFS=$ac_save_IFS
11901 shift
11902 ac_file=$1
11903 shift
11904
11905 case $ac_mode in
11906 :L) ac_source=$1;;
11907 :[FH])
11908 ac_file_inputs=
11909 for ac_f
11910 do
11911 case $ac_f in
11912 -) ac_f="$tmp/stdin";;
11913 *) # Look for the file first in the build tree, then in the source tree
11914 # (if the path is not absolute). The absolute path cannot be DOS-style,
11915 # because $ac_f cannot contain `:'.
11916 test -f "$ac_f" ||
11917 case $ac_f in
11918 [\\/$]*) false;;
11919 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11920 esac ||
11921 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11922 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11923 { (exit 1); exit 1; }; };;
11924 esac
11925 ac_file_inputs="$ac_file_inputs $ac_f"
11926 done
11927
11928 # Let's still pretend it is `configure' which instantiates (i.e., don't
11929 # use $as_me), people would be surprised to read:
11930 # /* config.h. Generated by config.status. */
11931 configure_input="Generated from "`IFS=:
11932 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11933 if test x"$ac_file" != x-; then
11934 configure_input="$ac_file. $configure_input"
11935 { echo "$as_me:$LINENO: creating $ac_file" >&5
11936 echo "$as_me: creating $ac_file" >&6;}
11937 fi
11938
11939 case $ac_tag in
11940 *:-:* | *:-) cat >"$tmp/stdin";;
11941 esac
11942 ;;
11943 esac
11944
11945 ac_dir=`$as_dirname -- "$ac_file" ||
11946 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11947 X"$ac_file" : 'X\(//\)[^/]' \| \
11948 X"$ac_file" : 'X\(//\)$' \| \
11949 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11950 echo X"$ac_file" |
11951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11952 s//\1/
11953 q
11954 }
11955 /^X\(\/\/\)[^/].*/{
11956 s//\1/
11957 q
11958 }
11959 /^X\(\/\/\)$/{
11960 s//\1/
11961 q
11962 }
11963 /^X\(\/\).*/{
11964 s//\1/
11965 q
11966 }
11967 s/.*/./; q'`
11968 { as_dir="$ac_dir"
11969 case $as_dir in #(
11970 -*) as_dir=./$as_dir;;
11971 esac
11972 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11973 as_dirs=
11974 while :; do
11975 case $as_dir in #(
11976 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11977 *) as_qdir=$as_dir;;
11978 esac
11979 as_dirs="'$as_qdir' $as_dirs"
11980 as_dir=`$as_dirname -- "$as_dir" ||
11981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11982 X"$as_dir" : 'X\(//\)[^/]' \| \
11983 X"$as_dir" : 'X\(//\)$' \| \
11984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11985 echo X"$as_dir" |
11986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11987 s//\1/
11988 q
11989 }
11990 /^X\(\/\/\)[^/].*/{
11991 s//\1/
11992 q
11993 }
11994 /^X\(\/\/\)$/{
11995 s//\1/
11996 q
11997 }
11998 /^X\(\/\).*/{
11999 s//\1/
12000 q
12001 }
12002 s/.*/./; q'`
12003 test -d "$as_dir" && break
12004 done
12005 test -z "$as_dirs" || eval "mkdir $as_dirs"
12006 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12007 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12008 { (exit 1); exit 1; }; }; }
12009 ac_builddir=.
12010
12011 case "$ac_dir" in
12012 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12013 *)
12014 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12015 # A ".." for each directory in $ac_dir_suffix.
12016 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12017 case $ac_top_builddir_sub in
12018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12020 esac ;;
12021 esac
12022 ac_abs_top_builddir=$ac_pwd
12023 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12024 # for backward compatibility:
12025 ac_top_builddir=$ac_top_build_prefix
12026
12027 case $srcdir in
12028 .) # We are building in place.
12029 ac_srcdir=.
12030 ac_top_srcdir=$ac_top_builddir_sub
12031 ac_abs_top_srcdir=$ac_pwd ;;
12032 [\\/]* | ?:[\\/]* ) # Absolute name.
12033 ac_srcdir=$srcdir$ac_dir_suffix;
12034 ac_top_srcdir=$srcdir
12035 ac_abs_top_srcdir=$srcdir ;;
12036 *) # Relative name.
12037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12038 ac_top_srcdir=$ac_top_build_prefix$srcdir
12039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12040 esac
12041 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12042
12043
12044 case $ac_mode in
12045 :F)
12046 #
12047 # CONFIG_FILE
12048 #
12049
12050 _ACEOF
12051
12052 cat >>$CONFIG_STATUS <<\_ACEOF
12053 # If the template does not know about datarootdir, expand it.
12054 # FIXME: This hack should be removed a few years after 2.60.
12055 ac_datarootdir_hack=; ac_datarootdir_seen=
12056
12057 case `sed -n '/datarootdir/ {
12058 p
12059 q
12060 }
12061 /@datadir@/p
12062 /@docdir@/p
12063 /@infodir@/p
12064 /@localedir@/p
12065 /@mandir@/p
12066 ' $ac_file_inputs` in
12067 *datarootdir*) ac_datarootdir_seen=yes;;
12068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12069 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12070 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12071 _ACEOF
12072 cat >>$CONFIG_STATUS <<_ACEOF
12073 ac_datarootdir_hack='
12074 s&@datadir@&$datadir&g
12075 s&@docdir@&$docdir&g
12076 s&@infodir@&$infodir&g
12077 s&@localedir@&$localedir&g
12078 s&@mandir@&$mandir&g
12079 s&\\\${datarootdir}&$datarootdir&g' ;;
12080 esac
12081 _ACEOF
12082
12083 # Neutralize VPATH when `$srcdir' = `.'.
12084 # Shell code in configure.ac might set extrasub.
12085 # FIXME: do we really want to maintain this feature?
12086 cat >>$CONFIG_STATUS <<_ACEOF
12087 sed "$ac_vpsub
12088 $extrasub
12089 _ACEOF
12090 cat >>$CONFIG_STATUS <<\_ACEOF
12091 :t
12092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12093 s&@configure_input@&$configure_input&;t t
12094 s&@top_builddir@&$ac_top_builddir_sub&;t t
12095 s&@srcdir@&$ac_srcdir&;t t
12096 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12097 s&@top_srcdir@&$ac_top_srcdir&;t t
12098 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12099 s&@builddir@&$ac_builddir&;t t
12100 s&@abs_builddir@&$ac_abs_builddir&;t t
12101 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12102 $ac_datarootdir_hack
12103 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12104
12105 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12106 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12108 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12109 which seems to be undefined. Please make sure it is defined." >&5
12110 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12111 which seems to be undefined. Please make sure it is defined." >&2;}
12112
12113 rm -f "$tmp/stdin"
12114 case $ac_file in
12115 -) cat "$tmp/out"; rm -f "$tmp/out";;
12116 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12117 esac
12118 ;;
12119 :H)
12120 #
12121 # CONFIG_HEADER
12122 #
12123 _ACEOF
12124
12125 # Transform confdefs.h into a sed script `conftest.defines', that
12126 # substitutes the proper values into config.h.in to produce config.h.
12127 rm -f conftest.defines conftest.tail
12128 # First, append a space to every undef/define line, to ease matching.
12129 echo 's/$/ /' >conftest.defines
12130 # Then, protect against being on the right side of a sed subst, or in
12131 # an unquoted here document, in config.status. If some macros were
12132 # called several times there might be several #defines for the same
12133 # symbol, which is useless. But do not sort them, since the last
12134 # AC_DEFINE must be honored.
12135 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12136 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12137 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12138 # PARAMS is the parameter list in the macro definition--in most cases, it's
12139 # just an empty string.
12140 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12141 ac_dB='\\)[ (].*,\\1define\\2'
12142 ac_dC=' '
12143 ac_dD=' ,'
12144
12145 uniq confdefs.h |
12146 sed -n '
12147 t rset
12148 :rset
12149 s/^[ ]*#[ ]*define[ ][ ]*//
12150 t ok
12151 d
12152 :ok
12153 s/[\\&,]/\\&/g
12154 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12155 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12156 ' >>conftest.defines
12157
12158 # Remove the space that was appended to ease matching.
12159 # Then replace #undef with comments. This is necessary, for
12160 # example, in the case of _POSIX_SOURCE, which is predefined and required
12161 # on some systems where configure will not decide to define it.
12162 # (The regexp can be short, since the line contains either #define or #undef.)
12163 echo 's/ $//
12164 s,^[ #]*u.*,/* & */,' >>conftest.defines
12165
12166 # Break up conftest.defines:
12167 ac_max_sed_lines=50
12168
12169 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12170 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12171 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12172 # et cetera.
12173 ac_in='$ac_file_inputs'
12174 ac_out='"$tmp/out1"'
12175 ac_nxt='"$tmp/out2"'
12176
12177 while :
12178 do
12179 # Write a here document:
12180 cat >>$CONFIG_STATUS <<_ACEOF
12181 # First, check the format of the line:
12182 cat >"\$tmp/defines.sed" <<\\CEOF
12183 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12184 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12185 b
12186 :def
12187 _ACEOF
12188 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12189 echo 'CEOF
12190 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12191 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12192 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12193 grep . conftest.tail >/dev/null || break
12194 rm -f conftest.defines
12195 mv conftest.tail conftest.defines
12196 done
12197 rm -f conftest.defines conftest.tail
12198
12199 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12200 cat >>$CONFIG_STATUS <<\_ACEOF
12201 if test x"$ac_file" != x-; then
12202 echo "/* $configure_input */" >"$tmp/config.h"
12203 cat "$ac_result" >>"$tmp/config.h"
12204 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12205 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12206 echo "$as_me: $ac_file is unchanged" >&6;}
12207 else
12208 rm -f $ac_file
12209 mv "$tmp/config.h" $ac_file
12210 fi
12211 else
12212 echo "/* $configure_input */"
12213 cat "$ac_result"
12214 fi
12215 rm -f "$tmp/out12"
12216 ;;
12217
12218
12219 esac
12220
12221 done # for ac_tag
12222
12223
12224 { (exit 0); exit 0; }
12225 _ACEOF
12226 chmod +x $CONFIG_STATUS
12227 ac_clean_files=$ac_clean_files_save
12228
12229
12230 # configure is writing to config.log, and then calls config.status.
12231 # config.status does its own redirection, appending to config.log.
12232 # Unfortunately, on DOS this fails, as config.log is still kept open
12233 # by configure, so config.status won't be able to write to it; its
12234 # output is simply discarded. So we exec the FD to /dev/null,
12235 # effectively closing config.log, so it can be properly (re)opened and
12236 # appended to by config.status. When coming back to configure, we
12237 # need to make the FD available again.
12238 if test "$no_create" != yes; then
12239 ac_cs_success=:
12240 ac_config_status_args=
12241 test "$silent" = yes &&
12242 ac_config_status_args="$ac_config_status_args --quiet"
12243 exec 5>/dev/null
12244 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12245 exec 5>>config.log
12246 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12247 # would make configure fail if this is the last instruction.
12248 $ac_cs_success || { (exit 1); exit 1; }
12249 fi
12250
12251