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