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