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