configure revision 1.55
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 strsuftoll is declared" >&5
7662echo $ECHO_N "checking whether strsuftoll is declared... $ECHO_C" >&6
7663if test "${ac_cv_have_decl_strsuftoll+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#include <stdlib.h>
7673
7674int
7675main ()
7676{
7677#ifndef strsuftoll
7678  char *p = (char *) strsuftoll;
7679#endif
7680
7681  ;
7682  return 0;
7683}
7684_ACEOF
7685rm -f conftest.$ac_objext
7686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7687  (eval $ac_compile) 2>conftest.er1
7688  ac_status=$?
7689  grep -v '^ *+' conftest.er1 >conftest.err
7690  rm -f conftest.er1
7691  cat conftest.err >&5
7692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693  (exit $ac_status); } &&
7694	 { ac_try='test -z "$ac_c_werror_flag"
7695			 || test ! -s conftest.err'
7696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697  (eval $ac_try) 2>&5
7698  ac_status=$?
7699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700  (exit $ac_status); }; } &&
7701	 { ac_try='test -s conftest.$ac_objext'
7702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703  (eval $ac_try) 2>&5
7704  ac_status=$?
7705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); }; }; then
7707  ac_cv_have_decl_strsuftoll=yes
7708else
7709  echo "$as_me: failed program was:" >&5
7710sed 's/^/| /' conftest.$ac_ext >&5
7711
7712ac_cv_have_decl_strsuftoll=no
7713fi
7714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7715fi
7716echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsuftoll" >&5
7717echo "${ECHO_T}$ac_cv_have_decl_strsuftoll" >&6
7718if test $ac_cv_have_decl_strsuftoll = yes; then
7719
7720cat >>confdefs.h <<_ACEOF
7721#define HAVE_DECL_STRSUFTOLL 1
7722_ACEOF
7723
7724
7725else
7726  cat >>confdefs.h <<_ACEOF
7727#define HAVE_DECL_STRSUFTOLL 0
7728_ACEOF
7729
7730
7731fi
7732
7733
7734
7735echo "$as_me:$LINENO: checking whether htobe16 is declared" >&5
7736echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6
7737if test "${ac_cv_have_decl_htobe16+set}" = set; then
7738  echo $ECHO_N "(cached) $ECHO_C" >&6
7739else
7740  cat >conftest.$ac_ext <<_ACEOF
7741/* confdefs.h.  */
7742_ACEOF
7743cat confdefs.h >>conftest.$ac_ext
7744cat >>conftest.$ac_ext <<_ACEOF
7745/* end confdefs.h.  */
7746#include <sys/types.h>
7747
7748int
7749main ()
7750{
7751#ifndef htobe16
7752  char *p = (char *) htobe16;
7753#endif
7754
7755  ;
7756  return 0;
7757}
7758_ACEOF
7759rm -f conftest.$ac_objext
7760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761  (eval $ac_compile) 2>conftest.er1
7762  ac_status=$?
7763  grep -v '^ *+' conftest.er1 >conftest.err
7764  rm -f conftest.er1
7765  cat conftest.err >&5
7766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767  (exit $ac_status); } &&
7768	 { ac_try='test -z "$ac_c_werror_flag"
7769			 || test ! -s conftest.err'
7770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771  (eval $ac_try) 2>&5
7772  ac_status=$?
7773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774  (exit $ac_status); }; } &&
7775	 { ac_try='test -s conftest.$ac_objext'
7776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777  (eval $ac_try) 2>&5
7778  ac_status=$?
7779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780  (exit $ac_status); }; }; then
7781  ac_cv_have_decl_htobe16=yes
7782else
7783  echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
7786ac_cv_have_decl_htobe16=no
7787fi
7788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789fi
7790echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe16" >&5
7791echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6
7792if test $ac_cv_have_decl_htobe16 = yes; then
7793
7794cat >>confdefs.h <<_ACEOF
7795#define HAVE_DECL_HTOBE16 1
7796_ACEOF
7797
7798
7799else
7800  cat >>confdefs.h <<_ACEOF
7801#define HAVE_DECL_HTOBE16 0
7802_ACEOF
7803
7804
7805fi
7806echo "$as_me:$LINENO: checking whether htobe32 is declared" >&5
7807echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6
7808if test "${ac_cv_have_decl_htobe32+set}" = set; then
7809  echo $ECHO_N "(cached) $ECHO_C" >&6
7810else
7811  cat >conftest.$ac_ext <<_ACEOF
7812/* confdefs.h.  */
7813_ACEOF
7814cat confdefs.h >>conftest.$ac_ext
7815cat >>conftest.$ac_ext <<_ACEOF
7816/* end confdefs.h.  */
7817#include <sys/types.h>
7818
7819int
7820main ()
7821{
7822#ifndef htobe32
7823  char *p = (char *) htobe32;
7824#endif
7825
7826  ;
7827  return 0;
7828}
7829_ACEOF
7830rm -f conftest.$ac_objext
7831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832  (eval $ac_compile) 2>conftest.er1
7833  ac_status=$?
7834  grep -v '^ *+' conftest.er1 >conftest.err
7835  rm -f conftest.er1
7836  cat conftest.err >&5
7837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838  (exit $ac_status); } &&
7839	 { ac_try='test -z "$ac_c_werror_flag"
7840			 || test ! -s conftest.err'
7841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842  (eval $ac_try) 2>&5
7843  ac_status=$?
7844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845  (exit $ac_status); }; } &&
7846	 { ac_try='test -s conftest.$ac_objext'
7847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848  (eval $ac_try) 2>&5
7849  ac_status=$?
7850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851  (exit $ac_status); }; }; then
7852  ac_cv_have_decl_htobe32=yes
7853else
7854  echo "$as_me: failed program was:" >&5
7855sed 's/^/| /' conftest.$ac_ext >&5
7856
7857ac_cv_have_decl_htobe32=no
7858fi
7859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7860fi
7861echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe32" >&5
7862echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6
7863if test $ac_cv_have_decl_htobe32 = yes; then
7864
7865cat >>confdefs.h <<_ACEOF
7866#define HAVE_DECL_HTOBE32 1
7867_ACEOF
7868
7869
7870else
7871  cat >>confdefs.h <<_ACEOF
7872#define HAVE_DECL_HTOBE32 0
7873_ACEOF
7874
7875
7876fi
7877echo "$as_me:$LINENO: checking whether htobe64 is declared" >&5
7878echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6
7879if test "${ac_cv_have_decl_htobe64+set}" = set; then
7880  echo $ECHO_N "(cached) $ECHO_C" >&6
7881else
7882  cat >conftest.$ac_ext <<_ACEOF
7883/* confdefs.h.  */
7884_ACEOF
7885cat confdefs.h >>conftest.$ac_ext
7886cat >>conftest.$ac_ext <<_ACEOF
7887/* end confdefs.h.  */
7888#include <sys/types.h>
7889
7890int
7891main ()
7892{
7893#ifndef htobe64
7894  char *p = (char *) htobe64;
7895#endif
7896
7897  ;
7898  return 0;
7899}
7900_ACEOF
7901rm -f conftest.$ac_objext
7902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7903  (eval $ac_compile) 2>conftest.er1
7904  ac_status=$?
7905  grep -v '^ *+' conftest.er1 >conftest.err
7906  rm -f conftest.er1
7907  cat conftest.err >&5
7908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909  (exit $ac_status); } &&
7910	 { ac_try='test -z "$ac_c_werror_flag"
7911			 || test ! -s conftest.err'
7912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913  (eval $ac_try) 2>&5
7914  ac_status=$?
7915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916  (exit $ac_status); }; } &&
7917	 { ac_try='test -s conftest.$ac_objext'
7918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919  (eval $ac_try) 2>&5
7920  ac_status=$?
7921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922  (exit $ac_status); }; }; then
7923  ac_cv_have_decl_htobe64=yes
7924else
7925  echo "$as_me: failed program was:" >&5
7926sed 's/^/| /' conftest.$ac_ext >&5
7927
7928ac_cv_have_decl_htobe64=no
7929fi
7930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7931fi
7932echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe64" >&5
7933echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6
7934if test $ac_cv_have_decl_htobe64 = yes; then
7935
7936cat >>confdefs.h <<_ACEOF
7937#define HAVE_DECL_HTOBE64 1
7938_ACEOF
7939
7940
7941else
7942  cat >>confdefs.h <<_ACEOF
7943#define HAVE_DECL_HTOBE64 0
7944_ACEOF
7945
7946
7947fi
7948echo "$as_me:$LINENO: checking whether htole16 is declared" >&5
7949echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6
7950if test "${ac_cv_have_decl_htole16+set}" = set; then
7951  echo $ECHO_N "(cached) $ECHO_C" >&6
7952else
7953  cat >conftest.$ac_ext <<_ACEOF
7954/* confdefs.h.  */
7955_ACEOF
7956cat confdefs.h >>conftest.$ac_ext
7957cat >>conftest.$ac_ext <<_ACEOF
7958/* end confdefs.h.  */
7959#include <sys/types.h>
7960
7961int
7962main ()
7963{
7964#ifndef htole16
7965  char *p = (char *) htole16;
7966#endif
7967
7968  ;
7969  return 0;
7970}
7971_ACEOF
7972rm -f conftest.$ac_objext
7973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7974  (eval $ac_compile) 2>conftest.er1
7975  ac_status=$?
7976  grep -v '^ *+' conftest.er1 >conftest.err
7977  rm -f conftest.er1
7978  cat conftest.err >&5
7979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980  (exit $ac_status); } &&
7981	 { ac_try='test -z "$ac_c_werror_flag"
7982			 || test ! -s conftest.err'
7983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984  (eval $ac_try) 2>&5
7985  ac_status=$?
7986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987  (exit $ac_status); }; } &&
7988	 { ac_try='test -s conftest.$ac_objext'
7989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990  (eval $ac_try) 2>&5
7991  ac_status=$?
7992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993  (exit $ac_status); }; }; then
7994  ac_cv_have_decl_htole16=yes
7995else
7996  echo "$as_me: failed program was:" >&5
7997sed 's/^/| /' conftest.$ac_ext >&5
7998
7999ac_cv_have_decl_htole16=no
8000fi
8001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8002fi
8003echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole16" >&5
8004echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6
8005if test $ac_cv_have_decl_htole16 = yes; then
8006
8007cat >>confdefs.h <<_ACEOF
8008#define HAVE_DECL_HTOLE16 1
8009_ACEOF
8010
8011
8012else
8013  cat >>confdefs.h <<_ACEOF
8014#define HAVE_DECL_HTOLE16 0
8015_ACEOF
8016
8017
8018fi
8019echo "$as_me:$LINENO: checking whether htole32 is declared" >&5
8020echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6
8021if test "${ac_cv_have_decl_htole32+set}" = set; then
8022  echo $ECHO_N "(cached) $ECHO_C" >&6
8023else
8024  cat >conftest.$ac_ext <<_ACEOF
8025/* confdefs.h.  */
8026_ACEOF
8027cat confdefs.h >>conftest.$ac_ext
8028cat >>conftest.$ac_ext <<_ACEOF
8029/* end confdefs.h.  */
8030#include <sys/types.h>
8031
8032int
8033main ()
8034{
8035#ifndef htole32
8036  char *p = (char *) htole32;
8037#endif
8038
8039  ;
8040  return 0;
8041}
8042_ACEOF
8043rm -f conftest.$ac_objext
8044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045  (eval $ac_compile) 2>conftest.er1
8046  ac_status=$?
8047  grep -v '^ *+' conftest.er1 >conftest.err
8048  rm -f conftest.er1
8049  cat conftest.err >&5
8050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051  (exit $ac_status); } &&
8052	 { ac_try='test -z "$ac_c_werror_flag"
8053			 || test ! -s conftest.err'
8054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055  (eval $ac_try) 2>&5
8056  ac_status=$?
8057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058  (exit $ac_status); }; } &&
8059	 { ac_try='test -s conftest.$ac_objext'
8060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061  (eval $ac_try) 2>&5
8062  ac_status=$?
8063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064  (exit $ac_status); }; }; then
8065  ac_cv_have_decl_htole32=yes
8066else
8067  echo "$as_me: failed program was:" >&5
8068sed 's/^/| /' conftest.$ac_ext >&5
8069
8070ac_cv_have_decl_htole32=no
8071fi
8072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8073fi
8074echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole32" >&5
8075echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6
8076if test $ac_cv_have_decl_htole32 = yes; then
8077
8078cat >>confdefs.h <<_ACEOF
8079#define HAVE_DECL_HTOLE32 1
8080_ACEOF
8081
8082
8083else
8084  cat >>confdefs.h <<_ACEOF
8085#define HAVE_DECL_HTOLE32 0
8086_ACEOF
8087
8088
8089fi
8090echo "$as_me:$LINENO: checking whether htole64 is declared" >&5
8091echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6
8092if test "${ac_cv_have_decl_htole64+set}" = set; then
8093  echo $ECHO_N "(cached) $ECHO_C" >&6
8094else
8095  cat >conftest.$ac_ext <<_ACEOF
8096/* confdefs.h.  */
8097_ACEOF
8098cat confdefs.h >>conftest.$ac_ext
8099cat >>conftest.$ac_ext <<_ACEOF
8100/* end confdefs.h.  */
8101#include <sys/types.h>
8102
8103int
8104main ()
8105{
8106#ifndef htole64
8107  char *p = (char *) htole64;
8108#endif
8109
8110  ;
8111  return 0;
8112}
8113_ACEOF
8114rm -f conftest.$ac_objext
8115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8116  (eval $ac_compile) 2>conftest.er1
8117  ac_status=$?
8118  grep -v '^ *+' conftest.er1 >conftest.err
8119  rm -f conftest.er1
8120  cat conftest.err >&5
8121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122  (exit $ac_status); } &&
8123	 { ac_try='test -z "$ac_c_werror_flag"
8124			 || test ! -s conftest.err'
8125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126  (eval $ac_try) 2>&5
8127  ac_status=$?
8128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129  (exit $ac_status); }; } &&
8130	 { ac_try='test -s conftest.$ac_objext'
8131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132  (eval $ac_try) 2>&5
8133  ac_status=$?
8134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135  (exit $ac_status); }; }; then
8136  ac_cv_have_decl_htole64=yes
8137else
8138  echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
8141ac_cv_have_decl_htole64=no
8142fi
8143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144fi
8145echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole64" >&5
8146echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6
8147if test $ac_cv_have_decl_htole64 = yes; then
8148
8149cat >>confdefs.h <<_ACEOF
8150#define HAVE_DECL_HTOLE64 1
8151_ACEOF
8152
8153
8154else
8155  cat >>confdefs.h <<_ACEOF
8156#define HAVE_DECL_HTOLE64 0
8157_ACEOF
8158
8159
8160fi
8161echo "$as_me:$LINENO: checking whether be16toh is declared" >&5
8162echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6
8163if test "${ac_cv_have_decl_be16toh+set}" = set; then
8164  echo $ECHO_N "(cached) $ECHO_C" >&6
8165else
8166  cat >conftest.$ac_ext <<_ACEOF
8167/* confdefs.h.  */
8168_ACEOF
8169cat confdefs.h >>conftest.$ac_ext
8170cat >>conftest.$ac_ext <<_ACEOF
8171/* end confdefs.h.  */
8172#include <sys/types.h>
8173
8174int
8175main ()
8176{
8177#ifndef be16toh
8178  char *p = (char *) be16toh;
8179#endif
8180
8181  ;
8182  return 0;
8183}
8184_ACEOF
8185rm -f conftest.$ac_objext
8186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187  (eval $ac_compile) 2>conftest.er1
8188  ac_status=$?
8189  grep -v '^ *+' conftest.er1 >conftest.err
8190  rm -f conftest.er1
8191  cat conftest.err >&5
8192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193  (exit $ac_status); } &&
8194	 { ac_try='test -z "$ac_c_werror_flag"
8195			 || test ! -s conftest.err'
8196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197  (eval $ac_try) 2>&5
8198  ac_status=$?
8199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200  (exit $ac_status); }; } &&
8201	 { ac_try='test -s conftest.$ac_objext'
8202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203  (eval $ac_try) 2>&5
8204  ac_status=$?
8205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206  (exit $ac_status); }; }; then
8207  ac_cv_have_decl_be16toh=yes
8208else
8209  echo "$as_me: failed program was:" >&5
8210sed 's/^/| /' conftest.$ac_ext >&5
8211
8212ac_cv_have_decl_be16toh=no
8213fi
8214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8215fi
8216echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16toh" >&5
8217echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6
8218if test $ac_cv_have_decl_be16toh = yes; then
8219
8220cat >>confdefs.h <<_ACEOF
8221#define HAVE_DECL_BE16TOH 1
8222_ACEOF
8223
8224
8225else
8226  cat >>confdefs.h <<_ACEOF
8227#define HAVE_DECL_BE16TOH 0
8228_ACEOF
8229
8230
8231fi
8232echo "$as_me:$LINENO: checking whether be32toh is declared" >&5
8233echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6
8234if test "${ac_cv_have_decl_be32toh+set}" = set; then
8235  echo $ECHO_N "(cached) $ECHO_C" >&6
8236else
8237  cat >conftest.$ac_ext <<_ACEOF
8238/* confdefs.h.  */
8239_ACEOF
8240cat confdefs.h >>conftest.$ac_ext
8241cat >>conftest.$ac_ext <<_ACEOF
8242/* end confdefs.h.  */
8243#include <sys/types.h>
8244
8245int
8246main ()
8247{
8248#ifndef be32toh
8249  char *p = (char *) be32toh;
8250#endif
8251
8252  ;
8253  return 0;
8254}
8255_ACEOF
8256rm -f conftest.$ac_objext
8257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8258  (eval $ac_compile) 2>conftest.er1
8259  ac_status=$?
8260  grep -v '^ *+' conftest.er1 >conftest.err
8261  rm -f conftest.er1
8262  cat conftest.err >&5
8263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264  (exit $ac_status); } &&
8265	 { ac_try='test -z "$ac_c_werror_flag"
8266			 || test ! -s conftest.err'
8267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268  (eval $ac_try) 2>&5
8269  ac_status=$?
8270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271  (exit $ac_status); }; } &&
8272	 { ac_try='test -s conftest.$ac_objext'
8273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274  (eval $ac_try) 2>&5
8275  ac_status=$?
8276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277  (exit $ac_status); }; }; then
8278  ac_cv_have_decl_be32toh=yes
8279else
8280  echo "$as_me: failed program was:" >&5
8281sed 's/^/| /' conftest.$ac_ext >&5
8282
8283ac_cv_have_decl_be32toh=no
8284fi
8285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8286fi
8287echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32toh" >&5
8288echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6
8289if test $ac_cv_have_decl_be32toh = yes; then
8290
8291cat >>confdefs.h <<_ACEOF
8292#define HAVE_DECL_BE32TOH 1
8293_ACEOF
8294
8295
8296else
8297  cat >>confdefs.h <<_ACEOF
8298#define HAVE_DECL_BE32TOH 0
8299_ACEOF
8300
8301
8302fi
8303echo "$as_me:$LINENO: checking whether be64toh is declared" >&5
8304echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6
8305if test "${ac_cv_have_decl_be64toh+set}" = set; then
8306  echo $ECHO_N "(cached) $ECHO_C" >&6
8307else
8308  cat >conftest.$ac_ext <<_ACEOF
8309/* confdefs.h.  */
8310_ACEOF
8311cat confdefs.h >>conftest.$ac_ext
8312cat >>conftest.$ac_ext <<_ACEOF
8313/* end confdefs.h.  */
8314#include <sys/types.h>
8315
8316int
8317main ()
8318{
8319#ifndef be64toh
8320  char *p = (char *) be64toh;
8321#endif
8322
8323  ;
8324  return 0;
8325}
8326_ACEOF
8327rm -f conftest.$ac_objext
8328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8329  (eval $ac_compile) 2>conftest.er1
8330  ac_status=$?
8331  grep -v '^ *+' conftest.er1 >conftest.err
8332  rm -f conftest.er1
8333  cat conftest.err >&5
8334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335  (exit $ac_status); } &&
8336	 { ac_try='test -z "$ac_c_werror_flag"
8337			 || test ! -s conftest.err'
8338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339  (eval $ac_try) 2>&5
8340  ac_status=$?
8341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342  (exit $ac_status); }; } &&
8343	 { ac_try='test -s conftest.$ac_objext'
8344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345  (eval $ac_try) 2>&5
8346  ac_status=$?
8347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348  (exit $ac_status); }; }; then
8349  ac_cv_have_decl_be64toh=yes
8350else
8351  echo "$as_me: failed program was:" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5
8353
8354ac_cv_have_decl_be64toh=no
8355fi
8356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8357fi
8358echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64toh" >&5
8359echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6
8360if test $ac_cv_have_decl_be64toh = yes; then
8361
8362cat >>confdefs.h <<_ACEOF
8363#define HAVE_DECL_BE64TOH 1
8364_ACEOF
8365
8366
8367else
8368  cat >>confdefs.h <<_ACEOF
8369#define HAVE_DECL_BE64TOH 0
8370_ACEOF
8371
8372
8373fi
8374echo "$as_me:$LINENO: checking whether le16toh is declared" >&5
8375echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6
8376if test "${ac_cv_have_decl_le16toh+set}" = set; then
8377  echo $ECHO_N "(cached) $ECHO_C" >&6
8378else
8379  cat >conftest.$ac_ext <<_ACEOF
8380/* confdefs.h.  */
8381_ACEOF
8382cat confdefs.h >>conftest.$ac_ext
8383cat >>conftest.$ac_ext <<_ACEOF
8384/* end confdefs.h.  */
8385#include <sys/types.h>
8386
8387int
8388main ()
8389{
8390#ifndef le16toh
8391  char *p = (char *) le16toh;
8392#endif
8393
8394  ;
8395  return 0;
8396}
8397_ACEOF
8398rm -f conftest.$ac_objext
8399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8400  (eval $ac_compile) 2>conftest.er1
8401  ac_status=$?
8402  grep -v '^ *+' conftest.er1 >conftest.err
8403  rm -f conftest.er1
8404  cat conftest.err >&5
8405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406  (exit $ac_status); } &&
8407	 { ac_try='test -z "$ac_c_werror_flag"
8408			 || test ! -s conftest.err'
8409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410  (eval $ac_try) 2>&5
8411  ac_status=$?
8412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413  (exit $ac_status); }; } &&
8414	 { ac_try='test -s conftest.$ac_objext'
8415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416  (eval $ac_try) 2>&5
8417  ac_status=$?
8418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419  (exit $ac_status); }; }; then
8420  ac_cv_have_decl_le16toh=yes
8421else
8422  echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425ac_cv_have_decl_le16toh=no
8426fi
8427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8428fi
8429echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16toh" >&5
8430echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6
8431if test $ac_cv_have_decl_le16toh = yes; then
8432
8433cat >>confdefs.h <<_ACEOF
8434#define HAVE_DECL_LE16TOH 1
8435_ACEOF
8436
8437
8438else
8439  cat >>confdefs.h <<_ACEOF
8440#define HAVE_DECL_LE16TOH 0
8441_ACEOF
8442
8443
8444fi
8445echo "$as_me:$LINENO: checking whether le32toh is declared" >&5
8446echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6
8447if test "${ac_cv_have_decl_le32toh+set}" = set; then
8448  echo $ECHO_N "(cached) $ECHO_C" >&6
8449else
8450  cat >conftest.$ac_ext <<_ACEOF
8451/* confdefs.h.  */
8452_ACEOF
8453cat confdefs.h >>conftest.$ac_ext
8454cat >>conftest.$ac_ext <<_ACEOF
8455/* end confdefs.h.  */
8456#include <sys/types.h>
8457
8458int
8459main ()
8460{
8461#ifndef le32toh
8462  char *p = (char *) le32toh;
8463#endif
8464
8465  ;
8466  return 0;
8467}
8468_ACEOF
8469rm -f conftest.$ac_objext
8470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8471  (eval $ac_compile) 2>conftest.er1
8472  ac_status=$?
8473  grep -v '^ *+' conftest.er1 >conftest.err
8474  rm -f conftest.er1
8475  cat conftest.err >&5
8476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477  (exit $ac_status); } &&
8478	 { ac_try='test -z "$ac_c_werror_flag"
8479			 || test ! -s conftest.err'
8480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481  (eval $ac_try) 2>&5
8482  ac_status=$?
8483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484  (exit $ac_status); }; } &&
8485	 { ac_try='test -s conftest.$ac_objext'
8486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487  (eval $ac_try) 2>&5
8488  ac_status=$?
8489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490  (exit $ac_status); }; }; then
8491  ac_cv_have_decl_le32toh=yes
8492else
8493  echo "$as_me: failed program was:" >&5
8494sed 's/^/| /' conftest.$ac_ext >&5
8495
8496ac_cv_have_decl_le32toh=no
8497fi
8498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8499fi
8500echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32toh" >&5
8501echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6
8502if test $ac_cv_have_decl_le32toh = yes; then
8503
8504cat >>confdefs.h <<_ACEOF
8505#define HAVE_DECL_LE32TOH 1
8506_ACEOF
8507
8508
8509else
8510  cat >>confdefs.h <<_ACEOF
8511#define HAVE_DECL_LE32TOH 0
8512_ACEOF
8513
8514
8515fi
8516echo "$as_me:$LINENO: checking whether le64toh is declared" >&5
8517echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6
8518if test "${ac_cv_have_decl_le64toh+set}" = set; then
8519  echo $ECHO_N "(cached) $ECHO_C" >&6
8520else
8521  cat >conftest.$ac_ext <<_ACEOF
8522/* confdefs.h.  */
8523_ACEOF
8524cat confdefs.h >>conftest.$ac_ext
8525cat >>conftest.$ac_ext <<_ACEOF
8526/* end confdefs.h.  */
8527#include <sys/types.h>
8528
8529int
8530main ()
8531{
8532#ifndef le64toh
8533  char *p = (char *) le64toh;
8534#endif
8535
8536  ;
8537  return 0;
8538}
8539_ACEOF
8540rm -f conftest.$ac_objext
8541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8542  (eval $ac_compile) 2>conftest.er1
8543  ac_status=$?
8544  grep -v '^ *+' conftest.er1 >conftest.err
8545  rm -f conftest.er1
8546  cat conftest.err >&5
8547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548  (exit $ac_status); } &&
8549	 { ac_try='test -z "$ac_c_werror_flag"
8550			 || test ! -s conftest.err'
8551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552  (eval $ac_try) 2>&5
8553  ac_status=$?
8554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555  (exit $ac_status); }; } &&
8556	 { ac_try='test -s conftest.$ac_objext'
8557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558  (eval $ac_try) 2>&5
8559  ac_status=$?
8560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561  (exit $ac_status); }; }; then
8562  ac_cv_have_decl_le64toh=yes
8563else
8564  echo "$as_me: failed program was:" >&5
8565sed 's/^/| /' conftest.$ac_ext >&5
8566
8567ac_cv_have_decl_le64toh=no
8568fi
8569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8570fi
8571echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64toh" >&5
8572echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6
8573if test $ac_cv_have_decl_le64toh = yes; then
8574
8575cat >>confdefs.h <<_ACEOF
8576#define HAVE_DECL_LE64TOH 1
8577_ACEOF
8578
8579
8580else
8581  cat >>confdefs.h <<_ACEOF
8582#define HAVE_DECL_LE64TOH 0
8583_ACEOF
8584
8585
8586fi
8587
8588
8589
8590echo "$as_me:$LINENO: checking whether bswap16 is declared" >&5
8591echo $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6
8592if test "${ac_cv_have_decl_bswap16+set}" = set; then
8593  echo $ECHO_N "(cached) $ECHO_C" >&6
8594else
8595  cat >conftest.$ac_ext <<_ACEOF
8596/* confdefs.h.  */
8597_ACEOF
8598cat confdefs.h >>conftest.$ac_ext
8599cat >>conftest.$ac_ext <<_ACEOF
8600/* end confdefs.h.  */
8601#include <machine/bswap.h>
8602
8603int
8604main ()
8605{
8606#ifndef bswap16
8607  char *p = (char *) bswap16;
8608#endif
8609
8610  ;
8611  return 0;
8612}
8613_ACEOF
8614rm -f conftest.$ac_objext
8615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616  (eval $ac_compile) 2>conftest.er1
8617  ac_status=$?
8618  grep -v '^ *+' conftest.er1 >conftest.err
8619  rm -f conftest.er1
8620  cat conftest.err >&5
8621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622  (exit $ac_status); } &&
8623	 { ac_try='test -z "$ac_c_werror_flag"
8624			 || test ! -s conftest.err'
8625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626  (eval $ac_try) 2>&5
8627  ac_status=$?
8628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629  (exit $ac_status); }; } &&
8630	 { ac_try='test -s conftest.$ac_objext'
8631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632  (eval $ac_try) 2>&5
8633  ac_status=$?
8634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635  (exit $ac_status); }; }; then
8636  ac_cv_have_decl_bswap16=yes
8637else
8638  echo "$as_me: failed program was:" >&5
8639sed 's/^/| /' conftest.$ac_ext >&5
8640
8641ac_cv_have_decl_bswap16=no
8642fi
8643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8644fi
8645echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap16" >&5
8646echo "${ECHO_T}$ac_cv_have_decl_bswap16" >&6
8647if test $ac_cv_have_decl_bswap16 = yes; then
8648
8649cat >>confdefs.h <<_ACEOF
8650#define HAVE_DECL_BSWAP16 1
8651_ACEOF
8652
8653
8654else
8655  cat >>confdefs.h <<_ACEOF
8656#define HAVE_DECL_BSWAP16 0
8657_ACEOF
8658
8659
8660fi
8661echo "$as_me:$LINENO: checking whether bswap32 is declared" >&5
8662echo $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6
8663if test "${ac_cv_have_decl_bswap32+set}" = set; then
8664  echo $ECHO_N "(cached) $ECHO_C" >&6
8665else
8666  cat >conftest.$ac_ext <<_ACEOF
8667/* confdefs.h.  */
8668_ACEOF
8669cat confdefs.h >>conftest.$ac_ext
8670cat >>conftest.$ac_ext <<_ACEOF
8671/* end confdefs.h.  */
8672#include <machine/bswap.h>
8673
8674int
8675main ()
8676{
8677#ifndef bswap32
8678  char *p = (char *) bswap32;
8679#endif
8680
8681  ;
8682  return 0;
8683}
8684_ACEOF
8685rm -f conftest.$ac_objext
8686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687  (eval $ac_compile) 2>conftest.er1
8688  ac_status=$?
8689  grep -v '^ *+' conftest.er1 >conftest.err
8690  rm -f conftest.er1
8691  cat conftest.err >&5
8692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693  (exit $ac_status); } &&
8694	 { ac_try='test -z "$ac_c_werror_flag"
8695			 || test ! -s conftest.err'
8696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697  (eval $ac_try) 2>&5
8698  ac_status=$?
8699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700  (exit $ac_status); }; } &&
8701	 { ac_try='test -s conftest.$ac_objext'
8702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703  (eval $ac_try) 2>&5
8704  ac_status=$?
8705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706  (exit $ac_status); }; }; then
8707  ac_cv_have_decl_bswap32=yes
8708else
8709  echo "$as_me: failed program was:" >&5
8710sed 's/^/| /' conftest.$ac_ext >&5
8711
8712ac_cv_have_decl_bswap32=no
8713fi
8714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8715fi
8716echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap32" >&5
8717echo "${ECHO_T}$ac_cv_have_decl_bswap32" >&6
8718if test $ac_cv_have_decl_bswap32 = yes; then
8719
8720cat >>confdefs.h <<_ACEOF
8721#define HAVE_DECL_BSWAP32 1
8722_ACEOF
8723
8724
8725else
8726  cat >>confdefs.h <<_ACEOF
8727#define HAVE_DECL_BSWAP32 0
8728_ACEOF
8729
8730
8731fi
8732echo "$as_me:$LINENO: checking whether bswap64 is declared" >&5
8733echo $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6
8734if test "${ac_cv_have_decl_bswap64+set}" = set; then
8735  echo $ECHO_N "(cached) $ECHO_C" >&6
8736else
8737  cat >conftest.$ac_ext <<_ACEOF
8738/* confdefs.h.  */
8739_ACEOF
8740cat confdefs.h >>conftest.$ac_ext
8741cat >>conftest.$ac_ext <<_ACEOF
8742/* end confdefs.h.  */
8743#include <machine/bswap.h>
8744
8745int
8746main ()
8747{
8748#ifndef bswap64
8749  char *p = (char *) bswap64;
8750#endif
8751
8752  ;
8753  return 0;
8754}
8755_ACEOF
8756rm -f conftest.$ac_objext
8757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758  (eval $ac_compile) 2>conftest.er1
8759  ac_status=$?
8760  grep -v '^ *+' conftest.er1 >conftest.err
8761  rm -f conftest.er1
8762  cat conftest.err >&5
8763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764  (exit $ac_status); } &&
8765	 { ac_try='test -z "$ac_c_werror_flag"
8766			 || test ! -s conftest.err'
8767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768  (eval $ac_try) 2>&5
8769  ac_status=$?
8770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771  (exit $ac_status); }; } &&
8772	 { ac_try='test -s conftest.$ac_objext'
8773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774  (eval $ac_try) 2>&5
8775  ac_status=$?
8776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777  (exit $ac_status); }; }; then
8778  ac_cv_have_decl_bswap64=yes
8779else
8780  echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
8783ac_cv_have_decl_bswap64=no
8784fi
8785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8786fi
8787echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap64" >&5
8788echo "${ECHO_T}$ac_cv_have_decl_bswap64" >&6
8789if test $ac_cv_have_decl_bswap64 = yes; then
8790
8791cat >>confdefs.h <<_ACEOF
8792#define HAVE_DECL_BSWAP64 1
8793_ACEOF
8794
8795
8796else
8797  cat >>confdefs.h <<_ACEOF
8798#define HAVE_DECL_BSWAP64 0
8799_ACEOF
8800
8801
8802fi
8803
8804
8805
8806echo "$as_me:$LINENO: checking whether fstatvfs is declared" >&5
8807echo $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6
8808if test "${ac_cv_have_decl_fstatvfs+set}" = set; then
8809  echo $ECHO_N "(cached) $ECHO_C" >&6
8810else
8811  cat >conftest.$ac_ext <<_ACEOF
8812/* confdefs.h.  */
8813_ACEOF
8814cat confdefs.h >>conftest.$ac_ext
8815cat >>conftest.$ac_ext <<_ACEOF
8816/* end confdefs.h.  */
8817#include <sys/statvfs.h>
8818
8819int
8820main ()
8821{
8822#ifndef fstatvfs
8823  char *p = (char *) fstatvfs;
8824#endif
8825
8826  ;
8827  return 0;
8828}
8829_ACEOF
8830rm -f conftest.$ac_objext
8831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832  (eval $ac_compile) 2>conftest.er1
8833  ac_status=$?
8834  grep -v '^ *+' conftest.er1 >conftest.err
8835  rm -f conftest.er1
8836  cat conftest.err >&5
8837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838  (exit $ac_status); } &&
8839	 { ac_try='test -z "$ac_c_werror_flag"
8840			 || test ! -s conftest.err'
8841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842  (eval $ac_try) 2>&5
8843  ac_status=$?
8844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845  (exit $ac_status); }; } &&
8846	 { ac_try='test -s conftest.$ac_objext'
8847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848  (eval $ac_try) 2>&5
8849  ac_status=$?
8850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851  (exit $ac_status); }; }; then
8852  ac_cv_have_decl_fstatvfs=yes
8853else
8854  echo "$as_me: failed program was:" >&5
8855sed 's/^/| /' conftest.$ac_ext >&5
8856
8857ac_cv_have_decl_fstatvfs=no
8858fi
8859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8860fi
8861echo "$as_me:$LINENO: result: $ac_cv_have_decl_fstatvfs" >&5
8862echo "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6
8863if test $ac_cv_have_decl_fstatvfs = yes; then
8864
8865cat >>confdefs.h <<_ACEOF
8866#define HAVE_DECL_FSTATVFS 1
8867_ACEOF
8868
8869
8870else
8871  cat >>confdefs.h <<_ACEOF
8872#define HAVE_DECL_FSTATVFS 0
8873_ACEOF
8874
8875
8876fi
8877
8878
8879
8880echo "$as_me:$LINENO: checking whether setgroupent is declared" >&5
8881echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
8882if test "${ac_cv_have_decl_setgroupent+set}" = set; then
8883  echo $ECHO_N "(cached) $ECHO_C" >&6
8884else
8885  cat >conftest.$ac_ext <<_ACEOF
8886/* confdefs.h.  */
8887_ACEOF
8888cat confdefs.h >>conftest.$ac_ext
8889cat >>conftest.$ac_ext <<_ACEOF
8890/* end confdefs.h.  */
8891
8892#include <sys/types.h>
8893#include <grp.h>
8894#include <pwd.h>
8895
8896
8897int
8898main ()
8899{
8900#ifndef setgroupent
8901  char *p = (char *) setgroupent;
8902#endif
8903
8904  ;
8905  return 0;
8906}
8907_ACEOF
8908rm -f conftest.$ac_objext
8909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910  (eval $ac_compile) 2>conftest.er1
8911  ac_status=$?
8912  grep -v '^ *+' conftest.er1 >conftest.err
8913  rm -f conftest.er1
8914  cat conftest.err >&5
8915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916  (exit $ac_status); } &&
8917	 { ac_try='test -z "$ac_c_werror_flag"
8918			 || test ! -s conftest.err'
8919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920  (eval $ac_try) 2>&5
8921  ac_status=$?
8922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923  (exit $ac_status); }; } &&
8924	 { ac_try='test -s conftest.$ac_objext'
8925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926  (eval $ac_try) 2>&5
8927  ac_status=$?
8928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929  (exit $ac_status); }; }; then
8930  ac_cv_have_decl_setgroupent=yes
8931else
8932  echo "$as_me: failed program was:" >&5
8933sed 's/^/| /' conftest.$ac_ext >&5
8934
8935ac_cv_have_decl_setgroupent=no
8936fi
8937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8938fi
8939echo "$as_me:$LINENO: result: $ac_cv_have_decl_setgroupent" >&5
8940echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
8941if test $ac_cv_have_decl_setgroupent = yes; then
8942
8943cat >>confdefs.h <<_ACEOF
8944#define HAVE_DECL_SETGROUPENT 1
8945_ACEOF
8946
8947
8948else
8949  cat >>confdefs.h <<_ACEOF
8950#define HAVE_DECL_SETGROUPENT 0
8951_ACEOF
8952
8953
8954fi
8955echo "$as_me:$LINENO: checking whether setpassent is declared" >&5
8956echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
8957if test "${ac_cv_have_decl_setpassent+set}" = set; then
8958  echo $ECHO_N "(cached) $ECHO_C" >&6
8959else
8960  cat >conftest.$ac_ext <<_ACEOF
8961/* confdefs.h.  */
8962_ACEOF
8963cat confdefs.h >>conftest.$ac_ext
8964cat >>conftest.$ac_ext <<_ACEOF
8965/* end confdefs.h.  */
8966
8967#include <sys/types.h>
8968#include <grp.h>
8969#include <pwd.h>
8970
8971
8972int
8973main ()
8974{
8975#ifndef setpassent
8976  char *p = (char *) setpassent;
8977#endif
8978
8979  ;
8980  return 0;
8981}
8982_ACEOF
8983rm -f conftest.$ac_objext
8984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8985  (eval $ac_compile) 2>conftest.er1
8986  ac_status=$?
8987  grep -v '^ *+' conftest.er1 >conftest.err
8988  rm -f conftest.er1
8989  cat conftest.err >&5
8990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991  (exit $ac_status); } &&
8992	 { ac_try='test -z "$ac_c_werror_flag"
8993			 || test ! -s conftest.err'
8994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995  (eval $ac_try) 2>&5
8996  ac_status=$?
8997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998  (exit $ac_status); }; } &&
8999	 { ac_try='test -s conftest.$ac_objext'
9000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001  (eval $ac_try) 2>&5
9002  ac_status=$?
9003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004  (exit $ac_status); }; }; then
9005  ac_cv_have_decl_setpassent=yes
9006else
9007  echo "$as_me: failed program was:" >&5
9008sed 's/^/| /' conftest.$ac_ext >&5
9009
9010ac_cv_have_decl_setpassent=no
9011fi
9012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9013fi
9014echo "$as_me:$LINENO: result: $ac_cv_have_decl_setpassent" >&5
9015echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
9016if test $ac_cv_have_decl_setpassent = yes; then
9017
9018cat >>confdefs.h <<_ACEOF
9019#define HAVE_DECL_SETPASSENT 1
9020_ACEOF
9021
9022
9023else
9024  cat >>confdefs.h <<_ACEOF
9025#define HAVE_DECL_SETPASSENT 0
9026_ACEOF
9027
9028
9029fi
9030
9031
9032
9033# regcomp() and regexec() are also names of functions in the old V8
9034# regexp package.  To avoid them, we need to find out who has regfree().
9035
9036
9037echo "$as_me:$LINENO: checking for regfree in -lregex" >&5
9038echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
9039if test "${ac_cv_lib_regex_regfree+set}" = set; then
9040  echo $ECHO_N "(cached) $ECHO_C" >&6
9041else
9042  ac_check_lib_save_LIBS=$LIBS
9043LIBS="-lregex  $LIBS"
9044cat >conftest.$ac_ext <<_ACEOF
9045/* confdefs.h.  */
9046_ACEOF
9047cat confdefs.h >>conftest.$ac_ext
9048cat >>conftest.$ac_ext <<_ACEOF
9049/* end confdefs.h.  */
9050
9051/* Override any gcc2 internal prototype to avoid an error.  */
9052#ifdef __cplusplus
9053extern "C"
9054#endif
9055/* We use char because int might match the return type of a gcc2
9056   builtin and then its argument prototype would still apply.  */
9057char regfree ();
9058int
9059main ()
9060{
9061regfree ();
9062  ;
9063  return 0;
9064}
9065_ACEOF
9066rm -f conftest.$ac_objext conftest$ac_exeext
9067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068  (eval $ac_link) 2>conftest.er1
9069  ac_status=$?
9070  grep -v '^ *+' conftest.er1 >conftest.err
9071  rm -f conftest.er1
9072  cat conftest.err >&5
9073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074  (exit $ac_status); } &&
9075	 { ac_try='test -z "$ac_c_werror_flag"
9076			 || test ! -s conftest.err'
9077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078  (eval $ac_try) 2>&5
9079  ac_status=$?
9080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081  (exit $ac_status); }; } &&
9082	 { ac_try='test -s conftest$ac_exeext'
9083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084  (eval $ac_try) 2>&5
9085  ac_status=$?
9086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087  (exit $ac_status); }; }; then
9088  ac_cv_lib_regex_regfree=yes
9089else
9090  echo "$as_me: failed program was:" >&5
9091sed 's/^/| /' conftest.$ac_ext >&5
9092
9093ac_cv_lib_regex_regfree=no
9094fi
9095rm -f conftest.err conftest.$ac_objext \
9096      conftest$ac_exeext conftest.$ac_ext
9097LIBS=$ac_check_lib_save_LIBS
9098fi
9099echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regfree" >&5
9100echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
9101if test $ac_cv_lib_regex_regfree = yes; then
9102  cat >>confdefs.h <<_ACEOF
9103#define HAVE_LIBREGEX 1
9104_ACEOF
9105
9106  LIBS="-lregex $LIBS"
9107
9108fi
9109
9110echo "$as_me:$LINENO: checking for library containing regfree" >&5
9111echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
9112if test "${ac_cv_search_regfree+set}" = set; then
9113  echo $ECHO_N "(cached) $ECHO_C" >&6
9114else
9115  ac_func_search_save_LIBS=$LIBS
9116ac_cv_search_regfree=no
9117cat >conftest.$ac_ext <<_ACEOF
9118/* confdefs.h.  */
9119_ACEOF
9120cat confdefs.h >>conftest.$ac_ext
9121cat >>conftest.$ac_ext <<_ACEOF
9122/* end confdefs.h.  */
9123
9124/* Override any gcc2 internal prototype to avoid an error.  */
9125#ifdef __cplusplus
9126extern "C"
9127#endif
9128/* We use char because int might match the return type of a gcc2
9129   builtin and then its argument prototype would still apply.  */
9130char regfree ();
9131int
9132main ()
9133{
9134regfree ();
9135  ;
9136  return 0;
9137}
9138_ACEOF
9139rm -f conftest.$ac_objext conftest$ac_exeext
9140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141  (eval $ac_link) 2>conftest.er1
9142  ac_status=$?
9143  grep -v '^ *+' conftest.er1 >conftest.err
9144  rm -f conftest.er1
9145  cat conftest.err >&5
9146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147  (exit $ac_status); } &&
9148	 { ac_try='test -z "$ac_c_werror_flag"
9149			 || test ! -s conftest.err'
9150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151  (eval $ac_try) 2>&5
9152  ac_status=$?
9153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154  (exit $ac_status); }; } &&
9155	 { ac_try='test -s conftest$ac_exeext'
9156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157  (eval $ac_try) 2>&5
9158  ac_status=$?
9159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160  (exit $ac_status); }; }; then
9161  ac_cv_search_regfree="none required"
9162else
9163  echo "$as_me: failed program was:" >&5
9164sed 's/^/| /' conftest.$ac_ext >&5
9165
9166fi
9167rm -f conftest.err conftest.$ac_objext \
9168      conftest$ac_exeext conftest.$ac_ext
9169if test "$ac_cv_search_regfree" = no; then
9170  for ac_lib in rx posix; do
9171    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9172    cat >conftest.$ac_ext <<_ACEOF
9173/* confdefs.h.  */
9174_ACEOF
9175cat confdefs.h >>conftest.$ac_ext
9176cat >>conftest.$ac_ext <<_ACEOF
9177/* end confdefs.h.  */
9178
9179/* Override any gcc2 internal prototype to avoid an error.  */
9180#ifdef __cplusplus
9181extern "C"
9182#endif
9183/* We use char because int might match the return type of a gcc2
9184   builtin and then its argument prototype would still apply.  */
9185char regfree ();
9186int
9187main ()
9188{
9189regfree ();
9190  ;
9191  return 0;
9192}
9193_ACEOF
9194rm -f conftest.$ac_objext conftest$ac_exeext
9195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196  (eval $ac_link) 2>conftest.er1
9197  ac_status=$?
9198  grep -v '^ *+' conftest.er1 >conftest.err
9199  rm -f conftest.er1
9200  cat conftest.err >&5
9201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202  (exit $ac_status); } &&
9203	 { ac_try='test -z "$ac_c_werror_flag"
9204			 || test ! -s conftest.err'
9205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206  (eval $ac_try) 2>&5
9207  ac_status=$?
9208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209  (exit $ac_status); }; } &&
9210	 { ac_try='test -s conftest$ac_exeext'
9211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212  (eval $ac_try) 2>&5
9213  ac_status=$?
9214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215  (exit $ac_status); }; }; then
9216  ac_cv_search_regfree="-l$ac_lib"
9217break
9218else
9219  echo "$as_me: failed program was:" >&5
9220sed 's/^/| /' conftest.$ac_ext >&5
9221
9222fi
9223rm -f conftest.err conftest.$ac_objext \
9224      conftest$ac_exeext conftest.$ac_ext
9225  done
9226fi
9227LIBS=$ac_func_search_save_LIBS
9228fi
9229echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
9230echo "${ECHO_T}$ac_cv_search_regfree" >&6
9231if test "$ac_cv_search_regfree" != no; then
9232  test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9233
9234fi
9235
9236
9237cat >confcache <<\_ACEOF
9238# This file is a shell script that caches the results of configure
9239# tests run on this system so they can be shared between configure
9240# scripts and configure runs, see configure's option --config-cache.
9241# It is not useful on other systems.  If it contains results you don't
9242# want to keep, you may remove or edit it.
9243#
9244# config.status only pays attention to the cache file if you give it
9245# the --recheck option to rerun configure.
9246#
9247# `ac_cv_env_foo' variables (set or unset) will be overridden when
9248# loading this file, other *unset* `ac_cv_foo' will be assigned the
9249# following values.
9250
9251_ACEOF
9252
9253# The following way of writing the cache mishandles newlines in values,
9254# but we know of no workaround that is simple, portable, and efficient.
9255# So, don't put newlines in cache variables' values.
9256# Ultrix sh set writes to stderr and can't be redirected directly,
9257# and sets the high bit in the cache file unless we assign to the vars.
9258{
9259  (set) 2>&1 |
9260    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9261    *ac_space=\ *)
9262      # `set' does not quote correctly, so add quotes (double-quote
9263      # substitution turns \\\\ into \\, and sed turns \\ into \).
9264      sed -n \
9265	"s/'/'\\\\''/g;
9266	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9267      ;;
9268    *)
9269      # `set' quotes correctly as required by POSIX, so do not add quotes.
9270      sed -n \
9271	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9272      ;;
9273    esac;
9274} |
9275  sed '
9276     t clear
9277     : clear
9278     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9279     t end
9280     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9281     : end' >>confcache
9282if diff $cache_file confcache >/dev/null 2>&1; then :; else
9283  if test -w $cache_file; then
9284    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9285    cat confcache >$cache_file
9286  else
9287    echo "not updating unwritable cache $cache_file"
9288  fi
9289fi
9290rm -f confcache
9291
9292test "x$prefix" = xNONE && prefix=$ac_default_prefix
9293# Let make expand exec_prefix.
9294test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9295
9296# VPATH may cause trouble with some makes, so we remove $(srcdir),
9297# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9298# trailing colons and then remove the whole line if VPATH becomes empty
9299# (actually we leave an empty line to preserve line numbers).
9300if test "x$srcdir" = x.; then
9301  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
9302s/:*\$(srcdir):*/:/;
9303s/:*\${srcdir}:*/:/;
9304s/:*@srcdir@:*/:/;
9305s/^\([^=]*=[	 ]*\):*/\1/;
9306s/:*$//;
9307s/^[^=]*=[	 ]*$//;
9308}'
9309fi
9310
9311DEFS=-DHAVE_CONFIG_H
9312
9313ac_libobjs=
9314ac_ltlibobjs=
9315for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9316  # 1. Remove the extension, and $U if already installed.
9317  ac_i=`echo "$ac_i" |
9318	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9319  # 2. Add them.
9320  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9321  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9322done
9323LIBOBJS=$ac_libobjs
9324
9325LTLIBOBJS=$ac_ltlibobjs
9326
9327
9328
9329: ${CONFIG_STATUS=./config.status}
9330ac_clean_files_save=$ac_clean_files
9331ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9332{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9333echo "$as_me: creating $CONFIG_STATUS" >&6;}
9334cat >$CONFIG_STATUS <<_ACEOF
9335#! $SHELL
9336# Generated by $as_me.
9337# Run this file to recreate the current configuration.
9338# Compiler output produced by configure, useful for debugging
9339# configure, is in config.log if it exists.
9340
9341debug=false
9342ac_cs_recheck=false
9343ac_cs_silent=false
9344SHELL=\${CONFIG_SHELL-$SHELL}
9345_ACEOF
9346
9347cat >>$CONFIG_STATUS <<\_ACEOF
9348## --------------------- ##
9349## M4sh Initialization.  ##
9350## --------------------- ##
9351
9352# Be Bourne compatible
9353if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9354  emulate sh
9355  NULLCMD=:
9356  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9357  # is contrary to our usage.  Disable this feature.
9358  alias -g '${1+"$@"}'='"$@"'
9359elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9360  set -o posix
9361fi
9362DUALCASE=1; export DUALCASE # for MKS sh
9363
9364# Support unset when possible.
9365if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9366  as_unset=unset
9367else
9368  as_unset=false
9369fi
9370
9371
9372# Work around bugs in pre-3.0 UWIN ksh.
9373$as_unset ENV MAIL MAILPATH
9374PS1='$ '
9375PS2='> '
9376PS4='+ '
9377
9378# NLS nuisances.
9379for as_var in \
9380  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9381  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9382  LC_TELEPHONE LC_TIME
9383do
9384  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9385    eval $as_var=C; export $as_var
9386  else
9387    $as_unset $as_var
9388  fi
9389done
9390
9391# Required to use basename.
9392if expr a : '\(a\)' >/dev/null 2>&1; then
9393  as_expr=expr
9394else
9395  as_expr=false
9396fi
9397
9398if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9399  as_basename=basename
9400else
9401  as_basename=false
9402fi
9403
9404
9405# Name of the executable.
9406as_me=`$as_basename "$0" ||
9407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9408	 X"$0" : 'X\(//\)$' \| \
9409	 X"$0" : 'X\(/\)$' \| \
9410	 .     : '\(.\)' 2>/dev/null ||
9411echo X/"$0" |
9412    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9413  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
9414  	  /^X\/\(\/\).*/{ s//\1/; q; }
9415  	  s/.*/./; q'`
9416
9417
9418# PATH needs CR, and LINENO needs CR and PATH.
9419# Avoid depending upon Character Ranges.
9420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9423as_cr_digits='0123456789'
9424as_cr_alnum=$as_cr_Letters$as_cr_digits
9425
9426# The user is always right.
9427if test "${PATH_SEPARATOR+set}" != set; then
9428  echo "#! /bin/sh" >conf$$.sh
9429  echo  "exit 0"   >>conf$$.sh
9430  chmod +x conf$$.sh
9431  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9432    PATH_SEPARATOR=';'
9433  else
9434    PATH_SEPARATOR=:
9435  fi
9436  rm -f conf$$.sh
9437fi
9438
9439
9440  as_lineno_1=$LINENO
9441  as_lineno_2=$LINENO
9442  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9443  test "x$as_lineno_1" != "x$as_lineno_2" &&
9444  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9445  # Find who we are.  Look in the path if we contain no path at all
9446  # relative or not.
9447  case $0 in
9448    *[\\/]* ) as_myself=$0 ;;
9449    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450for as_dir in $PATH
9451do
9452  IFS=$as_save_IFS
9453  test -z "$as_dir" && as_dir=.
9454  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9455done
9456
9457       ;;
9458  esac
9459  # We did not find ourselves, most probably we were run as `sh COMMAND'
9460  # in which case we are not to be found in the path.
9461  if test "x$as_myself" = x; then
9462    as_myself=$0
9463  fi
9464  if test ! -f "$as_myself"; then
9465    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9466echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9467   { (exit 1); exit 1; }; }
9468  fi
9469  case $CONFIG_SHELL in
9470  '')
9471    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9473do
9474  IFS=$as_save_IFS
9475  test -z "$as_dir" && as_dir=.
9476  for as_base in sh bash ksh sh5; do
9477	 case $as_dir in
9478	 /*)
9479	   if ("$as_dir/$as_base" -c '
9480  as_lineno_1=$LINENO
9481  as_lineno_2=$LINENO
9482  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9483  test "x$as_lineno_1" != "x$as_lineno_2" &&
9484  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9485	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9486	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9487	     CONFIG_SHELL=$as_dir/$as_base
9488	     export CONFIG_SHELL
9489	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9490	   fi;;
9491	 esac
9492       done
9493done
9494;;
9495  esac
9496
9497  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9498  # uniformly replaced by the line number.  The first 'sed' inserts a
9499  # line-number line before each line; the second 'sed' does the real
9500  # work.  The second script uses 'N' to pair each line-number line
9501  # with the numbered line, and appends trailing '-' during
9502  # substitution so that $LINENO is not a special case at line end.
9503  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9504  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9505  sed '=' <$as_myself |
9506    sed '
9507      N
9508      s,$,-,
9509      : loop
9510      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9511      t loop
9512      s,-$,,
9513      s,^['$as_cr_digits']*\n,,
9514    ' >$as_me.lineno &&
9515  chmod +x $as_me.lineno ||
9516    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9517echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9518   { (exit 1); exit 1; }; }
9519
9520  # Don't try to exec as it changes $[0], causing all sort of problems
9521  # (the dirname of $[0] is not the place where we might find the
9522  # original and so on.  Autoconf is especially sensible to this).
9523  . ./$as_me.lineno
9524  # Exit status is that of the last command.
9525  exit
9526}
9527
9528
9529case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9530  *c*,-n*) ECHO_N= ECHO_C='
9531' ECHO_T='	' ;;
9532  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9533  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9534esac
9535
9536if expr a : '\(a\)' >/dev/null 2>&1; then
9537  as_expr=expr
9538else
9539  as_expr=false
9540fi
9541
9542rm -f conf$$ conf$$.exe conf$$.file
9543echo >conf$$.file
9544if ln -s conf$$.file conf$$ 2>/dev/null; then
9545  # We could just check for DJGPP; but this test a) works b) is more generic
9546  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9547  if test -f conf$$.exe; then
9548    # Don't use ln at all; we don't have any links
9549    as_ln_s='cp -p'
9550  else
9551    as_ln_s='ln -s'
9552  fi
9553elif ln conf$$.file conf$$ 2>/dev/null; then
9554  as_ln_s=ln
9555else
9556  as_ln_s='cp -p'
9557fi
9558rm -f conf$$ conf$$.exe conf$$.file
9559
9560if mkdir -p . 2>/dev/null; then
9561  as_mkdir_p=:
9562else
9563  test -d ./-p && rmdir ./-p
9564  as_mkdir_p=false
9565fi
9566
9567as_executable_p="test -f"
9568
9569# Sed expression to map a string onto a valid CPP name.
9570as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9571
9572# Sed expression to map a string onto a valid variable name.
9573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9574
9575
9576# IFS
9577# We need space, tab and new line, in precisely that order.
9578as_nl='
9579'
9580IFS=" 	$as_nl"
9581
9582# CDPATH.
9583$as_unset CDPATH
9584
9585exec 6>&1
9586
9587# Open the log real soon, to keep \$[0] and so on meaningful, and to
9588# report actual input values of CONFIG_FILES etc. instead of their
9589# values after options handling.  Logging --version etc. is OK.
9590exec 5>>config.log
9591{
9592  echo
9593  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9594## Running $as_me. ##
9595_ASBOX
9596} >&5
9597cat >&5 <<_CSEOF
9598
9599This file was extended by libnbcompat $as_me noversion, which was
9600generated by GNU Autoconf 2.59.  Invocation command line was
9601
9602  CONFIG_FILES    = $CONFIG_FILES
9603  CONFIG_HEADERS  = $CONFIG_HEADERS
9604  CONFIG_LINKS    = $CONFIG_LINKS
9605  CONFIG_COMMANDS = $CONFIG_COMMANDS
9606  $ $0 $@
9607
9608_CSEOF
9609echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9610echo >&5
9611_ACEOF
9612
9613# Files that config.status was made for.
9614if test -n "$ac_config_files"; then
9615  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9616fi
9617
9618if test -n "$ac_config_headers"; then
9619  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9620fi
9621
9622if test -n "$ac_config_links"; then
9623  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9624fi
9625
9626if test -n "$ac_config_commands"; then
9627  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9628fi
9629
9630cat >>$CONFIG_STATUS <<\_ACEOF
9631
9632ac_cs_usage="\
9633\`$as_me' instantiates files from templates according to the
9634current configuration.
9635
9636Usage: $0 [OPTIONS] [FILE]...
9637
9638  -h, --help       print this help, then exit
9639  -V, --version    print version number, then exit
9640  -q, --quiet      do not print progress messages
9641  -d, --debug      don't remove temporary files
9642      --recheck    update $as_me by reconfiguring in the same conditions
9643  --file=FILE[:TEMPLATE]
9644		   instantiate the configuration file FILE
9645  --header=FILE[:TEMPLATE]
9646		   instantiate the configuration header FILE
9647
9648Configuration files:
9649$config_files
9650
9651Configuration headers:
9652$config_headers
9653
9654Report bugs to <bug-autoconf@gnu.org>."
9655_ACEOF
9656
9657cat >>$CONFIG_STATUS <<_ACEOF
9658ac_cs_version="\\
9659libnbcompat config.status noversion
9660configured by $0, generated by GNU Autoconf 2.59,
9661  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9662
9663Copyright (C) 2003 Free Software Foundation, Inc.
9664This config.status script is free software; the Free Software Foundation
9665gives unlimited permission to copy, distribute and modify it."
9666srcdir=$srcdir
9667_ACEOF
9668
9669cat >>$CONFIG_STATUS <<\_ACEOF
9670# If no file are specified by the user, then we need to provide default
9671# value.  By we need to know if files were specified by the user.
9672ac_need_defaults=:
9673while test $# != 0
9674do
9675  case $1 in
9676  --*=*)
9677    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9678    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9679    ac_shift=:
9680    ;;
9681  -*)
9682    ac_option=$1
9683    ac_optarg=$2
9684    ac_shift=shift
9685    ;;
9686  *) # This is not an option, so the user has probably given explicit
9687     # arguments.
9688     ac_option=$1
9689     ac_need_defaults=false;;
9690  esac
9691
9692  case $ac_option in
9693  # Handling of the options.
9694_ACEOF
9695cat >>$CONFIG_STATUS <<\_ACEOF
9696  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9697    ac_cs_recheck=: ;;
9698  --version | --vers* | -V )
9699    echo "$ac_cs_version"; exit 0 ;;
9700  --he | --h)
9701    # Conflict between --help and --header
9702    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9703Try \`$0 --help' for more information." >&5
9704echo "$as_me: error: ambiguous option: $1
9705Try \`$0 --help' for more information." >&2;}
9706   { (exit 1); exit 1; }; };;
9707  --help | --hel | -h )
9708    echo "$ac_cs_usage"; exit 0 ;;
9709  --debug | --d* | -d )
9710    debug=: ;;
9711  --file | --fil | --fi | --f )
9712    $ac_shift
9713    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9714    ac_need_defaults=false;;
9715  --header | --heade | --head | --hea )
9716    $ac_shift
9717    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9718    ac_need_defaults=false;;
9719  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9720  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9721    ac_cs_silent=: ;;
9722
9723  # This is an error.
9724  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9725Try \`$0 --help' for more information." >&5
9726echo "$as_me: error: unrecognized option: $1
9727Try \`$0 --help' for more information." >&2;}
9728   { (exit 1); exit 1; }; } ;;
9729
9730  *) ac_config_targets="$ac_config_targets $1" ;;
9731
9732  esac
9733  shift
9734done
9735
9736ac_configure_extra_args=
9737
9738if $ac_cs_silent; then
9739  exec 6>/dev/null
9740  ac_configure_extra_args="$ac_configure_extra_args --silent"
9741fi
9742
9743_ACEOF
9744cat >>$CONFIG_STATUS <<_ACEOF
9745if \$ac_cs_recheck; then
9746  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9747  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9748fi
9749
9750_ACEOF
9751
9752
9753
9754
9755
9756cat >>$CONFIG_STATUS <<\_ACEOF
9757for ac_config_target in $ac_config_targets
9758do
9759  case "$ac_config_target" in
9760  # Handling of arguments.
9761  "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
9762  "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
9763  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9764echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9765   { (exit 1); exit 1; }; };;
9766  esac
9767done
9768
9769# If the user did not use the arguments to specify the items to instantiate,
9770# then the envvar interface is used.  Set only those that are not.
9771# We use the long form for the default assignment because of an extremely
9772# bizarre bug on SunOS 4.1.3.
9773if $ac_need_defaults; then
9774  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9775  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9776fi
9777
9778# Have a temporary directory for convenience.  Make it in the build tree
9779# simply because there is no reason to put it here, and in addition,
9780# creating and moving files from /tmp can sometimes cause problems.
9781# Create a temporary directory, and hook for its removal unless debugging.
9782$debug ||
9783{
9784  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9785  trap '{ (exit 1); exit 1; }' 1 2 13 15
9786}
9787
9788# Create a (secure) tmp directory for tmp files.
9789
9790{
9791  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9792  test -n "$tmp" && test -d "$tmp"
9793}  ||
9794{
9795  tmp=./confstat$$-$RANDOM
9796  (umask 077 && mkdir $tmp)
9797} ||
9798{
9799   echo "$me: cannot create a temporary directory in ." >&2
9800   { (exit 1); exit 1; }
9801}
9802
9803_ACEOF
9804
9805cat >>$CONFIG_STATUS <<_ACEOF
9806
9807#
9808# CONFIG_FILES section.
9809#
9810
9811# No need to generate the scripts if there are no CONFIG_FILES.
9812# This happens for instance when ./config.status config.h
9813if test -n "\$CONFIG_FILES"; then
9814  # Protect against being on the right side of a sed subst in config.status.
9815  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9816   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9817s,@SHELL@,$SHELL,;t t
9818s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9819s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9820s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9821s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9822s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9823s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9824s,@exec_prefix@,$exec_prefix,;t t
9825s,@prefix@,$prefix,;t t
9826s,@program_transform_name@,$program_transform_name,;t t
9827s,@bindir@,$bindir,;t t
9828s,@sbindir@,$sbindir,;t t
9829s,@libexecdir@,$libexecdir,;t t
9830s,@datadir@,$datadir,;t t
9831s,@sysconfdir@,$sysconfdir,;t t
9832s,@sharedstatedir@,$sharedstatedir,;t t
9833s,@localstatedir@,$localstatedir,;t t
9834s,@libdir@,$libdir,;t t
9835s,@includedir@,$includedir,;t t
9836s,@oldincludedir@,$oldincludedir,;t t
9837s,@infodir@,$infodir,;t t
9838s,@mandir@,$mandir,;t t
9839s,@build_alias@,$build_alias,;t t
9840s,@host_alias@,$host_alias,;t t
9841s,@target_alias@,$target_alias,;t t
9842s,@DEFS@,$DEFS,;t t
9843s,@ECHO_C@,$ECHO_C,;t t
9844s,@ECHO_N@,$ECHO_N,;t t
9845s,@ECHO_T@,$ECHO_T,;t t
9846s,@LIBS@,$LIBS,;t t
9847s,@CC@,$CC,;t t
9848s,@CFLAGS@,$CFLAGS,;t t
9849s,@LDFLAGS@,$LDFLAGS,;t t
9850s,@CPPFLAGS@,$CPPFLAGS,;t t
9851s,@ac_ct_CC@,$ac_ct_CC,;t t
9852s,@EXEEXT@,$EXEEXT,;t t
9853s,@OBJEXT@,$OBJEXT,;t t
9854s,@CPP@,$CPP,;t t
9855s,@EGREP@,$EGREP,;t t
9856s,@BSHELL@,$BSHELL,;t t
9857s,@ALLOCA@,$ALLOCA,;t t
9858s,@LIBOBJS@,$LIBOBJS,;t t
9859s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9860CEOF
9861
9862_ACEOF
9863
9864  cat >>$CONFIG_STATUS <<\_ACEOF
9865  # Split the substitutions into bite-sized pieces for seds with
9866  # small command number limits, like on Digital OSF/1 and HP-UX.
9867  ac_max_sed_lines=48
9868  ac_sed_frag=1 # Number of current file.
9869  ac_beg=1 # First line for current file.
9870  ac_end=$ac_max_sed_lines # Line after last line for current file.
9871  ac_more_lines=:
9872  ac_sed_cmds=
9873  while $ac_more_lines; do
9874    if test $ac_beg -gt 1; then
9875      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9876    else
9877      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9878    fi
9879    if test ! -s $tmp/subs.frag; then
9880      ac_more_lines=false
9881    else
9882      # The purpose of the label and of the branching condition is to
9883      # speed up the sed processing (if there are no `@' at all, there
9884      # is no need to browse any of the substitutions).
9885      # These are the two extra sed commands mentioned above.
9886      (echo ':t
9887  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9888      if test -z "$ac_sed_cmds"; then
9889	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9890      else
9891	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9892      fi
9893      ac_sed_frag=`expr $ac_sed_frag + 1`
9894      ac_beg=$ac_end
9895      ac_end=`expr $ac_end + $ac_max_sed_lines`
9896    fi
9897  done
9898  if test -z "$ac_sed_cmds"; then
9899    ac_sed_cmds=cat
9900  fi
9901fi # test -n "$CONFIG_FILES"
9902
9903_ACEOF
9904cat >>$CONFIG_STATUS <<\_ACEOF
9905for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9906  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9907  case $ac_file in
9908  - | *:- | *:-:* ) # input from stdin
9909	cat >$tmp/stdin
9910	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9911	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9912  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9913	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9914  * )   ac_file_in=$ac_file.in ;;
9915  esac
9916
9917  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9918  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9919$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9920	 X"$ac_file" : 'X\(//\)[^/]' \| \
9921	 X"$ac_file" : 'X\(//\)$' \| \
9922	 X"$ac_file" : 'X\(/\)' \| \
9923	 .     : '\(.\)' 2>/dev/null ||
9924echo X"$ac_file" |
9925    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9926  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9927  	  /^X\(\/\/\)$/{ s//\1/; q; }
9928  	  /^X\(\/\).*/{ s//\1/; q; }
9929  	  s/.*/./; q'`
9930  { if $as_mkdir_p; then
9931    mkdir -p "$ac_dir"
9932  else
9933    as_dir="$ac_dir"
9934    as_dirs=
9935    while test ! -d "$as_dir"; do
9936      as_dirs="$as_dir $as_dirs"
9937      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9938$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9939	 X"$as_dir" : 'X\(//\)[^/]' \| \
9940	 X"$as_dir" : 'X\(//\)$' \| \
9941	 X"$as_dir" : 'X\(/\)' \| \
9942	 .     : '\(.\)' 2>/dev/null ||
9943echo X"$as_dir" |
9944    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9945  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9946  	  /^X\(\/\/\)$/{ s//\1/; q; }
9947  	  /^X\(\/\).*/{ s//\1/; q; }
9948  	  s/.*/./; q'`
9949    done
9950    test ! -n "$as_dirs" || mkdir $as_dirs
9951  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9952echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9953   { (exit 1); exit 1; }; }; }
9954
9955  ac_builddir=.
9956
9957if test "$ac_dir" != .; then
9958  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9959  # A "../" for each directory in $ac_dir_suffix.
9960  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9961else
9962  ac_dir_suffix= ac_top_builddir=
9963fi
9964
9965case $srcdir in
9966  .)  # No --srcdir option.  We are building in place.
9967    ac_srcdir=.
9968    if test -z "$ac_top_builddir"; then
9969       ac_top_srcdir=.
9970    else
9971       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9972    fi ;;
9973  [\\/]* | ?:[\\/]* )  # Absolute path.
9974    ac_srcdir=$srcdir$ac_dir_suffix;
9975    ac_top_srcdir=$srcdir ;;
9976  *) # Relative path.
9977    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9978    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9979esac
9980
9981# Do not use `cd foo && pwd` to compute absolute paths, because
9982# the directories may not exist.
9983case `pwd` in
9984.) ac_abs_builddir="$ac_dir";;
9985*)
9986  case "$ac_dir" in
9987  .) ac_abs_builddir=`pwd`;;
9988  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9989  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9990  esac;;
9991esac
9992case $ac_abs_builddir in
9993.) ac_abs_top_builddir=${ac_top_builddir}.;;
9994*)
9995  case ${ac_top_builddir}. in
9996  .) ac_abs_top_builddir=$ac_abs_builddir;;
9997  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9998  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9999  esac;;
10000esac
10001case $ac_abs_builddir in
10002.) ac_abs_srcdir=$ac_srcdir;;
10003*)
10004  case $ac_srcdir in
10005  .) ac_abs_srcdir=$ac_abs_builddir;;
10006  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10007  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10008  esac;;
10009esac
10010case $ac_abs_builddir in
10011.) ac_abs_top_srcdir=$ac_top_srcdir;;
10012*)
10013  case $ac_top_srcdir in
10014  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10015  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10016  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10017  esac;;
10018esac
10019
10020
10021
10022  if test x"$ac_file" != x-; then
10023    { echo "$as_me:$LINENO: creating $ac_file" >&5
10024echo "$as_me: creating $ac_file" >&6;}
10025    rm -f "$ac_file"
10026  fi
10027  # Let's still pretend it is `configure' which instantiates (i.e., don't
10028  # use $as_me), people would be surprised to read:
10029  #    /* config.h.  Generated by config.status.  */
10030  if test x"$ac_file" = x-; then
10031    configure_input=
10032  else
10033    configure_input="$ac_file.  "
10034  fi
10035  configure_input=$configure_input"Generated from `echo $ac_file_in |
10036				     sed 's,.*/,,'` by configure."
10037
10038  # First look for the input files in the build tree, otherwise in the
10039  # src tree.
10040  ac_file_inputs=`IFS=:
10041    for f in $ac_file_in; do
10042      case $f in
10043      -) echo $tmp/stdin ;;
10044      [\\/$]*)
10045	 # Absolute (can't be DOS-style, as IFS=:)
10046	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10047echo "$as_me: error: cannot find input file: $f" >&2;}
10048   { (exit 1); exit 1; }; }
10049	 echo "$f";;
10050      *) # Relative
10051	 if test -f "$f"; then
10052	   # Build tree
10053	   echo "$f"
10054	 elif test -f "$srcdir/$f"; then
10055	   # Source tree
10056	   echo "$srcdir/$f"
10057	 else
10058	   # /dev/null tree
10059	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10060echo "$as_me: error: cannot find input file: $f" >&2;}
10061   { (exit 1); exit 1; }; }
10062	 fi;;
10063      esac
10064    done` || { (exit 1); exit 1; }
10065_ACEOF
10066cat >>$CONFIG_STATUS <<_ACEOF
10067  sed "$ac_vpsub
10068$extrasub
10069_ACEOF
10070cat >>$CONFIG_STATUS <<\_ACEOF
10071:t
10072/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10073s,@configure_input@,$configure_input,;t t
10074s,@srcdir@,$ac_srcdir,;t t
10075s,@abs_srcdir@,$ac_abs_srcdir,;t t
10076s,@top_srcdir@,$ac_top_srcdir,;t t
10077s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10078s,@builddir@,$ac_builddir,;t t
10079s,@abs_builddir@,$ac_abs_builddir,;t t
10080s,@top_builddir@,$ac_top_builddir,;t t
10081s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10082" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10083  rm -f $tmp/stdin
10084  if test x"$ac_file" != x-; then
10085    mv $tmp/out $ac_file
10086  else
10087    cat $tmp/out
10088    rm -f $tmp/out
10089  fi
10090
10091done
10092_ACEOF
10093cat >>$CONFIG_STATUS <<\_ACEOF
10094
10095#
10096# CONFIG_HEADER section.
10097#
10098
10099# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10100# NAME is the cpp macro being defined and VALUE is the value it is being given.
10101#
10102# ac_d sets the value in "#define NAME VALUE" lines.
10103ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
10104ac_dB='[	 ].*$,\1#\2'
10105ac_dC=' '
10106ac_dD=',;t'
10107# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10108ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
10109ac_uB='$,\1#\2define\3'
10110ac_uC=' '
10111ac_uD=',;t'
10112
10113for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10114  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10115  case $ac_file in
10116  - | *:- | *:-:* ) # input from stdin
10117	cat >$tmp/stdin
10118	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10119	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10120  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10121	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10122  * )   ac_file_in=$ac_file.in ;;
10123  esac
10124
10125  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10126echo "$as_me: creating $ac_file" >&6;}
10127
10128  # First look for the input files in the build tree, otherwise in the
10129  # src tree.
10130  ac_file_inputs=`IFS=:
10131    for f in $ac_file_in; do
10132      case $f in
10133      -) echo $tmp/stdin ;;
10134      [\\/$]*)
10135	 # Absolute (can't be DOS-style, as IFS=:)
10136	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10137echo "$as_me: error: cannot find input file: $f" >&2;}
10138   { (exit 1); exit 1; }; }
10139	 # Do quote $f, to prevent DOS paths from being IFS'd.
10140	 echo "$f";;
10141      *) # Relative
10142	 if test -f "$f"; then
10143	   # Build tree
10144	   echo "$f"
10145	 elif test -f "$srcdir/$f"; then
10146	   # Source tree
10147	   echo "$srcdir/$f"
10148	 else
10149	   # /dev/null tree
10150	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10151echo "$as_me: error: cannot find input file: $f" >&2;}
10152   { (exit 1); exit 1; }; }
10153	 fi;;
10154      esac
10155    done` || { (exit 1); exit 1; }
10156  # Remove the trailing spaces.
10157  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
10158
10159_ACEOF
10160
10161# Transform confdefs.h into two sed scripts, `conftest.defines' and
10162# `conftest.undefs', that substitutes the proper values into
10163# config.h.in to produce config.h.  The first handles `#define'
10164# templates, and the second `#undef' templates.
10165# And first: Protect against being on the right side of a sed subst in
10166# config.status.  Protect against being in an unquoted here document
10167# in config.status.
10168rm -f conftest.defines conftest.undefs
10169# Using a here document instead of a string reduces the quoting nightmare.
10170# Putting comments in sed scripts is not portable.
10171#
10172# `end' is used to avoid that the second main sed command (meant for
10173# 0-ary CPP macros) applies to n-ary macro definitions.
10174# See the Autoconf documentation for `clear'.
10175cat >confdef2sed.sed <<\_ACEOF
10176s/[\\&,]/\\&/g
10177s,[\\$`],\\&,g
10178t clear
10179: clear
10180s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10181t end
10182s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10183: end
10184_ACEOF
10185# If some macros were called several times there might be several times
10186# the same #defines, which is useless.  Nevertheless, we may not want to
10187# sort them, since we want the *last* AC-DEFINE to be honored.
10188uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10189sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10190rm -f confdef2sed.sed
10191
10192# This sed command replaces #undef with comments.  This is necessary, for
10193# example, in the case of _POSIX_SOURCE, which is predefined and required
10194# on some systems where configure will not decide to define it.
10195cat >>conftest.undefs <<\_ACEOF
10196s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10197_ACEOF
10198
10199# Break up conftest.defines because some shells have a limit on the size
10200# of here documents, and old seds have small limits too (100 cmds).
10201echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10202echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10203echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10204echo '  :' >>$CONFIG_STATUS
10205rm -f conftest.tail
10206while grep . conftest.defines >/dev/null
10207do
10208  # Write a limited-size here document to $tmp/defines.sed.
10209  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10210  # Speed up: don't consider the non `#define' lines.
10211  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
10212  # Work around the forget-to-reset-the-flag bug.
10213  echo 't clr' >>$CONFIG_STATUS
10214  echo ': clr' >>$CONFIG_STATUS
10215  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10216  echo 'CEOF
10217  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10218  rm -f $tmp/in
10219  mv $tmp/out $tmp/in
10220' >>$CONFIG_STATUS
10221  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10222  rm -f conftest.defines
10223  mv conftest.tail conftest.defines
10224done
10225rm -f conftest.defines
10226echo '  fi # grep' >>$CONFIG_STATUS
10227echo >>$CONFIG_STATUS
10228
10229# Break up conftest.undefs because some shells have a limit on the size
10230# of here documents, and old seds have small limits too (100 cmds).
10231echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10232rm -f conftest.tail
10233while grep . conftest.undefs >/dev/null
10234do
10235  # Write a limited-size here document to $tmp/undefs.sed.
10236  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10237  # Speed up: don't consider the non `#undef'
10238  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
10239  # Work around the forget-to-reset-the-flag bug.
10240  echo 't clr' >>$CONFIG_STATUS
10241  echo ': clr' >>$CONFIG_STATUS
10242  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10243  echo 'CEOF
10244  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10245  rm -f $tmp/in
10246  mv $tmp/out $tmp/in
10247' >>$CONFIG_STATUS
10248  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10249  rm -f conftest.undefs
10250  mv conftest.tail conftest.undefs
10251done
10252rm -f conftest.undefs
10253
10254cat >>$CONFIG_STATUS <<\_ACEOF
10255  # Let's still pretend it is `configure' which instantiates (i.e., don't
10256  # use $as_me), people would be surprised to read:
10257  #    /* config.h.  Generated by config.status.  */
10258  if test x"$ac_file" = x-; then
10259    echo "/* Generated by configure.  */" >$tmp/config.h
10260  else
10261    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10262  fi
10263  cat $tmp/in >>$tmp/config.h
10264  rm -f $tmp/in
10265  if test x"$ac_file" != x-; then
10266    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10267      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10268echo "$as_me: $ac_file is unchanged" >&6;}
10269    else
10270      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10271$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10272	 X"$ac_file" : 'X\(//\)[^/]' \| \
10273	 X"$ac_file" : 'X\(//\)$' \| \
10274	 X"$ac_file" : 'X\(/\)' \| \
10275	 .     : '\(.\)' 2>/dev/null ||
10276echo X"$ac_file" |
10277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10278  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10279  	  /^X\(\/\/\)$/{ s//\1/; q; }
10280  	  /^X\(\/\).*/{ s//\1/; q; }
10281  	  s/.*/./; q'`
10282      { if $as_mkdir_p; then
10283    mkdir -p "$ac_dir"
10284  else
10285    as_dir="$ac_dir"
10286    as_dirs=
10287    while test ! -d "$as_dir"; do
10288      as_dirs="$as_dir $as_dirs"
10289      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10290$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10291	 X"$as_dir" : 'X\(//\)[^/]' \| \
10292	 X"$as_dir" : 'X\(//\)$' \| \
10293	 X"$as_dir" : 'X\(/\)' \| \
10294	 .     : '\(.\)' 2>/dev/null ||
10295echo X"$as_dir" |
10296    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10297  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10298  	  /^X\(\/\/\)$/{ s//\1/; q; }
10299  	  /^X\(\/\).*/{ s//\1/; q; }
10300  	  s/.*/./; q'`
10301    done
10302    test ! -n "$as_dirs" || mkdir $as_dirs
10303  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10304echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10305   { (exit 1); exit 1; }; }; }
10306
10307      rm -f $ac_file
10308      mv $tmp/config.h $ac_file
10309    fi
10310  else
10311    cat $tmp/config.h
10312    rm -f $tmp/config.h
10313  fi
10314done
10315_ACEOF
10316
10317cat >>$CONFIG_STATUS <<\_ACEOF
10318
10319{ (exit 0); exit 0; }
10320_ACEOF
10321chmod +x $CONFIG_STATUS
10322ac_clean_files=$ac_clean_files_save
10323
10324
10325# configure is writing to config.log, and then calls config.status.
10326# config.status does its own redirection, appending to config.log.
10327# Unfortunately, on DOS this fails, as config.log is still kept open
10328# by configure, so config.status won't be able to write to it; its
10329# output is simply discarded.  So we exec the FD to /dev/null,
10330# effectively closing config.log, so it can be properly (re)opened and
10331# appended to by config.status.  When coming back to configure, we
10332# need to make the FD available again.
10333if test "$no_create" != yes; then
10334  ac_cs_success=:
10335  ac_config_status_args=
10336  test "$silent" = yes &&
10337    ac_config_status_args="$ac_config_status_args --quiet"
10338  exec 5>/dev/null
10339  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10340  exec 5>>config.log
10341  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10342  # would make configure fail if this is the last instruction.
10343  $ac_cs_success || { (exit 1); exit 1; }
10344fi
10345
10346