xref: /netbsd-src/tools/compat/configure (revision 5e4c038a45edbc7d63b7c2daa76e29f88b64a4e3)
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 config.h"
964
965ac_config_files="$ac_config_files defs.mk"
966
967# Extract the first word of "sh", so it can be a program name with args.
968set dummy sh; ac_word=$2
969echo "$as_me:969: checking for $ac_word" >&5
970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
971if test "${ac_cv_path_BSHELL+set}" = set; then
972  echo $ECHO_N "(cached) $ECHO_C" >&6
973else
974  case $BSHELL in
975  [\\/]* | ?:[\\/]*)
976  ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
977  ;;
978  *)
979  ac_save_IFS=$IFS; IFS=$ac_path_separator
980ac_dummy="$PATH"
981for ac_dir in $ac_dummy; do
982  IFS=$ac_save_IFS
983  test -z "$ac_dir" && ac_dir=.
984  if $as_executable_p "$ac_dir/$ac_word"; then
985   ac_cv_path_BSHELL="$ac_dir/$ac_word"
986   echo "$as_me:986: found $ac_dir/$ac_word" >&5
987   break
988fi
989done
990
991  ;;
992esac
993fi
994BSHELL=$ac_cv_path_BSHELL
995
996if test -n "$BSHELL"; then
997  echo "$as_me:997: result: $BSHELL" >&5
998echo "${ECHO_T}$BSHELL" >&6
999else
1000  echo "$as_me:1000: result: no" >&5
1001echo "${ECHO_T}no" >&6
1002fi
1003
1004if test x"$BSHELL" = x; then
1005	{ { echo "$as_me:1005: error: sh must be somewhere on \$PATH" >&5
1006echo "$as_me: error: sh must be somewhere on \$PATH" >&2;}
1007   { (exit 1); exit 1; }; }
1008fi
1009cat >>confdefs.h <<EOF
1010#define PATH_BSHELL "$BSHELL"
1011EOF
1012
1013ac_ext=c
1014ac_cpp='$CPP $CPPFLAGS'
1015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1017ac_compiler_gnu=$ac_cv_c_compiler_gnu
1018if test -n "$ac_tool_prefix"; then
1019  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1020set dummy ${ac_tool_prefix}gcc; ac_word=$2
1021echo "$as_me:1021: checking for $ac_word" >&5
1022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1023if test "${ac_cv_prog_CC+set}" = set; then
1024  echo $ECHO_N "(cached) $ECHO_C" >&6
1025else
1026  if test -n "$CC"; then
1027  ac_cv_prog_CC="$CC" # Let the user override the test.
1028else
1029  ac_save_IFS=$IFS; IFS=$ac_path_separator
1030ac_dummy="$PATH"
1031for ac_dir in $ac_dummy; do
1032  IFS=$ac_save_IFS
1033  test -z "$ac_dir" && ac_dir=.
1034  $as_executable_p "$ac_dir/$ac_word" || continue
1035ac_cv_prog_CC="${ac_tool_prefix}gcc"
1036echo "$as_me:1036: found $ac_dir/$ac_word" >&5
1037break
1038done
1039
1040fi
1041fi
1042CC=$ac_cv_prog_CC
1043if test -n "$CC"; then
1044  echo "$as_me:1044: result: $CC" >&5
1045echo "${ECHO_T}$CC" >&6
1046else
1047  echo "$as_me:1047: result: no" >&5
1048echo "${ECHO_T}no" >&6
1049fi
1050
1051fi
1052if test -z "$ac_cv_prog_CC"; then
1053  ac_ct_CC=$CC
1054  # Extract the first word of "gcc", so it can be a program name with args.
1055set dummy gcc; ac_word=$2
1056echo "$as_me:1056: checking for $ac_word" >&5
1057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1058if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1059  echo $ECHO_N "(cached) $ECHO_C" >&6
1060else
1061  if test -n "$ac_ct_CC"; then
1062  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1063else
1064  ac_save_IFS=$IFS; IFS=$ac_path_separator
1065ac_dummy="$PATH"
1066for ac_dir in $ac_dummy; do
1067  IFS=$ac_save_IFS
1068  test -z "$ac_dir" && ac_dir=.
1069  $as_executable_p "$ac_dir/$ac_word" || continue
1070ac_cv_prog_ac_ct_CC="gcc"
1071echo "$as_me:1071: found $ac_dir/$ac_word" >&5
1072break
1073done
1074
1075fi
1076fi
1077ac_ct_CC=$ac_cv_prog_ac_ct_CC
1078if test -n "$ac_ct_CC"; then
1079  echo "$as_me:1079: result: $ac_ct_CC" >&5
1080echo "${ECHO_T}$ac_ct_CC" >&6
1081else
1082  echo "$as_me:1082: result: no" >&5
1083echo "${ECHO_T}no" >&6
1084fi
1085
1086  CC=$ac_ct_CC
1087else
1088  CC="$ac_cv_prog_CC"
1089fi
1090
1091if test -z "$CC"; then
1092  if test -n "$ac_tool_prefix"; then
1093  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1094set dummy ${ac_tool_prefix}cc; ac_word=$2
1095echo "$as_me:1095: checking for $ac_word" >&5
1096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1097if test "${ac_cv_prog_CC+set}" = set; then
1098  echo $ECHO_N "(cached) $ECHO_C" >&6
1099else
1100  if test -n "$CC"; then
1101  ac_cv_prog_CC="$CC" # Let the user override the test.
1102else
1103  ac_save_IFS=$IFS; IFS=$ac_path_separator
1104ac_dummy="$PATH"
1105for ac_dir in $ac_dummy; do
1106  IFS=$ac_save_IFS
1107  test -z "$ac_dir" && ac_dir=.
1108  $as_executable_p "$ac_dir/$ac_word" || continue
1109ac_cv_prog_CC="${ac_tool_prefix}cc"
1110echo "$as_me:1110: found $ac_dir/$ac_word" >&5
1111break
1112done
1113
1114fi
1115fi
1116CC=$ac_cv_prog_CC
1117if test -n "$CC"; then
1118  echo "$as_me:1118: result: $CC" >&5
1119echo "${ECHO_T}$CC" >&6
1120else
1121  echo "$as_me:1121: result: no" >&5
1122echo "${ECHO_T}no" >&6
1123fi
1124
1125fi
1126if test -z "$ac_cv_prog_CC"; then
1127  ac_ct_CC=$CC
1128  # Extract the first word of "cc", so it can be a program name with args.
1129set dummy cc; ac_word=$2
1130echo "$as_me:1130: checking for $ac_word" >&5
1131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1132if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1133  echo $ECHO_N "(cached) $ECHO_C" >&6
1134else
1135  if test -n "$ac_ct_CC"; then
1136  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1137else
1138  ac_save_IFS=$IFS; IFS=$ac_path_separator
1139ac_dummy="$PATH"
1140for ac_dir in $ac_dummy; do
1141  IFS=$ac_save_IFS
1142  test -z "$ac_dir" && ac_dir=.
1143  $as_executable_p "$ac_dir/$ac_word" || continue
1144ac_cv_prog_ac_ct_CC="cc"
1145echo "$as_me:1145: found $ac_dir/$ac_word" >&5
1146break
1147done
1148
1149fi
1150fi
1151ac_ct_CC=$ac_cv_prog_ac_ct_CC
1152if test -n "$ac_ct_CC"; then
1153  echo "$as_me:1153: result: $ac_ct_CC" >&5
1154echo "${ECHO_T}$ac_ct_CC" >&6
1155else
1156  echo "$as_me:1156: result: no" >&5
1157echo "${ECHO_T}no" >&6
1158fi
1159
1160  CC=$ac_ct_CC
1161else
1162  CC="$ac_cv_prog_CC"
1163fi
1164
1165fi
1166if test -z "$CC"; then
1167  # Extract the first word of "cc", so it can be a program name with args.
1168set dummy cc; ac_word=$2
1169echo "$as_me:1169: checking for $ac_word" >&5
1170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1171if test "${ac_cv_prog_CC+set}" = set; then
1172  echo $ECHO_N "(cached) $ECHO_C" >&6
1173else
1174  if test -n "$CC"; then
1175  ac_cv_prog_CC="$CC" # Let the user override the test.
1176else
1177  ac_prog_rejected=no
1178  ac_save_IFS=$IFS; IFS=$ac_path_separator
1179ac_dummy="$PATH"
1180for ac_dir in $ac_dummy; do
1181  IFS=$ac_save_IFS
1182  test -z "$ac_dir" && ac_dir=.
1183  $as_executable_p "$ac_dir/$ac_word" || continue
1184if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1185  ac_prog_rejected=yes
1186  continue
1187fi
1188ac_cv_prog_CC="cc"
1189echo "$as_me:1189: found $ac_dir/$ac_word" >&5
1190break
1191done
1192
1193if test $ac_prog_rejected = yes; then
1194  # We found a bogon in the path, so make sure we never use it.
1195  set dummy $ac_cv_prog_CC
1196  shift
1197  if test $# != 0; then
1198    # We chose a different compiler from the bogus one.
1199    # However, it has the same basename, so the bogon will be chosen
1200    # first if we set CC to just the basename; use the full file name.
1201    shift
1202    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1203    shift
1204    ac_cv_prog_CC="$@"
1205  fi
1206fi
1207fi
1208fi
1209CC=$ac_cv_prog_CC
1210if test -n "$CC"; then
1211  echo "$as_me:1211: result: $CC" >&5
1212echo "${ECHO_T}$CC" >&6
1213else
1214  echo "$as_me:1214: result: no" >&5
1215echo "${ECHO_T}no" >&6
1216fi
1217
1218fi
1219if test -z "$CC"; then
1220  if test -n "$ac_tool_prefix"; then
1221  for ac_prog in cl
1222  do
1223    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1225echo "$as_me:1225: checking for $ac_word" >&5
1226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1227if test "${ac_cv_prog_CC+set}" = set; then
1228  echo $ECHO_N "(cached) $ECHO_C" >&6
1229else
1230  if test -n "$CC"; then
1231  ac_cv_prog_CC="$CC" # Let the user override the test.
1232else
1233  ac_save_IFS=$IFS; IFS=$ac_path_separator
1234ac_dummy="$PATH"
1235for ac_dir in $ac_dummy; do
1236  IFS=$ac_save_IFS
1237  test -z "$ac_dir" && ac_dir=.
1238  $as_executable_p "$ac_dir/$ac_word" || continue
1239ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1240echo "$as_me:1240: found $ac_dir/$ac_word" >&5
1241break
1242done
1243
1244fi
1245fi
1246CC=$ac_cv_prog_CC
1247if test -n "$CC"; then
1248  echo "$as_me:1248: result: $CC" >&5
1249echo "${ECHO_T}$CC" >&6
1250else
1251  echo "$as_me:1251: result: no" >&5
1252echo "${ECHO_T}no" >&6
1253fi
1254
1255    test -n "$CC" && break
1256  done
1257fi
1258if test -z "$CC"; then
1259  ac_ct_CC=$CC
1260  for ac_prog in cl
1261do
1262  # Extract the first word of "$ac_prog", so it can be a program name with args.
1263set dummy $ac_prog; ac_word=$2
1264echo "$as_me:1264: checking for $ac_word" >&5
1265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1266if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1267  echo $ECHO_N "(cached) $ECHO_C" >&6
1268else
1269  if test -n "$ac_ct_CC"; then
1270  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1271else
1272  ac_save_IFS=$IFS; IFS=$ac_path_separator
1273ac_dummy="$PATH"
1274for ac_dir in $ac_dummy; do
1275  IFS=$ac_save_IFS
1276  test -z "$ac_dir" && ac_dir=.
1277  $as_executable_p "$ac_dir/$ac_word" || continue
1278ac_cv_prog_ac_ct_CC="$ac_prog"
1279echo "$as_me:1279: found $ac_dir/$ac_word" >&5
1280break
1281done
1282
1283fi
1284fi
1285ac_ct_CC=$ac_cv_prog_ac_ct_CC
1286if test -n "$ac_ct_CC"; then
1287  echo "$as_me:1287: result: $ac_ct_CC" >&5
1288echo "${ECHO_T}$ac_ct_CC" >&6
1289else
1290  echo "$as_me:1290: result: no" >&5
1291echo "${ECHO_T}no" >&6
1292fi
1293
1294  test -n "$ac_ct_CC" && break
1295done
1296
1297  CC=$ac_ct_CC
1298fi
1299
1300fi
1301
1302test -z "$CC" && { { echo "$as_me:1302: error: no acceptable cc found in \$PATH" >&5
1303echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1304   { (exit 1); exit 1; }; }
1305
1306# Provide some information about the compiler.
1307echo "$as_me:1307:" \
1308     "checking for C compiler version" >&5
1309ac_compiler=`set X $ac_compile; echo $2`
1310{ (eval echo "$as_me:1310: \"$ac_compiler --version </dev/null >&5\"") >&5
1311  (eval $ac_compiler --version </dev/null >&5) 2>&5
1312  ac_status=$?
1313  echo "$as_me:1313: \$? = $ac_status" >&5
1314  (exit $ac_status); }
1315{ (eval echo "$as_me:1315: \"$ac_compiler -v </dev/null >&5\"") >&5
1316  (eval $ac_compiler -v </dev/null >&5) 2>&5
1317  ac_status=$?
1318  echo "$as_me:1318: \$? = $ac_status" >&5
1319  (exit $ac_status); }
1320{ (eval echo "$as_me:1320: \"$ac_compiler -V </dev/null >&5\"") >&5
1321  (eval $ac_compiler -V </dev/null >&5) 2>&5
1322  ac_status=$?
1323  echo "$as_me:1323: \$? = $ac_status" >&5
1324  (exit $ac_status); }
1325
1326cat >conftest.$ac_ext <<_ACEOF
1327#line 1327 "configure"
1328#include "confdefs.h"
1329
1330int
1331main ()
1332{
1333
1334  ;
1335  return 0;
1336}
1337_ACEOF
1338ac_clean_files_save=$ac_clean_files
1339ac_clean_files="$ac_clean_files a.out a.exe"
1340# Try to create an executable without -o first, disregard a.out.
1341# It will help us diagnose broken compilers, and finding out an intuition
1342# of exeext.
1343echo "$as_me:1343: checking for C compiler default output" >&5
1344echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1345ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1346if { (eval echo "$as_me:1346: \"$ac_link_default\"") >&5
1347  (eval $ac_link_default) 2>&5
1348  ac_status=$?
1349  echo "$as_me:1349: \$? = $ac_status" >&5
1350  (exit $ac_status); }; then
1351  # Find the output, starting from the most likely.  This scheme is
1352# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1353# resort.
1354for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1355                ls a.out conftest 2>/dev/null;
1356                ls a.* conftest.* 2>/dev/null`; do
1357  case $ac_file in
1358    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1359    a.out ) # We found the default executable, but exeext='' is most
1360            # certainly right.
1361            break;;
1362    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1363          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1364          export ac_cv_exeext
1365          break;;
1366    * ) break;;
1367  esac
1368done
1369else
1370  echo "$as_me: failed program was:" >&5
1371cat conftest.$ac_ext >&5
1372{ { echo "$as_me:1372: error: C compiler cannot create executables" >&5
1373echo "$as_me: error: C compiler cannot create executables" >&2;}
1374   { (exit 77); exit 77; }; }
1375fi
1376
1377ac_exeext=$ac_cv_exeext
1378echo "$as_me:1378: result: $ac_file" >&5
1379echo "${ECHO_T}$ac_file" >&6
1380
1381# Check the compiler produces executables we can run.  If not, either
1382# the compiler is broken, or we cross compile.
1383echo "$as_me:1383: checking whether the C compiler works" >&5
1384echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1385# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1386# If not cross compiling, check that we can run a simple program.
1387if test "$cross_compiling" != yes; then
1388  if { ac_try='./$ac_file'
1389  { (eval echo "$as_me:1389: \"$ac_try\"") >&5
1390  (eval $ac_try) 2>&5
1391  ac_status=$?
1392  echo "$as_me:1392: \$? = $ac_status" >&5
1393  (exit $ac_status); }; }; then
1394    cross_compiling=no
1395  else
1396    if test "$cross_compiling" = maybe; then
1397	cross_compiling=yes
1398    else
1399	{ { echo "$as_me:1399: error: cannot run C compiled programs.
1400If you meant to cross compile, use \`--host'." >&5
1401echo "$as_me: error: cannot run C compiled programs.
1402If you meant to cross compile, use \`--host'." >&2;}
1403   { (exit 1); exit 1; }; }
1404    fi
1405  fi
1406fi
1407echo "$as_me:1407: result: yes" >&5
1408echo "${ECHO_T}yes" >&6
1409
1410rm -f a.out a.exe conftest$ac_cv_exeext
1411ac_clean_files=$ac_clean_files_save
1412# Check the compiler produces executables we can run.  If not, either
1413# the compiler is broken, or we cross compile.
1414echo "$as_me:1414: checking whether we are cross compiling" >&5
1415echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1416echo "$as_me:1416: result: $cross_compiling" >&5
1417echo "${ECHO_T}$cross_compiling" >&6
1418
1419echo "$as_me:1419: checking for executable suffix" >&5
1420echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1421if { (eval echo "$as_me:1421: \"$ac_link\"") >&5
1422  (eval $ac_link) 2>&5
1423  ac_status=$?
1424  echo "$as_me:1424: \$? = $ac_status" >&5
1425  (exit $ac_status); }; then
1426  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1427# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1428# work properly (i.e., refer to `conftest.exe'), while it won't with
1429# `rm'.
1430for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1431  case $ac_file in
1432    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1433    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1434          export ac_cv_exeext
1435          break;;
1436    * ) break;;
1437  esac
1438done
1439else
1440  { { echo "$as_me:1440: error: cannot compute EXEEXT: cannot compile and link" >&5
1441echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1442   { (exit 1); exit 1; }; }
1443fi
1444
1445rm -f conftest$ac_cv_exeext
1446echo "$as_me:1446: result: $ac_cv_exeext" >&5
1447echo "${ECHO_T}$ac_cv_exeext" >&6
1448
1449rm -f conftest.$ac_ext
1450EXEEXT=$ac_cv_exeext
1451ac_exeext=$EXEEXT
1452echo "$as_me:1452: checking for object suffix" >&5
1453echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1454if test "${ac_cv_objext+set}" = set; then
1455  echo $ECHO_N "(cached) $ECHO_C" >&6
1456else
1457  cat >conftest.$ac_ext <<_ACEOF
1458#line 1458 "configure"
1459#include "confdefs.h"
1460
1461int
1462main ()
1463{
1464
1465  ;
1466  return 0;
1467}
1468_ACEOF
1469rm -f conftest.o conftest.obj
1470if { (eval echo "$as_me:1470: \"$ac_compile\"") >&5
1471  (eval $ac_compile) 2>&5
1472  ac_status=$?
1473  echo "$as_me:1473: \$? = $ac_status" >&5
1474  (exit $ac_status); }; then
1475  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1476  case $ac_file in
1477    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1478    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1479       break;;
1480  esac
1481done
1482else
1483  echo "$as_me: failed program was:" >&5
1484cat conftest.$ac_ext >&5
1485{ { echo "$as_me:1485: error: cannot compute OBJEXT: cannot compile" >&5
1486echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1487   { (exit 1); exit 1; }; }
1488fi
1489
1490rm -f conftest.$ac_cv_objext conftest.$ac_ext
1491fi
1492echo "$as_me:1492: result: $ac_cv_objext" >&5
1493echo "${ECHO_T}$ac_cv_objext" >&6
1494OBJEXT=$ac_cv_objext
1495ac_objext=$OBJEXT
1496echo "$as_me:1496: checking whether we are using the GNU C compiler" >&5
1497echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1498if test "${ac_cv_c_compiler_gnu+set}" = set; then
1499  echo $ECHO_N "(cached) $ECHO_C" >&6
1500else
1501  cat >conftest.$ac_ext <<_ACEOF
1502#line 1502 "configure"
1503#include "confdefs.h"
1504
1505int
1506main ()
1507{
1508#ifndef __GNUC__
1509       choke me
1510#endif
1511
1512  ;
1513  return 0;
1514}
1515_ACEOF
1516rm -f conftest.$ac_objext
1517if { (eval echo "$as_me:1517: \"$ac_compile\"") >&5
1518  (eval $ac_compile) 2>&5
1519  ac_status=$?
1520  echo "$as_me:1520: \$? = $ac_status" >&5
1521  (exit $ac_status); } &&
1522         { ac_try='test -s conftest.$ac_objext'
1523  { (eval echo "$as_me:1523: \"$ac_try\"") >&5
1524  (eval $ac_try) 2>&5
1525  ac_status=$?
1526  echo "$as_me:1526: \$? = $ac_status" >&5
1527  (exit $ac_status); }; }; then
1528  ac_compiler_gnu=yes
1529else
1530  echo "$as_me: failed program was:" >&5
1531cat conftest.$ac_ext >&5
1532ac_compiler_gnu=no
1533fi
1534rm -f conftest.$ac_objext conftest.$ac_ext
1535ac_cv_c_compiler_gnu=$ac_compiler_gnu
1536
1537fi
1538echo "$as_me:1538: result: $ac_cv_c_compiler_gnu" >&5
1539echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1540GCC=`test $ac_compiler_gnu = yes && echo yes`
1541ac_test_CFLAGS=${CFLAGS+set}
1542ac_save_CFLAGS=$CFLAGS
1543CFLAGS="-g"
1544echo "$as_me:1544: checking whether $CC accepts -g" >&5
1545echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1546if test "${ac_cv_prog_cc_g+set}" = set; then
1547  echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549  cat >conftest.$ac_ext <<_ACEOF
1550#line 1550 "configure"
1551#include "confdefs.h"
1552
1553int
1554main ()
1555{
1556
1557  ;
1558  return 0;
1559}
1560_ACEOF
1561rm -f conftest.$ac_objext
1562if { (eval echo "$as_me:1562: \"$ac_compile\"") >&5
1563  (eval $ac_compile) 2>&5
1564  ac_status=$?
1565  echo "$as_me:1565: \$? = $ac_status" >&5
1566  (exit $ac_status); } &&
1567         { ac_try='test -s conftest.$ac_objext'
1568  { (eval echo "$as_me:1568: \"$ac_try\"") >&5
1569  (eval $ac_try) 2>&5
1570  ac_status=$?
1571  echo "$as_me:1571: \$? = $ac_status" >&5
1572  (exit $ac_status); }; }; then
1573  ac_cv_prog_cc_g=yes
1574else
1575  echo "$as_me: failed program was:" >&5
1576cat conftest.$ac_ext >&5
1577ac_cv_prog_cc_g=no
1578fi
1579rm -f conftest.$ac_objext conftest.$ac_ext
1580fi
1581echo "$as_me:1581: result: $ac_cv_prog_cc_g" >&5
1582echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1583if test "$ac_test_CFLAGS" = set; then
1584  CFLAGS=$ac_save_CFLAGS
1585elif test $ac_cv_prog_cc_g = yes; then
1586  if test "$GCC" = yes; then
1587    CFLAGS="-g -O2"
1588  else
1589    CFLAGS="-g"
1590  fi
1591else
1592  if test "$GCC" = yes; then
1593    CFLAGS="-O2"
1594  else
1595    CFLAGS=
1596  fi
1597fi
1598# Some people use a C++ compiler to compile C.  Since we use `exit',
1599# in C++ we need to declare it.  In case someone uses the same compiler
1600# for both compiling C and C++ we need to have the C++ compiler decide
1601# the declaration of exit, since it's the most demanding environment.
1602cat >conftest.$ac_ext <<_ACEOF
1603#ifndef __cplusplus
1604  choke me
1605#endif
1606_ACEOF
1607rm -f conftest.$ac_objext
1608if { (eval echo "$as_me:1608: \"$ac_compile\"") >&5
1609  (eval $ac_compile) 2>&5
1610  ac_status=$?
1611  echo "$as_me:1611: \$? = $ac_status" >&5
1612  (exit $ac_status); } &&
1613         { ac_try='test -s conftest.$ac_objext'
1614  { (eval echo "$as_me:1614: \"$ac_try\"") >&5
1615  (eval $ac_try) 2>&5
1616  ac_status=$?
1617  echo "$as_me:1617: \$? = $ac_status" >&5
1618  (exit $ac_status); }; }; then
1619  for ac_declaration in \
1620   ''\
1621   '#include <stdlib.h>' \
1622   'extern "C" void std::exit (int) throw (); using std::exit;' \
1623   'extern "C" void std::exit (int); using std::exit;' \
1624   'extern "C" void exit (int) throw ();' \
1625   'extern "C" void exit (int);' \
1626   'void exit (int);'
1627do
1628  cat >conftest.$ac_ext <<_ACEOF
1629#line 1629 "configure"
1630#include "confdefs.h"
1631#include <stdlib.h>
1632$ac_declaration
1633int
1634main ()
1635{
1636exit (42);
1637  ;
1638  return 0;
1639}
1640_ACEOF
1641rm -f conftest.$ac_objext
1642if { (eval echo "$as_me:1642: \"$ac_compile\"") >&5
1643  (eval $ac_compile) 2>&5
1644  ac_status=$?
1645  echo "$as_me:1645: \$? = $ac_status" >&5
1646  (exit $ac_status); } &&
1647         { ac_try='test -s conftest.$ac_objext'
1648  { (eval echo "$as_me:1648: \"$ac_try\"") >&5
1649  (eval $ac_try) 2>&5
1650  ac_status=$?
1651  echo "$as_me:1651: \$? = $ac_status" >&5
1652  (exit $ac_status); }; }; then
1653  :
1654else
1655  echo "$as_me: failed program was:" >&5
1656cat conftest.$ac_ext >&5
1657continue
1658fi
1659rm -f conftest.$ac_objext conftest.$ac_ext
1660  cat >conftest.$ac_ext <<_ACEOF
1661#line 1661 "configure"
1662#include "confdefs.h"
1663$ac_declaration
1664int
1665main ()
1666{
1667exit (42);
1668  ;
1669  return 0;
1670}
1671_ACEOF
1672rm -f conftest.$ac_objext
1673if { (eval echo "$as_me:1673: \"$ac_compile\"") >&5
1674  (eval $ac_compile) 2>&5
1675  ac_status=$?
1676  echo "$as_me:1676: \$? = $ac_status" >&5
1677  (exit $ac_status); } &&
1678         { ac_try='test -s conftest.$ac_objext'
1679  { (eval echo "$as_me:1679: \"$ac_try\"") >&5
1680  (eval $ac_try) 2>&5
1681  ac_status=$?
1682  echo "$as_me:1682: \$? = $ac_status" >&5
1683  (exit $ac_status); }; }; then
1684  break
1685else
1686  echo "$as_me: failed program was:" >&5
1687cat conftest.$ac_ext >&5
1688fi
1689rm -f conftest.$ac_objext conftest.$ac_ext
1690done
1691rm -f conftest*
1692if test -n "$ac_declaration"; then
1693  echo '#ifdef __cplusplus' >>confdefs.h
1694  echo $ac_declaration      >>confdefs.h
1695  echo '#endif'             >>confdefs.h
1696fi
1697
1698else
1699  echo "$as_me: failed program was:" >&5
1700cat conftest.$ac_ext >&5
1701fi
1702rm -f conftest.$ac_objext conftest.$ac_ext
1703ac_ext=c
1704ac_cpp='$CPP $CPPFLAGS'
1705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1707ac_compiler_gnu=$ac_cv_c_compiler_gnu
1708
1709echo "$as_me:1709: checking whether byte ordering is bigendian" >&5
1710echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
1711if test "${ac_cv_c_bigendian+set}" = set; then
1712  echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714  ac_cv_c_bigendian=unknown
1715# See if sys/param.h defines the BYTE_ORDER macro.
1716cat >conftest.$ac_ext <<_ACEOF
1717#line 1717 "configure"
1718#include "confdefs.h"
1719#include <sys/types.h>
1720#include <sys/param.h>
1721
1722int
1723main ()
1724{
1725#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1726 bogus endian macros
1727#endif
1728
1729  ;
1730  return 0;
1731}
1732_ACEOF
1733rm -f conftest.$ac_objext
1734if { (eval echo "$as_me:1734: \"$ac_compile\"") >&5
1735  (eval $ac_compile) 2>&5
1736  ac_status=$?
1737  echo "$as_me:1737: \$? = $ac_status" >&5
1738  (exit $ac_status); } &&
1739         { ac_try='test -s conftest.$ac_objext'
1740  { (eval echo "$as_me:1740: \"$ac_try\"") >&5
1741  (eval $ac_try) 2>&5
1742  ac_status=$?
1743  echo "$as_me:1743: \$? = $ac_status" >&5
1744  (exit $ac_status); }; }; then
1745  # It does; now see whether it defined to BIG_ENDIAN or not.
1746cat >conftest.$ac_ext <<_ACEOF
1747#line 1747 "configure"
1748#include "confdefs.h"
1749#include <sys/types.h>
1750#include <sys/param.h>
1751
1752int
1753main ()
1754{
1755#if BYTE_ORDER != BIG_ENDIAN
1756 not big endian
1757#endif
1758
1759  ;
1760  return 0;
1761}
1762_ACEOF
1763rm -f conftest.$ac_objext
1764if { (eval echo "$as_me:1764: \"$ac_compile\"") >&5
1765  (eval $ac_compile) 2>&5
1766  ac_status=$?
1767  echo "$as_me:1767: \$? = $ac_status" >&5
1768  (exit $ac_status); } &&
1769         { ac_try='test -s conftest.$ac_objext'
1770  { (eval echo "$as_me:1770: \"$ac_try\"") >&5
1771  (eval $ac_try) 2>&5
1772  ac_status=$?
1773  echo "$as_me:1773: \$? = $ac_status" >&5
1774  (exit $ac_status); }; }; then
1775  ac_cv_c_bigendian=yes
1776else
1777  echo "$as_me: failed program was:" >&5
1778cat conftest.$ac_ext >&5
1779ac_cv_c_bigendian=no
1780fi
1781rm -f conftest.$ac_objext conftest.$ac_ext
1782else
1783  echo "$as_me: failed program was:" >&5
1784cat conftest.$ac_ext >&5
1785fi
1786rm -f conftest.$ac_objext conftest.$ac_ext
1787if test $ac_cv_c_bigendian = unknown; then
1788if test "$cross_compiling" = yes; then
1789  { { echo "$as_me:1789: error: cannot run test program while cross compiling" >&5
1790echo "$as_me: error: cannot run test program while cross compiling" >&2;}
1791   { (exit 1); exit 1; }; }
1792else
1793  cat >conftest.$ac_ext <<_ACEOF
1794#line 1794 "configure"
1795#include "confdefs.h"
1796int
1797main ()
1798{
1799  /* Are we little or big endian?  From Harbison&Steele.  */
1800  union
1801  {
1802    long l;
1803    char c[sizeof (long)];
1804  } u;
1805  u.l = 1;
1806  exit (u.c[sizeof (long) - 1] == 1);
1807}
1808_ACEOF
1809rm -f conftest$ac_exeext
1810if { (eval echo "$as_me:1810: \"$ac_link\"") >&5
1811  (eval $ac_link) 2>&5
1812  ac_status=$?
1813  echo "$as_me:1813: \$? = $ac_status" >&5
1814  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1815  { (eval echo "$as_me:1815: \"$ac_try\"") >&5
1816  (eval $ac_try) 2>&5
1817  ac_status=$?
1818  echo "$as_me:1818: \$? = $ac_status" >&5
1819  (exit $ac_status); }; }; then
1820  ac_cv_c_bigendian=no
1821else
1822  echo "$as_me: program exited with status $ac_status" >&5
1823echo "$as_me: failed program was:" >&5
1824cat conftest.$ac_ext >&5
1825ac_cv_c_bigendian=yes
1826fi
1827rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1828fi
1829fi
1830fi
1831echo "$as_me:1831: result: $ac_cv_c_bigendian" >&5
1832echo "${ECHO_T}$ac_cv_c_bigendian" >&6
1833if test $ac_cv_c_bigendian = yes; then
1834
1835cat >>confdefs.h <<\EOF
1836#define WORDS_BIGENDIAN 1
1837EOF
1838
1839fi
1840
1841ac_ext=c
1842ac_cpp='$CPP $CPPFLAGS'
1843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845ac_compiler_gnu=$ac_cv_c_compiler_gnu
1846echo "$as_me:1846: checking how to run the C preprocessor" >&5
1847echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1848# On Suns, sometimes $CPP names a directory.
1849if test -n "$CPP" && test -d "$CPP"; then
1850  CPP=
1851fi
1852if test -z "$CPP"; then
1853  if test "${ac_cv_prog_CPP+set}" = set; then
1854  echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856      # Double quotes because CPP needs to be expanded
1857    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1858    do
1859      ac_preproc_ok=false
1860for ac_c_preproc_warn_flag in '' yes
1861do
1862  # Use a header file that comes with gcc, so configuring glibc
1863  # with a fresh cross-compiler works.
1864  # On the NeXT, cc -E runs the code through the compiler's parser,
1865  # not just through cpp. "Syntax error" is here to catch this case.
1866  cat >conftest.$ac_ext <<_ACEOF
1867#line 1867 "configure"
1868#include "confdefs.h"
1869#include <assert.h>
1870                     Syntax error
1871_ACEOF
1872if { (eval echo "$as_me:1872: \"$ac_cpp conftest.$ac_ext\"") >&5
1873  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1874  ac_status=$?
1875  egrep -v '^ *\+' conftest.er1 >conftest.err
1876  rm -f conftest.er1
1877  cat conftest.err >&5
1878  echo "$as_me:1878: \$? = $ac_status" >&5
1879  (exit $ac_status); } >/dev/null; then
1880  if test -s conftest.err; then
1881    ac_cpp_err=$ac_c_preproc_warn_flag
1882  else
1883    ac_cpp_err=
1884  fi
1885else
1886  ac_cpp_err=yes
1887fi
1888if test -z "$ac_cpp_err"; then
1889  :
1890else
1891  echo "$as_me: failed program was:" >&5
1892  cat conftest.$ac_ext >&5
1893  # Broken: fails on valid input.
1894continue
1895fi
1896rm -f conftest.err conftest.$ac_ext
1897
1898  # OK, works on sane cases.  Now check whether non-existent headers
1899  # can be detected and how.
1900  cat >conftest.$ac_ext <<_ACEOF
1901#line 1901 "configure"
1902#include "confdefs.h"
1903#include <ac_nonexistent.h>
1904_ACEOF
1905if { (eval echo "$as_me:1905: \"$ac_cpp conftest.$ac_ext\"") >&5
1906  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1907  ac_status=$?
1908  egrep -v '^ *\+' conftest.er1 >conftest.err
1909  rm -f conftest.er1
1910  cat conftest.err >&5
1911  echo "$as_me:1911: \$? = $ac_status" >&5
1912  (exit $ac_status); } >/dev/null; then
1913  if test -s conftest.err; then
1914    ac_cpp_err=$ac_c_preproc_warn_flag
1915  else
1916    ac_cpp_err=
1917  fi
1918else
1919  ac_cpp_err=yes
1920fi
1921if test -z "$ac_cpp_err"; then
1922  # Broken: success on invalid input.
1923continue
1924else
1925  echo "$as_me: failed program was:" >&5
1926  cat conftest.$ac_ext >&5
1927  # Passes both tests.
1928ac_preproc_ok=:
1929break
1930fi
1931rm -f conftest.err conftest.$ac_ext
1932
1933done
1934# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1935rm -f conftest.err conftest.$ac_ext
1936if $ac_preproc_ok; then
1937  break
1938fi
1939
1940    done
1941    ac_cv_prog_CPP=$CPP
1942
1943fi
1944  CPP=$ac_cv_prog_CPP
1945else
1946  ac_cv_prog_CPP=$CPP
1947fi
1948echo "$as_me:1948: result: $CPP" >&5
1949echo "${ECHO_T}$CPP" >&6
1950ac_preproc_ok=false
1951for ac_c_preproc_warn_flag in '' yes
1952do
1953  # Use a header file that comes with gcc, so configuring glibc
1954  # with a fresh cross-compiler works.
1955  # On the NeXT, cc -E runs the code through the compiler's parser,
1956  # not just through cpp. "Syntax error" is here to catch this case.
1957  cat >conftest.$ac_ext <<_ACEOF
1958#line 1958 "configure"
1959#include "confdefs.h"
1960#include <assert.h>
1961                     Syntax error
1962_ACEOF
1963if { (eval echo "$as_me:1963: \"$ac_cpp conftest.$ac_ext\"") >&5
1964  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1965  ac_status=$?
1966  egrep -v '^ *\+' conftest.er1 >conftest.err
1967  rm -f conftest.er1
1968  cat conftest.err >&5
1969  echo "$as_me:1969: \$? = $ac_status" >&5
1970  (exit $ac_status); } >/dev/null; then
1971  if test -s conftest.err; then
1972    ac_cpp_err=$ac_c_preproc_warn_flag
1973  else
1974    ac_cpp_err=
1975  fi
1976else
1977  ac_cpp_err=yes
1978fi
1979if test -z "$ac_cpp_err"; then
1980  :
1981else
1982  echo "$as_me: failed program was:" >&5
1983  cat conftest.$ac_ext >&5
1984  # Broken: fails on valid input.
1985continue
1986fi
1987rm -f conftest.err conftest.$ac_ext
1988
1989  # OK, works on sane cases.  Now check whether non-existent headers
1990  # can be detected and how.
1991  cat >conftest.$ac_ext <<_ACEOF
1992#line 1992 "configure"
1993#include "confdefs.h"
1994#include <ac_nonexistent.h>
1995_ACEOF
1996if { (eval echo "$as_me:1996: \"$ac_cpp conftest.$ac_ext\"") >&5
1997  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1998  ac_status=$?
1999  egrep -v '^ *\+' conftest.er1 >conftest.err
2000  rm -f conftest.er1
2001  cat conftest.err >&5
2002  echo "$as_me:2002: \$? = $ac_status" >&5
2003  (exit $ac_status); } >/dev/null; then
2004  if test -s conftest.err; then
2005    ac_cpp_err=$ac_c_preproc_warn_flag
2006  else
2007    ac_cpp_err=
2008  fi
2009else
2010  ac_cpp_err=yes
2011fi
2012if test -z "$ac_cpp_err"; then
2013  # Broken: success on invalid input.
2014continue
2015else
2016  echo "$as_me: failed program was:" >&5
2017  cat conftest.$ac_ext >&5
2018  # Passes both tests.
2019ac_preproc_ok=:
2020break
2021fi
2022rm -f conftest.err conftest.$ac_ext
2023
2024done
2025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2026rm -f conftest.err conftest.$ac_ext
2027if $ac_preproc_ok; then
2028  :
2029else
2030  { { echo "$as_me:2030: error: C preprocessor \"$CPP\" fails sanity check" >&5
2031echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2032   { (exit 1); exit 1; }; }
2033fi
2034
2035ac_ext=c
2036ac_cpp='$CPP $CPPFLAGS'
2037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040
2041echo "$as_me:2041: checking for ANSI C header files" >&5
2042echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2043if test "${ac_cv_header_stdc+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  cat >conftest.$ac_ext <<_ACEOF
2047#line 2047 "configure"
2048#include "confdefs.h"
2049#include <stdlib.h>
2050#include <stdarg.h>
2051#include <string.h>
2052#include <float.h>
2053
2054_ACEOF
2055if { (eval echo "$as_me:2055: \"$ac_cpp conftest.$ac_ext\"") >&5
2056  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2057  ac_status=$?
2058  egrep -v '^ *\+' conftest.er1 >conftest.err
2059  rm -f conftest.er1
2060  cat conftest.err >&5
2061  echo "$as_me:2061: \$? = $ac_status" >&5
2062  (exit $ac_status); } >/dev/null; then
2063  if test -s conftest.err; then
2064    ac_cpp_err=$ac_c_preproc_warn_flag
2065  else
2066    ac_cpp_err=
2067  fi
2068else
2069  ac_cpp_err=yes
2070fi
2071if test -z "$ac_cpp_err"; then
2072  ac_cv_header_stdc=yes
2073else
2074  echo "$as_me: failed program was:" >&5
2075  cat conftest.$ac_ext >&5
2076  ac_cv_header_stdc=no
2077fi
2078rm -f conftest.err conftest.$ac_ext
2079
2080if test $ac_cv_header_stdc = yes; then
2081  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2082  cat >conftest.$ac_ext <<_ACEOF
2083#line 2083 "configure"
2084#include "confdefs.h"
2085#include <string.h>
2086
2087_ACEOF
2088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2089  egrep "memchr" >/dev/null 2>&1; then
2090  :
2091else
2092  ac_cv_header_stdc=no
2093fi
2094rm -f conftest*
2095
2096fi
2097
2098if test $ac_cv_header_stdc = yes; then
2099  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2100  cat >conftest.$ac_ext <<_ACEOF
2101#line 2101 "configure"
2102#include "confdefs.h"
2103#include <stdlib.h>
2104
2105_ACEOF
2106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2107  egrep "free" >/dev/null 2>&1; then
2108  :
2109else
2110  ac_cv_header_stdc=no
2111fi
2112rm -f conftest*
2113
2114fi
2115
2116if test $ac_cv_header_stdc = yes; then
2117  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2118  if test "$cross_compiling" = yes; then
2119  :
2120else
2121  cat >conftest.$ac_ext <<_ACEOF
2122#line 2122 "configure"
2123#include "confdefs.h"
2124#include <ctype.h>
2125#if ((' ' & 0x0FF) == 0x020)
2126# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2127# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2128#else
2129# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2130                     || ('j' <= (c) && (c) <= 'r') \
2131                     || ('s' <= (c) && (c) <= 'z'))
2132# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2133#endif
2134
2135#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2136int
2137main ()
2138{
2139  int i;
2140  for (i = 0; i < 256; i++)
2141    if (XOR (islower (i), ISLOWER (i))
2142        || toupper (i) != TOUPPER (i))
2143      exit(2);
2144  exit (0);
2145}
2146_ACEOF
2147rm -f conftest$ac_exeext
2148if { (eval echo "$as_me:2148: \"$ac_link\"") >&5
2149  (eval $ac_link) 2>&5
2150  ac_status=$?
2151  echo "$as_me:2151: \$? = $ac_status" >&5
2152  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2153  { (eval echo "$as_me:2153: \"$ac_try\"") >&5
2154  (eval $ac_try) 2>&5
2155  ac_status=$?
2156  echo "$as_me:2156: \$? = $ac_status" >&5
2157  (exit $ac_status); }; }; then
2158  :
2159else
2160  echo "$as_me: program exited with status $ac_status" >&5
2161echo "$as_me: failed program was:" >&5
2162cat conftest.$ac_ext >&5
2163ac_cv_header_stdc=no
2164fi
2165rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2166fi
2167fi
2168fi
2169echo "$as_me:2169: result: $ac_cv_header_stdc" >&5
2170echo "${ECHO_T}$ac_cv_header_stdc" >&6
2171if test $ac_cv_header_stdc = yes; then
2172
2173cat >>confdefs.h <<\EOF
2174#define STDC_HEADERS 1
2175EOF
2176
2177fi
2178
2179# Confirm existence of zlib.  (This is available as a default install
2180# option on many OS's; this could be added as a reachover build in the
2181# future.)
2182echo "$as_me:2182: checking for zlib.h" >&5
2183echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
2184if test "${ac_cv_header_zlib_h+set}" = set; then
2185  echo $ECHO_N "(cached) $ECHO_C" >&6
2186else
2187  cat >conftest.$ac_ext <<_ACEOF
2188#line 2188 "configure"
2189#include "confdefs.h"
2190#include <zlib.h>
2191_ACEOF
2192if { (eval echo "$as_me:2192: \"$ac_cpp conftest.$ac_ext\"") >&5
2193  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2194  ac_status=$?
2195  egrep -v '^ *\+' conftest.er1 >conftest.err
2196  rm -f conftest.er1
2197  cat conftest.err >&5
2198  echo "$as_me:2198: \$? = $ac_status" >&5
2199  (exit $ac_status); } >/dev/null; then
2200  if test -s conftest.err; then
2201    ac_cpp_err=$ac_c_preproc_warn_flag
2202  else
2203    ac_cpp_err=
2204  fi
2205else
2206  ac_cpp_err=yes
2207fi
2208if test -z "$ac_cpp_err"; then
2209  ac_cv_header_zlib_h=yes
2210else
2211  echo "$as_me: failed program was:" >&5
2212  cat conftest.$ac_ext >&5
2213  ac_cv_header_zlib_h=no
2214fi
2215rm -f conftest.err conftest.$ac_ext
2216fi
2217echo "$as_me:2217: result: $ac_cv_header_zlib_h" >&5
2218echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
2219if test $ac_cv_header_zlib_h = yes; then
2220  :
2221else
2222  { { echo "$as_me:2222: error: zlib must be installed in a compiler-visible path" >&5
2223echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2224   { (exit 1); exit 1; }; }
2225fi
2226
2227echo "$as_me:2227: checking for gzdopen in -lz" >&5
2228echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
2229if test "${ac_cv_lib_z_gzdopen+set}" = set; then
2230  echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232  ac_check_lib_save_LIBS=$LIBS
2233LIBS="-lz  $LIBS"
2234cat >conftest.$ac_ext <<_ACEOF
2235#line 2235 "configure"
2236#include "confdefs.h"
2237
2238/* Override any gcc2 internal prototype to avoid an error.  */
2239#ifdef __cplusplus
2240extern "C"
2241#endif
2242/* We use char because int might match the return type of a gcc2
2243   builtin and then its argument prototype would still apply.  */
2244char gzdopen ();
2245int
2246main ()
2247{
2248gzdopen ();
2249  ;
2250  return 0;
2251}
2252_ACEOF
2253rm -f conftest.$ac_objext conftest$ac_exeext
2254if { (eval echo "$as_me:2254: \"$ac_link\"") >&5
2255  (eval $ac_link) 2>&5
2256  ac_status=$?
2257  echo "$as_me:2257: \$? = $ac_status" >&5
2258  (exit $ac_status); } &&
2259         { ac_try='test -s conftest$ac_exeext'
2260  { (eval echo "$as_me:2260: \"$ac_try\"") >&5
2261  (eval $ac_try) 2>&5
2262  ac_status=$?
2263  echo "$as_me:2263: \$? = $ac_status" >&5
2264  (exit $ac_status); }; }; then
2265  ac_cv_lib_z_gzdopen=yes
2266else
2267  echo "$as_me: failed program was:" >&5
2268cat conftest.$ac_ext >&5
2269ac_cv_lib_z_gzdopen=no
2270fi
2271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2272LIBS=$ac_check_lib_save_LIBS
2273fi
2274echo "$as_me:2274: result: $ac_cv_lib_z_gzdopen" >&5
2275echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
2276if test $ac_cv_lib_z_gzdopen = yes; then
2277  cat >>confdefs.h <<EOF
2278#define HAVE_LIBZ 1
2279EOF
2280
2281  LIBS="-lz $LIBS"
2282
2283else
2284  { { echo "$as_me:2284: error: zlib must be installed in a compiler-visible path" >&5
2285echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2286   { (exit 1); exit 1; }; }
2287fi
2288
2289# Make sure certain required headers are available.
2290# These are not necessarily required by the code, but they are not
2291# currently conditionalized.
2292
2293for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
2294	sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h \
2295	assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
2296	netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
2297	unistd.h
2298do
2299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2300echo "$as_me:2300: checking for $ac_header" >&5
2301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2302if eval "test \"\${$as_ac_Header+set}\" = set"; then
2303  echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305  cat >conftest.$ac_ext <<_ACEOF
2306#line 2306 "configure"
2307#include "confdefs.h"
2308#include <$ac_header>
2309_ACEOF
2310if { (eval echo "$as_me:2310: \"$ac_cpp conftest.$ac_ext\"") >&5
2311  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2312  ac_status=$?
2313  egrep -v '^ *\+' conftest.er1 >conftest.err
2314  rm -f conftest.er1
2315  cat conftest.err >&5
2316  echo "$as_me:2316: \$? = $ac_status" >&5
2317  (exit $ac_status); } >/dev/null; then
2318  if test -s conftest.err; then
2319    ac_cpp_err=$ac_c_preproc_warn_flag
2320  else
2321    ac_cpp_err=
2322  fi
2323else
2324  ac_cpp_err=yes
2325fi
2326if test -z "$ac_cpp_err"; then
2327  eval "$as_ac_Header=yes"
2328else
2329  echo "$as_me: failed program was:" >&5
2330  cat conftest.$ac_ext >&5
2331  eval "$as_ac_Header=no"
2332fi
2333rm -f conftest.err conftest.$ac_ext
2334fi
2335echo "$as_me:2335: result: `eval echo '${'$as_ac_Header'}'`" >&5
2336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2337if test `eval echo '${'$as_ac_Header'}'` = yes; then
2338  cat >>confdefs.h <<EOF
2339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2340EOF
2341
2342else
2343  { { echo "$as_me:2343: error: standard system header file not found" >&5
2344echo "$as_me: error: standard system header file not found" >&2;}
2345   { (exit 1); exit 1; }; }
2346fi
2347done
2348
2349# Find headers that may not be available.
2350
2351ac_header_dirent=no
2352for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2353  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2354echo "$as_me:2354: checking for $ac_hdr that defines DIR" >&5
2355echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2356if eval "test \"\${$as_ac_Header+set}\" = set"; then
2357  echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359  cat >conftest.$ac_ext <<_ACEOF
2360#line 2360 "configure"
2361#include "confdefs.h"
2362#include <sys/types.h>
2363#include <$ac_hdr>
2364
2365int
2366main ()
2367{
2368if ((DIR *) 0)
2369return 0;
2370  ;
2371  return 0;
2372}
2373_ACEOF
2374rm -f conftest.$ac_objext
2375if { (eval echo "$as_me:2375: \"$ac_compile\"") >&5
2376  (eval $ac_compile) 2>&5
2377  ac_status=$?
2378  echo "$as_me:2378: \$? = $ac_status" >&5
2379  (exit $ac_status); } &&
2380         { ac_try='test -s conftest.$ac_objext'
2381  { (eval echo "$as_me:2381: \"$ac_try\"") >&5
2382  (eval $ac_try) 2>&5
2383  ac_status=$?
2384  echo "$as_me:2384: \$? = $ac_status" >&5
2385  (exit $ac_status); }; }; then
2386  eval "$as_ac_Header=yes"
2387else
2388  echo "$as_me: failed program was:" >&5
2389cat conftest.$ac_ext >&5
2390eval "$as_ac_Header=no"
2391fi
2392rm -f conftest.$ac_objext conftest.$ac_ext
2393fi
2394echo "$as_me:2394: result: `eval echo '${'$as_ac_Header'}'`" >&5
2395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2396if test `eval echo '${'$as_ac_Header'}'` = yes; then
2397  cat >>confdefs.h <<EOF
2398#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2399EOF
2400
2401ac_header_dirent=$ac_hdr; break
2402fi
2403
2404done
2405# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2406if test $ac_header_dirent = dirent.h; then
2407  echo "$as_me:2407: checking for opendir in -ldir" >&5
2408echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
2409if test "${ac_cv_lib_dir_opendir+set}" = set; then
2410  echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412  ac_check_lib_save_LIBS=$LIBS
2413LIBS="-ldir  $LIBS"
2414cat >conftest.$ac_ext <<_ACEOF
2415#line 2415 "configure"
2416#include "confdefs.h"
2417
2418/* Override any gcc2 internal prototype to avoid an error.  */
2419#ifdef __cplusplus
2420extern "C"
2421#endif
2422/* We use char because int might match the return type of a gcc2
2423   builtin and then its argument prototype would still apply.  */
2424char opendir ();
2425int
2426main ()
2427{
2428opendir ();
2429  ;
2430  return 0;
2431}
2432_ACEOF
2433rm -f conftest.$ac_objext conftest$ac_exeext
2434if { (eval echo "$as_me:2434: \"$ac_link\"") >&5
2435  (eval $ac_link) 2>&5
2436  ac_status=$?
2437  echo "$as_me:2437: \$? = $ac_status" >&5
2438  (exit $ac_status); } &&
2439         { ac_try='test -s conftest$ac_exeext'
2440  { (eval echo "$as_me:2440: \"$ac_try\"") >&5
2441  (eval $ac_try) 2>&5
2442  ac_status=$?
2443  echo "$as_me:2443: \$? = $ac_status" >&5
2444  (exit $ac_status); }; }; then
2445  ac_cv_lib_dir_opendir=yes
2446else
2447  echo "$as_me: failed program was:" >&5
2448cat conftest.$ac_ext >&5
2449ac_cv_lib_dir_opendir=no
2450fi
2451rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2452LIBS=$ac_check_lib_save_LIBS
2453fi
2454echo "$as_me:2454: result: $ac_cv_lib_dir_opendir" >&5
2455echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
2456if test $ac_cv_lib_dir_opendir = yes; then
2457  LIBS="$LIBS -ldir"
2458fi
2459
2460else
2461  echo "$as_me:2461: checking for opendir in -lx" >&5
2462echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
2463if test "${ac_cv_lib_x_opendir+set}" = set; then
2464  echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466  ac_check_lib_save_LIBS=$LIBS
2467LIBS="-lx  $LIBS"
2468cat >conftest.$ac_ext <<_ACEOF
2469#line 2469 "configure"
2470#include "confdefs.h"
2471
2472/* Override any gcc2 internal prototype to avoid an error.  */
2473#ifdef __cplusplus
2474extern "C"
2475#endif
2476/* We use char because int might match the return type of a gcc2
2477   builtin and then its argument prototype would still apply.  */
2478char opendir ();
2479int
2480main ()
2481{
2482opendir ();
2483  ;
2484  return 0;
2485}
2486_ACEOF
2487rm -f conftest.$ac_objext conftest$ac_exeext
2488if { (eval echo "$as_me:2488: \"$ac_link\"") >&5
2489  (eval $ac_link) 2>&5
2490  ac_status=$?
2491  echo "$as_me:2491: \$? = $ac_status" >&5
2492  (exit $ac_status); } &&
2493         { ac_try='test -s conftest$ac_exeext'
2494  { (eval echo "$as_me:2494: \"$ac_try\"") >&5
2495  (eval $ac_try) 2>&5
2496  ac_status=$?
2497  echo "$as_me:2497: \$? = $ac_status" >&5
2498  (exit $ac_status); }; }; then
2499  ac_cv_lib_x_opendir=yes
2500else
2501  echo "$as_me: failed program was:" >&5
2502cat conftest.$ac_ext >&5
2503ac_cv_lib_x_opendir=no
2504fi
2505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2506LIBS=$ac_check_lib_save_LIBS
2507fi
2508echo "$as_me:2508: result: $ac_cv_lib_x_opendir" >&5
2509echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
2510if test $ac_cv_lib_x_opendir = yes; then
2511  LIBS="$LIBS -lx"
2512fi
2513
2514fi
2515
2516for ac_header in sys/sysmacros.h sys/syslimits.h \
2517	features.h malloc.h stddef.h
2518do
2519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2520echo "$as_me:2520: checking for $ac_header" >&5
2521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2522if eval "test \"\${$as_ac_Header+set}\" = set"; then
2523  echo $ECHO_N "(cached) $ECHO_C" >&6
2524else
2525  cat >conftest.$ac_ext <<_ACEOF
2526#line 2526 "configure"
2527#include "confdefs.h"
2528#include <$ac_header>
2529_ACEOF
2530if { (eval echo "$as_me:2530: \"$ac_cpp conftest.$ac_ext\"") >&5
2531  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2532  ac_status=$?
2533  egrep -v '^ *\+' conftest.er1 >conftest.err
2534  rm -f conftest.er1
2535  cat conftest.err >&5
2536  echo "$as_me:2536: \$? = $ac_status" >&5
2537  (exit $ac_status); } >/dev/null; then
2538  if test -s conftest.err; then
2539    ac_cpp_err=$ac_c_preproc_warn_flag
2540  else
2541    ac_cpp_err=
2542  fi
2543else
2544  ac_cpp_err=yes
2545fi
2546if test -z "$ac_cpp_err"; then
2547  eval "$as_ac_Header=yes"
2548else
2549  echo "$as_me: failed program was:" >&5
2550  cat conftest.$ac_ext >&5
2551  eval "$as_ac_Header=no"
2552fi
2553rm -f conftest.err conftest.$ac_ext
2554fi
2555echo "$as_me:2555: result: `eval echo '${'$as_ac_Header'}'`" >&5
2556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2557if test `eval echo '${'$as_ac_Header'}'` = yes; then
2558  cat >>confdefs.h <<EOF
2559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2560EOF
2561
2562fi
2563done
2564
2565for ac_header in machine/bswap.h sys/cdefs.h sys/endian.h sys/featuretest.h \
2566	err.h inttypes.h libgen.h paths.h stdint.h util.h
2567do
2568as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2569echo "$as_me:2569: checking for $ac_header" >&5
2570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2571if eval "test \"\${$as_ac_Header+set}\" = set"; then
2572  echo $ECHO_N "(cached) $ECHO_C" >&6
2573else
2574  cat >conftest.$ac_ext <<_ACEOF
2575#line 2575 "configure"
2576#include "confdefs.h"
2577#include <$ac_header>
2578_ACEOF
2579if { (eval echo "$as_me:2579: \"$ac_cpp conftest.$ac_ext\"") >&5
2580  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2581  ac_status=$?
2582  egrep -v '^ *\+' conftest.er1 >conftest.err
2583  rm -f conftest.er1
2584  cat conftest.err >&5
2585  echo "$as_me:2585: \$? = $ac_status" >&5
2586  (exit $ac_status); } >/dev/null; then
2587  if test -s conftest.err; then
2588    ac_cpp_err=$ac_c_preproc_warn_flag
2589  else
2590    ac_cpp_err=
2591  fi
2592else
2593  ac_cpp_err=yes
2594fi
2595if test -z "$ac_cpp_err"; then
2596  eval "$as_ac_Header=yes"
2597else
2598  echo "$as_me: failed program was:" >&5
2599  cat conftest.$ac_ext >&5
2600  eval "$as_ac_Header=no"
2601fi
2602rm -f conftest.err conftest.$ac_ext
2603fi
2604echo "$as_me:2604: result: `eval echo '${'$as_ac_Header'}'`" >&5
2605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2606if test `eval echo '${'$as_ac_Header'}'` = yes; then
2607  cat >>confdefs.h <<EOF
2608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2609EOF
2610
2611else
2612  test -f include/$ac_header || touch include/$ac_header
2613fi
2614done
2615
2616for ac_header in rpc/types.h fts.h getopt.h md2.h md4.h md5.h netconfig.h \
2617	rmd160.h sha1.h vis.h
2618do
2619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2620echo "$as_me:2620: checking for $ac_header" >&5
2621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2622if eval "test \"\${$as_ac_Header+set}\" = set"; then
2623  echo $ECHO_N "(cached) $ECHO_C" >&6
2624else
2625  cat >conftest.$ac_ext <<_ACEOF
2626#line 2626 "configure"
2627#include "confdefs.h"
2628#include <$ac_header>
2629_ACEOF
2630if { (eval echo "$as_me:2630: \"$ac_cpp conftest.$ac_ext\"") >&5
2631  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2632  ac_status=$?
2633  egrep -v '^ *\+' conftest.er1 >conftest.err
2634  rm -f conftest.er1
2635  cat conftest.err >&5
2636  echo "$as_me:2636: \$? = $ac_status" >&5
2637  (exit $ac_status); } >/dev/null; then
2638  if test -s conftest.err; then
2639    ac_cpp_err=$ac_c_preproc_warn_flag
2640  else
2641    ac_cpp_err=
2642  fi
2643else
2644  ac_cpp_err=yes
2645fi
2646if test -z "$ac_cpp_err"; then
2647  eval "$as_ac_Header=yes"
2648else
2649  echo "$as_me: failed program was:" >&5
2650  cat conftest.$ac_ext >&5
2651  eval "$as_ac_Header=no"
2652fi
2653rm -f conftest.err conftest.$ac_ext
2654fi
2655echo "$as_me:2655: result: `eval echo '${'$as_ac_Header'}'`" >&5
2656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2657if test `eval echo '${'$as_ac_Header'}'` = yes; then
2658  cat >>confdefs.h <<EOF
2659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2660EOF
2661
2662else
2663  echo '#include "config.h"' >include/$ac_header.new
2664	echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
2665	if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
2666		rm -f include/$ac_header.new
2667	else
2668		mv -f include/$ac_header.new include/$ac_header
2669	fi
2670fi
2671done
2672
2673# Typedefs.
2674# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2675
2676for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2677                  inttypes.h stdint.h unistd.h
2678do
2679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2680echo "$as_me:2680: checking for $ac_header" >&5
2681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2682if eval "test \"\${$as_ac_Header+set}\" = set"; then
2683  echo $ECHO_N "(cached) $ECHO_C" >&6
2684else
2685  cat >conftest.$ac_ext <<_ACEOF
2686#line 2686 "configure"
2687#include "confdefs.h"
2688$ac_includes_default
2689#include <$ac_header>
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:2692: \"$ac_compile\"") >&5
2693  (eval $ac_compile) 2>&5
2694  ac_status=$?
2695  echo "$as_me:2695: \$? = $ac_status" >&5
2696  (exit $ac_status); } &&
2697         { ac_try='test -s conftest.$ac_objext'
2698  { (eval echo "$as_me:2698: \"$ac_try\"") >&5
2699  (eval $ac_try) 2>&5
2700  ac_status=$?
2701  echo "$as_me:2701: \$? = $ac_status" >&5
2702  (exit $ac_status); }; }; then
2703  eval "$as_ac_Header=yes"
2704else
2705  echo "$as_me: failed program was:" >&5
2706cat conftest.$ac_ext >&5
2707eval "$as_ac_Header=no"
2708fi
2709rm -f conftest.$ac_objext conftest.$ac_ext
2710fi
2711echo "$as_me:2711: result: `eval echo '${'$as_ac_Header'}'`" >&5
2712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2713if test `eval echo '${'$as_ac_Header'}'` = yes; then
2714  cat >>confdefs.h <<EOF
2715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2716EOF
2717
2718fi
2719done
2720
2721echo "$as_me:2721: checking for size_t" >&5
2722echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2723if test "${ac_cv_type_size_t+set}" = set; then
2724  echo $ECHO_N "(cached) $ECHO_C" >&6
2725else
2726  cat >conftest.$ac_ext <<_ACEOF
2727#line 2727 "configure"
2728#include "confdefs.h"
2729$ac_includes_default
2730int
2731main ()
2732{
2733if ((size_t *) 0)
2734  return 0;
2735if (sizeof (size_t))
2736  return 0;
2737  ;
2738  return 0;
2739}
2740_ACEOF
2741rm -f conftest.$ac_objext
2742if { (eval echo "$as_me:2742: \"$ac_compile\"") >&5
2743  (eval $ac_compile) 2>&5
2744  ac_status=$?
2745  echo "$as_me:2745: \$? = $ac_status" >&5
2746  (exit $ac_status); } &&
2747         { ac_try='test -s conftest.$ac_objext'
2748  { (eval echo "$as_me:2748: \"$ac_try\"") >&5
2749  (eval $ac_try) 2>&5
2750  ac_status=$?
2751  echo "$as_me:2751: \$? = $ac_status" >&5
2752  (exit $ac_status); }; }; then
2753  ac_cv_type_size_t=yes
2754else
2755  echo "$as_me: failed program was:" >&5
2756cat conftest.$ac_ext >&5
2757ac_cv_type_size_t=no
2758fi
2759rm -f conftest.$ac_objext conftest.$ac_ext
2760fi
2761echo "$as_me:2761: result: $ac_cv_type_size_t" >&5
2762echo "${ECHO_T}$ac_cv_type_size_t" >&6
2763if test $ac_cv_type_size_t = yes; then
2764  :
2765else
2766
2767cat >>confdefs.h <<EOF
2768#define size_t unsigned
2769EOF
2770
2771fi
2772
2773echo "$as_me:2773: checking for id_t" >&5
2774echo $ECHO_N "checking for id_t... $ECHO_C" >&6
2775if test "${ac_cv_type_id_t+set}" = set; then
2776  echo $ECHO_N "(cached) $ECHO_C" >&6
2777else
2778  cat >conftest.$ac_ext <<_ACEOF
2779#line 2779 "configure"
2780#include "confdefs.h"
2781$ac_includes_default
2782int
2783main ()
2784{
2785if ((id_t *) 0)
2786  return 0;
2787if (sizeof (id_t))
2788  return 0;
2789  ;
2790  return 0;
2791}
2792_ACEOF
2793rm -f conftest.$ac_objext
2794if { (eval echo "$as_me:2794: \"$ac_compile\"") >&5
2795  (eval $ac_compile) 2>&5
2796  ac_status=$?
2797  echo "$as_me:2797: \$? = $ac_status" >&5
2798  (exit $ac_status); } &&
2799         { ac_try='test -s conftest.$ac_objext'
2800  { (eval echo "$as_me:2800: \"$ac_try\"") >&5
2801  (eval $ac_try) 2>&5
2802  ac_status=$?
2803  echo "$as_me:2803: \$? = $ac_status" >&5
2804  (exit $ac_status); }; }; then
2805  ac_cv_type_id_t=yes
2806else
2807  echo "$as_me: failed program was:" >&5
2808cat conftest.$ac_ext >&5
2809ac_cv_type_id_t=no
2810fi
2811rm -f conftest.$ac_objext conftest.$ac_ext
2812fi
2813echo "$as_me:2813: result: $ac_cv_type_id_t" >&5
2814echo "${ECHO_T}$ac_cv_type_id_t" >&6
2815if test $ac_cv_type_id_t = yes; then
2816
2817cat >>confdefs.h <<EOF
2818#define HAVE_ID_T 1
2819EOF
2820
2821fi
2822echo "$as_me:2822: checking for long long" >&5
2823echo $ECHO_N "checking for long long... $ECHO_C" >&6
2824if test "${ac_cv_type_long_long+set}" = set; then
2825  echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827  cat >conftest.$ac_ext <<_ACEOF
2828#line 2828 "configure"
2829#include "confdefs.h"
2830$ac_includes_default
2831int
2832main ()
2833{
2834if ((long long *) 0)
2835  return 0;
2836if (sizeof (long long))
2837  return 0;
2838  ;
2839  return 0;
2840}
2841_ACEOF
2842rm -f conftest.$ac_objext
2843if { (eval echo "$as_me:2843: \"$ac_compile\"") >&5
2844  (eval $ac_compile) 2>&5
2845  ac_status=$?
2846  echo "$as_me:2846: \$? = $ac_status" >&5
2847  (exit $ac_status); } &&
2848         { ac_try='test -s conftest.$ac_objext'
2849  { (eval echo "$as_me:2849: \"$ac_try\"") >&5
2850  (eval $ac_try) 2>&5
2851  ac_status=$?
2852  echo "$as_me:2852: \$? = $ac_status" >&5
2853  (exit $ac_status); }; }; then
2854  ac_cv_type_long_long=yes
2855else
2856  echo "$as_me: failed program was:" >&5
2857cat conftest.$ac_ext >&5
2858ac_cv_type_long_long=no
2859fi
2860rm -f conftest.$ac_objext conftest.$ac_ext
2861fi
2862echo "$as_me:2862: result: $ac_cv_type_long_long" >&5
2863echo "${ECHO_T}$ac_cv_type_long_long" >&6
2864if test $ac_cv_type_long_long = yes; then
2865
2866cat >>confdefs.h <<EOF
2867#define HAVE_LONG_LONG 1
2868EOF
2869
2870fi
2871echo "$as_me:2871: checking for u_quad_t" >&5
2872echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
2873if test "${ac_cv_type_u_quad_t+set}" = set; then
2874  echo $ECHO_N "(cached) $ECHO_C" >&6
2875else
2876  cat >conftest.$ac_ext <<_ACEOF
2877#line 2877 "configure"
2878#include "confdefs.h"
2879$ac_includes_default
2880int
2881main ()
2882{
2883if ((u_quad_t *) 0)
2884  return 0;
2885if (sizeof (u_quad_t))
2886  return 0;
2887  ;
2888  return 0;
2889}
2890_ACEOF
2891rm -f conftest.$ac_objext
2892if { (eval echo "$as_me:2892: \"$ac_compile\"") >&5
2893  (eval $ac_compile) 2>&5
2894  ac_status=$?
2895  echo "$as_me:2895: \$? = $ac_status" >&5
2896  (exit $ac_status); } &&
2897         { ac_try='test -s conftest.$ac_objext'
2898  { (eval echo "$as_me:2898: \"$ac_try\"") >&5
2899  (eval $ac_try) 2>&5
2900  ac_status=$?
2901  echo "$as_me:2901: \$? = $ac_status" >&5
2902  (exit $ac_status); }; }; then
2903  ac_cv_type_u_quad_t=yes
2904else
2905  echo "$as_me: failed program was:" >&5
2906cat conftest.$ac_ext >&5
2907ac_cv_type_u_quad_t=no
2908fi
2909rm -f conftest.$ac_objext conftest.$ac_ext
2910fi
2911echo "$as_me:2911: result: $ac_cv_type_u_quad_t" >&5
2912echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
2913if test $ac_cv_type_u_quad_t = yes; then
2914
2915cat >>confdefs.h <<EOF
2916#define HAVE_U_QUAD_T 1
2917EOF
2918
2919fi
2920
2921	echo "$as_me:2921: checking for uint8_t" >&5
2922echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
2923if test "${ac_cv_type_uint8_t+set}" = set; then
2924  echo $ECHO_N "(cached) $ECHO_C" >&6
2925else
2926  cat >conftest.$ac_ext <<_ACEOF
2927#line 2927 "configure"
2928#include "confdefs.h"
2929$ac_includes_default
2930int
2931main ()
2932{
2933if ((uint8_t *) 0)
2934  return 0;
2935if (sizeof (uint8_t))
2936  return 0;
2937  ;
2938  return 0;
2939}
2940_ACEOF
2941rm -f conftest.$ac_objext
2942if { (eval echo "$as_me:2942: \"$ac_compile\"") >&5
2943  (eval $ac_compile) 2>&5
2944  ac_status=$?
2945  echo "$as_me:2945: \$? = $ac_status" >&5
2946  (exit $ac_status); } &&
2947         { ac_try='test -s conftest.$ac_objext'
2948  { (eval echo "$as_me:2948: \"$ac_try\"") >&5
2949  (eval $ac_try) 2>&5
2950  ac_status=$?
2951  echo "$as_me:2951: \$? = $ac_status" >&5
2952  (exit $ac_status); }; }; then
2953  ac_cv_type_uint8_t=yes
2954else
2955  echo "$as_me: failed program was:" >&5
2956cat conftest.$ac_ext >&5
2957ac_cv_type_uint8_t=no
2958fi
2959rm -f conftest.$ac_objext conftest.$ac_ext
2960fi
2961echo "$as_me:2961: result: $ac_cv_type_uint8_t" >&5
2962echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
2963if test $ac_cv_type_uint8_t = yes; then
2964  :
2965else
2966
2967		echo "$as_me:2967: checking for u_int8_t" >&5
2968echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
2969if test "${ac_cv_type_u_int8_t+set}" = set; then
2970  echo $ECHO_N "(cached) $ECHO_C" >&6
2971else
2972  cat >conftest.$ac_ext <<_ACEOF
2973#line 2973 "configure"
2974#include "confdefs.h"
2975$ac_includes_default
2976int
2977main ()
2978{
2979if ((u_int8_t *) 0)
2980  return 0;
2981if (sizeof (u_int8_t))
2982  return 0;
2983  ;
2984  return 0;
2985}
2986_ACEOF
2987rm -f conftest.$ac_objext
2988if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
2989  (eval $ac_compile) 2>&5
2990  ac_status=$?
2991  echo "$as_me:2991: \$? = $ac_status" >&5
2992  (exit $ac_status); } &&
2993         { ac_try='test -s conftest.$ac_objext'
2994  { (eval echo "$as_me:2994: \"$ac_try\"") >&5
2995  (eval $ac_try) 2>&5
2996  ac_status=$?
2997  echo "$as_me:2997: \$? = $ac_status" >&5
2998  (exit $ac_status); }; }; then
2999  ac_cv_type_u_int8_t=yes
3000else
3001  echo "$as_me: failed program was:" >&5
3002cat conftest.$ac_ext >&5
3003ac_cv_type_u_int8_t=no
3004fi
3005rm -f conftest.$ac_objext conftest.$ac_ext
3006fi
3007echo "$as_me:3007: result: $ac_cv_type_u_int8_t" >&5
3008echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3009if test $ac_cv_type_u_int8_t = yes; then
3010  cat >>confdefs.h <<\EOF
3011#define uint8_t u_int8_t
3012EOF
3013
3014else
3015  { { echo "$as_me:3015: error: cannot find a suitable type for uint8_t" >&5
3016echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
3017   { (exit 1); exit 1; }; }
3018fi
3019
3020fi
3021
3022	echo "$as_me:3022: checking for u_int8_t" >&5
3023echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
3024if test "${ac_cv_type_u_int8_t+set}" = set; then
3025  echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027  cat >conftest.$ac_ext <<_ACEOF
3028#line 3028 "configure"
3029#include "confdefs.h"
3030$ac_includes_default
3031int
3032main ()
3033{
3034if ((u_int8_t *) 0)
3035  return 0;
3036if (sizeof (u_int8_t))
3037  return 0;
3038  ;
3039  return 0;
3040}
3041_ACEOF
3042rm -f conftest.$ac_objext
3043if { (eval echo "$as_me:3043: \"$ac_compile\"") >&5
3044  (eval $ac_compile) 2>&5
3045  ac_status=$?
3046  echo "$as_me:3046: \$? = $ac_status" >&5
3047  (exit $ac_status); } &&
3048         { ac_try='test -s conftest.$ac_objext'
3049  { (eval echo "$as_me:3049: \"$ac_try\"") >&5
3050  (eval $ac_try) 2>&5
3051  ac_status=$?
3052  echo "$as_me:3052: \$? = $ac_status" >&5
3053  (exit $ac_status); }; }; then
3054  ac_cv_type_u_int8_t=yes
3055else
3056  echo "$as_me: failed program was:" >&5
3057cat conftest.$ac_ext >&5
3058ac_cv_type_u_int8_t=no
3059fi
3060rm -f conftest.$ac_objext conftest.$ac_ext
3061fi
3062echo "$as_me:3062: result: $ac_cv_type_u_int8_t" >&5
3063echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3064if test $ac_cv_type_u_int8_t = yes; then
3065  :
3066else
3067
3068		echo "$as_me:3068: checking for uint8_t" >&5
3069echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
3070if test "${ac_cv_type_uint8_t+set}" = set; then
3071  echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073  cat >conftest.$ac_ext <<_ACEOF
3074#line 3074 "configure"
3075#include "confdefs.h"
3076$ac_includes_default
3077int
3078main ()
3079{
3080if ((uint8_t *) 0)
3081  return 0;
3082if (sizeof (uint8_t))
3083  return 0;
3084  ;
3085  return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext
3089if { (eval echo "$as_me:3089: \"$ac_compile\"") >&5
3090  (eval $ac_compile) 2>&5
3091  ac_status=$?
3092  echo "$as_me:3092: \$? = $ac_status" >&5
3093  (exit $ac_status); } &&
3094         { ac_try='test -s conftest.$ac_objext'
3095  { (eval echo "$as_me:3095: \"$ac_try\"") >&5
3096  (eval $ac_try) 2>&5
3097  ac_status=$?
3098  echo "$as_me:3098: \$? = $ac_status" >&5
3099  (exit $ac_status); }; }; then
3100  ac_cv_type_uint8_t=yes
3101else
3102  echo "$as_me: failed program was:" >&5
3103cat conftest.$ac_ext >&5
3104ac_cv_type_uint8_t=no
3105fi
3106rm -f conftest.$ac_objext conftest.$ac_ext
3107fi
3108echo "$as_me:3108: result: $ac_cv_type_uint8_t" >&5
3109echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
3110if test $ac_cv_type_uint8_t = yes; then
3111  cat >>confdefs.h <<\EOF
3112#define u_int8_t uint8_t
3113EOF
3114
3115else
3116  { { echo "$as_me:3116: error: cannot find a suitable type for u_int8_t" >&5
3117echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
3118   { (exit 1); exit 1; }; }
3119fi
3120
3121fi
3122
3123	echo "$as_me:3123: checking for uint16_t" >&5
3124echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3125if test "${ac_cv_type_uint16_t+set}" = set; then
3126  echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128  cat >conftest.$ac_ext <<_ACEOF
3129#line 3129 "configure"
3130#include "confdefs.h"
3131$ac_includes_default
3132int
3133main ()
3134{
3135if ((uint16_t *) 0)
3136  return 0;
3137if (sizeof (uint16_t))
3138  return 0;
3139  ;
3140  return 0;
3141}
3142_ACEOF
3143rm -f conftest.$ac_objext
3144if { (eval echo "$as_me:3144: \"$ac_compile\"") >&5
3145  (eval $ac_compile) 2>&5
3146  ac_status=$?
3147  echo "$as_me:3147: \$? = $ac_status" >&5
3148  (exit $ac_status); } &&
3149         { ac_try='test -s conftest.$ac_objext'
3150  { (eval echo "$as_me:3150: \"$ac_try\"") >&5
3151  (eval $ac_try) 2>&5
3152  ac_status=$?
3153  echo "$as_me:3153: \$? = $ac_status" >&5
3154  (exit $ac_status); }; }; then
3155  ac_cv_type_uint16_t=yes
3156else
3157  echo "$as_me: failed program was:" >&5
3158cat conftest.$ac_ext >&5
3159ac_cv_type_uint16_t=no
3160fi
3161rm -f conftest.$ac_objext conftest.$ac_ext
3162fi
3163echo "$as_me:3163: result: $ac_cv_type_uint16_t" >&5
3164echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3165if test $ac_cv_type_uint16_t = yes; then
3166  :
3167else
3168
3169		echo "$as_me:3169: checking for u_int16_t" >&5
3170echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3171if test "${ac_cv_type_u_int16_t+set}" = set; then
3172  echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174  cat >conftest.$ac_ext <<_ACEOF
3175#line 3175 "configure"
3176#include "confdefs.h"
3177$ac_includes_default
3178int
3179main ()
3180{
3181if ((u_int16_t *) 0)
3182  return 0;
3183if (sizeof (u_int16_t))
3184  return 0;
3185  ;
3186  return 0;
3187}
3188_ACEOF
3189rm -f conftest.$ac_objext
3190if { (eval echo "$as_me:3190: \"$ac_compile\"") >&5
3191  (eval $ac_compile) 2>&5
3192  ac_status=$?
3193  echo "$as_me:3193: \$? = $ac_status" >&5
3194  (exit $ac_status); } &&
3195         { ac_try='test -s conftest.$ac_objext'
3196  { (eval echo "$as_me:3196: \"$ac_try\"") >&5
3197  (eval $ac_try) 2>&5
3198  ac_status=$?
3199  echo "$as_me:3199: \$? = $ac_status" >&5
3200  (exit $ac_status); }; }; then
3201  ac_cv_type_u_int16_t=yes
3202else
3203  echo "$as_me: failed program was:" >&5
3204cat conftest.$ac_ext >&5
3205ac_cv_type_u_int16_t=no
3206fi
3207rm -f conftest.$ac_objext conftest.$ac_ext
3208fi
3209echo "$as_me:3209: result: $ac_cv_type_u_int16_t" >&5
3210echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3211if test $ac_cv_type_u_int16_t = yes; then
3212  cat >>confdefs.h <<\EOF
3213#define uint16_t u_int16_t
3214EOF
3215
3216else
3217  { { echo "$as_me:3217: error: cannot find a suitable type for uint16_t" >&5
3218echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
3219   { (exit 1); exit 1; }; }
3220fi
3221
3222fi
3223
3224	echo "$as_me:3224: checking for u_int16_t" >&5
3225echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3226if test "${ac_cv_type_u_int16_t+set}" = set; then
3227  echo $ECHO_N "(cached) $ECHO_C" >&6
3228else
3229  cat >conftest.$ac_ext <<_ACEOF
3230#line 3230 "configure"
3231#include "confdefs.h"
3232$ac_includes_default
3233int
3234main ()
3235{
3236if ((u_int16_t *) 0)
3237  return 0;
3238if (sizeof (u_int16_t))
3239  return 0;
3240  ;
3241  return 0;
3242}
3243_ACEOF
3244rm -f conftest.$ac_objext
3245if { (eval echo "$as_me:3245: \"$ac_compile\"") >&5
3246  (eval $ac_compile) 2>&5
3247  ac_status=$?
3248  echo "$as_me:3248: \$? = $ac_status" >&5
3249  (exit $ac_status); } &&
3250         { ac_try='test -s conftest.$ac_objext'
3251  { (eval echo "$as_me:3251: \"$ac_try\"") >&5
3252  (eval $ac_try) 2>&5
3253  ac_status=$?
3254  echo "$as_me:3254: \$? = $ac_status" >&5
3255  (exit $ac_status); }; }; then
3256  ac_cv_type_u_int16_t=yes
3257else
3258  echo "$as_me: failed program was:" >&5
3259cat conftest.$ac_ext >&5
3260ac_cv_type_u_int16_t=no
3261fi
3262rm -f conftest.$ac_objext conftest.$ac_ext
3263fi
3264echo "$as_me:3264: result: $ac_cv_type_u_int16_t" >&5
3265echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3266if test $ac_cv_type_u_int16_t = yes; then
3267  :
3268else
3269
3270		echo "$as_me:3270: checking for uint16_t" >&5
3271echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3272if test "${ac_cv_type_uint16_t+set}" = set; then
3273  echo $ECHO_N "(cached) $ECHO_C" >&6
3274else
3275  cat >conftest.$ac_ext <<_ACEOF
3276#line 3276 "configure"
3277#include "confdefs.h"
3278$ac_includes_default
3279int
3280main ()
3281{
3282if ((uint16_t *) 0)
3283  return 0;
3284if (sizeof (uint16_t))
3285  return 0;
3286  ;
3287  return 0;
3288}
3289_ACEOF
3290rm -f conftest.$ac_objext
3291if { (eval echo "$as_me:3291: \"$ac_compile\"") >&5
3292  (eval $ac_compile) 2>&5
3293  ac_status=$?
3294  echo "$as_me:3294: \$? = $ac_status" >&5
3295  (exit $ac_status); } &&
3296         { ac_try='test -s conftest.$ac_objext'
3297  { (eval echo "$as_me:3297: \"$ac_try\"") >&5
3298  (eval $ac_try) 2>&5
3299  ac_status=$?
3300  echo "$as_me:3300: \$? = $ac_status" >&5
3301  (exit $ac_status); }; }; then
3302  ac_cv_type_uint16_t=yes
3303else
3304  echo "$as_me: failed program was:" >&5
3305cat conftest.$ac_ext >&5
3306ac_cv_type_uint16_t=no
3307fi
3308rm -f conftest.$ac_objext conftest.$ac_ext
3309fi
3310echo "$as_me:3310: result: $ac_cv_type_uint16_t" >&5
3311echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3312if test $ac_cv_type_uint16_t = yes; then
3313  cat >>confdefs.h <<\EOF
3314#define u_int16_t uint16_t
3315EOF
3316
3317else
3318  { { echo "$as_me:3318: error: cannot find a suitable type for u_int16_t" >&5
3319echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
3320   { (exit 1); exit 1; }; }
3321fi
3322
3323fi
3324
3325	echo "$as_me:3325: checking for uint32_t" >&5
3326echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3327if test "${ac_cv_type_uint32_t+set}" = set; then
3328  echo $ECHO_N "(cached) $ECHO_C" >&6
3329else
3330  cat >conftest.$ac_ext <<_ACEOF
3331#line 3331 "configure"
3332#include "confdefs.h"
3333$ac_includes_default
3334int
3335main ()
3336{
3337if ((uint32_t *) 0)
3338  return 0;
3339if (sizeof (uint32_t))
3340  return 0;
3341  ;
3342  return 0;
3343}
3344_ACEOF
3345rm -f conftest.$ac_objext
3346if { (eval echo "$as_me:3346: \"$ac_compile\"") >&5
3347  (eval $ac_compile) 2>&5
3348  ac_status=$?
3349  echo "$as_me:3349: \$? = $ac_status" >&5
3350  (exit $ac_status); } &&
3351         { ac_try='test -s conftest.$ac_objext'
3352  { (eval echo "$as_me:3352: \"$ac_try\"") >&5
3353  (eval $ac_try) 2>&5
3354  ac_status=$?
3355  echo "$as_me:3355: \$? = $ac_status" >&5
3356  (exit $ac_status); }; }; then
3357  ac_cv_type_uint32_t=yes
3358else
3359  echo "$as_me: failed program was:" >&5
3360cat conftest.$ac_ext >&5
3361ac_cv_type_uint32_t=no
3362fi
3363rm -f conftest.$ac_objext conftest.$ac_ext
3364fi
3365echo "$as_me:3365: result: $ac_cv_type_uint32_t" >&5
3366echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3367if test $ac_cv_type_uint32_t = yes; then
3368  :
3369else
3370
3371		echo "$as_me:3371: checking for u_int32_t" >&5
3372echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3373if test "${ac_cv_type_u_int32_t+set}" = set; then
3374  echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376  cat >conftest.$ac_ext <<_ACEOF
3377#line 3377 "configure"
3378#include "confdefs.h"
3379$ac_includes_default
3380int
3381main ()
3382{
3383if ((u_int32_t *) 0)
3384  return 0;
3385if (sizeof (u_int32_t))
3386  return 0;
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391rm -f conftest.$ac_objext
3392if { (eval echo "$as_me:3392: \"$ac_compile\"") >&5
3393  (eval $ac_compile) 2>&5
3394  ac_status=$?
3395  echo "$as_me:3395: \$? = $ac_status" >&5
3396  (exit $ac_status); } &&
3397         { ac_try='test -s conftest.$ac_objext'
3398  { (eval echo "$as_me:3398: \"$ac_try\"") >&5
3399  (eval $ac_try) 2>&5
3400  ac_status=$?
3401  echo "$as_me:3401: \$? = $ac_status" >&5
3402  (exit $ac_status); }; }; then
3403  ac_cv_type_u_int32_t=yes
3404else
3405  echo "$as_me: failed program was:" >&5
3406cat conftest.$ac_ext >&5
3407ac_cv_type_u_int32_t=no
3408fi
3409rm -f conftest.$ac_objext conftest.$ac_ext
3410fi
3411echo "$as_me:3411: result: $ac_cv_type_u_int32_t" >&5
3412echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3413if test $ac_cv_type_u_int32_t = yes; then
3414  cat >>confdefs.h <<\EOF
3415#define uint32_t u_int32_t
3416EOF
3417
3418else
3419  { { echo "$as_me:3419: error: cannot find a suitable type for uint32_t" >&5
3420echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
3421   { (exit 1); exit 1; }; }
3422fi
3423
3424fi
3425
3426	echo "$as_me:3426: checking for u_int32_t" >&5
3427echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3428if test "${ac_cv_type_u_int32_t+set}" = set; then
3429  echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431  cat >conftest.$ac_ext <<_ACEOF
3432#line 3432 "configure"
3433#include "confdefs.h"
3434$ac_includes_default
3435int
3436main ()
3437{
3438if ((u_int32_t *) 0)
3439  return 0;
3440if (sizeof (u_int32_t))
3441  return 0;
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446rm -f conftest.$ac_objext
3447if { (eval echo "$as_me:3447: \"$ac_compile\"") >&5
3448  (eval $ac_compile) 2>&5
3449  ac_status=$?
3450  echo "$as_me:3450: \$? = $ac_status" >&5
3451  (exit $ac_status); } &&
3452         { ac_try='test -s conftest.$ac_objext'
3453  { (eval echo "$as_me:3453: \"$ac_try\"") >&5
3454  (eval $ac_try) 2>&5
3455  ac_status=$?
3456  echo "$as_me:3456: \$? = $ac_status" >&5
3457  (exit $ac_status); }; }; then
3458  ac_cv_type_u_int32_t=yes
3459else
3460  echo "$as_me: failed program was:" >&5
3461cat conftest.$ac_ext >&5
3462ac_cv_type_u_int32_t=no
3463fi
3464rm -f conftest.$ac_objext conftest.$ac_ext
3465fi
3466echo "$as_me:3466: result: $ac_cv_type_u_int32_t" >&5
3467echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3468if test $ac_cv_type_u_int32_t = yes; then
3469  :
3470else
3471
3472		echo "$as_me:3472: checking for uint32_t" >&5
3473echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3474if test "${ac_cv_type_uint32_t+set}" = set; then
3475  echo $ECHO_N "(cached) $ECHO_C" >&6
3476else
3477  cat >conftest.$ac_ext <<_ACEOF
3478#line 3478 "configure"
3479#include "confdefs.h"
3480$ac_includes_default
3481int
3482main ()
3483{
3484if ((uint32_t *) 0)
3485  return 0;
3486if (sizeof (uint32_t))
3487  return 0;
3488  ;
3489  return 0;
3490}
3491_ACEOF
3492rm -f conftest.$ac_objext
3493if { (eval echo "$as_me:3493: \"$ac_compile\"") >&5
3494  (eval $ac_compile) 2>&5
3495  ac_status=$?
3496  echo "$as_me:3496: \$? = $ac_status" >&5
3497  (exit $ac_status); } &&
3498         { ac_try='test -s conftest.$ac_objext'
3499  { (eval echo "$as_me:3499: \"$ac_try\"") >&5
3500  (eval $ac_try) 2>&5
3501  ac_status=$?
3502  echo "$as_me:3502: \$? = $ac_status" >&5
3503  (exit $ac_status); }; }; then
3504  ac_cv_type_uint32_t=yes
3505else
3506  echo "$as_me: failed program was:" >&5
3507cat conftest.$ac_ext >&5
3508ac_cv_type_uint32_t=no
3509fi
3510rm -f conftest.$ac_objext conftest.$ac_ext
3511fi
3512echo "$as_me:3512: result: $ac_cv_type_uint32_t" >&5
3513echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3514if test $ac_cv_type_uint32_t = yes; then
3515  cat >>confdefs.h <<\EOF
3516#define u_int32_t uint32_t
3517EOF
3518
3519else
3520  { { echo "$as_me:3520: error: cannot find a suitable type for u_int32_t" >&5
3521echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
3522   { (exit 1); exit 1; }; }
3523fi
3524
3525fi
3526
3527	echo "$as_me:3527: checking for uint64_t" >&5
3528echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3529if test "${ac_cv_type_uint64_t+set}" = set; then
3530  echo $ECHO_N "(cached) $ECHO_C" >&6
3531else
3532  cat >conftest.$ac_ext <<_ACEOF
3533#line 3533 "configure"
3534#include "confdefs.h"
3535$ac_includes_default
3536int
3537main ()
3538{
3539if ((uint64_t *) 0)
3540  return 0;
3541if (sizeof (uint64_t))
3542  return 0;
3543  ;
3544  return 0;
3545}
3546_ACEOF
3547rm -f conftest.$ac_objext
3548if { (eval echo "$as_me:3548: \"$ac_compile\"") >&5
3549  (eval $ac_compile) 2>&5
3550  ac_status=$?
3551  echo "$as_me:3551: \$? = $ac_status" >&5
3552  (exit $ac_status); } &&
3553         { ac_try='test -s conftest.$ac_objext'
3554  { (eval echo "$as_me:3554: \"$ac_try\"") >&5
3555  (eval $ac_try) 2>&5
3556  ac_status=$?
3557  echo "$as_me:3557: \$? = $ac_status" >&5
3558  (exit $ac_status); }; }; then
3559  ac_cv_type_uint64_t=yes
3560else
3561  echo "$as_me: failed program was:" >&5
3562cat conftest.$ac_ext >&5
3563ac_cv_type_uint64_t=no
3564fi
3565rm -f conftest.$ac_objext conftest.$ac_ext
3566fi
3567echo "$as_me:3567: result: $ac_cv_type_uint64_t" >&5
3568echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3569if test $ac_cv_type_uint64_t = yes; then
3570  :
3571else
3572
3573		echo "$as_me:3573: checking for u_int64_t" >&5
3574echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3575if test "${ac_cv_type_u_int64_t+set}" = set; then
3576  echo $ECHO_N "(cached) $ECHO_C" >&6
3577else
3578  cat >conftest.$ac_ext <<_ACEOF
3579#line 3579 "configure"
3580#include "confdefs.h"
3581$ac_includes_default
3582int
3583main ()
3584{
3585if ((u_int64_t *) 0)
3586  return 0;
3587if (sizeof (u_int64_t))
3588  return 0;
3589  ;
3590  return 0;
3591}
3592_ACEOF
3593rm -f conftest.$ac_objext
3594if { (eval echo "$as_me:3594: \"$ac_compile\"") >&5
3595  (eval $ac_compile) 2>&5
3596  ac_status=$?
3597  echo "$as_me:3597: \$? = $ac_status" >&5
3598  (exit $ac_status); } &&
3599         { ac_try='test -s conftest.$ac_objext'
3600  { (eval echo "$as_me:3600: \"$ac_try\"") >&5
3601  (eval $ac_try) 2>&5
3602  ac_status=$?
3603  echo "$as_me:3603: \$? = $ac_status" >&5
3604  (exit $ac_status); }; }; then
3605  ac_cv_type_u_int64_t=yes
3606else
3607  echo "$as_me: failed program was:" >&5
3608cat conftest.$ac_ext >&5
3609ac_cv_type_u_int64_t=no
3610fi
3611rm -f conftest.$ac_objext conftest.$ac_ext
3612fi
3613echo "$as_me:3613: result: $ac_cv_type_u_int64_t" >&5
3614echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3615if test $ac_cv_type_u_int64_t = yes; then
3616  cat >>confdefs.h <<\EOF
3617#define uint64_t u_int64_t
3618EOF
3619
3620else
3621  { { echo "$as_me:3621: error: cannot find a suitable type for uint64_t" >&5
3622echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
3623   { (exit 1); exit 1; }; }
3624fi
3625
3626fi
3627
3628	echo "$as_me:3628: checking for u_int64_t" >&5
3629echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3630if test "${ac_cv_type_u_int64_t+set}" = set; then
3631  echo $ECHO_N "(cached) $ECHO_C" >&6
3632else
3633  cat >conftest.$ac_ext <<_ACEOF
3634#line 3634 "configure"
3635#include "confdefs.h"
3636$ac_includes_default
3637int
3638main ()
3639{
3640if ((u_int64_t *) 0)
3641  return 0;
3642if (sizeof (u_int64_t))
3643  return 0;
3644  ;
3645  return 0;
3646}
3647_ACEOF
3648rm -f conftest.$ac_objext
3649if { (eval echo "$as_me:3649: \"$ac_compile\"") >&5
3650  (eval $ac_compile) 2>&5
3651  ac_status=$?
3652  echo "$as_me:3652: \$? = $ac_status" >&5
3653  (exit $ac_status); } &&
3654         { ac_try='test -s conftest.$ac_objext'
3655  { (eval echo "$as_me:3655: \"$ac_try\"") >&5
3656  (eval $ac_try) 2>&5
3657  ac_status=$?
3658  echo "$as_me:3658: \$? = $ac_status" >&5
3659  (exit $ac_status); }; }; then
3660  ac_cv_type_u_int64_t=yes
3661else
3662  echo "$as_me: failed program was:" >&5
3663cat conftest.$ac_ext >&5
3664ac_cv_type_u_int64_t=no
3665fi
3666rm -f conftest.$ac_objext conftest.$ac_ext
3667fi
3668echo "$as_me:3668: result: $ac_cv_type_u_int64_t" >&5
3669echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3670if test $ac_cv_type_u_int64_t = yes; then
3671  :
3672else
3673
3674		echo "$as_me:3674: checking for uint64_t" >&5
3675echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3676if test "${ac_cv_type_uint64_t+set}" = set; then
3677  echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679  cat >conftest.$ac_ext <<_ACEOF
3680#line 3680 "configure"
3681#include "confdefs.h"
3682$ac_includes_default
3683int
3684main ()
3685{
3686if ((uint64_t *) 0)
3687  return 0;
3688if (sizeof (uint64_t))
3689  return 0;
3690  ;
3691  return 0;
3692}
3693_ACEOF
3694rm -f conftest.$ac_objext
3695if { (eval echo "$as_me:3695: \"$ac_compile\"") >&5
3696  (eval $ac_compile) 2>&5
3697  ac_status=$?
3698  echo "$as_me:3698: \$? = $ac_status" >&5
3699  (exit $ac_status); } &&
3700         { ac_try='test -s conftest.$ac_objext'
3701  { (eval echo "$as_me:3701: \"$ac_try\"") >&5
3702  (eval $ac_try) 2>&5
3703  ac_status=$?
3704  echo "$as_me:3704: \$? = $ac_status" >&5
3705  (exit $ac_status); }; }; then
3706  ac_cv_type_uint64_t=yes
3707else
3708  echo "$as_me: failed program was:" >&5
3709cat conftest.$ac_ext >&5
3710ac_cv_type_uint64_t=no
3711fi
3712rm -f conftest.$ac_objext conftest.$ac_ext
3713fi
3714echo "$as_me:3714: result: $ac_cv_type_uint64_t" >&5
3715echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3716if test $ac_cv_type_uint64_t = yes; then
3717  cat >>confdefs.h <<\EOF
3718#define u_int64_t uint64_t
3719EOF
3720
3721else
3722  { { echo "$as_me:3722: error: cannot find a suitable type for u_int64_t" >&5
3723echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
3724   { (exit 1); exit 1; }; }
3725fi
3726
3727fi
3728
3729# Struct members.
3730echo "$as_me:3730: checking for DIR.dd_fd" >&5
3731echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
3732if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
3733  echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735  cat >conftest.$ac_ext <<_ACEOF
3736#line 3736 "configure"
3737#include "confdefs.h"
3738#include <dirent.h>
3739
3740int
3741main ()
3742{
3743static DIR ac_aggr;
3744if (ac_aggr.dd_fd)
3745return 0;
3746  ;
3747  return 0;
3748}
3749_ACEOF
3750rm -f conftest.$ac_objext
3751if { (eval echo "$as_me:3751: \"$ac_compile\"") >&5
3752  (eval $ac_compile) 2>&5
3753  ac_status=$?
3754  echo "$as_me:3754: \$? = $ac_status" >&5
3755  (exit $ac_status); } &&
3756         { ac_try='test -s conftest.$ac_objext'
3757  { (eval echo "$as_me:3757: \"$ac_try\"") >&5
3758  (eval $ac_try) 2>&5
3759  ac_status=$?
3760  echo "$as_me:3760: \$? = $ac_status" >&5
3761  (exit $ac_status); }; }; then
3762  ac_cv_member_DIR_dd_fd=yes
3763else
3764  echo "$as_me: failed program was:" >&5
3765cat conftest.$ac_ext >&5
3766ac_cv_member_DIR_dd_fd=no
3767fi
3768rm -f conftest.$ac_objext conftest.$ac_ext
3769fi
3770echo "$as_me:3770: result: $ac_cv_member_DIR_dd_fd" >&5
3771echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
3772if test $ac_cv_member_DIR_dd_fd = yes; then
3773
3774cat >>confdefs.h <<EOF
3775#define HAVE_DIR_DD_FD 1
3776EOF
3777
3778fi
3779echo "$as_me:3779: checking for struct dirent.d_namlen" >&5
3780echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
3781if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
3782  echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784  cat >conftest.$ac_ext <<_ACEOF
3785#line 3785 "configure"
3786#include "confdefs.h"
3787#include <dirent.h>
3788
3789int
3790main ()
3791{
3792static struct dirent ac_aggr;
3793if (ac_aggr.d_namlen)
3794return 0;
3795  ;
3796  return 0;
3797}
3798_ACEOF
3799rm -f conftest.$ac_objext
3800if { (eval echo "$as_me:3800: \"$ac_compile\"") >&5
3801  (eval $ac_compile) 2>&5
3802  ac_status=$?
3803  echo "$as_me:3803: \$? = $ac_status" >&5
3804  (exit $ac_status); } &&
3805         { ac_try='test -s conftest.$ac_objext'
3806  { (eval echo "$as_me:3806: \"$ac_try\"") >&5
3807  (eval $ac_try) 2>&5
3808  ac_status=$?
3809  echo "$as_me:3809: \$? = $ac_status" >&5
3810  (exit $ac_status); }; }; then
3811  ac_cv_member_struct_dirent_d_namlen=yes
3812else
3813  echo "$as_me: failed program was:" >&5
3814cat conftest.$ac_ext >&5
3815ac_cv_member_struct_dirent_d_namlen=no
3816fi
3817rm -f conftest.$ac_objext conftest.$ac_ext
3818fi
3819echo "$as_me:3819: result: $ac_cv_member_struct_dirent_d_namlen" >&5
3820echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
3821if test $ac_cv_member_struct_dirent_d_namlen = yes; then
3822
3823cat >>confdefs.h <<EOF
3824#define HAVE_STRUCT_DIRENT_D_NAMLEN 1
3825EOF
3826
3827fi
3828
3829echo "$as_me:3829: checking for struct stat.st_flags" >&5
3830echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
3831if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
3832  echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834  cat >conftest.$ac_ext <<_ACEOF
3835#line 3835 "configure"
3836#include "confdefs.h"
3837#include <sys/stat.h>
3838
3839int
3840main ()
3841{
3842static struct stat ac_aggr;
3843if (ac_aggr.st_flags)
3844return 0;
3845  ;
3846  return 0;
3847}
3848_ACEOF
3849rm -f conftest.$ac_objext
3850if { (eval echo "$as_me:3850: \"$ac_compile\"") >&5
3851  (eval $ac_compile) 2>&5
3852  ac_status=$?
3853  echo "$as_me:3853: \$? = $ac_status" >&5
3854  (exit $ac_status); } &&
3855         { ac_try='test -s conftest.$ac_objext'
3856  { (eval echo "$as_me:3856: \"$ac_try\"") >&5
3857  (eval $ac_try) 2>&5
3858  ac_status=$?
3859  echo "$as_me:3859: \$? = $ac_status" >&5
3860  (exit $ac_status); }; }; then
3861  ac_cv_member_struct_stat_st_flags=yes
3862else
3863  echo "$as_me: failed program was:" >&5
3864cat conftest.$ac_ext >&5
3865ac_cv_member_struct_stat_st_flags=no
3866fi
3867rm -f conftest.$ac_objext conftest.$ac_ext
3868fi
3869echo "$as_me:3869: result: $ac_cv_member_struct_stat_st_flags" >&5
3870echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
3871if test $ac_cv_member_struct_stat_st_flags = yes; then
3872
3873cat >>confdefs.h <<EOF
3874#define HAVE_STRUCT_STAT_ST_FLAGS 1
3875EOF
3876
3877fi
3878echo "$as_me:3878: checking for struct stat.st_gen" >&5
3879echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
3880if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
3881  echo $ECHO_N "(cached) $ECHO_C" >&6
3882else
3883  cat >conftest.$ac_ext <<_ACEOF
3884#line 3884 "configure"
3885#include "confdefs.h"
3886#include <sys/stat.h>
3887
3888int
3889main ()
3890{
3891static struct stat ac_aggr;
3892if (ac_aggr.st_gen)
3893return 0;
3894  ;
3895  return 0;
3896}
3897_ACEOF
3898rm -f conftest.$ac_objext
3899if { (eval echo "$as_me:3899: \"$ac_compile\"") >&5
3900  (eval $ac_compile) 2>&5
3901  ac_status=$?
3902  echo "$as_me:3902: \$? = $ac_status" >&5
3903  (exit $ac_status); } &&
3904         { ac_try='test -s conftest.$ac_objext'
3905  { (eval echo "$as_me:3905: \"$ac_try\"") >&5
3906  (eval $ac_try) 2>&5
3907  ac_status=$?
3908  echo "$as_me:3908: \$? = $ac_status" >&5
3909  (exit $ac_status); }; }; then
3910  ac_cv_member_struct_stat_st_gen=yes
3911else
3912  echo "$as_me: failed program was:" >&5
3913cat conftest.$ac_ext >&5
3914ac_cv_member_struct_stat_st_gen=no
3915fi
3916rm -f conftest.$ac_objext conftest.$ac_ext
3917fi
3918echo "$as_me:3918: result: $ac_cv_member_struct_stat_st_gen" >&5
3919echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
3920if test $ac_cv_member_struct_stat_st_gen = yes; then
3921
3922cat >>confdefs.h <<EOF
3923#define HAVE_STRUCT_STAT_ST_GEN 1
3924EOF
3925
3926fi
3927echo "$as_me:3927: checking for struct stat.st_mtimensec" >&5
3928echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
3929if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
3930  echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932  cat >conftest.$ac_ext <<_ACEOF
3933#line 3933 "configure"
3934#include "confdefs.h"
3935#include <sys/stat.h>
3936
3937int
3938main ()
3939{
3940static struct stat ac_aggr;
3941if (ac_aggr.st_mtimensec)
3942return 0;
3943  ;
3944  return 0;
3945}
3946_ACEOF
3947rm -f conftest.$ac_objext
3948if { (eval echo "$as_me:3948: \"$ac_compile\"") >&5
3949  (eval $ac_compile) 2>&5
3950  ac_status=$?
3951  echo "$as_me:3951: \$? = $ac_status" >&5
3952  (exit $ac_status); } &&
3953         { ac_try='test -s conftest.$ac_objext'
3954  { (eval echo "$as_me:3954: \"$ac_try\"") >&5
3955  (eval $ac_try) 2>&5
3956  ac_status=$?
3957  echo "$as_me:3957: \$? = $ac_status" >&5
3958  (exit $ac_status); }; }; then
3959  ac_cv_member_struct_stat_st_mtimensec=yes
3960else
3961  echo "$as_me: failed program was:" >&5
3962cat conftest.$ac_ext >&5
3963ac_cv_member_struct_stat_st_mtimensec=no
3964fi
3965rm -f conftest.$ac_objext conftest.$ac_ext
3966fi
3967echo "$as_me:3967: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
3968echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
3969if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
3970
3971cat >>confdefs.h <<EOF
3972#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
3973EOF
3974
3975fi
3976
3977echo "$as_me:3977: checking for struct statfs.f_iosize" >&5
3978echo $ECHO_N "checking for struct statfs.f_iosize... $ECHO_C" >&6
3979if test "${ac_cv_member_struct_statfs_f_iosize+set}" = set; then
3980  echo $ECHO_N "(cached) $ECHO_C" >&6
3981else
3982  cat >conftest.$ac_ext <<_ACEOF
3983#line 3983 "configure"
3984#include "confdefs.h"
3985#include <sys/mount.h>
3986
3987int
3988main ()
3989{
3990static struct statfs ac_aggr;
3991if (ac_aggr.f_iosize)
3992return 0;
3993  ;
3994  return 0;
3995}
3996_ACEOF
3997rm -f conftest.$ac_objext
3998if { (eval echo "$as_me:3998: \"$ac_compile\"") >&5
3999  (eval $ac_compile) 2>&5
4000  ac_status=$?
4001  echo "$as_me:4001: \$? = $ac_status" >&5
4002  (exit $ac_status); } &&
4003         { ac_try='test -s conftest.$ac_objext'
4004  { (eval echo "$as_me:4004: \"$ac_try\"") >&5
4005  (eval $ac_try) 2>&5
4006  ac_status=$?
4007  echo "$as_me:4007: \$? = $ac_status" >&5
4008  (exit $ac_status); }; }; then
4009  ac_cv_member_struct_statfs_f_iosize=yes
4010else
4011  echo "$as_me: failed program was:" >&5
4012cat conftest.$ac_ext >&5
4013ac_cv_member_struct_statfs_f_iosize=no
4014fi
4015rm -f conftest.$ac_objext conftest.$ac_ext
4016fi
4017echo "$as_me:4017: result: $ac_cv_member_struct_statfs_f_iosize" >&5
4018echo "${ECHO_T}$ac_cv_member_struct_statfs_f_iosize" >&6
4019if test $ac_cv_member_struct_statfs_f_iosize = yes; then
4020
4021cat >>confdefs.h <<EOF
4022#define HAVE_STRUCT_STATFS_F_IOSIZE 1
4023EOF
4024
4025fi
4026
4027# Global variable decls.
4028echo "$as_me:4028: checking whether optind is declared" >&5
4029echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
4030if test "${ac_cv_have_decl_optind+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
4037#include <stdio.h>
4038#include <stdlib.h>
4039#include <unistd.h>
4040
4041int
4042main ()
4043{
4044#ifndef optind
4045  char *p = (char *) optind;
4046#endif
4047
4048  ;
4049  return 0;
4050}
4051_ACEOF
4052rm -f conftest.$ac_objext
4053if { (eval echo "$as_me:4053: \"$ac_compile\"") >&5
4054  (eval $ac_compile) 2>&5
4055  ac_status=$?
4056  echo "$as_me:4056: \$? = $ac_status" >&5
4057  (exit $ac_status); } &&
4058         { ac_try='test -s conftest.$ac_objext'
4059  { (eval echo "$as_me:4059: \"$ac_try\"") >&5
4060  (eval $ac_try) 2>&5
4061  ac_status=$?
4062  echo "$as_me:4062: \$? = $ac_status" >&5
4063  (exit $ac_status); }; }; then
4064  ac_cv_have_decl_optind=yes
4065else
4066  echo "$as_me: failed program was:" >&5
4067cat conftest.$ac_ext >&5
4068ac_cv_have_decl_optind=no
4069fi
4070rm -f conftest.$ac_objext conftest.$ac_ext
4071fi
4072echo "$as_me:4072: result: $ac_cv_have_decl_optind" >&5
4073echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
4074if test $ac_cv_have_decl_optind = yes; then
4075
4076cat >>confdefs.h <<EOF
4077#define HAVE_DECL_OPTIND 1
4078EOF
4079
4080else
4081  cat >>confdefs.h <<EOF
4082#define HAVE_DECL_OPTIND 0
4083EOF
4084
4085fi
4086echo "$as_me:4086: checking whether optreset is declared" >&5
4087echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
4088if test "${ac_cv_have_decl_optreset+set}" = set; then
4089  echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091  cat >conftest.$ac_ext <<_ACEOF
4092#line 4092 "configure"
4093#include "confdefs.h"
4094
4095#include <stdio.h>
4096#include <stdlib.h>
4097#include <unistd.h>
4098
4099int
4100main ()
4101{
4102#ifndef optreset
4103  char *p = (char *) optreset;
4104#endif
4105
4106  ;
4107  return 0;
4108}
4109_ACEOF
4110rm -f conftest.$ac_objext
4111if { (eval echo "$as_me:4111: \"$ac_compile\"") >&5
4112  (eval $ac_compile) 2>&5
4113  ac_status=$?
4114  echo "$as_me:4114: \$? = $ac_status" >&5
4115  (exit $ac_status); } &&
4116         { ac_try='test -s conftest.$ac_objext'
4117  { (eval echo "$as_me:4117: \"$ac_try\"") >&5
4118  (eval $ac_try) 2>&5
4119  ac_status=$?
4120  echo "$as_me:4120: \$? = $ac_status" >&5
4121  (exit $ac_status); }; }; then
4122  ac_cv_have_decl_optreset=yes
4123else
4124  echo "$as_me: failed program was:" >&5
4125cat conftest.$ac_ext >&5
4126ac_cv_have_decl_optreset=no
4127fi
4128rm -f conftest.$ac_objext conftest.$ac_ext
4129fi
4130echo "$as_me:4130: result: $ac_cv_have_decl_optreset" >&5
4131echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
4132if test $ac_cv_have_decl_optreset = yes; then
4133
4134cat >>confdefs.h <<EOF
4135#define HAVE_DECL_OPTRESET 1
4136EOF
4137
4138else
4139  cat >>confdefs.h <<EOF
4140#define HAVE_DECL_OPTRESET 0
4141EOF
4142
4143fi
4144
4145echo "$as_me:4145: checking whether sys_signame is declared" >&5
4146echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
4147if test "${ac_cv_have_decl_sys_signame+set}" = set; then
4148  echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150  cat >conftest.$ac_ext <<_ACEOF
4151#line 4151 "configure"
4152#include "confdefs.h"
4153#include <signal.h>
4154
4155int
4156main ()
4157{
4158#ifndef sys_signame
4159  char *p = (char *) sys_signame;
4160#endif
4161
4162  ;
4163  return 0;
4164}
4165_ACEOF
4166rm -f conftest.$ac_objext
4167if { (eval echo "$as_me:4167: \"$ac_compile\"") >&5
4168  (eval $ac_compile) 2>&5
4169  ac_status=$?
4170  echo "$as_me:4170: \$? = $ac_status" >&5
4171  (exit $ac_status); } &&
4172         { ac_try='test -s conftest.$ac_objext'
4173  { (eval echo "$as_me:4173: \"$ac_try\"") >&5
4174  (eval $ac_try) 2>&5
4175  ac_status=$?
4176  echo "$as_me:4176: \$? = $ac_status" >&5
4177  (exit $ac_status); }; }; then
4178  ac_cv_have_decl_sys_signame=yes
4179else
4180  echo "$as_me: failed program was:" >&5
4181cat conftest.$ac_ext >&5
4182ac_cv_have_decl_sys_signame=no
4183fi
4184rm -f conftest.$ac_objext conftest.$ac_ext
4185fi
4186echo "$as_me:4186: result: $ac_cv_have_decl_sys_signame" >&5
4187echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
4188if test $ac_cv_have_decl_sys_signame = yes; then
4189
4190cat >>confdefs.h <<EOF
4191#define HAVE_DECL_SYS_SIGNAME 1
4192EOF
4193
4194else
4195  cat >>confdefs.h <<EOF
4196#define HAVE_DECL_SYS_SIGNAME 0
4197EOF
4198
4199fi
4200
4201# Library functions (where a .h check isn't enough).
4202# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4203# for constant arguments.  Useless!
4204echo "$as_me:4204: checking for working alloca.h" >&5
4205echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4206if test "${ac_cv_working_alloca_h+set}" = set; then
4207  echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209  cat >conftest.$ac_ext <<_ACEOF
4210#line 4210 "configure"
4211#include "confdefs.h"
4212#include <alloca.h>
4213int
4214main ()
4215{
4216char *p = (char *) alloca (2 * sizeof (int));
4217  ;
4218  return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext conftest$ac_exeext
4222if { (eval echo "$as_me:4222: \"$ac_link\"") >&5
4223  (eval $ac_link) 2>&5
4224  ac_status=$?
4225  echo "$as_me:4225: \$? = $ac_status" >&5
4226  (exit $ac_status); } &&
4227         { ac_try='test -s conftest$ac_exeext'
4228  { (eval echo "$as_me:4228: \"$ac_try\"") >&5
4229  (eval $ac_try) 2>&5
4230  ac_status=$?
4231  echo "$as_me:4231: \$? = $ac_status" >&5
4232  (exit $ac_status); }; }; then
4233  ac_cv_working_alloca_h=yes
4234else
4235  echo "$as_me: failed program was:" >&5
4236cat conftest.$ac_ext >&5
4237ac_cv_working_alloca_h=no
4238fi
4239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4240fi
4241echo "$as_me:4241: result: $ac_cv_working_alloca_h" >&5
4242echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4243if test $ac_cv_working_alloca_h = yes; then
4244
4245cat >>confdefs.h <<\EOF
4246#define HAVE_ALLOCA_H 1
4247EOF
4248
4249fi
4250
4251echo "$as_me:4251: checking for alloca" >&5
4252echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4253if test "${ac_cv_func_alloca_works+set}" = set; then
4254  echo $ECHO_N "(cached) $ECHO_C" >&6
4255else
4256  cat >conftest.$ac_ext <<_ACEOF
4257#line 4257 "configure"
4258#include "confdefs.h"
4259#ifdef __GNUC__
4260# define alloca __builtin_alloca
4261#else
4262# ifdef _MSC_VER
4263#  include <malloc.h>
4264#  define alloca _alloca
4265# else
4266#  if HAVE_ALLOCA_H
4267#   include <alloca.h>
4268#  else
4269#   ifdef _AIX
4270 #pragma alloca
4271#   else
4272#    ifndef alloca /* predefined by HP cc +Olibcalls */
4273char *alloca ();
4274#    endif
4275#   endif
4276#  endif
4277# endif
4278#endif
4279
4280int
4281main ()
4282{
4283char *p = (char *) alloca (1);
4284  ;
4285  return 0;
4286}
4287_ACEOF
4288rm -f conftest.$ac_objext conftest$ac_exeext
4289if { (eval echo "$as_me:4289: \"$ac_link\"") >&5
4290  (eval $ac_link) 2>&5
4291  ac_status=$?
4292  echo "$as_me:4292: \$? = $ac_status" >&5
4293  (exit $ac_status); } &&
4294         { ac_try='test -s conftest$ac_exeext'
4295  { (eval echo "$as_me:4295: \"$ac_try\"") >&5
4296  (eval $ac_try) 2>&5
4297  ac_status=$?
4298  echo "$as_me:4298: \$? = $ac_status" >&5
4299  (exit $ac_status); }; }; then
4300  ac_cv_func_alloca_works=yes
4301else
4302  echo "$as_me: failed program was:" >&5
4303cat conftest.$ac_ext >&5
4304ac_cv_func_alloca_works=no
4305fi
4306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4307fi
4308echo "$as_me:4308: result: $ac_cv_func_alloca_works" >&5
4309echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4310
4311if test $ac_cv_func_alloca_works = yes; then
4312
4313cat >>confdefs.h <<\EOF
4314#define HAVE_ALLOCA 1
4315EOF
4316
4317else
4318  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4319# that cause trouble.  Some versions do not even contain alloca or
4320# contain a buggy version.  If you still want to use their alloca,
4321# use ar to extract alloca.o from them instead of compiling alloca.c.
4322
4323ALLOCA=alloca.$ac_objext
4324
4325cat >>confdefs.h <<\EOF
4326#define C_ALLOCA 1
4327EOF
4328
4329echo "$as_me:4329: checking whether \`alloca.c' needs Cray hooks" >&5
4330echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4331if test "${ac_cv_os_cray+set}" = set; then
4332  echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334  cat >conftest.$ac_ext <<_ACEOF
4335#line 4335 "configure"
4336#include "confdefs.h"
4337#if defined(CRAY) && ! defined(CRAY2)
4338webecray
4339#else
4340wenotbecray
4341#endif
4342
4343_ACEOF
4344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345  egrep "webecray" >/dev/null 2>&1; then
4346  ac_cv_os_cray=yes
4347else
4348  ac_cv_os_cray=no
4349fi
4350rm -f conftest*
4351
4352fi
4353echo "$as_me:4353: result: $ac_cv_os_cray" >&5
4354echo "${ECHO_T}$ac_cv_os_cray" >&6
4355if test $ac_cv_os_cray = yes; then
4356  for ac_func in _getb67 GETB67 getb67; do
4357    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4358echo "$as_me:4358: checking for $ac_func" >&5
4359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4360if eval "test \"\${$as_ac_var+set}\" = set"; then
4361  echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363  cat >conftest.$ac_ext <<_ACEOF
4364#line 4364 "configure"
4365#include "confdefs.h"
4366/* System header to define __stub macros and hopefully few prototypes,
4367    which can conflict with char $ac_func (); below.  */
4368#include <assert.h>
4369/* Override any gcc2 internal prototype to avoid an error.  */
4370#ifdef __cplusplus
4371extern "C"
4372#endif
4373/* We use char because int might match the return type of a gcc2
4374   builtin and then its argument prototype would still apply.  */
4375char $ac_func ();
4376char (*f) ();
4377
4378int
4379main ()
4380{
4381/* The GNU C library defines this for functions which it implements
4382    to always fail with ENOSYS.  Some functions are actually named
4383    something starting with __ and the normal name is an alias.  */
4384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4385choke me
4386#else
4387f = $ac_func;
4388#endif
4389
4390  ;
4391  return 0;
4392}
4393_ACEOF
4394rm -f conftest.$ac_objext conftest$ac_exeext
4395if { (eval echo "$as_me:4395: \"$ac_link\"") >&5
4396  (eval $ac_link) 2>&5
4397  ac_status=$?
4398  echo "$as_me:4398: \$? = $ac_status" >&5
4399  (exit $ac_status); } &&
4400         { ac_try='test -s conftest$ac_exeext'
4401  { (eval echo "$as_me:4401: \"$ac_try\"") >&5
4402  (eval $ac_try) 2>&5
4403  ac_status=$?
4404  echo "$as_me:4404: \$? = $ac_status" >&5
4405  (exit $ac_status); }; }; then
4406  eval "$as_ac_var=yes"
4407else
4408  echo "$as_me: failed program was:" >&5
4409cat conftest.$ac_ext >&5
4410eval "$as_ac_var=no"
4411fi
4412rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4413fi
4414echo "$as_me:4414: result: `eval echo '${'$as_ac_var'}'`" >&5
4415echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4416if test `eval echo '${'$as_ac_var'}'` = yes; then
4417
4418cat >>confdefs.h <<EOF
4419#define CRAY_STACKSEG_END $ac_func
4420EOF
4421
4422    break
4423fi
4424
4425  done
4426fi
4427
4428echo "$as_me:4428: checking stack direction for C alloca" >&5
4429echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4430if test "${ac_cv_c_stack_direction+set}" = set; then
4431  echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433  if test "$cross_compiling" = yes; then
4434  ac_cv_c_stack_direction=0
4435else
4436  cat >conftest.$ac_ext <<_ACEOF
4437#line 4437 "configure"
4438#include "confdefs.h"
4439int
4440find_stack_direction ()
4441{
4442  static char *addr = 0;
4443  auto char dummy;
4444  if (addr == 0)
4445    {
4446      addr = &dummy;
4447      return find_stack_direction ();
4448    }
4449  else
4450    return (&dummy > addr) ? 1 : -1;
4451}
4452
4453int
4454main ()
4455{
4456  exit (find_stack_direction () < 0);
4457}
4458_ACEOF
4459rm -f conftest$ac_exeext
4460if { (eval echo "$as_me:4460: \"$ac_link\"") >&5
4461  (eval $ac_link) 2>&5
4462  ac_status=$?
4463  echo "$as_me:4463: \$? = $ac_status" >&5
4464  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4465  { (eval echo "$as_me:4465: \"$ac_try\"") >&5
4466  (eval $ac_try) 2>&5
4467  ac_status=$?
4468  echo "$as_me:4468: \$? = $ac_status" >&5
4469  (exit $ac_status); }; }; then
4470  ac_cv_c_stack_direction=1
4471else
4472  echo "$as_me: program exited with status $ac_status" >&5
4473echo "$as_me: failed program was:" >&5
4474cat conftest.$ac_ext >&5
4475ac_cv_c_stack_direction=-1
4476fi
4477rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4478fi
4479fi
4480echo "$as_me:4480: result: $ac_cv_c_stack_direction" >&5
4481echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4482
4483cat >>confdefs.h <<EOF
4484#define STACK_DIRECTION $ac_cv_c_stack_direction
4485EOF
4486
4487fi
4488
4489echo "$as_me:4489: checking for library containing fparseln" >&5
4490echo $ECHO_N "checking for library containing fparseln... $ECHO_C" >&6
4491if test "${ac_cv_search_fparseln+set}" = set; then
4492  echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494  ac_func_search_save_LIBS=$LIBS
4495ac_cv_search_fparseln=no
4496cat >conftest.$ac_ext <<_ACEOF
4497#line 4497 "configure"
4498#include "confdefs.h"
4499
4500/* Override any gcc2 internal prototype to avoid an error.  */
4501#ifdef __cplusplus
4502extern "C"
4503#endif
4504/* We use char because int might match the return type of a gcc2
4505   builtin and then its argument prototype would still apply.  */
4506char fparseln ();
4507int
4508main ()
4509{
4510fparseln ();
4511  ;
4512  return 0;
4513}
4514_ACEOF
4515rm -f conftest.$ac_objext conftest$ac_exeext
4516if { (eval echo "$as_me:4516: \"$ac_link\"") >&5
4517  (eval $ac_link) 2>&5
4518  ac_status=$?
4519  echo "$as_me:4519: \$? = $ac_status" >&5
4520  (exit $ac_status); } &&
4521         { ac_try='test -s conftest$ac_exeext'
4522  { (eval echo "$as_me:4522: \"$ac_try\"") >&5
4523  (eval $ac_try) 2>&5
4524  ac_status=$?
4525  echo "$as_me:4525: \$? = $ac_status" >&5
4526  (exit $ac_status); }; }; then
4527  ac_cv_search_fparseln="none required"
4528else
4529  echo "$as_me: failed program was:" >&5
4530cat conftest.$ac_ext >&5
4531fi
4532rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4533if test "$ac_cv_search_fparseln" = no; then
4534  for ac_lib in util; do
4535    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4536    cat >conftest.$ac_ext <<_ACEOF
4537#line 4537 "configure"
4538#include "confdefs.h"
4539
4540/* Override any gcc2 internal prototype to avoid an error.  */
4541#ifdef __cplusplus
4542extern "C"
4543#endif
4544/* We use char because int might match the return type of a gcc2
4545   builtin and then its argument prototype would still apply.  */
4546char fparseln ();
4547int
4548main ()
4549{
4550fparseln ();
4551  ;
4552  return 0;
4553}
4554_ACEOF
4555rm -f conftest.$ac_objext conftest$ac_exeext
4556if { (eval echo "$as_me:4556: \"$ac_link\"") >&5
4557  (eval $ac_link) 2>&5
4558  ac_status=$?
4559  echo "$as_me:4559: \$? = $ac_status" >&5
4560  (exit $ac_status); } &&
4561         { ac_try='test -s conftest$ac_exeext'
4562  { (eval echo "$as_me:4562: \"$ac_try\"") >&5
4563  (eval $ac_try) 2>&5
4564  ac_status=$?
4565  echo "$as_me:4565: \$? = $ac_status" >&5
4566  (exit $ac_status); }; }; then
4567  ac_cv_search_fparseln="-l$ac_lib"
4568break
4569else
4570  echo "$as_me: failed program was:" >&5
4571cat conftest.$ac_ext >&5
4572fi
4573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4574  done
4575fi
4576LIBS=$ac_func_search_save_LIBS
4577fi
4578echo "$as_me:4578: result: $ac_cv_search_fparseln" >&5
4579echo "${ECHO_T}$ac_cv_search_fparseln" >&6
4580if test "$ac_cv_search_fparseln" != no; then
4581  test "$ac_cv_search_fparseln" = "none required" || LIBS="$ac_cv_search_fparseln $LIBS"
4582
4583fi
4584
4585for ac_func in asprintf asnprintf basename dirfd dirname \
4586	fgetln flock fparseln futimes getopt getopt_long \
4587	isblank issetugid lchmod lchown lutimes pread pwcache_userdb \
4588	pwrite setenv setgroupent setprogname setpassent \
4589	snprintf strlcat strlcpy strsep vasprintf vasnprintf vsnprintf
4590do
4591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4592echo "$as_me:4592: checking for $ac_func" >&5
4593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4594if eval "test \"\${$as_ac_var+set}\" = set"; then
4595  echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
4597  cat >conftest.$ac_ext <<_ACEOF
4598#line 4598 "configure"
4599#include "confdefs.h"
4600/* System header to define __stub macros and hopefully few prototypes,
4601    which can conflict with char $ac_func (); below.  */
4602#include <assert.h>
4603/* Override any gcc2 internal prototype to avoid an error.  */
4604#ifdef __cplusplus
4605extern "C"
4606#endif
4607/* We use char because int might match the return type of a gcc2
4608   builtin and then its argument prototype would still apply.  */
4609char $ac_func ();
4610char (*f) ();
4611
4612int
4613main ()
4614{
4615/* The GNU C library defines this for functions which it implements
4616    to always fail with ENOSYS.  Some functions are actually named
4617    something starting with __ and the normal name is an alias.  */
4618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4619choke me
4620#else
4621f = $ac_func;
4622#endif
4623
4624  ;
4625  return 0;
4626}
4627_ACEOF
4628rm -f conftest.$ac_objext conftest$ac_exeext
4629if { (eval echo "$as_me:4629: \"$ac_link\"") >&5
4630  (eval $ac_link) 2>&5
4631  ac_status=$?
4632  echo "$as_me:4632: \$? = $ac_status" >&5
4633  (exit $ac_status); } &&
4634         { ac_try='test -s conftest$ac_exeext'
4635  { (eval echo "$as_me:4635: \"$ac_try\"") >&5
4636  (eval $ac_try) 2>&5
4637  ac_status=$?
4638  echo "$as_me:4638: \$? = $ac_status" >&5
4639  (exit $ac_status); }; }; then
4640  eval "$as_ac_var=yes"
4641else
4642  echo "$as_me: failed program was:" >&5
4643cat conftest.$ac_ext >&5
4644eval "$as_ac_var=no"
4645fi
4646rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4647fi
4648echo "$as_me:4648: result: `eval echo '${'$as_ac_var'}'`" >&5
4649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4650if test `eval echo '${'$as_ac_var'}'` = yes; then
4651  cat >>confdefs.h <<EOF
4652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4653EOF
4654
4655fi
4656done
4657
4658echo "$as_me:4658: checking whether setgroupent is declared" >&5
4659echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
4660if test "${ac_cv_have_decl_setgroupent+set}" = set; then
4661  echo $ECHO_N "(cached) $ECHO_C" >&6
4662else
4663  cat >conftest.$ac_ext <<_ACEOF
4664#line 4664 "configure"
4665#include "confdefs.h"
4666
4667#include <grp.h>
4668#include <pwd.h>
4669
4670int
4671main ()
4672{
4673#ifndef setgroupent
4674  char *p = (char *) setgroupent;
4675#endif
4676
4677  ;
4678  return 0;
4679}
4680_ACEOF
4681rm -f conftest.$ac_objext
4682if { (eval echo "$as_me:4682: \"$ac_compile\"") >&5
4683  (eval $ac_compile) 2>&5
4684  ac_status=$?
4685  echo "$as_me:4685: \$? = $ac_status" >&5
4686  (exit $ac_status); } &&
4687         { ac_try='test -s conftest.$ac_objext'
4688  { (eval echo "$as_me:4688: \"$ac_try\"") >&5
4689  (eval $ac_try) 2>&5
4690  ac_status=$?
4691  echo "$as_me:4691: \$? = $ac_status" >&5
4692  (exit $ac_status); }; }; then
4693  ac_cv_have_decl_setgroupent=yes
4694else
4695  echo "$as_me: failed program was:" >&5
4696cat conftest.$ac_ext >&5
4697ac_cv_have_decl_setgroupent=no
4698fi
4699rm -f conftest.$ac_objext conftest.$ac_ext
4700fi
4701echo "$as_me:4701: result: $ac_cv_have_decl_setgroupent" >&5
4702echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
4703if test $ac_cv_have_decl_setgroupent = yes; then
4704
4705cat >>confdefs.h <<EOF
4706#define HAVE_DECL_SETGROUPENT 1
4707EOF
4708
4709else
4710  cat >>confdefs.h <<EOF
4711#define HAVE_DECL_SETGROUPENT 0
4712EOF
4713
4714fi
4715echo "$as_me:4715: checking whether setpassent is declared" >&5
4716echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
4717if test "${ac_cv_have_decl_setpassent+set}" = set; then
4718  echo $ECHO_N "(cached) $ECHO_C" >&6
4719else
4720  cat >conftest.$ac_ext <<_ACEOF
4721#line 4721 "configure"
4722#include "confdefs.h"
4723
4724#include <grp.h>
4725#include <pwd.h>
4726
4727int
4728main ()
4729{
4730#ifndef setpassent
4731  char *p = (char *) setpassent;
4732#endif
4733
4734  ;
4735  return 0;
4736}
4737_ACEOF
4738rm -f conftest.$ac_objext
4739if { (eval echo "$as_me:4739: \"$ac_compile\"") >&5
4740  (eval $ac_compile) 2>&5
4741  ac_status=$?
4742  echo "$as_me:4742: \$? = $ac_status" >&5
4743  (exit $ac_status); } &&
4744         { ac_try='test -s conftest.$ac_objext'
4745  { (eval echo "$as_me:4745: \"$ac_try\"") >&5
4746  (eval $ac_try) 2>&5
4747  ac_status=$?
4748  echo "$as_me:4748: \$? = $ac_status" >&5
4749  (exit $ac_status); }; }; then
4750  ac_cv_have_decl_setpassent=yes
4751else
4752  echo "$as_me: failed program was:" >&5
4753cat conftest.$ac_ext >&5
4754ac_cv_have_decl_setpassent=no
4755fi
4756rm -f conftest.$ac_objext conftest.$ac_ext
4757fi
4758echo "$as_me:4758: result: $ac_cv_have_decl_setpassent" >&5
4759echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
4760if test $ac_cv_have_decl_setpassent = yes; then
4761
4762cat >>confdefs.h <<EOF
4763#define HAVE_DECL_SETPASSENT 1
4764EOF
4765
4766else
4767  cat >>confdefs.h <<EOF
4768#define HAVE_DECL_SETPASSENT 0
4769EOF
4770
4771fi
4772
4773# regcomp() and regexec() are also names of functions in the old V8
4774# regexp package.  To avoid them, we need to find out who has regfree().
4775
4776echo "$as_me:4776: checking for regfree in -lregex" >&5
4777echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
4778if test "${ac_cv_lib_regex_regfree+set}" = set; then
4779  echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
4781  ac_check_lib_save_LIBS=$LIBS
4782LIBS="-lregex  $LIBS"
4783cat >conftest.$ac_ext <<_ACEOF
4784#line 4784 "configure"
4785#include "confdefs.h"
4786
4787/* Override any gcc2 internal prototype to avoid an error.  */
4788#ifdef __cplusplus
4789extern "C"
4790#endif
4791/* We use char because int might match the return type of a gcc2
4792   builtin and then its argument prototype would still apply.  */
4793char regfree ();
4794int
4795main ()
4796{
4797regfree ();
4798  ;
4799  return 0;
4800}
4801_ACEOF
4802rm -f conftest.$ac_objext conftest$ac_exeext
4803if { (eval echo "$as_me:4803: \"$ac_link\"") >&5
4804  (eval $ac_link) 2>&5
4805  ac_status=$?
4806  echo "$as_me:4806: \$? = $ac_status" >&5
4807  (exit $ac_status); } &&
4808         { ac_try='test -s conftest$ac_exeext'
4809  { (eval echo "$as_me:4809: \"$ac_try\"") >&5
4810  (eval $ac_try) 2>&5
4811  ac_status=$?
4812  echo "$as_me:4812: \$? = $ac_status" >&5
4813  (exit $ac_status); }; }; then
4814  ac_cv_lib_regex_regfree=yes
4815else
4816  echo "$as_me: failed program was:" >&5
4817cat conftest.$ac_ext >&5
4818ac_cv_lib_regex_regfree=no
4819fi
4820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4821LIBS=$ac_check_lib_save_LIBS
4822fi
4823echo "$as_me:4823: result: $ac_cv_lib_regex_regfree" >&5
4824echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
4825if test $ac_cv_lib_regex_regfree = yes; then
4826  cat >>confdefs.h <<EOF
4827#define HAVE_LIBREGEX 1
4828EOF
4829
4830  LIBS="-lregex $LIBS"
4831
4832fi
4833
4834echo "$as_me:4834: checking for library containing regfree" >&5
4835echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
4836if test "${ac_cv_search_regfree+set}" = set; then
4837  echo $ECHO_N "(cached) $ECHO_C" >&6
4838else
4839  ac_func_search_save_LIBS=$LIBS
4840ac_cv_search_regfree=no
4841cat >conftest.$ac_ext <<_ACEOF
4842#line 4842 "configure"
4843#include "confdefs.h"
4844
4845/* Override any gcc2 internal prototype to avoid an error.  */
4846#ifdef __cplusplus
4847extern "C"
4848#endif
4849/* We use char because int might match the return type of a gcc2
4850   builtin and then its argument prototype would still apply.  */
4851char regfree ();
4852int
4853main ()
4854{
4855regfree ();
4856  ;
4857  return 0;
4858}
4859_ACEOF
4860rm -f conftest.$ac_objext conftest$ac_exeext
4861if { (eval echo "$as_me:4861: \"$ac_link\"") >&5
4862  (eval $ac_link) 2>&5
4863  ac_status=$?
4864  echo "$as_me:4864: \$? = $ac_status" >&5
4865  (exit $ac_status); } &&
4866         { ac_try='test -s conftest$ac_exeext'
4867  { (eval echo "$as_me:4867: \"$ac_try\"") >&5
4868  (eval $ac_try) 2>&5
4869  ac_status=$?
4870  echo "$as_me:4870: \$? = $ac_status" >&5
4871  (exit $ac_status); }; }; then
4872  ac_cv_search_regfree="none required"
4873else
4874  echo "$as_me: failed program was:" >&5
4875cat conftest.$ac_ext >&5
4876fi
4877rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4878if test "$ac_cv_search_regfree" = no; then
4879  for ac_lib in rx posix; do
4880    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4881    cat >conftest.$ac_ext <<_ACEOF
4882#line 4882 "configure"
4883#include "confdefs.h"
4884
4885/* Override any gcc2 internal prototype to avoid an error.  */
4886#ifdef __cplusplus
4887extern "C"
4888#endif
4889/* We use char because int might match the return type of a gcc2
4890   builtin and then its argument prototype would still apply.  */
4891char regfree ();
4892int
4893main ()
4894{
4895regfree ();
4896  ;
4897  return 0;
4898}
4899_ACEOF
4900rm -f conftest.$ac_objext conftest$ac_exeext
4901if { (eval echo "$as_me:4901: \"$ac_link\"") >&5
4902  (eval $ac_link) 2>&5
4903  ac_status=$?
4904  echo "$as_me:4904: \$? = $ac_status" >&5
4905  (exit $ac_status); } &&
4906         { ac_try='test -s conftest$ac_exeext'
4907  { (eval echo "$as_me:4907: \"$ac_try\"") >&5
4908  (eval $ac_try) 2>&5
4909  ac_status=$?
4910  echo "$as_me:4910: \$? = $ac_status" >&5
4911  (exit $ac_status); }; }; then
4912  ac_cv_search_regfree="-l$ac_lib"
4913break
4914else
4915  echo "$as_me: failed program was:" >&5
4916cat conftest.$ac_ext >&5
4917fi
4918rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4919  done
4920fi
4921LIBS=$ac_func_search_save_LIBS
4922fi
4923echo "$as_me:4923: result: $ac_cv_search_regfree" >&5
4924echo "${ECHO_T}$ac_cv_search_regfree" >&6
4925if test "$ac_cv_search_regfree" != no; then
4926  test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
4927
4928fi
4929
4930cat >confcache <<\_ACEOF
4931# This file is a shell script that caches the results of configure
4932# tests run on this system so they can be shared between configure
4933# scripts and configure runs, see configure's option --config-cache.
4934# It is not useful on other systems.  If it contains results you don't
4935# want to keep, you may remove or edit it.
4936#
4937# config.status only pays attention to the cache file if you give it
4938# the --recheck option to rerun configure.
4939#
4940# `ac_cv_env_foo' variables (set or unset) will be overriden when
4941# loading this file, other *unset* `ac_cv_foo' will be assigned the
4942# following values.
4943
4944_ACEOF
4945
4946# The following way of writing the cache mishandles newlines in values,
4947# but we know of no workaround that is simple, portable, and efficient.
4948# So, don't put newlines in cache variables' values.
4949# Ultrix sh set writes to stderr and can't be redirected directly,
4950# and sets the high bit in the cache file unless we assign to the vars.
4951{
4952  (set) 2>&1 |
4953    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4954    *ac_space=\ *)
4955      # `set' does not quote correctly, so add quotes (double-quote
4956      # substitution turns \\\\ into \\, and sed turns \\ into \).
4957      sed -n \
4958        "s/'/'\\\\''/g;
4959    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4960      ;;
4961    *)
4962      # `set' quotes correctly as required by POSIX, so do not add quotes.
4963      sed -n \
4964        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4965      ;;
4966    esac;
4967} |
4968  sed '
4969     t clear
4970     : clear
4971     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4972     t end
4973     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4974     : end' >>confcache
4975if cmp -s $cache_file confcache; then :; else
4976  if test -w $cache_file; then
4977    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4978    cat confcache >$cache_file
4979  else
4980    echo "not updating unwritable cache $cache_file"
4981  fi
4982fi
4983rm -f confcache
4984
4985test "x$prefix" = xNONE && prefix=$ac_default_prefix
4986# Let make expand exec_prefix.
4987test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4988
4989# VPATH may cause trouble with some makes, so we remove $(srcdir),
4990# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4991# trailing colons and then remove the whole line if VPATH becomes empty
4992# (actually we leave an empty line to preserve line numbers).
4993if test "x$srcdir" = x.; then
4994  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
4995s/:*\$(srcdir):*/:/;
4996s/:*\${srcdir}:*/:/;
4997s/:*@srcdir@:*/:/;
4998s/^\([^=]*=[ 	]*\):*/\1/;
4999s/:*$//;
5000s/^[^=]*=[ 	]*$//;
5001}'
5002fi
5003
5004DEFS=-DHAVE_CONFIG_H
5005
5006: ${CONFIG_STATUS=./config.status}
5007ac_clean_files_save=$ac_clean_files
5008ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5009{ echo "$as_me:5009: creating $CONFIG_STATUS" >&5
5010echo "$as_me: creating $CONFIG_STATUS" >&6;}
5011cat >$CONFIG_STATUS <<_ACEOF
5012#! $SHELL
5013# Generated automatically by configure.
5014# Run this file to recreate the current configuration.
5015# Compiler output produced by configure, useful for debugging
5016# configure, is in config.log if it exists.
5017
5018debug=false
5019SHELL=\${CONFIG_SHELL-$SHELL}
5020ac_cs_invocation="\$0 \$@"
5021
5022_ACEOF
5023
5024cat >>$CONFIG_STATUS <<\_ACEOF
5025# Be Bourne compatible
5026if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5027  emulate sh
5028  NULLCMD=:
5029elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5030  set -o posix
5031fi
5032
5033# Name of the executable.
5034as_me=`echo "$0" |sed 's,.*[\\/],,'`
5035
5036if expr a : '\(a\)' >/dev/null 2>&1; then
5037  as_expr=expr
5038else
5039  as_expr=false
5040fi
5041
5042rm -f conf$$ conf$$.exe conf$$.file
5043echo >conf$$.file
5044if ln -s conf$$.file conf$$ 2>/dev/null; then
5045  # We could just check for DJGPP; but this test a) works b) is more generic
5046  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5047  if test -f conf$$.exe; then
5048    # Don't use ln at all; we don't have any links
5049    as_ln_s='cp -p'
5050  else
5051    as_ln_s='ln -s'
5052  fi
5053elif ln conf$$.file conf$$ 2>/dev/null; then
5054  as_ln_s=ln
5055else
5056  as_ln_s='cp -p'
5057fi
5058rm -f conf$$ conf$$.exe conf$$.file
5059
5060as_executable_p="test -f"
5061
5062# Support unset when possible.
5063if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5064  as_unset=unset
5065else
5066  as_unset=false
5067fi
5068
5069# NLS nuisances.
5070$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5071$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5072$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5073$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5074$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5075$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5076$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5077$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5078
5079# IFS
5080# We need space, tab and new line, in precisely that order.
5081as_nl='
5082'
5083IFS=" 	$as_nl"
5084
5085# CDPATH.
5086$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5087
5088exec 6>&1
5089
5090_ACEOF
5091
5092# Files that config.status was made for.
5093if test -n "$ac_config_files"; then
5094  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5095fi
5096
5097if test -n "$ac_config_headers"; then
5098  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5099fi
5100
5101if test -n "$ac_config_links"; then
5102  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5103fi
5104
5105if test -n "$ac_config_commands"; then
5106  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5107fi
5108
5109cat >>$CONFIG_STATUS <<\EOF
5110
5111ac_cs_usage="\
5112\`$as_me' instantiates files from templates according to the
5113current configuration.
5114
5115Usage: $0 [OPTIONS] [FILE]...
5116
5117  -h, --help       print this help, then exit
5118  -V, --version    print version number, then exit
5119  -d, --debug      don't remove temporary files
5120      --recheck    update $as_me by reconfiguring in the same conditions
5121  --file=FILE[:TEMPLATE]
5122                   instantiate the configuration file FILE
5123  --header=FILE[:TEMPLATE]
5124                   instantiate the configuration header FILE
5125
5126Configuration files:
5127$config_files
5128
5129Configuration headers:
5130$config_headers
5131
5132Report bugs to <bug-autoconf@gnu.org>."
5133EOF
5134
5135cat >>$CONFIG_STATUS <<EOF
5136ac_cs_version="\\
5137libnbcompat config.status noversion
5138configured by $0, generated by GNU Autoconf 2.52,
5139  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5140
5141Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5142Free Software Foundation, Inc.
5143This config.status script is free software; the Free Software Foundation
5144gives unlimited permission to copy, distribute and modify it."
5145srcdir=$srcdir
5146EOF
5147
5148cat >>$CONFIG_STATUS <<\EOF
5149# If no file are specified by the user, then we need to provide default
5150# value.  By we need to know if files were specified by the user.
5151ac_need_defaults=:
5152while test $# != 0
5153do
5154  case $1 in
5155  --*=*)
5156    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5157    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5158    shift
5159    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5160    shift
5161    ;;
5162  -*);;
5163  *) # This is not an option, so the user has probably given explicit
5164     # arguments.
5165     ac_need_defaults=false;;
5166  esac
5167
5168  case $1 in
5169  # Handling of the options.
5170EOF
5171cat >>$CONFIG_STATUS <<EOF
5172  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5173    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5174    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5175EOF
5176cat >>$CONFIG_STATUS <<\EOF
5177  --version | --vers* | -V )
5178    echo "$ac_cs_version"; exit 0 ;;
5179  --he | --h)
5180    # Conflict between --help and --header
5181    { { echo "$as_me:5181: error: ambiguous option: $1
5182Try \`$0 --help' for more information." >&5
5183echo "$as_me: error: ambiguous option: $1
5184Try \`$0 --help' for more information." >&2;}
5185   { (exit 1); exit 1; }; };;
5186  --help | --hel | -h )
5187    echo "$ac_cs_usage"; exit 0 ;;
5188  --debug | --d* | -d )
5189    debug=: ;;
5190  --file | --fil | --fi | --f )
5191    shift
5192    CONFIG_FILES="$CONFIG_FILES $1"
5193    ac_need_defaults=false;;
5194  --header | --heade | --head | --hea )
5195    shift
5196    CONFIG_HEADERS="$CONFIG_HEADERS $1"
5197    ac_need_defaults=false;;
5198
5199  # This is an error.
5200  -*) { { echo "$as_me:5200: error: unrecognized option: $1
5201Try \`$0 --help' for more information." >&5
5202echo "$as_me: error: unrecognized option: $1
5203Try \`$0 --help' for more information." >&2;}
5204   { (exit 1); exit 1; }; } ;;
5205
5206  *) ac_config_targets="$ac_config_targets $1" ;;
5207
5208  esac
5209  shift
5210done
5211
5212exec 5>>config.log
5213cat >&5 << _ACEOF
5214
5215## ----------------------- ##
5216## Running config.status.  ##
5217## ----------------------- ##
5218
5219This file was extended by $as_me (libnbcompat noversion) 2.52, executed with
5220  CONFIG_FILES    = $CONFIG_FILES
5221  CONFIG_HEADERS  = $CONFIG_HEADERS
5222  CONFIG_LINKS    = $CONFIG_LINKS
5223  CONFIG_COMMANDS = $CONFIG_COMMANDS
5224  > $ac_cs_invocation
5225on `(hostname || uname -n) 2>/dev/null | sed 1q`
5226
5227_ACEOF
5228EOF
5229
5230cat >>$CONFIG_STATUS <<\EOF
5231for ac_config_target in $ac_config_targets
5232do
5233  case "$ac_config_target" in
5234  # Handling of arguments.
5235  "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
5236  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5237  *) { { echo "$as_me:5237: error: invalid argument: $ac_config_target" >&5
5238echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5239   { (exit 1); exit 1; }; };;
5240  esac
5241done
5242
5243# If the user did not use the arguments to specify the items to instantiate,
5244# then the envvar interface is used.  Set only those that are not.
5245# We use the long form for the default assignment because of an extremely
5246# bizarre bug on SunOS 4.1.3.
5247if $ac_need_defaults; then
5248  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5249  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5250fi
5251
5252# Create a temporary directory, and hook for its removal unless debugging.
5253$debug ||
5254{
5255  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5256  trap '{ (exit 1); exit 1; }' 1 2 13 15
5257}
5258
5259# Create a (secure) tmp directory for tmp files.
5260: ${TMPDIR=/tmp}
5261{
5262  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5263  test -n "$tmp" && test -d "$tmp"
5264}  ||
5265{
5266  tmp=$TMPDIR/cs$$-$RANDOM
5267  (umask 077 && mkdir $tmp)
5268} ||
5269{
5270   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5271   { (exit 1); exit 1; }
5272}
5273
5274EOF
5275
5276cat >>$CONFIG_STATUS <<EOF
5277
5278#
5279# CONFIG_FILES section.
5280#
5281
5282# No need to generate the scripts if there are no CONFIG_FILES.
5283# This happens for instance when ./config.status config.h
5284if test -n "\$CONFIG_FILES"; then
5285  # Protect against being on the right side of a sed subst in config.status.
5286  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5287   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5288s,@SHELL@,$SHELL,;t t
5289s,@exec_prefix@,$exec_prefix,;t t
5290s,@prefix@,$prefix,;t t
5291s,@program_transform_name@,$program_transform_name,;t t
5292s,@bindir@,$bindir,;t t
5293s,@sbindir@,$sbindir,;t t
5294s,@libexecdir@,$libexecdir,;t t
5295s,@datadir@,$datadir,;t t
5296s,@sysconfdir@,$sysconfdir,;t t
5297s,@sharedstatedir@,$sharedstatedir,;t t
5298s,@localstatedir@,$localstatedir,;t t
5299s,@libdir@,$libdir,;t t
5300s,@includedir@,$includedir,;t t
5301s,@oldincludedir@,$oldincludedir,;t t
5302s,@infodir@,$infodir,;t t
5303s,@mandir@,$mandir,;t t
5304s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5305s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5306s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5307s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5308s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5309s,@build_alias@,$build_alias,;t t
5310s,@host_alias@,$host_alias,;t t
5311s,@target_alias@,$target_alias,;t t
5312s,@ECHO_C@,$ECHO_C,;t t
5313s,@ECHO_N@,$ECHO_N,;t t
5314s,@ECHO_T@,$ECHO_T,;t t
5315s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5316s,@DEFS@,$DEFS,;t t
5317s,@LIBS@,$LIBS,;t t
5318s,@BSHELL@,$BSHELL,;t t
5319s,@CC@,$CC,;t t
5320s,@CFLAGS@,$CFLAGS,;t t
5321s,@LDFLAGS@,$LDFLAGS,;t t
5322s,@CPPFLAGS@,$CPPFLAGS,;t t
5323s,@ac_ct_CC@,$ac_ct_CC,;t t
5324s,@EXEEXT@,$EXEEXT,;t t
5325s,@OBJEXT@,$OBJEXT,;t t
5326s,@CPP@,$CPP,;t t
5327s,@ALLOCA@,$ALLOCA,;t t
5328CEOF
5329
5330EOF
5331
5332  cat >>$CONFIG_STATUS <<\EOF
5333  # Split the substitutions into bite-sized pieces for seds with
5334  # small command number limits, like on Digital OSF/1 and HP-UX.
5335  ac_max_sed_lines=48
5336  ac_sed_frag=1 # Number of current file.
5337  ac_beg=1 # First line for current file.
5338  ac_end=$ac_max_sed_lines # Line after last line for current file.
5339  ac_more_lines=:
5340  ac_sed_cmds=
5341  while $ac_more_lines; do
5342    if test $ac_beg -gt 1; then
5343      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5344    else
5345      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5346    fi
5347    if test ! -s $tmp/subs.frag; then
5348      ac_more_lines=false
5349    else
5350      # The purpose of the label and of the branching condition is to
5351      # speed up the sed processing (if there are no `@' at all, there
5352      # is no need to browse any of the substitutions).
5353      # These are the two extra sed commands mentioned above.
5354      (echo ':t
5355  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5356      if test -z "$ac_sed_cmds"; then
5357  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5358      else
5359  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5360      fi
5361      ac_sed_frag=`expr $ac_sed_frag + 1`
5362      ac_beg=$ac_end
5363      ac_end=`expr $ac_end + $ac_max_sed_lines`
5364    fi
5365  done
5366  if test -z "$ac_sed_cmds"; then
5367    ac_sed_cmds=cat
5368  fi
5369fi # test -n "$CONFIG_FILES"
5370
5371EOF
5372cat >>$CONFIG_STATUS <<\EOF
5373for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5374  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5375  case $ac_file in
5376  - | *:- | *:-:* ) # input from stdin
5377        cat >$tmp/stdin
5378        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5379        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5380  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5381        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5382  * )   ac_file_in=$ac_file.in ;;
5383  esac
5384
5385  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5386  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5387         X"$ac_file" : 'X\(//\)[^/]' \| \
5388         X"$ac_file" : 'X\(//\)$' \| \
5389         X"$ac_file" : 'X\(/\)' \| \
5390         .     : '\(.\)' 2>/dev/null ||
5391echo X"$ac_file" |
5392    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5393  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5394  	  /^X\(\/\/\)$/{ s//\1/; q; }
5395  	  /^X\(\/\).*/{ s//\1/; q; }
5396  	  s/.*/./; q'`
5397  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5398    { case "$ac_dir" in
5399  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5400  *)                      as_incr_dir=.;;
5401esac
5402as_dummy="$ac_dir"
5403for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5404  case $as_mkdir_dir in
5405    # Skip DOS drivespec
5406    ?:) as_incr_dir=$as_mkdir_dir ;;
5407    *)
5408      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5409      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5410    ;;
5411  esac
5412done; }
5413
5414    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5415    # A "../" for each directory in $ac_dir_suffix.
5416    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5417  else
5418    ac_dir_suffix= ac_dots=
5419  fi
5420
5421  case $srcdir in
5422  .)  ac_srcdir=.
5423      if test -z "$ac_dots"; then
5424         ac_top_srcdir=.
5425      else
5426         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5427      fi ;;
5428  [\\/]* | ?:[\\/]* )
5429      ac_srcdir=$srcdir$ac_dir_suffix;
5430      ac_top_srcdir=$srcdir ;;
5431  *) # Relative path.
5432    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5433    ac_top_srcdir=$ac_dots$srcdir ;;
5434  esac
5435
5436  if test x"$ac_file" != x-; then
5437    { echo "$as_me:5437: creating $ac_file" >&5
5438echo "$as_me: creating $ac_file" >&6;}
5439    rm -f "$ac_file"
5440  fi
5441  # Let's still pretend it is `configure' which instantiates (i.e., don't
5442  # use $as_me), people would be surprised to read:
5443  #    /* config.h.  Generated automatically by config.status.  */
5444  configure_input="Generated automatically from `echo $ac_file_in |
5445                                                 sed 's,.*/,,'` by configure."
5446
5447  # First look for the input files in the build tree, otherwise in the
5448  # src tree.
5449  ac_file_inputs=`IFS=:
5450    for f in $ac_file_in; do
5451      case $f in
5452      -) echo $tmp/stdin ;;
5453      [\\/$]*)
5454         # Absolute (can't be DOS-style, as IFS=:)
5455         test -f "$f" || { { echo "$as_me:5455: error: cannot find input file: $f" >&5
5456echo "$as_me: error: cannot find input file: $f" >&2;}
5457   { (exit 1); exit 1; }; }
5458         echo $f;;
5459      *) # Relative
5460         if test -f "$f"; then
5461           # Build tree
5462           echo $f
5463         elif test -f "$srcdir/$f"; then
5464           # Source tree
5465           echo $srcdir/$f
5466         else
5467           # /dev/null tree
5468           { { echo "$as_me:5468: error: cannot find input file: $f" >&5
5469echo "$as_me: error: cannot find input file: $f" >&2;}
5470   { (exit 1); exit 1; }; }
5471         fi;;
5472      esac
5473    done` || { (exit 1); exit 1; }
5474EOF
5475cat >>$CONFIG_STATUS <<EOF
5476  sed "$ac_vpsub
5477$extrasub
5478EOF
5479cat >>$CONFIG_STATUS <<\EOF
5480:t
5481/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5482s,@configure_input@,$configure_input,;t t
5483s,@srcdir@,$ac_srcdir,;t t
5484s,@top_srcdir@,$ac_top_srcdir,;t t
5485" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5486  rm -f $tmp/stdin
5487  if test x"$ac_file" != x-; then
5488    mv $tmp/out $ac_file
5489  else
5490    cat $tmp/out
5491    rm -f $tmp/out
5492  fi
5493
5494done
5495EOF
5496cat >>$CONFIG_STATUS <<\EOF
5497
5498#
5499# CONFIG_HEADER section.
5500#
5501
5502# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5503# NAME is the cpp macro being defined and VALUE is the value it is being given.
5504#
5505# ac_d sets the value in "#define NAME VALUE" lines.
5506ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
5507ac_dB='[ 	].*$,\1#\2'
5508ac_dC=' '
5509ac_dD=',;t'
5510# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5511ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
5512ac_uB='$,\1#\2define\3'
5513ac_uC=' '
5514ac_uD=',;t'
5515
5516for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5517  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5518  case $ac_file in
5519  - | *:- | *:-:* ) # input from stdin
5520        cat >$tmp/stdin
5521        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5522        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5523  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5524        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5525  * )   ac_file_in=$ac_file.in ;;
5526  esac
5527
5528  test x"$ac_file" != x- && { echo "$as_me:5528: creating $ac_file" >&5
5529echo "$as_me: creating $ac_file" >&6;}
5530
5531  # First look for the input files in the build tree, otherwise in the
5532  # src tree.
5533  ac_file_inputs=`IFS=:
5534    for f in $ac_file_in; do
5535      case $f in
5536      -) echo $tmp/stdin ;;
5537      [\\/$]*)
5538         # Absolute (can't be DOS-style, as IFS=:)
5539         test -f "$f" || { { echo "$as_me:5539: error: cannot find input file: $f" >&5
5540echo "$as_me: error: cannot find input file: $f" >&2;}
5541   { (exit 1); exit 1; }; }
5542         echo $f;;
5543      *) # Relative
5544         if test -f "$f"; then
5545           # Build tree
5546           echo $f
5547         elif test -f "$srcdir/$f"; then
5548           # Source tree
5549           echo $srcdir/$f
5550         else
5551           # /dev/null tree
5552           { { echo "$as_me:5552: error: cannot find input file: $f" >&5
5553echo "$as_me: error: cannot find input file: $f" >&2;}
5554   { (exit 1); exit 1; }; }
5555         fi;;
5556      esac
5557    done` || { (exit 1); exit 1; }
5558  # Remove the trailing spaces.
5559  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
5560
5561EOF
5562
5563# Transform confdefs.h into two sed scripts, `conftest.defines' and
5564# `conftest.undefs', that substitutes the proper values into
5565# config.h.in to produce config.h.  The first handles `#define'
5566# templates, and the second `#undef' templates.
5567# And first: Protect against being on the right side of a sed subst in
5568# config.status.  Protect against being in an unquoted here document
5569# in config.status.
5570rm -f conftest.defines conftest.undefs
5571# Using a here document instead of a string reduces the quoting nightmare.
5572# Putting comments in sed scripts is not portable.
5573#
5574# `end' is used to avoid that the second main sed command (meant for
5575# 0-ary CPP macros) applies to n-ary macro definitions.
5576# See the Autoconf documentation for `clear'.
5577cat >confdef2sed.sed <<\EOF
5578s/[\\&,]/\\&/g
5579s,[\\$`],\\&,g
5580t clear
5581: clear
5582s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5583t end
5584s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5585: end
5586EOF
5587# If some macros were called several times there might be several times
5588# the same #defines, which is useless.  Nevertheless, we may not want to
5589# sort them, since we want the *last* AC-DEFINE to be honored.
5590uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5591sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5592rm -f confdef2sed.sed
5593
5594# This sed command replaces #undef with comments.  This is necessary, for
5595# example, in the case of _POSIX_SOURCE, which is predefined and required
5596# on some systems where configure will not decide to define it.
5597cat >>conftest.undefs <<\EOF
5598s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5599EOF
5600
5601# Break up conftest.defines because some shells have a limit on the size
5602# of here documents, and old seds have small limits too (100 cmds).
5603echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5604echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5605echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5606echo '  :' >>$CONFIG_STATUS
5607rm -f conftest.tail
5608while grep . conftest.defines >/dev/null
5609do
5610  # Write a limited-size here document to $tmp/defines.sed.
5611  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5612  # Speed up: don't consider the non `#define' lines.
5613  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
5614  # Work around the forget-to-reset-the-flag bug.
5615  echo 't clr' >>$CONFIG_STATUS
5616  echo ': clr' >>$CONFIG_STATUS
5617  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5618  echo 'CEOF
5619  sed -f $tmp/defines.sed $tmp/in >$tmp/out
5620  rm -f $tmp/in
5621  mv $tmp/out $tmp/in
5622' >>$CONFIG_STATUS
5623  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5624  rm -f conftest.defines
5625  mv conftest.tail conftest.defines
5626done
5627rm -f conftest.defines
5628echo '  fi # egrep' >>$CONFIG_STATUS
5629echo >>$CONFIG_STATUS
5630
5631# Break up conftest.undefs because some shells have a limit on the size
5632# of here documents, and old seds have small limits too (100 cmds).
5633echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5634rm -f conftest.tail
5635while grep . conftest.undefs >/dev/null
5636do
5637  # Write a limited-size here document to $tmp/undefs.sed.
5638  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5639  # Speed up: don't consider the non `#undef'
5640  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
5641  # Work around the forget-to-reset-the-flag bug.
5642  echo 't clr' >>$CONFIG_STATUS
5643  echo ': clr' >>$CONFIG_STATUS
5644  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5645  echo 'CEOF
5646  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5647  rm -f $tmp/in
5648  mv $tmp/out $tmp/in
5649' >>$CONFIG_STATUS
5650  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5651  rm -f conftest.undefs
5652  mv conftest.tail conftest.undefs
5653done
5654rm -f conftest.undefs
5655
5656cat >>$CONFIG_STATUS <<\EOF
5657  # Let's still pretend it is `configure' which instantiates (i.e., don't
5658  # use $as_me), people would be surprised to read:
5659  #    /* config.h.  Generated automatically by config.status.  */
5660  if test x"$ac_file" = x-; then
5661    echo "/* Generated automatically by configure.  */" >$tmp/config.h
5662  else
5663    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
5664  fi
5665  cat $tmp/in >>$tmp/config.h
5666  rm -f $tmp/in
5667  if test x"$ac_file" != x-; then
5668    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5669      { echo "$as_me:5669: $ac_file is unchanged" >&5
5670echo "$as_me: $ac_file is unchanged" >&6;}
5671    else
5672      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5673         X"$ac_file" : 'X\(//\)[^/]' \| \
5674         X"$ac_file" : 'X\(//\)$' \| \
5675         X"$ac_file" : 'X\(/\)' \| \
5676         .     : '\(.\)' 2>/dev/null ||
5677echo X"$ac_file" |
5678    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5679  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5680  	  /^X\(\/\/\)$/{ s//\1/; q; }
5681  	  /^X\(\/\).*/{ s//\1/; q; }
5682  	  s/.*/./; q'`
5683      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5684        { case "$ac_dir" in
5685  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5686  *)                      as_incr_dir=.;;
5687esac
5688as_dummy="$ac_dir"
5689for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5690  case $as_mkdir_dir in
5691    # Skip DOS drivespec
5692    ?:) as_incr_dir=$as_mkdir_dir ;;
5693    *)
5694      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5695      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5696    ;;
5697  esac
5698done; }
5699
5700      fi
5701      rm -f $ac_file
5702      mv $tmp/config.h $ac_file
5703    fi
5704  else
5705    cat $tmp/config.h
5706    rm -f $tmp/config.h
5707  fi
5708done
5709EOF
5710
5711cat >>$CONFIG_STATUS <<\EOF
5712
5713{ (exit 0); exit 0; }
5714EOF
5715chmod +x $CONFIG_STATUS
5716ac_clean_files=$ac_clean_files_save
5717
5718# configure is writing to config.log, and then calls config.status.
5719# config.status does its own redirection, appending to config.log.
5720# Unfortunately, on DOS this fails, as config.log is still kept open
5721# by configure, so config.status won't be able to write to it; its
5722# output is simply discarded.  So we exec the FD to /dev/null,
5723# effectively closing config.log, so it can be properly (re)opened and
5724# appended to by config.status.  When coming back to configure, we
5725# need to make the FD available again.
5726if test "$no_create" != yes; then
5727  ac_cs_success=:
5728  exec 5>/dev/null
5729  $SHELL $CONFIG_STATUS || ac_cs_success=false
5730  exec 5>>config.log
5731  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5732  # would make configure fail if this is the last instruction.
5733  $ac_cs_success || { (exit 1); exit 1; }
5734fi
5735
5736