configure revision 1.54
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libnbcompat noversion.
4#
5# Report bugs to <lib-bug-people@NetBSD.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='libnbcompat'
271PACKAGE_TARNAME='libnbcompat'
272PACKAGE_VERSION='noversion'
273PACKAGE_STRING='libnbcompat noversion'
274PACKAGE_BUGREPORT='lib-bug-people@NetBSD.org'
275
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290#  include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295#  include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306#  include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP BSHELL ALLOCA LIBOBJS LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357  # If the previous option needs an argument, assign it.
358  if test -n "$ac_prev"; then
359    eval "$ac_prev=\$ac_option"
360    ac_prev=
361    continue
362  fi
363
364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366  # Accept the important Cygnus configure options, so we can diagnose typos.
367
368  case $ac_option in
369
370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371    ac_prev=bindir ;;
372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373    bindir=$ac_optarg ;;
374
375  -build | --build | --buil | --bui | --bu)
376    ac_prev=build_alias ;;
377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378    build_alias=$ac_optarg ;;
379
380  -cache-file | --cache-file | --cache-fil | --cache-fi \
381  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382    ac_prev=cache_file ;;
383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385    cache_file=$ac_optarg ;;
386
387  --config-cache | -C)
388    cache_file=config.cache ;;
389
390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391    ac_prev=datadir ;;
392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393  | --da=*)
394    datadir=$ac_optarg ;;
395
396  -disable-* | --disable-*)
397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398    # Reject names that are not valid shell variable names.
399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401   { (exit 1); exit 1; }; }
402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403    eval "enable_$ac_feature=no" ;;
404
405  -enable-* | --enable-*)
406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407    # Reject names that are not valid shell variable names.
408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    case $ac_option in
413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414      *) ac_optarg=yes ;;
415    esac
416    eval "enable_$ac_feature='$ac_optarg'" ;;
417
418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420  | --exec | --exe | --ex)
421    ac_prev=exec_prefix ;;
422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424  | --exec=* | --exe=* | --ex=*)
425    exec_prefix=$ac_optarg ;;
426
427  -gas | --gas | --ga | --g)
428    # Obsolete; use --with-gas.
429    with_gas=yes ;;
430
431  -help | --help | --hel | --he | -h)
432    ac_init_help=long ;;
433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434    ac_init_help=recursive ;;
435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436    ac_init_help=short ;;
437
438  -host | --host | --hos | --ho)
439    ac_prev=host_alias ;;
440  -host=* | --host=* | --hos=* | --ho=*)
441    host_alias=$ac_optarg ;;
442
443  -includedir | --includedir | --includedi | --included | --include \
444  | --includ | --inclu | --incl | --inc)
445    ac_prev=includedir ;;
446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447  | --includ=* | --inclu=* | --incl=* | --inc=*)
448    includedir=$ac_optarg ;;
449
450  -infodir | --infodir | --infodi | --infod | --info | --inf)
451    ac_prev=infodir ;;
452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453    infodir=$ac_optarg ;;
454
455  -libdir | --libdir | --libdi | --libd)
456    ac_prev=libdir ;;
457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458    libdir=$ac_optarg ;;
459
460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461  | --libexe | --libex | --libe)
462    ac_prev=libexecdir ;;
463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464  | --libexe=* | --libex=* | --libe=*)
465    libexecdir=$ac_optarg ;;
466
467  -localstatedir | --localstatedir | --localstatedi | --localstated \
468  | --localstate | --localstat | --localsta | --localst \
469  | --locals | --local | --loca | --loc | --lo)
470    ac_prev=localstatedir ;;
471  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474    localstatedir=$ac_optarg ;;
475
476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477    ac_prev=mandir ;;
478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479    mandir=$ac_optarg ;;
480
481  -nfp | --nfp | --nf)
482    # Obsolete; use --without-fp.
483    with_fp=no ;;
484
485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486  | --no-cr | --no-c | -n)
487    no_create=yes ;;
488
489  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491    no_recursion=yes ;;
492
493  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495  | --oldin | --oldi | --old | --ol | --o)
496    ac_prev=oldincludedir ;;
497  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500    oldincludedir=$ac_optarg ;;
501
502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503    ac_prev=prefix ;;
504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505    prefix=$ac_optarg ;;
506
507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508  | --program-pre | --program-pr | --program-p)
509    ac_prev=program_prefix ;;
510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512    program_prefix=$ac_optarg ;;
513
514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515  | --program-suf | --program-su | --program-s)
516    ac_prev=program_suffix ;;
517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519    program_suffix=$ac_optarg ;;
520
521  -program-transform-name | --program-transform-name \
522  | --program-transform-nam | --program-transform-na \
523  | --program-transform-n | --program-transform- \
524  | --program-transform | --program-transfor \
525  | --program-transfo | --program-transf \
526  | --program-trans | --program-tran \
527  | --progr-tra | --program-tr | --program-t)
528    ac_prev=program_transform_name ;;
529  -program-transform-name=* | --program-transform-name=* \
530  | --program-transform-nam=* | --program-transform-na=* \
531  | --program-transform-n=* | --program-transform-=* \
532  | --program-transform=* | --program-transfor=* \
533  | --program-transfo=* | --program-transf=* \
534  | --program-trans=* | --program-tran=* \
535  | --progr-tra=* | --program-tr=* | --program-t=*)
536    program_transform_name=$ac_optarg ;;
537
538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539  | -silent | --silent | --silen | --sile | --sil)
540    silent=yes ;;
541
542  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543    ac_prev=sbindir ;;
544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545  | --sbi=* | --sb=*)
546    sbindir=$ac_optarg ;;
547
548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550  | --sharedst | --shareds | --shared | --share | --shar \
551  | --sha | --sh)
552    ac_prev=sharedstatedir ;;
553  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556  | --sha=* | --sh=*)
557    sharedstatedir=$ac_optarg ;;
558
559  -site | --site | --sit)
560    ac_prev=site ;;
561  -site=* | --site=* | --sit=*)
562    site=$ac_optarg ;;
563
564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565    ac_prev=srcdir ;;
566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567    srcdir=$ac_optarg ;;
568
569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570  | --syscon | --sysco | --sysc | --sys | --sy)
571    ac_prev=sysconfdir ;;
572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574    sysconfdir=$ac_optarg ;;
575
576  -target | --target | --targe | --targ | --tar | --ta | --t)
577    ac_prev=target_alias ;;
578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579    target_alias=$ac_optarg ;;
580
581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582    verbose=yes ;;
583
584  -version | --version | --versio | --versi | --vers | -V)
585    ac_init_version=: ;;
586
587  -with-* | --with-*)
588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589    # Reject names that are not valid shell variable names.
590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591      { echo "$as_me: error: invalid package name: $ac_package" >&2
592   { (exit 1); exit 1; }; }
593    ac_package=`echo $ac_package| sed 's/-/_/g'`
594    case $ac_option in
595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596      *) ac_optarg=yes ;;
597    esac
598    eval "with_$ac_package='$ac_optarg'" ;;
599
600  -without-* | --without-*)
601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602    # Reject names that are not valid shell variable names.
603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604      { echo "$as_me: error: invalid package name: $ac_package" >&2
605   { (exit 1); exit 1; }; }
606    ac_package=`echo $ac_package | sed 's/-/_/g'`
607    eval "with_$ac_package=no" ;;
608
609  --x)
610    # Obsolete; use --with-x.
611    with_x=yes ;;
612
613  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614  | --x-incl | --x-inc | --x-in | --x-i)
615    ac_prev=x_includes ;;
616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618    x_includes=$ac_optarg ;;
619
620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622    ac_prev=x_libraries ;;
623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625    x_libraries=$ac_optarg ;;
626
627  -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629   { (exit 1); exit 1; }; }
630    ;;
631
632  *=*)
633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634    # Reject names that are not valid shell variable names.
635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637   { (exit 1); exit 1; }; }
638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639    eval "$ac_envvar='$ac_optarg'"
640    export $ac_envvar ;;
641
642  *)
643    # FIXME: should be removed in autoconf 3.0.
644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648    ;;
649
650  esac
651done
652
653if test -n "$ac_prev"; then
654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655  { echo "$as_me: error: missing argument to $ac_option" >&2
656   { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662  eval ac_val=$`echo $ac_var`
663  case $ac_val in
664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666   { (exit 1); exit 1; }; };;
667  esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672	      localstatedir libdir includedir oldincludedir infodir mandir
673do
674  eval ac_val=$`echo $ac_var`
675  case $ac_val in
676    [\\/$]* | ?:[\\/]* ) ;;
677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678   { (exit 1); exit 1; }; };;
679  esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691  if test "x$build_alias" = x; then
692    cross_compiling=maybe
693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694    If a cross compiler is detected then cross compile mode will be used." >&2
695  elif test "x$build_alias" != "x$host_alias"; then
696    cross_compiling=yes
697  fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708  ac_srcdir_defaulted=yes
709  # Try the directory containing this script, then its parent.
710  ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712	 X"$0" : 'X\(//\)[^/]' \| \
713	 X"$0" : 'X\(//\)$' \| \
714	 X"$0" : 'X\(/\)' \| \
715	 .     : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719  	  /^X\(\/\/\)$/{ s//\1/; q; }
720  	  /^X\(\/\).*/{ s//\1/; q; }
721  	  s/.*/./; q'`
722  srcdir=$ac_confdir
723  if test ! -r $srcdir/$ac_unique_file; then
724    srcdir=..
725  fi
726else
727  ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730  if test "$ac_srcdir_defaulted" = yes; then
731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732   { (exit 1); exit 1; }; }
733  else
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735   { (exit 1); exit 1; }; }
736  fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740   { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779  # Omit some internal or obsolete options to make the list less imposing.
780  # This message is too long to be a string in the A/UX 3.1 sh.
781  cat <<_ACEOF
782\`configure' configures libnbcompat noversion to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792  -h, --help              display this help and exit
793      --help=short        display options specific to this package
794      --help=recursive    display the short help of all the included packages
795  -V, --version           display version information and exit
796  -q, --quiet, --silent   do not print \`checking...' messages
797      --cache-file=FILE   cache test results in FILE [disabled]
798  -C, --config-cache      alias for \`--cache-file=config.cache'
799  -n, --no-create         do not create output files
800      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804  cat <<_ACEOF
805Installation directories:
806  --prefix=PREFIX         install architecture-independent files in PREFIX
807			  [$ac_default_prefix]
808  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809			  [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819  --bindir=DIR           user executables [EPREFIX/bin]
820  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821  --libexecdir=DIR       program executables [EPREFIX/libexec]
822  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826  --libdir=DIR           object code libraries [EPREFIX/lib]
827  --includedir=DIR       C header files [PREFIX/include]
828  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829  --infodir=DIR          info documentation [PREFIX/info]
830  --mandir=DIR           man documentation [PREFIX/man]
831_ACEOF
832
833  cat <<\_ACEOF
834_ACEOF
835fi
836
837if test -n "$ac_init_help"; then
838  case $ac_init_help in
839     short | recursive ) echo "Configuration of libnbcompat noversion:";;
840   esac
841  cat <<\_ACEOF
842
843Some influential environment variables:
844  CC          C compiler command
845  CFLAGS      C compiler flags
846  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
847              nonstandard directory <lib dir>
848  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
849              headers in a nonstandard directory <include dir>
850  CPP         C preprocessor
851
852Use these variables to override the choices made by `configure' or to help
853it to find libraries and programs with nonstandard names/locations.
854
855Report bugs to <lib-bug-people@NetBSD.org>.
856_ACEOF
857fi
858
859if test "$ac_init_help" = "recursive"; then
860  # If there are subdirs, report their specific --help.
861  ac_popdir=`pwd`
862  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
863    test -d $ac_dir || continue
864    ac_builddir=.
865
866if test "$ac_dir" != .; then
867  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
868  # A "../" for each directory in $ac_dir_suffix.
869  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
870else
871  ac_dir_suffix= ac_top_builddir=
872fi
873
874case $srcdir in
875  .)  # No --srcdir option.  We are building in place.
876    ac_srcdir=.
877    if test -z "$ac_top_builddir"; then
878       ac_top_srcdir=.
879    else
880       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
881    fi ;;
882  [\\/]* | ?:[\\/]* )  # Absolute path.
883    ac_srcdir=$srcdir$ac_dir_suffix;
884    ac_top_srcdir=$srcdir ;;
885  *) # Relative path.
886    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
887    ac_top_srcdir=$ac_top_builddir$srcdir ;;
888esac
889
890# Do not use `cd foo && pwd` to compute absolute paths, because
891# the directories may not exist.
892case `pwd` in
893.) ac_abs_builddir="$ac_dir";;
894*)
895  case "$ac_dir" in
896  .) ac_abs_builddir=`pwd`;;
897  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
898  *) ac_abs_builddir=`pwd`/"$ac_dir";;
899  esac;;
900esac
901case $ac_abs_builddir in
902.) ac_abs_top_builddir=${ac_top_builddir}.;;
903*)
904  case ${ac_top_builddir}. in
905  .) ac_abs_top_builddir=$ac_abs_builddir;;
906  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
907  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
908  esac;;
909esac
910case $ac_abs_builddir in
911.) ac_abs_srcdir=$ac_srcdir;;
912*)
913  case $ac_srcdir in
914  .) ac_abs_srcdir=$ac_abs_builddir;;
915  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
916  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
917  esac;;
918esac
919case $ac_abs_builddir in
920.) ac_abs_top_srcdir=$ac_top_srcdir;;
921*)
922  case $ac_top_srcdir in
923  .) ac_abs_top_srcdir=$ac_abs_builddir;;
924  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
925  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
926  esac;;
927esac
928
929    cd $ac_dir
930    # Check for guested configure; otherwise get Cygnus style configure.
931    if test -f $ac_srcdir/configure.gnu; then
932      echo
933      $SHELL $ac_srcdir/configure.gnu  --help=recursive
934    elif test -f $ac_srcdir/configure; then
935      echo
936      $SHELL $ac_srcdir/configure  --help=recursive
937    elif test -f $ac_srcdir/configure.ac ||
938	   test -f $ac_srcdir/configure.in; then
939      echo
940      $ac_configure --help
941    else
942      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943    fi
944    cd $ac_popdir
945  done
946fi
947
948test -n "$ac_init_help" && exit 0
949if $ac_init_version; then
950  cat <<\_ACEOF
951libnbcompat configure noversion
952generated by GNU Autoconf 2.59
953
954Copyright (C) 2003 Free Software Foundation, Inc.
955This configure script is free software; the Free Software Foundation
956gives unlimited permission to copy, distribute and modify it.
957_ACEOF
958  exit 0
959fi
960exec 5>config.log
961cat >&5 <<_ACEOF
962This file contains any messages produced by compilers while
963running configure, to aid debugging if configure makes a mistake.
964
965It was created by libnbcompat $as_me noversion, which was
966generated by GNU Autoconf 2.59.  Invocation command line was
967
968  $ $0 $@
969
970_ACEOF
971{
972cat <<_ASUNAME
973## --------- ##
974## Platform. ##
975## --------- ##
976
977hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978uname -m = `(uname -m) 2>/dev/null || echo unknown`
979uname -r = `(uname -r) 2>/dev/null || echo unknown`
980uname -s = `(uname -s) 2>/dev/null || echo unknown`
981uname -v = `(uname -v) 2>/dev/null || echo unknown`
982
983/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
985
986/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
987/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
988/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
990/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
991/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
992/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
993
994_ASUNAME
995
996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997for as_dir in $PATH
998do
999  IFS=$as_save_IFS
1000  test -z "$as_dir" && as_dir=.
1001  echo "PATH: $as_dir"
1002done
1003
1004} >&5
1005
1006cat >&5 <<_ACEOF
1007
1008
1009## ----------- ##
1010## Core tests. ##
1011## ----------- ##
1012
1013_ACEOF
1014
1015
1016# Keep a trace of the command line.
1017# Strip out --no-create and --no-recursion so they do not pile up.
1018# Strip out --silent because we don't want to record it for future runs.
1019# Also quote any args containing shell meta-characters.
1020# Make two passes to allow for proper duplicate-argument suppression.
1021ac_configure_args=
1022ac_configure_args0=
1023ac_configure_args1=
1024ac_sep=
1025ac_must_keep_next=false
1026for ac_pass in 1 2
1027do
1028  for ac_arg
1029  do
1030    case $ac_arg in
1031    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033    | -silent | --silent | --silen | --sile | --sil)
1034      continue ;;
1035    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037    esac
1038    case $ac_pass in
1039    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040    2)
1041      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042      if test $ac_must_keep_next = true; then
1043	ac_must_keep_next=false # Got value, back to normal.
1044      else
1045	case $ac_arg in
1046	  *=* | --config-cache | -C | -disable-* | --disable-* \
1047	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049	  | -with-* | --with-* | -without-* | --without-* | --x)
1050	    case "$ac_configure_args0 " in
1051	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052	    esac
1053	    ;;
1054	  -* ) ac_must_keep_next=true ;;
1055	esac
1056      fi
1057      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058      # Get rid of the leading space.
1059      ac_sep=" "
1060      ;;
1061    esac
1062  done
1063done
1064$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066
1067# When interrupted or exit'd, cleanup temporary files, and complete
1068# config.log.  We remove comments because anyway the quotes in there
1069# would cause problems or look ugly.
1070# WARNING: Be sure not to use single quotes in there, as some shells,
1071# such as our DU 5.0 friend, will then `close' the trap.
1072trap 'exit_status=$?
1073  # Save into config.log some information that might help in debugging.
1074  {
1075    echo
1076
1077    cat <<\_ASBOX
1078## ---------------- ##
1079## Cache variables. ##
1080## ---------------- ##
1081_ASBOX
1082    echo
1083    # The following way of writing the cache mishandles newlines in values,
1084{
1085  (set) 2>&1 |
1086    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087    *ac_space=\ *)
1088      sed -n \
1089	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1091      ;;
1092    *)
1093      sed -n \
1094	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095      ;;
1096    esac;
1097}
1098    echo
1099
1100    cat <<\_ASBOX
1101## ----------------- ##
1102## Output variables. ##
1103## ----------------- ##
1104_ASBOX
1105    echo
1106    for ac_var in $ac_subst_vars
1107    do
1108      eval ac_val=$`echo $ac_var`
1109      echo "$ac_var='"'"'$ac_val'"'"'"
1110    done | sort
1111    echo
1112
1113    if test -n "$ac_subst_files"; then
1114      cat <<\_ASBOX
1115## ------------- ##
1116## Output files. ##
1117## ------------- ##
1118_ASBOX
1119      echo
1120      for ac_var in $ac_subst_files
1121      do
1122	eval ac_val=$`echo $ac_var`
1123	echo "$ac_var='"'"'$ac_val'"'"'"
1124      done | sort
1125      echo
1126    fi
1127
1128    if test -s confdefs.h; then
1129      cat <<\_ASBOX
1130## ----------- ##
1131## confdefs.h. ##
1132## ----------- ##
1133_ASBOX
1134      echo
1135      sed "/^$/d" confdefs.h | sort
1136      echo
1137    fi
1138    test "$ac_signal" != 0 &&
1139      echo "$as_me: caught signal $ac_signal"
1140    echo "$as_me: exit $exit_status"
1141  } >&5
1142  rm -f core *.core &&
1143  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144    exit $exit_status
1145     ' 0
1146for ac_signal in 1 2 13 15; do
1147  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148done
1149ac_signal=0
1150
1151# confdefs.h avoids OS command line length limits that DEFS can exceed.
1152rm -rf conftest* confdefs.h
1153# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154echo >confdefs.h
1155
1156# Predefined preprocessor variables.
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_NAME "$PACKAGE_NAME"
1160_ACEOF
1161
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165_ACEOF
1166
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_VERSION "$PACKAGE_VERSION"
1170_ACEOF
1171
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_STRING "$PACKAGE_STRING"
1175_ACEOF
1176
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180_ACEOF
1181
1182
1183# Let the site file select an alternate cache file if it wants to.
1184# Prefer explicitly selected file to automatically selected ones.
1185if test -z "$CONFIG_SITE"; then
1186  if test "x$prefix" != xNONE; then
1187    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188  else
1189    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1190  fi
1191fi
1192for ac_site_file in $CONFIG_SITE; do
1193  if test -r "$ac_site_file"; then
1194    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195echo "$as_me: loading site script $ac_site_file" >&6;}
1196    sed 's/^/| /' "$ac_site_file" >&5
1197    . "$ac_site_file"
1198  fi
1199done
1200
1201if test -r "$cache_file"; then
1202  # Some versions of bash will fail to source /dev/null (special
1203  # files actually), so we avoid doing that.
1204  if test -f "$cache_file"; then
1205    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206echo "$as_me: loading cache $cache_file" >&6;}
1207    case $cache_file in
1208      [\\/]* | ?:[\\/]* ) . $cache_file;;
1209      *)                      . ./$cache_file;;
1210    esac
1211  fi
1212else
1213  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214echo "$as_me: creating cache $cache_file" >&6;}
1215  >$cache_file
1216fi
1217
1218# Check that the precious variables saved in the cache have kept the same
1219# value.
1220ac_cache_corrupted=false
1221for ac_var in `(set) 2>&1 |
1222	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224  eval ac_new_set=\$ac_env_${ac_var}_set
1225  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226  eval ac_new_val="\$ac_env_${ac_var}_value"
1227  case $ac_old_set,$ac_new_set in
1228    set,)
1229      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231      ac_cache_corrupted=: ;;
1232    ,set)
1233      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235      ac_cache_corrupted=: ;;
1236    ,);;
1237    *)
1238      if test "x$ac_old_val" != "x$ac_new_val"; then
1239	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1242echo "$as_me:   former value:  $ac_old_val" >&2;}
1243	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1244echo "$as_me:   current value: $ac_new_val" >&2;}
1245	ac_cache_corrupted=:
1246      fi;;
1247  esac
1248  # Pass precious variables to config.status.
1249  if test "$ac_new_set" = set; then
1250    case $ac_new_val in
1251    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253    *) ac_arg=$ac_var=$ac_new_val ;;
1254    esac
1255    case " $ac_configure_args " in
1256      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1257      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258    esac
1259  fi
1260done
1261if $ac_cache_corrupted; then
1262  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266   { (exit 1); exit 1; }; }
1267fi
1268
1269ac_ext=c
1270ac_cpp='$CPP $CPPFLAGS'
1271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301          ac_config_headers="$ac_config_headers nbtool_config.h"
1302
1303          ac_config_files="$ac_config_files defs.mk"
1304
1305
1306# AC_NETBSD
1307
1308ac_ext=c
1309ac_cpp='$CPP $CPPFLAGS'
1310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313if test -n "$ac_tool_prefix"; then
1314  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1315set dummy ${ac_tool_prefix}gcc; ac_word=$2
1316echo "$as_me:$LINENO: checking for $ac_word" >&5
1317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318if test "${ac_cv_prog_CC+set}" = set; then
1319  echo $ECHO_N "(cached) $ECHO_C" >&6
1320else
1321  if test -n "$CC"; then
1322  ac_cv_prog_CC="$CC" # Let the user override the test.
1323else
1324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325for as_dir in $PATH
1326do
1327  IFS=$as_save_IFS
1328  test -z "$as_dir" && as_dir=.
1329  for ac_exec_ext in '' $ac_executable_extensions; do
1330  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1331    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1333    break 2
1334  fi
1335done
1336done
1337
1338fi
1339fi
1340CC=$ac_cv_prog_CC
1341if test -n "$CC"; then
1342  echo "$as_me:$LINENO: result: $CC" >&5
1343echo "${ECHO_T}$CC" >&6
1344else
1345  echo "$as_me:$LINENO: result: no" >&5
1346echo "${ECHO_T}no" >&6
1347fi
1348
1349fi
1350if test -z "$ac_cv_prog_CC"; then
1351  ac_ct_CC=$CC
1352  # Extract the first word of "gcc", so it can be a program name with args.
1353set dummy gcc; ac_word=$2
1354echo "$as_me:$LINENO: checking for $ac_word" >&5
1355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1356if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1357  echo $ECHO_N "(cached) $ECHO_C" >&6
1358else
1359  if test -n "$ac_ct_CC"; then
1360  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1361else
1362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363for as_dir in $PATH
1364do
1365  IFS=$as_save_IFS
1366  test -z "$as_dir" && as_dir=.
1367  for ac_exec_ext in '' $ac_executable_extensions; do
1368  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1369    ac_cv_prog_ac_ct_CC="gcc"
1370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1371    break 2
1372  fi
1373done
1374done
1375
1376fi
1377fi
1378ac_ct_CC=$ac_cv_prog_ac_ct_CC
1379if test -n "$ac_ct_CC"; then
1380  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1381echo "${ECHO_T}$ac_ct_CC" >&6
1382else
1383  echo "$as_me:$LINENO: result: no" >&5
1384echo "${ECHO_T}no" >&6
1385fi
1386
1387  CC=$ac_ct_CC
1388else
1389  CC="$ac_cv_prog_CC"
1390fi
1391
1392if test -z "$CC"; then
1393  if test -n "$ac_tool_prefix"; then
1394  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1395set dummy ${ac_tool_prefix}cc; ac_word=$2
1396echo "$as_me:$LINENO: checking for $ac_word" >&5
1397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398if test "${ac_cv_prog_CC+set}" = set; then
1399  echo $ECHO_N "(cached) $ECHO_C" >&6
1400else
1401  if test -n "$CC"; then
1402  ac_cv_prog_CC="$CC" # Let the user override the test.
1403else
1404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405for as_dir in $PATH
1406do
1407  IFS=$as_save_IFS
1408  test -z "$as_dir" && as_dir=.
1409  for ac_exec_ext in '' $ac_executable_extensions; do
1410  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1411    ac_cv_prog_CC="${ac_tool_prefix}cc"
1412    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1413    break 2
1414  fi
1415done
1416done
1417
1418fi
1419fi
1420CC=$ac_cv_prog_CC
1421if test -n "$CC"; then
1422  echo "$as_me:$LINENO: result: $CC" >&5
1423echo "${ECHO_T}$CC" >&6
1424else
1425  echo "$as_me:$LINENO: result: no" >&5
1426echo "${ECHO_T}no" >&6
1427fi
1428
1429fi
1430if test -z "$ac_cv_prog_CC"; then
1431  ac_ct_CC=$CC
1432  # Extract the first word of "cc", so it can be a program name with args.
1433set dummy cc; ac_word=$2
1434echo "$as_me:$LINENO: checking for $ac_word" >&5
1435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1437  echo $ECHO_N "(cached) $ECHO_C" >&6
1438else
1439  if test -n "$ac_ct_CC"; then
1440  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1441else
1442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443for as_dir in $PATH
1444do
1445  IFS=$as_save_IFS
1446  test -z "$as_dir" && as_dir=.
1447  for ac_exec_ext in '' $ac_executable_extensions; do
1448  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1449    ac_cv_prog_ac_ct_CC="cc"
1450    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1451    break 2
1452  fi
1453done
1454done
1455
1456fi
1457fi
1458ac_ct_CC=$ac_cv_prog_ac_ct_CC
1459if test -n "$ac_ct_CC"; then
1460  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1461echo "${ECHO_T}$ac_ct_CC" >&6
1462else
1463  echo "$as_me:$LINENO: result: no" >&5
1464echo "${ECHO_T}no" >&6
1465fi
1466
1467  CC=$ac_ct_CC
1468else
1469  CC="$ac_cv_prog_CC"
1470fi
1471
1472fi
1473if test -z "$CC"; then
1474  # Extract the first word of "cc", so it can be a program name with args.
1475set dummy cc; ac_word=$2
1476echo "$as_me:$LINENO: checking for $ac_word" >&5
1477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478if test "${ac_cv_prog_CC+set}" = set; then
1479  echo $ECHO_N "(cached) $ECHO_C" >&6
1480else
1481  if test -n "$CC"; then
1482  ac_cv_prog_CC="$CC" # Let the user override the test.
1483else
1484  ac_prog_rejected=no
1485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486for as_dir in $PATH
1487do
1488  IFS=$as_save_IFS
1489  test -z "$as_dir" && as_dir=.
1490  for ac_exec_ext in '' $ac_executable_extensions; do
1491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1493       ac_prog_rejected=yes
1494       continue
1495     fi
1496    ac_cv_prog_CC="cc"
1497    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498    break 2
1499  fi
1500done
1501done
1502
1503if test $ac_prog_rejected = yes; then
1504  # We found a bogon in the path, so make sure we never use it.
1505  set dummy $ac_cv_prog_CC
1506  shift
1507  if test $# != 0; then
1508    # We chose a different compiler from the bogus one.
1509    # However, it has the same basename, so the bogon will be chosen
1510    # first if we set CC to just the basename; use the full file name.
1511    shift
1512    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1513  fi
1514fi
1515fi
1516fi
1517CC=$ac_cv_prog_CC
1518if test -n "$CC"; then
1519  echo "$as_me:$LINENO: result: $CC" >&5
1520echo "${ECHO_T}$CC" >&6
1521else
1522  echo "$as_me:$LINENO: result: no" >&5
1523echo "${ECHO_T}no" >&6
1524fi
1525
1526fi
1527if test -z "$CC"; then
1528  if test -n "$ac_tool_prefix"; then
1529  for ac_prog in cl
1530  do
1531    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1532set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1533echo "$as_me:$LINENO: checking for $ac_word" >&5
1534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1535if test "${ac_cv_prog_CC+set}" = set; then
1536  echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538  if test -n "$CC"; then
1539  ac_cv_prog_CC="$CC" # Let the user override the test.
1540else
1541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542for as_dir in $PATH
1543do
1544  IFS=$as_save_IFS
1545  test -z "$as_dir" && as_dir=.
1546  for ac_exec_ext in '' $ac_executable_extensions; do
1547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1548    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550    break 2
1551  fi
1552done
1553done
1554
1555fi
1556fi
1557CC=$ac_cv_prog_CC
1558if test -n "$CC"; then
1559  echo "$as_me:$LINENO: result: $CC" >&5
1560echo "${ECHO_T}$CC" >&6
1561else
1562  echo "$as_me:$LINENO: result: no" >&5
1563echo "${ECHO_T}no" >&6
1564fi
1565
1566    test -n "$CC" && break
1567  done
1568fi
1569if test -z "$CC"; then
1570  ac_ct_CC=$CC
1571  for ac_prog in cl
1572do
1573  # Extract the first word of "$ac_prog", so it can be a program name with args.
1574set dummy $ac_prog; ac_word=$2
1575echo "$as_me:$LINENO: checking for $ac_word" >&5
1576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1578  echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580  if test -n "$ac_ct_CC"; then
1581  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1582else
1583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584for as_dir in $PATH
1585do
1586  IFS=$as_save_IFS
1587  test -z "$as_dir" && as_dir=.
1588  for ac_exec_ext in '' $ac_executable_extensions; do
1589  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590    ac_cv_prog_ac_ct_CC="$ac_prog"
1591    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592    break 2
1593  fi
1594done
1595done
1596
1597fi
1598fi
1599ac_ct_CC=$ac_cv_prog_ac_ct_CC
1600if test -n "$ac_ct_CC"; then
1601  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1602echo "${ECHO_T}$ac_ct_CC" >&6
1603else
1604  echo "$as_me:$LINENO: result: no" >&5
1605echo "${ECHO_T}no" >&6
1606fi
1607
1608  test -n "$ac_ct_CC" && break
1609done
1610
1611  CC=$ac_ct_CC
1612fi
1613
1614fi
1615
1616
1617test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1618See \`config.log' for more details." >&5
1619echo "$as_me: error: no acceptable C compiler found in \$PATH
1620See \`config.log' for more details." >&2;}
1621   { (exit 1); exit 1; }; }
1622
1623# Provide some information about the compiler.
1624echo "$as_me:$LINENO:" \
1625     "checking for C compiler version" >&5
1626ac_compiler=`set X $ac_compile; echo $2`
1627{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1628  (eval $ac_compiler --version </dev/null >&5) 2>&5
1629  ac_status=$?
1630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1631  (exit $ac_status); }
1632{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1633  (eval $ac_compiler -v </dev/null >&5) 2>&5
1634  ac_status=$?
1635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1636  (exit $ac_status); }
1637{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1638  (eval $ac_compiler -V </dev/null >&5) 2>&5
1639  ac_status=$?
1640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1641  (exit $ac_status); }
1642
1643cat >conftest.$ac_ext <<_ACEOF
1644/* confdefs.h.  */
1645_ACEOF
1646cat confdefs.h >>conftest.$ac_ext
1647cat >>conftest.$ac_ext <<_ACEOF
1648/* end confdefs.h.  */
1649
1650int
1651main ()
1652{
1653
1654  ;
1655  return 0;
1656}
1657_ACEOF
1658ac_clean_files_save=$ac_clean_files
1659ac_clean_files="$ac_clean_files a.out a.exe b.out"
1660# Try to create an executable without -o first, disregard a.out.
1661# It will help us diagnose broken compilers, and finding out an intuition
1662# of exeext.
1663echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1664echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1665ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1666if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1667  (eval $ac_link_default) 2>&5
1668  ac_status=$?
1669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1670  (exit $ac_status); }; then
1671  # Find the output, starting from the most likely.  This scheme is
1672# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1673# resort.
1674
1675# Be careful to initialize this variable, since it used to be cached.
1676# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1677ac_cv_exeext=
1678# b.out is created by i960 compilers.
1679for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1680do
1681  test -f "$ac_file" || continue
1682  case $ac_file in
1683    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1684	;;
1685    conftest.$ac_ext )
1686	# This is the source file.
1687	;;
1688    [ab].out )
1689	# We found the default executable, but exeext='' is most
1690	# certainly right.
1691	break;;
1692    *.* )
1693	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1694	# FIXME: I believe we export ac_cv_exeext for Libtool,
1695	# but it would be cool to find out if it's true.  Does anybody
1696	# maintain Libtool? --akim.
1697	export ac_cv_exeext
1698	break;;
1699    * )
1700	break;;
1701  esac
1702done
1703else
1704  echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1708See \`config.log' for more details." >&5
1709echo "$as_me: error: C compiler cannot create executables
1710See \`config.log' for more details." >&2;}
1711   { (exit 77); exit 77; }; }
1712fi
1713
1714ac_exeext=$ac_cv_exeext
1715echo "$as_me:$LINENO: result: $ac_file" >&5
1716echo "${ECHO_T}$ac_file" >&6
1717
1718# Check the compiler produces executables we can run.  If not, either
1719# the compiler is broken, or we cross compile.
1720echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1721echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1722# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1723# If not cross compiling, check that we can run a simple program.
1724if test "$cross_compiling" != yes; then
1725  if { ac_try='./$ac_file'
1726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1727  (eval $ac_try) 2>&5
1728  ac_status=$?
1729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730  (exit $ac_status); }; }; then
1731    cross_compiling=no
1732  else
1733    if test "$cross_compiling" = maybe; then
1734	cross_compiling=yes
1735    else
1736	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1737If you meant to cross compile, use \`--host'.
1738See \`config.log' for more details." >&5
1739echo "$as_me: error: cannot run C compiled programs.
1740If you meant to cross compile, use \`--host'.
1741See \`config.log' for more details." >&2;}
1742   { (exit 1); exit 1; }; }
1743    fi
1744  fi
1745fi
1746echo "$as_me:$LINENO: result: yes" >&5
1747echo "${ECHO_T}yes" >&6
1748
1749rm -f a.out a.exe conftest$ac_cv_exeext b.out
1750ac_clean_files=$ac_clean_files_save
1751# Check the compiler produces executables we can run.  If not, either
1752# the compiler is broken, or we cross compile.
1753echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1754echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1755echo "$as_me:$LINENO: result: $cross_compiling" >&5
1756echo "${ECHO_T}$cross_compiling" >&6
1757
1758echo "$as_me:$LINENO: checking for suffix of executables" >&5
1759echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1761  (eval $ac_link) 2>&5
1762  ac_status=$?
1763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764  (exit $ac_status); }; then
1765  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1766# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1767# work properly (i.e., refer to `conftest.exe'), while it won't with
1768# `rm'.
1769for ac_file in conftest.exe conftest conftest.*; do
1770  test -f "$ac_file" || continue
1771  case $ac_file in
1772    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1773    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1774	  export ac_cv_exeext
1775	  break;;
1776    * ) break;;
1777  esac
1778done
1779else
1780  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1781See \`config.log' for more details." >&5
1782echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1783See \`config.log' for more details." >&2;}
1784   { (exit 1); exit 1; }; }
1785fi
1786
1787rm -f conftest$ac_cv_exeext
1788echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1789echo "${ECHO_T}$ac_cv_exeext" >&6
1790
1791rm -f conftest.$ac_ext
1792EXEEXT=$ac_cv_exeext
1793ac_exeext=$EXEEXT
1794echo "$as_me:$LINENO: checking for suffix of object files" >&5
1795echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1796if test "${ac_cv_objext+set}" = set; then
1797  echo $ECHO_N "(cached) $ECHO_C" >&6
1798else
1799  cat >conftest.$ac_ext <<_ACEOF
1800/* confdefs.h.  */
1801_ACEOF
1802cat confdefs.h >>conftest.$ac_ext
1803cat >>conftest.$ac_ext <<_ACEOF
1804/* end confdefs.h.  */
1805
1806int
1807main ()
1808{
1809
1810  ;
1811  return 0;
1812}
1813_ACEOF
1814rm -f conftest.o conftest.obj
1815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1816  (eval $ac_compile) 2>&5
1817  ac_status=$?
1818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819  (exit $ac_status); }; then
1820  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1821  case $ac_file in
1822    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1823    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1824       break;;
1825  esac
1826done
1827else
1828  echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1832See \`config.log' for more details." >&5
1833echo "$as_me: error: cannot compute suffix of object files: cannot compile
1834See \`config.log' for more details." >&2;}
1835   { (exit 1); exit 1; }; }
1836fi
1837
1838rm -f conftest.$ac_cv_objext conftest.$ac_ext
1839fi
1840echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1841echo "${ECHO_T}$ac_cv_objext" >&6
1842OBJEXT=$ac_cv_objext
1843ac_objext=$OBJEXT
1844echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1845echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1846if test "${ac_cv_c_compiler_gnu+set}" = set; then
1847  echo $ECHO_N "(cached) $ECHO_C" >&6
1848else
1849  cat >conftest.$ac_ext <<_ACEOF
1850/* confdefs.h.  */
1851_ACEOF
1852cat confdefs.h >>conftest.$ac_ext
1853cat >>conftest.$ac_ext <<_ACEOF
1854/* end confdefs.h.  */
1855
1856int
1857main ()
1858{
1859#ifndef __GNUC__
1860       choke me
1861#endif
1862
1863  ;
1864  return 0;
1865}
1866_ACEOF
1867rm -f conftest.$ac_objext
1868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1869  (eval $ac_compile) 2>conftest.er1
1870  ac_status=$?
1871  grep -v '^ *+' conftest.er1 >conftest.err
1872  rm -f conftest.er1
1873  cat conftest.err >&5
1874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875  (exit $ac_status); } &&
1876	 { ac_try='test -z "$ac_c_werror_flag"
1877			 || test ! -s conftest.err'
1878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879  (eval $ac_try) 2>&5
1880  ac_status=$?
1881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882  (exit $ac_status); }; } &&
1883	 { ac_try='test -s conftest.$ac_objext'
1884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1885  (eval $ac_try) 2>&5
1886  ac_status=$?
1887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888  (exit $ac_status); }; }; then
1889  ac_compiler_gnu=yes
1890else
1891  echo "$as_me: failed program was:" >&5
1892sed 's/^/| /' conftest.$ac_ext >&5
1893
1894ac_compiler_gnu=no
1895fi
1896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1897ac_cv_c_compiler_gnu=$ac_compiler_gnu
1898
1899fi
1900echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1901echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1902GCC=`test $ac_compiler_gnu = yes && echo yes`
1903ac_test_CFLAGS=${CFLAGS+set}
1904ac_save_CFLAGS=$CFLAGS
1905CFLAGS="-g"
1906echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1907echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1908if test "${ac_cv_prog_cc_g+set}" = set; then
1909  echo $ECHO_N "(cached) $ECHO_C" >&6
1910else
1911  cat >conftest.$ac_ext <<_ACEOF
1912/* confdefs.h.  */
1913_ACEOF
1914cat confdefs.h >>conftest.$ac_ext
1915cat >>conftest.$ac_ext <<_ACEOF
1916/* end confdefs.h.  */
1917
1918int
1919main ()
1920{
1921
1922  ;
1923  return 0;
1924}
1925_ACEOF
1926rm -f conftest.$ac_objext
1927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1928  (eval $ac_compile) 2>conftest.er1
1929  ac_status=$?
1930  grep -v '^ *+' conftest.er1 >conftest.err
1931  rm -f conftest.er1
1932  cat conftest.err >&5
1933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934  (exit $ac_status); } &&
1935	 { ac_try='test -z "$ac_c_werror_flag"
1936			 || test ! -s conftest.err'
1937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938  (eval $ac_try) 2>&5
1939  ac_status=$?
1940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941  (exit $ac_status); }; } &&
1942	 { ac_try='test -s conftest.$ac_objext'
1943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944  (eval $ac_try) 2>&5
1945  ac_status=$?
1946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947  (exit $ac_status); }; }; then
1948  ac_cv_prog_cc_g=yes
1949else
1950  echo "$as_me: failed program was:" >&5
1951sed 's/^/| /' conftest.$ac_ext >&5
1952
1953ac_cv_prog_cc_g=no
1954fi
1955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1956fi
1957echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1958echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1959if test "$ac_test_CFLAGS" = set; then
1960  CFLAGS=$ac_save_CFLAGS
1961elif test $ac_cv_prog_cc_g = yes; then
1962  if test "$GCC" = yes; then
1963    CFLAGS="-g -O2"
1964  else
1965    CFLAGS="-g"
1966  fi
1967else
1968  if test "$GCC" = yes; then
1969    CFLAGS="-O2"
1970  else
1971    CFLAGS=
1972  fi
1973fi
1974echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1975echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1976if test "${ac_cv_prog_cc_stdc+set}" = set; then
1977  echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
1979  ac_cv_prog_cc_stdc=no
1980ac_save_CC=$CC
1981cat >conftest.$ac_ext <<_ACEOF
1982/* confdefs.h.  */
1983_ACEOF
1984cat confdefs.h >>conftest.$ac_ext
1985cat >>conftest.$ac_ext <<_ACEOF
1986/* end confdefs.h.  */
1987#include <stdarg.h>
1988#include <stdio.h>
1989#include <sys/types.h>
1990#include <sys/stat.h>
1991/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1992struct buf { int x; };
1993FILE * (*rcsopen) (struct buf *, struct stat *, int);
1994static char *e (p, i)
1995     char **p;
1996     int i;
1997{
1998  return p[i];
1999}
2000static char *f (char * (*g) (char **, int), char **p, ...)
2001{
2002  char *s;
2003  va_list v;
2004  va_start (v,p);
2005  s = g (p, va_arg (v,int));
2006  va_end (v);
2007  return s;
2008}
2009
2010/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2011   function prototypes and stuff, but not '\xHH' hex character constants.
2012   These don't provoke an error unfortunately, instead are silently treated
2013   as 'x'.  The following induces an error, until -std1 is added to get
2014   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2015   array size at least.  It's necessary to write '\x00'==0 to get something
2016   that's true only with -std1.  */
2017int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2018
2019int test (int i, double x);
2020struct s1 {int (*f) (int a);};
2021struct s2 {int (*f) (double a);};
2022int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2023int argc;
2024char **argv;
2025int
2026main ()
2027{
2028return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2029  ;
2030  return 0;
2031}
2032_ACEOF
2033# Don't try gcc -ansi; that turns off useful extensions and
2034# breaks some systems' header files.
2035# AIX			-qlanglvl=ansi
2036# Ultrix and OSF/1	-std1
2037# HP-UX 10.20 and later	-Ae
2038# HP-UX older versions	-Aa -D_HPUX_SOURCE
2039# SVR4			-Xc -D__EXTENSIONS__
2040for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2041do
2042  CC="$ac_save_CC $ac_arg"
2043  rm -f conftest.$ac_objext
2044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045  (eval $ac_compile) 2>conftest.er1
2046  ac_status=$?
2047  grep -v '^ *+' conftest.er1 >conftest.err
2048  rm -f conftest.er1
2049  cat conftest.err >&5
2050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051  (exit $ac_status); } &&
2052	 { ac_try='test -z "$ac_c_werror_flag"
2053			 || test ! -s conftest.err'
2054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055  (eval $ac_try) 2>&5
2056  ac_status=$?
2057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058  (exit $ac_status); }; } &&
2059	 { ac_try='test -s conftest.$ac_objext'
2060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061  (eval $ac_try) 2>&5
2062  ac_status=$?
2063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064  (exit $ac_status); }; }; then
2065  ac_cv_prog_cc_stdc=$ac_arg
2066break
2067else
2068  echo "$as_me: failed program was:" >&5
2069sed 's/^/| /' conftest.$ac_ext >&5
2070
2071fi
2072rm -f conftest.err conftest.$ac_objext
2073done
2074rm -f conftest.$ac_ext conftest.$ac_objext
2075CC=$ac_save_CC
2076
2077fi
2078
2079case "x$ac_cv_prog_cc_stdc" in
2080  x|xno)
2081    echo "$as_me:$LINENO: result: none needed" >&5
2082echo "${ECHO_T}none needed" >&6 ;;
2083  *)
2084    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2085echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2086    CC="$CC $ac_cv_prog_cc_stdc" ;;
2087esac
2088
2089# Some people use a C++ compiler to compile C.  Since we use `exit',
2090# in C++ we need to declare it.  In case someone uses the same compiler
2091# for both compiling C and C++ we need to have the C++ compiler decide
2092# the declaration of exit, since it's the most demanding environment.
2093cat >conftest.$ac_ext <<_ACEOF
2094#ifndef __cplusplus
2095  choke me
2096#endif
2097_ACEOF
2098rm -f conftest.$ac_objext
2099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100  (eval $ac_compile) 2>conftest.er1
2101  ac_status=$?
2102  grep -v '^ *+' conftest.er1 >conftest.err
2103  rm -f conftest.er1
2104  cat conftest.err >&5
2105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106  (exit $ac_status); } &&
2107	 { ac_try='test -z "$ac_c_werror_flag"
2108			 || test ! -s conftest.err'
2109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110  (eval $ac_try) 2>&5
2111  ac_status=$?
2112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113  (exit $ac_status); }; } &&
2114	 { ac_try='test -s conftest.$ac_objext'
2115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116  (eval $ac_try) 2>&5
2117  ac_status=$?
2118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119  (exit $ac_status); }; }; then
2120  for ac_declaration in \
2121   '' \
2122   'extern "C" void std::exit (int) throw (); using std::exit;' \
2123   'extern "C" void std::exit (int); using std::exit;' \
2124   'extern "C" void exit (int) throw ();' \
2125   'extern "C" void exit (int);' \
2126   'void exit (int);'
2127do
2128  cat >conftest.$ac_ext <<_ACEOF
2129/* confdefs.h.  */
2130_ACEOF
2131cat confdefs.h >>conftest.$ac_ext
2132cat >>conftest.$ac_ext <<_ACEOF
2133/* end confdefs.h.  */
2134$ac_declaration
2135#include <stdlib.h>
2136int
2137main ()
2138{
2139exit (42);
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144rm -f conftest.$ac_objext
2145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146  (eval $ac_compile) 2>conftest.er1
2147  ac_status=$?
2148  grep -v '^ *+' conftest.er1 >conftest.err
2149  rm -f conftest.er1
2150  cat conftest.err >&5
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); } &&
2153	 { ac_try='test -z "$ac_c_werror_flag"
2154			 || test ! -s conftest.err'
2155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156  (eval $ac_try) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }; } &&
2160	 { ac_try='test -s conftest.$ac_objext'
2161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162  (eval $ac_try) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; }; then
2166  :
2167else
2168  echo "$as_me: failed program was:" >&5
2169sed 's/^/| /' conftest.$ac_ext >&5
2170
2171continue
2172fi
2173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2174  cat >conftest.$ac_ext <<_ACEOF
2175/* confdefs.h.  */
2176_ACEOF
2177cat confdefs.h >>conftest.$ac_ext
2178cat >>conftest.$ac_ext <<_ACEOF
2179/* end confdefs.h.  */
2180$ac_declaration
2181int
2182main ()
2183{
2184exit (42);
2185  ;
2186  return 0;
2187}
2188_ACEOF
2189rm -f conftest.$ac_objext
2190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191  (eval $ac_compile) 2>conftest.er1
2192  ac_status=$?
2193  grep -v '^ *+' conftest.er1 >conftest.err
2194  rm -f conftest.er1
2195  cat conftest.err >&5
2196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197  (exit $ac_status); } &&
2198	 { ac_try='test -z "$ac_c_werror_flag"
2199			 || test ! -s conftest.err'
2200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201  (eval $ac_try) 2>&5
2202  ac_status=$?
2203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204  (exit $ac_status); }; } &&
2205	 { ac_try='test -s conftest.$ac_objext'
2206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207  (eval $ac_try) 2>&5
2208  ac_status=$?
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); }; }; then
2211  break
2212else
2213  echo "$as_me: failed program was:" >&5
2214sed 's/^/| /' conftest.$ac_ext >&5
2215
2216fi
2217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218done
2219rm -f conftest*
2220if test -n "$ac_declaration"; then
2221  echo '#ifdef __cplusplus' >>confdefs.h
2222  echo $ac_declaration      >>confdefs.h
2223  echo '#endif'             >>confdefs.h
2224fi
2225
2226else
2227  echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230fi
2231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232ac_ext=c
2233ac_cpp='$CPP $CPPFLAGS'
2234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2236ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237
2238
2239ac_ext=c
2240ac_cpp='$CPP $CPPFLAGS'
2241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243ac_compiler_gnu=$ac_cv_c_compiler_gnu
2244echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2245echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2246# On Suns, sometimes $CPP names a directory.
2247if test -n "$CPP" && test -d "$CPP"; then
2248  CPP=
2249fi
2250if test -z "$CPP"; then
2251  if test "${ac_cv_prog_CPP+set}" = set; then
2252  echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254      # Double quotes because CPP needs to be expanded
2255    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2256    do
2257      ac_preproc_ok=false
2258for ac_c_preproc_warn_flag in '' yes
2259do
2260  # Use a header file that comes with gcc, so configuring glibc
2261  # with a fresh cross-compiler works.
2262  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2263  # <limits.h> exists even on freestanding compilers.
2264  # On the NeXT, cc -E runs the code through the compiler's parser,
2265  # not just through cpp. "Syntax error" is here to catch this case.
2266  cat >conftest.$ac_ext <<_ACEOF
2267/* confdefs.h.  */
2268_ACEOF
2269cat confdefs.h >>conftest.$ac_ext
2270cat >>conftest.$ac_ext <<_ACEOF
2271/* end confdefs.h.  */
2272#ifdef __STDC__
2273# include <limits.h>
2274#else
2275# include <assert.h>
2276#endif
2277		     Syntax error
2278_ACEOF
2279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2280  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2281  ac_status=$?
2282  grep -v '^ *+' conftest.er1 >conftest.err
2283  rm -f conftest.er1
2284  cat conftest.err >&5
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); } >/dev/null; then
2287  if test -s conftest.err; then
2288    ac_cpp_err=$ac_c_preproc_warn_flag
2289    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2290  else
2291    ac_cpp_err=
2292  fi
2293else
2294  ac_cpp_err=yes
2295fi
2296if test -z "$ac_cpp_err"; then
2297  :
2298else
2299  echo "$as_me: failed program was:" >&5
2300sed 's/^/| /' conftest.$ac_ext >&5
2301
2302  # Broken: fails on valid input.
2303continue
2304fi
2305rm -f conftest.err conftest.$ac_ext
2306
2307  # OK, works on sane cases.  Now check whether non-existent headers
2308  # can be detected and how.
2309  cat >conftest.$ac_ext <<_ACEOF
2310/* confdefs.h.  */
2311_ACEOF
2312cat confdefs.h >>conftest.$ac_ext
2313cat >>conftest.$ac_ext <<_ACEOF
2314/* end confdefs.h.  */
2315#include <ac_nonexistent.h>
2316_ACEOF
2317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2318  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2319  ac_status=$?
2320  grep -v '^ *+' conftest.er1 >conftest.err
2321  rm -f conftest.er1
2322  cat conftest.err >&5
2323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324  (exit $ac_status); } >/dev/null; then
2325  if test -s conftest.err; then
2326    ac_cpp_err=$ac_c_preproc_warn_flag
2327    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2328  else
2329    ac_cpp_err=
2330  fi
2331else
2332  ac_cpp_err=yes
2333fi
2334if test -z "$ac_cpp_err"; then
2335  # Broken: success on invalid input.
2336continue
2337else
2338  echo "$as_me: failed program was:" >&5
2339sed 's/^/| /' conftest.$ac_ext >&5
2340
2341  # Passes both tests.
2342ac_preproc_ok=:
2343break
2344fi
2345rm -f conftest.err conftest.$ac_ext
2346
2347done
2348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2349rm -f conftest.err conftest.$ac_ext
2350if $ac_preproc_ok; then
2351  break
2352fi
2353
2354    done
2355    ac_cv_prog_CPP=$CPP
2356
2357fi
2358  CPP=$ac_cv_prog_CPP
2359else
2360  ac_cv_prog_CPP=$CPP
2361fi
2362echo "$as_me:$LINENO: result: $CPP" >&5
2363echo "${ECHO_T}$CPP" >&6
2364ac_preproc_ok=false
2365for ac_c_preproc_warn_flag in '' yes
2366do
2367  # Use a header file that comes with gcc, so configuring glibc
2368  # with a fresh cross-compiler works.
2369  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2370  # <limits.h> exists even on freestanding compilers.
2371  # On the NeXT, cc -E runs the code through the compiler's parser,
2372  # not just through cpp. "Syntax error" is here to catch this case.
2373  cat >conftest.$ac_ext <<_ACEOF
2374/* confdefs.h.  */
2375_ACEOF
2376cat confdefs.h >>conftest.$ac_ext
2377cat >>conftest.$ac_ext <<_ACEOF
2378/* end confdefs.h.  */
2379#ifdef __STDC__
2380# include <limits.h>
2381#else
2382# include <assert.h>
2383#endif
2384		     Syntax error
2385_ACEOF
2386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2387  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2388  ac_status=$?
2389  grep -v '^ *+' conftest.er1 >conftest.err
2390  rm -f conftest.er1
2391  cat conftest.err >&5
2392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393  (exit $ac_status); } >/dev/null; then
2394  if test -s conftest.err; then
2395    ac_cpp_err=$ac_c_preproc_warn_flag
2396    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2397  else
2398    ac_cpp_err=
2399  fi
2400else
2401  ac_cpp_err=yes
2402fi
2403if test -z "$ac_cpp_err"; then
2404  :
2405else
2406  echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
2408
2409  # Broken: fails on valid input.
2410continue
2411fi
2412rm -f conftest.err conftest.$ac_ext
2413
2414  # OK, works on sane cases.  Now check whether non-existent headers
2415  # can be detected and how.
2416  cat >conftest.$ac_ext <<_ACEOF
2417/* confdefs.h.  */
2418_ACEOF
2419cat confdefs.h >>conftest.$ac_ext
2420cat >>conftest.$ac_ext <<_ACEOF
2421/* end confdefs.h.  */
2422#include <ac_nonexistent.h>
2423_ACEOF
2424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2425  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2426  ac_status=$?
2427  grep -v '^ *+' conftest.er1 >conftest.err
2428  rm -f conftest.er1
2429  cat conftest.err >&5
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); } >/dev/null; then
2432  if test -s conftest.err; then
2433    ac_cpp_err=$ac_c_preproc_warn_flag
2434    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2435  else
2436    ac_cpp_err=
2437  fi
2438else
2439  ac_cpp_err=yes
2440fi
2441if test -z "$ac_cpp_err"; then
2442  # Broken: success on invalid input.
2443continue
2444else
2445  echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448  # Passes both tests.
2449ac_preproc_ok=:
2450break
2451fi
2452rm -f conftest.err conftest.$ac_ext
2453
2454done
2455# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2456rm -f conftest.err conftest.$ac_ext
2457if $ac_preproc_ok; then
2458  :
2459else
2460  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2461See \`config.log' for more details." >&5
2462echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2463See \`config.log' for more details." >&2;}
2464   { (exit 1); exit 1; }; }
2465fi
2466
2467ac_ext=c
2468ac_cpp='$CPP $CPPFLAGS'
2469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472
2473
2474echo "$as_me:$LINENO: checking for egrep" >&5
2475echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2476if test "${ac_cv_prog_egrep+set}" = set; then
2477  echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2480    then ac_cv_prog_egrep='grep -E'
2481    else ac_cv_prog_egrep='egrep'
2482    fi
2483fi
2484echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2485echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2486 EGREP=$ac_cv_prog_egrep
2487
2488
2489            echo "$as_me:$LINENO: checking for NetBSD" >&5
2490echo $ECHO_N "checking for NetBSD... $ECHO_C" >&6
2491      cat >conftest.$ac_ext <<_ACEOF
2492/* confdefs.h.  */
2493_ACEOF
2494cat confdefs.h >>conftest.$ac_ext
2495cat >>conftest.$ac_ext <<_ACEOF
2496/* end confdefs.h.  */
2497#ifdef __NetBSD__
2498	yes
2499	#endif
2500
2501_ACEOF
2502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2503  $EGREP "yes" >/dev/null 2>&1; then
2504  echo "$as_me:$LINENO: result: yes" >&5
2505echo "${ECHO_T}yes" >&6
2506
2507cat >>confdefs.h <<\_ACEOF
2508#define _POSIX_SOURCE 1
2509_ACEOF
2510
2511
2512cat >>confdefs.h <<\_ACEOF
2513#define _POSIX_C_SOURCE 200112L
2514_ACEOF
2515
2516
2517cat >>confdefs.h <<\_ACEOF
2518#define _XOPEN_SOURCE 600
2519_ACEOF
2520
2521else
2522  echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6
2524fi
2525rm -f conftest*
2526
2527
2528# Extract the first word of "sh", so it can be a program name with args.
2529set dummy sh; ac_word=$2
2530echo "$as_me:$LINENO: checking for $ac_word" >&5
2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2532if test "${ac_cv_path_BSHELL+set}" = set; then
2533  echo $ECHO_N "(cached) $ECHO_C" >&6
2534else
2535  case $BSHELL in
2536  [\\/]* | ?:[\\/]*)
2537  ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
2538  ;;
2539  *)
2540  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543  IFS=$as_save_IFS
2544  test -z "$as_dir" && as_dir=.
2545  for ac_exec_ext in '' $ac_executable_extensions; do
2546  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547    ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext"
2548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549    break 2
2550  fi
2551done
2552done
2553
2554  ;;
2555esac
2556fi
2557BSHELL=$ac_cv_path_BSHELL
2558
2559if test -n "$BSHELL"; then
2560  echo "$as_me:$LINENO: result: $BSHELL" >&5
2561echo "${ECHO_T}$BSHELL" >&6
2562else
2563  echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6
2565fi
2566
2567if test x"$BSHELL" = x; then
2568	{ { echo "$as_me:$LINENO: error: sh must be somewhere on \$PATH" >&5
2569echo "$as_me: error: sh must be somewhere on \$PATH" >&2;}
2570   { (exit 1); exit 1; }; }
2571fi
2572
2573cat >>confdefs.h <<_ACEOF
2574#define PATH_BSHELL "$BSHELL"
2575_ACEOF
2576
2577
2578echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2579echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2580if test "${ac_cv_c_bigendian+set}" = set; then
2581  echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
2583  # See if sys/param.h defines the BYTE_ORDER macro.
2584cat >conftest.$ac_ext <<_ACEOF
2585/* confdefs.h.  */
2586_ACEOF
2587cat confdefs.h >>conftest.$ac_ext
2588cat >>conftest.$ac_ext <<_ACEOF
2589/* end confdefs.h.  */
2590#include <sys/types.h>
2591#include <sys/param.h>
2592
2593int
2594main ()
2595{
2596#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2597 bogus endian macros
2598#endif
2599
2600  ;
2601  return 0;
2602}
2603_ACEOF
2604rm -f conftest.$ac_objext
2605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606  (eval $ac_compile) 2>conftest.er1
2607  ac_status=$?
2608  grep -v '^ *+' conftest.er1 >conftest.err
2609  rm -f conftest.er1
2610  cat conftest.err >&5
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); } &&
2613	 { ac_try='test -z "$ac_c_werror_flag"
2614			 || test ! -s conftest.err'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; } &&
2620	 { ac_try='test -s conftest.$ac_objext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  # It does; now see whether it defined to BIG_ENDIAN or not.
2627cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h.  */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h.  */
2633#include <sys/types.h>
2634#include <sys/param.h>
2635
2636int
2637main ()
2638{
2639#if BYTE_ORDER != BIG_ENDIAN
2640 not big endian
2641#endif
2642
2643  ;
2644  return 0;
2645}
2646_ACEOF
2647rm -f conftest.$ac_objext
2648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649  (eval $ac_compile) 2>conftest.er1
2650  ac_status=$?
2651  grep -v '^ *+' conftest.er1 >conftest.err
2652  rm -f conftest.er1
2653  cat conftest.err >&5
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); } &&
2656	 { ac_try='test -z "$ac_c_werror_flag"
2657			 || test ! -s conftest.err'
2658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659  (eval $ac_try) 2>&5
2660  ac_status=$?
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); }; } &&
2663	 { ac_try='test -s conftest.$ac_objext'
2664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665  (eval $ac_try) 2>&5
2666  ac_status=$?
2667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668  (exit $ac_status); }; }; then
2669  ac_cv_c_bigendian=yes
2670else
2671  echo "$as_me: failed program was:" >&5
2672sed 's/^/| /' conftest.$ac_ext >&5
2673
2674ac_cv_c_bigendian=no
2675fi
2676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677else
2678  echo "$as_me: failed program was:" >&5
2679sed 's/^/| /' conftest.$ac_ext >&5
2680
2681# It does not; compile a test program.
2682if test "$cross_compiling" = yes; then
2683  # try to guess the endianness by grepping values into an object file
2684  ac_cv_c_bigendian=unknown
2685  cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h.  */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h.  */
2691short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2692short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2693void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2694short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2695short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2696void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2697int
2698main ()
2699{
2700 _ascii (); _ebcdic ();
2701  ;
2702  return 0;
2703}
2704_ACEOF
2705rm -f conftest.$ac_objext
2706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707  (eval $ac_compile) 2>conftest.er1
2708  ac_status=$?
2709  grep -v '^ *+' conftest.er1 >conftest.err
2710  rm -f conftest.er1
2711  cat conftest.err >&5
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); } &&
2714	 { ac_try='test -z "$ac_c_werror_flag"
2715			 || test ! -s conftest.err'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; } &&
2721	 { ac_try='test -s conftest.$ac_objext'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; }; then
2727  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2728  ac_cv_c_bigendian=yes
2729fi
2730if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2731  if test "$ac_cv_c_bigendian" = unknown; then
2732    ac_cv_c_bigendian=no
2733  else
2734    # finding both strings is unlikely to happen, but who knows?
2735    ac_cv_c_bigendian=unknown
2736  fi
2737fi
2738else
2739  echo "$as_me: failed program was:" >&5
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
2742fi
2743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744else
2745  cat >conftest.$ac_ext <<_ACEOF
2746/* confdefs.h.  */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h.  */
2751int
2752main ()
2753{
2754  /* Are we little or big endian?  From Harbison&Steele.  */
2755  union
2756  {
2757    long l;
2758    char c[sizeof (long)];
2759  } u;
2760  u.l = 1;
2761  exit (u.c[sizeof (long) - 1] == 1);
2762}
2763_ACEOF
2764rm -f conftest$ac_exeext
2765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2766  (eval $ac_link) 2>&5
2767  ac_status=$?
2768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771  (eval $ac_try) 2>&5
2772  ac_status=$?
2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); }; }; then
2775  ac_cv_c_bigendian=no
2776else
2777  echo "$as_me: program exited with status $ac_status" >&5
2778echo "$as_me: failed program was:" >&5
2779sed 's/^/| /' conftest.$ac_ext >&5
2780
2781( exit $ac_status )
2782ac_cv_c_bigendian=yes
2783fi
2784rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2785fi
2786fi
2787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2788fi
2789echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2790echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2791case $ac_cv_c_bigendian in
2792  yes)
2793
2794cat >>confdefs.h <<\_ACEOF
2795#define WORDS_BIGENDIAN 1
2796_ACEOF
2797 ;;
2798  no)
2799     ;;
2800  *)
2801    { { echo "$as_me:$LINENO: error: unknown endianness
2802presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2803echo "$as_me: error: unknown endianness
2804presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2805   { (exit 1); exit 1; }; } ;;
2806esac
2807
2808echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2809echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2810if test "${ac_cv_header_stdc+set}" = set; then
2811  echo $ECHO_N "(cached) $ECHO_C" >&6
2812else
2813  cat >conftest.$ac_ext <<_ACEOF
2814/* confdefs.h.  */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h.  */
2819#include <stdlib.h>
2820#include <stdarg.h>
2821#include <string.h>
2822#include <float.h>
2823
2824int
2825main ()
2826{
2827
2828  ;
2829  return 0;
2830}
2831_ACEOF
2832rm -f conftest.$ac_objext
2833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2834  (eval $ac_compile) 2>conftest.er1
2835  ac_status=$?
2836  grep -v '^ *+' conftest.er1 >conftest.err
2837  rm -f conftest.er1
2838  cat conftest.err >&5
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); } &&
2841	 { ac_try='test -z "$ac_c_werror_flag"
2842			 || test ! -s conftest.err'
2843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844  (eval $ac_try) 2>&5
2845  ac_status=$?
2846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847  (exit $ac_status); }; } &&
2848	 { ac_try='test -s conftest.$ac_objext'
2849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850  (eval $ac_try) 2>&5
2851  ac_status=$?
2852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853  (exit $ac_status); }; }; then
2854  ac_cv_header_stdc=yes
2855else
2856  echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859ac_cv_header_stdc=no
2860fi
2861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2862
2863if test $ac_cv_header_stdc = yes; then
2864  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2865  cat >conftest.$ac_ext <<_ACEOF
2866/* confdefs.h.  */
2867_ACEOF
2868cat confdefs.h >>conftest.$ac_ext
2869cat >>conftest.$ac_ext <<_ACEOF
2870/* end confdefs.h.  */
2871#include <string.h>
2872
2873_ACEOF
2874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2875  $EGREP "memchr" >/dev/null 2>&1; then
2876  :
2877else
2878  ac_cv_header_stdc=no
2879fi
2880rm -f conftest*
2881
2882fi
2883
2884if test $ac_cv_header_stdc = yes; then
2885  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2886  cat >conftest.$ac_ext <<_ACEOF
2887/* confdefs.h.  */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h.  */
2892#include <stdlib.h>
2893
2894_ACEOF
2895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2896  $EGREP "free" >/dev/null 2>&1; then
2897  :
2898else
2899  ac_cv_header_stdc=no
2900fi
2901rm -f conftest*
2902
2903fi
2904
2905if test $ac_cv_header_stdc = yes; then
2906  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2907  if test "$cross_compiling" = yes; then
2908  :
2909else
2910  cat >conftest.$ac_ext <<_ACEOF
2911/* confdefs.h.  */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h.  */
2916#include <ctype.h>
2917#if ((' ' & 0x0FF) == 0x020)
2918# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2919# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2920#else
2921# define ISLOWER(c) \
2922		   (('a' <= (c) && (c) <= 'i') \
2923		     || ('j' <= (c) && (c) <= 'r') \
2924		     || ('s' <= (c) && (c) <= 'z'))
2925# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2926#endif
2927
2928#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2929int
2930main ()
2931{
2932  int i;
2933  for (i = 0; i < 256; i++)
2934    if (XOR (islower (i), ISLOWER (i))
2935	|| toupper (i) != TOUPPER (i))
2936      exit(2);
2937  exit (0);
2938}
2939_ACEOF
2940rm -f conftest$ac_exeext
2941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2942  (eval $ac_link) 2>&5
2943  ac_status=$?
2944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947  (eval $ac_try) 2>&5
2948  ac_status=$?
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); }; }; then
2951  :
2952else
2953  echo "$as_me: program exited with status $ac_status" >&5
2954echo "$as_me: failed program was:" >&5
2955sed 's/^/| /' conftest.$ac_ext >&5
2956
2957( exit $ac_status )
2958ac_cv_header_stdc=no
2959fi
2960rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2961fi
2962fi
2963fi
2964echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2965echo "${ECHO_T}$ac_cv_header_stdc" >&6
2966if test $ac_cv_header_stdc = yes; then
2967
2968cat >>confdefs.h <<\_ACEOF
2969#define STDC_HEADERS 1
2970_ACEOF
2971
2972fi
2973
2974
2975# Confirm existence of zlib.  (This is available as a default install
2976# option on many OS's; this could be added as a reachover build in the
2977# future.)
2978# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2989		  inttypes.h stdint.h unistd.h
2990do
2991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2992echo "$as_me:$LINENO: checking for $ac_header" >&5
2993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2994if eval "test \"\${$as_ac_Header+set}\" = set"; then
2995  echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997  cat >conftest.$ac_ext <<_ACEOF
2998/* confdefs.h.  */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h.  */
3003$ac_includes_default
3004
3005#include <$ac_header>
3006_ACEOF
3007rm -f conftest.$ac_objext
3008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3009  (eval $ac_compile) 2>conftest.er1
3010  ac_status=$?
3011  grep -v '^ *+' conftest.er1 >conftest.err
3012  rm -f conftest.er1
3013  cat conftest.err >&5
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); } &&
3016	 { ac_try='test -z "$ac_c_werror_flag"
3017			 || test ! -s conftest.err'
3018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019  (eval $ac_try) 2>&5
3020  ac_status=$?
3021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022  (exit $ac_status); }; } &&
3023	 { ac_try='test -s conftest.$ac_objext'
3024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025  (eval $ac_try) 2>&5
3026  ac_status=$?
3027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028  (exit $ac_status); }; }; then
3029  eval "$as_ac_Header=yes"
3030else
3031  echo "$as_me: failed program was:" >&5
3032sed 's/^/| /' conftest.$ac_ext >&5
3033
3034eval "$as_ac_Header=no"
3035fi
3036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3037fi
3038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3040if test `eval echo '${'$as_ac_Header'}'` = yes; then
3041  cat >>confdefs.h <<_ACEOF
3042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3043_ACEOF
3044
3045fi
3046
3047done
3048
3049
3050if test "${ac_cv_header_zlib_h+set}" = set; then
3051  echo "$as_me:$LINENO: checking for zlib.h" >&5
3052echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
3053if test "${ac_cv_header_zlib_h+set}" = set; then
3054  echo $ECHO_N "(cached) $ECHO_C" >&6
3055fi
3056echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3057echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
3058else
3059  # Is the header compilable?
3060echo "$as_me:$LINENO: checking zlib.h usability" >&5
3061echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
3062cat >conftest.$ac_ext <<_ACEOF
3063/* confdefs.h.  */
3064_ACEOF
3065cat confdefs.h >>conftest.$ac_ext
3066cat >>conftest.$ac_ext <<_ACEOF
3067/* end confdefs.h.  */
3068$ac_includes_default
3069#include <zlib.h>
3070_ACEOF
3071rm -f conftest.$ac_objext
3072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3073  (eval $ac_compile) 2>conftest.er1
3074  ac_status=$?
3075  grep -v '^ *+' conftest.er1 >conftest.err
3076  rm -f conftest.er1
3077  cat conftest.err >&5
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); } &&
3080	 { ac_try='test -z "$ac_c_werror_flag"
3081			 || test ! -s conftest.err'
3082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083  (eval $ac_try) 2>&5
3084  ac_status=$?
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); }; } &&
3087	 { ac_try='test -s conftest.$ac_objext'
3088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089  (eval $ac_try) 2>&5
3090  ac_status=$?
3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); }; }; then
3093  ac_header_compiler=yes
3094else
3095  echo "$as_me: failed program was:" >&5
3096sed 's/^/| /' conftest.$ac_ext >&5
3097
3098ac_header_compiler=no
3099fi
3100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3101echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3102echo "${ECHO_T}$ac_header_compiler" >&6
3103
3104# Is the header present?
3105echo "$as_me:$LINENO: checking zlib.h presence" >&5
3106echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
3107cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h.  */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h.  */
3113#include <zlib.h>
3114_ACEOF
3115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3116  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117  ac_status=$?
3118  grep -v '^ *+' conftest.er1 >conftest.err
3119  rm -f conftest.er1
3120  cat conftest.err >&5
3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122  (exit $ac_status); } >/dev/null; then
3123  if test -s conftest.err; then
3124    ac_cpp_err=$ac_c_preproc_warn_flag
3125    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3126  else
3127    ac_cpp_err=
3128  fi
3129else
3130  ac_cpp_err=yes
3131fi
3132if test -z "$ac_cpp_err"; then
3133  ac_header_preproc=yes
3134else
3135  echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138  ac_header_preproc=no
3139fi
3140rm -f conftest.err conftest.$ac_ext
3141echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3142echo "${ECHO_T}$ac_header_preproc" >&6
3143
3144# So?  What about this header?
3145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3146  yes:no: )
3147    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
3148echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3149    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
3150echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
3151    ac_header_preproc=yes
3152    ;;
3153  no:yes:* )
3154    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
3155echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
3156    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
3157echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
3158    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
3159echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
3160    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
3161echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3162    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
3163echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
3164    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
3165echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
3166    (
3167      cat <<\_ASBOX
3168## ---------------------------------------- ##
3169## Report this to lib-bug-people@NetBSD.org ##
3170## ---------------------------------------- ##
3171_ASBOX
3172    ) |
3173      sed "s/^/$as_me: WARNING:     /" >&2
3174    ;;
3175esac
3176echo "$as_me:$LINENO: checking for zlib.h" >&5
3177echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
3178if test "${ac_cv_header_zlib_h+set}" = set; then
3179  echo $ECHO_N "(cached) $ECHO_C" >&6
3180else
3181  ac_cv_header_zlib_h=$ac_header_preproc
3182fi
3183echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
3184echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
3185
3186fi
3187if test $ac_cv_header_zlib_h = yes; then
3188  :
3189else
3190  { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3191echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3192   { (exit 1); exit 1; }; }
3193fi
3194
3195
3196
3197echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5
3198echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
3199if test "${ac_cv_lib_z_gzdopen+set}" = set; then
3200  echo $ECHO_N "(cached) $ECHO_C" >&6
3201else
3202  ac_check_lib_save_LIBS=$LIBS
3203LIBS="-lz  $LIBS"
3204cat >conftest.$ac_ext <<_ACEOF
3205/* confdefs.h.  */
3206_ACEOF
3207cat confdefs.h >>conftest.$ac_ext
3208cat >>conftest.$ac_ext <<_ACEOF
3209/* end confdefs.h.  */
3210
3211/* Override any gcc2 internal prototype to avoid an error.  */
3212#ifdef __cplusplus
3213extern "C"
3214#endif
3215/* We use char because int might match the return type of a gcc2
3216   builtin and then its argument prototype would still apply.  */
3217char gzdopen ();
3218int
3219main ()
3220{
3221gzdopen ();
3222  ;
3223  return 0;
3224}
3225_ACEOF
3226rm -f conftest.$ac_objext conftest$ac_exeext
3227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3228  (eval $ac_link) 2>conftest.er1
3229  ac_status=$?
3230  grep -v '^ *+' conftest.er1 >conftest.err
3231  rm -f conftest.er1
3232  cat conftest.err >&5
3233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234  (exit $ac_status); } &&
3235	 { ac_try='test -z "$ac_c_werror_flag"
3236			 || test ! -s conftest.err'
3237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238  (eval $ac_try) 2>&5
3239  ac_status=$?
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); }; } &&
3242	 { ac_try='test -s conftest$ac_exeext'
3243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244  (eval $ac_try) 2>&5
3245  ac_status=$?
3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247  (exit $ac_status); }; }; then
3248  ac_cv_lib_z_gzdopen=yes
3249else
3250  echo "$as_me: failed program was:" >&5
3251sed 's/^/| /' conftest.$ac_ext >&5
3252
3253ac_cv_lib_z_gzdopen=no
3254fi
3255rm -f conftest.err conftest.$ac_objext \
3256      conftest$ac_exeext conftest.$ac_ext
3257LIBS=$ac_check_lib_save_LIBS
3258fi
3259echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5
3260echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
3261if test $ac_cv_lib_z_gzdopen = yes; then
3262  cat >>confdefs.h <<_ACEOF
3263#define HAVE_LIBZ 1
3264_ACEOF
3265
3266  LIBS="-lz $LIBS"
3267
3268else
3269  { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5
3270echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
3271   { (exit 1); exit 1; }; }
3272fi
3273
3274
3275# Make sure certain required headers are available.
3276# These are not necessarily required by the code, but they are not
3277# currently conditionalized.
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
3305	sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
3306	sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
3307	netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
3308	termios.h unistd.h
3309do
3310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3311if eval "test \"\${$as_ac_Header+set}\" = set"; then
3312  echo "$as_me:$LINENO: checking for $ac_header" >&5
3313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3314if eval "test \"\${$as_ac_Header+set}\" = set"; then
3315  echo $ECHO_N "(cached) $ECHO_C" >&6
3316fi
3317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3319else
3320  # Is the header compilable?
3321echo "$as_me:$LINENO: checking $ac_header usability" >&5
3322echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3323cat >conftest.$ac_ext <<_ACEOF
3324/* confdefs.h.  */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h.  */
3329$ac_includes_default
3330#include <$ac_header>
3331_ACEOF
3332rm -f conftest.$ac_objext
3333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334  (eval $ac_compile) 2>conftest.er1
3335  ac_status=$?
3336  grep -v '^ *+' conftest.er1 >conftest.err
3337  rm -f conftest.er1
3338  cat conftest.err >&5
3339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340  (exit $ac_status); } &&
3341	 { ac_try='test -z "$ac_c_werror_flag"
3342			 || test ! -s conftest.err'
3343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344  (eval $ac_try) 2>&5
3345  ac_status=$?
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); }; } &&
3348	 { ac_try='test -s conftest.$ac_objext'
3349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350  (eval $ac_try) 2>&5
3351  ac_status=$?
3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); }; }; then
3354  ac_header_compiler=yes
3355else
3356  echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359ac_header_compiler=no
3360fi
3361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3362echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3363echo "${ECHO_T}$ac_header_compiler" >&6
3364
3365# Is the header present?
3366echo "$as_me:$LINENO: checking $ac_header presence" >&5
3367echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3368cat >conftest.$ac_ext <<_ACEOF
3369/* confdefs.h.  */
3370_ACEOF
3371cat confdefs.h >>conftest.$ac_ext
3372cat >>conftest.$ac_ext <<_ACEOF
3373/* end confdefs.h.  */
3374#include <$ac_header>
3375_ACEOF
3376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378  ac_status=$?
3379  grep -v '^ *+' conftest.er1 >conftest.err
3380  rm -f conftest.er1
3381  cat conftest.err >&5
3382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383  (exit $ac_status); } >/dev/null; then
3384  if test -s conftest.err; then
3385    ac_cpp_err=$ac_c_preproc_warn_flag
3386    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387  else
3388    ac_cpp_err=
3389  fi
3390else
3391  ac_cpp_err=yes
3392fi
3393if test -z "$ac_cpp_err"; then
3394  ac_header_preproc=yes
3395else
3396  echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399  ac_header_preproc=no
3400fi
3401rm -f conftest.err conftest.$ac_ext
3402echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3403echo "${ECHO_T}$ac_header_preproc" >&6
3404
3405# So?  What about this header?
3406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3407  yes:no: )
3408    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3409echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3410    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3411echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3412    ac_header_preproc=yes
3413    ;;
3414  no:yes:* )
3415    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3416echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3417    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3418echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3419    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3420echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3421    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3422echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3423    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3425    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3426echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3427    (
3428      cat <<\_ASBOX
3429## ---------------------------------------- ##
3430## Report this to lib-bug-people@NetBSD.org ##
3431## ---------------------------------------- ##
3432_ASBOX
3433    ) |
3434      sed "s/^/$as_me: WARNING:     /" >&2
3435    ;;
3436esac
3437echo "$as_me:$LINENO: checking for $ac_header" >&5
3438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3439if eval "test \"\${$as_ac_Header+set}\" = set"; then
3440  echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442  eval "$as_ac_Header=\$ac_header_preproc"
3443fi
3444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3446
3447fi
3448if test `eval echo '${'$as_ac_Header'}'` = yes; then
3449  cat >>confdefs.h <<_ACEOF
3450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3451_ACEOF
3452
3453else
3454  { { echo "$as_me:$LINENO: error: standard system header file not found" >&5
3455echo "$as_me: error: standard system header file not found" >&2;}
3456   { (exit 1); exit 1; }; }
3457fi
3458
3459done
3460
3461
3462# Find headers that may not be available.
3463
3464
3465
3466
3467
3468ac_header_dirent=no
3469for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3470  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3471echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3472echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3473if eval "test \"\${$as_ac_Header+set}\" = set"; then
3474  echo $ECHO_N "(cached) $ECHO_C" >&6
3475else
3476  cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h.  */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h.  */
3482#include <sys/types.h>
3483#include <$ac_hdr>
3484
3485int
3486main ()
3487{
3488if ((DIR *) 0)
3489return 0;
3490  ;
3491  return 0;
3492}
3493_ACEOF
3494rm -f conftest.$ac_objext
3495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496  (eval $ac_compile) 2>conftest.er1
3497  ac_status=$?
3498  grep -v '^ *+' conftest.er1 >conftest.err
3499  rm -f conftest.er1
3500  cat conftest.err >&5
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); } &&
3503	 { ac_try='test -z "$ac_c_werror_flag"
3504			 || test ! -s conftest.err'
3505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506  (eval $ac_try) 2>&5
3507  ac_status=$?
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); }; } &&
3510	 { ac_try='test -s conftest.$ac_objext'
3511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512  (eval $ac_try) 2>&5
3513  ac_status=$?
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); }; }; then
3516  eval "$as_ac_Header=yes"
3517else
3518  echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521eval "$as_ac_Header=no"
3522fi
3523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3524fi
3525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3527if test `eval echo '${'$as_ac_Header'}'` = yes; then
3528  cat >>confdefs.h <<_ACEOF
3529#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3530_ACEOF
3531
3532ac_header_dirent=$ac_hdr; break
3533fi
3534
3535done
3536# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3537if test $ac_header_dirent = dirent.h; then
3538  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3539echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3540if test "${ac_cv_search_opendir+set}" = set; then
3541  echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543  ac_func_search_save_LIBS=$LIBS
3544ac_cv_search_opendir=no
3545cat >conftest.$ac_ext <<_ACEOF
3546/* confdefs.h.  */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h.  */
3551
3552/* Override any gcc2 internal prototype to avoid an error.  */
3553#ifdef __cplusplus
3554extern "C"
3555#endif
3556/* We use char because int might match the return type of a gcc2
3557   builtin and then its argument prototype would still apply.  */
3558char opendir ();
3559int
3560main ()
3561{
3562opendir ();
3563  ;
3564  return 0;
3565}
3566_ACEOF
3567rm -f conftest.$ac_objext conftest$ac_exeext
3568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3569  (eval $ac_link) 2>conftest.er1
3570  ac_status=$?
3571  grep -v '^ *+' conftest.er1 >conftest.err
3572  rm -f conftest.er1
3573  cat conftest.err >&5
3574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575  (exit $ac_status); } &&
3576	 { ac_try='test -z "$ac_c_werror_flag"
3577			 || test ! -s conftest.err'
3578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579  (eval $ac_try) 2>&5
3580  ac_status=$?
3581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582  (exit $ac_status); }; } &&
3583	 { ac_try='test -s conftest$ac_exeext'
3584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585  (eval $ac_try) 2>&5
3586  ac_status=$?
3587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588  (exit $ac_status); }; }; then
3589  ac_cv_search_opendir="none required"
3590else
3591  echo "$as_me: failed program was:" >&5
3592sed 's/^/| /' conftest.$ac_ext >&5
3593
3594fi
3595rm -f conftest.err conftest.$ac_objext \
3596      conftest$ac_exeext conftest.$ac_ext
3597if test "$ac_cv_search_opendir" = no; then
3598  for ac_lib in dir; do
3599    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3600    cat >conftest.$ac_ext <<_ACEOF
3601/* confdefs.h.  */
3602_ACEOF
3603cat confdefs.h >>conftest.$ac_ext
3604cat >>conftest.$ac_ext <<_ACEOF
3605/* end confdefs.h.  */
3606
3607/* Override any gcc2 internal prototype to avoid an error.  */
3608#ifdef __cplusplus
3609extern "C"
3610#endif
3611/* We use char because int might match the return type of a gcc2
3612   builtin and then its argument prototype would still apply.  */
3613char opendir ();
3614int
3615main ()
3616{
3617opendir ();
3618  ;
3619  return 0;
3620}
3621_ACEOF
3622rm -f conftest.$ac_objext conftest$ac_exeext
3623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3624  (eval $ac_link) 2>conftest.er1
3625  ac_status=$?
3626  grep -v '^ *+' conftest.er1 >conftest.err
3627  rm -f conftest.er1
3628  cat conftest.err >&5
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); } &&
3631	 { ac_try='test -z "$ac_c_werror_flag"
3632			 || test ! -s conftest.err'
3633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634  (eval $ac_try) 2>&5
3635  ac_status=$?
3636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637  (exit $ac_status); }; } &&
3638	 { ac_try='test -s conftest$ac_exeext'
3639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640  (eval $ac_try) 2>&5
3641  ac_status=$?
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); }; }; then
3644  ac_cv_search_opendir="-l$ac_lib"
3645break
3646else
3647  echo "$as_me: failed program was:" >&5
3648sed 's/^/| /' conftest.$ac_ext >&5
3649
3650fi
3651rm -f conftest.err conftest.$ac_objext \
3652      conftest$ac_exeext conftest.$ac_ext
3653  done
3654fi
3655LIBS=$ac_func_search_save_LIBS
3656fi
3657echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3658echo "${ECHO_T}$ac_cv_search_opendir" >&6
3659if test "$ac_cv_search_opendir" != no; then
3660  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3661
3662fi
3663
3664else
3665  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3666echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3667if test "${ac_cv_search_opendir+set}" = set; then
3668  echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670  ac_func_search_save_LIBS=$LIBS
3671ac_cv_search_opendir=no
3672cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h.  */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h.  */
3678
3679/* Override any gcc2 internal prototype to avoid an error.  */
3680#ifdef __cplusplus
3681extern "C"
3682#endif
3683/* We use char because int might match the return type of a gcc2
3684   builtin and then its argument prototype would still apply.  */
3685char opendir ();
3686int
3687main ()
3688{
3689opendir ();
3690  ;
3691  return 0;
3692}
3693_ACEOF
3694rm -f conftest.$ac_objext conftest$ac_exeext
3695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3696  (eval $ac_link) 2>conftest.er1
3697  ac_status=$?
3698  grep -v '^ *+' conftest.er1 >conftest.err
3699  rm -f conftest.er1
3700  cat conftest.err >&5
3701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702  (exit $ac_status); } &&
3703	 { ac_try='test -z "$ac_c_werror_flag"
3704			 || test ! -s conftest.err'
3705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706  (eval $ac_try) 2>&5
3707  ac_status=$?
3708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709  (exit $ac_status); }; } &&
3710	 { ac_try='test -s conftest$ac_exeext'
3711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712  (eval $ac_try) 2>&5
3713  ac_status=$?
3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); }; }; then
3716  ac_cv_search_opendir="none required"
3717else
3718  echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721fi
3722rm -f conftest.err conftest.$ac_objext \
3723      conftest$ac_exeext conftest.$ac_ext
3724if test "$ac_cv_search_opendir" = no; then
3725  for ac_lib in x; do
3726    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3727    cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h.  */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h.  */
3733
3734/* Override any gcc2 internal prototype to avoid an error.  */
3735#ifdef __cplusplus
3736extern "C"
3737#endif
3738/* We use char because int might match the return type of a gcc2
3739   builtin and then its argument prototype would still apply.  */
3740char opendir ();
3741int
3742main ()
3743{
3744opendir ();
3745  ;
3746  return 0;
3747}
3748_ACEOF
3749rm -f conftest.$ac_objext conftest$ac_exeext
3750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3751  (eval $ac_link) 2>conftest.er1
3752  ac_status=$?
3753  grep -v '^ *+' conftest.er1 >conftest.err
3754  rm -f conftest.er1
3755  cat conftest.err >&5
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); } &&
3758	 { ac_try='test -z "$ac_c_werror_flag"
3759			 || test ! -s conftest.err'
3760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761  (eval $ac_try) 2>&5
3762  ac_status=$?
3763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764  (exit $ac_status); }; } &&
3765	 { ac_try='test -s conftest$ac_exeext'
3766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767  (eval $ac_try) 2>&5
3768  ac_status=$?
3769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770  (exit $ac_status); }; }; then
3771  ac_cv_search_opendir="-l$ac_lib"
3772break
3773else
3774  echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777fi
3778rm -f conftest.err conftest.$ac_objext \
3779      conftest$ac_exeext conftest.$ac_ext
3780  done
3781fi
3782LIBS=$ac_func_search_save_LIBS
3783fi
3784echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3785echo "${ECHO_T}$ac_cv_search_opendir" >&6
3786if test "$ac_cv_search_opendir" != no; then
3787  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3788
3789fi
3790
3791fi
3792
3793
3794
3795
3796
3797
3798
3799
3800for ac_header in sys/sysmacros.h sys/syslimits.h \
3801	getopt.h features.h malloc.h sys/poll.h stddef.h
3802do
3803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3804if eval "test \"\${$as_ac_Header+set}\" = set"; then
3805  echo "$as_me:$LINENO: checking for $ac_header" >&5
3806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3807if eval "test \"\${$as_ac_Header+set}\" = set"; then
3808  echo $ECHO_N "(cached) $ECHO_C" >&6
3809fi
3810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3812else
3813  # Is the header compilable?
3814echo "$as_me:$LINENO: checking $ac_header usability" >&5
3815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3816cat >conftest.$ac_ext <<_ACEOF
3817/* confdefs.h.  */
3818_ACEOF
3819cat confdefs.h >>conftest.$ac_ext
3820cat >>conftest.$ac_ext <<_ACEOF
3821/* end confdefs.h.  */
3822$ac_includes_default
3823#include <$ac_header>
3824_ACEOF
3825rm -f conftest.$ac_objext
3826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827  (eval $ac_compile) 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); } &&
3834	 { ac_try='test -z "$ac_c_werror_flag"
3835			 || test ! -s conftest.err'
3836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837  (eval $ac_try) 2>&5
3838  ac_status=$?
3839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840  (exit $ac_status); }; } &&
3841	 { ac_try='test -s conftest.$ac_objext'
3842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843  (eval $ac_try) 2>&5
3844  ac_status=$?
3845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846  (exit $ac_status); }; }; then
3847  ac_header_compiler=yes
3848else
3849  echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852ac_header_compiler=no
3853fi
3854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3856echo "${ECHO_T}$ac_header_compiler" >&6
3857
3858# Is the header present?
3859echo "$as_me:$LINENO: checking $ac_header presence" >&5
3860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3861cat >conftest.$ac_ext <<_ACEOF
3862/* confdefs.h.  */
3863_ACEOF
3864cat confdefs.h >>conftest.$ac_ext
3865cat >>conftest.$ac_ext <<_ACEOF
3866/* end confdefs.h.  */
3867#include <$ac_header>
3868_ACEOF
3869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3870  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3871  ac_status=$?
3872  grep -v '^ *+' conftest.er1 >conftest.err
3873  rm -f conftest.er1
3874  cat conftest.err >&5
3875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876  (exit $ac_status); } >/dev/null; then
3877  if test -s conftest.err; then
3878    ac_cpp_err=$ac_c_preproc_warn_flag
3879    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3880  else
3881    ac_cpp_err=
3882  fi
3883else
3884  ac_cpp_err=yes
3885fi
3886if test -z "$ac_cpp_err"; then
3887  ac_header_preproc=yes
3888else
3889  echo "$as_me: failed program was:" >&5
3890sed 's/^/| /' conftest.$ac_ext >&5
3891
3892  ac_header_preproc=no
3893fi
3894rm -f conftest.err conftest.$ac_ext
3895echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3896echo "${ECHO_T}$ac_header_preproc" >&6
3897
3898# So?  What about this header?
3899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3900  yes:no: )
3901    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3902echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3903    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3904echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3905    ac_header_preproc=yes
3906    ;;
3907  no:yes:* )
3908    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3910    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3911echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3912    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3913echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3914    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3915echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3916    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3918    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3919echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3920    (
3921      cat <<\_ASBOX
3922## ---------------------------------------- ##
3923## Report this to lib-bug-people@NetBSD.org ##
3924## ---------------------------------------- ##
3925_ASBOX
3926    ) |
3927      sed "s/^/$as_me: WARNING:     /" >&2
3928    ;;
3929esac
3930echo "$as_me:$LINENO: checking for $ac_header" >&5
3931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3932if eval "test \"\${$as_ac_Header+set}\" = set"; then
3933  echo $ECHO_N "(cached) $ECHO_C" >&6
3934else
3935  eval "$as_ac_Header=\$ac_header_preproc"
3936fi
3937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3939
3940fi
3941if test `eval echo '${'$as_ac_Header'}'` = yes; then
3942  cat >>confdefs.h <<_ACEOF
3943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3944_ACEOF
3945
3946fi
3947
3948done
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h sys/endian.h \
3962	sys/featuretest.h err.h inttypes.h libgen.h paths.h stdint.h util.h
3963do
3964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3965if eval "test \"\${$as_ac_Header+set}\" = set"; then
3966  echo "$as_me:$LINENO: checking for $ac_header" >&5
3967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3968if eval "test \"\${$as_ac_Header+set}\" = set"; then
3969  echo $ECHO_N "(cached) $ECHO_C" >&6
3970fi
3971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3972echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3973else
3974  # Is the header compilable?
3975echo "$as_me:$LINENO: checking $ac_header usability" >&5
3976echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3977cat >conftest.$ac_ext <<_ACEOF
3978/* confdefs.h.  */
3979_ACEOF
3980cat confdefs.h >>conftest.$ac_ext
3981cat >>conftest.$ac_ext <<_ACEOF
3982/* end confdefs.h.  */
3983$ac_includes_default
3984#include <$ac_header>
3985_ACEOF
3986rm -f conftest.$ac_objext
3987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988  (eval $ac_compile) 2>conftest.er1
3989  ac_status=$?
3990  grep -v '^ *+' conftest.er1 >conftest.err
3991  rm -f conftest.er1
3992  cat conftest.err >&5
3993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994  (exit $ac_status); } &&
3995	 { ac_try='test -z "$ac_c_werror_flag"
3996			 || test ! -s conftest.err'
3997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998  (eval $ac_try) 2>&5
3999  ac_status=$?
4000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001  (exit $ac_status); }; } &&
4002	 { ac_try='test -s conftest.$ac_objext'
4003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004  (eval $ac_try) 2>&5
4005  ac_status=$?
4006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007  (exit $ac_status); }; }; then
4008  ac_header_compiler=yes
4009else
4010  echo "$as_me: failed program was:" >&5
4011sed 's/^/| /' conftest.$ac_ext >&5
4012
4013ac_header_compiler=no
4014fi
4015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4016echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4017echo "${ECHO_T}$ac_header_compiler" >&6
4018
4019# Is the header present?
4020echo "$as_me:$LINENO: checking $ac_header presence" >&5
4021echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4022cat >conftest.$ac_ext <<_ACEOF
4023/* confdefs.h.  */
4024_ACEOF
4025cat confdefs.h >>conftest.$ac_ext
4026cat >>conftest.$ac_ext <<_ACEOF
4027/* end confdefs.h.  */
4028#include <$ac_header>
4029_ACEOF
4030if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4031  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4032  ac_status=$?
4033  grep -v '^ *+' conftest.er1 >conftest.err
4034  rm -f conftest.er1
4035  cat conftest.err >&5
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); } >/dev/null; then
4038  if test -s conftest.err; then
4039    ac_cpp_err=$ac_c_preproc_warn_flag
4040    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4041  else
4042    ac_cpp_err=
4043  fi
4044else
4045  ac_cpp_err=yes
4046fi
4047if test -z "$ac_cpp_err"; then
4048  ac_header_preproc=yes
4049else
4050  echo "$as_me: failed program was:" >&5
4051sed 's/^/| /' conftest.$ac_ext >&5
4052
4053  ac_header_preproc=no
4054fi
4055rm -f conftest.err conftest.$ac_ext
4056echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4057echo "${ECHO_T}$ac_header_preproc" >&6
4058
4059# So?  What about this header?
4060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4061  yes:no: )
4062    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4063echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4064    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4065echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4066    ac_header_preproc=yes
4067    ;;
4068  no:yes:* )
4069    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4070echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4071    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4072echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4073    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4074echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4075    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4076echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4077    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4078echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4079    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4080echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4081    (
4082      cat <<\_ASBOX
4083## ---------------------------------------- ##
4084## Report this to lib-bug-people@NetBSD.org ##
4085## ---------------------------------------- ##
4086_ASBOX
4087    ) |
4088      sed "s/^/$as_me: WARNING:     /" >&2
4089    ;;
4090esac
4091echo "$as_me:$LINENO: checking for $ac_header" >&5
4092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4093if eval "test \"\${$as_ac_Header+set}\" = set"; then
4094  echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096  eval "$as_ac_Header=\$ac_header_preproc"
4097fi
4098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4100
4101fi
4102if test `eval echo '${'$as_ac_Header'}'` = yes; then
4103  cat >>confdefs.h <<_ACEOF
4104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4105_ACEOF
4106
4107else
4108  test -f include/$ac_header || touch include/$ac_header
4109fi
4110
4111done
4112
4113
4114
4115for ac_header in rpc/types.h netconfig.h
4116do
4117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4118if eval "test \"\${$as_ac_Header+set}\" = set"; then
4119  echo "$as_me:$LINENO: checking for $ac_header" >&5
4120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4121if eval "test \"\${$as_ac_Header+set}\" = set"; then
4122  echo $ECHO_N "(cached) $ECHO_C" >&6
4123fi
4124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4125echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4126else
4127  # Is the header compilable?
4128echo "$as_me:$LINENO: checking $ac_header usability" >&5
4129echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4130cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h.  */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h.  */
4136$ac_includes_default
4137#include <$ac_header>
4138_ACEOF
4139rm -f conftest.$ac_objext
4140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141  (eval $ac_compile) 2>conftest.er1
4142  ac_status=$?
4143  grep -v '^ *+' conftest.er1 >conftest.err
4144  rm -f conftest.er1
4145  cat conftest.err >&5
4146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147  (exit $ac_status); } &&
4148	 { ac_try='test -z "$ac_c_werror_flag"
4149			 || test ! -s conftest.err'
4150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151  (eval $ac_try) 2>&5
4152  ac_status=$?
4153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154  (exit $ac_status); }; } &&
4155	 { ac_try='test -s conftest.$ac_objext'
4156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157  (eval $ac_try) 2>&5
4158  ac_status=$?
4159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160  (exit $ac_status); }; }; then
4161  ac_header_compiler=yes
4162else
4163  echo "$as_me: failed program was:" >&5
4164sed 's/^/| /' conftest.$ac_ext >&5
4165
4166ac_header_compiler=no
4167fi
4168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4169echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4170echo "${ECHO_T}$ac_header_compiler" >&6
4171
4172# Is the header present?
4173echo "$as_me:$LINENO: checking $ac_header presence" >&5
4174echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4175cat >conftest.$ac_ext <<_ACEOF
4176/* confdefs.h.  */
4177_ACEOF
4178cat confdefs.h >>conftest.$ac_ext
4179cat >>conftest.$ac_ext <<_ACEOF
4180/* end confdefs.h.  */
4181#include <$ac_header>
4182_ACEOF
4183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4184  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4185  ac_status=$?
4186  grep -v '^ *+' conftest.er1 >conftest.err
4187  rm -f conftest.er1
4188  cat conftest.err >&5
4189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190  (exit $ac_status); } >/dev/null; then
4191  if test -s conftest.err; then
4192    ac_cpp_err=$ac_c_preproc_warn_flag
4193    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4194  else
4195    ac_cpp_err=
4196  fi
4197else
4198  ac_cpp_err=yes
4199fi
4200if test -z "$ac_cpp_err"; then
4201  ac_header_preproc=yes
4202else
4203  echo "$as_me: failed program was:" >&5
4204sed 's/^/| /' conftest.$ac_ext >&5
4205
4206  ac_header_preproc=no
4207fi
4208rm -f conftest.err conftest.$ac_ext
4209echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4210echo "${ECHO_T}$ac_header_preproc" >&6
4211
4212# So?  What about this header?
4213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4214  yes:no: )
4215    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4217    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4219    ac_header_preproc=yes
4220    ;;
4221  no:yes:* )
4222    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4224    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4225echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4226    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4228    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4229echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4230    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4232    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4234    (
4235      cat <<\_ASBOX
4236## ---------------------------------------- ##
4237## Report this to lib-bug-people@NetBSD.org ##
4238## ---------------------------------------- ##
4239_ASBOX
4240    ) |
4241      sed "s/^/$as_me: WARNING:     /" >&2
4242    ;;
4243esac
4244echo "$as_me:$LINENO: checking for $ac_header" >&5
4245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4246if eval "test \"\${$as_ac_Header+set}\" = set"; then
4247  echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249  eval "$as_ac_Header=\$ac_header_preproc"
4250fi
4251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4253
4254fi
4255if test `eval echo '${'$as_ac_Header'}'` = yes; then
4256  cat >>confdefs.h <<_ACEOF
4257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4258_ACEOF
4259
4260else
4261  echo '#include "nbtool_config.h"' >include/$ac_header.new
4262	echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
4263	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
4264		rm -f include/$ac_header.new
4265	else
4266		mv -f include/$ac_header.new include/$ac_header
4267	fi
4268fi
4269
4270done
4271
4272
4273# Typedefs.
4274echo "$as_me:$LINENO: checking for size_t" >&5
4275echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4276if test "${ac_cv_type_size_t+set}" = set; then
4277  echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279  cat >conftest.$ac_ext <<_ACEOF
4280/* confdefs.h.  */
4281_ACEOF
4282cat confdefs.h >>conftest.$ac_ext
4283cat >>conftest.$ac_ext <<_ACEOF
4284/* end confdefs.h.  */
4285$ac_includes_default
4286int
4287main ()
4288{
4289if ((size_t *) 0)
4290  return 0;
4291if (sizeof (size_t))
4292  return 0;
4293  ;
4294  return 0;
4295}
4296_ACEOF
4297rm -f conftest.$ac_objext
4298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4299  (eval $ac_compile) 2>conftest.er1
4300  ac_status=$?
4301  grep -v '^ *+' conftest.er1 >conftest.err
4302  rm -f conftest.er1
4303  cat conftest.err >&5
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); } &&
4306	 { ac_try='test -z "$ac_c_werror_flag"
4307			 || test ! -s conftest.err'
4308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309  (eval $ac_try) 2>&5
4310  ac_status=$?
4311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312  (exit $ac_status); }; } &&
4313	 { ac_try='test -s conftest.$ac_objext'
4314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315  (eval $ac_try) 2>&5
4316  ac_status=$?
4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318  (exit $ac_status); }; }; then
4319  ac_cv_type_size_t=yes
4320else
4321  echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324ac_cv_type_size_t=no
4325fi
4326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4327fi
4328echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4329echo "${ECHO_T}$ac_cv_type_size_t" >&6
4330if test $ac_cv_type_size_t = yes; then
4331  :
4332else
4333
4334cat >>confdefs.h <<_ACEOF
4335#define size_t unsigned
4336_ACEOF
4337
4338fi
4339
4340echo "$as_me:$LINENO: checking for id_t" >&5
4341echo $ECHO_N "checking for id_t... $ECHO_C" >&6
4342if test "${ac_cv_type_id_t+set}" = set; then
4343  echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345  cat >conftest.$ac_ext <<_ACEOF
4346/* confdefs.h.  */
4347_ACEOF
4348cat confdefs.h >>conftest.$ac_ext
4349cat >>conftest.$ac_ext <<_ACEOF
4350/* end confdefs.h.  */
4351$ac_includes_default
4352int
4353main ()
4354{
4355if ((id_t *) 0)
4356  return 0;
4357if (sizeof (id_t))
4358  return 0;
4359  ;
4360  return 0;
4361}
4362_ACEOF
4363rm -f conftest.$ac_objext
4364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365  (eval $ac_compile) 2>conftest.er1
4366  ac_status=$?
4367  grep -v '^ *+' conftest.er1 >conftest.err
4368  rm -f conftest.er1
4369  cat conftest.err >&5
4370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371  (exit $ac_status); } &&
4372	 { ac_try='test -z "$ac_c_werror_flag"
4373			 || test ! -s conftest.err'
4374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375  (eval $ac_try) 2>&5
4376  ac_status=$?
4377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378  (exit $ac_status); }; } &&
4379	 { ac_try='test -s conftest.$ac_objext'
4380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381  (eval $ac_try) 2>&5
4382  ac_status=$?
4383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384  (exit $ac_status); }; }; then
4385  ac_cv_type_id_t=yes
4386else
4387  echo "$as_me: failed program was:" >&5
4388sed 's/^/| /' conftest.$ac_ext >&5
4389
4390ac_cv_type_id_t=no
4391fi
4392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393fi
4394echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5
4395echo "${ECHO_T}$ac_cv_type_id_t" >&6
4396if test $ac_cv_type_id_t = yes; then
4397
4398cat >>confdefs.h <<_ACEOF
4399#define HAVE_ID_T 1
4400_ACEOF
4401
4402
4403fi
4404echo "$as_me:$LINENO: checking for long long" >&5
4405echo $ECHO_N "checking for long long... $ECHO_C" >&6
4406if test "${ac_cv_type_long_long+set}" = set; then
4407  echo $ECHO_N "(cached) $ECHO_C" >&6
4408else
4409  cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h.  */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h.  */
4415$ac_includes_default
4416int
4417main ()
4418{
4419if ((long long *) 0)
4420  return 0;
4421if (sizeof (long long))
4422  return 0;
4423  ;
4424  return 0;
4425}
4426_ACEOF
4427rm -f conftest.$ac_objext
4428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429  (eval $ac_compile) 2>conftest.er1
4430  ac_status=$?
4431  grep -v '^ *+' conftest.er1 >conftest.err
4432  rm -f conftest.er1
4433  cat conftest.err >&5
4434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435  (exit $ac_status); } &&
4436	 { ac_try='test -z "$ac_c_werror_flag"
4437			 || test ! -s conftest.err'
4438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439  (eval $ac_try) 2>&5
4440  ac_status=$?
4441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442  (exit $ac_status); }; } &&
4443	 { ac_try='test -s conftest.$ac_objext'
4444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445  (eval $ac_try) 2>&5
4446  ac_status=$?
4447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448  (exit $ac_status); }; }; then
4449  ac_cv_type_long_long=yes
4450else
4451  echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454ac_cv_type_long_long=no
4455fi
4456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4457fi
4458echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4459echo "${ECHO_T}$ac_cv_type_long_long" >&6
4460if test $ac_cv_type_long_long = yes; then
4461
4462cat >>confdefs.h <<_ACEOF
4463#define HAVE_LONG_LONG 1
4464_ACEOF
4465
4466
4467fi
4468echo "$as_me:$LINENO: checking for u_long" >&5
4469echo $ECHO_N "checking for u_long... $ECHO_C" >&6
4470if test "${ac_cv_type_u_long+set}" = set; then
4471  echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
4473  cat >conftest.$ac_ext <<_ACEOF
4474/* confdefs.h.  */
4475_ACEOF
4476cat confdefs.h >>conftest.$ac_ext
4477cat >>conftest.$ac_ext <<_ACEOF
4478/* end confdefs.h.  */
4479$ac_includes_default
4480int
4481main ()
4482{
4483if ((u_long *) 0)
4484  return 0;
4485if (sizeof (u_long))
4486  return 0;
4487  ;
4488  return 0;
4489}
4490_ACEOF
4491rm -f conftest.$ac_objext
4492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493  (eval $ac_compile) 2>conftest.er1
4494  ac_status=$?
4495  grep -v '^ *+' conftest.er1 >conftest.err
4496  rm -f conftest.er1
4497  cat conftest.err >&5
4498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499  (exit $ac_status); } &&
4500	 { ac_try='test -z "$ac_c_werror_flag"
4501			 || test ! -s conftest.err'
4502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503  (eval $ac_try) 2>&5
4504  ac_status=$?
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); }; } &&
4507	 { ac_try='test -s conftest.$ac_objext'
4508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509  (eval $ac_try) 2>&5
4510  ac_status=$?
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); }; }; then
4513  ac_cv_type_u_long=yes
4514else
4515  echo "$as_me: failed program was:" >&5
4516sed 's/^/| /' conftest.$ac_ext >&5
4517
4518ac_cv_type_u_long=no
4519fi
4520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4521fi
4522echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
4523echo "${ECHO_T}$ac_cv_type_u_long" >&6
4524if test $ac_cv_type_u_long = yes; then
4525
4526cat >>confdefs.h <<_ACEOF
4527#define HAVE_U_LONG 1
4528_ACEOF
4529
4530
4531fi
4532echo "$as_me:$LINENO: checking for u_char" >&5
4533echo $ECHO_N "checking for u_char... $ECHO_C" >&6
4534if test "${ac_cv_type_u_char+set}" = set; then
4535  echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537  cat >conftest.$ac_ext <<_ACEOF
4538/* confdefs.h.  */
4539_ACEOF
4540cat confdefs.h >>conftest.$ac_ext
4541cat >>conftest.$ac_ext <<_ACEOF
4542/* end confdefs.h.  */
4543$ac_includes_default
4544int
4545main ()
4546{
4547if ((u_char *) 0)
4548  return 0;
4549if (sizeof (u_char))
4550  return 0;
4551  ;
4552  return 0;
4553}
4554_ACEOF
4555rm -f conftest.$ac_objext
4556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557  (eval $ac_compile) 2>conftest.er1
4558  ac_status=$?
4559  grep -v '^ *+' conftest.er1 >conftest.err
4560  rm -f conftest.er1
4561  cat conftest.err >&5
4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); } &&
4564	 { ac_try='test -z "$ac_c_werror_flag"
4565			 || test ! -s conftest.err'
4566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567  (eval $ac_try) 2>&5
4568  ac_status=$?
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); }; } &&
4571	 { ac_try='test -s conftest.$ac_objext'
4572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573  (eval $ac_try) 2>&5
4574  ac_status=$?
4575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576  (exit $ac_status); }; }; then
4577  ac_cv_type_u_char=yes
4578else
4579  echo "$as_me: failed program was:" >&5
4580sed 's/^/| /' conftest.$ac_ext >&5
4581
4582ac_cv_type_u_char=no
4583fi
4584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585fi
4586echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
4587echo "${ECHO_T}$ac_cv_type_u_char" >&6
4588if test $ac_cv_type_u_char = yes; then
4589
4590cat >>confdefs.h <<_ACEOF
4591#define HAVE_U_CHAR 1
4592_ACEOF
4593
4594
4595fi
4596echo "$as_me:$LINENO: checking for u_short" >&5
4597echo $ECHO_N "checking for u_short... $ECHO_C" >&6
4598if test "${ac_cv_type_u_short+set}" = set; then
4599  echo $ECHO_N "(cached) $ECHO_C" >&6
4600else
4601  cat >conftest.$ac_ext <<_ACEOF
4602/* confdefs.h.  */
4603_ACEOF
4604cat confdefs.h >>conftest.$ac_ext
4605cat >>conftest.$ac_ext <<_ACEOF
4606/* end confdefs.h.  */
4607$ac_includes_default
4608int
4609main ()
4610{
4611if ((u_short *) 0)
4612  return 0;
4613if (sizeof (u_short))
4614  return 0;
4615  ;
4616  return 0;
4617}
4618_ACEOF
4619rm -f conftest.$ac_objext
4620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4621  (eval $ac_compile) 2>conftest.er1
4622  ac_status=$?
4623  grep -v '^ *+' conftest.er1 >conftest.err
4624  rm -f conftest.er1
4625  cat conftest.err >&5
4626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627  (exit $ac_status); } &&
4628	 { ac_try='test -z "$ac_c_werror_flag"
4629			 || test ! -s conftest.err'
4630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631  (eval $ac_try) 2>&5
4632  ac_status=$?
4633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634  (exit $ac_status); }; } &&
4635	 { ac_try='test -s conftest.$ac_objext'
4636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637  (eval $ac_try) 2>&5
4638  ac_status=$?
4639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640  (exit $ac_status); }; }; then
4641  ac_cv_type_u_short=yes
4642else
4643  echo "$as_me: failed program was:" >&5
4644sed 's/^/| /' conftest.$ac_ext >&5
4645
4646ac_cv_type_u_short=no
4647fi
4648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4649fi
4650echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5
4651echo "${ECHO_T}$ac_cv_type_u_short" >&6
4652if test $ac_cv_type_u_short = yes; then
4653
4654cat >>confdefs.h <<_ACEOF
4655#define HAVE_U_SHORT 1
4656_ACEOF
4657
4658
4659fi
4660echo "$as_me:$LINENO: checking for u_int" >&5
4661echo $ECHO_N "checking for u_int... $ECHO_C" >&6
4662if test "${ac_cv_type_u_int+set}" = set; then
4663  echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665  cat >conftest.$ac_ext <<_ACEOF
4666/* confdefs.h.  */
4667_ACEOF
4668cat confdefs.h >>conftest.$ac_ext
4669cat >>conftest.$ac_ext <<_ACEOF
4670/* end confdefs.h.  */
4671$ac_includes_default
4672int
4673main ()
4674{
4675if ((u_int *) 0)
4676  return 0;
4677if (sizeof (u_int))
4678  return 0;
4679  ;
4680  return 0;
4681}
4682_ACEOF
4683rm -f conftest.$ac_objext
4684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685  (eval $ac_compile) 2>conftest.er1
4686  ac_status=$?
4687  grep -v '^ *+' conftest.er1 >conftest.err
4688  rm -f conftest.er1
4689  cat conftest.err >&5
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); } &&
4692	 { ac_try='test -z "$ac_c_werror_flag"
4693			 || test ! -s conftest.err'
4694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695  (eval $ac_try) 2>&5
4696  ac_status=$?
4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698  (exit $ac_status); }; } &&
4699	 { ac_try='test -s conftest.$ac_objext'
4700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701  (eval $ac_try) 2>&5
4702  ac_status=$?
4703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704  (exit $ac_status); }; }; then
4705  ac_cv_type_u_int=yes
4706else
4707  echo "$as_me: failed program was:" >&5
4708sed 's/^/| /' conftest.$ac_ext >&5
4709
4710ac_cv_type_u_int=no
4711fi
4712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713fi
4714echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
4715echo "${ECHO_T}$ac_cv_type_u_int" >&6
4716if test $ac_cv_type_u_int = yes; then
4717
4718cat >>confdefs.h <<_ACEOF
4719#define HAVE_U_INT 1
4720_ACEOF
4721
4722
4723fi
4724echo "$as_me:$LINENO: checking for u_quad_t" >&5
4725echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
4726if test "${ac_cv_type_u_quad_t+set}" = set; then
4727  echo $ECHO_N "(cached) $ECHO_C" >&6
4728else
4729  cat >conftest.$ac_ext <<_ACEOF
4730/* confdefs.h.  */
4731_ACEOF
4732cat confdefs.h >>conftest.$ac_ext
4733cat >>conftest.$ac_ext <<_ACEOF
4734/* end confdefs.h.  */
4735$ac_includes_default
4736int
4737main ()
4738{
4739if ((u_quad_t *) 0)
4740  return 0;
4741if (sizeof (u_quad_t))
4742  return 0;
4743  ;
4744  return 0;
4745}
4746_ACEOF
4747rm -f conftest.$ac_objext
4748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749  (eval $ac_compile) 2>conftest.er1
4750  ac_status=$?
4751  grep -v '^ *+' conftest.er1 >conftest.err
4752  rm -f conftest.er1
4753  cat conftest.err >&5
4754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755  (exit $ac_status); } &&
4756	 { ac_try='test -z "$ac_c_werror_flag"
4757			 || test ! -s conftest.err'
4758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759  (eval $ac_try) 2>&5
4760  ac_status=$?
4761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762  (exit $ac_status); }; } &&
4763	 { ac_try='test -s conftest.$ac_objext'
4764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765  (eval $ac_try) 2>&5
4766  ac_status=$?
4767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768  (exit $ac_status); }; }; then
4769  ac_cv_type_u_quad_t=yes
4770else
4771  echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774ac_cv_type_u_quad_t=no
4775fi
4776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4777fi
4778echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5
4779echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
4780if test $ac_cv_type_u_quad_t = yes; then
4781
4782cat >>confdefs.h <<_ACEOF
4783#define HAVE_U_QUAD_T 1
4784_ACEOF
4785
4786
4787fi
4788
4789echo "$as_me:$LINENO: checking for socklen_t" >&5
4790echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4791if test "${ac_cv_type_socklen_t+set}" = set; then
4792  echo $ECHO_N "(cached) $ECHO_C" >&6
4793else
4794  cat >conftest.$ac_ext <<_ACEOF
4795/* confdefs.h.  */
4796_ACEOF
4797cat confdefs.h >>conftest.$ac_ext
4798cat >>conftest.$ac_ext <<_ACEOF
4799/* end confdefs.h.  */
4800#include <sys/types.h>
4801#include <sys/socket.h>
4802
4803int
4804main ()
4805{
4806if ((socklen_t *) 0)
4807  return 0;
4808if (sizeof (socklen_t))
4809  return 0;
4810  ;
4811  return 0;
4812}
4813_ACEOF
4814rm -f conftest.$ac_objext
4815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816  (eval $ac_compile) 2>conftest.er1
4817  ac_status=$?
4818  grep -v '^ *+' conftest.er1 >conftest.err
4819  rm -f conftest.er1
4820  cat conftest.err >&5
4821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822  (exit $ac_status); } &&
4823	 { ac_try='test -z "$ac_c_werror_flag"
4824			 || test ! -s conftest.err'
4825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826  (eval $ac_try) 2>&5
4827  ac_status=$?
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); }; } &&
4830	 { ac_try='test -s conftest.$ac_objext'
4831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832  (eval $ac_try) 2>&5
4833  ac_status=$?
4834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835  (exit $ac_status); }; }; then
4836  ac_cv_type_socklen_t=yes
4837else
4838  echo "$as_me: failed program was:" >&5
4839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841ac_cv_type_socklen_t=no
4842fi
4843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844fi
4845echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4846echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4847if test $ac_cv_type_socklen_t = yes; then
4848
4849cat >>confdefs.h <<\_ACEOF
4850#define HAVE_SOCKLEN_T 1
4851_ACEOF
4852
4853fi
4854
4855
4856
4857
4858
4859	echo "$as_me:$LINENO: checking for uint8_t" >&5
4860echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
4861if test "${ac_cv_type_uint8_t+set}" = set; then
4862  echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864  cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h.  */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h.  */
4870$ac_includes_default
4871int
4872main ()
4873{
4874if ((uint8_t *) 0)
4875  return 0;
4876if (sizeof (uint8_t))
4877  return 0;
4878  ;
4879  return 0;
4880}
4881_ACEOF
4882rm -f conftest.$ac_objext
4883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884  (eval $ac_compile) 2>conftest.er1
4885  ac_status=$?
4886  grep -v '^ *+' conftest.er1 >conftest.err
4887  rm -f conftest.er1
4888  cat conftest.err >&5
4889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890  (exit $ac_status); } &&
4891	 { ac_try='test -z "$ac_c_werror_flag"
4892			 || test ! -s conftest.err'
4893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894  (eval $ac_try) 2>&5
4895  ac_status=$?
4896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897  (exit $ac_status); }; } &&
4898	 { ac_try='test -s conftest.$ac_objext'
4899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900  (eval $ac_try) 2>&5
4901  ac_status=$?
4902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903  (exit $ac_status); }; }; then
4904  ac_cv_type_uint8_t=yes
4905else
4906  echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909ac_cv_type_uint8_t=no
4910fi
4911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912fi
4913echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
4914echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
4915if test $ac_cv_type_uint8_t = yes; then
4916  :
4917else
4918
4919		echo "$as_me:$LINENO: checking for u_int8_t" >&5
4920echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
4921if test "${ac_cv_type_u_int8_t+set}" = set; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924  cat >conftest.$ac_ext <<_ACEOF
4925/* confdefs.h.  */
4926_ACEOF
4927cat confdefs.h >>conftest.$ac_ext
4928cat >>conftest.$ac_ext <<_ACEOF
4929/* end confdefs.h.  */
4930$ac_includes_default
4931int
4932main ()
4933{
4934if ((u_int8_t *) 0)
4935  return 0;
4936if (sizeof (u_int8_t))
4937  return 0;
4938  ;
4939  return 0;
4940}
4941_ACEOF
4942rm -f conftest.$ac_objext
4943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4944  (eval $ac_compile) 2>conftest.er1
4945  ac_status=$?
4946  grep -v '^ *+' conftest.er1 >conftest.err
4947  rm -f conftest.er1
4948  cat conftest.err >&5
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); } &&
4951	 { ac_try='test -z "$ac_c_werror_flag"
4952			 || test ! -s conftest.err'
4953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954  (eval $ac_try) 2>&5
4955  ac_status=$?
4956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957  (exit $ac_status); }; } &&
4958	 { ac_try='test -s conftest.$ac_objext'
4959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960  (eval $ac_try) 2>&5
4961  ac_status=$?
4962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963  (exit $ac_status); }; }; then
4964  ac_cv_type_u_int8_t=yes
4965else
4966  echo "$as_me: failed program was:" >&5
4967sed 's/^/| /' conftest.$ac_ext >&5
4968
4969ac_cv_type_u_int8_t=no
4970fi
4971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4972fi
4973echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4974echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
4975if test $ac_cv_type_u_int8_t = yes; then
4976
4977cat >>confdefs.h <<\_ACEOF
4978#define uint8_t u_int8_t
4979_ACEOF
4980
4981else
4982  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint8_t" >&5
4983echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
4984   { (exit 1); exit 1; }; }
4985fi
4986
4987
4988fi
4989
4990	echo "$as_me:$LINENO: checking for u_int8_t" >&5
4991echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
4992if test "${ac_cv_type_u_int8_t+set}" = set; then
4993  echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995  cat >conftest.$ac_ext <<_ACEOF
4996/* confdefs.h.  */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h.  */
5001$ac_includes_default
5002int
5003main ()
5004{
5005if ((u_int8_t *) 0)
5006  return 0;
5007if (sizeof (u_int8_t))
5008  return 0;
5009  ;
5010  return 0;
5011}
5012_ACEOF
5013rm -f conftest.$ac_objext
5014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015  (eval $ac_compile) 2>conftest.er1
5016  ac_status=$?
5017  grep -v '^ *+' conftest.er1 >conftest.err
5018  rm -f conftest.er1
5019  cat conftest.err >&5
5020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021  (exit $ac_status); } &&
5022	 { ac_try='test -z "$ac_c_werror_flag"
5023			 || test ! -s conftest.err'
5024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025  (eval $ac_try) 2>&5
5026  ac_status=$?
5027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028  (exit $ac_status); }; } &&
5029	 { ac_try='test -s conftest.$ac_objext'
5030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031  (eval $ac_try) 2>&5
5032  ac_status=$?
5033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034  (exit $ac_status); }; }; then
5035  ac_cv_type_u_int8_t=yes
5036else
5037  echo "$as_me: failed program was:" >&5
5038sed 's/^/| /' conftest.$ac_ext >&5
5039
5040ac_cv_type_u_int8_t=no
5041fi
5042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5043fi
5044echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
5045echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
5046if test $ac_cv_type_u_int8_t = yes; then
5047  :
5048else
5049
5050		echo "$as_me:$LINENO: checking for uint8_t" >&5
5051echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
5052if test "${ac_cv_type_uint8_t+set}" = set; then
5053  echo $ECHO_N "(cached) $ECHO_C" >&6
5054else
5055  cat >conftest.$ac_ext <<_ACEOF
5056/* confdefs.h.  */
5057_ACEOF
5058cat confdefs.h >>conftest.$ac_ext
5059cat >>conftest.$ac_ext <<_ACEOF
5060/* end confdefs.h.  */
5061$ac_includes_default
5062int
5063main ()
5064{
5065if ((uint8_t *) 0)
5066  return 0;
5067if (sizeof (uint8_t))
5068  return 0;
5069  ;
5070  return 0;
5071}
5072_ACEOF
5073rm -f conftest.$ac_objext
5074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075  (eval $ac_compile) 2>conftest.er1
5076  ac_status=$?
5077  grep -v '^ *+' conftest.er1 >conftest.err
5078  rm -f conftest.er1
5079  cat conftest.err >&5
5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081  (exit $ac_status); } &&
5082	 { ac_try='test -z "$ac_c_werror_flag"
5083			 || test ! -s conftest.err'
5084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085  (eval $ac_try) 2>&5
5086  ac_status=$?
5087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088  (exit $ac_status); }; } &&
5089	 { ac_try='test -s conftest.$ac_objext'
5090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091  (eval $ac_try) 2>&5
5092  ac_status=$?
5093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094  (exit $ac_status); }; }; then
5095  ac_cv_type_uint8_t=yes
5096else
5097  echo "$as_me: failed program was:" >&5
5098sed 's/^/| /' conftest.$ac_ext >&5
5099
5100ac_cv_type_uint8_t=no
5101fi
5102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5103fi
5104echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5105echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
5106if test $ac_cv_type_uint8_t = yes; then
5107
5108cat >>confdefs.h <<\_ACEOF
5109#define u_int8_t uint8_t
5110_ACEOF
5111
5112else
5113  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int8_t" >&5
5114echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
5115   { (exit 1); exit 1; }; }
5116fi
5117
5118
5119fi
5120
5121
5122
5123	echo "$as_me:$LINENO: checking for uint16_t" >&5
5124echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5125if test "${ac_cv_type_uint16_t+set}" = set; then
5126  echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128  cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h.  */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h.  */
5134$ac_includes_default
5135int
5136main ()
5137{
5138if ((uint16_t *) 0)
5139  return 0;
5140if (sizeof (uint16_t))
5141  return 0;
5142  ;
5143  return 0;
5144}
5145_ACEOF
5146rm -f conftest.$ac_objext
5147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148  (eval $ac_compile) 2>conftest.er1
5149  ac_status=$?
5150  grep -v '^ *+' conftest.er1 >conftest.err
5151  rm -f conftest.er1
5152  cat conftest.err >&5
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); } &&
5155	 { ac_try='test -z "$ac_c_werror_flag"
5156			 || test ! -s conftest.err'
5157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158  (eval $ac_try) 2>&5
5159  ac_status=$?
5160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161  (exit $ac_status); }; } &&
5162	 { ac_try='test -s conftest.$ac_objext'
5163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164  (eval $ac_try) 2>&5
5165  ac_status=$?
5166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167  (exit $ac_status); }; }; then
5168  ac_cv_type_uint16_t=yes
5169else
5170  echo "$as_me: failed program was:" >&5
5171sed 's/^/| /' conftest.$ac_ext >&5
5172
5173ac_cv_type_uint16_t=no
5174fi
5175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5176fi
5177echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5178echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5179if test $ac_cv_type_uint16_t = yes; then
5180  :
5181else
5182
5183		echo "$as_me:$LINENO: checking for u_int16_t" >&5
5184echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5185if test "${ac_cv_type_u_int16_t+set}" = set; then
5186  echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188  cat >conftest.$ac_ext <<_ACEOF
5189/* confdefs.h.  */
5190_ACEOF
5191cat confdefs.h >>conftest.$ac_ext
5192cat >>conftest.$ac_ext <<_ACEOF
5193/* end confdefs.h.  */
5194$ac_includes_default
5195int
5196main ()
5197{
5198if ((u_int16_t *) 0)
5199  return 0;
5200if (sizeof (u_int16_t))
5201  return 0;
5202  ;
5203  return 0;
5204}
5205_ACEOF
5206rm -f conftest.$ac_objext
5207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208  (eval $ac_compile) 2>conftest.er1
5209  ac_status=$?
5210  grep -v '^ *+' conftest.er1 >conftest.err
5211  rm -f conftest.er1
5212  cat conftest.err >&5
5213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214  (exit $ac_status); } &&
5215	 { ac_try='test -z "$ac_c_werror_flag"
5216			 || test ! -s conftest.err'
5217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218  (eval $ac_try) 2>&5
5219  ac_status=$?
5220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221  (exit $ac_status); }; } &&
5222	 { ac_try='test -s conftest.$ac_objext'
5223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224  (eval $ac_try) 2>&5
5225  ac_status=$?
5226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227  (exit $ac_status); }; }; then
5228  ac_cv_type_u_int16_t=yes
5229else
5230  echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
5232
5233ac_cv_type_u_int16_t=no
5234fi
5235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5236fi
5237echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5238echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5239if test $ac_cv_type_u_int16_t = yes; then
5240
5241cat >>confdefs.h <<\_ACEOF
5242#define uint16_t u_int16_t
5243_ACEOF
5244
5245else
5246  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint16_t" >&5
5247echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
5248   { (exit 1); exit 1; }; }
5249fi
5250
5251
5252fi
5253
5254	echo "$as_me:$LINENO: checking for u_int16_t" >&5
5255echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
5256if test "${ac_cv_type_u_int16_t+set}" = set; then
5257  echo $ECHO_N "(cached) $ECHO_C" >&6
5258else
5259  cat >conftest.$ac_ext <<_ACEOF
5260/* confdefs.h.  */
5261_ACEOF
5262cat confdefs.h >>conftest.$ac_ext
5263cat >>conftest.$ac_ext <<_ACEOF
5264/* end confdefs.h.  */
5265$ac_includes_default
5266int
5267main ()
5268{
5269if ((u_int16_t *) 0)
5270  return 0;
5271if (sizeof (u_int16_t))
5272  return 0;
5273  ;
5274  return 0;
5275}
5276_ACEOF
5277rm -f conftest.$ac_objext
5278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5279  (eval $ac_compile) 2>conftest.er1
5280  ac_status=$?
5281  grep -v '^ *+' conftest.er1 >conftest.err
5282  rm -f conftest.er1
5283  cat conftest.err >&5
5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285  (exit $ac_status); } &&
5286	 { ac_try='test -z "$ac_c_werror_flag"
5287			 || test ! -s conftest.err'
5288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289  (eval $ac_try) 2>&5
5290  ac_status=$?
5291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292  (exit $ac_status); }; } &&
5293	 { ac_try='test -s conftest.$ac_objext'
5294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295  (eval $ac_try) 2>&5
5296  ac_status=$?
5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298  (exit $ac_status); }; }; then
5299  ac_cv_type_u_int16_t=yes
5300else
5301  echo "$as_me: failed program was:" >&5
5302sed 's/^/| /' conftest.$ac_ext >&5
5303
5304ac_cv_type_u_int16_t=no
5305fi
5306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5307fi
5308echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
5309echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
5310if test $ac_cv_type_u_int16_t = yes; then
5311  :
5312else
5313
5314		echo "$as_me:$LINENO: checking for uint16_t" >&5
5315echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5316if test "${ac_cv_type_uint16_t+set}" = set; then
5317  echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
5319  cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h.  */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h.  */
5325$ac_includes_default
5326int
5327main ()
5328{
5329if ((uint16_t *) 0)
5330  return 0;
5331if (sizeof (uint16_t))
5332  return 0;
5333  ;
5334  return 0;
5335}
5336_ACEOF
5337rm -f conftest.$ac_objext
5338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339  (eval $ac_compile) 2>conftest.er1
5340  ac_status=$?
5341  grep -v '^ *+' conftest.er1 >conftest.err
5342  rm -f conftest.er1
5343  cat conftest.err >&5
5344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345  (exit $ac_status); } &&
5346	 { ac_try='test -z "$ac_c_werror_flag"
5347			 || test ! -s conftest.err'
5348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349  (eval $ac_try) 2>&5
5350  ac_status=$?
5351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352  (exit $ac_status); }; } &&
5353	 { ac_try='test -s conftest.$ac_objext'
5354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355  (eval $ac_try) 2>&5
5356  ac_status=$?
5357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358  (exit $ac_status); }; }; then
5359  ac_cv_type_uint16_t=yes
5360else
5361  echo "$as_me: failed program was:" >&5
5362sed 's/^/| /' conftest.$ac_ext >&5
5363
5364ac_cv_type_uint16_t=no
5365fi
5366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5367fi
5368echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5369echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5370if test $ac_cv_type_uint16_t = yes; then
5371
5372cat >>confdefs.h <<\_ACEOF
5373#define u_int16_t uint16_t
5374_ACEOF
5375
5376else
5377  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int16_t" >&5
5378echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
5379   { (exit 1); exit 1; }; }
5380fi
5381
5382
5383fi
5384
5385
5386
5387	echo "$as_me:$LINENO: checking for uint32_t" >&5
5388echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5389if test "${ac_cv_type_uint32_t+set}" = set; then
5390  echo $ECHO_N "(cached) $ECHO_C" >&6
5391else
5392  cat >conftest.$ac_ext <<_ACEOF
5393/* confdefs.h.  */
5394_ACEOF
5395cat confdefs.h >>conftest.$ac_ext
5396cat >>conftest.$ac_ext <<_ACEOF
5397/* end confdefs.h.  */
5398$ac_includes_default
5399int
5400main ()
5401{
5402if ((uint32_t *) 0)
5403  return 0;
5404if (sizeof (uint32_t))
5405  return 0;
5406  ;
5407  return 0;
5408}
5409_ACEOF
5410rm -f conftest.$ac_objext
5411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412  (eval $ac_compile) 2>conftest.er1
5413  ac_status=$?
5414  grep -v '^ *+' conftest.er1 >conftest.err
5415  rm -f conftest.er1
5416  cat conftest.err >&5
5417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418  (exit $ac_status); } &&
5419	 { ac_try='test -z "$ac_c_werror_flag"
5420			 || test ! -s conftest.err'
5421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422  (eval $ac_try) 2>&5
5423  ac_status=$?
5424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425  (exit $ac_status); }; } &&
5426	 { ac_try='test -s conftest.$ac_objext'
5427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428  (eval $ac_try) 2>&5
5429  ac_status=$?
5430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431  (exit $ac_status); }; }; then
5432  ac_cv_type_uint32_t=yes
5433else
5434  echo "$as_me: failed program was:" >&5
5435sed 's/^/| /' conftest.$ac_ext >&5
5436
5437ac_cv_type_uint32_t=no
5438fi
5439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5440fi
5441echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5442echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5443if test $ac_cv_type_uint32_t = yes; then
5444  :
5445else
5446
5447		echo "$as_me:$LINENO: checking for u_int32_t" >&5
5448echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5449if test "${ac_cv_type_u_int32_t+set}" = set; then
5450  echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452  cat >conftest.$ac_ext <<_ACEOF
5453/* confdefs.h.  */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
5457/* end confdefs.h.  */
5458$ac_includes_default
5459int
5460main ()
5461{
5462if ((u_int32_t *) 0)
5463  return 0;
5464if (sizeof (u_int32_t))
5465  return 0;
5466  ;
5467  return 0;
5468}
5469_ACEOF
5470rm -f conftest.$ac_objext
5471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472  (eval $ac_compile) 2>conftest.er1
5473  ac_status=$?
5474  grep -v '^ *+' conftest.er1 >conftest.err
5475  rm -f conftest.er1
5476  cat conftest.err >&5
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); } &&
5479	 { ac_try='test -z "$ac_c_werror_flag"
5480			 || test ! -s conftest.err'
5481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482  (eval $ac_try) 2>&5
5483  ac_status=$?
5484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485  (exit $ac_status); }; } &&
5486	 { ac_try='test -s conftest.$ac_objext'
5487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488  (eval $ac_try) 2>&5
5489  ac_status=$?
5490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491  (exit $ac_status); }; }; then
5492  ac_cv_type_u_int32_t=yes
5493else
5494  echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
5497ac_cv_type_u_int32_t=no
5498fi
5499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500fi
5501echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5502echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5503if test $ac_cv_type_u_int32_t = yes; then
5504
5505cat >>confdefs.h <<\_ACEOF
5506#define uint32_t u_int32_t
5507_ACEOF
5508
5509else
5510  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint32_t" >&5
5511echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
5512   { (exit 1); exit 1; }; }
5513fi
5514
5515
5516fi
5517
5518	echo "$as_me:$LINENO: checking for u_int32_t" >&5
5519echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5520if test "${ac_cv_type_u_int32_t+set}" = set; then
5521  echo $ECHO_N "(cached) $ECHO_C" >&6
5522else
5523  cat >conftest.$ac_ext <<_ACEOF
5524/* confdefs.h.  */
5525_ACEOF
5526cat confdefs.h >>conftest.$ac_ext
5527cat >>conftest.$ac_ext <<_ACEOF
5528/* end confdefs.h.  */
5529$ac_includes_default
5530int
5531main ()
5532{
5533if ((u_int32_t *) 0)
5534  return 0;
5535if (sizeof (u_int32_t))
5536  return 0;
5537  ;
5538  return 0;
5539}
5540_ACEOF
5541rm -f conftest.$ac_objext
5542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543  (eval $ac_compile) 2>conftest.er1
5544  ac_status=$?
5545  grep -v '^ *+' conftest.er1 >conftest.err
5546  rm -f conftest.er1
5547  cat conftest.err >&5
5548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549  (exit $ac_status); } &&
5550	 { ac_try='test -z "$ac_c_werror_flag"
5551			 || test ! -s conftest.err'
5552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553  (eval $ac_try) 2>&5
5554  ac_status=$?
5555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556  (exit $ac_status); }; } &&
5557	 { ac_try='test -s conftest.$ac_objext'
5558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559  (eval $ac_try) 2>&5
5560  ac_status=$?
5561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562  (exit $ac_status); }; }; then
5563  ac_cv_type_u_int32_t=yes
5564else
5565  echo "$as_me: failed program was:" >&5
5566sed 's/^/| /' conftest.$ac_ext >&5
5567
5568ac_cv_type_u_int32_t=no
5569fi
5570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5571fi
5572echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5573echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5574if test $ac_cv_type_u_int32_t = yes; then
5575  :
5576else
5577
5578		echo "$as_me:$LINENO: checking for uint32_t" >&5
5579echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5580if test "${ac_cv_type_uint32_t+set}" = set; then
5581  echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583  cat >conftest.$ac_ext <<_ACEOF
5584/* confdefs.h.  */
5585_ACEOF
5586cat confdefs.h >>conftest.$ac_ext
5587cat >>conftest.$ac_ext <<_ACEOF
5588/* end confdefs.h.  */
5589$ac_includes_default
5590int
5591main ()
5592{
5593if ((uint32_t *) 0)
5594  return 0;
5595if (sizeof (uint32_t))
5596  return 0;
5597  ;
5598  return 0;
5599}
5600_ACEOF
5601rm -f conftest.$ac_objext
5602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603  (eval $ac_compile) 2>conftest.er1
5604  ac_status=$?
5605  grep -v '^ *+' conftest.er1 >conftest.err
5606  rm -f conftest.er1
5607  cat conftest.err >&5
5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609  (exit $ac_status); } &&
5610	 { ac_try='test -z "$ac_c_werror_flag"
5611			 || test ! -s conftest.err'
5612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613  (eval $ac_try) 2>&5
5614  ac_status=$?
5615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616  (exit $ac_status); }; } &&
5617	 { ac_try='test -s conftest.$ac_objext'
5618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619  (eval $ac_try) 2>&5
5620  ac_status=$?
5621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622  (exit $ac_status); }; }; then
5623  ac_cv_type_uint32_t=yes
5624else
5625  echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628ac_cv_type_uint32_t=no
5629fi
5630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5631fi
5632echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5633echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5634if test $ac_cv_type_uint32_t = yes; then
5635
5636cat >>confdefs.h <<\_ACEOF
5637#define u_int32_t uint32_t
5638_ACEOF
5639
5640else
5641  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int32_t" >&5
5642echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
5643   { (exit 1); exit 1; }; }
5644fi
5645
5646
5647fi
5648
5649
5650
5651	echo "$as_me:$LINENO: checking for uint64_t" >&5
5652echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5653if test "${ac_cv_type_uint64_t+set}" = set; then
5654  echo $ECHO_N "(cached) $ECHO_C" >&6
5655else
5656  cat >conftest.$ac_ext <<_ACEOF
5657/* confdefs.h.  */
5658_ACEOF
5659cat confdefs.h >>conftest.$ac_ext
5660cat >>conftest.$ac_ext <<_ACEOF
5661/* end confdefs.h.  */
5662$ac_includes_default
5663int
5664main ()
5665{
5666if ((uint64_t *) 0)
5667  return 0;
5668if (sizeof (uint64_t))
5669  return 0;
5670  ;
5671  return 0;
5672}
5673_ACEOF
5674rm -f conftest.$ac_objext
5675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676  (eval $ac_compile) 2>conftest.er1
5677  ac_status=$?
5678  grep -v '^ *+' conftest.er1 >conftest.err
5679  rm -f conftest.er1
5680  cat conftest.err >&5
5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682  (exit $ac_status); } &&
5683	 { ac_try='test -z "$ac_c_werror_flag"
5684			 || test ! -s conftest.err'
5685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686  (eval $ac_try) 2>&5
5687  ac_status=$?
5688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689  (exit $ac_status); }; } &&
5690	 { ac_try='test -s conftest.$ac_objext'
5691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692  (eval $ac_try) 2>&5
5693  ac_status=$?
5694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695  (exit $ac_status); }; }; then
5696  ac_cv_type_uint64_t=yes
5697else
5698  echo "$as_me: failed program was:" >&5
5699sed 's/^/| /' conftest.$ac_ext >&5
5700
5701ac_cv_type_uint64_t=no
5702fi
5703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5704fi
5705echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5706echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5707if test $ac_cv_type_uint64_t = yes; then
5708  :
5709else
5710
5711		echo "$as_me:$LINENO: checking for u_int64_t" >&5
5712echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5713if test "${ac_cv_type_u_int64_t+set}" = set; then
5714  echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716  cat >conftest.$ac_ext <<_ACEOF
5717/* confdefs.h.  */
5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h.  */
5722$ac_includes_default
5723int
5724main ()
5725{
5726if ((u_int64_t *) 0)
5727  return 0;
5728if (sizeof (u_int64_t))
5729  return 0;
5730  ;
5731  return 0;
5732}
5733_ACEOF
5734rm -f conftest.$ac_objext
5735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5736  (eval $ac_compile) 2>conftest.er1
5737  ac_status=$?
5738  grep -v '^ *+' conftest.er1 >conftest.err
5739  rm -f conftest.er1
5740  cat conftest.err >&5
5741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742  (exit $ac_status); } &&
5743	 { ac_try='test -z "$ac_c_werror_flag"
5744			 || test ! -s conftest.err'
5745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746  (eval $ac_try) 2>&5
5747  ac_status=$?
5748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749  (exit $ac_status); }; } &&
5750	 { ac_try='test -s conftest.$ac_objext'
5751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752  (eval $ac_try) 2>&5
5753  ac_status=$?
5754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755  (exit $ac_status); }; }; then
5756  ac_cv_type_u_int64_t=yes
5757else
5758  echo "$as_me: failed program was:" >&5
5759sed 's/^/| /' conftest.$ac_ext >&5
5760
5761ac_cv_type_u_int64_t=no
5762fi
5763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5764fi
5765echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5766echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5767if test $ac_cv_type_u_int64_t = yes; then
5768
5769cat >>confdefs.h <<\_ACEOF
5770#define uint64_t u_int64_t
5771_ACEOF
5772
5773else
5774  { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint64_t" >&5
5775echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
5776   { (exit 1); exit 1; }; }
5777fi
5778
5779
5780fi
5781
5782	echo "$as_me:$LINENO: checking for u_int64_t" >&5
5783echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5784if test "${ac_cv_type_u_int64_t+set}" = set; then
5785  echo $ECHO_N "(cached) $ECHO_C" >&6
5786else
5787  cat >conftest.$ac_ext <<_ACEOF
5788/* confdefs.h.  */
5789_ACEOF
5790cat confdefs.h >>conftest.$ac_ext
5791cat >>conftest.$ac_ext <<_ACEOF
5792/* end confdefs.h.  */
5793$ac_includes_default
5794int
5795main ()
5796{
5797if ((u_int64_t *) 0)
5798  return 0;
5799if (sizeof (u_int64_t))
5800  return 0;
5801  ;
5802  return 0;
5803}
5804_ACEOF
5805rm -f conftest.$ac_objext
5806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5807  (eval $ac_compile) 2>conftest.er1
5808  ac_status=$?
5809  grep -v '^ *+' conftest.er1 >conftest.err
5810  rm -f conftest.er1
5811  cat conftest.err >&5
5812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813  (exit $ac_status); } &&
5814	 { ac_try='test -z "$ac_c_werror_flag"
5815			 || test ! -s conftest.err'
5816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817  (eval $ac_try) 2>&5
5818  ac_status=$?
5819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820  (exit $ac_status); }; } &&
5821	 { ac_try='test -s conftest.$ac_objext'
5822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823  (eval $ac_try) 2>&5
5824  ac_status=$?
5825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826  (exit $ac_status); }; }; then
5827  ac_cv_type_u_int64_t=yes
5828else
5829  echo "$as_me: failed program was:" >&5
5830sed 's/^/| /' conftest.$ac_ext >&5
5831
5832ac_cv_type_u_int64_t=no
5833fi
5834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5835fi
5836echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5837echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5838if test $ac_cv_type_u_int64_t = yes; then
5839  :
5840else
5841
5842		echo "$as_me:$LINENO: checking for uint64_t" >&5
5843echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5844if test "${ac_cv_type_uint64_t+set}" = set; then
5845  echo $ECHO_N "(cached) $ECHO_C" >&6
5846else
5847  cat >conftest.$ac_ext <<_ACEOF
5848/* confdefs.h.  */
5849_ACEOF
5850cat confdefs.h >>conftest.$ac_ext
5851cat >>conftest.$ac_ext <<_ACEOF
5852/* end confdefs.h.  */
5853$ac_includes_default
5854int
5855main ()
5856{
5857if ((uint64_t *) 0)
5858  return 0;
5859if (sizeof (uint64_t))
5860  return 0;
5861  ;
5862  return 0;
5863}
5864_ACEOF
5865rm -f conftest.$ac_objext
5866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867  (eval $ac_compile) 2>conftest.er1
5868  ac_status=$?
5869  grep -v '^ *+' conftest.er1 >conftest.err
5870  rm -f conftest.er1
5871  cat conftest.err >&5
5872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873  (exit $ac_status); } &&
5874	 { ac_try='test -z "$ac_c_werror_flag"
5875			 || test ! -s conftest.err'
5876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877  (eval $ac_try) 2>&5
5878  ac_status=$?
5879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880  (exit $ac_status); }; } &&
5881	 { ac_try='test -s conftest.$ac_objext'
5882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883  (eval $ac_try) 2>&5
5884  ac_status=$?
5885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886  (exit $ac_status); }; }; then
5887  ac_cv_type_uint64_t=yes
5888else
5889  echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
5891
5892ac_cv_type_uint64_t=no
5893fi
5894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895fi
5896echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5897echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5898if test $ac_cv_type_uint64_t = yes; then
5899
5900cat >>confdefs.h <<\_ACEOF
5901#define u_int64_t uint64_t
5902_ACEOF
5903
5904else
5905  { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int64_t" >&5
5906echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
5907   { (exit 1); exit 1; }; }
5908fi
5909
5910
5911fi
5912
5913
5914
5915# Struct members.
5916echo "$as_me:$LINENO: checking for DIR.dd_fd" >&5
5917echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
5918if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
5919  echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921  cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h.  */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h.  */
5927#include <sys/types.h>
5928#include <dirent.h>
5929
5930int
5931main ()
5932{
5933static DIR ac_aggr;
5934if (ac_aggr.dd_fd)
5935return 0;
5936  ;
5937  return 0;
5938}
5939_ACEOF
5940rm -f conftest.$ac_objext
5941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942  (eval $ac_compile) 2>conftest.er1
5943  ac_status=$?
5944  grep -v '^ *+' conftest.er1 >conftest.err
5945  rm -f conftest.er1
5946  cat conftest.err >&5
5947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948  (exit $ac_status); } &&
5949	 { ac_try='test -z "$ac_c_werror_flag"
5950			 || test ! -s conftest.err'
5951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952  (eval $ac_try) 2>&5
5953  ac_status=$?
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); }; } &&
5956	 { ac_try='test -s conftest.$ac_objext'
5957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958  (eval $ac_try) 2>&5
5959  ac_status=$?
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); }; }; then
5962  ac_cv_member_DIR_dd_fd=yes
5963else
5964  echo "$as_me: failed program was:" >&5
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
5967cat >conftest.$ac_ext <<_ACEOF
5968/* confdefs.h.  */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h.  */
5973#include <sys/types.h>
5974#include <dirent.h>
5975
5976int
5977main ()
5978{
5979static DIR ac_aggr;
5980if (sizeof ac_aggr.dd_fd)
5981return 0;
5982  ;
5983  return 0;
5984}
5985_ACEOF
5986rm -f conftest.$ac_objext
5987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988  (eval $ac_compile) 2>conftest.er1
5989  ac_status=$?
5990  grep -v '^ *+' conftest.er1 >conftest.err
5991  rm -f conftest.er1
5992  cat conftest.err >&5
5993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994  (exit $ac_status); } &&
5995	 { ac_try='test -z "$ac_c_werror_flag"
5996			 || test ! -s conftest.err'
5997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998  (eval $ac_try) 2>&5
5999  ac_status=$?
6000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001  (exit $ac_status); }; } &&
6002	 { ac_try='test -s conftest.$ac_objext'
6003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004  (eval $ac_try) 2>&5
6005  ac_status=$?
6006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007  (exit $ac_status); }; }; then
6008  ac_cv_member_DIR_dd_fd=yes
6009else
6010  echo "$as_me: failed program was:" >&5
6011sed 's/^/| /' conftest.$ac_ext >&5
6012
6013ac_cv_member_DIR_dd_fd=no
6014fi
6015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016fi
6017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019echo "$as_me:$LINENO: result: $ac_cv_member_DIR_dd_fd" >&5
6020echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
6021if test $ac_cv_member_DIR_dd_fd = yes; then
6022
6023cat >>confdefs.h <<_ACEOF
6024#define HAVE_DIR_DD_FD 1
6025_ACEOF
6026
6027
6028fi
6029echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
6030echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
6031if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
6032  echo $ECHO_N "(cached) $ECHO_C" >&6
6033else
6034  cat >conftest.$ac_ext <<_ACEOF
6035/* confdefs.h.  */
6036_ACEOF
6037cat confdefs.h >>conftest.$ac_ext
6038cat >>conftest.$ac_ext <<_ACEOF
6039/* end confdefs.h.  */
6040#include <sys/types.h>
6041#include <dirent.h>
6042
6043int
6044main ()
6045{
6046static struct dirent ac_aggr;
6047if (ac_aggr.d_namlen)
6048return 0;
6049  ;
6050  return 0;
6051}
6052_ACEOF
6053rm -f conftest.$ac_objext
6054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055  (eval $ac_compile) 2>conftest.er1
6056  ac_status=$?
6057  grep -v '^ *+' conftest.er1 >conftest.err
6058  rm -f conftest.er1
6059  cat conftest.err >&5
6060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061  (exit $ac_status); } &&
6062	 { ac_try='test -z "$ac_c_werror_flag"
6063			 || test ! -s conftest.err'
6064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065  (eval $ac_try) 2>&5
6066  ac_status=$?
6067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068  (exit $ac_status); }; } &&
6069	 { ac_try='test -s conftest.$ac_objext'
6070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071  (eval $ac_try) 2>&5
6072  ac_status=$?
6073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074  (exit $ac_status); }; }; then
6075  ac_cv_member_struct_dirent_d_namlen=yes
6076else
6077  echo "$as_me: failed program was:" >&5
6078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080cat >conftest.$ac_ext <<_ACEOF
6081/* confdefs.h.  */
6082_ACEOF
6083cat confdefs.h >>conftest.$ac_ext
6084cat >>conftest.$ac_ext <<_ACEOF
6085/* end confdefs.h.  */
6086#include <sys/types.h>
6087#include <dirent.h>
6088
6089int
6090main ()
6091{
6092static struct dirent ac_aggr;
6093if (sizeof ac_aggr.d_namlen)
6094return 0;
6095  ;
6096  return 0;
6097}
6098_ACEOF
6099rm -f conftest.$ac_objext
6100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6101  (eval $ac_compile) 2>conftest.er1
6102  ac_status=$?
6103  grep -v '^ *+' conftest.er1 >conftest.err
6104  rm -f conftest.er1
6105  cat conftest.err >&5
6106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107  (exit $ac_status); } &&
6108	 { ac_try='test -z "$ac_c_werror_flag"
6109			 || test ! -s conftest.err'
6110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111  (eval $ac_try) 2>&5
6112  ac_status=$?
6113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114  (exit $ac_status); }; } &&
6115	 { ac_try='test -s conftest.$ac_objext'
6116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117  (eval $ac_try) 2>&5
6118  ac_status=$?
6119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); }; }; then
6121  ac_cv_member_struct_dirent_d_namlen=yes
6122else
6123  echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126ac_cv_member_struct_dirent_d_namlen=no
6127fi
6128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6129fi
6130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6131fi
6132echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5
6133echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
6134if test $ac_cv_member_struct_dirent_d_namlen = yes; then
6135
6136cat >>confdefs.h <<_ACEOF
6137#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
6138_ACEOF
6139
6140
6141fi
6142
6143echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
6144echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
6145if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
6146  echo $ECHO_N "(cached) $ECHO_C" >&6
6147else
6148  cat >conftest.$ac_ext <<_ACEOF
6149/* confdefs.h.  */
6150_ACEOF
6151cat confdefs.h >>conftest.$ac_ext
6152cat >>conftest.$ac_ext <<_ACEOF
6153/* end confdefs.h.  */
6154#include <sys/stat.h>
6155
6156int
6157main ()
6158{
6159static struct stat ac_aggr;
6160if (ac_aggr.st_flags)
6161return 0;
6162  ;
6163  return 0;
6164}
6165_ACEOF
6166rm -f conftest.$ac_objext
6167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168  (eval $ac_compile) 2>conftest.er1
6169  ac_status=$?
6170  grep -v '^ *+' conftest.er1 >conftest.err
6171  rm -f conftest.er1
6172  cat conftest.err >&5
6173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174  (exit $ac_status); } &&
6175	 { ac_try='test -z "$ac_c_werror_flag"
6176			 || test ! -s conftest.err'
6177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178  (eval $ac_try) 2>&5
6179  ac_status=$?
6180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181  (exit $ac_status); }; } &&
6182	 { ac_try='test -s conftest.$ac_objext'
6183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184  (eval $ac_try) 2>&5
6185  ac_status=$?
6186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187  (exit $ac_status); }; }; then
6188  ac_cv_member_struct_stat_st_flags=yes
6189else
6190  echo "$as_me: failed program was:" >&5
6191sed 's/^/| /' conftest.$ac_ext >&5
6192
6193cat >conftest.$ac_ext <<_ACEOF
6194/* confdefs.h.  */
6195_ACEOF
6196cat confdefs.h >>conftest.$ac_ext
6197cat >>conftest.$ac_ext <<_ACEOF
6198/* end confdefs.h.  */
6199#include <sys/stat.h>
6200
6201int
6202main ()
6203{
6204static struct stat ac_aggr;
6205if (sizeof ac_aggr.st_flags)
6206return 0;
6207  ;
6208  return 0;
6209}
6210_ACEOF
6211rm -f conftest.$ac_objext
6212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6213  (eval $ac_compile) 2>conftest.er1
6214  ac_status=$?
6215  grep -v '^ *+' conftest.er1 >conftest.err
6216  rm -f conftest.er1
6217  cat conftest.err >&5
6218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219  (exit $ac_status); } &&
6220	 { ac_try='test -z "$ac_c_werror_flag"
6221			 || test ! -s conftest.err'
6222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223  (eval $ac_try) 2>&5
6224  ac_status=$?
6225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226  (exit $ac_status); }; } &&
6227	 { ac_try='test -s conftest.$ac_objext'
6228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229  (eval $ac_try) 2>&5
6230  ac_status=$?
6231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232  (exit $ac_status); }; }; then
6233  ac_cv_member_struct_stat_st_flags=yes
6234else
6235  echo "$as_me: failed program was:" >&5
6236sed 's/^/| /' conftest.$ac_ext >&5
6237
6238ac_cv_member_struct_stat_st_flags=no
6239fi
6240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6241fi
6242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6243fi
6244echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
6245echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
6246if test $ac_cv_member_struct_stat_st_flags = yes; then
6247
6248cat >>confdefs.h <<_ACEOF
6249#define HAVE_STRUCT_STAT_ST_FLAGS 1
6250_ACEOF
6251
6252
6253fi
6254echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
6255echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
6256if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
6257  echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259  cat >conftest.$ac_ext <<_ACEOF
6260/* confdefs.h.  */
6261_ACEOF
6262cat confdefs.h >>conftest.$ac_ext
6263cat >>conftest.$ac_ext <<_ACEOF
6264/* end confdefs.h.  */
6265#include <sys/stat.h>
6266
6267int
6268main ()
6269{
6270static struct stat ac_aggr;
6271if (ac_aggr.st_gen)
6272return 0;
6273  ;
6274  return 0;
6275}
6276_ACEOF
6277rm -f conftest.$ac_objext
6278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279  (eval $ac_compile) 2>conftest.er1
6280  ac_status=$?
6281  grep -v '^ *+' conftest.er1 >conftest.err
6282  rm -f conftest.er1
6283  cat conftest.err >&5
6284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285  (exit $ac_status); } &&
6286	 { ac_try='test -z "$ac_c_werror_flag"
6287			 || test ! -s conftest.err'
6288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289  (eval $ac_try) 2>&5
6290  ac_status=$?
6291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292  (exit $ac_status); }; } &&
6293	 { ac_try='test -s conftest.$ac_objext'
6294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295  (eval $ac_try) 2>&5
6296  ac_status=$?
6297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298  (exit $ac_status); }; }; then
6299  ac_cv_member_struct_stat_st_gen=yes
6300else
6301  echo "$as_me: failed program was:" >&5
6302sed 's/^/| /' conftest.$ac_ext >&5
6303
6304cat >conftest.$ac_ext <<_ACEOF
6305/* confdefs.h.  */
6306_ACEOF
6307cat confdefs.h >>conftest.$ac_ext
6308cat >>conftest.$ac_ext <<_ACEOF
6309/* end confdefs.h.  */
6310#include <sys/stat.h>
6311
6312int
6313main ()
6314{
6315static struct stat ac_aggr;
6316if (sizeof ac_aggr.st_gen)
6317return 0;
6318  ;
6319  return 0;
6320}
6321_ACEOF
6322rm -f conftest.$ac_objext
6323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324  (eval $ac_compile) 2>conftest.er1
6325  ac_status=$?
6326  grep -v '^ *+' conftest.er1 >conftest.err
6327  rm -f conftest.er1
6328  cat conftest.err >&5
6329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330  (exit $ac_status); } &&
6331	 { ac_try='test -z "$ac_c_werror_flag"
6332			 || test ! -s conftest.err'
6333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334  (eval $ac_try) 2>&5
6335  ac_status=$?
6336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337  (exit $ac_status); }; } &&
6338	 { ac_try='test -s conftest.$ac_objext'
6339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340  (eval $ac_try) 2>&5
6341  ac_status=$?
6342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343  (exit $ac_status); }; }; then
6344  ac_cv_member_struct_stat_st_gen=yes
6345else
6346  echo "$as_me: failed program was:" >&5
6347sed 's/^/| /' conftest.$ac_ext >&5
6348
6349ac_cv_member_struct_stat_st_gen=no
6350fi
6351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6352fi
6353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6354fi
6355echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
6356echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
6357if test $ac_cv_member_struct_stat_st_gen = yes; then
6358
6359cat >>confdefs.h <<_ACEOF
6360#define HAVE_STRUCT_STAT_ST_GEN 1
6361_ACEOF
6362
6363
6364fi
6365echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
6366echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
6367if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
6368  echo $ECHO_N "(cached) $ECHO_C" >&6
6369else
6370  cat >conftest.$ac_ext <<_ACEOF
6371/* confdefs.h.  */
6372_ACEOF
6373cat confdefs.h >>conftest.$ac_ext
6374cat >>conftest.$ac_ext <<_ACEOF
6375/* end confdefs.h.  */
6376#include <sys/stat.h>
6377
6378int
6379main ()
6380{
6381static struct stat ac_aggr;
6382if (ac_aggr.st_birthtime)
6383return 0;
6384  ;
6385  return 0;
6386}
6387_ACEOF
6388rm -f conftest.$ac_objext
6389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390  (eval $ac_compile) 2>conftest.er1
6391  ac_status=$?
6392  grep -v '^ *+' conftest.er1 >conftest.err
6393  rm -f conftest.er1
6394  cat conftest.err >&5
6395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396  (exit $ac_status); } &&
6397	 { ac_try='test -z "$ac_c_werror_flag"
6398			 || test ! -s conftest.err'
6399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400  (eval $ac_try) 2>&5
6401  ac_status=$?
6402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403  (exit $ac_status); }; } &&
6404	 { ac_try='test -s conftest.$ac_objext'
6405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406  (eval $ac_try) 2>&5
6407  ac_status=$?
6408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409  (exit $ac_status); }; }; then
6410  ac_cv_member_struct_stat_st_birthtime=yes
6411else
6412  echo "$as_me: failed program was:" >&5
6413sed 's/^/| /' conftest.$ac_ext >&5
6414
6415cat >conftest.$ac_ext <<_ACEOF
6416/* confdefs.h.  */
6417_ACEOF
6418cat confdefs.h >>conftest.$ac_ext
6419cat >>conftest.$ac_ext <<_ACEOF
6420/* end confdefs.h.  */
6421#include <sys/stat.h>
6422
6423int
6424main ()
6425{
6426static struct stat ac_aggr;
6427if (sizeof ac_aggr.st_birthtime)
6428return 0;
6429  ;
6430  return 0;
6431}
6432_ACEOF
6433rm -f conftest.$ac_objext
6434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435  (eval $ac_compile) 2>conftest.er1
6436  ac_status=$?
6437  grep -v '^ *+' conftest.er1 >conftest.err
6438  rm -f conftest.er1
6439  cat conftest.err >&5
6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441  (exit $ac_status); } &&
6442	 { ac_try='test -z "$ac_c_werror_flag"
6443			 || test ! -s conftest.err'
6444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445  (eval $ac_try) 2>&5
6446  ac_status=$?
6447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448  (exit $ac_status); }; } &&
6449	 { ac_try='test -s conftest.$ac_objext'
6450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451  (eval $ac_try) 2>&5
6452  ac_status=$?
6453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); }; }; then
6455  ac_cv_member_struct_stat_st_birthtime=yes
6456else
6457  echo "$as_me: failed program was:" >&5
6458sed 's/^/| /' conftest.$ac_ext >&5
6459
6460ac_cv_member_struct_stat_st_birthtime=no
6461fi
6462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6463fi
6464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6465fi
6466echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
6467echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
6468if test $ac_cv_member_struct_stat_st_birthtime = yes; then
6469
6470cat >>confdefs.h <<_ACEOF
6471#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
6472_ACEOF
6473
6474
6475fi
6476echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
6477echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6
6478if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
6479  echo $ECHO_N "(cached) $ECHO_C" >&6
6480else
6481  cat >conftest.$ac_ext <<_ACEOF
6482/* confdefs.h.  */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h.  */
6487#include <sys/stat.h>
6488
6489int
6490main ()
6491{
6492static struct stat ac_aggr;
6493if (ac_aggr.st_birthtimensec)
6494return 0;
6495  ;
6496  return 0;
6497}
6498_ACEOF
6499rm -f conftest.$ac_objext
6500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501  (eval $ac_compile) 2>conftest.er1
6502  ac_status=$?
6503  grep -v '^ *+' conftest.er1 >conftest.err
6504  rm -f conftest.er1
6505  cat conftest.err >&5
6506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507  (exit $ac_status); } &&
6508	 { ac_try='test -z "$ac_c_werror_flag"
6509			 || test ! -s conftest.err'
6510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511  (eval $ac_try) 2>&5
6512  ac_status=$?
6513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514  (exit $ac_status); }; } &&
6515	 { ac_try='test -s conftest.$ac_objext'
6516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517  (eval $ac_try) 2>&5
6518  ac_status=$?
6519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520  (exit $ac_status); }; }; then
6521  ac_cv_member_struct_stat_st_birthtimensec=yes
6522else
6523  echo "$as_me: failed program was:" >&5
6524sed 's/^/| /' conftest.$ac_ext >&5
6525
6526cat >conftest.$ac_ext <<_ACEOF
6527/* confdefs.h.  */
6528_ACEOF
6529cat confdefs.h >>conftest.$ac_ext
6530cat >>conftest.$ac_ext <<_ACEOF
6531/* end confdefs.h.  */
6532#include <sys/stat.h>
6533
6534int
6535main ()
6536{
6537static struct stat ac_aggr;
6538if (sizeof ac_aggr.st_birthtimensec)
6539return 0;
6540  ;
6541  return 0;
6542}
6543_ACEOF
6544rm -f conftest.$ac_objext
6545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6546  (eval $ac_compile) 2>conftest.er1
6547  ac_status=$?
6548  grep -v '^ *+' conftest.er1 >conftest.err
6549  rm -f conftest.er1
6550  cat conftest.err >&5
6551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552  (exit $ac_status); } &&
6553	 { ac_try='test -z "$ac_c_werror_flag"
6554			 || test ! -s conftest.err'
6555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556  (eval $ac_try) 2>&5
6557  ac_status=$?
6558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559  (exit $ac_status); }; } &&
6560	 { ac_try='test -s conftest.$ac_objext'
6561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562  (eval $ac_try) 2>&5
6563  ac_status=$?
6564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565  (exit $ac_status); }; }; then
6566  ac_cv_member_struct_stat_st_birthtimensec=yes
6567else
6568  echo "$as_me: failed program was:" >&5
6569sed 's/^/| /' conftest.$ac_ext >&5
6570
6571ac_cv_member_struct_stat_st_birthtimensec=no
6572fi
6573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6574fi
6575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6576fi
6577echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
6578echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6
6579if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
6580
6581cat >>confdefs.h <<_ACEOF
6582#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
6583_ACEOF
6584
6585
6586fi
6587echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
6588echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6
6589if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
6590  echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592  cat >conftest.$ac_ext <<_ACEOF
6593/* confdefs.h.  */
6594_ACEOF
6595cat confdefs.h >>conftest.$ac_ext
6596cat >>conftest.$ac_ext <<_ACEOF
6597/* end confdefs.h.  */
6598#include <sys/stat.h>
6599
6600int
6601main ()
6602{
6603static struct stat ac_aggr;
6604if (ac_aggr.st_atim)
6605return 0;
6606  ;
6607  return 0;
6608}
6609_ACEOF
6610rm -f conftest.$ac_objext
6611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6612  (eval $ac_compile) 2>conftest.er1
6613  ac_status=$?
6614  grep -v '^ *+' conftest.er1 >conftest.err
6615  rm -f conftest.er1
6616  cat conftest.err >&5
6617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618  (exit $ac_status); } &&
6619	 { ac_try='test -z "$ac_c_werror_flag"
6620			 || test ! -s conftest.err'
6621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622  (eval $ac_try) 2>&5
6623  ac_status=$?
6624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625  (exit $ac_status); }; } &&
6626	 { ac_try='test -s conftest.$ac_objext'
6627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628  (eval $ac_try) 2>&5
6629  ac_status=$?
6630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631  (exit $ac_status); }; }; then
6632  ac_cv_member_struct_stat_st_atim=yes
6633else
6634  echo "$as_me: failed program was:" >&5
6635sed 's/^/| /' conftest.$ac_ext >&5
6636
6637cat >conftest.$ac_ext <<_ACEOF
6638/* confdefs.h.  */
6639_ACEOF
6640cat confdefs.h >>conftest.$ac_ext
6641cat >>conftest.$ac_ext <<_ACEOF
6642/* end confdefs.h.  */
6643#include <sys/stat.h>
6644
6645int
6646main ()
6647{
6648static struct stat ac_aggr;
6649if (sizeof ac_aggr.st_atim)
6650return 0;
6651  ;
6652  return 0;
6653}
6654_ACEOF
6655rm -f conftest.$ac_objext
6656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6657  (eval $ac_compile) 2>conftest.er1
6658  ac_status=$?
6659  grep -v '^ *+' conftest.er1 >conftest.err
6660  rm -f conftest.er1
6661  cat conftest.err >&5
6662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663  (exit $ac_status); } &&
6664	 { ac_try='test -z "$ac_c_werror_flag"
6665			 || test ! -s conftest.err'
6666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667  (eval $ac_try) 2>&5
6668  ac_status=$?
6669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670  (exit $ac_status); }; } &&
6671	 { ac_try='test -s conftest.$ac_objext'
6672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673  (eval $ac_try) 2>&5
6674  ac_status=$?
6675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676  (exit $ac_status); }; }; then
6677  ac_cv_member_struct_stat_st_atim=yes
6678else
6679  echo "$as_me: failed program was:" >&5
6680sed 's/^/| /' conftest.$ac_ext >&5
6681
6682ac_cv_member_struct_stat_st_atim=no
6683fi
6684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6685fi
6686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6687fi
6688echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
6689echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6
6690if test $ac_cv_member_struct_stat_st_atim = yes; then
6691
6692cat >>confdefs.h <<_ACEOF
6693#define HAVE_STRUCT_STAT_ST_ATIM 1
6694_ACEOF
6695
6696
6697fi
6698echo "$as_me:$LINENO: checking for struct stat.st_mtimensec" >&5
6699echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
6700if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
6701  echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703  cat >conftest.$ac_ext <<_ACEOF
6704/* confdefs.h.  */
6705_ACEOF
6706cat confdefs.h >>conftest.$ac_ext
6707cat >>conftest.$ac_ext <<_ACEOF
6708/* end confdefs.h.  */
6709#include <sys/stat.h>
6710
6711int
6712main ()
6713{
6714static struct stat ac_aggr;
6715if (ac_aggr.st_mtimensec)
6716return 0;
6717  ;
6718  return 0;
6719}
6720_ACEOF
6721rm -f conftest.$ac_objext
6722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6723  (eval $ac_compile) 2>conftest.er1
6724  ac_status=$?
6725  grep -v '^ *+' conftest.er1 >conftest.err
6726  rm -f conftest.er1
6727  cat conftest.err >&5
6728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729  (exit $ac_status); } &&
6730	 { ac_try='test -z "$ac_c_werror_flag"
6731			 || test ! -s conftest.err'
6732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733  (eval $ac_try) 2>&5
6734  ac_status=$?
6735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736  (exit $ac_status); }; } &&
6737	 { ac_try='test -s conftest.$ac_objext'
6738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739  (eval $ac_try) 2>&5
6740  ac_status=$?
6741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742  (exit $ac_status); }; }; then
6743  ac_cv_member_struct_stat_st_mtimensec=yes
6744else
6745  echo "$as_me: failed program was:" >&5
6746sed 's/^/| /' conftest.$ac_ext >&5
6747
6748cat >conftest.$ac_ext <<_ACEOF
6749/* confdefs.h.  */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h.  */
6754#include <sys/stat.h>
6755
6756int
6757main ()
6758{
6759static struct stat ac_aggr;
6760if (sizeof ac_aggr.st_mtimensec)
6761return 0;
6762  ;
6763  return 0;
6764}
6765_ACEOF
6766rm -f conftest.$ac_objext
6767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768  (eval $ac_compile) 2>conftest.er1
6769  ac_status=$?
6770  grep -v '^ *+' conftest.er1 >conftest.err
6771  rm -f conftest.er1
6772  cat conftest.err >&5
6773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774  (exit $ac_status); } &&
6775	 { ac_try='test -z "$ac_c_werror_flag"
6776			 || test ! -s conftest.err'
6777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778  (eval $ac_try) 2>&5
6779  ac_status=$?
6780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781  (exit $ac_status); }; } &&
6782	 { ac_try='test -s conftest.$ac_objext'
6783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784  (eval $ac_try) 2>&5
6785  ac_status=$?
6786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787  (exit $ac_status); }; }; then
6788  ac_cv_member_struct_stat_st_mtimensec=yes
6789else
6790  echo "$as_me: failed program was:" >&5
6791sed 's/^/| /' conftest.$ac_ext >&5
6792
6793ac_cv_member_struct_stat_st_mtimensec=no
6794fi
6795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6796fi
6797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798fi
6799echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
6800echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
6801if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
6802
6803cat >>confdefs.h <<_ACEOF
6804#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
6805_ACEOF
6806
6807
6808fi
6809
6810echo "$as_me:$LINENO: checking for struct statvfs.f_iosize" >&5
6811echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6
6812if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then
6813  echo $ECHO_N "(cached) $ECHO_C" >&6
6814else
6815  cat >conftest.$ac_ext <<_ACEOF
6816/* confdefs.h.  */
6817_ACEOF
6818cat confdefs.h >>conftest.$ac_ext
6819cat >>conftest.$ac_ext <<_ACEOF
6820/* end confdefs.h.  */
6821#include <sys/statvfs.h>
6822
6823int
6824main ()
6825{
6826static struct statvfs ac_aggr;
6827if (ac_aggr.f_iosize)
6828return 0;
6829  ;
6830  return 0;
6831}
6832_ACEOF
6833rm -f conftest.$ac_objext
6834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6835  (eval $ac_compile) 2>conftest.er1
6836  ac_status=$?
6837  grep -v '^ *+' conftest.er1 >conftest.err
6838  rm -f conftest.er1
6839  cat conftest.err >&5
6840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841  (exit $ac_status); } &&
6842	 { ac_try='test -z "$ac_c_werror_flag"
6843			 || test ! -s conftest.err'
6844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845  (eval $ac_try) 2>&5
6846  ac_status=$?
6847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848  (exit $ac_status); }; } &&
6849	 { ac_try='test -s conftest.$ac_objext'
6850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851  (eval $ac_try) 2>&5
6852  ac_status=$?
6853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854  (exit $ac_status); }; }; then
6855  ac_cv_member_struct_statvfs_f_iosize=yes
6856else
6857  echo "$as_me: failed program was:" >&5
6858sed 's/^/| /' conftest.$ac_ext >&5
6859
6860cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h.  */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h.  */
6866#include <sys/statvfs.h>
6867
6868int
6869main ()
6870{
6871static struct statvfs ac_aggr;
6872if (sizeof ac_aggr.f_iosize)
6873return 0;
6874  ;
6875  return 0;
6876}
6877_ACEOF
6878rm -f conftest.$ac_objext
6879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880  (eval $ac_compile) 2>conftest.er1
6881  ac_status=$?
6882  grep -v '^ *+' conftest.er1 >conftest.err
6883  rm -f conftest.er1
6884  cat conftest.err >&5
6885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886  (exit $ac_status); } &&
6887	 { ac_try='test -z "$ac_c_werror_flag"
6888			 || test ! -s conftest.err'
6889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890  (eval $ac_try) 2>&5
6891  ac_status=$?
6892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893  (exit $ac_status); }; } &&
6894	 { ac_try='test -s conftest.$ac_objext'
6895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896  (eval $ac_try) 2>&5
6897  ac_status=$?
6898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899  (exit $ac_status); }; }; then
6900  ac_cv_member_struct_statvfs_f_iosize=yes
6901else
6902  echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905ac_cv_member_struct_statvfs_f_iosize=no
6906fi
6907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6908fi
6909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6910fi
6911echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_iosize" >&5
6912echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6
6913if test $ac_cv_member_struct_statvfs_f_iosize = yes; then
6914
6915cat >>confdefs.h <<_ACEOF
6916#define HAVE_STRUCT_STATVFS_F_IOSIZE 1
6917_ACEOF
6918
6919
6920fi
6921
6922
6923# Global variable decls.
6924echo "$as_me:$LINENO: checking whether optind is declared" >&5
6925echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
6926if test "${ac_cv_have_decl_optind+set}" = set; then
6927  echo $ECHO_N "(cached) $ECHO_C" >&6
6928else
6929  cat >conftest.$ac_ext <<_ACEOF
6930/* confdefs.h.  */
6931_ACEOF
6932cat confdefs.h >>conftest.$ac_ext
6933cat >>conftest.$ac_ext <<_ACEOF
6934/* end confdefs.h.  */
6935
6936#include <stdio.h>
6937#include <stdlib.h>
6938#include <unistd.h>
6939
6940
6941int
6942main ()
6943{
6944#ifndef optind
6945  char *p = (char *) optind;
6946#endif
6947
6948  ;
6949  return 0;
6950}
6951_ACEOF
6952rm -f conftest.$ac_objext
6953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6954  (eval $ac_compile) 2>conftest.er1
6955  ac_status=$?
6956  grep -v '^ *+' conftest.er1 >conftest.err
6957  rm -f conftest.er1
6958  cat conftest.err >&5
6959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960  (exit $ac_status); } &&
6961	 { ac_try='test -z "$ac_c_werror_flag"
6962			 || test ! -s conftest.err'
6963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964  (eval $ac_try) 2>&5
6965  ac_status=$?
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); }; } &&
6968	 { ac_try='test -s conftest.$ac_objext'
6969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970  (eval $ac_try) 2>&5
6971  ac_status=$?
6972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973  (exit $ac_status); }; }; then
6974  ac_cv_have_decl_optind=yes
6975else
6976  echo "$as_me: failed program was:" >&5
6977sed 's/^/| /' conftest.$ac_ext >&5
6978
6979ac_cv_have_decl_optind=no
6980fi
6981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6982fi
6983echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
6984echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
6985if test $ac_cv_have_decl_optind = yes; then
6986
6987cat >>confdefs.h <<_ACEOF
6988#define HAVE_DECL_OPTIND 1
6989_ACEOF
6990
6991
6992else
6993  cat >>confdefs.h <<_ACEOF
6994#define HAVE_DECL_OPTIND 0
6995_ACEOF
6996
6997
6998fi
6999echo "$as_me:$LINENO: checking whether optreset is declared" >&5
7000echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
7001if test "${ac_cv_have_decl_optreset+set}" = set; then
7002  echo $ECHO_N "(cached) $ECHO_C" >&6
7003else
7004  cat >conftest.$ac_ext <<_ACEOF
7005/* confdefs.h.  */
7006_ACEOF
7007cat confdefs.h >>conftest.$ac_ext
7008cat >>conftest.$ac_ext <<_ACEOF
7009/* end confdefs.h.  */
7010
7011#include <stdio.h>
7012#include <stdlib.h>
7013#include <unistd.h>
7014
7015
7016int
7017main ()
7018{
7019#ifndef optreset
7020  char *p = (char *) optreset;
7021#endif
7022
7023  ;
7024  return 0;
7025}
7026_ACEOF
7027rm -f conftest.$ac_objext
7028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7029  (eval $ac_compile) 2>conftest.er1
7030  ac_status=$?
7031  grep -v '^ *+' conftest.er1 >conftest.err
7032  rm -f conftest.er1
7033  cat conftest.err >&5
7034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035  (exit $ac_status); } &&
7036	 { ac_try='test -z "$ac_c_werror_flag"
7037			 || test ! -s conftest.err'
7038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039  (eval $ac_try) 2>&5
7040  ac_status=$?
7041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042  (exit $ac_status); }; } &&
7043	 { ac_try='test -s conftest.$ac_objext'
7044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045  (eval $ac_try) 2>&5
7046  ac_status=$?
7047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048  (exit $ac_status); }; }; then
7049  ac_cv_have_decl_optreset=yes
7050else
7051  echo "$as_me: failed program was:" >&5
7052sed 's/^/| /' conftest.$ac_ext >&5
7053
7054ac_cv_have_decl_optreset=no
7055fi
7056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7057fi
7058echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
7059echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
7060if test $ac_cv_have_decl_optreset = yes; then
7061
7062cat >>confdefs.h <<_ACEOF
7063#define HAVE_DECL_OPTRESET 1
7064_ACEOF
7065
7066
7067else
7068  cat >>confdefs.h <<_ACEOF
7069#define HAVE_DECL_OPTRESET 0
7070_ACEOF
7071
7072
7073fi
7074
7075
7076echo "$as_me:$LINENO: checking whether sys_signame is declared" >&5
7077echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
7078if test "${ac_cv_have_decl_sys_signame+set}" = set; then
7079  echo $ECHO_N "(cached) $ECHO_C" >&6
7080else
7081  cat >conftest.$ac_ext <<_ACEOF
7082/* confdefs.h.  */
7083_ACEOF
7084cat confdefs.h >>conftest.$ac_ext
7085cat >>conftest.$ac_ext <<_ACEOF
7086/* end confdefs.h.  */
7087#include <signal.h>
7088
7089int
7090main ()
7091{
7092#ifndef sys_signame
7093  char *p = (char *) sys_signame;
7094#endif
7095
7096  ;
7097  return 0;
7098}
7099_ACEOF
7100rm -f conftest.$ac_objext
7101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7102  (eval $ac_compile) 2>conftest.er1
7103  ac_status=$?
7104  grep -v '^ *+' conftest.er1 >conftest.err
7105  rm -f conftest.er1
7106  cat conftest.err >&5
7107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108  (exit $ac_status); } &&
7109	 { ac_try='test -z "$ac_c_werror_flag"
7110			 || test ! -s conftest.err'
7111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112  (eval $ac_try) 2>&5
7113  ac_status=$?
7114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115  (exit $ac_status); }; } &&
7116	 { ac_try='test -s conftest.$ac_objext'
7117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118  (eval $ac_try) 2>&5
7119  ac_status=$?
7120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121  (exit $ac_status); }; }; then
7122  ac_cv_have_decl_sys_signame=yes
7123else
7124  echo "$as_me: failed program was:" >&5
7125sed 's/^/| /' conftest.$ac_ext >&5
7126
7127ac_cv_have_decl_sys_signame=no
7128fi
7129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7130fi
7131echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_signame" >&5
7132echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
7133if test $ac_cv_have_decl_sys_signame = yes; then
7134
7135cat >>confdefs.h <<_ACEOF
7136#define HAVE_DECL_SYS_SIGNAME 1
7137_ACEOF
7138
7139
7140else
7141  cat >>confdefs.h <<_ACEOF
7142#define HAVE_DECL_SYS_SIGNAME 0
7143_ACEOF
7144
7145
7146fi
7147
7148
7149
7150# Library functions (where a .h check isn't enough).
7151# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7152# for constant arguments.  Useless!
7153echo "$as_me:$LINENO: checking for working alloca.h" >&5
7154echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7155if test "${ac_cv_working_alloca_h+set}" = set; then
7156  echo $ECHO_N "(cached) $ECHO_C" >&6
7157else
7158  cat >conftest.$ac_ext <<_ACEOF
7159/* confdefs.h.  */
7160_ACEOF
7161cat confdefs.h >>conftest.$ac_ext
7162cat >>conftest.$ac_ext <<_ACEOF
7163/* end confdefs.h.  */
7164#include <alloca.h>
7165int
7166main ()
7167{
7168char *p = (char *) alloca (2 * sizeof (int));
7169  ;
7170  return 0;
7171}
7172_ACEOF
7173rm -f conftest.$ac_objext conftest$ac_exeext
7174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175  (eval $ac_link) 2>conftest.er1
7176  ac_status=$?
7177  grep -v '^ *+' conftest.er1 >conftest.err
7178  rm -f conftest.er1
7179  cat conftest.err >&5
7180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181  (exit $ac_status); } &&
7182	 { ac_try='test -z "$ac_c_werror_flag"
7183			 || test ! -s conftest.err'
7184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185  (eval $ac_try) 2>&5
7186  ac_status=$?
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); }; } &&
7189	 { ac_try='test -s conftest$ac_exeext'
7190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191  (eval $ac_try) 2>&5
7192  ac_status=$?
7193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194  (exit $ac_status); }; }; then
7195  ac_cv_working_alloca_h=yes
7196else
7197  echo "$as_me: failed program was:" >&5
7198sed 's/^/| /' conftest.$ac_ext >&5
7199
7200ac_cv_working_alloca_h=no
7201fi
7202rm -f conftest.err conftest.$ac_objext \
7203      conftest$ac_exeext conftest.$ac_ext
7204fi
7205echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7206echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7207if test $ac_cv_working_alloca_h = yes; then
7208
7209cat >>confdefs.h <<\_ACEOF
7210#define HAVE_ALLOCA_H 1
7211_ACEOF
7212
7213fi
7214
7215echo "$as_me:$LINENO: checking for alloca" >&5
7216echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7217if test "${ac_cv_func_alloca_works+set}" = set; then
7218  echo $ECHO_N "(cached) $ECHO_C" >&6
7219else
7220  cat >conftest.$ac_ext <<_ACEOF
7221/* confdefs.h.  */
7222_ACEOF
7223cat confdefs.h >>conftest.$ac_ext
7224cat >>conftest.$ac_ext <<_ACEOF
7225/* end confdefs.h.  */
7226#ifdef __GNUC__
7227# define alloca __builtin_alloca
7228#else
7229# ifdef _MSC_VER
7230#  include <malloc.h>
7231#  define alloca _alloca
7232# else
7233#  if HAVE_ALLOCA_H
7234#   include <alloca.h>
7235#  else
7236#   ifdef _AIX
7237 #pragma alloca
7238#   else
7239#    ifndef alloca /* predefined by HP cc +Olibcalls */
7240char *alloca ();
7241#    endif
7242#   endif
7243#  endif
7244# endif
7245#endif
7246
7247int
7248main ()
7249{
7250char *p = (char *) alloca (1);
7251  ;
7252  return 0;
7253}
7254_ACEOF
7255rm -f conftest.$ac_objext conftest$ac_exeext
7256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7257  (eval $ac_link) 2>conftest.er1
7258  ac_status=$?
7259  grep -v '^ *+' conftest.er1 >conftest.err
7260  rm -f conftest.er1
7261  cat conftest.err >&5
7262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263  (exit $ac_status); } &&
7264	 { ac_try='test -z "$ac_c_werror_flag"
7265			 || test ! -s conftest.err'
7266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267  (eval $ac_try) 2>&5
7268  ac_status=$?
7269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270  (exit $ac_status); }; } &&
7271	 { ac_try='test -s conftest$ac_exeext'
7272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273  (eval $ac_try) 2>&5
7274  ac_status=$?
7275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276  (exit $ac_status); }; }; then
7277  ac_cv_func_alloca_works=yes
7278else
7279  echo "$as_me: failed program was:" >&5
7280sed 's/^/| /' conftest.$ac_ext >&5
7281
7282ac_cv_func_alloca_works=no
7283fi
7284rm -f conftest.err conftest.$ac_objext \
7285      conftest$ac_exeext conftest.$ac_ext
7286fi
7287echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7288echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7289
7290if test $ac_cv_func_alloca_works = yes; then
7291
7292cat >>confdefs.h <<\_ACEOF
7293#define HAVE_ALLOCA 1
7294_ACEOF
7295
7296else
7297  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7298# that cause trouble.  Some versions do not even contain alloca or
7299# contain a buggy version.  If you still want to use their alloca,
7300# use ar to extract alloca.o from them instead of compiling alloca.c.
7301
7302ALLOCA=alloca.$ac_objext
7303
7304cat >>confdefs.h <<\_ACEOF
7305#define C_ALLOCA 1
7306_ACEOF
7307
7308
7309echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7310echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7311if test "${ac_cv_os_cray+set}" = set; then
7312  echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314  cat >conftest.$ac_ext <<_ACEOF
7315/* confdefs.h.  */
7316_ACEOF
7317cat confdefs.h >>conftest.$ac_ext
7318cat >>conftest.$ac_ext <<_ACEOF
7319/* end confdefs.h.  */
7320#if defined(CRAY) && ! defined(CRAY2)
7321webecray
7322#else
7323wenotbecray
7324#endif
7325
7326_ACEOF
7327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7328  $EGREP "webecray" >/dev/null 2>&1; then
7329  ac_cv_os_cray=yes
7330else
7331  ac_cv_os_cray=no
7332fi
7333rm -f conftest*
7334
7335fi
7336echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7337echo "${ECHO_T}$ac_cv_os_cray" >&6
7338if test $ac_cv_os_cray = yes; then
7339  for ac_func in _getb67 GETB67 getb67; do
7340    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7341echo "$as_me:$LINENO: checking for $ac_func" >&5
7342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7343if eval "test \"\${$as_ac_var+set}\" = set"; then
7344  echo $ECHO_N "(cached) $ECHO_C" >&6
7345else
7346  cat >conftest.$ac_ext <<_ACEOF
7347/* confdefs.h.  */
7348_ACEOF
7349cat confdefs.h >>conftest.$ac_ext
7350cat >>conftest.$ac_ext <<_ACEOF
7351/* end confdefs.h.  */
7352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7353   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7354#define $ac_func innocuous_$ac_func
7355
7356/* System header to define __stub macros and hopefully few prototypes,
7357    which can conflict with char $ac_func (); below.
7358    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7359    <limits.h> exists even on freestanding compilers.  */
7360
7361#ifdef __STDC__
7362# include <limits.h>
7363#else
7364# include <assert.h>
7365#endif
7366
7367#undef $ac_func
7368
7369/* Override any gcc2 internal prototype to avoid an error.  */
7370#ifdef __cplusplus
7371extern "C"
7372{
7373#endif
7374/* We use char because int might match the return type of a gcc2
7375   builtin and then its argument prototype would still apply.  */
7376char $ac_func ();
7377/* The GNU C library defines this for functions which it implements
7378    to always fail with ENOSYS.  Some functions are actually named
7379    something starting with __ and the normal name is an alias.  */
7380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7381choke me
7382#else
7383char (*f) () = $ac_func;
7384#endif
7385#ifdef __cplusplus
7386}
7387#endif
7388
7389int
7390main ()
7391{
7392return f != $ac_func;
7393  ;
7394  return 0;
7395}
7396_ACEOF
7397rm -f conftest.$ac_objext conftest$ac_exeext
7398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7399  (eval $ac_link) 2>conftest.er1
7400  ac_status=$?
7401  grep -v '^ *+' conftest.er1 >conftest.err
7402  rm -f conftest.er1
7403  cat conftest.err >&5
7404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405  (exit $ac_status); } &&
7406	 { ac_try='test -z "$ac_c_werror_flag"
7407			 || test ! -s conftest.err'
7408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409  (eval $ac_try) 2>&5
7410  ac_status=$?
7411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412  (exit $ac_status); }; } &&
7413	 { ac_try='test -s conftest$ac_exeext'
7414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415  (eval $ac_try) 2>&5
7416  ac_status=$?
7417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418  (exit $ac_status); }; }; then
7419  eval "$as_ac_var=yes"
7420else
7421  echo "$as_me: failed program was:" >&5
7422sed 's/^/| /' conftest.$ac_ext >&5
7423
7424eval "$as_ac_var=no"
7425fi
7426rm -f conftest.err conftest.$ac_objext \
7427      conftest$ac_exeext conftest.$ac_ext
7428fi
7429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7430echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7431if test `eval echo '${'$as_ac_var'}'` = yes; then
7432
7433cat >>confdefs.h <<_ACEOF
7434#define CRAY_STACKSEG_END $ac_func
7435_ACEOF
7436
7437    break
7438fi
7439
7440  done
7441fi
7442
7443echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7444echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7445if test "${ac_cv_c_stack_direction+set}" = set; then
7446  echo $ECHO_N "(cached) $ECHO_C" >&6
7447else
7448  if test "$cross_compiling" = yes; then
7449  ac_cv_c_stack_direction=0
7450else
7451  cat >conftest.$ac_ext <<_ACEOF
7452/* confdefs.h.  */
7453_ACEOF
7454cat confdefs.h >>conftest.$ac_ext
7455cat >>conftest.$ac_ext <<_ACEOF
7456/* end confdefs.h.  */
7457int
7458find_stack_direction ()
7459{
7460  static char *addr = 0;
7461  auto char dummy;
7462  if (addr == 0)
7463    {
7464      addr = &dummy;
7465      return find_stack_direction ();
7466    }
7467  else
7468    return (&dummy > addr) ? 1 : -1;
7469}
7470
7471int
7472main ()
7473{
7474  exit (find_stack_direction () < 0);
7475}
7476_ACEOF
7477rm -f conftest$ac_exeext
7478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479  (eval $ac_link) 2>&5
7480  ac_status=$?
7481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484  (eval $ac_try) 2>&5
7485  ac_status=$?
7486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487  (exit $ac_status); }; }; then
7488  ac_cv_c_stack_direction=1
7489else
7490  echo "$as_me: program exited with status $ac_status" >&5
7491echo "$as_me: failed program was:" >&5
7492sed 's/^/| /' conftest.$ac_ext >&5
7493
7494( exit $ac_status )
7495ac_cv_c_stack_direction=-1
7496fi
7497rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7498fi
7499fi
7500echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7501echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7502
7503cat >>confdefs.h <<_ACEOF
7504#define STACK_DIRECTION $ac_cv_c_stack_direction
7505_ACEOF
7506
7507
7508fi
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
7554	fgetln flock fparseln futimes getopt getopt_long group_from_gid \
7555	heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
7556	mkdtemp poll pread putc_unlocked pwcache_userdb pwrite random setenv \
7557	setgroupent setprogname setpassent snprintf strlcat strlcpy strsep \
7558	strsuftoll strtoll \
7559	user_from_uid vasprintf vasnprintf vsnprintf
7560do
7561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7562echo "$as_me:$LINENO: checking for $ac_func" >&5
7563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7564if eval "test \"\${$as_ac_var+set}\" = set"; then
7565  echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567  cat >conftest.$ac_ext <<_ACEOF
7568/* confdefs.h.  */
7569_ACEOF
7570cat confdefs.h >>conftest.$ac_ext
7571cat >>conftest.$ac_ext <<_ACEOF
7572/* end confdefs.h.  */
7573/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7574   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7575#define $ac_func innocuous_$ac_func
7576
7577/* System header to define __stub macros and hopefully few prototypes,
7578    which can conflict with char $ac_func (); below.
7579    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7580    <limits.h> exists even on freestanding compilers.  */
7581
7582#ifdef __STDC__
7583# include <limits.h>
7584#else
7585# include <assert.h>
7586#endif
7587
7588#undef $ac_func
7589
7590/* Override any gcc2 internal prototype to avoid an error.  */
7591#ifdef __cplusplus
7592extern "C"
7593{
7594#endif
7595/* We use char because int might match the return type of a gcc2
7596   builtin and then its argument prototype would still apply.  */
7597char $ac_func ();
7598/* The GNU C library defines this for functions which it implements
7599    to always fail with ENOSYS.  Some functions are actually named
7600    something starting with __ and the normal name is an alias.  */
7601#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7602choke me
7603#else
7604char (*f) () = $ac_func;
7605#endif
7606#ifdef __cplusplus
7607}
7608#endif
7609
7610int
7611main ()
7612{
7613return f != $ac_func;
7614  ;
7615  return 0;
7616}
7617_ACEOF
7618rm -f conftest.$ac_objext conftest$ac_exeext
7619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7620  (eval $ac_link) 2>conftest.er1
7621  ac_status=$?
7622  grep -v '^ *+' conftest.er1 >conftest.err
7623  rm -f conftest.er1
7624  cat conftest.err >&5
7625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626  (exit $ac_status); } &&
7627	 { ac_try='test -z "$ac_c_werror_flag"
7628			 || test ! -s conftest.err'
7629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630  (eval $ac_try) 2>&5
7631  ac_status=$?
7632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633  (exit $ac_status); }; } &&
7634	 { ac_try='test -s conftest$ac_exeext'
7635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636  (eval $ac_try) 2>&5
7637  ac_status=$?
7638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639  (exit $ac_status); }; }; then
7640  eval "$as_ac_var=yes"
7641else
7642  echo "$as_me: failed program was:" >&5
7643sed 's/^/| /' conftest.$ac_ext >&5
7644
7645eval "$as_ac_var=no"
7646fi
7647rm -f conftest.err conftest.$ac_objext \
7648      conftest$ac_exeext conftest.$ac_ext
7649fi
7650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7651echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7652if test `eval echo '${'$as_ac_var'}'` = yes; then
7653  cat >>confdefs.h <<_ACEOF
7654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7655_ACEOF
7656
7657fi
7658done
7659
7660
7661echo "$as_me:$LINENO: checking whether htobe16 is declared" >&5
7662echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6
7663if test "${ac_cv_have_decl_htobe16+set}" = set; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666  cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h.  */
7668_ACEOF
7669cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h.  */
7672
7673#include <sys/types.h>
7674
7675
7676int
7677main ()
7678{
7679#ifndef htobe16
7680  char *p = (char *) htobe16;
7681#endif
7682
7683  ;
7684  return 0;
7685}
7686_ACEOF
7687rm -f conftest.$ac_objext
7688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689  (eval $ac_compile) 2>conftest.er1
7690  ac_status=$?
7691  grep -v '^ *+' conftest.er1 >conftest.err
7692  rm -f conftest.er1
7693  cat conftest.err >&5
7694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695  (exit $ac_status); } &&
7696	 { ac_try='test -z "$ac_c_werror_flag"
7697			 || test ! -s conftest.err'
7698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699  (eval $ac_try) 2>&5
7700  ac_status=$?
7701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702  (exit $ac_status); }; } &&
7703	 { ac_try='test -s conftest.$ac_objext'
7704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705  (eval $ac_try) 2>&5
7706  ac_status=$?
7707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708  (exit $ac_status); }; }; then
7709  ac_cv_have_decl_htobe16=yes
7710else
7711  echo "$as_me: failed program was:" >&5
7712sed 's/^/| /' conftest.$ac_ext >&5
7713
7714ac_cv_have_decl_htobe16=no
7715fi
7716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7717fi
7718echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe16" >&5
7719echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6
7720if test $ac_cv_have_decl_htobe16 = yes; then
7721
7722cat >>confdefs.h <<_ACEOF
7723#define HAVE_DECL_HTOBE16 1
7724_ACEOF
7725
7726
7727else
7728  cat >>confdefs.h <<_ACEOF
7729#define HAVE_DECL_HTOBE16 0
7730_ACEOF
7731
7732
7733fi
7734echo "$as_me:$LINENO: checking whether htobe32 is declared" >&5
7735echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6
7736if test "${ac_cv_have_decl_htobe32+set}" = set; then
7737  echo $ECHO_N "(cached) $ECHO_C" >&6
7738else
7739  cat >conftest.$ac_ext <<_ACEOF
7740/* confdefs.h.  */
7741_ACEOF
7742cat confdefs.h >>conftest.$ac_ext
7743cat >>conftest.$ac_ext <<_ACEOF
7744/* end confdefs.h.  */
7745
7746#include <sys/types.h>
7747
7748
7749int
7750main ()
7751{
7752#ifndef htobe32
7753  char *p = (char *) htobe32;
7754#endif
7755
7756  ;
7757  return 0;
7758}
7759_ACEOF
7760rm -f conftest.$ac_objext
7761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7762  (eval $ac_compile) 2>conftest.er1
7763  ac_status=$?
7764  grep -v '^ *+' conftest.er1 >conftest.err
7765  rm -f conftest.er1
7766  cat conftest.err >&5
7767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768  (exit $ac_status); } &&
7769	 { ac_try='test -z "$ac_c_werror_flag"
7770			 || test ! -s conftest.err'
7771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772  (eval $ac_try) 2>&5
7773  ac_status=$?
7774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775  (exit $ac_status); }; } &&
7776	 { ac_try='test -s conftest.$ac_objext'
7777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778  (eval $ac_try) 2>&5
7779  ac_status=$?
7780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781  (exit $ac_status); }; }; then
7782  ac_cv_have_decl_htobe32=yes
7783else
7784  echo "$as_me: failed program was:" >&5
7785sed 's/^/| /' conftest.$ac_ext >&5
7786
7787ac_cv_have_decl_htobe32=no
7788fi
7789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7790fi
7791echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe32" >&5
7792echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6
7793if test $ac_cv_have_decl_htobe32 = yes; then
7794
7795cat >>confdefs.h <<_ACEOF
7796#define HAVE_DECL_HTOBE32 1
7797_ACEOF
7798
7799
7800else
7801  cat >>confdefs.h <<_ACEOF
7802#define HAVE_DECL_HTOBE32 0
7803_ACEOF
7804
7805
7806fi
7807echo "$as_me:$LINENO: checking whether htobe64 is declared" >&5
7808echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6
7809if test "${ac_cv_have_decl_htobe64+set}" = set; then
7810  echo $ECHO_N "(cached) $ECHO_C" >&6
7811else
7812  cat >conftest.$ac_ext <<_ACEOF
7813/* confdefs.h.  */
7814_ACEOF
7815cat confdefs.h >>conftest.$ac_ext
7816cat >>conftest.$ac_ext <<_ACEOF
7817/* end confdefs.h.  */
7818
7819#include <sys/types.h>
7820
7821
7822int
7823main ()
7824{
7825#ifndef htobe64
7826  char *p = (char *) htobe64;
7827#endif
7828
7829  ;
7830  return 0;
7831}
7832_ACEOF
7833rm -f conftest.$ac_objext
7834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835  (eval $ac_compile) 2>conftest.er1
7836  ac_status=$?
7837  grep -v '^ *+' conftest.er1 >conftest.err
7838  rm -f conftest.er1
7839  cat conftest.err >&5
7840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841  (exit $ac_status); } &&
7842	 { ac_try='test -z "$ac_c_werror_flag"
7843			 || test ! -s conftest.err'
7844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845  (eval $ac_try) 2>&5
7846  ac_status=$?
7847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848  (exit $ac_status); }; } &&
7849	 { ac_try='test -s conftest.$ac_objext'
7850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851  (eval $ac_try) 2>&5
7852  ac_status=$?
7853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854  (exit $ac_status); }; }; then
7855  ac_cv_have_decl_htobe64=yes
7856else
7857  echo "$as_me: failed program was:" >&5
7858sed 's/^/| /' conftest.$ac_ext >&5
7859
7860ac_cv_have_decl_htobe64=no
7861fi
7862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7863fi
7864echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe64" >&5
7865echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6
7866if test $ac_cv_have_decl_htobe64 = yes; then
7867
7868cat >>confdefs.h <<_ACEOF
7869#define HAVE_DECL_HTOBE64 1
7870_ACEOF
7871
7872
7873else
7874  cat >>confdefs.h <<_ACEOF
7875#define HAVE_DECL_HTOBE64 0
7876_ACEOF
7877
7878
7879fi
7880echo "$as_me:$LINENO: checking whether htole16 is declared" >&5
7881echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6
7882if test "${ac_cv_have_decl_htole16+set}" = set; then
7883  echo $ECHO_N "(cached) $ECHO_C" >&6
7884else
7885  cat >conftest.$ac_ext <<_ACEOF
7886/* confdefs.h.  */
7887_ACEOF
7888cat confdefs.h >>conftest.$ac_ext
7889cat >>conftest.$ac_ext <<_ACEOF
7890/* end confdefs.h.  */
7891
7892#include <sys/types.h>
7893
7894
7895int
7896main ()
7897{
7898#ifndef htole16
7899  char *p = (char *) htole16;
7900#endif
7901
7902  ;
7903  return 0;
7904}
7905_ACEOF
7906rm -f conftest.$ac_objext
7907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7908  (eval $ac_compile) 2>conftest.er1
7909  ac_status=$?
7910  grep -v '^ *+' conftest.er1 >conftest.err
7911  rm -f conftest.er1
7912  cat conftest.err >&5
7913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914  (exit $ac_status); } &&
7915	 { ac_try='test -z "$ac_c_werror_flag"
7916			 || test ! -s conftest.err'
7917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918  (eval $ac_try) 2>&5
7919  ac_status=$?
7920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921  (exit $ac_status); }; } &&
7922	 { ac_try='test -s conftest.$ac_objext'
7923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924  (eval $ac_try) 2>&5
7925  ac_status=$?
7926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927  (exit $ac_status); }; }; then
7928  ac_cv_have_decl_htole16=yes
7929else
7930  echo "$as_me: failed program was:" >&5
7931sed 's/^/| /' conftest.$ac_ext >&5
7932
7933ac_cv_have_decl_htole16=no
7934fi
7935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7936fi
7937echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole16" >&5
7938echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6
7939if test $ac_cv_have_decl_htole16 = yes; then
7940
7941cat >>confdefs.h <<_ACEOF
7942#define HAVE_DECL_HTOLE16 1
7943_ACEOF
7944
7945
7946else
7947  cat >>confdefs.h <<_ACEOF
7948#define HAVE_DECL_HTOLE16 0
7949_ACEOF
7950
7951
7952fi
7953echo "$as_me:$LINENO: checking whether htole32 is declared" >&5
7954echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6
7955if test "${ac_cv_have_decl_htole32+set}" = set; then
7956  echo $ECHO_N "(cached) $ECHO_C" >&6
7957else
7958  cat >conftest.$ac_ext <<_ACEOF
7959/* confdefs.h.  */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
7963/* end confdefs.h.  */
7964
7965#include <sys/types.h>
7966
7967
7968int
7969main ()
7970{
7971#ifndef htole32
7972  char *p = (char *) htole32;
7973#endif
7974
7975  ;
7976  return 0;
7977}
7978_ACEOF
7979rm -f conftest.$ac_objext
7980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981  (eval $ac_compile) 2>conftest.er1
7982  ac_status=$?
7983  grep -v '^ *+' conftest.er1 >conftest.err
7984  rm -f conftest.er1
7985  cat conftest.err >&5
7986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987  (exit $ac_status); } &&
7988	 { ac_try='test -z "$ac_c_werror_flag"
7989			 || test ! -s conftest.err'
7990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991  (eval $ac_try) 2>&5
7992  ac_status=$?
7993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994  (exit $ac_status); }; } &&
7995	 { ac_try='test -s conftest.$ac_objext'
7996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997  (eval $ac_try) 2>&5
7998  ac_status=$?
7999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000  (exit $ac_status); }; }; then
8001  ac_cv_have_decl_htole32=yes
8002else
8003  echo "$as_me: failed program was:" >&5
8004sed 's/^/| /' conftest.$ac_ext >&5
8005
8006ac_cv_have_decl_htole32=no
8007fi
8008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8009fi
8010echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole32" >&5
8011echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6
8012if test $ac_cv_have_decl_htole32 = yes; then
8013
8014cat >>confdefs.h <<_ACEOF
8015#define HAVE_DECL_HTOLE32 1
8016_ACEOF
8017
8018
8019else
8020  cat >>confdefs.h <<_ACEOF
8021#define HAVE_DECL_HTOLE32 0
8022_ACEOF
8023
8024
8025fi
8026echo "$as_me:$LINENO: checking whether htole64 is declared" >&5
8027echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6
8028if test "${ac_cv_have_decl_htole64+set}" = set; then
8029  echo $ECHO_N "(cached) $ECHO_C" >&6
8030else
8031  cat >conftest.$ac_ext <<_ACEOF
8032/* confdefs.h.  */
8033_ACEOF
8034cat confdefs.h >>conftest.$ac_ext
8035cat >>conftest.$ac_ext <<_ACEOF
8036/* end confdefs.h.  */
8037
8038#include <sys/types.h>
8039
8040
8041int
8042main ()
8043{
8044#ifndef htole64
8045  char *p = (char *) htole64;
8046#endif
8047
8048  ;
8049  return 0;
8050}
8051_ACEOF
8052rm -f conftest.$ac_objext
8053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054  (eval $ac_compile) 2>conftest.er1
8055  ac_status=$?
8056  grep -v '^ *+' conftest.er1 >conftest.err
8057  rm -f conftest.er1
8058  cat conftest.err >&5
8059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060  (exit $ac_status); } &&
8061	 { ac_try='test -z "$ac_c_werror_flag"
8062			 || test ! -s conftest.err'
8063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064  (eval $ac_try) 2>&5
8065  ac_status=$?
8066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067  (exit $ac_status); }; } &&
8068	 { ac_try='test -s conftest.$ac_objext'
8069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070  (eval $ac_try) 2>&5
8071  ac_status=$?
8072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073  (exit $ac_status); }; }; then
8074  ac_cv_have_decl_htole64=yes
8075else
8076  echo "$as_me: failed program was:" >&5
8077sed 's/^/| /' conftest.$ac_ext >&5
8078
8079ac_cv_have_decl_htole64=no
8080fi
8081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8082fi
8083echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole64" >&5
8084echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6
8085if test $ac_cv_have_decl_htole64 = yes; then
8086
8087cat >>confdefs.h <<_ACEOF
8088#define HAVE_DECL_HTOLE64 1
8089_ACEOF
8090
8091
8092else
8093  cat >>confdefs.h <<_ACEOF
8094#define HAVE_DECL_HTOLE64 0
8095_ACEOF
8096
8097
8098fi
8099echo "$as_me:$LINENO: checking whether be16toh is declared" >&5
8100echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6
8101if test "${ac_cv_have_decl_be16toh+set}" = set; then
8102  echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
8104  cat >conftest.$ac_ext <<_ACEOF
8105/* confdefs.h.  */
8106_ACEOF
8107cat confdefs.h >>conftest.$ac_ext
8108cat >>conftest.$ac_ext <<_ACEOF
8109/* end confdefs.h.  */
8110
8111#include <sys/types.h>
8112
8113
8114int
8115main ()
8116{
8117#ifndef be16toh
8118  char *p = (char *) be16toh;
8119#endif
8120
8121  ;
8122  return 0;
8123}
8124_ACEOF
8125rm -f conftest.$ac_objext
8126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127  (eval $ac_compile) 2>conftest.er1
8128  ac_status=$?
8129  grep -v '^ *+' conftest.er1 >conftest.err
8130  rm -f conftest.er1
8131  cat conftest.err >&5
8132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133  (exit $ac_status); } &&
8134	 { ac_try='test -z "$ac_c_werror_flag"
8135			 || test ! -s conftest.err'
8136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137  (eval $ac_try) 2>&5
8138  ac_status=$?
8139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140  (exit $ac_status); }; } &&
8141	 { ac_try='test -s conftest.$ac_objext'
8142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143  (eval $ac_try) 2>&5
8144  ac_status=$?
8145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146  (exit $ac_status); }; }; then
8147  ac_cv_have_decl_be16toh=yes
8148else
8149  echo "$as_me: failed program was:" >&5
8150sed 's/^/| /' conftest.$ac_ext >&5
8151
8152ac_cv_have_decl_be16toh=no
8153fi
8154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8155fi
8156echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16toh" >&5
8157echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6
8158if test $ac_cv_have_decl_be16toh = yes; then
8159
8160cat >>confdefs.h <<_ACEOF
8161#define HAVE_DECL_BE16TOH 1
8162_ACEOF
8163
8164
8165else
8166  cat >>confdefs.h <<_ACEOF
8167#define HAVE_DECL_BE16TOH 0
8168_ACEOF
8169
8170
8171fi
8172echo "$as_me:$LINENO: checking whether be32toh is declared" >&5
8173echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6
8174if test "${ac_cv_have_decl_be32toh+set}" = set; then
8175  echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177  cat >conftest.$ac_ext <<_ACEOF
8178/* confdefs.h.  */
8179_ACEOF
8180cat confdefs.h >>conftest.$ac_ext
8181cat >>conftest.$ac_ext <<_ACEOF
8182/* end confdefs.h.  */
8183
8184#include <sys/types.h>
8185
8186
8187int
8188main ()
8189{
8190#ifndef be32toh
8191  char *p = (char *) be32toh;
8192#endif
8193
8194  ;
8195  return 0;
8196}
8197_ACEOF
8198rm -f conftest.$ac_objext
8199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8200  (eval $ac_compile) 2>conftest.er1
8201  ac_status=$?
8202  grep -v '^ *+' conftest.er1 >conftest.err
8203  rm -f conftest.er1
8204  cat conftest.err >&5
8205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206  (exit $ac_status); } &&
8207	 { ac_try='test -z "$ac_c_werror_flag"
8208			 || test ! -s conftest.err'
8209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210  (eval $ac_try) 2>&5
8211  ac_status=$?
8212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213  (exit $ac_status); }; } &&
8214	 { ac_try='test -s conftest.$ac_objext'
8215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216  (eval $ac_try) 2>&5
8217  ac_status=$?
8218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219  (exit $ac_status); }; }; then
8220  ac_cv_have_decl_be32toh=yes
8221else
8222  echo "$as_me: failed program was:" >&5
8223sed 's/^/| /' conftest.$ac_ext >&5
8224
8225ac_cv_have_decl_be32toh=no
8226fi
8227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8228fi
8229echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32toh" >&5
8230echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6
8231if test $ac_cv_have_decl_be32toh = yes; then
8232
8233cat >>confdefs.h <<_ACEOF
8234#define HAVE_DECL_BE32TOH 1
8235_ACEOF
8236
8237
8238else
8239  cat >>confdefs.h <<_ACEOF
8240#define HAVE_DECL_BE32TOH 0
8241_ACEOF
8242
8243
8244fi
8245echo "$as_me:$LINENO: checking whether be64toh is declared" >&5
8246echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6
8247if test "${ac_cv_have_decl_be64toh+set}" = set; then
8248  echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250  cat >conftest.$ac_ext <<_ACEOF
8251/* confdefs.h.  */
8252_ACEOF
8253cat confdefs.h >>conftest.$ac_ext
8254cat >>conftest.$ac_ext <<_ACEOF
8255/* end confdefs.h.  */
8256
8257#include <sys/types.h>
8258
8259
8260int
8261main ()
8262{
8263#ifndef be64toh
8264  char *p = (char *) be64toh;
8265#endif
8266
8267  ;
8268  return 0;
8269}
8270_ACEOF
8271rm -f conftest.$ac_objext
8272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8273  (eval $ac_compile) 2>conftest.er1
8274  ac_status=$?
8275  grep -v '^ *+' conftest.er1 >conftest.err
8276  rm -f conftest.er1
8277  cat conftest.err >&5
8278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279  (exit $ac_status); } &&
8280	 { ac_try='test -z "$ac_c_werror_flag"
8281			 || test ! -s conftest.err'
8282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283  (eval $ac_try) 2>&5
8284  ac_status=$?
8285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286  (exit $ac_status); }; } &&
8287	 { ac_try='test -s conftest.$ac_objext'
8288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289  (eval $ac_try) 2>&5
8290  ac_status=$?
8291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292  (exit $ac_status); }; }; then
8293  ac_cv_have_decl_be64toh=yes
8294else
8295  echo "$as_me: failed program was:" >&5
8296sed 's/^/| /' conftest.$ac_ext >&5
8297
8298ac_cv_have_decl_be64toh=no
8299fi
8300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8301fi
8302echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64toh" >&5
8303echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6
8304if test $ac_cv_have_decl_be64toh = yes; then
8305
8306cat >>confdefs.h <<_ACEOF
8307#define HAVE_DECL_BE64TOH 1
8308_ACEOF
8309
8310
8311else
8312  cat >>confdefs.h <<_ACEOF
8313#define HAVE_DECL_BE64TOH 0
8314_ACEOF
8315
8316
8317fi
8318echo "$as_me:$LINENO: checking whether le16toh is declared" >&5
8319echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6
8320if test "${ac_cv_have_decl_le16toh+set}" = set; then
8321  echo $ECHO_N "(cached) $ECHO_C" >&6
8322else
8323  cat >conftest.$ac_ext <<_ACEOF
8324/* confdefs.h.  */
8325_ACEOF
8326cat confdefs.h >>conftest.$ac_ext
8327cat >>conftest.$ac_ext <<_ACEOF
8328/* end confdefs.h.  */
8329
8330#include <sys/types.h>
8331
8332
8333int
8334main ()
8335{
8336#ifndef le16toh
8337  char *p = (char *) le16toh;
8338#endif
8339
8340  ;
8341  return 0;
8342}
8343_ACEOF
8344rm -f conftest.$ac_objext
8345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8346  (eval $ac_compile) 2>conftest.er1
8347  ac_status=$?
8348  grep -v '^ *+' conftest.er1 >conftest.err
8349  rm -f conftest.er1
8350  cat conftest.err >&5
8351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352  (exit $ac_status); } &&
8353	 { ac_try='test -z "$ac_c_werror_flag"
8354			 || test ! -s conftest.err'
8355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356  (eval $ac_try) 2>&5
8357  ac_status=$?
8358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359  (exit $ac_status); }; } &&
8360	 { ac_try='test -s conftest.$ac_objext'
8361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362  (eval $ac_try) 2>&5
8363  ac_status=$?
8364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365  (exit $ac_status); }; }; then
8366  ac_cv_have_decl_le16toh=yes
8367else
8368  echo "$as_me: failed program was:" >&5
8369sed 's/^/| /' conftest.$ac_ext >&5
8370
8371ac_cv_have_decl_le16toh=no
8372fi
8373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8374fi
8375echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16toh" >&5
8376echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6
8377if test $ac_cv_have_decl_le16toh = yes; then
8378
8379cat >>confdefs.h <<_ACEOF
8380#define HAVE_DECL_LE16TOH 1
8381_ACEOF
8382
8383
8384else
8385  cat >>confdefs.h <<_ACEOF
8386#define HAVE_DECL_LE16TOH 0
8387_ACEOF
8388
8389
8390fi
8391echo "$as_me:$LINENO: checking whether le32toh is declared" >&5
8392echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6
8393if test "${ac_cv_have_decl_le32toh+set}" = set; then
8394  echo $ECHO_N "(cached) $ECHO_C" >&6
8395else
8396  cat >conftest.$ac_ext <<_ACEOF
8397/* confdefs.h.  */
8398_ACEOF
8399cat confdefs.h >>conftest.$ac_ext
8400cat >>conftest.$ac_ext <<_ACEOF
8401/* end confdefs.h.  */
8402
8403#include <sys/types.h>
8404
8405
8406int
8407main ()
8408{
8409#ifndef le32toh
8410  char *p = (char *) le32toh;
8411#endif
8412
8413  ;
8414  return 0;
8415}
8416_ACEOF
8417rm -f conftest.$ac_objext
8418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8419  (eval $ac_compile) 2>conftest.er1
8420  ac_status=$?
8421  grep -v '^ *+' conftest.er1 >conftest.err
8422  rm -f conftest.er1
8423  cat conftest.err >&5
8424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425  (exit $ac_status); } &&
8426	 { ac_try='test -z "$ac_c_werror_flag"
8427			 || test ! -s conftest.err'
8428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429  (eval $ac_try) 2>&5
8430  ac_status=$?
8431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432  (exit $ac_status); }; } &&
8433	 { ac_try='test -s conftest.$ac_objext'
8434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435  (eval $ac_try) 2>&5
8436  ac_status=$?
8437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438  (exit $ac_status); }; }; then
8439  ac_cv_have_decl_le32toh=yes
8440else
8441  echo "$as_me: failed program was:" >&5
8442sed 's/^/| /' conftest.$ac_ext >&5
8443
8444ac_cv_have_decl_le32toh=no
8445fi
8446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8447fi
8448echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32toh" >&5
8449echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6
8450if test $ac_cv_have_decl_le32toh = yes; then
8451
8452cat >>confdefs.h <<_ACEOF
8453#define HAVE_DECL_LE32TOH 1
8454_ACEOF
8455
8456
8457else
8458  cat >>confdefs.h <<_ACEOF
8459#define HAVE_DECL_LE32TOH 0
8460_ACEOF
8461
8462
8463fi
8464echo "$as_me:$LINENO: checking whether le64toh is declared" >&5
8465echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6
8466if test "${ac_cv_have_decl_le64toh+set}" = set; then
8467  echo $ECHO_N "(cached) $ECHO_C" >&6
8468else
8469  cat >conftest.$ac_ext <<_ACEOF
8470/* confdefs.h.  */
8471_ACEOF
8472cat confdefs.h >>conftest.$ac_ext
8473cat >>conftest.$ac_ext <<_ACEOF
8474/* end confdefs.h.  */
8475
8476#include <sys/types.h>
8477
8478
8479int
8480main ()
8481{
8482#ifndef le64toh
8483  char *p = (char *) le64toh;
8484#endif
8485
8486  ;
8487  return 0;
8488}
8489_ACEOF
8490rm -f conftest.$ac_objext
8491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8492  (eval $ac_compile) 2>conftest.er1
8493  ac_status=$?
8494  grep -v '^ *+' conftest.er1 >conftest.err
8495  rm -f conftest.er1
8496  cat conftest.err >&5
8497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498  (exit $ac_status); } &&
8499	 { ac_try='test -z "$ac_c_werror_flag"
8500			 || test ! -s conftest.err'
8501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502  (eval $ac_try) 2>&5
8503  ac_status=$?
8504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505  (exit $ac_status); }; } &&
8506	 { ac_try='test -s conftest.$ac_objext'
8507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508  (eval $ac_try) 2>&5
8509  ac_status=$?
8510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511  (exit $ac_status); }; }; then
8512  ac_cv_have_decl_le64toh=yes
8513else
8514  echo "$as_me: failed program was:" >&5
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
8517ac_cv_have_decl_le64toh=no
8518fi
8519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8520fi
8521echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64toh" >&5
8522echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6
8523if test $ac_cv_have_decl_le64toh = yes; then
8524
8525cat >>confdefs.h <<_ACEOF
8526#define HAVE_DECL_LE64TOH 1
8527_ACEOF
8528
8529
8530else
8531  cat >>confdefs.h <<_ACEOF
8532#define HAVE_DECL_LE64TOH 0
8533_ACEOF
8534
8535
8536fi
8537
8538
8539
8540echo "$as_me:$LINENO: checking whether bswap16 is declared" >&5
8541echo $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6
8542if test "${ac_cv_have_decl_bswap16+set}" = set; then
8543  echo $ECHO_N "(cached) $ECHO_C" >&6
8544else
8545  cat >conftest.$ac_ext <<_ACEOF
8546/* confdefs.h.  */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h.  */
8551
8552#include <machine/bswap.h>
8553
8554
8555int
8556main ()
8557{
8558#ifndef bswap16
8559  char *p = (char *) bswap16;
8560#endif
8561
8562  ;
8563  return 0;
8564}
8565_ACEOF
8566rm -f conftest.$ac_objext
8567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568  (eval $ac_compile) 2>conftest.er1
8569  ac_status=$?
8570  grep -v '^ *+' conftest.er1 >conftest.err
8571  rm -f conftest.er1
8572  cat conftest.err >&5
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); } &&
8575	 { ac_try='test -z "$ac_c_werror_flag"
8576			 || test ! -s conftest.err'
8577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578  (eval $ac_try) 2>&5
8579  ac_status=$?
8580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581  (exit $ac_status); }; } &&
8582	 { ac_try='test -s conftest.$ac_objext'
8583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584  (eval $ac_try) 2>&5
8585  ac_status=$?
8586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587  (exit $ac_status); }; }; then
8588  ac_cv_have_decl_bswap16=yes
8589else
8590  echo "$as_me: failed program was:" >&5
8591sed 's/^/| /' conftest.$ac_ext >&5
8592
8593ac_cv_have_decl_bswap16=no
8594fi
8595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8596fi
8597echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap16" >&5
8598echo "${ECHO_T}$ac_cv_have_decl_bswap16" >&6
8599if test $ac_cv_have_decl_bswap16 = yes; then
8600
8601cat >>confdefs.h <<_ACEOF
8602#define HAVE_DECL_BSWAP16 1
8603_ACEOF
8604
8605
8606else
8607  cat >>confdefs.h <<_ACEOF
8608#define HAVE_DECL_BSWAP16 0
8609_ACEOF
8610
8611
8612fi
8613echo "$as_me:$LINENO: checking whether bswap32 is declared" >&5
8614echo $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6
8615if test "${ac_cv_have_decl_bswap32+set}" = set; then
8616  echo $ECHO_N "(cached) $ECHO_C" >&6
8617else
8618  cat >conftest.$ac_ext <<_ACEOF
8619/* confdefs.h.  */
8620_ACEOF
8621cat confdefs.h >>conftest.$ac_ext
8622cat >>conftest.$ac_ext <<_ACEOF
8623/* end confdefs.h.  */
8624
8625#include <machine/bswap.h>
8626
8627
8628int
8629main ()
8630{
8631#ifndef bswap32
8632  char *p = (char *) bswap32;
8633#endif
8634
8635  ;
8636  return 0;
8637}
8638_ACEOF
8639rm -f conftest.$ac_objext
8640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8641  (eval $ac_compile) 2>conftest.er1
8642  ac_status=$?
8643  grep -v '^ *+' conftest.er1 >conftest.err
8644  rm -f conftest.er1
8645  cat conftest.err >&5
8646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647  (exit $ac_status); } &&
8648	 { ac_try='test -z "$ac_c_werror_flag"
8649			 || test ! -s conftest.err'
8650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651  (eval $ac_try) 2>&5
8652  ac_status=$?
8653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654  (exit $ac_status); }; } &&
8655	 { ac_try='test -s conftest.$ac_objext'
8656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657  (eval $ac_try) 2>&5
8658  ac_status=$?
8659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660  (exit $ac_status); }; }; then
8661  ac_cv_have_decl_bswap32=yes
8662else
8663  echo "$as_me: failed program was:" >&5
8664sed 's/^/| /' conftest.$ac_ext >&5
8665
8666ac_cv_have_decl_bswap32=no
8667fi
8668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8669fi
8670echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap32" >&5
8671echo "${ECHO_T}$ac_cv_have_decl_bswap32" >&6
8672if test $ac_cv_have_decl_bswap32 = yes; then
8673
8674cat >>confdefs.h <<_ACEOF
8675#define HAVE_DECL_BSWAP32 1
8676_ACEOF
8677
8678
8679else
8680  cat >>confdefs.h <<_ACEOF
8681#define HAVE_DECL_BSWAP32 0
8682_ACEOF
8683
8684
8685fi
8686echo "$as_me:$LINENO: checking whether bswap64 is declared" >&5
8687echo $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6
8688if test "${ac_cv_have_decl_bswap64+set}" = set; then
8689  echo $ECHO_N "(cached) $ECHO_C" >&6
8690else
8691  cat >conftest.$ac_ext <<_ACEOF
8692/* confdefs.h.  */
8693_ACEOF
8694cat confdefs.h >>conftest.$ac_ext
8695cat >>conftest.$ac_ext <<_ACEOF
8696/* end confdefs.h.  */
8697
8698#include <machine/bswap.h>
8699
8700
8701int
8702main ()
8703{
8704#ifndef bswap64
8705  char *p = (char *) bswap64;
8706#endif
8707
8708  ;
8709  return 0;
8710}
8711_ACEOF
8712rm -f conftest.$ac_objext
8713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8714  (eval $ac_compile) 2>conftest.er1
8715  ac_status=$?
8716  grep -v '^ *+' conftest.er1 >conftest.err
8717  rm -f conftest.er1
8718  cat conftest.err >&5
8719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720  (exit $ac_status); } &&
8721	 { ac_try='test -z "$ac_c_werror_flag"
8722			 || test ! -s conftest.err'
8723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724  (eval $ac_try) 2>&5
8725  ac_status=$?
8726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727  (exit $ac_status); }; } &&
8728	 { ac_try='test -s conftest.$ac_objext'
8729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730  (eval $ac_try) 2>&5
8731  ac_status=$?
8732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733  (exit $ac_status); }; }; then
8734  ac_cv_have_decl_bswap64=yes
8735else
8736  echo "$as_me: failed program was:" >&5
8737sed 's/^/| /' conftest.$ac_ext >&5
8738
8739ac_cv_have_decl_bswap64=no
8740fi
8741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8742fi
8743echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap64" >&5
8744echo "${ECHO_T}$ac_cv_have_decl_bswap64" >&6
8745if test $ac_cv_have_decl_bswap64 = yes; then
8746
8747cat >>confdefs.h <<_ACEOF
8748#define HAVE_DECL_BSWAP64 1
8749_ACEOF
8750
8751
8752else
8753  cat >>confdefs.h <<_ACEOF
8754#define HAVE_DECL_BSWAP64 0
8755_ACEOF
8756
8757
8758fi
8759
8760
8761
8762echo "$as_me:$LINENO: checking whether fstatvfs is declared" >&5
8763echo $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6
8764if test "${ac_cv_have_decl_fstatvfs+set}" = set; then
8765  echo $ECHO_N "(cached) $ECHO_C" >&6
8766else
8767  cat >conftest.$ac_ext <<_ACEOF
8768/* confdefs.h.  */
8769_ACEOF
8770cat confdefs.h >>conftest.$ac_ext
8771cat >>conftest.$ac_ext <<_ACEOF
8772/* end confdefs.h.  */
8773
8774#include <sys/statvfs.h>
8775
8776
8777int
8778main ()
8779{
8780#ifndef fstatvfs
8781  char *p = (char *) fstatvfs;
8782#endif
8783
8784  ;
8785  return 0;
8786}
8787_ACEOF
8788rm -f conftest.$ac_objext
8789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790  (eval $ac_compile) 2>conftest.er1
8791  ac_status=$?
8792  grep -v '^ *+' conftest.er1 >conftest.err
8793  rm -f conftest.er1
8794  cat conftest.err >&5
8795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796  (exit $ac_status); } &&
8797	 { ac_try='test -z "$ac_c_werror_flag"
8798			 || test ! -s conftest.err'
8799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800  (eval $ac_try) 2>&5
8801  ac_status=$?
8802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803  (exit $ac_status); }; } &&
8804	 { ac_try='test -s conftest.$ac_objext'
8805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806  (eval $ac_try) 2>&5
8807  ac_status=$?
8808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809  (exit $ac_status); }; }; then
8810  ac_cv_have_decl_fstatvfs=yes
8811else
8812  echo "$as_me: failed program was:" >&5
8813sed 's/^/| /' conftest.$ac_ext >&5
8814
8815ac_cv_have_decl_fstatvfs=no
8816fi
8817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8818fi
8819echo "$as_me:$LINENO: result: $ac_cv_have_decl_fstatvfs" >&5
8820echo "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6
8821if test $ac_cv_have_decl_fstatvfs = yes; then
8822
8823cat >>confdefs.h <<_ACEOF
8824#define HAVE_DECL_FSTATVFS 1
8825_ACEOF
8826
8827
8828else
8829  cat >>confdefs.h <<_ACEOF
8830#define HAVE_DECL_FSTATVFS 0
8831_ACEOF
8832
8833
8834fi
8835
8836
8837
8838echo "$as_me:$LINENO: checking whether setgroupent is declared" >&5
8839echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
8840if test "${ac_cv_have_decl_setgroupent+set}" = set; then
8841  echo $ECHO_N "(cached) $ECHO_C" >&6
8842else
8843  cat >conftest.$ac_ext <<_ACEOF
8844/* confdefs.h.  */
8845_ACEOF
8846cat confdefs.h >>conftest.$ac_ext
8847cat >>conftest.$ac_ext <<_ACEOF
8848/* end confdefs.h.  */
8849
8850#include <sys/types.h>
8851#include <grp.h>
8852#include <pwd.h>
8853
8854
8855int
8856main ()
8857{
8858#ifndef setgroupent
8859  char *p = (char *) setgroupent;
8860#endif
8861
8862  ;
8863  return 0;
8864}
8865_ACEOF
8866rm -f conftest.$ac_objext
8867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868  (eval $ac_compile) 2>conftest.er1
8869  ac_status=$?
8870  grep -v '^ *+' conftest.er1 >conftest.err
8871  rm -f conftest.er1
8872  cat conftest.err >&5
8873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874  (exit $ac_status); } &&
8875	 { ac_try='test -z "$ac_c_werror_flag"
8876			 || test ! -s conftest.err'
8877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878  (eval $ac_try) 2>&5
8879  ac_status=$?
8880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881  (exit $ac_status); }; } &&
8882	 { ac_try='test -s conftest.$ac_objext'
8883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884  (eval $ac_try) 2>&5
8885  ac_status=$?
8886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887  (exit $ac_status); }; }; then
8888  ac_cv_have_decl_setgroupent=yes
8889else
8890  echo "$as_me: failed program was:" >&5
8891sed 's/^/| /' conftest.$ac_ext >&5
8892
8893ac_cv_have_decl_setgroupent=no
8894fi
8895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8896fi
8897echo "$as_me:$LINENO: result: $ac_cv_have_decl_setgroupent" >&5
8898echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
8899if test $ac_cv_have_decl_setgroupent = yes; then
8900
8901cat >>confdefs.h <<_ACEOF
8902#define HAVE_DECL_SETGROUPENT 1
8903_ACEOF
8904
8905
8906else
8907  cat >>confdefs.h <<_ACEOF
8908#define HAVE_DECL_SETGROUPENT 0
8909_ACEOF
8910
8911
8912fi
8913echo "$as_me:$LINENO: checking whether setpassent is declared" >&5
8914echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
8915if test "${ac_cv_have_decl_setpassent+set}" = set; then
8916  echo $ECHO_N "(cached) $ECHO_C" >&6
8917else
8918  cat >conftest.$ac_ext <<_ACEOF
8919/* confdefs.h.  */
8920_ACEOF
8921cat confdefs.h >>conftest.$ac_ext
8922cat >>conftest.$ac_ext <<_ACEOF
8923/* end confdefs.h.  */
8924
8925#include <sys/types.h>
8926#include <grp.h>
8927#include <pwd.h>
8928
8929
8930int
8931main ()
8932{
8933#ifndef setpassent
8934  char *p = (char *) setpassent;
8935#endif
8936
8937  ;
8938  return 0;
8939}
8940_ACEOF
8941rm -f conftest.$ac_objext
8942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8943  (eval $ac_compile) 2>conftest.er1
8944  ac_status=$?
8945  grep -v '^ *+' conftest.er1 >conftest.err
8946  rm -f conftest.er1
8947  cat conftest.err >&5
8948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949  (exit $ac_status); } &&
8950	 { ac_try='test -z "$ac_c_werror_flag"
8951			 || test ! -s conftest.err'
8952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953  (eval $ac_try) 2>&5
8954  ac_status=$?
8955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956  (exit $ac_status); }; } &&
8957	 { ac_try='test -s conftest.$ac_objext'
8958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959  (eval $ac_try) 2>&5
8960  ac_status=$?
8961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962  (exit $ac_status); }; }; then
8963  ac_cv_have_decl_setpassent=yes
8964else
8965  echo "$as_me: failed program was:" >&5
8966sed 's/^/| /' conftest.$ac_ext >&5
8967
8968ac_cv_have_decl_setpassent=no
8969fi
8970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8971fi
8972echo "$as_me:$LINENO: result: $ac_cv_have_decl_setpassent" >&5
8973echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
8974if test $ac_cv_have_decl_setpassent = yes; then
8975
8976cat >>confdefs.h <<_ACEOF
8977#define HAVE_DECL_SETPASSENT 1
8978_ACEOF
8979
8980
8981else
8982  cat >>confdefs.h <<_ACEOF
8983#define HAVE_DECL_SETPASSENT 0
8984_ACEOF
8985
8986
8987fi
8988
8989
8990
8991# regcomp() and regexec() are also names of functions in the old V8
8992# regexp package.  To avoid them, we need to find out who has regfree().
8993
8994
8995echo "$as_me:$LINENO: checking for regfree in -lregex" >&5
8996echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
8997if test "${ac_cv_lib_regex_regfree+set}" = set; then
8998  echo $ECHO_N "(cached) $ECHO_C" >&6
8999else
9000  ac_check_lib_save_LIBS=$LIBS
9001LIBS="-lregex  $LIBS"
9002cat >conftest.$ac_ext <<_ACEOF
9003/* confdefs.h.  */
9004_ACEOF
9005cat confdefs.h >>conftest.$ac_ext
9006cat >>conftest.$ac_ext <<_ACEOF
9007/* end confdefs.h.  */
9008
9009/* Override any gcc2 internal prototype to avoid an error.  */
9010#ifdef __cplusplus
9011extern "C"
9012#endif
9013/* We use char because int might match the return type of a gcc2
9014   builtin and then its argument prototype would still apply.  */
9015char regfree ();
9016int
9017main ()
9018{
9019regfree ();
9020  ;
9021  return 0;
9022}
9023_ACEOF
9024rm -f conftest.$ac_objext conftest$ac_exeext
9025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9026  (eval $ac_link) 2>conftest.er1
9027  ac_status=$?
9028  grep -v '^ *+' conftest.er1 >conftest.err
9029  rm -f conftest.er1
9030  cat conftest.err >&5
9031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032  (exit $ac_status); } &&
9033	 { ac_try='test -z "$ac_c_werror_flag"
9034			 || test ! -s conftest.err'
9035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036  (eval $ac_try) 2>&5
9037  ac_status=$?
9038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039  (exit $ac_status); }; } &&
9040	 { ac_try='test -s conftest$ac_exeext'
9041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042  (eval $ac_try) 2>&5
9043  ac_status=$?
9044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045  (exit $ac_status); }; }; then
9046  ac_cv_lib_regex_regfree=yes
9047else
9048  echo "$as_me: failed program was:" >&5
9049sed 's/^/| /' conftest.$ac_ext >&5
9050
9051ac_cv_lib_regex_regfree=no
9052fi
9053rm -f conftest.err conftest.$ac_objext \
9054      conftest$ac_exeext conftest.$ac_ext
9055LIBS=$ac_check_lib_save_LIBS
9056fi
9057echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regfree" >&5
9058echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
9059if test $ac_cv_lib_regex_regfree = yes; then
9060  cat >>confdefs.h <<_ACEOF
9061#define HAVE_LIBREGEX 1
9062_ACEOF
9063
9064  LIBS="-lregex $LIBS"
9065
9066fi
9067
9068echo "$as_me:$LINENO: checking for library containing regfree" >&5
9069echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
9070if test "${ac_cv_search_regfree+set}" = set; then
9071  echo $ECHO_N "(cached) $ECHO_C" >&6
9072else
9073  ac_func_search_save_LIBS=$LIBS
9074ac_cv_search_regfree=no
9075cat >conftest.$ac_ext <<_ACEOF
9076/* confdefs.h.  */
9077_ACEOF
9078cat confdefs.h >>conftest.$ac_ext
9079cat >>conftest.$ac_ext <<_ACEOF
9080/* end confdefs.h.  */
9081
9082/* Override any gcc2 internal prototype to avoid an error.  */
9083#ifdef __cplusplus
9084extern "C"
9085#endif
9086/* We use char because int might match the return type of a gcc2
9087   builtin and then its argument prototype would still apply.  */
9088char regfree ();
9089int
9090main ()
9091{
9092regfree ();
9093  ;
9094  return 0;
9095}
9096_ACEOF
9097rm -f conftest.$ac_objext conftest$ac_exeext
9098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9099  (eval $ac_link) 2>conftest.er1
9100  ac_status=$?
9101  grep -v '^ *+' conftest.er1 >conftest.err
9102  rm -f conftest.er1
9103  cat conftest.err >&5
9104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105  (exit $ac_status); } &&
9106	 { ac_try='test -z "$ac_c_werror_flag"
9107			 || test ! -s conftest.err'
9108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109  (eval $ac_try) 2>&5
9110  ac_status=$?
9111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112  (exit $ac_status); }; } &&
9113	 { ac_try='test -s conftest$ac_exeext'
9114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115  (eval $ac_try) 2>&5
9116  ac_status=$?
9117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118  (exit $ac_status); }; }; then
9119  ac_cv_search_regfree="none required"
9120else
9121  echo "$as_me: failed program was:" >&5
9122sed 's/^/| /' conftest.$ac_ext >&5
9123
9124fi
9125rm -f conftest.err conftest.$ac_objext \
9126      conftest$ac_exeext conftest.$ac_ext
9127if test "$ac_cv_search_regfree" = no; then
9128  for ac_lib in rx posix; do
9129    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9130    cat >conftest.$ac_ext <<_ACEOF
9131/* confdefs.h.  */
9132_ACEOF
9133cat confdefs.h >>conftest.$ac_ext
9134cat >>conftest.$ac_ext <<_ACEOF
9135/* end confdefs.h.  */
9136
9137/* Override any gcc2 internal prototype to avoid an error.  */
9138#ifdef __cplusplus
9139extern "C"
9140#endif
9141/* We use char because int might match the return type of a gcc2
9142   builtin and then its argument prototype would still apply.  */
9143char regfree ();
9144int
9145main ()
9146{
9147regfree ();
9148  ;
9149  return 0;
9150}
9151_ACEOF
9152rm -f conftest.$ac_objext conftest$ac_exeext
9153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9154  (eval $ac_link) 2>conftest.er1
9155  ac_status=$?
9156  grep -v '^ *+' conftest.er1 >conftest.err
9157  rm -f conftest.er1
9158  cat conftest.err >&5
9159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160  (exit $ac_status); } &&
9161	 { ac_try='test -z "$ac_c_werror_flag"
9162			 || test ! -s conftest.err'
9163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164  (eval $ac_try) 2>&5
9165  ac_status=$?
9166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167  (exit $ac_status); }; } &&
9168	 { ac_try='test -s conftest$ac_exeext'
9169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170  (eval $ac_try) 2>&5
9171  ac_status=$?
9172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173  (exit $ac_status); }; }; then
9174  ac_cv_search_regfree="-l$ac_lib"
9175break
9176else
9177  echo "$as_me: failed program was:" >&5
9178sed 's/^/| /' conftest.$ac_ext >&5
9179
9180fi
9181rm -f conftest.err conftest.$ac_objext \
9182      conftest$ac_exeext conftest.$ac_ext
9183  done
9184fi
9185LIBS=$ac_func_search_save_LIBS
9186fi
9187echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
9188echo "${ECHO_T}$ac_cv_search_regfree" >&6
9189if test "$ac_cv_search_regfree" != no; then
9190  test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9191
9192fi
9193
9194
9195cat >confcache <<\_ACEOF
9196# This file is a shell script that caches the results of configure
9197# tests run on this system so they can be shared between configure
9198# scripts and configure runs, see configure's option --config-cache.
9199# It is not useful on other systems.  If it contains results you don't
9200# want to keep, you may remove or edit it.
9201#
9202# config.status only pays attention to the cache file if you give it
9203# the --recheck option to rerun configure.
9204#
9205# `ac_cv_env_foo' variables (set or unset) will be overridden when
9206# loading this file, other *unset* `ac_cv_foo' will be assigned the
9207# following values.
9208
9209_ACEOF
9210
9211# The following way of writing the cache mishandles newlines in values,
9212# but we know of no workaround that is simple, portable, and efficient.
9213# So, don't put newlines in cache variables' values.
9214# Ultrix sh set writes to stderr and can't be redirected directly,
9215# and sets the high bit in the cache file unless we assign to the vars.
9216{
9217  (set) 2>&1 |
9218    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9219    *ac_space=\ *)
9220      # `set' does not quote correctly, so add quotes (double-quote
9221      # substitution turns \\\\ into \\, and sed turns \\ into \).
9222      sed -n \
9223	"s/'/'\\\\''/g;
9224	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9225      ;;
9226    *)
9227      # `set' quotes correctly as required by POSIX, so do not add quotes.
9228      sed -n \
9229	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9230      ;;
9231    esac;
9232} |
9233  sed '
9234     t clear
9235     : clear
9236     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9237     t end
9238     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9239     : end' >>confcache
9240if diff $cache_file confcache >/dev/null 2>&1; then :; else
9241  if test -w $cache_file; then
9242    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9243    cat confcache >$cache_file
9244  else
9245    echo "not updating unwritable cache $cache_file"
9246  fi
9247fi
9248rm -f confcache
9249
9250test "x$prefix" = xNONE && prefix=$ac_default_prefix
9251# Let make expand exec_prefix.
9252test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9253
9254# VPATH may cause trouble with some makes, so we remove $(srcdir),
9255# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9256# trailing colons and then remove the whole line if VPATH becomes empty
9257# (actually we leave an empty line to preserve line numbers).
9258if test "x$srcdir" = x.; then
9259  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
9260s/:*\$(srcdir):*/:/;
9261s/:*\${srcdir}:*/:/;
9262s/:*@srcdir@:*/:/;
9263s/^\([^=]*=[	 ]*\):*/\1/;
9264s/:*$//;
9265s/^[^=]*=[	 ]*$//;
9266}'
9267fi
9268
9269DEFS=-DHAVE_CONFIG_H
9270
9271ac_libobjs=
9272ac_ltlibobjs=
9273for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9274  # 1. Remove the extension, and $U if already installed.
9275  ac_i=`echo "$ac_i" |
9276	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9277  # 2. Add them.
9278  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9279  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9280done
9281LIBOBJS=$ac_libobjs
9282
9283LTLIBOBJS=$ac_ltlibobjs
9284
9285
9286
9287: ${CONFIG_STATUS=./config.status}
9288ac_clean_files_save=$ac_clean_files
9289ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9290{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9291echo "$as_me: creating $CONFIG_STATUS" >&6;}
9292cat >$CONFIG_STATUS <<_ACEOF
9293#! $SHELL
9294# Generated by $as_me.
9295# Run this file to recreate the current configuration.
9296# Compiler output produced by configure, useful for debugging
9297# configure, is in config.log if it exists.
9298
9299debug=false
9300ac_cs_recheck=false
9301ac_cs_silent=false
9302SHELL=\${CONFIG_SHELL-$SHELL}
9303_ACEOF
9304
9305cat >>$CONFIG_STATUS <<\_ACEOF
9306## --------------------- ##
9307## M4sh Initialization.  ##
9308## --------------------- ##
9309
9310# Be Bourne compatible
9311if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9312  emulate sh
9313  NULLCMD=:
9314  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9315  # is contrary to our usage.  Disable this feature.
9316  alias -g '${1+"$@"}'='"$@"'
9317elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9318  set -o posix
9319fi
9320DUALCASE=1; export DUALCASE # for MKS sh
9321
9322# Support unset when possible.
9323if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9324  as_unset=unset
9325else
9326  as_unset=false
9327fi
9328
9329
9330# Work around bugs in pre-3.0 UWIN ksh.
9331$as_unset ENV MAIL MAILPATH
9332PS1='$ '
9333PS2='> '
9334PS4='+ '
9335
9336# NLS nuisances.
9337for as_var in \
9338  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9339  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9340  LC_TELEPHONE LC_TIME
9341do
9342  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9343    eval $as_var=C; export $as_var
9344  else
9345    $as_unset $as_var
9346  fi
9347done
9348
9349# Required to use basename.
9350if expr a : '\(a\)' >/dev/null 2>&1; then
9351  as_expr=expr
9352else
9353  as_expr=false
9354fi
9355
9356if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9357  as_basename=basename
9358else
9359  as_basename=false
9360fi
9361
9362
9363# Name of the executable.
9364as_me=`$as_basename "$0" ||
9365$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9366	 X"$0" : 'X\(//\)$' \| \
9367	 X"$0" : 'X\(/\)$' \| \
9368	 .     : '\(.\)' 2>/dev/null ||
9369echo X/"$0" |
9370    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9371  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
9372  	  /^X\/\(\/\).*/{ s//\1/; q; }
9373  	  s/.*/./; q'`
9374
9375
9376# PATH needs CR, and LINENO needs CR and PATH.
9377# Avoid depending upon Character Ranges.
9378as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9379as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9380as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9381as_cr_digits='0123456789'
9382as_cr_alnum=$as_cr_Letters$as_cr_digits
9383
9384# The user is always right.
9385if test "${PATH_SEPARATOR+set}" != set; then
9386  echo "#! /bin/sh" >conf$$.sh
9387  echo  "exit 0"   >>conf$$.sh
9388  chmod +x conf$$.sh
9389  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9390    PATH_SEPARATOR=';'
9391  else
9392    PATH_SEPARATOR=:
9393  fi
9394  rm -f conf$$.sh
9395fi
9396
9397
9398  as_lineno_1=$LINENO
9399  as_lineno_2=$LINENO
9400  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9401  test "x$as_lineno_1" != "x$as_lineno_2" &&
9402  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9403  # Find who we are.  Look in the path if we contain no path at all
9404  # relative or not.
9405  case $0 in
9406    *[\\/]* ) as_myself=$0 ;;
9407    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408for as_dir in $PATH
9409do
9410  IFS=$as_save_IFS
9411  test -z "$as_dir" && as_dir=.
9412  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9413done
9414
9415       ;;
9416  esac
9417  # We did not find ourselves, most probably we were run as `sh COMMAND'
9418  # in which case we are not to be found in the path.
9419  if test "x$as_myself" = x; then
9420    as_myself=$0
9421  fi
9422  if test ! -f "$as_myself"; then
9423    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9424echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9425   { (exit 1); exit 1; }; }
9426  fi
9427  case $CONFIG_SHELL in
9428  '')
9429    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9431do
9432  IFS=$as_save_IFS
9433  test -z "$as_dir" && as_dir=.
9434  for as_base in sh bash ksh sh5; do
9435	 case $as_dir in
9436	 /*)
9437	   if ("$as_dir/$as_base" -c '
9438  as_lineno_1=$LINENO
9439  as_lineno_2=$LINENO
9440  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9441  test "x$as_lineno_1" != "x$as_lineno_2" &&
9442  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9443	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9444	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9445	     CONFIG_SHELL=$as_dir/$as_base
9446	     export CONFIG_SHELL
9447	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9448	   fi;;
9449	 esac
9450       done
9451done
9452;;
9453  esac
9454
9455  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9456  # uniformly replaced by the line number.  The first 'sed' inserts a
9457  # line-number line before each line; the second 'sed' does the real
9458  # work.  The second script uses 'N' to pair each line-number line
9459  # with the numbered line, and appends trailing '-' during
9460  # substitution so that $LINENO is not a special case at line end.
9461  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9462  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9463  sed '=' <$as_myself |
9464    sed '
9465      N
9466      s,$,-,
9467      : loop
9468      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9469      t loop
9470      s,-$,,
9471      s,^['$as_cr_digits']*\n,,
9472    ' >$as_me.lineno &&
9473  chmod +x $as_me.lineno ||
9474    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9475echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9476   { (exit 1); exit 1; }; }
9477
9478  # Don't try to exec as it changes $[0], causing all sort of problems
9479  # (the dirname of $[0] is not the place where we might find the
9480  # original and so on.  Autoconf is especially sensible to this).
9481  . ./$as_me.lineno
9482  # Exit status is that of the last command.
9483  exit
9484}
9485
9486
9487case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9488  *c*,-n*) ECHO_N= ECHO_C='
9489' ECHO_T='	' ;;
9490  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9491  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9492esac
9493
9494if expr a : '\(a\)' >/dev/null 2>&1; then
9495  as_expr=expr
9496else
9497  as_expr=false
9498fi
9499
9500rm -f conf$$ conf$$.exe conf$$.file
9501echo >conf$$.file
9502if ln -s conf$$.file conf$$ 2>/dev/null; then
9503  # We could just check for DJGPP; but this test a) works b) is more generic
9504  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9505  if test -f conf$$.exe; then
9506    # Don't use ln at all; we don't have any links
9507    as_ln_s='cp -p'
9508  else
9509    as_ln_s='ln -s'
9510  fi
9511elif ln conf$$.file conf$$ 2>/dev/null; then
9512  as_ln_s=ln
9513else
9514  as_ln_s='cp -p'
9515fi
9516rm -f conf$$ conf$$.exe conf$$.file
9517
9518if mkdir -p . 2>/dev/null; then
9519  as_mkdir_p=:
9520else
9521  test -d ./-p && rmdir ./-p
9522  as_mkdir_p=false
9523fi
9524
9525as_executable_p="test -f"
9526
9527# Sed expression to map a string onto a valid CPP name.
9528as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9529
9530# Sed expression to map a string onto a valid variable name.
9531as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9532
9533
9534# IFS
9535# We need space, tab and new line, in precisely that order.
9536as_nl='
9537'
9538IFS=" 	$as_nl"
9539
9540# CDPATH.
9541$as_unset CDPATH
9542
9543exec 6>&1
9544
9545# Open the log real soon, to keep \$[0] and so on meaningful, and to
9546# report actual input values of CONFIG_FILES etc. instead of their
9547# values after options handling.  Logging --version etc. is OK.
9548exec 5>>config.log
9549{
9550  echo
9551  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9552## Running $as_me. ##
9553_ASBOX
9554} >&5
9555cat >&5 <<_CSEOF
9556
9557This file was extended by libnbcompat $as_me noversion, which was
9558generated by GNU Autoconf 2.59.  Invocation command line was
9559
9560  CONFIG_FILES    = $CONFIG_FILES
9561  CONFIG_HEADERS  = $CONFIG_HEADERS
9562  CONFIG_LINKS    = $CONFIG_LINKS
9563  CONFIG_COMMANDS = $CONFIG_COMMANDS
9564  $ $0 $@
9565
9566_CSEOF
9567echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9568echo >&5
9569_ACEOF
9570
9571# Files that config.status was made for.
9572if test -n "$ac_config_files"; then
9573  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9574fi
9575
9576if test -n "$ac_config_headers"; then
9577  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9578fi
9579
9580if test -n "$ac_config_links"; then
9581  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9582fi
9583
9584if test -n "$ac_config_commands"; then
9585  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9586fi
9587
9588cat >>$CONFIG_STATUS <<\_ACEOF
9589
9590ac_cs_usage="\
9591\`$as_me' instantiates files from templates according to the
9592current configuration.
9593
9594Usage: $0 [OPTIONS] [FILE]...
9595
9596  -h, --help       print this help, then exit
9597  -V, --version    print version number, then exit
9598  -q, --quiet      do not print progress messages
9599  -d, --debug      don't remove temporary files
9600      --recheck    update $as_me by reconfiguring in the same conditions
9601  --file=FILE[:TEMPLATE]
9602		   instantiate the configuration file FILE
9603  --header=FILE[:TEMPLATE]
9604		   instantiate the configuration header FILE
9605
9606Configuration files:
9607$config_files
9608
9609Configuration headers:
9610$config_headers
9611
9612Report bugs to <bug-autoconf@gnu.org>."
9613_ACEOF
9614
9615cat >>$CONFIG_STATUS <<_ACEOF
9616ac_cs_version="\\
9617libnbcompat config.status noversion
9618configured by $0, generated by GNU Autoconf 2.59,
9619  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9620
9621Copyright (C) 2003 Free Software Foundation, Inc.
9622This config.status script is free software; the Free Software Foundation
9623gives unlimited permission to copy, distribute and modify it."
9624srcdir=$srcdir
9625_ACEOF
9626
9627cat >>$CONFIG_STATUS <<\_ACEOF
9628# If no file are specified by the user, then we need to provide default
9629# value.  By we need to know if files were specified by the user.
9630ac_need_defaults=:
9631while test $# != 0
9632do
9633  case $1 in
9634  --*=*)
9635    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9636    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9637    ac_shift=:
9638    ;;
9639  -*)
9640    ac_option=$1
9641    ac_optarg=$2
9642    ac_shift=shift
9643    ;;
9644  *) # This is not an option, so the user has probably given explicit
9645     # arguments.
9646     ac_option=$1
9647     ac_need_defaults=false;;
9648  esac
9649
9650  case $ac_option in
9651  # Handling of the options.
9652_ACEOF
9653cat >>$CONFIG_STATUS <<\_ACEOF
9654  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9655    ac_cs_recheck=: ;;
9656  --version | --vers* | -V )
9657    echo "$ac_cs_version"; exit 0 ;;
9658  --he | --h)
9659    # Conflict between --help and --header
9660    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9661Try \`$0 --help' for more information." >&5
9662echo "$as_me: error: ambiguous option: $1
9663Try \`$0 --help' for more information." >&2;}
9664   { (exit 1); exit 1; }; };;
9665  --help | --hel | -h )
9666    echo "$ac_cs_usage"; exit 0 ;;
9667  --debug | --d* | -d )
9668    debug=: ;;
9669  --file | --fil | --fi | --f )
9670    $ac_shift
9671    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9672    ac_need_defaults=false;;
9673  --header | --heade | --head | --hea )
9674    $ac_shift
9675    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9676    ac_need_defaults=false;;
9677  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9678  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9679    ac_cs_silent=: ;;
9680
9681  # This is an error.
9682  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9683Try \`$0 --help' for more information." >&5
9684echo "$as_me: error: unrecognized option: $1
9685Try \`$0 --help' for more information." >&2;}
9686   { (exit 1); exit 1; }; } ;;
9687
9688  *) ac_config_targets="$ac_config_targets $1" ;;
9689
9690  esac
9691  shift
9692done
9693
9694ac_configure_extra_args=
9695
9696if $ac_cs_silent; then
9697  exec 6>/dev/null
9698  ac_configure_extra_args="$ac_configure_extra_args --silent"
9699fi
9700
9701_ACEOF
9702cat >>$CONFIG_STATUS <<_ACEOF
9703if \$ac_cs_recheck; then
9704  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9705  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9706fi
9707
9708_ACEOF
9709
9710
9711
9712
9713
9714cat >>$CONFIG_STATUS <<\_ACEOF
9715for ac_config_target in $ac_config_targets
9716do
9717  case "$ac_config_target" in
9718  # Handling of arguments.
9719  "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
9720  "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
9721  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9722echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9723   { (exit 1); exit 1; }; };;
9724  esac
9725done
9726
9727# If the user did not use the arguments to specify the items to instantiate,
9728# then the envvar interface is used.  Set only those that are not.
9729# We use the long form for the default assignment because of an extremely
9730# bizarre bug on SunOS 4.1.3.
9731if $ac_need_defaults; then
9732  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9733  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9734fi
9735
9736# Have a temporary directory for convenience.  Make it in the build tree
9737# simply because there is no reason to put it here, and in addition,
9738# creating and moving files from /tmp can sometimes cause problems.
9739# Create a temporary directory, and hook for its removal unless debugging.
9740$debug ||
9741{
9742  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9743  trap '{ (exit 1); exit 1; }' 1 2 13 15
9744}
9745
9746# Create a (secure) tmp directory for tmp files.
9747
9748{
9749  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9750  test -n "$tmp" && test -d "$tmp"
9751}  ||
9752{
9753  tmp=./confstat$$-$RANDOM
9754  (umask 077 && mkdir $tmp)
9755} ||
9756{
9757   echo "$me: cannot create a temporary directory in ." >&2
9758   { (exit 1); exit 1; }
9759}
9760
9761_ACEOF
9762
9763cat >>$CONFIG_STATUS <<_ACEOF
9764
9765#
9766# CONFIG_FILES section.
9767#
9768
9769# No need to generate the scripts if there are no CONFIG_FILES.
9770# This happens for instance when ./config.status config.h
9771if test -n "\$CONFIG_FILES"; then
9772  # Protect against being on the right side of a sed subst in config.status.
9773  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9774   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9775s,@SHELL@,$SHELL,;t t
9776s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9777s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9778s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9779s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9780s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9781s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9782s,@exec_prefix@,$exec_prefix,;t t
9783s,@prefix@,$prefix,;t t
9784s,@program_transform_name@,$program_transform_name,;t t
9785s,@bindir@,$bindir,;t t
9786s,@sbindir@,$sbindir,;t t
9787s,@libexecdir@,$libexecdir,;t t
9788s,@datadir@,$datadir,;t t
9789s,@sysconfdir@,$sysconfdir,;t t
9790s,@sharedstatedir@,$sharedstatedir,;t t
9791s,@localstatedir@,$localstatedir,;t t
9792s,@libdir@,$libdir,;t t
9793s,@includedir@,$includedir,;t t
9794s,@oldincludedir@,$oldincludedir,;t t
9795s,@infodir@,$infodir,;t t
9796s,@mandir@,$mandir,;t t
9797s,@build_alias@,$build_alias,;t t
9798s,@host_alias@,$host_alias,;t t
9799s,@target_alias@,$target_alias,;t t
9800s,@DEFS@,$DEFS,;t t
9801s,@ECHO_C@,$ECHO_C,;t t
9802s,@ECHO_N@,$ECHO_N,;t t
9803s,@ECHO_T@,$ECHO_T,;t t
9804s,@LIBS@,$LIBS,;t t
9805s,@CC@,$CC,;t t
9806s,@CFLAGS@,$CFLAGS,;t t
9807s,@LDFLAGS@,$LDFLAGS,;t t
9808s,@CPPFLAGS@,$CPPFLAGS,;t t
9809s,@ac_ct_CC@,$ac_ct_CC,;t t
9810s,@EXEEXT@,$EXEEXT,;t t
9811s,@OBJEXT@,$OBJEXT,;t t
9812s,@CPP@,$CPP,;t t
9813s,@EGREP@,$EGREP,;t t
9814s,@BSHELL@,$BSHELL,;t t
9815s,@ALLOCA@,$ALLOCA,;t t
9816s,@LIBOBJS@,$LIBOBJS,;t t
9817s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9818CEOF
9819
9820_ACEOF
9821
9822  cat >>$CONFIG_STATUS <<\_ACEOF
9823  # Split the substitutions into bite-sized pieces for seds with
9824  # small command number limits, like on Digital OSF/1 and HP-UX.
9825  ac_max_sed_lines=48
9826  ac_sed_frag=1 # Number of current file.
9827  ac_beg=1 # First line for current file.
9828  ac_end=$ac_max_sed_lines # Line after last line for current file.
9829  ac_more_lines=:
9830  ac_sed_cmds=
9831  while $ac_more_lines; do
9832    if test $ac_beg -gt 1; then
9833      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9834    else
9835      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9836    fi
9837    if test ! -s $tmp/subs.frag; then
9838      ac_more_lines=false
9839    else
9840      # The purpose of the label and of the branching condition is to
9841      # speed up the sed processing (if there are no `@' at all, there
9842      # is no need to browse any of the substitutions).
9843      # These are the two extra sed commands mentioned above.
9844      (echo ':t
9845  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9846      if test -z "$ac_sed_cmds"; then
9847	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9848      else
9849	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9850      fi
9851      ac_sed_frag=`expr $ac_sed_frag + 1`
9852      ac_beg=$ac_end
9853      ac_end=`expr $ac_end + $ac_max_sed_lines`
9854    fi
9855  done
9856  if test -z "$ac_sed_cmds"; then
9857    ac_sed_cmds=cat
9858  fi
9859fi # test -n "$CONFIG_FILES"
9860
9861_ACEOF
9862cat >>$CONFIG_STATUS <<\_ACEOF
9863for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9864  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9865  case $ac_file in
9866  - | *:- | *:-:* ) # input from stdin
9867	cat >$tmp/stdin
9868	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9869	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9870  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9871	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9872  * )   ac_file_in=$ac_file.in ;;
9873  esac
9874
9875  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9876  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9877$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9878	 X"$ac_file" : 'X\(//\)[^/]' \| \
9879	 X"$ac_file" : 'X\(//\)$' \| \
9880	 X"$ac_file" : 'X\(/\)' \| \
9881	 .     : '\(.\)' 2>/dev/null ||
9882echo X"$ac_file" |
9883    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9884  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9885  	  /^X\(\/\/\)$/{ s//\1/; q; }
9886  	  /^X\(\/\).*/{ s//\1/; q; }
9887  	  s/.*/./; q'`
9888  { if $as_mkdir_p; then
9889    mkdir -p "$ac_dir"
9890  else
9891    as_dir="$ac_dir"
9892    as_dirs=
9893    while test ! -d "$as_dir"; do
9894      as_dirs="$as_dir $as_dirs"
9895      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9896$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9897	 X"$as_dir" : 'X\(//\)[^/]' \| \
9898	 X"$as_dir" : 'X\(//\)$' \| \
9899	 X"$as_dir" : 'X\(/\)' \| \
9900	 .     : '\(.\)' 2>/dev/null ||
9901echo X"$as_dir" |
9902    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9903  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9904  	  /^X\(\/\/\)$/{ s//\1/; q; }
9905  	  /^X\(\/\).*/{ s//\1/; q; }
9906  	  s/.*/./; q'`
9907    done
9908    test ! -n "$as_dirs" || mkdir $as_dirs
9909  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9910echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9911   { (exit 1); exit 1; }; }; }
9912
9913  ac_builddir=.
9914
9915if test "$ac_dir" != .; then
9916  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9917  # A "../" for each directory in $ac_dir_suffix.
9918  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9919else
9920  ac_dir_suffix= ac_top_builddir=
9921fi
9922
9923case $srcdir in
9924  .)  # No --srcdir option.  We are building in place.
9925    ac_srcdir=.
9926    if test -z "$ac_top_builddir"; then
9927       ac_top_srcdir=.
9928    else
9929       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9930    fi ;;
9931  [\\/]* | ?:[\\/]* )  # Absolute path.
9932    ac_srcdir=$srcdir$ac_dir_suffix;
9933    ac_top_srcdir=$srcdir ;;
9934  *) # Relative path.
9935    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9936    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9937esac
9938
9939# Do not use `cd foo && pwd` to compute absolute paths, because
9940# the directories may not exist.
9941case `pwd` in
9942.) ac_abs_builddir="$ac_dir";;
9943*)
9944  case "$ac_dir" in
9945  .) ac_abs_builddir=`pwd`;;
9946  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9947  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9948  esac;;
9949esac
9950case $ac_abs_builddir in
9951.) ac_abs_top_builddir=${ac_top_builddir}.;;
9952*)
9953  case ${ac_top_builddir}. in
9954  .) ac_abs_top_builddir=$ac_abs_builddir;;
9955  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9956  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9957  esac;;
9958esac
9959case $ac_abs_builddir in
9960.) ac_abs_srcdir=$ac_srcdir;;
9961*)
9962  case $ac_srcdir in
9963  .) ac_abs_srcdir=$ac_abs_builddir;;
9964  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9965  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9966  esac;;
9967esac
9968case $ac_abs_builddir in
9969.) ac_abs_top_srcdir=$ac_top_srcdir;;
9970*)
9971  case $ac_top_srcdir in
9972  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9973  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9974  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9975  esac;;
9976esac
9977
9978
9979
9980  if test x"$ac_file" != x-; then
9981    { echo "$as_me:$LINENO: creating $ac_file" >&5
9982echo "$as_me: creating $ac_file" >&6;}
9983    rm -f "$ac_file"
9984  fi
9985  # Let's still pretend it is `configure' which instantiates (i.e., don't
9986  # use $as_me), people would be surprised to read:
9987  #    /* config.h.  Generated by config.status.  */
9988  if test x"$ac_file" = x-; then
9989    configure_input=
9990  else
9991    configure_input="$ac_file.  "
9992  fi
9993  configure_input=$configure_input"Generated from `echo $ac_file_in |
9994				     sed 's,.*/,,'` by configure."
9995
9996  # First look for the input files in the build tree, otherwise in the
9997  # src tree.
9998  ac_file_inputs=`IFS=:
9999    for f in $ac_file_in; do
10000      case $f in
10001      -) echo $tmp/stdin ;;
10002      [\\/$]*)
10003	 # Absolute (can't be DOS-style, as IFS=:)
10004	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10005echo "$as_me: error: cannot find input file: $f" >&2;}
10006   { (exit 1); exit 1; }; }
10007	 echo "$f";;
10008      *) # Relative
10009	 if test -f "$f"; then
10010	   # Build tree
10011	   echo "$f"
10012	 elif test -f "$srcdir/$f"; then
10013	   # Source tree
10014	   echo "$srcdir/$f"
10015	 else
10016	   # /dev/null tree
10017	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10018echo "$as_me: error: cannot find input file: $f" >&2;}
10019   { (exit 1); exit 1; }; }
10020	 fi;;
10021      esac
10022    done` || { (exit 1); exit 1; }
10023_ACEOF
10024cat >>$CONFIG_STATUS <<_ACEOF
10025  sed "$ac_vpsub
10026$extrasub
10027_ACEOF
10028cat >>$CONFIG_STATUS <<\_ACEOF
10029:t
10030/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10031s,@configure_input@,$configure_input,;t t
10032s,@srcdir@,$ac_srcdir,;t t
10033s,@abs_srcdir@,$ac_abs_srcdir,;t t
10034s,@top_srcdir@,$ac_top_srcdir,;t t
10035s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10036s,@builddir@,$ac_builddir,;t t
10037s,@abs_builddir@,$ac_abs_builddir,;t t
10038s,@top_builddir@,$ac_top_builddir,;t t
10039s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10040" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10041  rm -f $tmp/stdin
10042  if test x"$ac_file" != x-; then
10043    mv $tmp/out $ac_file
10044  else
10045    cat $tmp/out
10046    rm -f $tmp/out
10047  fi
10048
10049done
10050_ACEOF
10051cat >>$CONFIG_STATUS <<\_ACEOF
10052
10053#
10054# CONFIG_HEADER section.
10055#
10056
10057# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10058# NAME is the cpp macro being defined and VALUE is the value it is being given.
10059#
10060# ac_d sets the value in "#define NAME VALUE" lines.
10061ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
10062ac_dB='[	 ].*$,\1#\2'
10063ac_dC=' '
10064ac_dD=',;t'
10065# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10066ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
10067ac_uB='$,\1#\2define\3'
10068ac_uC=' '
10069ac_uD=',;t'
10070
10071for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10072  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10073  case $ac_file in
10074  - | *:- | *:-:* ) # input from stdin
10075	cat >$tmp/stdin
10076	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10077	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10078  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10079	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10080  * )   ac_file_in=$ac_file.in ;;
10081  esac
10082
10083  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10084echo "$as_me: creating $ac_file" >&6;}
10085
10086  # First look for the input files in the build tree, otherwise in the
10087  # src tree.
10088  ac_file_inputs=`IFS=:
10089    for f in $ac_file_in; do
10090      case $f in
10091      -) echo $tmp/stdin ;;
10092      [\\/$]*)
10093	 # Absolute (can't be DOS-style, as IFS=:)
10094	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10095echo "$as_me: error: cannot find input file: $f" >&2;}
10096   { (exit 1); exit 1; }; }
10097	 # Do quote $f, to prevent DOS paths from being IFS'd.
10098	 echo "$f";;
10099      *) # Relative
10100	 if test -f "$f"; then
10101	   # Build tree
10102	   echo "$f"
10103	 elif test -f "$srcdir/$f"; then
10104	   # Source tree
10105	   echo "$srcdir/$f"
10106	 else
10107	   # /dev/null tree
10108	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10109echo "$as_me: error: cannot find input file: $f" >&2;}
10110   { (exit 1); exit 1; }; }
10111	 fi;;
10112      esac
10113    done` || { (exit 1); exit 1; }
10114  # Remove the trailing spaces.
10115  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
10116
10117_ACEOF
10118
10119# Transform confdefs.h into two sed scripts, `conftest.defines' and
10120# `conftest.undefs', that substitutes the proper values into
10121# config.h.in to produce config.h.  The first handles `#define'
10122# templates, and the second `#undef' templates.
10123# And first: Protect against being on the right side of a sed subst in
10124# config.status.  Protect against being in an unquoted here document
10125# in config.status.
10126rm -f conftest.defines conftest.undefs
10127# Using a here document instead of a string reduces the quoting nightmare.
10128# Putting comments in sed scripts is not portable.
10129#
10130# `end' is used to avoid that the second main sed command (meant for
10131# 0-ary CPP macros) applies to n-ary macro definitions.
10132# See the Autoconf documentation for `clear'.
10133cat >confdef2sed.sed <<\_ACEOF
10134s/[\\&,]/\\&/g
10135s,[\\$`],\\&,g
10136t clear
10137: clear
10138s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10139t end
10140s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10141: end
10142_ACEOF
10143# If some macros were called several times there might be several times
10144# the same #defines, which is useless.  Nevertheless, we may not want to
10145# sort them, since we want the *last* AC-DEFINE to be honored.
10146uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10147sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10148rm -f confdef2sed.sed
10149
10150# This sed command replaces #undef with comments.  This is necessary, for
10151# example, in the case of _POSIX_SOURCE, which is predefined and required
10152# on some systems where configure will not decide to define it.
10153cat >>conftest.undefs <<\_ACEOF
10154s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10155_ACEOF
10156
10157# Break up conftest.defines because some shells have a limit on the size
10158# of here documents, and old seds have small limits too (100 cmds).
10159echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10160echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10161echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10162echo '  :' >>$CONFIG_STATUS
10163rm -f conftest.tail
10164while grep . conftest.defines >/dev/null
10165do
10166  # Write a limited-size here document to $tmp/defines.sed.
10167  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10168  # Speed up: don't consider the non `#define' lines.
10169  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
10170  # Work around the forget-to-reset-the-flag bug.
10171  echo 't clr' >>$CONFIG_STATUS
10172  echo ': clr' >>$CONFIG_STATUS
10173  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10174  echo 'CEOF
10175  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10176  rm -f $tmp/in
10177  mv $tmp/out $tmp/in
10178' >>$CONFIG_STATUS
10179  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10180  rm -f conftest.defines
10181  mv conftest.tail conftest.defines
10182done
10183rm -f conftest.defines
10184echo '  fi # grep' >>$CONFIG_STATUS
10185echo >>$CONFIG_STATUS
10186
10187# Break up conftest.undefs because some shells have a limit on the size
10188# of here documents, and old seds have small limits too (100 cmds).
10189echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10190rm -f conftest.tail
10191while grep . conftest.undefs >/dev/null
10192do
10193  # Write a limited-size here document to $tmp/undefs.sed.
10194  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10195  # Speed up: don't consider the non `#undef'
10196  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
10197  # Work around the forget-to-reset-the-flag bug.
10198  echo 't clr' >>$CONFIG_STATUS
10199  echo ': clr' >>$CONFIG_STATUS
10200  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10201  echo 'CEOF
10202  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10203  rm -f $tmp/in
10204  mv $tmp/out $tmp/in
10205' >>$CONFIG_STATUS
10206  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10207  rm -f conftest.undefs
10208  mv conftest.tail conftest.undefs
10209done
10210rm -f conftest.undefs
10211
10212cat >>$CONFIG_STATUS <<\_ACEOF
10213  # Let's still pretend it is `configure' which instantiates (i.e., don't
10214  # use $as_me), people would be surprised to read:
10215  #    /* config.h.  Generated by config.status.  */
10216  if test x"$ac_file" = x-; then
10217    echo "/* Generated by configure.  */" >$tmp/config.h
10218  else
10219    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10220  fi
10221  cat $tmp/in >>$tmp/config.h
10222  rm -f $tmp/in
10223  if test x"$ac_file" != x-; then
10224    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10225      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10226echo "$as_me: $ac_file is unchanged" >&6;}
10227    else
10228      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10229$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10230	 X"$ac_file" : 'X\(//\)[^/]' \| \
10231	 X"$ac_file" : 'X\(//\)$' \| \
10232	 X"$ac_file" : 'X\(/\)' \| \
10233	 .     : '\(.\)' 2>/dev/null ||
10234echo X"$ac_file" |
10235    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10236  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10237  	  /^X\(\/\/\)$/{ s//\1/; q; }
10238  	  /^X\(\/\).*/{ s//\1/; q; }
10239  	  s/.*/./; q'`
10240      { if $as_mkdir_p; then
10241    mkdir -p "$ac_dir"
10242  else
10243    as_dir="$ac_dir"
10244    as_dirs=
10245    while test ! -d "$as_dir"; do
10246      as_dirs="$as_dir $as_dirs"
10247      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10248$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10249	 X"$as_dir" : 'X\(//\)[^/]' \| \
10250	 X"$as_dir" : 'X\(//\)$' \| \
10251	 X"$as_dir" : 'X\(/\)' \| \
10252	 .     : '\(.\)' 2>/dev/null ||
10253echo X"$as_dir" |
10254    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10255  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10256  	  /^X\(\/\/\)$/{ s//\1/; q; }
10257  	  /^X\(\/\).*/{ s//\1/; q; }
10258  	  s/.*/./; q'`
10259    done
10260    test ! -n "$as_dirs" || mkdir $as_dirs
10261  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10262echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10263   { (exit 1); exit 1; }; }; }
10264
10265      rm -f $ac_file
10266      mv $tmp/config.h $ac_file
10267    fi
10268  else
10269    cat $tmp/config.h
10270    rm -f $tmp/config.h
10271  fi
10272done
10273_ACEOF
10274
10275cat >>$CONFIG_STATUS <<\_ACEOF
10276
10277{ (exit 0); exit 0; }
10278_ACEOF
10279chmod +x $CONFIG_STATUS
10280ac_clean_files=$ac_clean_files_save
10281
10282
10283# configure is writing to config.log, and then calls config.status.
10284# config.status does its own redirection, appending to config.log.
10285# Unfortunately, on DOS this fails, as config.log is still kept open
10286# by configure, so config.status won't be able to write to it; its
10287# output is simply discarded.  So we exec the FD to /dev/null,
10288# effectively closing config.log, so it can be properly (re)opened and
10289# appended to by config.status.  When coming back to configure, we
10290# need to make the FD available again.
10291if test "$no_create" != yes; then
10292  ac_cs_success=:
10293  ac_config_status_args=
10294  test "$silent" = yes &&
10295    ac_config_status_args="$ac_config_status_args --quiet"
10296  exec 5>/dev/null
10297  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10298  exec 5>>config.log
10299  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10300  # would make configure fail if this is the last instruction.
10301  $ac_cs_success || { (exit 1); exit 1; }
10302fi
10303
10304