]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/cvs/configure
This commit was generated by cvs2svn to compensate for changes in r176892,
[FreeBSD/FreeBSD.git] / contrib / cvs / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Concurrent Versions System (CVS) 1.11.22.
4 #
5 # Report bugs to <bug-cvs@nongnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if 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+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for 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
45 do
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
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo 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.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if 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
99 fi
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
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
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
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
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
154 done
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
189 case `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= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if 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
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_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.
233 as_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.
238 as_nl='
239 '
240 IFS="   $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.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${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.
270 PACKAGE_NAME='Concurrent Versions System (CVS)'
271 PACKAGE_TARNAME='cvs'
272 PACKAGE_VERSION='1.11.22'
273 PACKAGE_STRING='Concurrent Versions System (CVS) 1.11.22'
274 PACKAGE_BUGREPORT='bug-cvs@nongnu.org'
275
276 ac_unique_file="src/cvs.h"
277 # Factoring default headers for most tests.
278 ac_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
314 ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar ac_prefix_program MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB YACC LN_S PERL CSH MKTEMP SENDMAIL PR ROFF PS2PDF TEXI2DVI MAKE_TARGETS_IN_VPATH_TRUE MAKE_TARGETS_IN_VPATH_FALSE LIBOBJS KRB4 includeopt EDITOR with_default_rsh LTLIBOBJS'
315 ac_subst_files='MKTEMP_SH_FUNCTION'
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_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.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
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
629 Try \`$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
652 done
653
654 if 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; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
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
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
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
681 done
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.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if 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
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if 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 ||
717 echo 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
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if 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
738 fi
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; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775 ac_env_EDITOR_set=${EDITOR+set}
776 ac_env_EDITOR_value=$EDITOR
777 ac_cv_env_EDITOR_set=${EDITOR+set}
778 ac_cv_env_EDITOR_value=$EDITOR
779
780 #
781 # Report the --help message.
782 #
783 if test "$ac_init_help" = "long"; then
784   # Omit some internal or obsolete options to make the list less imposing.
785   # This message is too long to be a string in the A/UX 3.1 sh.
786   cat <<_ACEOF
787 \`configure' configures Concurrent Versions System (CVS) 1.11.22 to adapt to many kinds of systems.
788
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE.  See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
797   -h, --help              display this help and exit
798       --help=short        display options specific to this package
799       --help=recursive    display the short help of all the included packages
800   -V, --version           display version information and exit
801   -q, --quiet, --silent   do not print \`checking...' messages
802       --cache-file=FILE   cache test results in FILE [disabled]
803   -C, --config-cache      alias for \`--cache-file=config.cache'
804   -n, --no-create         do not create output files
805       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
806
807 _ACEOF
808
809   cat <<_ACEOF
810 Installation directories:
811   --prefix=PREFIX         install architecture-independent files in PREFIX
812                           [$ac_default_prefix]
813   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
814                           [PREFIX]
815
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine tuning of the installation directories:
824   --bindir=DIR           user executables [EPREFIX/bin]
825   --sbindir=DIR          system admin executables [EPREFIX/sbin]
826   --libexecdir=DIR       program executables [EPREFIX/libexec]
827   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
828   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
829   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
830   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
831   --libdir=DIR           object code libraries [EPREFIX/lib]
832   --includedir=DIR       C header files [PREFIX/include]
833   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
834   --infodir=DIR          info documentation [PREFIX/info]
835   --mandir=DIR           man documentation [PREFIX/man]
836 _ACEOF
837
838   cat <<\_ACEOF
839
840 Program names:
841   --program-prefix=PREFIX            prepend PREFIX to installed program names
842   --program-suffix=SUFFIX            append SUFFIX to installed program names
843   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848   case $ac_init_help in
849      short | recursive ) echo "Configuration of Concurrent Versions System (CVS) 1.11.22:";;
850    esac
851   cat <<\_ACEOF
852
853 Optional Features:
854   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
855   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
856   --enable-maintainer-mode  enable make rules and dependencies not useful
857                           (and sometimes confusing) to the casual installer
858   --disable-dependency-tracking  speeds up one-time build
859   --enable-dependency-tracking   do not reject slow dependency extractors
860   --enable-cvs-ndbm       Use the NDBM library distributed with CVS rather
861                           than attempting to use a system NDBM library.
862                           Disabling this may not work. (default)
863   --enable-client         Include code for running as a remote client
864                           (default)
865   --enable-password-authenticated-client
866                           Enable pserver as a remote access method in the CVS
867                           client (default)
868   --enable-server         Include code for running as a server (default)
869   --enable-server-flow-control
870                           If you are working with a large remote repository
871                           and a 'cvs checkout' is swamping your network and
872                           memory, define these to enable flow control. You may
873                           optionally pass a low water mark in bytes and a high
874                           water mark in bytes, separated by commas. (default
875                           is enabled 1M,2M)
876   --enable-case-sensitivity
877                           Force CVS to expect a case sensitive file system.
878                           Enabling this on a case insensitive system should
879                           have little effect on the server or client
880                           operation, though client users may ocassionally be
881                           suprised that the CVS server appears to be case
882                           sensitive. Disabling this for a case sensitive
883                           server disables server support for case insensitive
884                           clients, which can confuse all users of case
885                           insensitive clients contacting the server. Disabling
886                           this for a case sensitive client will cause the
887                           client to ask servers to behave case insensitively,
888                           which could cause confusion for users, but also
889                           probably no real harm. (default autoselects based on
890                           the case sensitivity of the file system containing
891                           the current working directory)
892   --enable-encryption     Enable encryption support (disabled by default)
893   --enable-force-editor   When committing or importing files, you must enter a
894                           log message. Normally, you can do this either via
895                           the -m flag on the command line, the -F flag on the
896                           command line, or an editor will be started for you.
897                           If you like to use logging templates (the rcsinfo
898                           file within the $CVSROOT/CVSROOT directory), you
899                           might want to force people to use the editor even if
900                           they specify a message with -m or -F.
901                           --enable-force-editor will cause the -m or -F
902                           message to be appended to the temp file when the
903                           editor is started. (disabled by default)
904   --enable-rootcommit     Allow the root user to commit files (disabled by
905                           default)
906
907 Optional Packages:
908   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
909   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
910   --with-krb4             Kerberos 4 directory (default /usr/kerberos)
911   --with-gssapi           GSSAPI directory (default autoselects)
912   --with-editor           The default text editor CVS should use for log
913                           messages (default autoselects)
914   --with-rsh              The default remote shell CVS will use for :ext:
915                           transport (default autodetects)
916   --with-tmpdir           The temporary directory CVS should use as a default
917                           (default autoselects)
918   --with-umask            Set the umask CVS will use by default in the
919                           repository (default 002)
920   --with-cvs-admin-group=GROUP
921                           The CVS admin command is restricted to the members
922                           of this group. If this group does not exist, all
923                           users are allowed to run CVS admin. To disable the
924                           CVS admin command for all users, create an empty
925                           group by specifying the --with-cvs-admin-group=
926                           option. To disable access control for CVS admin, run
927                           configure with the --without-cvs-admin-group option.
928                           (default 'cvsadmin')
929
930 Some influential environment variables:
931   CC          C compiler command
932   CFLAGS      C compiler flags
933   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
934               nonstandard directory <lib dir>
935   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
936               headers in a nonstandard directory <include dir>
937   CPP         C preprocessor
938   EDITOR      The text editor CVS will use by default for log messages.
939
940 Use these variables to override the choices made by `configure' or to help
941 it to find libraries and programs with nonstandard names/locations.
942
943 Report bugs to <bug-cvs@nongnu.org>.
944 _ACEOF
945 fi
946
947 if test "$ac_init_help" = "recursive"; then
948   # If there are subdirs, report their specific --help.
949   ac_popdir=`pwd`
950   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951     test -d $ac_dir || continue
952     ac_builddir=.
953
954 if test "$ac_dir" != .; then
955   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956   # A "../" for each directory in $ac_dir_suffix.
957   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 else
959   ac_dir_suffix= ac_top_builddir=
960 fi
961
962 case $srcdir in
963   .)  # No --srcdir option.  We are building in place.
964     ac_srcdir=.
965     if test -z "$ac_top_builddir"; then
966        ac_top_srcdir=.
967     else
968        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969     fi ;;
970   [\\/]* | ?:[\\/]* )  # Absolute path.
971     ac_srcdir=$srcdir$ac_dir_suffix;
972     ac_top_srcdir=$srcdir ;;
973   *) # Relative path.
974     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975     ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 esac
977
978 # Do not use `cd foo && pwd` to compute absolute paths, because
979 # the directories may not exist.
980 case `pwd` in
981 .) ac_abs_builddir="$ac_dir";;
982 *)
983   case "$ac_dir" in
984   .) ac_abs_builddir=`pwd`;;
985   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
986   *) ac_abs_builddir=`pwd`/"$ac_dir";;
987   esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
991 *)
992   case ${ac_top_builddir}. in
993   .) ac_abs_top_builddir=$ac_abs_builddir;;
994   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
995   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
996   esac;;
997 esac
998 case $ac_abs_builddir in
999 .) ac_abs_srcdir=$ac_srcdir;;
1000 *)
1001   case $ac_srcdir in
1002   .) ac_abs_srcdir=$ac_abs_builddir;;
1003   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1004   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1005   esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1009 *)
1010   case $ac_top_srcdir in
1011   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1012   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1013   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1014   esac;;
1015 esac
1016
1017     cd $ac_dir
1018     # Check for guested configure; otherwise get Cygnus style configure.
1019     if test -f $ac_srcdir/configure.gnu; then
1020       echo
1021       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1022     elif test -f $ac_srcdir/configure; then
1023       echo
1024       $SHELL $ac_srcdir/configure  --help=recursive
1025     elif test -f $ac_srcdir/configure.ac ||
1026            test -f $ac_srcdir/configure.in; then
1027       echo
1028       $ac_configure --help
1029     else
1030       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1031     fi
1032     cd $ac_popdir
1033   done
1034 fi
1035
1036 test -n "$ac_init_help" && exit 0
1037 if $ac_init_version; then
1038   cat <<\_ACEOF
1039 Concurrent Versions System (CVS) configure 1.11.22
1040 generated by GNU Autoconf 2.59
1041
1042 Copyright (C) 2003 Free Software Foundation, Inc.
1043 This configure script is free software; the Free Software Foundation
1044 gives unlimited permission to copy, distribute and modify it.
1045 _ACEOF
1046   exit 0
1047 fi
1048 exec 5>config.log
1049 cat >&5 <<_ACEOF
1050 This file contains any messages produced by compilers while
1051 running configure, to aid debugging if configure makes a mistake.
1052
1053 It was created by Concurrent Versions System (CVS) $as_me 1.11.22, which was
1054 generated by GNU Autoconf 2.59.  Invocation command line was
1055
1056   $ $0 $@
1057
1058 _ACEOF
1059 {
1060 cat <<_ASUNAME
1061 ## --------- ##
1062 ## Platform. ##
1063 ## --------- ##
1064
1065 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1066 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1067 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1068 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1069 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1070
1071 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1072 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1073
1074 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1075 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1076 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1077 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1078 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1079 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1080 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1081
1082 _ASUNAME
1083
1084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1085 for as_dir in $PATH
1086 do
1087   IFS=$as_save_IFS
1088   test -z "$as_dir" && as_dir=.
1089   echo "PATH: $as_dir"
1090 done
1091
1092 } >&5
1093
1094 cat >&5 <<_ACEOF
1095
1096
1097 ## ----------- ##
1098 ## Core tests. ##
1099 ## ----------- ##
1100
1101 _ACEOF
1102
1103
1104 # Keep a trace of the command line.
1105 # Strip out --no-create and --no-recursion so they do not pile up.
1106 # Strip out --silent because we don't want to record it for future runs.
1107 # Also quote any args containing shell meta-characters.
1108 # Make two passes to allow for proper duplicate-argument suppression.
1109 ac_configure_args=
1110 ac_configure_args0=
1111 ac_configure_args1=
1112 ac_sep=
1113 ac_must_keep_next=false
1114 for ac_pass in 1 2
1115 do
1116   for ac_arg
1117   do
1118     case $ac_arg in
1119     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1120     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121     | -silent | --silent | --silen | --sile | --sil)
1122       continue ;;
1123     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1124       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1125     esac
1126     case $ac_pass in
1127     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1128     2)
1129       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1130       if test $ac_must_keep_next = true; then
1131         ac_must_keep_next=false # Got value, back to normal.
1132       else
1133         case $ac_arg in
1134           *=* | --config-cache | -C | -disable-* | --disable-* \
1135           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1136           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1137           | -with-* | --with-* | -without-* | --without-* | --x)
1138             case "$ac_configure_args0 " in
1139               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1140             esac
1141             ;;
1142           -* ) ac_must_keep_next=true ;;
1143         esac
1144       fi
1145       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1146       # Get rid of the leading space.
1147       ac_sep=" "
1148       ;;
1149     esac
1150   done
1151 done
1152 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1153 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1154
1155 # When interrupted or exit'd, cleanup temporary files, and complete
1156 # config.log.  We remove comments because anyway the quotes in there
1157 # would cause problems or look ugly.
1158 # WARNING: Be sure not to use single quotes in there, as some shells,
1159 # such as our DU 5.0 friend, will then `close' the trap.
1160 trap 'exit_status=$?
1161   # Save into config.log some information that might help in debugging.
1162   {
1163     echo
1164
1165     cat <<\_ASBOX
1166 ## ---------------- ##
1167 ## Cache variables. ##
1168 ## ---------------- ##
1169 _ASBOX
1170     echo
1171     # The following way of writing the cache mishandles newlines in values,
1172 {
1173   (set) 2>&1 |
1174     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1175     *ac_space=\ *)
1176       sed -n \
1177         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1178           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1179       ;;
1180     *)
1181       sed -n \
1182         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1183       ;;
1184     esac;
1185 }
1186     echo
1187
1188     cat <<\_ASBOX
1189 ## ----------------- ##
1190 ## Output variables. ##
1191 ## ----------------- ##
1192 _ASBOX
1193     echo
1194     for ac_var in $ac_subst_vars
1195     do
1196       eval ac_val=$`echo $ac_var`
1197       echo "$ac_var='"'"'$ac_val'"'"'"
1198     done | sort
1199     echo
1200
1201     if test -n "$ac_subst_files"; then
1202       cat <<\_ASBOX
1203 ## ------------- ##
1204 ## Output files. ##
1205 ## ------------- ##
1206 _ASBOX
1207       echo
1208       for ac_var in $ac_subst_files
1209       do
1210         eval ac_val=$`echo $ac_var`
1211         echo "$ac_var='"'"'$ac_val'"'"'"
1212       done | sort
1213       echo
1214     fi
1215
1216     if test -s confdefs.h; then
1217       cat <<\_ASBOX
1218 ## ----------- ##
1219 ## confdefs.h. ##
1220 ## ----------- ##
1221 _ASBOX
1222       echo
1223       sed "/^$/d" confdefs.h | sort
1224       echo
1225     fi
1226     test "$ac_signal" != 0 &&
1227       echo "$as_me: caught signal $ac_signal"
1228     echo "$as_me: exit $exit_status"
1229   } >&5
1230   rm -f core *.core &&
1231   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1232     exit $exit_status
1233      ' 0
1234 for ac_signal in 1 2 13 15; do
1235   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1236 done
1237 ac_signal=0
1238
1239 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1240 rm -rf conftest* confdefs.h
1241 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1242 echo >confdefs.h
1243
1244 # Predefined preprocessor variables.
1245
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_NAME "$PACKAGE_NAME"
1248 _ACEOF
1249
1250
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1253 _ACEOF
1254
1255
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1258 _ACEOF
1259
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_STRING "$PACKAGE_STRING"
1263 _ACEOF
1264
1265
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1268 _ACEOF
1269
1270
1271 # Let the site file select an alternate cache file if it wants to.
1272 # Prefer explicitly selected file to automatically selected ones.
1273 if test -z "$CONFIG_SITE"; then
1274   if test "x$prefix" != xNONE; then
1275     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1276   else
1277     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1278   fi
1279 fi
1280 for ac_site_file in $CONFIG_SITE; do
1281   if test -r "$ac_site_file"; then
1282     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1283 echo "$as_me: loading site script $ac_site_file" >&6;}
1284     sed 's/^/| /' "$ac_site_file" >&5
1285     . "$ac_site_file"
1286   fi
1287 done
1288
1289 if test -r "$cache_file"; then
1290   # Some versions of bash will fail to source /dev/null (special
1291   # files actually), so we avoid doing that.
1292   if test -f "$cache_file"; then
1293     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1294 echo "$as_me: loading cache $cache_file" >&6;}
1295     case $cache_file in
1296       [\\/]* | ?:[\\/]* ) . $cache_file;;
1297       *)                      . ./$cache_file;;
1298     esac
1299   fi
1300 else
1301   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1302 echo "$as_me: creating cache $cache_file" >&6;}
1303   >$cache_file
1304 fi
1305
1306 # Check that the precious variables saved in the cache have kept the same
1307 # value.
1308 ac_cache_corrupted=false
1309 for ac_var in `(set) 2>&1 |
1310                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1311   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1312   eval ac_new_set=\$ac_env_${ac_var}_set
1313   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1314   eval ac_new_val="\$ac_env_${ac_var}_value"
1315   case $ac_old_set,$ac_new_set in
1316     set,)
1317       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1318 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1319       ac_cache_corrupted=: ;;
1320     ,set)
1321       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1322 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1323       ac_cache_corrupted=: ;;
1324     ,);;
1325     *)
1326       if test "x$ac_old_val" != "x$ac_new_val"; then
1327         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1328 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1329         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1330 echo "$as_me:   former value:  $ac_old_val" >&2;}
1331         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1332 echo "$as_me:   current value: $ac_new_val" >&2;}
1333         ac_cache_corrupted=:
1334       fi;;
1335   esac
1336   # Pass precious variables to config.status.
1337   if test "$ac_new_set" = set; then
1338     case $ac_new_val in
1339     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1340       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1341     *) ac_arg=$ac_var=$ac_new_val ;;
1342     esac
1343     case " $ac_configure_args " in
1344       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1345       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1346     esac
1347   fi
1348 done
1349 if $ac_cache_corrupted; then
1350   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1351 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1352   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1353 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1354    { (exit 1); exit 1; }; }
1355 fi
1356
1357 ac_ext=c
1358 ac_cpp='$CPP $CPPFLAGS'
1359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390 am__api_version="1.9"
1391 ac_aux_dir=
1392 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1393   if test -f $ac_dir/install-sh; then
1394     ac_aux_dir=$ac_dir
1395     ac_install_sh="$ac_aux_dir/install-sh -c"
1396     break
1397   elif test -f $ac_dir/install.sh; then
1398     ac_aux_dir=$ac_dir
1399     ac_install_sh="$ac_aux_dir/install.sh -c"
1400     break
1401   elif test -f $ac_dir/shtool; then
1402     ac_aux_dir=$ac_dir
1403     ac_install_sh="$ac_aux_dir/shtool install -c"
1404     break
1405   fi
1406 done
1407 if test -z "$ac_aux_dir"; then
1408   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1409 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1410    { (exit 1); exit 1; }; }
1411 fi
1412 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1413 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1414 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1415
1416 # Find a good install program.  We prefer a C program (faster),
1417 # so one script is as good as another.  But avoid the broken or
1418 # incompatible versions:
1419 # SysV /etc/install, /usr/sbin/install
1420 # SunOS /usr/etc/install
1421 # IRIX /sbin/install
1422 # AIX /bin/install
1423 # AmigaOS /C/install, which installs bootblocks on floppy discs
1424 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1425 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1426 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1427 # OS/2's system install, which has a completely different semantic
1428 # ./install, which can be erroneously created by make from ./install.sh.
1429 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1430 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1431 if test -z "$INSTALL"; then
1432 if test "${ac_cv_path_install+set}" = set; then
1433   echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1436 for as_dir in $PATH
1437 do
1438   IFS=$as_save_IFS
1439   test -z "$as_dir" && as_dir=.
1440   # Account for people who put trailing slashes in PATH elements.
1441 case $as_dir/ in
1442   ./ | .// | /cC/* | \
1443   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1444   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1445   /usr/ucb/* ) ;;
1446   *)
1447     # OSF1 and SCO ODT 3.0 have their own names for install.
1448     # Don't use installbsd from OSF since it installs stuff as root
1449     # by default.
1450     for ac_prog in ginstall scoinst install; do
1451       for ac_exec_ext in '' $ac_executable_extensions; do
1452         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1453           if test $ac_prog = install &&
1454             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1455             # AIX install.  It has an incompatible calling convention.
1456             :
1457           elif test $ac_prog = install &&
1458             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1459             # program-specific install script used by HP pwplus--don't use.
1460             :
1461           else
1462             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1463             break 3
1464           fi
1465         fi
1466       done
1467     done
1468     ;;
1469 esac
1470 done
1471
1472
1473 fi
1474   if test "${ac_cv_path_install+set}" = set; then
1475     INSTALL=$ac_cv_path_install
1476   else
1477     # As a last resort, use the slow shell script.  We don't cache a
1478     # path for INSTALL within a source directory, because that will
1479     # break other packages using the cache if that directory is
1480     # removed, or if the path is relative.
1481     INSTALL=$ac_install_sh
1482   fi
1483 fi
1484 echo "$as_me:$LINENO: result: $INSTALL" >&5
1485 echo "${ECHO_T}$INSTALL" >&6
1486
1487 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1488 # It thinks the first close brace ends the variable substitution.
1489 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1490
1491 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1492
1493 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1494
1495 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1496 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1497 # Just in case
1498 sleep 1
1499 echo timestamp > conftest.file
1500 # Do `set' in a subshell so we don't clobber the current shell's
1501 # arguments.  Must try -L first in case configure is actually a
1502 # symlink; some systems play weird games with the mod time of symlinks
1503 # (eg FreeBSD returns the mod time of the symlink's containing
1504 # directory).
1505 if (
1506    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1507    if test "$*" = "X"; then
1508       # -L didn't work.
1509       set X `ls -t $srcdir/configure conftest.file`
1510    fi
1511    rm -f conftest.file
1512    if test "$*" != "X $srcdir/configure conftest.file" \
1513       && test "$*" != "X conftest.file $srcdir/configure"; then
1514
1515       # If neither matched, then we have a broken ls.  This can happen
1516       # if, for instance, CONFIG_SHELL is bash and it inherits a
1517       # broken ls alias from the environment.  This has actually
1518       # happened.  Such a system could not be considered "sane".
1519       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1520 alias in your environment" >&5
1521 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1522 alias in your environment" >&2;}
1523    { (exit 1); exit 1; }; }
1524    fi
1525
1526    test "$2" = conftest.file
1527    )
1528 then
1529    # Ok.
1530    :
1531 else
1532    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1533 Check your system clock" >&5
1534 echo "$as_me: error: newly created file is older than distributed files!
1535 Check your system clock" >&2;}
1536    { (exit 1); exit 1; }; }
1537 fi
1538 echo "$as_me:$LINENO: result: yes" >&5
1539 echo "${ECHO_T}yes" >&6
1540 test "$program_prefix" != NONE &&
1541   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1542 # Use a double $ so make ignores it.
1543 test "$program_suffix" != NONE &&
1544   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1545 # Double any \ or $.  echo might interpret backslashes.
1546 # By default was `s,x,x', remove it if useless.
1547 cat <<\_ACEOF >conftest.sed
1548 s/[\\$]/&&/g;s/;s,x,x,$//
1549 _ACEOF
1550 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1551 rm conftest.sed
1552
1553 # expand $ac_aux_dir to an absolute path
1554 am_aux_dir=`cd $ac_aux_dir && pwd`
1555
1556 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1557 # Use eval to expand $SHELL
1558 if eval "$MISSING --run true"; then
1559   am_missing_run="$MISSING --run "
1560 else
1561   am_missing_run=
1562   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1563 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1564 fi
1565
1566 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1567   # We used to keeping the `.' as first argument, in order to
1568   # allow $(mkdir_p) to be used without argument.  As in
1569   #   $(mkdir_p) $(somedir)
1570   # where $(somedir) is conditionally defined.  However this is wrong
1571   # for two reasons:
1572   #  1. if the package is installed by a user who cannot write `.'
1573   #     make install will fail,
1574   #  2. the above comment should most certainly read
1575   #     $(mkdir_p) $(DESTDIR)$(somedir)
1576   #     so it does not work when $(somedir) is undefined and
1577   #     $(DESTDIR) is not.
1578   #  To support the latter case, we have to write
1579   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1580   #  so the `.' trick is pointless.
1581   mkdir_p='mkdir -p --'
1582 else
1583   # On NextStep and OpenStep, the `mkdir' command does not
1584   # recognize any option.  It will interpret all options as
1585   # directories to create, and then abort because `.' already
1586   # exists.
1587   for d in ./-p ./--version;
1588   do
1589     test -d $d && rmdir $d
1590   done
1591   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1592   if test -f "$ac_aux_dir/mkinstalldirs"; then
1593     mkdir_p='$(mkinstalldirs)'
1594   else
1595     mkdir_p='$(install_sh) -d'
1596   fi
1597 fi
1598
1599 for ac_prog in gawk mawk nawk awk
1600 do
1601   # Extract the first word of "$ac_prog", so it can be a program name with args.
1602 set dummy $ac_prog; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_AWK+set}" = set; then
1606   echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608   if test -n "$AWK"; then
1609   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1610 else
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   for ac_exec_ext in '' $ac_executable_extensions; do
1617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618     ac_cv_prog_AWK="$ac_prog"
1619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620     break 2
1621   fi
1622 done
1623 done
1624
1625 fi
1626 fi
1627 AWK=$ac_cv_prog_AWK
1628 if test -n "$AWK"; then
1629   echo "$as_me:$LINENO: result: $AWK" >&5
1630 echo "${ECHO_T}$AWK" >&6
1631 else
1632   echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1634 fi
1635
1636   test -n "$AWK" && break
1637 done
1638
1639 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1640 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1641 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1642 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   cat >conftest.make <<\_ACEOF
1646 all:
1647         @echo 'ac_maketemp="$(MAKE)"'
1648 _ACEOF
1649 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1650 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1651 if test -n "$ac_maketemp"; then
1652   eval ac_cv_prog_make_${ac_make}_set=yes
1653 else
1654   eval ac_cv_prog_make_${ac_make}_set=no
1655 fi
1656 rm -f conftest.make
1657 fi
1658 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1659   echo "$as_me:$LINENO: result: yes" >&5
1660 echo "${ECHO_T}yes" >&6
1661   SET_MAKE=
1662 else
1663   echo "$as_me:$LINENO: result: no" >&5
1664 echo "${ECHO_T}no" >&6
1665   SET_MAKE="MAKE=${MAKE-make}"
1666 fi
1667
1668 rm -rf .tst 2>/dev/null
1669 mkdir .tst 2>/dev/null
1670 if test -d .tst; then
1671   am__leading_dot=.
1672 else
1673   am__leading_dot=_
1674 fi
1675 rmdir .tst 2>/dev/null
1676
1677 # test to see if srcdir already configured
1678 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1679    test -f $srcdir/config.status; then
1680   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1681 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1682    { (exit 1); exit 1; }; }
1683 fi
1684
1685 # test whether we have cygpath
1686 if test -z "$CYGPATH_W"; then
1687   if (cygpath --version) >/dev/null 2>/dev/null; then
1688     CYGPATH_W='cygpath -w'
1689   else
1690     CYGPATH_W=echo
1691   fi
1692 fi
1693
1694
1695 # Define the identity of the package.
1696  PACKAGE='cvs'
1697  VERSION='1.11.22'
1698
1699
1700 # Some tools Automake needs.
1701
1702 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1703
1704
1705 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1706
1707
1708 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1709
1710
1711 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1712
1713
1714 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1715
1716 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1717
1718 # Installed binaries are usually stripped using `strip' when the user
1719 # run `make install-strip'.  However `strip' might not be the right
1720 # tool to use in cross-compilation environments, therefore Automake
1721 # will honor the `STRIP' environment variable to overrule this program.
1722 if test "$cross_compiling" != no; then
1723   if test -n "$ac_tool_prefix"; then
1724   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1725 set dummy ${ac_tool_prefix}strip; ac_word=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_STRIP+set}" = set; then
1729   echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731   if test -n "$STRIP"; then
1732   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1733 else
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 for as_dir in $PATH
1736 do
1737   IFS=$as_save_IFS
1738   test -z "$as_dir" && as_dir=.
1739   for ac_exec_ext in '' $ac_executable_extensions; do
1740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743     break 2
1744   fi
1745 done
1746 done
1747
1748 fi
1749 fi
1750 STRIP=$ac_cv_prog_STRIP
1751 if test -n "$STRIP"; then
1752   echo "$as_me:$LINENO: result: $STRIP" >&5
1753 echo "${ECHO_T}$STRIP" >&6
1754 else
1755   echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1757 fi
1758
1759 fi
1760 if test -z "$ac_cv_prog_STRIP"; then
1761   ac_ct_STRIP=$STRIP
1762   # Extract the first word of "strip", so it can be a program name with args.
1763 set dummy strip; ac_word=$2
1764 echo "$as_me:$LINENO: checking for $ac_word" >&5
1765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1767   echo $ECHO_N "(cached) $ECHO_C" >&6
1768 else
1769   if test -n "$ac_ct_STRIP"; then
1770   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1771 else
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1774 do
1775   IFS=$as_save_IFS
1776   test -z "$as_dir" && as_dir=.
1777   for ac_exec_ext in '' $ac_executable_extensions; do
1778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779     ac_cv_prog_ac_ct_STRIP="strip"
1780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781     break 2
1782   fi
1783 done
1784 done
1785
1786   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1787 fi
1788 fi
1789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1790 if test -n "$ac_ct_STRIP"; then
1791   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1792 echo "${ECHO_T}$ac_ct_STRIP" >&6
1793 else
1794   echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798   STRIP=$ac_ct_STRIP
1799 else
1800   STRIP="$ac_cv_prog_STRIP"
1801 fi
1802
1803 fi
1804 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1805
1806 # We need awk for the "check" target.  The system "awk" is bad on
1807 # some platforms.
1808 # Always define AMTAR for backward compatibility.
1809
1810 AMTAR=${AMTAR-"${am_missing_run}tar"}
1811
1812 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1813
1814
1815
1816
1817
1818
1819
1820 if test "x$prefix" = xNONE; then
1821   echo $ECHO_N "checking for prefix by $ECHO_C" >&6
1822   # Extract the first word of "cvs", so it can be a program name with args.
1823 set dummy cvs; ac_word=$2
1824 echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1826 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
1827   echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829   case $ac_prefix_program in
1830   [\\/]* | ?:[\\/]*)
1831   ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
1832   ;;
1833   *)
1834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
1837   IFS=$as_save_IFS
1838   test -z "$as_dir" && as_dir=.
1839   for ac_exec_ext in '' $ac_executable_extensions; do
1840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841     ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
1842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843     break 2
1844   fi
1845 done
1846 done
1847
1848   ;;
1849 esac
1850 fi
1851 ac_prefix_program=$ac_cv_path_ac_prefix_program
1852
1853 if test -n "$ac_prefix_program"; then
1854   echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
1855 echo "${ECHO_T}$ac_prefix_program" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861   if test -n "$ac_prefix_program"; then
1862     prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
1863 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1864          X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
1865          X"$ac_prefix_program" : 'X\(//\)$' \| \
1866          X"$ac_prefix_program" : 'X\(/\)' \| \
1867          .     : '\(.\)' 2>/dev/null ||
1868 echo X"$ac_prefix_program" |
1869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1871           /^X\(\/\/\)$/{ s//\1/; q; }
1872           /^X\(\/\).*/{ s//\1/; q; }
1873           s/.*/./; q'`
1874     prefix=`(dirname "$prefix") 2>/dev/null ||
1875 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1876          X"$prefix" : 'X\(//\)[^/]' \| \
1877          X"$prefix" : 'X\(//\)$' \| \
1878          X"$prefix" : 'X\(/\)' \| \
1879          .     : '\(.\)' 2>/dev/null ||
1880 echo X"$prefix" |
1881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1882           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1883           /^X\(\/\/\)$/{ s//\1/; q; }
1884           /^X\(\/\).*/{ s//\1/; q; }
1885           s/.*/./; q'`
1886   fi
1887 fi
1888
1889           ac_config_headers="$ac_config_headers config.h"
1890
1891 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1892 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1893     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1894 if test "${enable_maintainer_mode+set}" = set; then
1895   enableval="$enable_maintainer_mode"
1896   USE_MAINTAINER_MODE=$enableval
1897 else
1898   USE_MAINTAINER_MODE=no
1899 fi;
1900   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1901 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1902
1903
1904 if test $USE_MAINTAINER_MODE = yes; then
1905   MAINTAINER_MODE_TRUE=
1906   MAINTAINER_MODE_FALSE='#'
1907 else
1908   MAINTAINER_MODE_TRUE='#'
1909   MAINTAINER_MODE_FALSE=
1910 fi
1911
1912   MAINT=$MAINTAINER_MODE_TRUE
1913
1914
1915
1916 ac_ext=c
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921 if test -n "$ac_tool_prefix"; then
1922   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1923 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_CC+set}" = set; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   if test -n "$CC"; then
1930   ac_cv_prog_CC="$CC" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1934 do
1935   IFS=$as_save_IFS
1936   test -z "$as_dir" && as_dir=.
1937   for ac_exec_ext in '' $ac_executable_extensions; do
1938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941     break 2
1942   fi
1943 done
1944 done
1945
1946 fi
1947 fi
1948 CC=$ac_cv_prog_CC
1949 if test -n "$CC"; then
1950   echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6
1952 else
1953   echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1955 fi
1956
1957 fi
1958 if test -z "$ac_cv_prog_CC"; then
1959   ac_ct_CC=$CC
1960   # Extract the first word of "gcc", so it can be a program name with args.
1961 set dummy gcc; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1965   echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967   if test -n "$ac_ct_CC"; then
1968   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973   IFS=$as_save_IFS
1974   test -z "$as_dir" && as_dir=.
1975   for ac_exec_ext in '' $ac_executable_extensions; do
1976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977     ac_cv_prog_ac_ct_CC="gcc"
1978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979     break 2
1980   fi
1981 done
1982 done
1983
1984 fi
1985 fi
1986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1987 if test -n "$ac_ct_CC"; then
1988   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1989 echo "${ECHO_T}$ac_ct_CC" >&6
1990 else
1991   echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1993 fi
1994
1995   CC=$ac_ct_CC
1996 else
1997   CC="$ac_cv_prog_CC"
1998 fi
1999
2000 if test -z "$CC"; then
2001   if test -n "$ac_tool_prefix"; then
2002   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}cc; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$CC"; then
2010   ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019     ac_cv_prog_CC="${ac_tool_prefix}cc"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2032 else
2033   echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037 fi
2038 if test -z "$ac_cv_prog_CC"; then
2039   ac_ct_CC=$CC
2040   # Extract the first word of "cc", so it can be a program name with args.
2041 set dummy cc; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test -n "$ac_ct_CC"; then
2048   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057     ac_cv_prog_ac_ct_CC="cc"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063
2064 fi
2065 fi
2066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2067 if test -n "$ac_ct_CC"; then
2068   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2069 echo "${ECHO_T}$ac_ct_CC" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075   CC=$ac_ct_CC
2076 else
2077   CC="$ac_cv_prog_CC"
2078 fi
2079
2080 fi
2081 if test -z "$CC"; then
2082   # Extract the first word of "cc", so it can be a program name with args.
2083 set dummy cc; ac_word=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_CC+set}" = set; then
2087   echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089   if test -n "$CC"; then
2090   ac_cv_prog_CC="$CC" # Let the user override the test.
2091 else
2092   ac_prog_rejected=no
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098   for ac_exec_ext in '' $ac_executable_extensions; do
2099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2101        ac_prog_rejected=yes
2102        continue
2103      fi
2104     ac_cv_prog_CC="cc"
2105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106     break 2
2107   fi
2108 done
2109 done
2110
2111 if test $ac_prog_rejected = yes; then
2112   # We found a bogon in the path, so make sure we never use it.
2113   set dummy $ac_cv_prog_CC
2114   shift
2115   if test $# != 0; then
2116     # We chose a different compiler from the bogus one.
2117     # However, it has the same basename, so the bogon will be chosen
2118     # first if we set CC to just the basename; use the full file name.
2119     shift
2120     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2121   fi
2122 fi
2123 fi
2124 fi
2125 CC=$ac_cv_prog_CC
2126 if test -n "$CC"; then
2127   echo "$as_me:$LINENO: result: $CC" >&5
2128 echo "${ECHO_T}$CC" >&6
2129 else
2130   echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2132 fi
2133
2134 fi
2135 if test -z "$CC"; then
2136   if test -n "$ac_tool_prefix"; then
2137   for ac_prog in cl
2138   do
2139     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2141 echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143 if test "${ac_cv_prog_CC+set}" = set; then
2144   echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146   if test -n "$CC"; then
2147   ac_cv_prog_CC="$CC" # Let the user override the test.
2148 else
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2151 do
2152   IFS=$as_save_IFS
2153   test -z "$as_dir" && as_dir=.
2154   for ac_exec_ext in '' $ac_executable_extensions; do
2155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2156     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158     break 2
2159   fi
2160 done
2161 done
2162
2163 fi
2164 fi
2165 CC=$ac_cv_prog_CC
2166 if test -n "$CC"; then
2167   echo "$as_me:$LINENO: result: $CC" >&5
2168 echo "${ECHO_T}$CC" >&6
2169 else
2170   echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6
2172 fi
2173
2174     test -n "$CC" && break
2175   done
2176 fi
2177 if test -z "$CC"; then
2178   ac_ct_CC=$CC
2179   for ac_prog in cl
2180 do
2181   # Extract the first word of "$ac_prog", so it can be a program name with args.
2182 set dummy $ac_prog; ac_word=$2
2183 echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   if test -n "$ac_ct_CC"; then
2189   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194   IFS=$as_save_IFS
2195   test -z "$as_dir" && as_dir=.
2196   for ac_exec_ext in '' $ac_executable_extensions; do
2197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2198     ac_cv_prog_ac_ct_CC="$ac_prog"
2199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200     break 2
2201   fi
2202 done
2203 done
2204
2205 fi
2206 fi
2207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208 if test -n "$ac_ct_CC"; then
2209   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2210 echo "${ECHO_T}$ac_ct_CC" >&6
2211 else
2212   echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6
2214 fi
2215
2216   test -n "$ac_ct_CC" && break
2217 done
2218
2219   CC=$ac_ct_CC
2220 fi
2221
2222 fi
2223
2224
2225 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: no acceptable C compiler found in \$PATH
2228 See \`config.log' for more details." >&2;}
2229    { (exit 1); exit 1; }; }
2230
2231 # Provide some information about the compiler.
2232 echo "$as_me:$LINENO:" \
2233      "checking for C compiler version" >&5
2234 ac_compiler=`set X $ac_compile; echo $2`
2235 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2236   (eval $ac_compiler --version </dev/null >&5) 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }
2240 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2241   (eval $ac_compiler -v </dev/null >&5) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }
2245 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2246   (eval $ac_compiler -V </dev/null >&5) 2>&5
2247   ac_status=$?
2248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249   (exit $ac_status); }
2250
2251 cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h.  */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h.  */
2257
2258 int
2259 main ()
2260 {
2261
2262   ;
2263   return 0;
2264 }
2265 _ACEOF
2266 ac_clean_files_save=$ac_clean_files
2267 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2268 # Try to create an executable without -o first, disregard a.out.
2269 # It will help us diagnose broken compilers, and finding out an intuition
2270 # of exeext.
2271 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2272 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2273 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2274 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2275   (eval $ac_link_default) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; then
2279   # Find the output, starting from the most likely.  This scheme is
2280 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2281 # resort.
2282
2283 # Be careful to initialize this variable, since it used to be cached.
2284 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2285 ac_cv_exeext=
2286 # b.out is created by i960 compilers.
2287 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2288 do
2289   test -f "$ac_file" || continue
2290   case $ac_file in
2291     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2292         ;;
2293     conftest.$ac_ext )
2294         # This is the source file.
2295         ;;
2296     [ab].out )
2297         # We found the default executable, but exeext='' is most
2298         # certainly right.
2299         break;;
2300     *.* )
2301         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302         # FIXME: I believe we export ac_cv_exeext for Libtool,
2303         # but it would be cool to find out if it's true.  Does anybody
2304         # maintain Libtool? --akim.
2305         export ac_cv_exeext
2306         break;;
2307     * )
2308         break;;
2309   esac
2310 done
2311 else
2312   echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2316 See \`config.log' for more details." >&5
2317 echo "$as_me: error: C compiler cannot create executables
2318 See \`config.log' for more details." >&2;}
2319    { (exit 77); exit 77; }; }
2320 fi
2321
2322 ac_exeext=$ac_cv_exeext
2323 echo "$as_me:$LINENO: result: $ac_file" >&5
2324 echo "${ECHO_T}$ac_file" >&6
2325
2326 # Check the compiler produces executables we can run.  If not, either
2327 # the compiler is broken, or we cross compile.
2328 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2329 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2330 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2331 # If not cross compiling, check that we can run a simple program.
2332 if test "$cross_compiling" != yes; then
2333   if { ac_try='./$ac_file'
2334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335   (eval $ac_try) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; }; then
2339     cross_compiling=no
2340   else
2341     if test "$cross_compiling" = maybe; then
2342         cross_compiling=yes
2343     else
2344         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2345 If you meant to cross compile, use \`--host'.
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot run C compiled programs.
2348 If you meant to cross compile, use \`--host'.
2349 See \`config.log' for more details." >&2;}
2350    { (exit 1); exit 1; }; }
2351     fi
2352   fi
2353 fi
2354 echo "$as_me:$LINENO: result: yes" >&5
2355 echo "${ECHO_T}yes" >&6
2356
2357 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2358 ac_clean_files=$ac_clean_files_save
2359 # Check the compiler produces executables we can run.  If not, either
2360 # the compiler is broken, or we cross compile.
2361 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2362 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2363 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2364 echo "${ECHO_T}$cross_compiling" >&6
2365
2366 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2367 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2369   (eval $ac_link) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; then
2373   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2374 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2375 # work properly (i.e., refer to `conftest.exe'), while it won't with
2376 # `rm'.
2377 for ac_file in conftest.exe conftest conftest.*; do
2378   test -f "$ac_file" || continue
2379   case $ac_file in
2380     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2381     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382           export ac_cv_exeext
2383           break;;
2384     * ) break;;
2385   esac
2386 done
2387 else
2388   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2391 See \`config.log' for more details." >&2;}
2392    { (exit 1); exit 1; }; }
2393 fi
2394
2395 rm -f conftest$ac_cv_exeext
2396 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2397 echo "${ECHO_T}$ac_cv_exeext" >&6
2398
2399 rm -f conftest.$ac_ext
2400 EXEEXT=$ac_cv_exeext
2401 ac_exeext=$EXEEXT
2402 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2403 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2404 if test "${ac_cv_objext+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h.  */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h.  */
2413
2414 int
2415 main ()
2416 {
2417
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 rm -f conftest.o conftest.obj
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424   (eval $ac_compile) 2>&5
2425   ac_status=$?
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); }; then
2428   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2429   case $ac_file in
2430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2431     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2432        break;;
2433   esac
2434 done
2435 else
2436   echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2438
2439 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2440 See \`config.log' for more details." >&5
2441 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2442 See \`config.log' for more details." >&2;}
2443    { (exit 1); exit 1; }; }
2444 fi
2445
2446 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2447 fi
2448 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2449 echo "${ECHO_T}$ac_cv_objext" >&6
2450 OBJEXT=$ac_cv_objext
2451 ac_objext=$OBJEXT
2452 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2453 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2454 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463
2464 int
2465 main ()
2466 {
2467 #ifndef __GNUC__
2468        choke me
2469 #endif
2470
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 rm -f conftest.$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477   (eval $ac_compile) 2>conftest.er1
2478   ac_status=$?
2479   grep -v '^ *+' conftest.er1 >conftest.err
2480   rm -f conftest.er1
2481   cat conftest.err >&5
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); } &&
2484          { ac_try='test -z "$ac_c_werror_flag"
2485                          || test ! -s conftest.err'
2486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487   (eval $ac_try) 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; } &&
2491          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2497   ac_compiler_gnu=yes
2498 else
2499   echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502 ac_compiler_gnu=no
2503 fi
2504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2506
2507 fi
2508 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2509 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2510 GCC=`test $ac_compiler_gnu = yes && echo yes`
2511 ac_test_CFLAGS=${CFLAGS+set}
2512 ac_save_CFLAGS=$CFLAGS
2513 CFLAGS="-g"
2514 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2515 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2516 if test "${ac_cv_prog_cc_g+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   cat >conftest.$ac_ext <<_ACEOF
2520 /* confdefs.h.  */
2521 _ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h.  */
2525
2526 int
2527 main ()
2528 {
2529
2530   ;
2531   return 0;
2532 }
2533 _ACEOF
2534 rm -f conftest.$ac_objext
2535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536   (eval $ac_compile) 2>conftest.er1
2537   ac_status=$?
2538   grep -v '^ *+' conftest.er1 >conftest.err
2539   rm -f conftest.er1
2540   cat conftest.err >&5
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); } &&
2543          { ac_try='test -z "$ac_c_werror_flag"
2544                          || test ! -s conftest.err'
2545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546   (eval $ac_try) 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }; } &&
2550          { ac_try='test -s conftest.$ac_objext'
2551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552   (eval $ac_try) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; }; then
2556   ac_cv_prog_cc_g=yes
2557 else
2558   echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 ac_cv_prog_cc_g=no
2562 fi
2563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2564 fi
2565 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2566 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2567 if test "$ac_test_CFLAGS" = set; then
2568   CFLAGS=$ac_save_CFLAGS
2569 elif test $ac_cv_prog_cc_g = yes; then
2570   if test "$GCC" = yes; then
2571     CFLAGS="-g -O2"
2572   else
2573     CFLAGS="-g"
2574   fi
2575 else
2576   if test "$GCC" = yes; then
2577     CFLAGS="-O2"
2578   else
2579     CFLAGS=
2580   fi
2581 fi
2582 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2583 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2584 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   ac_cv_prog_cc_stdc=no
2588 ac_save_CC=$CC
2589 cat >conftest.$ac_ext <<_ACEOF
2590 /* confdefs.h.  */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h.  */
2595 #include <stdarg.h>
2596 #include <stdio.h>
2597 #include <sys/types.h>
2598 #include <sys/stat.h>
2599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2600 struct buf { int x; };
2601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2602 static char *e (p, i)
2603      char **p;
2604      int i;
2605 {
2606   return p[i];
2607 }
2608 static char *f (char * (*g) (char **, int), char **p, ...)
2609 {
2610   char *s;
2611   va_list v;
2612   va_start (v,p);
2613   s = g (p, va_arg (v,int));
2614   va_end (v);
2615   return s;
2616 }
2617
2618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2619    function prototypes and stuff, but not '\xHH' hex character constants.
2620    These don't provoke an error unfortunately, instead are silently treated
2621    as 'x'.  The following induces an error, until -std1 is added to get
2622    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2623    array size at least.  It's necessary to write '\x00'==0 to get something
2624    that's true only with -std1.  */
2625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2626
2627 int test (int i, double x);
2628 struct s1 {int (*f) (int a);};
2629 struct s2 {int (*f) (double a);};
2630 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2631 int argc;
2632 char **argv;
2633 int
2634 main ()
2635 {
2636 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 # Don't try gcc -ansi; that turns off useful extensions and
2642 # breaks some systems' header files.
2643 # AIX                   -qlanglvl=ansi
2644 # Ultrix and OSF/1      -std1
2645 # HP-UX 10.20 and later -Ae
2646 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2647 # SVR4                  -Xc -D__EXTENSIONS__
2648 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2649 do
2650   CC="$ac_save_CC $ac_arg"
2651   rm -f conftest.$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653   (eval $ac_compile) 2>conftest.er1
2654   ac_status=$?
2655   grep -v '^ *+' conftest.er1 >conftest.err
2656   rm -f conftest.er1
2657   cat conftest.err >&5
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); } &&
2660          { ac_try='test -z "$ac_c_werror_flag"
2661                          || test ! -s conftest.err'
2662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663   (eval $ac_try) 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }; } &&
2667          { ac_try='test -s conftest.$ac_objext'
2668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669   (eval $ac_try) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }; }; then
2673   ac_cv_prog_cc_stdc=$ac_arg
2674 break
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 fi
2680 rm -f conftest.err conftest.$ac_objext
2681 done
2682 rm -f conftest.$ac_ext conftest.$ac_objext
2683 CC=$ac_save_CC
2684
2685 fi
2686
2687 case "x$ac_cv_prog_cc_stdc" in
2688   x|xno)
2689     echo "$as_me:$LINENO: result: none needed" >&5
2690 echo "${ECHO_T}none needed" >&6 ;;
2691   *)
2692     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2693 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2694     CC="$CC $ac_cv_prog_cc_stdc" ;;
2695 esac
2696
2697 # Some people use a C++ compiler to compile C.  Since we use `exit',
2698 # in C++ we need to declare it.  In case someone uses the same compiler
2699 # for both compiling C and C++ we need to have the C++ compiler decide
2700 # the declaration of exit, since it's the most demanding environment.
2701 cat >conftest.$ac_ext <<_ACEOF
2702 #ifndef __cplusplus
2703   choke me
2704 #endif
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708   (eval $ac_compile) 2>conftest.er1
2709   ac_status=$?
2710   grep -v '^ *+' conftest.er1 >conftest.err
2711   rm -f conftest.er1
2712   cat conftest.err >&5
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          { ac_try='test -z "$ac_c_werror_flag"
2716                          || test ! -s conftest.err'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; } &&
2722          { ac_try='test -s conftest.$ac_objext'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728   for ac_declaration in \
2729    '' \
2730    'extern "C" void std::exit (int) throw (); using std::exit;' \
2731    'extern "C" void std::exit (int); using std::exit;' \
2732    'extern "C" void exit (int) throw ();' \
2733    'extern "C" void exit (int);' \
2734    'void exit (int);'
2735 do
2736   cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h.  */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h.  */
2742 $ac_declaration
2743 #include <stdlib.h>
2744 int
2745 main ()
2746 {
2747 exit (42);
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754   (eval $ac_compile) 2>conftest.er1
2755   ac_status=$?
2756   grep -v '^ *+' conftest.er1 >conftest.err
2757   rm -f conftest.er1
2758   cat conftest.err >&5
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); } &&
2761          { ac_try='test -z "$ac_c_werror_flag"
2762                          || test ! -s conftest.err'
2763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764   (eval $ac_try) 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }; } &&
2768          { ac_try='test -s conftest.$ac_objext'
2769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770   (eval $ac_try) 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }; }; then
2774   :
2775 else
2776   echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2778
2779 continue
2780 fi
2781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2782   cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h.  */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h.  */
2788 $ac_declaration
2789 int
2790 main ()
2791 {
2792 exit (42);
2793   ;
2794   return 0;
2795 }
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799   (eval $ac_compile) 2>conftest.er1
2800   ac_status=$?
2801   grep -v '^ *+' conftest.er1 >conftest.err
2802   rm -f conftest.er1
2803   cat conftest.err >&5
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } &&
2806          { ac_try='test -z "$ac_c_werror_flag"
2807                          || test ! -s conftest.err'
2808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809   (eval $ac_try) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; } &&
2813          { ac_try='test -s conftest.$ac_objext'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; }; then
2819   break
2820 else
2821   echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 fi
2825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826 done
2827 rm -f conftest*
2828 if test -n "$ac_declaration"; then
2829   echo '#ifdef __cplusplus' >>confdefs.h
2830   echo $ac_declaration      >>confdefs.h
2831   echo '#endif'             >>confdefs.h
2832 fi
2833
2834 else
2835   echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2837
2838 fi
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 ac_ext=c
2841 ac_cpp='$CPP $CPPFLAGS'
2842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845 DEPDIR="${am__leading_dot}deps"
2846
2847           ac_config_commands="$ac_config_commands depfiles"
2848
2849
2850 am_make=${MAKE-make}
2851 cat > confinc << 'END'
2852 am__doit:
2853         @echo done
2854 .PHONY: am__doit
2855 END
2856 # If we don't find an include directive, just comment out the code.
2857 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2858 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2859 am__include="#"
2860 am__quote=
2861 _am_result=none
2862 # First try GNU make style include.
2863 echo "include confinc" > confmf
2864 # We grep out `Entering directory' and `Leaving directory'
2865 # messages which can occur if `w' ends up in MAKEFLAGS.
2866 # In particular we don't look at `^make:' because GNU make might
2867 # be invoked under some other name (usually "gmake"), in which
2868 # case it prints its new name instead of `make'.
2869 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2870    am__include=include
2871    am__quote=
2872    _am_result=GNU
2873 fi
2874 # Now try BSD make style include.
2875 if test "$am__include" = "#"; then
2876    echo '.include "confinc"' > confmf
2877    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2878       am__include=.include
2879       am__quote="\""
2880       _am_result=BSD
2881    fi
2882 fi
2883
2884
2885 echo "$as_me:$LINENO: result: $_am_result" >&5
2886 echo "${ECHO_T}$_am_result" >&6
2887 rm -f confinc confmf
2888
2889 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2890 if test "${enable_dependency_tracking+set}" = set; then
2891   enableval="$enable_dependency_tracking"
2892
2893 fi;
2894 if test "x$enable_dependency_tracking" != xno; then
2895   am_depcomp="$ac_aux_dir/depcomp"
2896   AMDEPBACKSLASH='\'
2897 fi
2898
2899
2900 if test "x$enable_dependency_tracking" != xno; then
2901   AMDEP_TRUE=
2902   AMDEP_FALSE='#'
2903 else
2904   AMDEP_TRUE='#'
2905   AMDEP_FALSE=
2906 fi
2907
2908
2909
2910
2911 depcc="$CC"   am_compiler_list=
2912
2913 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2914 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2915 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2916   echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2919   # We make a subdir and do the tests there.  Otherwise we can end up
2920   # making bogus files that we don't know about and never remove.  For
2921   # instance it was reported that on HP-UX the gcc test will end up
2922   # making a dummy file named `D' -- because `-MD' means `put the output
2923   # in D'.
2924   mkdir conftest.dir
2925   # Copy depcomp to subdir because otherwise we won't find it if we're
2926   # using a relative directory.
2927   cp "$am_depcomp" conftest.dir
2928   cd conftest.dir
2929   # We will build objects and dependencies in a subdirectory because
2930   # it helps to detect inapplicable dependency modes.  For instance
2931   # both Tru64's cc and ICC support -MD to output dependencies as a
2932   # side effect of compilation, but ICC will put the dependencies in
2933   # the current directory while Tru64 will put them in the object
2934   # directory.
2935   mkdir sub
2936
2937   am_cv_CC_dependencies_compiler_type=none
2938   if test "$am_compiler_list" = ""; then
2939      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2940   fi
2941   for depmode in $am_compiler_list; do
2942     # Setup a source with many dependencies, because some compilers
2943     # like to wrap large dependency lists on column 80 (with \), and
2944     # we should not choose a depcomp mode which is confused by this.
2945     #
2946     # We need to recreate these files for each test, as the compiler may
2947     # overwrite some of them when testing with obscure command lines.
2948     # This happens at least with the AIX C compiler.
2949     : > sub/conftest.c
2950     for i in 1 2 3 4 5 6; do
2951       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2952       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2953       # Solaris 8's {/usr,}/bin/sh.
2954       touch sub/conftst$i.h
2955     done
2956     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2957
2958     case $depmode in
2959     nosideeffect)
2960       # after this tag, mechanisms are not by side-effect, so they'll
2961       # only be used when explicitly requested
2962       if test "x$enable_dependency_tracking" = xyes; then
2963         continue
2964       else
2965         break
2966       fi
2967       ;;
2968     none) break ;;
2969     esac
2970     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2971     # mode.  It turns out that the SunPro C++ compiler does not properly
2972     # handle `-M -o', and we need to detect this.
2973     if depmode=$depmode \
2974        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2975        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2976        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2977          >/dev/null 2>conftest.err &&
2978        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2979        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2980        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2981       # icc doesn't choke on unknown options, it will just issue warnings
2982       # or remarks (even with -Werror).  So we grep stderr for any message
2983       # that says an option was ignored or not supported.
2984       # When given -MP, icc 7.0 and 7.1 complain thusly:
2985       #   icc: Command line warning: ignoring option '-M'; no argument required
2986       # The diagnosis changed in icc 8.0:
2987       #   icc: Command line remark: option '-MP' not supported
2988       if (grep 'ignoring option' conftest.err ||
2989           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2990         am_cv_CC_dependencies_compiler_type=$depmode
2991         break
2992       fi
2993     fi
2994   done
2995
2996   cd ..
2997   rm -rf conftest.dir
2998 else
2999   am_cv_CC_dependencies_compiler_type=none
3000 fi
3001
3002 fi
3003 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3004 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3005 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3006
3007
3008
3009 if
3010   test "x$enable_dependency_tracking" != xno \
3011   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3012   am__fastdepCC_TRUE=
3013   am__fastdepCC_FALSE='#'
3014 else
3015   am__fastdepCC_TRUE='#'
3016   am__fastdepCC_FALSE=
3017 fi
3018
3019
3020 if test "x$CC" != xcc; then
3021   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3022 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3023 else
3024   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3025 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3026 fi
3027 set dummy $CC; ac_cc=`echo $2 |
3028                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3029 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3030   echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032   cat >conftest.$ac_ext <<_ACEOF
3033 /* confdefs.h.  */
3034 _ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h.  */
3038
3039 int
3040 main ()
3041 {
3042
3043   ;
3044   return 0;
3045 }
3046 _ACEOF
3047 # Make sure it works both with $CC and with simple cc.
3048 # We do the test twice because some compilers refuse to overwrite an
3049 # existing .o file with -o, though they will create one.
3050 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3051 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052   (eval $ac_try) 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } &&
3056    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057   (eval $ac_try) 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); };
3061 then
3062   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3063   if test "x$CC" != xcc; then
3064     # Test first that cc exists at all.
3065     if { ac_try='cc -c conftest.$ac_ext >&5'
3066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067   (eval $ac_try) 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }; }; then
3071       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3072       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073   (eval $ac_try) 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); } &&
3077          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078   (eval $ac_try) 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); };
3082       then
3083         # cc works too.
3084         :
3085       else
3086         # cc exists but doesn't like -o.
3087         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3088       fi
3089     fi
3090   fi
3091 else
3092   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3093 fi
3094 rm -f conftest*
3095
3096 fi
3097 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3098   echo "$as_me:$LINENO: result: yes" >&5
3099 echo "${ECHO_T}yes" >&6
3100 else
3101   echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3103
3104 cat >>confdefs.h <<\_ACEOF
3105 #define NO_MINUS_C_MINUS_O 1
3106 _ACEOF
3107
3108 fi
3109
3110 # FIXME: we rely on the cache variable name because
3111 # there is no other way.
3112 set dummy $CC
3113 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3114 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3115    # Losing compiler, so override with the script.
3116    # FIXME: It is wrong to rewrite CC.
3117    # But if we don't then we get into trouble of one sort or another.
3118    # A longer-term fix would be to have automake use am__CC in this case,
3119    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3120    CC="$am_aux_dir/compile $CC"
3121 fi
3122
3123
3124
3125 ac_ext=c
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3131 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3132 # On Suns, sometimes $CPP names a directory.
3133 if test -n "$CPP" && test -d "$CPP"; then
3134   CPP=
3135 fi
3136 if test -z "$CPP"; then
3137   if test "${ac_cv_prog_CPP+set}" = set; then
3138   echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140       # Double quotes because CPP needs to be expanded
3141     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3142     do
3143       ac_preproc_ok=false
3144 for ac_c_preproc_warn_flag in '' yes
3145 do
3146   # Use a header file that comes with gcc, so configuring glibc
3147   # with a fresh cross-compiler works.
3148   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3149   # <limits.h> exists even on freestanding compilers.
3150   # On the NeXT, cc -E runs the code through the compiler's parser,
3151   # not just through cpp. "Syntax error" is here to catch this case.
3152   cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158 #ifdef __STDC__
3159 # include <limits.h>
3160 #else
3161 # include <assert.h>
3162 #endif
3163                      Syntax error
3164 _ACEOF
3165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } >/dev/null; then
3173   if test -s conftest.err; then
3174     ac_cpp_err=$ac_c_preproc_warn_flag
3175     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3176   else
3177     ac_cpp_err=
3178   fi
3179 else
3180   ac_cpp_err=yes
3181 fi
3182 if test -z "$ac_cpp_err"; then
3183   :
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188   # Broken: fails on valid input.
3189 continue
3190 fi
3191 rm -f conftest.err conftest.$ac_ext
3192
3193   # OK, works on sane cases.  Now check whether non-existent headers
3194   # can be detected and how.
3195   cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h.  */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h.  */
3201 #include <ac_nonexistent.h>
3202 _ACEOF
3203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } >/dev/null; then
3211   if test -s conftest.err; then
3212     ac_cpp_err=$ac_c_preproc_warn_flag
3213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3214   else
3215     ac_cpp_err=
3216   fi
3217 else
3218   ac_cpp_err=yes
3219 fi
3220 if test -z "$ac_cpp_err"; then
3221   # Broken: success on invalid input.
3222 continue
3223 else
3224   echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3226
3227   # Passes both tests.
3228 ac_preproc_ok=:
3229 break
3230 fi
3231 rm -f conftest.err conftest.$ac_ext
3232
3233 done
3234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3235 rm -f conftest.err conftest.$ac_ext
3236 if $ac_preproc_ok; then
3237   break
3238 fi
3239
3240     done
3241     ac_cv_prog_CPP=$CPP
3242
3243 fi
3244   CPP=$ac_cv_prog_CPP
3245 else
3246   ac_cv_prog_CPP=$CPP
3247 fi
3248 echo "$as_me:$LINENO: result: $CPP" >&5
3249 echo "${ECHO_T}$CPP" >&6
3250 ac_preproc_ok=false
3251 for ac_c_preproc_warn_flag in '' yes
3252 do
3253   # Use a header file that comes with gcc, so configuring glibc
3254   # with a fresh cross-compiler works.
3255   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3256   # <limits.h> exists even on freestanding compilers.
3257   # On the NeXT, cc -E runs the code through the compiler's parser,
3258   # not just through cpp. "Syntax error" is here to catch this case.
3259   cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265 #ifdef __STDC__
3266 # include <limits.h>
3267 #else
3268 # include <assert.h>
3269 #endif
3270                      Syntax error
3271 _ACEOF
3272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3274   ac_status=$?
3275   grep -v '^ *+' conftest.er1 >conftest.err
3276   rm -f conftest.er1
3277   cat conftest.err >&5
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); } >/dev/null; then
3280   if test -s conftest.err; then
3281     ac_cpp_err=$ac_c_preproc_warn_flag
3282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3283   else
3284     ac_cpp_err=
3285   fi
3286 else
3287   ac_cpp_err=yes
3288 fi
3289 if test -z "$ac_cpp_err"; then
3290   :
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295   # Broken: fails on valid input.
3296 continue
3297 fi
3298 rm -f conftest.err conftest.$ac_ext
3299
3300   # OK, works on sane cases.  Now check whether non-existent headers
3301   # can be detected and how.
3302   cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308 #include <ac_nonexistent.h>
3309 _ACEOF
3310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3312   ac_status=$?
3313   grep -v '^ *+' conftest.er1 >conftest.err
3314   rm -f conftest.er1
3315   cat conftest.err >&5
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); } >/dev/null; then
3318   if test -s conftest.err; then
3319     ac_cpp_err=$ac_c_preproc_warn_flag
3320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3321   else
3322     ac_cpp_err=
3323   fi
3324 else
3325   ac_cpp_err=yes
3326 fi
3327 if test -z "$ac_cpp_err"; then
3328   # Broken: success on invalid input.
3329 continue
3330 else
3331   echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334   # Passes both tests.
3335 ac_preproc_ok=:
3336 break
3337 fi
3338 rm -f conftest.err conftest.$ac_ext
3339
3340 done
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3344   :
3345 else
3346   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3347 See \`config.log' for more details." >&5
3348 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3349 See \`config.log' for more details." >&2;}
3350    { (exit 1); exit 1; }; }
3351 fi
3352
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358
3359
3360 echo "$as_me:$LINENO: checking for egrep" >&5
3361 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3362 if test "${ac_cv_prog_egrep+set}" = set; then
3363   echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3366     then ac_cv_prog_egrep='grep -E'
3367     else ac_cv_prog_egrep='egrep'
3368     fi
3369 fi
3370 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3371 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3372  EGREP=$ac_cv_prog_egrep
3373
3374
3375
3376 echo "$as_me:$LINENO: checking for AIX" >&5
3377 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h.  */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h.  */
3384 #ifdef _AIX
3385   yes
3386 #endif
3387
3388 _ACEOF
3389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3390   $EGREP "yes" >/dev/null 2>&1; then
3391   echo "$as_me:$LINENO: result: yes" >&5
3392 echo "${ECHO_T}yes" >&6
3393 cat >>confdefs.h <<\_ACEOF
3394 #define _ALL_SOURCE 1
3395 _ACEOF
3396
3397 else
3398   echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6
3400 fi
3401 rm -f conftest*
3402
3403
3404 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3405 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3406 if test "${ac_cv_header_stdc+set}" = set; then
3407   echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409   cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h.  */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h.  */
3415 #include <stdlib.h>
3416 #include <stdarg.h>
3417 #include <string.h>
3418 #include <float.h>
3419
3420 int
3421 main ()
3422 {
3423
3424   ;
3425   return 0;
3426 }
3427 _ACEOF
3428 rm -f conftest.$ac_objext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430   (eval $ac_compile) 2>conftest.er1
3431   ac_status=$?
3432   grep -v '^ *+' conftest.er1 >conftest.err
3433   rm -f conftest.er1
3434   cat conftest.err >&5
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); } &&
3437          { ac_try='test -z "$ac_c_werror_flag"
3438                          || test ! -s conftest.err'
3439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440   (eval $ac_try) 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); }; } &&
3444          { ac_try='test -s conftest.$ac_objext'
3445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446   (eval $ac_try) 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); }; }; then
3450   ac_cv_header_stdc=yes
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 ac_cv_header_stdc=no
3456 fi
3457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3458
3459 if test $ac_cv_header_stdc = yes; then
3460   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3461   cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h.  */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h.  */
3467 #include <string.h>
3468
3469 _ACEOF
3470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3471   $EGREP "memchr" >/dev/null 2>&1; then
3472   :
3473 else
3474   ac_cv_header_stdc=no
3475 fi
3476 rm -f conftest*
3477
3478 fi
3479
3480 if test $ac_cv_header_stdc = yes; then
3481   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3482   cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488 #include <stdlib.h>
3489
3490 _ACEOF
3491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3492   $EGREP "free" >/dev/null 2>&1; then
3493   :
3494 else
3495   ac_cv_header_stdc=no
3496 fi
3497 rm -f conftest*
3498
3499 fi
3500
3501 if test $ac_cv_header_stdc = yes; then
3502   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3503   if test "$cross_compiling" = yes; then
3504   :
3505 else
3506   cat >conftest.$ac_ext <<_ACEOF
3507 /* confdefs.h.  */
3508 _ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h.  */
3512 #include <ctype.h>
3513 #if ((' ' & 0x0FF) == 0x020)
3514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3516 #else
3517 # define ISLOWER(c) \
3518                    (('a' <= (c) && (c) <= 'i') \
3519                      || ('j' <= (c) && (c) <= 'r') \
3520                      || ('s' <= (c) && (c) <= 'z'))
3521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3522 #endif
3523
3524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3525 int
3526 main ()
3527 {
3528   int i;
3529   for (i = 0; i < 256; i++)
3530     if (XOR (islower (i), ISLOWER (i))
3531         || toupper (i) != TOUPPER (i))
3532       exit(2);
3533   exit (0);
3534 }
3535 _ACEOF
3536 rm -f conftest$ac_exeext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3538   (eval $ac_link) 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543   (eval $ac_try) 2>&5
3544   ac_status=$?
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); }; }; then
3547   :
3548 else
3549   echo "$as_me: program exited with status $ac_status" >&5
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553 ( exit $ac_status )
3554 ac_cv_header_stdc=no
3555 fi
3556 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3557 fi
3558 fi
3559 fi
3560 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3561 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3562 if test $ac_cv_header_stdc = yes; then
3563
3564 cat >>confdefs.h <<\_ACEOF
3565 #define STDC_HEADERS 1
3566 _ACEOF
3567
3568 fi
3569
3570 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3581                   inttypes.h stdint.h unistd.h
3582 do
3583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3584 echo "$as_me:$LINENO: checking for $ac_header" >&5
3585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h.  */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h.  */
3595 $ac_includes_default
3596
3597 #include <$ac_header>
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601   (eval $ac_compile) 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } &&
3608          { ac_try='test -z "$ac_c_werror_flag"
3609                          || test ! -s conftest.err'
3610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611   (eval $ac_try) 2>&5
3612   ac_status=$?
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); }; } &&
3615          { ac_try='test -s conftest.$ac_objext'
3616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617   (eval $ac_try) 2>&5
3618   ac_status=$?
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); }; }; then
3621   eval "$as_ac_Header=yes"
3622 else
3623   echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626 eval "$as_ac_Header=no"
3627 fi
3628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3629 fi
3630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3633   cat >>confdefs.h <<_ACEOF
3634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3635 _ACEOF
3636
3637 fi
3638
3639 done
3640
3641
3642 if test "${ac_cv_header_minix_config_h+set}" = set; then
3643   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3644 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3645 if test "${ac_cv_header_minix_config_h+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 fi
3648 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3649 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3650 else
3651   # Is the header compilable?
3652 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3653 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3654 cat >conftest.$ac_ext <<_ACEOF
3655 /* confdefs.h.  */
3656 _ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h.  */
3660 $ac_includes_default
3661 #include <minix/config.h>
3662 _ACEOF
3663 rm -f conftest.$ac_objext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665   (eval $ac_compile) 2>conftest.er1
3666   ac_status=$?
3667   grep -v '^ *+' conftest.er1 >conftest.err
3668   rm -f conftest.er1
3669   cat conftest.err >&5
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } &&
3672          { ac_try='test -z "$ac_c_werror_flag"
3673                          || test ! -s conftest.err'
3674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675   (eval $ac_try) 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); }; } &&
3679          { ac_try='test -s conftest.$ac_objext'
3680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681   (eval $ac_try) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; }; then
3685   ac_header_compiler=yes
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 ac_header_compiler=no
3691 fi
3692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3694 echo "${ECHO_T}$ac_header_compiler" >&6
3695
3696 # Is the header present?
3697 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3698 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3705 #include <minix/config.h>
3706 _ACEOF
3707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3708   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3709   ac_status=$?
3710   grep -v '^ *+' conftest.er1 >conftest.err
3711   rm -f conftest.er1
3712   cat conftest.err >&5
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); } >/dev/null; then
3715   if test -s conftest.err; then
3716     ac_cpp_err=$ac_c_preproc_warn_flag
3717     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3718   else
3719     ac_cpp_err=
3720   fi
3721 else
3722   ac_cpp_err=yes
3723 fi
3724 if test -z "$ac_cpp_err"; then
3725   ac_header_preproc=yes
3726 else
3727   echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730   ac_header_preproc=no
3731 fi
3732 rm -f conftest.err conftest.$ac_ext
3733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3734 echo "${ECHO_T}$ac_header_preproc" >&6
3735
3736 # So?  What about this header?
3737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3738   yes:no: )
3739     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3740 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3741     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3742 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3743     ac_header_preproc=yes
3744     ;;
3745   no:yes:* )
3746     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3747 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3748     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3749 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3750     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3751 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3752     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3753 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3754     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3755 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3756     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3757 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3758     (
3759       cat <<\_ASBOX
3760 ## --------------------------------- ##
3761 ## Report this to bug-cvs@nongnu.org ##
3762 ## --------------------------------- ##
3763 _ASBOX
3764     ) |
3765       sed "s/^/$as_me: WARNING:     /" >&2
3766     ;;
3767 esac
3768 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3769 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3770 if test "${ac_cv_header_minix_config_h+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   ac_cv_header_minix_config_h=$ac_header_preproc
3774 fi
3775 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3776 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3777
3778 fi
3779 if test $ac_cv_header_minix_config_h = yes; then
3780   MINIX=yes
3781 else
3782   MINIX=
3783 fi
3784
3785
3786 if test "$MINIX" = yes; then
3787
3788 cat >>confdefs.h <<\_ACEOF
3789 #define _POSIX_SOURCE 1
3790 _ACEOF
3791
3792
3793 cat >>confdefs.h <<\_ACEOF
3794 #define _POSIX_1_SOURCE 2
3795 _ACEOF
3796
3797
3798 cat >>confdefs.h <<\_ACEOF
3799 #define _MINIX 1
3800 _ACEOF
3801
3802 fi
3803
3804
3805 # Find the posix library needed on INTERACTIVE UNIX (ISC)
3806 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3807 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3808 if test "${ac_cv_search_strerror+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811   ac_func_search_save_LIBS=$LIBS
3812 ac_cv_search_strerror=no
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h.  */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h.  */
3819
3820 /* Override any gcc2 internal prototype to avoid an error.  */
3821 #ifdef __cplusplus
3822 extern "C"
3823 #endif
3824 /* We use char because int might match the return type of a gcc2
3825    builtin and then its argument prototype would still apply.  */
3826 char strerror ();
3827 int
3828 main ()
3829 {
3830 strerror ();
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 rm -f conftest.$ac_objext conftest$ac_exeext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3837   (eval $ac_link) 2>conftest.er1
3838   ac_status=$?
3839   grep -v '^ *+' conftest.er1 >conftest.err
3840   rm -f conftest.er1
3841   cat conftest.err >&5
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); } &&
3844          { ac_try='test -z "$ac_c_werror_flag"
3845                          || test ! -s conftest.err'
3846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847   (eval $ac_try) 2>&5
3848   ac_status=$?
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); }; } &&
3851          { ac_try='test -s conftest$ac_exeext'
3852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853   (eval $ac_try) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }; }; then
3857   ac_cv_search_strerror="none required"
3858 else
3859   echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862 fi
3863 rm -f conftest.err conftest.$ac_objext \
3864       conftest$ac_exeext conftest.$ac_ext
3865 if test "$ac_cv_search_strerror" = no; then
3866   for ac_lib in cposix; do
3867     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3868     cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h.  */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h.  */
3874
3875 /* Override any gcc2 internal prototype to avoid an error.  */
3876 #ifdef __cplusplus
3877 extern "C"
3878 #endif
3879 /* We use char because int might match the return type of a gcc2
3880    builtin and then its argument prototype would still apply.  */
3881 char strerror ();
3882 int
3883 main ()
3884 {
3885 strerror ();
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 rm -f conftest.$ac_objext conftest$ac_exeext
3891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3892   (eval $ac_link) 2>conftest.er1
3893   ac_status=$?
3894   grep -v '^ *+' conftest.er1 >conftest.err
3895   rm -f conftest.er1
3896   cat conftest.err >&5
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); } &&
3899          { ac_try='test -z "$ac_c_werror_flag"
3900                          || test ! -s conftest.err'
3901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902   (eval $ac_try) 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; } &&
3906          { ac_try='test -s conftest$ac_exeext'
3907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908   (eval $ac_try) 2>&5
3909   ac_status=$?
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); }; }; then
3912   ac_cv_search_strerror="-l$ac_lib"
3913 break
3914 else
3915   echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 fi
3919 rm -f conftest.err conftest.$ac_objext \
3920       conftest$ac_exeext conftest.$ac_ext
3921   done
3922 fi
3923 LIBS=$ac_func_search_save_LIBS
3924 fi
3925 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3926 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3927 if test "$ac_cv_search_strerror" != no; then
3928   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3929
3930 fi
3931
3932
3933
3934 if test -n "$ac_tool_prefix"; then
3935   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3936 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3937 echo "$as_me:$LINENO: checking for $ac_word" >&5
3938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3939 if test "${ac_cv_prog_RANLIB+set}" = set; then
3940   echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942   if test -n "$RANLIB"; then
3943   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948   IFS=$as_save_IFS
3949   test -z "$as_dir" && as_dir=.
3950   for ac_exec_ext in '' $ac_executable_extensions; do
3951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954     break 2
3955   fi
3956 done
3957 done
3958
3959 fi
3960 fi
3961 RANLIB=$ac_cv_prog_RANLIB
3962 if test -n "$RANLIB"; then
3963   echo "$as_me:$LINENO: result: $RANLIB" >&5
3964 echo "${ECHO_T}$RANLIB" >&6
3965 else
3966   echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3968 fi
3969
3970 fi
3971 if test -z "$ac_cv_prog_RANLIB"; then
3972   ac_ct_RANLIB=$RANLIB
3973   # Extract the first word of "ranlib", so it can be a program name with args.
3974 set dummy ranlib; ac_word=$2
3975 echo "$as_me:$LINENO: checking for $ac_word" >&5
3976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3977 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3978   echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980   if test -n "$ac_ct_RANLIB"; then
3981   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986   IFS=$as_save_IFS
3987   test -z "$as_dir" && as_dir=.
3988   for ac_exec_ext in '' $ac_executable_extensions; do
3989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990     ac_cv_prog_ac_ct_RANLIB="ranlib"
3991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992     break 2
3993   fi
3994 done
3995 done
3996
3997   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3998 fi
3999 fi
4000 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4001 if test -n "$ac_ct_RANLIB"; then
4002   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4003 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4004 else
4005   echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4007 fi
4008
4009   RANLIB=$ac_ct_RANLIB
4010 else
4011   RANLIB="$ac_cv_prog_RANLIB"
4012 fi
4013
4014 for ac_prog in 'bison -y' byacc
4015 do
4016   # Extract the first word of "$ac_prog", so it can be a program name with args.
4017 set dummy $ac_prog; ac_word=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_prog_YACC+set}" = set; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   if test -n "$YACC"; then
4024   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031   for ac_exec_ext in '' $ac_executable_extensions; do
4032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033     ac_cv_prog_YACC="$ac_prog"
4034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035     break 2
4036   fi
4037 done
4038 done
4039
4040 fi
4041 fi
4042 YACC=$ac_cv_prog_YACC
4043 if test -n "$YACC"; then
4044   echo "$as_me:$LINENO: result: $YACC" >&5
4045 echo "${ECHO_T}$YACC" >&6
4046 else
4047   echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4049 fi
4050
4051   test -n "$YACC" && break
4052 done
4053 test -n "$YACC" || YACC="yacc"
4054
4055 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4056 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4057 LN_S=$as_ln_s
4058 if test "$LN_S" = "ln -s"; then
4059   echo "$as_me:$LINENO: result: yes" >&5
4060 echo "${ECHO_T}yes" >&6
4061 else
4062   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4063 echo "${ECHO_T}no, using $LN_S" >&6
4064 fi
4065
4066
4067
4068 # Extract the first word of "perl", so it can be a program name with args.
4069 set dummy perl; ac_word=$2
4070 echo "$as_me:$LINENO: checking for $ac_word" >&5
4071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4072 if test "${ac_cv_path_PERL+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   case $PERL in
4076   [\\/]* | ?:[\\/]*)
4077   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4078   ;;
4079   *)
4080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083   IFS=$as_save_IFS
4084   test -z "$as_dir" && as_dir=.
4085   for ac_exec_ext in '' $ac_executable_extensions; do
4086   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089     break 2
4090   fi
4091 done
4092 done
4093
4094   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4095   ;;
4096 esac
4097 fi
4098 PERL=$ac_cv_path_PERL
4099
4100 if test -n "$PERL"; then
4101   echo "$as_me:$LINENO: result: $PERL" >&5
4102 echo "${ECHO_T}$PERL" >&6
4103 else
4104   echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4106 fi
4107
4108 # Extract the first word of "csh", so it can be a program name with args.
4109 set dummy csh; ac_word=$2
4110 echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4112 if test "${ac_cv_path_CSH+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   case $CSH in
4116   [\\/]* | ?:[\\/]*)
4117   ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
4118   ;;
4119   *)
4120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125   for ac_exec_ext in '' $ac_executable_extensions; do
4126   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127     ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
4128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129     break 2
4130   fi
4131 done
4132 done
4133
4134   test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
4135   ;;
4136 esac
4137 fi
4138 CSH=$ac_cv_path_CSH
4139
4140 if test -n "$CSH"; then
4141   echo "$as_me:$LINENO: result: $CSH" >&5
4142 echo "${ECHO_T}$CSH" >&6
4143 else
4144   echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4146 fi
4147
4148 # for contrib/rcs2log.sh & src/cvsbug.in.
4149 # Extract the first word of "mktemp", so it can be a program name with args.
4150 set dummy mktemp; ac_word=$2
4151 echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4153 if test "${ac_cv_path_MKTEMP+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   case $MKTEMP in
4157   [\\/]* | ?:[\\/]*)
4158   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
4159   ;;
4160   *)
4161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164   IFS=$as_save_IFS
4165   test -z "$as_dir" && as_dir=.
4166   for ac_exec_ext in '' $ac_executable_extensions; do
4167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
4169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170     break 2
4171   fi
4172 done
4173 done
4174
4175   test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp"
4176   ;;
4177 esac
4178 fi
4179 MKTEMP=$ac_cv_path_MKTEMP
4180
4181 if test -n "$MKTEMP"; then
4182   echo "$as_me:$LINENO: result: $MKTEMP" >&5
4183 echo "${ECHO_T}$MKTEMP" >&6
4184 else
4185   echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4187 fi
4188
4189 if test x"$MKTEMP" = xmktemp; then
4190         MKTEMP_SH_FUNCTION=$srcdir/mktemp.sh
4191 else
4192         MKTEMP_SH_FUNCTION=/dev/null
4193 fi
4194
4195 # for src/cvsbug.in
4196 # Extract the first word of "sendmail", so it can be a program name with args.
4197 set dummy sendmail; ac_word=$2
4198 echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4200 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   case $SENDMAIL in
4204   [\\/]* | ?:[\\/]*)
4205   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4206   ;;
4207   *)
4208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 as_dummy="$PATH:/usr/sbin:/usr/lib"
4210 for as_dir in $as_dummy
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214   for ac_exec_ext in '' $ac_executable_extensions; do
4215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218     break 2
4219   fi
4220 done
4221 done
4222
4223   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no"
4224   ;;
4225 esac
4226 fi
4227 SENDMAIL=$ac_cv_path_SENDMAIL
4228
4229 if test -n "$SENDMAIL"; then
4230   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4231 echo "${ECHO_T}$SENDMAIL" >&6
4232 else
4233   echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4235 fi
4236
4237 # For diff/util.c
4238 # Extract the first word of "pr", so it can be a program name with args.
4239 set dummy pr; ac_word=$2
4240 echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4242 if test "${ac_cv_path_PR+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   case $PR in
4246   [\\/]* | ?:[\\/]*)
4247   ac_cv_path_PR="$PR" # Let the user override the test with a path.
4248   ;;
4249   *)
4250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255   for ac_exec_ext in '' $ac_executable_extensions; do
4256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257     ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext"
4258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259     break 2
4260   fi
4261 done
4262 done
4263
4264   test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
4265   ;;
4266 esac
4267 fi
4268 PR=$ac_cv_path_PR
4269
4270 if test -n "$PR"; then
4271   echo "$as_me:$LINENO: result: $PR" >&5
4272 echo "${ECHO_T}$PR" >&6
4273 else
4274   echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4276 fi
4277
4278 if test x"$PR" != xno; then
4279
4280 cat >>confdefs.h <<_ACEOF
4281 #define PR_PROGRAM "$PR"
4282 _ACEOF
4283
4284 fi
4285
4286 missing_dir=`cd $ac_aux_dir && pwd`
4287 glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
4288 for ac_prog in groff roff
4289 do
4290   # Extract the first word of "$ac_prog", so it can be a program name with args.
4291 set dummy $ac_prog; ac_word=$2
4292 echo "$as_me:$LINENO: checking for $ac_word" >&5
4293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4294 if test "${ac_cv_path_ROFF+set}" = set; then
4295   echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297   case $ROFF in
4298   [\\/]* | ?:[\\/]*)
4299   ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path.
4300   ;;
4301   *)
4302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $glocs
4304 do
4305   IFS=$as_save_IFS
4306   test -z "$as_dir" && as_dir=.
4307   for ac_exec_ext in '' $ac_executable_extensions; do
4308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309     ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext"
4310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311     break 2
4312   fi
4313 done
4314 done
4315
4316   ;;
4317 esac
4318 fi
4319 ROFF=$ac_cv_path_ROFF
4320
4321 if test -n "$ROFF"; then
4322   echo "$as_me:$LINENO: result: $ROFF" >&5
4323 echo "${ECHO_T}$ROFF" >&6
4324 else
4325   echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4327 fi
4328
4329   test -n "$ROFF" && break
4330 done
4331 test -n "$ROFF" || ROFF="$missing_dir/missing roff"
4332
4333 # Extract the first word of "ps2pdf", so it can be a program name with args.
4334 set dummy ps2pdf; ac_word=$2
4335 echo "$as_me:$LINENO: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337 if test "${ac_cv_path_PS2PDF+set}" = set; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340   case $PS2PDF in
4341   [\\/]* | ?:[\\/]*)
4342   ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
4343   ;;
4344   *)
4345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350   for ac_exec_ext in '' $ac_executable_extensions; do
4351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352     ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
4353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354     break 2
4355   fi
4356 done
4357 done
4358
4359   test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
4360   ;;
4361 esac
4362 fi
4363 PS2PDF=$ac_cv_path_PS2PDF
4364
4365 if test -n "$PS2PDF"; then
4366   echo "$as_me:$LINENO: result: $PS2PDF" >&5
4367 echo "${ECHO_T}$PS2PDF" >&6
4368 else
4369   echo "$as_me:$LINENO: result: no" >&5
4370 echo "${ECHO_T}no" >&6
4371 fi
4372
4373 # Extract the first word of "texi2dvi", so it can be a program name with args.
4374 set dummy texi2dvi; ac_word=$2
4375 echo "$as_me:$LINENO: checking for $ac_word" >&5
4376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4377 if test "${ac_cv_path_TEXI2DVI+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380   case $TEXI2DVI in
4381   [\\/]* | ?:[\\/]*)
4382   ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
4383   ;;
4384   *)
4385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4387 do
4388   IFS=$as_save_IFS
4389   test -z "$as_dir" && as_dir=.
4390   for ac_exec_ext in '' $ac_executable_extensions; do
4391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4392     ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
4393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394     break 2
4395   fi
4396 done
4397 done
4398
4399   test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
4400   ;;
4401 esac
4402 fi
4403 TEXI2DVI=$ac_cv_path_TEXI2DVI
4404
4405 if test -n "$TEXI2DVI"; then
4406   echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
4407 echo "${ECHO_T}$TEXI2DVI" >&6
4408 else
4409   echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4411 fi
4412
4413
4414 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
4415 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
4416 if test "${ac_cv_sys_interpreter+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   echo '#! /bin/cat
4420 exit 69
4421 ' >conftest
4422 chmod u+x conftest
4423 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
4424 if test $? -ne 69; then
4425    ac_cv_sys_interpreter=yes
4426 else
4427    ac_cv_sys_interpreter=no
4428 fi
4429 rm -f conftest
4430 fi
4431 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
4432 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
4433 interpval=$ac_cv_sys_interpreter
4434
4435 if test X"$ac_cv_sys_interpreter" != X"yes" ; then
4436   # silly trick to avoid problems in AC macros...
4437   ac_msg='perl scripts using #! may not be invoked properly'
4438   { echo "$as_me:$LINENO: WARNING: $ac_msg" >&5
4439 echo "$as_me: WARNING: $ac_msg" >&2;}
4440 fi
4441
4442 # BSD's logo is a devil for a reason, hey?
4443 echo "$as_me:$LINENO: checking for BSD VPATH bug in make" >&5
4444 echo $ECHO_N "checking for BSD VPATH bug in make... $ECHO_C" >&6
4445 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then
4446   echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448   if test ! -d ac_test_dir ; then
4449         { ac_try='mkdir ac_test_dir'
4450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451   (eval $ac_try) 2>&5
4452   ac_status=$?
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); }; }
4455 fi
4456 cat >conftestmake <<EOF
4457 VPATH = ac_test_dir
4458 ac_test_target: ac_test_dep
4459         echo BSD VPATH bug present >&2
4460 ac_test_dep: ac_test_dep_dep
4461 EOF
4462 touch ac_test_dir/ac_test_dep_dep
4463 touch ac_test_dir/ac_test_dep
4464 touch ac_test_target
4465 # Don't know why, but the following test doesn't work under FreeBSD 4.2
4466 # without this sleep command
4467 sleep 1
4468 if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
4469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470   (eval $ac_try) 2>&5
4471   ac_status=$?
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); }; } ; then
4474         ccvs_cv_bsd_make_vpath_bug=yes
4475 else
4476         ccvs_cv_bsd_make_vpath_bug=no
4477 fi
4478 { ac_try='rm -rf ac_test_dir ac_test_target conftestmake'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; }
4484 fi
4485 echo "$as_me:$LINENO: result: $ccvs_cv_bsd_make_vpath_bug" >&5
4486 echo "${ECHO_T}$ccvs_cv_bsd_make_vpath_bug" >&6
4487 # We also don't need to worry about the bug when $srcdir = $builddir
4488
4489
4490 if \
4491                 test $ccvs_cv_bsd_make_vpath_bug = no \
4492                 || test $srcdir = .; then
4493   MAKE_TARGETS_IN_VPATH_TRUE=
4494   MAKE_TARGETS_IN_VPATH_FALSE='#'
4495 else
4496   MAKE_TARGETS_IN_VPATH_TRUE='#'
4497   MAKE_TARGETS_IN_VPATH_FALSE=
4498 fi
4499
4500
4501
4502
4503
4504
4505
4506 ac_header_dirent=no
4507 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4508   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4509 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4510 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h.  */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h.  */
4520 #include <sys/types.h>
4521 #include <$ac_hdr>
4522
4523 int
4524 main ()
4525 {
4526 if ((DIR *) 0)
4527 return 0;
4528   ;
4529   return 0;
4530 }
4531 _ACEOF
4532 rm -f conftest.$ac_objext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534   (eval $ac_compile) 2>conftest.er1
4535   ac_status=$?
4536   grep -v '^ *+' conftest.er1 >conftest.err
4537   rm -f conftest.er1
4538   cat conftest.err >&5
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); } &&
4541          { ac_try='test -z "$ac_c_werror_flag"
4542                          || test ! -s conftest.err'
4543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544   (eval $ac_try) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; } &&
4548          { ac_try='test -s conftest.$ac_objext'
4549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550   (eval $ac_try) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }; }; then
4554   eval "$as_ac_Header=yes"
4555 else
4556   echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559 eval "$as_ac_Header=no"
4560 fi
4561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562 fi
4563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4566   cat >>confdefs.h <<_ACEOF
4567 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4568 _ACEOF
4569
4570 ac_header_dirent=$ac_hdr; break
4571 fi
4572
4573 done
4574 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4575 if test $ac_header_dirent = dirent.h; then
4576   echo "$as_me:$LINENO: checking for library containing opendir" >&5
4577 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4578 if test "${ac_cv_search_opendir+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   ac_func_search_save_LIBS=$LIBS
4582 ac_cv_search_opendir=no
4583 cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589
4590 /* Override any gcc2 internal prototype to avoid an error.  */
4591 #ifdef __cplusplus
4592 extern "C"
4593 #endif
4594 /* We use char because int might match the return type of a gcc2
4595    builtin and then its argument prototype would still apply.  */
4596 char opendir ();
4597 int
4598 main ()
4599 {
4600 opendir ();
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext conftest$ac_exeext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607   (eval $ac_link) 2>conftest.er1
4608   ac_status=$?
4609   grep -v '^ *+' conftest.er1 >conftest.err
4610   rm -f conftest.er1
4611   cat conftest.err >&5
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } &&
4614          { ac_try='test -z "$ac_c_werror_flag"
4615                          || test ! -s conftest.err'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest$ac_exeext'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   ac_cv_search_opendir="none required"
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 fi
4633 rm -f conftest.err conftest.$ac_objext \
4634       conftest$ac_exeext conftest.$ac_ext
4635 if test "$ac_cv_search_opendir" = no; then
4636   for ac_lib in dir; do
4637     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4638     cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h.  */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h.  */
4644
4645 /* Override any gcc2 internal prototype to avoid an error.  */
4646 #ifdef __cplusplus
4647 extern "C"
4648 #endif
4649 /* We use char because int might match the return type of a gcc2
4650    builtin and then its argument prototype would still apply.  */
4651 char opendir ();
4652 int
4653 main ()
4654 {
4655 opendir ();
4656   ;
4657   return 0;
4658 }
4659 _ACEOF
4660 rm -f conftest.$ac_objext conftest$ac_exeext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4662   (eval $ac_link) 2>conftest.er1
4663   ac_status=$?
4664   grep -v '^ *+' conftest.er1 >conftest.err
4665   rm -f conftest.er1
4666   cat conftest.err >&5
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); } &&
4669          { ac_try='test -z "$ac_c_werror_flag"
4670                          || test ! -s conftest.err'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; } &&
4676          { ac_try='test -s conftest$ac_exeext'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; }; then
4682   ac_cv_search_opendir="-l$ac_lib"
4683 break
4684 else
4685   echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 fi
4689 rm -f conftest.err conftest.$ac_objext \
4690       conftest$ac_exeext conftest.$ac_ext
4691   done
4692 fi
4693 LIBS=$ac_func_search_save_LIBS
4694 fi
4695 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4696 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4697 if test "$ac_cv_search_opendir" != no; then
4698   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4699
4700 fi
4701
4702 else
4703   echo "$as_me:$LINENO: checking for library containing opendir" >&5
4704 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4705 if test "${ac_cv_search_opendir+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   ac_func_search_save_LIBS=$LIBS
4709 ac_cv_search_opendir=no
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716
4717 /* Override any gcc2 internal prototype to avoid an error.  */
4718 #ifdef __cplusplus
4719 extern "C"
4720 #endif
4721 /* We use char because int might match the return type of a gcc2
4722    builtin and then its argument prototype would still apply.  */
4723 char opendir ();
4724 int
4725 main ()
4726 {
4727 opendir ();
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest.$ac_objext conftest$ac_exeext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734   (eval $ac_link) 2>conftest.er1
4735   ac_status=$?
4736   grep -v '^ *+' conftest.er1 >conftest.err
4737   rm -f conftest.er1
4738   cat conftest.err >&5
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); } &&
4741          { ac_try='test -z "$ac_c_werror_flag"
4742                          || test ! -s conftest.err'
4743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744   (eval $ac_try) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; } &&
4748          { ac_try='test -s conftest$ac_exeext'
4749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750   (eval $ac_try) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; }; then
4754   ac_cv_search_opendir="none required"
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759 fi
4760 rm -f conftest.err conftest.$ac_objext \
4761       conftest$ac_exeext conftest.$ac_ext
4762 if test "$ac_cv_search_opendir" = no; then
4763   for ac_lib in x; do
4764     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4765     cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h.  */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h.  */
4771
4772 /* Override any gcc2 internal prototype to avoid an error.  */
4773 #ifdef __cplusplus
4774 extern "C"
4775 #endif
4776 /* We use char because int might match the return type of a gcc2
4777    builtin and then its argument prototype would still apply.  */
4778 char opendir ();
4779 int
4780 main ()
4781 {
4782 opendir ();
4783   ;
4784   return 0;
4785 }
4786 _ACEOF
4787 rm -f conftest.$ac_objext conftest$ac_exeext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789   (eval $ac_link) 2>conftest.er1
4790   ac_status=$?
4791   grep -v '^ *+' conftest.er1 >conftest.err
4792   rm -f conftest.er1
4793   cat conftest.err >&5
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); } &&
4796          { ac_try='test -z "$ac_c_werror_flag"
4797                          || test ! -s conftest.err'
4798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799   (eval $ac_try) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; } &&
4803          { ac_try='test -s conftest$ac_exeext'
4804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805   (eval $ac_try) 2>&5
4806   ac_status=$?
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); }; }; then
4809   ac_cv_search_opendir="-l$ac_lib"
4810 break
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 fi
4816 rm -f conftest.err conftest.$ac_objext \
4817       conftest$ac_exeext conftest.$ac_ext
4818   done
4819 fi
4820 LIBS=$ac_func_search_save_LIBS
4821 fi
4822 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4823 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4824 if test "$ac_cv_search_opendir" != no; then
4825   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4826
4827 fi
4828
4829 fi
4830
4831 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4833 if test "${ac_cv_header_stdc+set}" = set; then
4834   echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836   cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h.  */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h.  */
4842 #include <stdlib.h>
4843 #include <stdarg.h>
4844 #include <string.h>
4845 #include <float.h>
4846
4847 int
4848 main ()
4849 {
4850
4851   ;
4852   return 0;
4853 }
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857   (eval $ac_compile) 2>conftest.er1
4858   ac_status=$?
4859   grep -v '^ *+' conftest.er1 >conftest.err
4860   rm -f conftest.er1
4861   cat conftest.err >&5
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } &&
4864          { ac_try='test -z "$ac_c_werror_flag"
4865                          || test ! -s conftest.err'
4866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867   (eval $ac_try) 2>&5
4868   ac_status=$?
4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); }; } &&
4871          { ac_try='test -s conftest.$ac_objext'
4872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873   (eval $ac_try) 2>&5
4874   ac_status=$?
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); }; }; then
4877   ac_cv_header_stdc=yes
4878 else
4879   echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 ac_cv_header_stdc=no
4883 fi
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885
4886 if test $ac_cv_header_stdc = yes; then
4887   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4888   cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h.  */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h.  */
4894 #include <string.h>
4895
4896 _ACEOF
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898   $EGREP "memchr" >/dev/null 2>&1; then
4899   :
4900 else
4901   ac_cv_header_stdc=no
4902 fi
4903 rm -f conftest*
4904
4905 fi
4906
4907 if test $ac_cv_header_stdc = yes; then
4908   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4909   cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h.  */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h.  */
4915 #include <stdlib.h>
4916
4917 _ACEOF
4918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4919   $EGREP "free" >/dev/null 2>&1; then
4920   :
4921 else
4922   ac_cv_header_stdc=no
4923 fi
4924 rm -f conftest*
4925
4926 fi
4927
4928 if test $ac_cv_header_stdc = yes; then
4929   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4930   if test "$cross_compiling" = yes; then
4931   :
4932 else
4933   cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h.  */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h.  */
4939 #include <ctype.h>
4940 #if ((' ' & 0x0FF) == 0x020)
4941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4943 #else
4944 # define ISLOWER(c) \
4945                    (('a' <= (c) && (c) <= 'i') \
4946                      || ('j' <= (c) && (c) <= 'r') \
4947                      || ('s' <= (c) && (c) <= 'z'))
4948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4949 #endif
4950
4951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4952 int
4953 main ()
4954 {
4955   int i;
4956   for (i = 0; i < 256; i++)
4957     if (XOR (islower (i), ISLOWER (i))
4958         || toupper (i) != TOUPPER (i))
4959       exit(2);
4960   exit (0);
4961 }
4962 _ACEOF
4963 rm -f conftest$ac_exeext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4965   (eval $ac_link) 2>&5
4966   ac_status=$?
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970   (eval $ac_try) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; }; then
4974   :
4975 else
4976   echo "$as_me: program exited with status $ac_status" >&5
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4979
4980 ( exit $ac_status )
4981 ac_cv_header_stdc=no
4982 fi
4983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4984 fi
4985 fi
4986 fi
4987 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4988 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4989 if test $ac_cv_header_stdc = yes; then
4990
4991 cat >>confdefs.h <<\_ACEOF
4992 #define STDC_HEADERS 1
4993 _ACEOF
4994
4995 fi
4996
4997 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4998 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4999 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5000   echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002   cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h.  */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h.  */
5008 #include <sys/types.h>
5009 #include <sys/wait.h>
5010 #ifndef WEXITSTATUS
5011 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5012 #endif
5013 #ifndef WIFEXITED
5014 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5015 #endif
5016
5017 int
5018 main ()
5019 {
5020   int s;
5021   wait (&s);
5022   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 rm -f conftest.$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029   (eval $ac_compile) 2>conftest.er1
5030   ac_status=$?
5031   grep -v '^ *+' conftest.er1 >conftest.err
5032   rm -f conftest.er1
5033   cat conftest.err >&5
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } &&
5036          { ac_try='test -z "$ac_c_werror_flag"
5037                          || test ! -s conftest.err'
5038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039   (eval $ac_try) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); }; } &&
5043          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5049   ac_cv_header_sys_wait_h=yes
5050 else
5051   echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 ac_cv_header_sys_wait_h=no
5055 fi
5056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5057 fi
5058 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5059 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5060 if test $ac_cv_header_sys_wait_h = yes; then
5061
5062 cat >>confdefs.h <<\_ACEOF
5063 #define HAVE_SYS_WAIT_H 1
5064 _ACEOF
5065
5066 fi
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087 for ac_header in \
5088         errno.h \
5089         direct.h \
5090         fcntl.h \
5091         fnmatch.h \
5092         io.h \
5093         limits.h \
5094         memory.h \
5095         ndbm.h \
5096         string.h \
5097         syslog.h \
5098         sys/bsdtypes.h \
5099         sys/file.h \
5100         sys/param.h \
5101         sys/resource.h \
5102         sys/select.h \
5103         sys/time.h \
5104         sys/timeb.h \
5105         unistd.h \
5106         utime.h\
5107
5108 do
5109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5111   echo "$as_me:$LINENO: checking for $ac_header" >&5
5112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5114   echo $ECHO_N "(cached) $ECHO_C" >&6
5115 fi
5116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5118 else
5119   # Is the header compilable?
5120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 $ac_includes_default
5129 #include <$ac_header>
5130 _ACEOF
5131 rm -f conftest.$ac_objext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133   (eval $ac_compile) 2>conftest.er1
5134   ac_status=$?
5135   grep -v '^ *+' conftest.er1 >conftest.err
5136   rm -f conftest.er1
5137   cat conftest.err >&5
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } &&
5140          { ac_try='test -z "$ac_c_werror_flag"
5141                          || test ! -s conftest.err'
5142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143   (eval $ac_try) 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); }; } &&
5147          { ac_try='test -s conftest.$ac_objext'
5148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149   (eval $ac_try) 2>&5
5150   ac_status=$?
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); }; }; then
5153   ac_header_compiler=yes
5154 else
5155   echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158 ac_header_compiler=no
5159 fi
5160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5162 echo "${ECHO_T}$ac_header_compiler" >&6
5163
5164 # Is the header present?
5165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5167 cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h.  */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h.  */
5173 #include <$ac_header>
5174 _ACEOF
5175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5176   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5177   ac_status=$?
5178   grep -v '^ *+' conftest.er1 >conftest.err
5179   rm -f conftest.er1
5180   cat conftest.err >&5
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); } >/dev/null; then
5183   if test -s conftest.err; then
5184     ac_cpp_err=$ac_c_preproc_warn_flag
5185     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5186   else
5187     ac_cpp_err=
5188   fi
5189 else
5190   ac_cpp_err=yes
5191 fi
5192 if test -z "$ac_cpp_err"; then
5193   ac_header_preproc=yes
5194 else
5195   echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5197
5198   ac_header_preproc=no
5199 fi
5200 rm -f conftest.err conftest.$ac_ext
5201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5202 echo "${ECHO_T}$ac_header_preproc" >&6
5203
5204 # So?  What about this header?
5205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5206   yes:no: )
5207     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5211     ac_header_preproc=yes
5212     ;;
5213   no:yes:* )
5214     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5216     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5217 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5218     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5220     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5221 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5224     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5226     (
5227       cat <<\_ASBOX
5228 ## --------------------------------- ##
5229 ## Report this to bug-cvs@nongnu.org ##
5230 ## --------------------------------- ##
5231 _ASBOX
5232     ) |
5233       sed "s/^/$as_me: WARNING:     /" >&2
5234     ;;
5235 esac
5236 echo "$as_me:$LINENO: checking for $ac_header" >&5
5237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   eval "$as_ac_Header=\$ac_header_preproc"
5242 fi
5243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5245
5246 fi
5247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5248   cat >>confdefs.h <<_ACEOF
5249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5250 _ACEOF
5251
5252 fi
5253
5254 done
5255
5256 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5257 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5258 if test "${ac_cv_header_stat_broken+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h.  */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h.  */
5267 #include <sys/types.h>
5268 #include <sys/stat.h>
5269
5270 #if defined(S_ISBLK) && defined(S_IFDIR)
5271 # if S_ISBLK (S_IFDIR)
5272 You lose.
5273 # endif
5274 #endif
5275
5276 #if defined(S_ISBLK) && defined(S_IFCHR)
5277 # if S_ISBLK (S_IFCHR)
5278 You lose.
5279 # endif
5280 #endif
5281
5282 #if defined(S_ISLNK) && defined(S_IFREG)
5283 # if S_ISLNK (S_IFREG)
5284 You lose.
5285 # endif
5286 #endif
5287
5288 #if defined(S_ISSOCK) && defined(S_IFREG)
5289 # if S_ISSOCK (S_IFREG)
5290 You lose.
5291 # endif
5292 #endif
5293
5294 _ACEOF
5295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5296   $EGREP "You lose" >/dev/null 2>&1; then
5297   ac_cv_header_stat_broken=yes
5298 else
5299   ac_cv_header_stat_broken=no
5300 fi
5301 rm -f conftest*
5302
5303 fi
5304 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5305 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5306 if test $ac_cv_header_stat_broken = yes; then
5307
5308 cat >>confdefs.h <<\_ACEOF
5309 #define STAT_MACROS_BROKEN 1
5310 _ACEOF
5311
5312 fi
5313
5314 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5315 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5316 if test "${ac_cv_header_time+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 #include <sys/types.h>
5326 #include <sys/time.h>
5327 #include <time.h>
5328
5329 int
5330 main ()
5331 {
5332 if ((struct tm *) 0)
5333 return 0;
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340   (eval $ac_compile) 2>conftest.er1
5341   ac_status=$?
5342   grep -v '^ *+' conftest.er1 >conftest.err
5343   rm -f conftest.er1
5344   cat conftest.err >&5
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); } &&
5347          { ac_try='test -z "$ac_c_werror_flag"
5348                          || test ! -s conftest.err'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; } &&
5354          { ac_try='test -s conftest.$ac_objext'
5355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356   (eval $ac_try) 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); }; }; then
5360   ac_cv_header_time=yes
5361 else
5362   echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365 ac_cv_header_time=no
5366 fi
5367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5368 fi
5369 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5370 echo "${ECHO_T}$ac_cv_header_time" >&6
5371 if test $ac_cv_header_time = yes; then
5372
5373 cat >>confdefs.h <<\_ACEOF
5374 #define TIME_WITH_SYS_TIME 1
5375 _ACEOF
5376
5377 fi
5378
5379
5380 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5381 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5382 if test "${ac_cv_c_const+set}" = set; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385   cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h.  */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h.  */
5391
5392 int
5393 main ()
5394 {
5395 /* FIXME: Include the comments suggested by Paul. */
5396 #ifndef __cplusplus
5397   /* Ultrix mips cc rejects this.  */
5398   typedef int charset[2];
5399   const charset x;
5400   /* SunOS 4.1.1 cc rejects this.  */
5401   char const *const *ccp;
5402   char **p;
5403   /* NEC SVR4.0.2 mips cc rejects this.  */
5404   struct point {int x, y;};
5405   static struct point const zero = {0,0};
5406   /* AIX XL C 1.02.0.0 rejects this.
5407      It does not let you subtract one const X* pointer from another in
5408      an arm of an if-expression whose if-part is not a constant
5409      expression */
5410   const char *g = "string";
5411   ccp = &g + (g ? g-g : 0);
5412   /* HPUX 7.0 cc rejects these. */
5413   ++ccp;
5414   p = (char**) ccp;
5415   ccp = (char const *const *) p;
5416   { /* SCO 3.2v4 cc rejects this.  */
5417     char *t;
5418     char const *s = 0 ? (char *) 0 : (char const *) 0;
5419
5420     *t++ = 0;
5421   }
5422   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5423     int x[] = {25, 17};
5424     const int *foo = &x[0];
5425     ++foo;
5426   }
5427   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5428     typedef const int *iptr;
5429     iptr p = 0;
5430     ++p;
5431   }
5432   { /* AIX XL C 1.02.0.0 rejects this saying
5433        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5434     struct s { int j; const int *ap[3]; };
5435     struct s *b; b->j = 5;
5436   }
5437   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5438     const int foo = 10;
5439   }
5440 #endif
5441
5442   ;
5443   return 0;
5444 }
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5448   (eval $ac_compile) 2>conftest.er1
5449   ac_status=$?
5450   grep -v '^ *+' conftest.er1 >conftest.err
5451   rm -f conftest.er1
5452   cat conftest.err >&5
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); } &&
5455          { ac_try='test -z "$ac_c_werror_flag"
5456                          || test ! -s conftest.err'
5457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458   (eval $ac_try) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); }; } &&
5462          { ac_try='test -s conftest.$ac_objext'
5463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464   (eval $ac_try) 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }; }; then
5468   ac_cv_c_const=yes
5469 else
5470   echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 ac_cv_c_const=no
5474 fi
5475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5476 fi
5477 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5478 echo "${ECHO_T}$ac_cv_c_const" >&6
5479 if test $ac_cv_c_const = no; then
5480
5481 cat >>confdefs.h <<\_ACEOF
5482 #define const
5483 _ACEOF
5484
5485 fi
5486
5487 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5488 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5489 if test "${ac_cv_type_uid_t+set}" = set; then
5490   echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492   cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h.  */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h.  */
5498 #include <sys/types.h>
5499
5500 _ACEOF
5501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5502   $EGREP "uid_t" >/dev/null 2>&1; then
5503   ac_cv_type_uid_t=yes
5504 else
5505   ac_cv_type_uid_t=no
5506 fi
5507 rm -f conftest*
5508
5509 fi
5510 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5511 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5512 if test $ac_cv_type_uid_t = no; then
5513
5514 cat >>confdefs.h <<\_ACEOF
5515 #define uid_t int
5516 _ACEOF
5517
5518
5519 cat >>confdefs.h <<\_ACEOF
5520 #define gid_t int
5521 _ACEOF
5522
5523 fi
5524
5525 echo "$as_me:$LINENO: checking for mode_t" >&5
5526 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5527 if test "${ac_cv_type_mode_t+set}" = set; then
5528   echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530   cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h.  */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h.  */
5536 $ac_includes_default
5537 int
5538 main ()
5539 {
5540 if ((mode_t *) 0)
5541   return 0;
5542 if (sizeof (mode_t))
5543   return 0;
5544   ;
5545   return 0;
5546 }
5547 _ACEOF
5548 rm -f conftest.$ac_objext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5550   (eval $ac_compile) 2>conftest.er1
5551   ac_status=$?
5552   grep -v '^ *+' conftest.er1 >conftest.err
5553   rm -f conftest.er1
5554   cat conftest.err >&5
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); } &&
5557          { ac_try='test -z "$ac_c_werror_flag"
5558                          || test ! -s conftest.err'
5559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560   (eval $ac_try) 2>&5
5561   ac_status=$?
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); }; } &&
5564          { ac_try='test -s conftest.$ac_objext'
5565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566   (eval $ac_try) 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); }; }; then
5570   ac_cv_type_mode_t=yes
5571 else
5572   echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5574
5575 ac_cv_type_mode_t=no
5576 fi
5577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5580 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5581 if test $ac_cv_type_mode_t = yes; then
5582   :
5583 else
5584
5585 cat >>confdefs.h <<_ACEOF
5586 #define mode_t int
5587 _ACEOF
5588
5589 fi
5590
5591 echo "$as_me:$LINENO: checking for pid_t" >&5
5592 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5593 if test "${ac_cv_type_pid_t+set}" = set; then
5594   echo $ECHO_N "(cached) $ECHO_C" >&6
5595 else
5596   cat >conftest.$ac_ext <<_ACEOF
5597 /* confdefs.h.  */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h.  */
5602 $ac_includes_default
5603 int
5604 main ()
5605 {
5606 if ((pid_t *) 0)
5607   return 0;
5608 if (sizeof (pid_t))
5609   return 0;
5610   ;
5611   return 0;
5612 }
5613 _ACEOF
5614 rm -f conftest.$ac_objext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5616   (eval $ac_compile) 2>conftest.er1
5617   ac_status=$?
5618   grep -v '^ *+' conftest.er1 >conftest.err
5619   rm -f conftest.er1
5620   cat conftest.err >&5
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); } &&
5623          { ac_try='test -z "$ac_c_werror_flag"
5624                          || test ! -s conftest.err'
5625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626   (eval $ac_try) 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }; } &&
5630          { ac_try='test -s conftest.$ac_objext'
5631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632   (eval $ac_try) 2>&5
5633   ac_status=$?
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); }; }; then
5636   ac_cv_type_pid_t=yes
5637 else
5638   echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641 ac_cv_type_pid_t=no
5642 fi
5643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5644 fi
5645 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5646 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5647 if test $ac_cv_type_pid_t = yes; then
5648   :
5649 else
5650
5651 cat >>confdefs.h <<_ACEOF
5652 #define pid_t int
5653 _ACEOF
5654
5655 fi
5656
5657 echo "$as_me:$LINENO: checking for size_t" >&5
5658 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5659 if test "${ac_cv_type_size_t+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h.  */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h.  */
5668 $ac_includes_default
5669 int
5670 main ()
5671 {
5672 if ((size_t *) 0)
5673   return 0;
5674 if (sizeof (size_t))
5675   return 0;
5676   ;
5677   return 0;
5678 }
5679 _ACEOF
5680 rm -f conftest.$ac_objext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682   (eval $ac_compile) 2>conftest.er1
5683   ac_status=$?
5684   grep -v '^ *+' conftest.er1 >conftest.err
5685   rm -f conftest.er1
5686   cat conftest.err >&5
5687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688   (exit $ac_status); } &&
5689          { ac_try='test -z "$ac_c_werror_flag"
5690                          || test ! -s conftest.err'
5691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692   (eval $ac_try) 2>&5
5693   ac_status=$?
5694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); }; } &&
5696          { ac_try='test -s conftest.$ac_objext'
5697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698   (eval $ac_try) 2>&5
5699   ac_status=$?
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); }; }; then
5702   ac_cv_type_size_t=yes
5703 else
5704   echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5706
5707 ac_cv_type_size_t=no
5708 fi
5709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5710 fi
5711 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5712 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5713 if test $ac_cv_type_size_t = yes; then
5714   :
5715 else
5716
5717 cat >>confdefs.h <<_ACEOF
5718 #define size_t unsigned
5719 _ACEOF
5720
5721 fi
5722
5723 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5724 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5725 if test "${ac_cv_type_signal+set}" = set; then
5726   echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728   cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h.  */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h.  */
5734 #include <sys/types.h>
5735 #include <signal.h>
5736 #ifdef signal
5737 # undef signal
5738 #endif
5739 #ifdef __cplusplus
5740 extern "C" void (*signal (int, void (*)(int)))(int);
5741 #else
5742 void (*signal ()) ();
5743 #endif
5744
5745 int
5746 main ()
5747 {
5748 int i;
5749   ;
5750   return 0;
5751 }
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755   (eval $ac_compile) 2>conftest.er1
5756   ac_status=$?
5757   grep -v '^ *+' conftest.er1 >conftest.err
5758   rm -f conftest.er1
5759   cat conftest.err >&5
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } &&
5762          { ac_try='test -z "$ac_c_werror_flag"
5763                          || test ! -s conftest.err'
5764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765   (eval $ac_try) 2>&5
5766   ac_status=$?
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); }; } &&
5769          { ac_try='test -s conftest.$ac_objext'
5770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771   (eval $ac_try) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; }; then
5775   ac_cv_type_signal=void
5776 else
5777   echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780 ac_cv_type_signal=int
5781 fi
5782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5783 fi
5784 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5785 echo "${ECHO_T}$ac_cv_type_signal" >&6
5786
5787 cat >>confdefs.h <<_ACEOF
5788 #define RETSIGTYPE $ac_cv_type_signal
5789 _ACEOF
5790
5791
5792
5793 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5794 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5795 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804 $ac_includes_default
5805 int
5806 main ()
5807 {
5808 static struct stat ac_aggr;
5809 if (ac_aggr.st_blksize)
5810 return 0;
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817   (eval $ac_compile) 2>conftest.er1
5818   ac_status=$?
5819   grep -v '^ *+' conftest.er1 >conftest.err
5820   rm -f conftest.er1
5821   cat conftest.err >&5
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } &&
5824          { ac_try='test -z "$ac_c_werror_flag"
5825                          || test ! -s conftest.err'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; } &&
5831          { ac_try='test -s conftest.$ac_objext'
5832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833   (eval $ac_try) 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; }; then
5837   ac_cv_member_struct_stat_st_blksize=yes
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848 $ac_includes_default
5849 int
5850 main ()
5851 {
5852 static struct stat ac_aggr;
5853 if (sizeof ac_aggr.st_blksize)
5854 return 0;
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861   (eval $ac_compile) 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -z "$ac_c_werror_flag"
5869                          || test ! -s conftest.err'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; } &&
5875          { ac_try='test -s conftest.$ac_objext'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; }; then
5881   ac_cv_member_struct_stat_st_blksize=yes
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 ac_cv_member_struct_stat_st_blksize=no
5887 fi
5888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889 fi
5890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5891 fi
5892 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
5893 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5894 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5895
5896 cat >>confdefs.h <<_ACEOF
5897 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5898 _ACEOF
5899
5900
5901 fi
5902
5903 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5904 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5905 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h.  */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h.  */
5914 $ac_includes_default
5915 int
5916 main ()
5917 {
5918 static struct stat ac_aggr;
5919 if (ac_aggr.st_rdev)
5920 return 0;
5921   ;
5922   return 0;
5923 }
5924 _ACEOF
5925 rm -f conftest.$ac_objext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927   (eval $ac_compile) 2>conftest.er1
5928   ac_status=$?
5929   grep -v '^ *+' conftest.er1 >conftest.err
5930   rm -f conftest.er1
5931   cat conftest.err >&5
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); } &&
5934          { ac_try='test -z "$ac_c_werror_flag"
5935                          || test ! -s conftest.err'
5936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937   (eval $ac_try) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); }; } &&
5941          { ac_try='test -s conftest.$ac_objext'
5942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943   (eval $ac_try) 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }; }; then
5947   ac_cv_member_struct_stat_st_rdev=yes
5948 else
5949   echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h.  */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h.  */
5958 $ac_includes_default
5959 int
5960 main ()
5961 {
5962 static struct stat ac_aggr;
5963 if (sizeof ac_aggr.st_rdev)
5964 return 0;
5965   ;
5966   return 0;
5967 }
5968 _ACEOF
5969 rm -f conftest.$ac_objext
5970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5971   (eval $ac_compile) 2>conftest.er1
5972   ac_status=$?
5973   grep -v '^ *+' conftest.er1 >conftest.err
5974   rm -f conftest.er1
5975   cat conftest.err >&5
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); } &&
5978          { ac_try='test -z "$ac_c_werror_flag"
5979                          || test ! -s conftest.err'
5980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981   (eval $ac_try) 2>&5
5982   ac_status=$?
5983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); }; } &&
5985          { ac_try='test -s conftest.$ac_objext'
5986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987   (eval $ac_try) 2>&5
5988   ac_status=$?
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); }; }; then
5991   ac_cv_member_struct_stat_st_rdev=yes
5992 else
5993   echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 ac_cv_member_struct_stat_st_rdev=no
5997 fi
5998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5999 fi
6000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001 fi
6002 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6003 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
6004 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6005
6006 cat >>confdefs.h <<_ACEOF
6007 #define HAVE_STRUCT_STAT_ST_RDEV 1
6008 _ACEOF
6009
6010
6011 fi
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025 for ac_func in \
6026         dup2 \
6027         ftruncate \
6028         gethostname \
6029         memmove \
6030         mkdir \
6031         rename \
6032         strerror \
6033         strstr \
6034         strtoul\
6035         valloc \
6036         waitpid \
6037
6038 do
6039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6040 echo "$as_me:$LINENO: checking for $ac_func" >&5
6041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6042 if eval "test \"\${$as_ac_var+set}\" = set"; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h.  */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h.  */
6051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6053 #define $ac_func innocuous_$ac_func
6054
6055 /* System header to define __stub macros and hopefully few prototypes,
6056     which can conflict with char $ac_func (); below.
6057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6058     <limits.h> exists even on freestanding compilers.  */
6059
6060 #ifdef __STDC__
6061 # include <limits.h>
6062 #else
6063 # include <assert.h>
6064 #endif
6065
6066 #undef $ac_func
6067
6068 /* Override any gcc2 internal prototype to avoid an error.  */
6069 #ifdef __cplusplus
6070 extern "C"
6071 {
6072 #endif
6073 /* We use char because int might match the return type of a gcc2
6074    builtin and then its argument prototype would still apply.  */
6075 char $ac_func ();
6076 /* The GNU C library defines this for functions which it implements
6077     to always fail with ENOSYS.  Some functions are actually named
6078     something starting with __ and the normal name is an alias.  */
6079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6080 choke me
6081 #else
6082 char (*f) () = $ac_func;
6083 #endif
6084 #ifdef __cplusplus
6085 }
6086 #endif
6087
6088 int
6089 main ()
6090 {
6091 return f != $ac_func;
6092   ;
6093   return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext conftest$ac_exeext
6097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6098   (eval $ac_link) 2>conftest.er1
6099   ac_status=$?
6100   grep -v '^ *+' conftest.er1 >conftest.err
6101   rm -f conftest.er1
6102   cat conftest.err >&5
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } &&
6105          { ac_try='test -z "$ac_c_werror_flag"
6106                          || test ! -s conftest.err'
6107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108   (eval $ac_try) 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); }; } &&
6112          { ac_try='test -s conftest$ac_exeext'
6113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114   (eval $ac_try) 2>&5
6115   ac_status=$?
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); }; }; then
6118   eval "$as_ac_var=yes"
6119 else
6120   echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123 eval "$as_ac_var=no"
6124 fi
6125 rm -f conftest.err conftest.$ac_objext \
6126       conftest$ac_exeext conftest.$ac_ext
6127 fi
6128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6130 if test `eval echo '${'$as_ac_var'}'` = yes; then
6131   cat >>confdefs.h <<_ACEOF
6132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6133 _ACEOF
6134
6135 else
6136   case $LIBOBJS in
6137     "$ac_func.$ac_objext"   | \
6138   *" $ac_func.$ac_objext"   | \
6139     "$ac_func.$ac_objext "* | \
6140   *" $ac_func.$ac_objext "* ) ;;
6141   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6142 esac
6143
6144 fi
6145 done
6146
6147
6148
6149
6150
6151
6152
6153 for ac_header in stdint.h
6154 do
6155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157   echo "$as_me:$LINENO: checking for $ac_header" >&5
6158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6160   echo $ECHO_N "(cached) $ECHO_C" >&6
6161 fi
6162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6164 else
6165   # Is the header compilable?
6166 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 $ac_includes_default
6175 #include <$ac_header>
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179   (eval $ac_compile) 2>conftest.er1
6180   ac_status=$?
6181   grep -v '^ *+' conftest.er1 >conftest.err
6182   rm -f conftest.er1
6183   cat conftest.err >&5
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } &&
6186          { ac_try='test -z "$ac_c_werror_flag"
6187                          || test ! -s conftest.err'
6188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189   (eval $ac_try) 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; } &&
6193          { ac_try='test -s conftest.$ac_objext'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; }; then
6199   ac_header_compiler=yes
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 ac_header_compiler=no
6205 fi
6206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6208 echo "${ECHO_T}$ac_header_compiler" >&6
6209
6210 # Is the header present?
6211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 #include <$ac_header>
6220 _ACEOF
6221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6223   ac_status=$?
6224   grep -v '^ *+' conftest.er1 >conftest.err
6225   rm -f conftest.er1
6226   cat conftest.err >&5
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); } >/dev/null; then
6229   if test -s conftest.err; then
6230     ac_cpp_err=$ac_c_preproc_warn_flag
6231     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6232   else
6233     ac_cpp_err=
6234   fi
6235 else
6236   ac_cpp_err=yes
6237 fi
6238 if test -z "$ac_cpp_err"; then
6239   ac_header_preproc=yes
6240 else
6241   echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6243
6244   ac_header_preproc=no
6245 fi
6246 rm -f conftest.err conftest.$ac_ext
6247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6248 echo "${ECHO_T}$ac_header_preproc" >&6
6249
6250 # So?  What about this header?
6251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6252   yes:no: )
6253     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6257     ac_header_preproc=yes
6258     ;;
6259   no:yes:* )
6260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6262     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6263 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6264     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6266     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6267 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6270     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6272     (
6273       cat <<\_ASBOX
6274 ## --------------------------------- ##
6275 ## Report this to bug-cvs@nongnu.org ##
6276 ## --------------------------------- ##
6277 _ASBOX
6278     ) |
6279       sed "s/^/$as_me: WARNING:     /" >&2
6280     ;;
6281 esac
6282 echo "$as_me:$LINENO: checking for $ac_header" >&5
6283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   eval "$as_ac_Header=\$ac_header_preproc"
6288 fi
6289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6291
6292 fi
6293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6294   cat >>confdefs.h <<_ACEOF
6295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6296 _ACEOF
6297
6298 fi
6299
6300 done
6301
6302     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6303 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6304   result=
6305   cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h.  */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h.  */
6311
6312 #include <limits.h>
6313 #if HAVE_STDINT_H
6314 #include <stdint.h>
6315 #endif
6316 #ifdef SIZE_MAX
6317 Found it
6318 #endif
6319
6320 _ACEOF
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322   $EGREP "Found it" >/dev/null 2>&1; then
6323   result=yes
6324 fi
6325 rm -f conftest*
6326
6327   if test -z "$result"; then
6328                     if test "$cross_compiling" = yes; then
6329   # Depending upon the size, compute the lo and hi bounds.
6330 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h.  */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h.  */
6336 #include <stddef.h>
6337 int
6338 main ()
6339 {
6340 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6341 test_array [0] = 0
6342
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6349   (eval $ac_compile) 2>conftest.er1
6350   ac_status=$?
6351   grep -v '^ *+' conftest.er1 >conftest.err
6352   rm -f conftest.er1
6353   cat conftest.err >&5
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } &&
6356          { ac_try='test -z "$ac_c_werror_flag"
6357                          || test ! -s conftest.err'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; } &&
6363          { ac_try='test -s conftest.$ac_objext'
6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; }; then
6369   ac_lo=0 ac_mid=0
6370   while :; do
6371     cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h.  */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h.  */
6377 #include <stddef.h>
6378 int
6379 main ()
6380 {
6381 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6382 test_array [0] = 0
6383
6384   ;
6385   return 0;
6386 }
6387 _ACEOF
6388 rm -f conftest.$ac_objext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390   (eval $ac_compile) 2>conftest.er1
6391   ac_status=$?
6392   grep -v '^ *+' conftest.er1 >conftest.err
6393   rm -f conftest.er1
6394   cat conftest.err >&5
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); } &&
6397          { ac_try='test -z "$ac_c_werror_flag"
6398                          || test ! -s conftest.err'
6399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400   (eval $ac_try) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; } &&
6404          { ac_try='test -s conftest.$ac_objext'
6405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406   (eval $ac_try) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; }; then
6410   ac_hi=$ac_mid; break
6411 else
6412   echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6414
6415 ac_lo=`expr $ac_mid + 1`
6416                     if test $ac_lo -le $ac_mid; then
6417                       ac_lo= ac_hi=
6418                       break
6419                     fi
6420                     ac_mid=`expr 2 '*' $ac_mid + 1`
6421 fi
6422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6423   done
6424 else
6425   echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h.  */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h.  */
6434 #include <stddef.h>
6435 int
6436 main ()
6437 {
6438 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6439 test_array [0] = 0
6440
6441   ;
6442   return 0;
6443 }
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6447   (eval $ac_compile) 2>conftest.er1
6448   ac_status=$?
6449   grep -v '^ *+' conftest.er1 >conftest.err
6450   rm -f conftest.er1
6451   cat conftest.err >&5
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); } &&
6454          { ac_try='test -z "$ac_c_werror_flag"
6455                          || test ! -s conftest.err'
6456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457   (eval $ac_try) 2>&5
6458   ac_status=$?
6459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); }; } &&
6461          { ac_try='test -s conftest.$ac_objext'
6462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463   (eval $ac_try) 2>&5
6464   ac_status=$?
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); }; }; then
6467   ac_hi=-1 ac_mid=-1
6468   while :; do
6469     cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h.  */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h.  */
6475 #include <stddef.h>
6476 int
6477 main ()
6478 {
6479 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6480 test_array [0] = 0
6481
6482   ;
6483   return 0;
6484 }
6485 _ACEOF
6486 rm -f conftest.$ac_objext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488   (eval $ac_compile) 2>conftest.er1
6489   ac_status=$?
6490   grep -v '^ *+' conftest.er1 >conftest.err
6491   rm -f conftest.er1
6492   cat conftest.err >&5
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); } &&
6495          { ac_try='test -z "$ac_c_werror_flag"
6496                          || test ! -s conftest.err'
6497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498   (eval $ac_try) 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); }; } &&
6502          { ac_try='test -s conftest.$ac_objext'
6503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504   (eval $ac_try) 2>&5
6505   ac_status=$?
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); }; }; then
6508   ac_lo=$ac_mid; break
6509 else
6510   echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 ac_hi=`expr '(' $ac_mid ')' - 1`
6514                        if test $ac_mid -le $ac_hi; then
6515                          ac_lo= ac_hi=
6516                          break
6517                        fi
6518                        ac_mid=`expr 2 '*' $ac_mid`
6519 fi
6520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6521   done
6522 else
6523   echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6525
6526 ac_lo= ac_hi=
6527 fi
6528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6529 fi
6530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6531 # Binary search between lo and hi bounds.
6532 while test "x$ac_lo" != "x$ac_hi"; do
6533   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6534   cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h.  */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h.  */
6540 #include <stddef.h>
6541 int
6542 main ()
6543 {
6544 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6545 test_array [0] = 0
6546
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6553   (eval $ac_compile) 2>conftest.er1
6554   ac_status=$?
6555   grep -v '^ *+' conftest.er1 >conftest.err
6556   rm -f conftest.er1
6557   cat conftest.err >&5
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); } &&
6560          { ac_try='test -z "$ac_c_werror_flag"
6561                          || test ! -s conftest.err'
6562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563   (eval $ac_try) 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); }; } &&
6567          { ac_try='test -s conftest.$ac_objext'
6568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569   (eval $ac_try) 2>&5
6570   ac_status=$?
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); }; }; then
6573   ac_hi=$ac_mid
6574 else
6575   echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ac_lo=`expr '(' $ac_mid ')' + 1`
6579 fi
6580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6581 done
6582 case $ac_lo in
6583 ?*) res_hi=$ac_lo;;
6584 '') result=? ;;
6585 esac
6586 else
6587   if test "$cross_compiling" = yes; then
6588   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6589 See \`config.log' for more details." >&5
6590 echo "$as_me: error: cannot run test program while cross compiling
6591 See \`config.log' for more details." >&2;}
6592    { (exit 1); exit 1; }; }
6593 else
6594   cat >conftest.$ac_ext <<_ACEOF
6595 /* confdefs.h.  */
6596 _ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h.  */
6600 #include <stddef.h>
6601 long longval () { return ~(size_t)0 / 10; }
6602 unsigned long ulongval () { return ~(size_t)0 / 10; }
6603 #include <stdio.h>
6604 #include <stdlib.h>
6605 int
6606 main ()
6607 {
6608
6609   FILE *f = fopen ("conftest.val", "w");
6610   if (! f)
6611     exit (1);
6612   if ((~(size_t)0 / 10) < 0)
6613     {
6614       long i = longval ();
6615       if (i != (~(size_t)0 / 10))
6616         exit (1);
6617       fprintf (f, "%ld\n", i);
6618     }
6619   else
6620     {
6621       unsigned long i = ulongval ();
6622       if (i != (~(size_t)0 / 10))
6623         exit (1);
6624       fprintf (f, "%lu\n", i);
6625     }
6626   exit (ferror (f) || fclose (f) != 0);
6627
6628   ;
6629   return 0;
6630 }
6631 _ACEOF
6632 rm -f conftest$ac_exeext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6634   (eval $ac_link) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; }; then
6643   res_hi=`cat conftest.val`
6644 else
6645   echo "$as_me: program exited with status $ac_status" >&5
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ( exit $ac_status )
6650 result=?
6651 fi
6652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6653 fi
6654 fi
6655 rm -f conftest.val
6656     if test "$cross_compiling" = yes; then
6657   # Depending upon the size, compute the lo and hi bounds.
6658 cat >conftest.$ac_ext <<_ACEOF
6659 /* confdefs.h.  */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h.  */
6664 #include <stddef.h>
6665 int
6666 main ()
6667 {
6668 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6669 test_array [0] = 0
6670
6671   ;
6672   return 0;
6673 }
6674 _ACEOF
6675 rm -f conftest.$ac_objext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6677   (eval $ac_compile) 2>conftest.er1
6678   ac_status=$?
6679   grep -v '^ *+' conftest.er1 >conftest.err
6680   rm -f conftest.er1
6681   cat conftest.err >&5
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); } &&
6684          { ac_try='test -z "$ac_c_werror_flag"
6685                          || test ! -s conftest.err'
6686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687   (eval $ac_try) 2>&5
6688   ac_status=$?
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); }; } &&
6691          { ac_try='test -s conftest.$ac_objext'
6692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693   (eval $ac_try) 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); }; }; then
6697   ac_lo=0 ac_mid=0
6698   while :; do
6699     cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h.  */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h.  */
6705 #include <stddef.h>
6706 int
6707 main ()
6708 {
6709 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6710 test_array [0] = 0
6711
6712   ;
6713   return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718   (eval $ac_compile) 2>conftest.er1
6719   ac_status=$?
6720   grep -v '^ *+' conftest.er1 >conftest.err
6721   rm -f conftest.er1
6722   cat conftest.err >&5
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); } &&
6725          { ac_try='test -z "$ac_c_werror_flag"
6726                          || test ! -s conftest.err'
6727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728   (eval $ac_try) 2>&5
6729   ac_status=$?
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); }; } &&
6732          { ac_try='test -s conftest.$ac_objext'
6733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734   (eval $ac_try) 2>&5
6735   ac_status=$?
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); }; }; then
6738   ac_hi=$ac_mid; break
6739 else
6740   echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6742
6743 ac_lo=`expr $ac_mid + 1`
6744                     if test $ac_lo -le $ac_mid; then
6745                       ac_lo= ac_hi=
6746                       break
6747                     fi
6748                     ac_mid=`expr 2 '*' $ac_mid + 1`
6749 fi
6750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6751   done
6752 else
6753   echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h.  */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h.  */
6762 #include <stddef.h>
6763 int
6764 main ()
6765 {
6766 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6767 test_array [0] = 0
6768
6769   ;
6770   return 0;
6771 }
6772 _ACEOF
6773 rm -f conftest.$ac_objext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775   (eval $ac_compile) 2>conftest.er1
6776   ac_status=$?
6777   grep -v '^ *+' conftest.er1 >conftest.err
6778   rm -f conftest.er1
6779   cat conftest.err >&5
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); } &&
6782          { ac_try='test -z "$ac_c_werror_flag"
6783                          || test ! -s conftest.err'
6784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785   (eval $ac_try) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); }; } &&
6789          { ac_try='test -s conftest.$ac_objext'
6790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791   (eval $ac_try) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); }; }; then
6795   ac_hi=-1 ac_mid=-1
6796   while :; do
6797     cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h.  */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h.  */
6803 #include <stddef.h>
6804 int
6805 main ()
6806 {
6807 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6808 test_array [0] = 0
6809
6810   ;
6811   return 0;
6812 }
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816   (eval $ac_compile) 2>conftest.er1
6817   ac_status=$?
6818   grep -v '^ *+' conftest.er1 >conftest.err
6819   rm -f conftest.er1
6820   cat conftest.err >&5
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); } &&
6823          { ac_try='test -z "$ac_c_werror_flag"
6824                          || test ! -s conftest.err'
6825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826   (eval $ac_try) 2>&5
6827   ac_status=$?
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); }; } &&
6830          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6836   ac_lo=$ac_mid; break
6837 else
6838   echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 ac_hi=`expr '(' $ac_mid ')' - 1`
6842                        if test $ac_mid -le $ac_hi; then
6843                          ac_lo= ac_hi=
6844                          break
6845                        fi
6846                        ac_mid=`expr 2 '*' $ac_mid`
6847 fi
6848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849   done
6850 else
6851   echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6853
6854 ac_lo= ac_hi=
6855 fi
6856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6857 fi
6858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859 # Binary search between lo and hi bounds.
6860 while test "x$ac_lo" != "x$ac_hi"; do
6861   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6862   cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h.  */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h.  */
6868 #include <stddef.h>
6869 int
6870 main ()
6871 {
6872 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6873 test_array [0] = 0
6874
6875   ;
6876   return 0;
6877 }
6878 _ACEOF
6879 rm -f conftest.$ac_objext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6881   (eval $ac_compile) 2>conftest.er1
6882   ac_status=$?
6883   grep -v '^ *+' conftest.er1 >conftest.err
6884   rm -f conftest.er1
6885   cat conftest.err >&5
6886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); } &&
6888          { ac_try='test -z "$ac_c_werror_flag"
6889                          || test ! -s conftest.err'
6890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891   (eval $ac_try) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; } &&
6895          { ac_try='test -s conftest.$ac_objext'
6896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897   (eval $ac_try) 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); }; }; then
6901   ac_hi=$ac_mid
6902 else
6903   echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906 ac_lo=`expr '(' $ac_mid ')' + 1`
6907 fi
6908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6909 done
6910 case $ac_lo in
6911 ?*) res_lo=$ac_lo;;
6912 '') result=? ;;
6913 esac
6914 else
6915   if test "$cross_compiling" = yes; then
6916   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6917 See \`config.log' for more details." >&5
6918 echo "$as_me: error: cannot run test program while cross compiling
6919 See \`config.log' for more details." >&2;}
6920    { (exit 1); exit 1; }; }
6921 else
6922   cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h.  */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h.  */
6928 #include <stddef.h>
6929 long longval () { return ~(size_t)0 % 10; }
6930 unsigned long ulongval () { return ~(size_t)0 % 10; }
6931 #include <stdio.h>
6932 #include <stdlib.h>
6933 int
6934 main ()
6935 {
6936
6937   FILE *f = fopen ("conftest.val", "w");
6938   if (! f)
6939     exit (1);
6940   if ((~(size_t)0 % 10) < 0)
6941     {
6942       long i = longval ();
6943       if (i != (~(size_t)0 % 10))
6944         exit (1);
6945       fprintf (f, "%ld\n", i);
6946     }
6947   else
6948     {
6949       unsigned long i = ulongval ();
6950       if (i != (~(size_t)0 % 10))
6951         exit (1);
6952       fprintf (f, "%lu\n", i);
6953     }
6954   exit (ferror (f) || fclose (f) != 0);
6955
6956   ;
6957   return 0;
6958 }
6959 _ACEOF
6960 rm -f conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962   (eval $ac_link) 2>&5
6963   ac_status=$?
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971   res_lo=`cat conftest.val`
6972 else
6973   echo "$as_me: program exited with status $ac_status" >&5
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977 ( exit $ac_status )
6978 result=?
6979 fi
6980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6981 fi
6982 fi
6983 rm -f conftest.val
6984     if test "$cross_compiling" = yes; then
6985   # Depending upon the size, compute the lo and hi bounds.
6986 cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h.  */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h.  */
6992 #include <stddef.h>
6993 int
6994 main ()
6995 {
6996 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6997 test_array [0] = 0
6998
6999   ;
7000   return 0;
7001 }
7002 _ACEOF
7003 rm -f conftest.$ac_objext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005   (eval $ac_compile) 2>conftest.er1
7006   ac_status=$?
7007   grep -v '^ *+' conftest.er1 >conftest.err
7008   rm -f conftest.er1
7009   cat conftest.err >&5
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); } &&
7012          { ac_try='test -z "$ac_c_werror_flag"
7013                          || test ! -s conftest.err'
7014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015   (eval $ac_try) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; } &&
7019          { ac_try='test -s conftest.$ac_objext'
7020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021   (eval $ac_try) 2>&5
7022   ac_status=$?
7023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); }; }; then
7025   ac_lo=0 ac_mid=0
7026   while :; do
7027     cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h.  */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h.  */
7033 #include <stddef.h>
7034 int
7035 main ()
7036 {
7037 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7038 test_array [0] = 0
7039
7040   ;
7041   return 0;
7042 }
7043 _ACEOF
7044 rm -f conftest.$ac_objext
7045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7046   (eval $ac_compile) 2>conftest.er1
7047   ac_status=$?
7048   grep -v '^ *+' conftest.er1 >conftest.err
7049   rm -f conftest.er1
7050   cat conftest.err >&5
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); } &&
7053          { ac_try='test -z "$ac_c_werror_flag"
7054                          || test ! -s conftest.err'
7055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056   (eval $ac_try) 2>&5
7057   ac_status=$?
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); }; } &&
7060          { ac_try='test -s conftest.$ac_objext'
7061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062   (eval $ac_try) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); }; }; then
7066   ac_hi=$ac_mid; break
7067 else
7068   echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7070
7071 ac_lo=`expr $ac_mid + 1`
7072                     if test $ac_lo -le $ac_mid; then
7073                       ac_lo= ac_hi=
7074                       break
7075                     fi
7076                     ac_mid=`expr 2 '*' $ac_mid + 1`
7077 fi
7078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7079   done
7080 else
7081   echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084 cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h.  */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h.  */
7090 #include <stddef.h>
7091 int
7092 main ()
7093 {
7094 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7095 test_array [0] = 0
7096
7097   ;
7098   return 0;
7099 }
7100 _ACEOF
7101 rm -f conftest.$ac_objext
7102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7103   (eval $ac_compile) 2>conftest.er1
7104   ac_status=$?
7105   grep -v '^ *+' conftest.er1 >conftest.err
7106   rm -f conftest.er1
7107   cat conftest.err >&5
7108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109   (exit $ac_status); } &&
7110          { ac_try='test -z "$ac_c_werror_flag"
7111                          || test ! -s conftest.err'
7112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113   (eval $ac_try) 2>&5
7114   ac_status=$?
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); }; } &&
7117          { ac_try='test -s conftest.$ac_objext'
7118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119   (eval $ac_try) 2>&5
7120   ac_status=$?
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); }; }; then
7123   ac_hi=-1 ac_mid=-1
7124   while :; do
7125     cat >conftest.$ac_ext <<_ACEOF
7126 /* confdefs.h.  */
7127 _ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h.  */
7131 #include <stddef.h>
7132 int
7133 main ()
7134 {
7135 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7136 test_array [0] = 0
7137
7138   ;
7139   return 0;
7140 }
7141 _ACEOF
7142 rm -f conftest.$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144   (eval $ac_compile) 2>conftest.er1
7145   ac_status=$?
7146   grep -v '^ *+' conftest.er1 >conftest.err
7147   rm -f conftest.er1
7148   cat conftest.err >&5
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); } &&
7151          { ac_try='test -z "$ac_c_werror_flag"
7152                          || test ! -s conftest.err'
7153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154   (eval $ac_try) 2>&5
7155   ac_status=$?
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); }; } &&
7158          { ac_try='test -s conftest.$ac_objext'
7159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160   (eval $ac_try) 2>&5
7161   ac_status=$?
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); }; }; then
7164   ac_lo=$ac_mid; break
7165 else
7166   echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7168
7169 ac_hi=`expr '(' $ac_mid ')' - 1`
7170                        if test $ac_mid -le $ac_hi; then
7171                          ac_lo= ac_hi=
7172                          break
7173                        fi
7174                        ac_mid=`expr 2 '*' $ac_mid`
7175 fi
7176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7177   done
7178 else
7179   echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182 ac_lo= ac_hi=
7183 fi
7184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7185 fi
7186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7187 # Binary search between lo and hi bounds.
7188 while test "x$ac_lo" != "x$ac_hi"; do
7189   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7190   cat >conftest.$ac_ext <<_ACEOF
7191 /* confdefs.h.  */
7192 _ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h.  */
7196 #include <stddef.h>
7197 int
7198 main ()
7199 {
7200 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7201 test_array [0] = 0
7202
7203   ;
7204   return 0;
7205 }
7206 _ACEOF
7207 rm -f conftest.$ac_objext
7208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209   (eval $ac_compile) 2>conftest.er1
7210   ac_status=$?
7211   grep -v '^ *+' conftest.er1 >conftest.err
7212   rm -f conftest.er1
7213   cat conftest.err >&5
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); } &&
7216          { ac_try='test -z "$ac_c_werror_flag"
7217                          || test ! -s conftest.err'
7218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219   (eval $ac_try) 2>&5
7220   ac_status=$?
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); }; } &&
7223          { ac_try='test -s conftest.$ac_objext'
7224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225   (eval $ac_try) 2>&5
7226   ac_status=$?
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); }; }; then
7229   ac_hi=$ac_mid
7230 else
7231   echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7233
7234 ac_lo=`expr '(' $ac_mid ')' + 1`
7235 fi
7236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7237 done
7238 case $ac_lo in
7239 ?*) fits_in_uint=$ac_lo;;
7240 '') result=? ;;
7241 esac
7242 else
7243   if test "$cross_compiling" = yes; then
7244   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7245 See \`config.log' for more details." >&5
7246 echo "$as_me: error: cannot run test program while cross compiling
7247 See \`config.log' for more details." >&2;}
7248    { (exit 1); exit 1; }; }
7249 else
7250   cat >conftest.$ac_ext <<_ACEOF
7251 /* confdefs.h.  */
7252 _ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h.  */
7256 #include <stddef.h>
7257 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7258 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7259 #include <stdio.h>
7260 #include <stdlib.h>
7261 int
7262 main ()
7263 {
7264
7265   FILE *f = fopen ("conftest.val", "w");
7266   if (! f)
7267     exit (1);
7268   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7269     {
7270       long i = longval ();
7271       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7272         exit (1);
7273       fprintf (f, "%ld\n", i);
7274     }
7275   else
7276     {
7277       unsigned long i = ulongval ();
7278       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7279         exit (1);
7280       fprintf (f, "%lu\n", i);
7281     }
7282   exit (ferror (f) || fclose (f) != 0);
7283
7284   ;
7285   return 0;
7286 }
7287 _ACEOF
7288 rm -f conftest$ac_exeext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290   (eval $ac_link) 2>&5
7291   ac_status=$?
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295   (eval $ac_try) 2>&5
7296   ac_status=$?
7297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); }; }; then
7299   fits_in_uint=`cat conftest.val`
7300 else
7301   echo "$as_me: program exited with status $ac_status" >&5
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7304
7305 ( exit $ac_status )
7306 result=?
7307 fi
7308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7309 fi
7310 fi
7311 rm -f conftest.val
7312     if test "$fits_in_uint" = 1; then
7313                   cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h.  */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h.  */
7319 #include <stddef.h>
7320         extern size_t foo;
7321         extern unsigned long foo;
7322
7323 int
7324 main ()
7325 {
7326
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 rm -f conftest.$ac_objext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7333   (eval $ac_compile) 2>conftest.er1
7334   ac_status=$?
7335   grep -v '^ *+' conftest.er1 >conftest.err
7336   rm -f conftest.er1
7337   cat conftest.err >&5
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); } &&
7340          { ac_try='test -z "$ac_c_werror_flag"
7341                          || test ! -s conftest.err'
7342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343   (eval $ac_try) 2>&5
7344   ac_status=$?
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); }; } &&
7347          { ac_try='test -s conftest.$ac_objext'
7348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349   (eval $ac_try) 2>&5
7350   ac_status=$?
7351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); }; }; then
7353   fits_in_uint=0
7354 else
7355   echo "$as_me: failed program was:" >&5
7356 sed 's/^/| /' conftest.$ac_ext >&5
7357
7358 fi
7359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7360     fi
7361     if test -z "$result"; then
7362       if test "$fits_in_uint" = 1; then
7363         result="$res_hi$res_lo"U
7364       else
7365         result="$res_hi$res_lo"UL
7366       fi
7367     else
7368             result='~(size_t)0'
7369     fi
7370   fi
7371   echo "$as_me:$LINENO: result: $result" >&5
7372 echo "${ECHO_T}$result" >&6
7373   if test "$result" != yes; then
7374
7375 cat >>confdefs.h <<_ACEOF
7376 #define SIZE_MAX $result
7377 _ACEOF
7378
7379   fi
7380
7381 echo "$as_me:$LINENO: checking for inline" >&5
7382 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7383 if test "${ac_cv_c_inline+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   ac_cv_c_inline=no
7387 for ac_kw in inline __inline__ __inline; do
7388   cat >conftest.$ac_ext <<_ACEOF
7389 /* confdefs.h.  */
7390 _ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
7393 /* end confdefs.h.  */
7394 #ifndef __cplusplus
7395 typedef int foo_t;
7396 static $ac_kw foo_t static_foo () {return 0; }
7397 $ac_kw foo_t foo () {return 0; }
7398 #endif
7399
7400 _ACEOF
7401 rm -f conftest.$ac_objext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403   (eval $ac_compile) 2>conftest.er1
7404   ac_status=$?
7405   grep -v '^ *+' conftest.er1 >conftest.err
7406   rm -f conftest.er1
7407   cat conftest.err >&5
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } &&
7410          { ac_try='test -z "$ac_c_werror_flag"
7411                          || test ! -s conftest.err'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; } &&
7417          { ac_try='test -s conftest.$ac_objext'
7418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419   (eval $ac_try) 2>&5
7420   ac_status=$?
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); }; }; then
7423   ac_cv_c_inline=$ac_kw; break
7424 else
7425   echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7427
7428 fi
7429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7430 done
7431
7432 fi
7433 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7434 echo "${ECHO_T}$ac_cv_c_inline" >&6
7435
7436
7437 case $ac_cv_c_inline in
7438   inline | yes) ;;
7439   *)
7440     case $ac_cv_c_inline in
7441       no) ac_val=;;
7442       *) ac_val=$ac_cv_c_inline;;
7443     esac
7444     cat >>confdefs.h <<_ACEOF
7445 #ifndef __cplusplus
7446 #define inline $ac_val
7447 #endif
7448 _ACEOF
7449     ;;
7450 esac
7451
7452
7453
7454
7455
7456 for ac_header in stdint.h
7457 do
7458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7460   echo "$as_me:$LINENO: checking for $ac_header" >&5
7461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7463   echo $ECHO_N "(cached) $ECHO_C" >&6
7464 fi
7465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7467 else
7468   # Is the header compilable?
7469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7471 cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h.  */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h.  */
7477 $ac_includes_default
7478 #include <$ac_header>
7479 _ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482   (eval $ac_compile) 2>conftest.er1
7483   ac_status=$?
7484   grep -v '^ *+' conftest.er1 >conftest.err
7485   rm -f conftest.er1
7486   cat conftest.err >&5
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); } &&
7489          { ac_try='test -z "$ac_c_werror_flag"
7490                          || test ! -s conftest.err'
7491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492   (eval $ac_try) 2>&5
7493   ac_status=$?
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); }; } &&
7496          { ac_try='test -s conftest.$ac_objext'
7497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498   (eval $ac_try) 2>&5
7499   ac_status=$?
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); }; }; then
7502   ac_header_compiler=yes
7503 else
7504   echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7506
7507 ac_header_compiler=no
7508 fi
7509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7511 echo "${ECHO_T}$ac_header_compiler" >&6
7512
7513 # Is the header present?
7514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7516 cat >conftest.$ac_ext <<_ACEOF
7517 /* confdefs.h.  */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h.  */
7522 #include <$ac_header>
7523 _ACEOF
7524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7526   ac_status=$?
7527   grep -v '^ *+' conftest.er1 >conftest.err
7528   rm -f conftest.er1
7529   cat conftest.err >&5
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); } >/dev/null; then
7532   if test -s conftest.err; then
7533     ac_cpp_err=$ac_c_preproc_warn_flag
7534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7535   else
7536     ac_cpp_err=
7537   fi
7538 else
7539   ac_cpp_err=yes
7540 fi
7541 if test -z "$ac_cpp_err"; then
7542   ac_header_preproc=yes
7543 else
7544   echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7546
7547   ac_header_preproc=no
7548 fi
7549 rm -f conftest.err conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7551 echo "${ECHO_T}$ac_header_preproc" >&6
7552
7553 # So?  What about this header?
7554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7555   yes:no: )
7556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7560     ac_header_preproc=yes
7561     ;;
7562   no:yes:* )
7563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7565     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7566 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7567     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7569     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7570 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7573     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7575     (
7576       cat <<\_ASBOX
7577 ## --------------------------------- ##
7578 ## Report this to bug-cvs@nongnu.org ##
7579 ## --------------------------------- ##
7580 _ASBOX
7581     ) |
7582       sed "s/^/$as_me: WARNING:     /" >&2
7583     ;;
7584 esac
7585 echo "$as_me:$LINENO: checking for $ac_header" >&5
7586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7588   echo $ECHO_N "(cached) $ECHO_C" >&6
7589 else
7590   eval "$as_ac_Header=\$ac_header_preproc"
7591 fi
7592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7594
7595 fi
7596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7597   cat >>confdefs.h <<_ACEOF
7598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7599 _ACEOF
7600
7601 fi
7602
7603 done
7604
7605
7606
7607
7608 cat >>confdefs.h <<\_ACEOF
7609 #define getpass cvs_getpass
7610 _ACEOF
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647 for ac_func in \
7648         fchdir \
7649         fchmod \
7650         fsync \
7651         ftime \
7652         geteuid \
7653         getgroups \
7654         getopt \
7655         getpagesize \
7656         gettimeofday \
7657         initgroups \
7658         login \
7659         logout \
7660         mknod \
7661         mkstemp \
7662         mktemp \
7663         putenv \
7664         readlink \
7665         regcomp \
7666         regerror \
7667         regexec \
7668         regfree \
7669         sigaction \
7670         sigblock \
7671         sigprocmask \
7672         sigsetmask \
7673         sigvec \
7674         tempnam \
7675         timezone \
7676         tzset \
7677         vprintf \
7678         wait3 \
7679
7680 do
7681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7682 echo "$as_me:$LINENO: checking for $ac_func" >&5
7683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7684 if eval "test \"\${$as_ac_var+set}\" = set"; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   cat >conftest.$ac_ext <<_ACEOF
7688 /* confdefs.h.  */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h.  */
7693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7695 #define $ac_func innocuous_$ac_func
7696
7697 /* System header to define __stub macros and hopefully few prototypes,
7698     which can conflict with char $ac_func (); below.
7699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7700     <limits.h> exists even on freestanding compilers.  */
7701
7702 #ifdef __STDC__
7703 # include <limits.h>
7704 #else
7705 # include <assert.h>
7706 #endif
7707
7708 #undef $ac_func
7709
7710 /* Override any gcc2 internal prototype to avoid an error.  */
7711 #ifdef __cplusplus
7712 extern "C"
7713 {
7714 #endif
7715 /* We use char because int might match the return type of a gcc2
7716    builtin and then its argument prototype would still apply.  */
7717 char $ac_func ();
7718 /* The GNU C library defines this for functions which it implements
7719     to always fail with ENOSYS.  Some functions are actually named
7720     something starting with __ and the normal name is an alias.  */
7721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7722 choke me
7723 #else
7724 char (*f) () = $ac_func;
7725 #endif
7726 #ifdef __cplusplus
7727 }
7728 #endif
7729
7730 int
7731 main ()
7732 {
7733 return f != $ac_func;
7734   ;
7735   return 0;
7736 }
7737 _ACEOF
7738 rm -f conftest.$ac_objext conftest$ac_exeext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7740   (eval $ac_link) 2>conftest.er1
7741   ac_status=$?
7742   grep -v '^ *+' conftest.er1 >conftest.err
7743   rm -f conftest.er1
7744   cat conftest.err >&5
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); } &&
7747          { ac_try='test -z "$ac_c_werror_flag"
7748                          || test ! -s conftest.err'
7749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750   (eval $ac_try) 2>&5
7751   ac_status=$?
7752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753   (exit $ac_status); }; } &&
7754          { ac_try='test -s conftest$ac_exeext'
7755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756   (eval $ac_try) 2>&5
7757   ac_status=$?
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); }; }; then
7760   eval "$as_ac_var=yes"
7761 else
7762   echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7764
7765 eval "$as_ac_var=no"
7766 fi
7767 rm -f conftest.err conftest.$ac_objext \
7768       conftest$ac_exeext conftest.$ac_ext
7769 fi
7770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7772 if test `eval echo '${'$as_ac_var'}'` = yes; then
7773   cat >>confdefs.h <<_ACEOF
7774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7775 _ACEOF
7776
7777 fi
7778 done
7779
7780 # we only need one of the following
7781
7782
7783
7784 for ac_func in \
7785         nanosleep \
7786         usleep \
7787         select \
7788
7789 do
7790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7791 echo "$as_me:$LINENO: checking for $ac_func" >&5
7792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7793 if eval "test \"\${$as_ac_var+set}\" = set"; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h.  */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h.  */
7802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7804 #define $ac_func innocuous_$ac_func
7805
7806 /* System header to define __stub macros and hopefully few prototypes,
7807     which can conflict with char $ac_func (); below.
7808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7809     <limits.h> exists even on freestanding compilers.  */
7810
7811 #ifdef __STDC__
7812 # include <limits.h>
7813 #else
7814 # include <assert.h>
7815 #endif
7816
7817 #undef $ac_func
7818
7819 /* Override any gcc2 internal prototype to avoid an error.  */
7820 #ifdef __cplusplus
7821 extern "C"
7822 {
7823 #endif
7824 /* We use char because int might match the return type of a gcc2
7825    builtin and then its argument prototype would still apply.  */
7826 char $ac_func ();
7827 /* The GNU C library defines this for functions which it implements
7828     to always fail with ENOSYS.  Some functions are actually named
7829     something starting with __ and the normal name is an alias.  */
7830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7831 choke me
7832 #else
7833 char (*f) () = $ac_func;
7834 #endif
7835 #ifdef __cplusplus
7836 }
7837 #endif
7838
7839 int
7840 main ()
7841 {
7842 return f != $ac_func;
7843   ;
7844   return 0;
7845 }
7846 _ACEOF
7847 rm -f conftest.$ac_objext conftest$ac_exeext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849   (eval $ac_link) 2>conftest.er1
7850   ac_status=$?
7851   grep -v '^ *+' conftest.er1 >conftest.err
7852   rm -f conftest.er1
7853   cat conftest.err >&5
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); } &&
7856          { ac_try='test -z "$ac_c_werror_flag"
7857                          || test ! -s conftest.err'
7858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859   (eval $ac_try) 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; } &&
7863          { ac_try='test -s conftest$ac_exeext'
7864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865   (eval $ac_try) 2>&5
7866   ac_status=$?
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); }; }; then
7869   eval "$as_ac_var=yes"
7870 else
7871   echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7873
7874 eval "$as_ac_var=no"
7875 fi
7876 rm -f conftest.err conftest.$ac_objext \
7877       conftest$ac_exeext conftest.$ac_ext
7878 fi
7879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7881 if test `eval echo '${'$as_ac_var'}'` = yes; then
7882   cat >>confdefs.h <<_ACEOF
7883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7884 _ACEOF
7885  break
7886 fi
7887 done
7888
7889
7890
7891 cat >>confdefs.h <<\_ACEOF
7892 #define HAVE_STRCHR 1
7893 _ACEOF
7894
7895
7896 cat >>confdefs.h <<\_ACEOF
7897 #define HAVE_MEMCHR 1
7898 _ACEOF
7899
7900
7901
7902 cat >>confdefs.h <<\_ACEOF
7903 #define REGEX_MALLOC 1
7904 _ACEOF
7905
7906
7907 cat >>confdefs.h <<\_ACEOF
7908 #define _REGEX_RE_COMP 1
7909 _ACEOF
7910
7911
7912
7913 for ac_header in unistd.h vfork.h
7914 do
7915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7917   echo "$as_me:$LINENO: checking for $ac_header" >&5
7918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7920   echo $ECHO_N "(cached) $ECHO_C" >&6
7921 fi
7922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7924 else
7925   # Is the header compilable?
7926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934 $ac_includes_default
7935 #include <$ac_header>
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939   (eval $ac_compile) 2>conftest.er1
7940   ac_status=$?
7941   grep -v '^ *+' conftest.er1 >conftest.err
7942   rm -f conftest.er1
7943   cat conftest.err >&5
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } &&
7946          { ac_try='test -z "$ac_c_werror_flag"
7947                          || test ! -s conftest.err'
7948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949   (eval $ac_try) 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); }; } &&
7953          { ac_try='test -s conftest.$ac_objext'
7954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955   (eval $ac_try) 2>&5
7956   ac_status=$?
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); }; }; then
7959   ac_header_compiler=yes
7960 else
7961   echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7963
7964 ac_header_compiler=no
7965 fi
7966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7968 echo "${ECHO_T}$ac_header_compiler" >&6
7969
7970 # Is the header present?
7971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h.  */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h.  */
7979 #include <$ac_header>
7980 _ACEOF
7981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7983   ac_status=$?
7984   grep -v '^ *+' conftest.er1 >conftest.err
7985   rm -f conftest.er1
7986   cat conftest.err >&5
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); } >/dev/null; then
7989   if test -s conftest.err; then
7990     ac_cpp_err=$ac_c_preproc_warn_flag
7991     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7992   else
7993     ac_cpp_err=
7994   fi
7995 else
7996   ac_cpp_err=yes
7997 fi
7998 if test -z "$ac_cpp_err"; then
7999   ac_header_preproc=yes
8000 else
8001   echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8003
8004   ac_header_preproc=no
8005 fi
8006 rm -f conftest.err conftest.$ac_ext
8007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8008 echo "${ECHO_T}$ac_header_preproc" >&6
8009
8010 # So?  What about this header?
8011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8012   yes:no: )
8013     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8017     ac_header_preproc=yes
8018     ;;
8019   no:yes:* )
8020     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8022     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8023 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8024     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8026     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8027 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8030     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8032     (
8033       cat <<\_ASBOX
8034 ## --------------------------------- ##
8035 ## Report this to bug-cvs@nongnu.org ##
8036 ## --------------------------------- ##
8037 _ASBOX
8038     ) |
8039       sed "s/^/$as_me: WARNING:     /" >&2
8040     ;;
8041 esac
8042 echo "$as_me:$LINENO: checking for $ac_header" >&5
8043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047   eval "$as_ac_Header=\$ac_header_preproc"
8048 fi
8049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8051
8052 fi
8053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8054   cat >>confdefs.h <<_ACEOF
8055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8056 _ACEOF
8057
8058 fi
8059
8060 done
8061
8062
8063
8064 for ac_func in fork vfork
8065 do
8066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8067 echo "$as_me:$LINENO: checking for $ac_func" >&5
8068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8069 if eval "test \"\${$as_ac_var+set}\" = set"; then
8070   echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072   cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h.  */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h.  */
8078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8080 #define $ac_func innocuous_$ac_func
8081
8082 /* System header to define __stub macros and hopefully few prototypes,
8083     which can conflict with char $ac_func (); below.
8084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8085     <limits.h> exists even on freestanding compilers.  */
8086
8087 #ifdef __STDC__
8088 # include <limits.h>
8089 #else
8090 # include <assert.h>
8091 #endif
8092
8093 #undef $ac_func
8094
8095 /* Override any gcc2 internal prototype to avoid an error.  */
8096 #ifdef __cplusplus
8097 extern "C"
8098 {
8099 #endif
8100 /* We use char because int might match the return type of a gcc2
8101    builtin and then its argument prototype would still apply.  */
8102 char $ac_func ();
8103 /* The GNU C library defines this for functions which it implements
8104     to always fail with ENOSYS.  Some functions are actually named
8105     something starting with __ and the normal name is an alias.  */
8106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8107 choke me
8108 #else
8109 char (*f) () = $ac_func;
8110 #endif
8111 #ifdef __cplusplus
8112 }
8113 #endif
8114
8115 int
8116 main ()
8117 {
8118 return f != $ac_func;
8119   ;
8120   return 0;
8121 }
8122 _ACEOF
8123 rm -f conftest.$ac_objext conftest$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125   (eval $ac_link) 2>conftest.er1
8126   ac_status=$?
8127   grep -v '^ *+' conftest.er1 >conftest.err
8128   rm -f conftest.er1
8129   cat conftest.err >&5
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } &&
8132          { ac_try='test -z "$ac_c_werror_flag"
8133                          || test ! -s conftest.err'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; } &&
8139          { ac_try='test -s conftest$ac_exeext'
8140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141   (eval $ac_try) 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; }; then
8145   eval "$as_ac_var=yes"
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 eval "$as_ac_var=no"
8151 fi
8152 rm -f conftest.err conftest.$ac_objext \
8153       conftest$ac_exeext conftest.$ac_ext
8154 fi
8155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8157 if test `eval echo '${'$as_ac_var'}'` = yes; then
8158   cat >>confdefs.h <<_ACEOF
8159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8160 _ACEOF
8161
8162 fi
8163 done
8164
8165 if test "x$ac_cv_func_fork" = xyes; then
8166   echo "$as_me:$LINENO: checking for working fork" >&5
8167 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
8168 if test "${ac_cv_func_fork_works+set}" = set; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171   if test "$cross_compiling" = yes; then
8172   ac_cv_func_fork_works=cross
8173 else
8174   cat >conftest.$ac_ext <<_ACEOF
8175 /* By Ruediger Kuhlmann. */
8176       #include <sys/types.h>
8177       #if HAVE_UNISTD_H
8178       # include <unistd.h>
8179       #endif
8180       /* Some systems only have a dummy stub for fork() */
8181       int main ()
8182       {
8183         if (fork() < 0)
8184           exit (1);
8185         exit (0);
8186       }
8187 _ACEOF
8188 rm -f conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190   (eval $ac_link) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195   (eval $ac_try) 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); }; }; then
8199   ac_cv_func_fork_works=yes
8200 else
8201   echo "$as_me: program exited with status $ac_status" >&5
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205 ( exit $ac_status )
8206 ac_cv_func_fork_works=no
8207 fi
8208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8209 fi
8210 fi
8211 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8212 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
8213
8214 else
8215   ac_cv_func_fork_works=$ac_cv_func_fork
8216 fi
8217 if test "x$ac_cv_func_fork_works" = xcross; then
8218   case $host in
8219     *-*-amigaos* | *-*-msdosdjgpp*)
8220       # Override, as these systems have only a dummy fork() stub
8221       ac_cv_func_fork_works=no
8222       ;;
8223     *)
8224       ac_cv_func_fork_works=yes
8225       ;;
8226   esac
8227   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8228 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8229 fi
8230 ac_cv_func_vfork_works=$ac_cv_func_vfork
8231 if test "x$ac_cv_func_vfork" = xyes; then
8232   echo "$as_me:$LINENO: checking for working vfork" >&5
8233 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
8234 if test "${ac_cv_func_vfork_works+set}" = set; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   if test "$cross_compiling" = yes; then
8238   ac_cv_func_vfork_works=cross
8239 else
8240   cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h.  */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h.  */
8246 /* Thanks to Paul Eggert for this test.  */
8247 #include <stdio.h>
8248 #include <stdlib.h>
8249 #include <sys/types.h>
8250 #include <sys/stat.h>
8251 #include <sys/wait.h>
8252 #if HAVE_UNISTD_H
8253 # include <unistd.h>
8254 #endif
8255 #if HAVE_VFORK_H
8256 # include <vfork.h>
8257 #endif
8258 /* On some sparc systems, changes by the child to local and incoming
8259    argument registers are propagated back to the parent.  The compiler
8260    is told about this with #include <vfork.h>, but some compilers
8261    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8262    static variable whose address is put into a register that is
8263    clobbered by the vfork.  */
8264 static void
8265 #ifdef __cplusplus
8266 sparc_address_test (int arg)
8267 # else
8268 sparc_address_test (arg) int arg;
8269 #endif
8270 {
8271   static pid_t child;
8272   if (!child) {
8273     child = vfork ();
8274     if (child < 0) {
8275       perror ("vfork");
8276       _exit(2);
8277     }
8278     if (!child) {
8279       arg = getpid();
8280       write(-1, "", 0);
8281       _exit (arg);
8282     }
8283   }
8284 }
8285
8286 int
8287 main ()
8288 {
8289   pid_t parent = getpid ();
8290   pid_t child;
8291
8292   sparc_address_test (0);
8293
8294   child = vfork ();
8295
8296   if (child == 0) {
8297     /* Here is another test for sparc vfork register problems.  This
8298        test uses lots of local variables, at least as many local
8299        variables as main has allocated so far including compiler
8300        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8301        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8302        reuse the register of parent for one of the local variables,
8303        since it will think that parent can't possibly be used any more
8304        in this routine.  Assigning to the local variable will thus
8305        munge parent in the parent process.  */
8306     pid_t
8307       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8308       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8309     /* Convince the compiler that p..p7 are live; otherwise, it might
8310        use the same hardware register for all 8 local variables.  */
8311     if (p != p1 || p != p2 || p != p3 || p != p4
8312         || p != p5 || p != p6 || p != p7)
8313       _exit(1);
8314
8315     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8316        from child file descriptors.  If the child closes a descriptor
8317        before it execs or exits, this munges the parent's descriptor
8318        as well.  Test for this by closing stdout in the child.  */
8319     _exit(close(fileno(stdout)) != 0);
8320   } else {
8321     int status;
8322     struct stat st;
8323
8324     while (wait(&status) != child)
8325       ;
8326     exit(
8327          /* Was there some problem with vforking?  */
8328          child < 0
8329
8330          /* Did the child fail?  (This shouldn't happen.)  */
8331          || status
8332
8333          /* Did the vfork/compiler bug occur?  */
8334          || parent != getpid()
8335
8336          /* Did the file descriptor bug occur?  */
8337          || fstat(fileno(stdout), &st) != 0
8338          );
8339   }
8340 }
8341 _ACEOF
8342 rm -f conftest$ac_exeext
8343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344   (eval $ac_link) 2>&5
8345   ac_status=$?
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349   (eval $ac_try) 2>&5
8350   ac_status=$?
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); }; }; then
8353   ac_cv_func_vfork_works=yes
8354 else
8355   echo "$as_me: program exited with status $ac_status" >&5
8356 echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.$ac_ext >&5
8358
8359 ( exit $ac_status )
8360 ac_cv_func_vfork_works=no
8361 fi
8362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8363 fi
8364 fi
8365 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8366 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8367
8368 fi;
8369 if test "x$ac_cv_func_fork_works" = xcross; then
8370   ac_cv_func_vfork_works=$ac_cv_func_vfork
8371   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8372 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8373 fi
8374
8375 if test "x$ac_cv_func_vfork_works" = xyes; then
8376
8377 cat >>confdefs.h <<\_ACEOF
8378 #define HAVE_WORKING_VFORK 1
8379 _ACEOF
8380
8381 else
8382
8383 cat >>confdefs.h <<\_ACEOF
8384 #define vfork fork
8385 _ACEOF
8386
8387 fi
8388 if test "x$ac_cv_func_fork_works" = xyes; then
8389
8390 cat >>confdefs.h <<\_ACEOF
8391 #define HAVE_WORKING_FORK 1
8392 _ACEOF
8393
8394 fi
8395
8396 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8397 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
8398 if test "${ac_cv_func_closedir_void+set}" = set; then
8399   echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401   if test "$cross_compiling" = yes; then
8402   ac_cv_func_closedir_void=yes
8403 else
8404   cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410 $ac_includes_default
8411 #include <$ac_header_dirent>
8412 #ifndef __cplusplus
8413 int closedir ();
8414 #endif
8415
8416 int
8417 main ()
8418 {
8419 exit (closedir (opendir (".")) != 0);
8420   ;
8421   return 0;
8422 }
8423 _ACEOF
8424 rm -f conftest$ac_exeext
8425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426   (eval $ac_link) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431   (eval $ac_try) 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); }; }; then
8435   ac_cv_func_closedir_void=no
8436 else
8437   echo "$as_me: program exited with status $ac_status" >&5
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 ( exit $ac_status )
8442 ac_cv_func_closedir_void=yes
8443 fi
8444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8445 fi
8446 fi
8447 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8448 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
8449 if test $ac_cv_func_closedir_void = yes; then
8450
8451 cat >>confdefs.h <<\_ACEOF
8452 #define CLOSEDIR_VOID 1
8453 _ACEOF
8454
8455 fi
8456
8457
8458 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
8459 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
8460 if test "${ac_cv_search_getspnam+set}" = set; then
8461   echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463   ac_func_search_save_LIBS=$LIBS
8464 ac_cv_search_getspnam=no
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h.  */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h.  */
8471
8472 /* Override any gcc2 internal prototype to avoid an error.  */
8473 #ifdef __cplusplus
8474 extern "C"
8475 #endif
8476 /* We use char because int might match the return type of a gcc2
8477    builtin and then its argument prototype would still apply.  */
8478 char getspnam ();
8479 int
8480 main ()
8481 {
8482 getspnam ();
8483   ;
8484   return 0;
8485 }
8486 _ACEOF
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489   (eval $ac_link) 2>conftest.er1
8490   ac_status=$?
8491   grep -v '^ *+' conftest.er1 >conftest.err
8492   rm -f conftest.er1
8493   cat conftest.err >&5
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); } &&
8496          { ac_try='test -z "$ac_c_werror_flag"
8497                          || test ! -s conftest.err'
8498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499   (eval $ac_try) 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; } &&
8503          { ac_try='test -s conftest$ac_exeext'
8504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505   (eval $ac_try) 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); }; }; then
8509   ac_cv_search_getspnam="none required"
8510 else
8511   echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 fi
8515 rm -f conftest.err conftest.$ac_objext \
8516       conftest$ac_exeext conftest.$ac_ext
8517 if test "$ac_cv_search_getspnam" = no; then
8518   for ac_lib in sec gen; do
8519     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8520     cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h.  */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h.  */
8526
8527 /* Override any gcc2 internal prototype to avoid an error.  */
8528 #ifdef __cplusplus
8529 extern "C"
8530 #endif
8531 /* We use char because int might match the return type of a gcc2
8532    builtin and then its argument prototype would still apply.  */
8533 char getspnam ();
8534 int
8535 main ()
8536 {
8537 getspnam ();
8538   ;
8539   return 0;
8540 }
8541 _ACEOF
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8544   (eval $ac_link) 2>conftest.er1
8545   ac_status=$?
8546   grep -v '^ *+' conftest.er1 >conftest.err
8547   rm -f conftest.er1
8548   cat conftest.err >&5
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); } &&
8551          { ac_try='test -z "$ac_c_werror_flag"
8552                          || test ! -s conftest.err'
8553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554   (eval $ac_try) 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); }; } &&
8558          { ac_try='test -s conftest$ac_exeext'
8559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560   (eval $ac_try) 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; }; then
8564   ac_cv_search_getspnam="-l$ac_lib"
8565 break
8566 else
8567   echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570 fi
8571 rm -f conftest.err conftest.$ac_objext \
8572       conftest$ac_exeext conftest.$ac_ext
8573   done
8574 fi
8575 LIBS=$ac_func_search_save_LIBS
8576 fi
8577 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
8578 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
8579 if test "$ac_cv_search_getspnam" != no; then
8580   test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
8581
8582 cat >>confdefs.h <<\_ACEOF
8583 #define HAVE_GETSPNAM 1
8584 _ACEOF
8585
8586 fi
8587
8588
8589 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
8590 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
8591 if test "${ac_cv_func_utime_null+set}" = set; then
8592   echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594   rm -f conftest.data; >conftest.data
8595 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
8596 if test "$cross_compiling" = yes; then
8597   ac_cv_func_utime_null=no
8598 else
8599   cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h.  */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h.  */
8605 $ac_includes_default
8606 int
8607 main ()
8608 {
8609 struct stat s, t;
8610   exit (!(stat ("conftest.data", &s) == 0
8611           && utime ("conftest.data", (long *)0) == 0
8612           && stat ("conftest.data", &t) == 0
8613           && t.st_mtime >= s.st_mtime
8614           && t.st_mtime - s.st_mtime < 120));
8615   ;
8616   return 0;
8617 }
8618 _ACEOF
8619 rm -f conftest$ac_exeext
8620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8621   (eval $ac_link) 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626   (eval $ac_try) 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; }; then
8630   ac_cv_func_utime_null=yes
8631 else
8632   echo "$as_me: program exited with status $ac_status" >&5
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8635
8636 ( exit $ac_status )
8637 ac_cv_func_utime_null=no
8638 fi
8639 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8640 fi
8641 rm -f core *.core
8642 fi
8643 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
8644 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
8645 if test $ac_cv_func_utime_null = yes; then
8646
8647 cat >>confdefs.h <<\_ACEOF
8648 #define HAVE_UTIME_NULL 1
8649 _ACEOF
8650
8651 fi
8652 rm -f conftest.data
8653
8654 echo "$as_me:$LINENO: checking for long file names" >&5
8655 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8656 if test "${ac_cv_sys_long_file_names+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659   ac_cv_sys_long_file_names=yes
8660 # Test for long file names in all the places we know might matter:
8661 #      .                the current directory, where building will happen
8662 #      $prefix/lib      where we will be installing things
8663 #      $exec_prefix/lib likewise
8664 # eval it to expand exec_prefix.
8665 #      $TMPDIR          if set, where it might want to write temporary files
8666 # if $TMPDIR is not set:
8667 #      /tmp             where it might want to write temporary files
8668 #      /var/tmp         likewise
8669 #      /usr/tmp         likewise
8670 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8671   ac_tmpdirs=$TMPDIR
8672 else
8673   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8674 fi
8675 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8676   test -d $ac_dir || continue
8677   test -w $ac_dir || continue # It is less confusing to not echo anything here.
8678   ac_xdir=$ac_dir/cf$$
8679   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8680   ac_tf1=$ac_xdir/conftest9012345
8681   ac_tf2=$ac_xdir/conftest9012346
8682   (echo 1 >$ac_tf1) 2>/dev/null
8683   (echo 2 >$ac_tf2) 2>/dev/null
8684   ac_val=`cat $ac_tf1 2>/dev/null`
8685   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8686     ac_cv_sys_long_file_names=no
8687     rm -rf $ac_xdir 2>/dev/null
8688     break
8689   fi
8690   rm -rf $ac_xdir 2>/dev/null
8691 done
8692 fi
8693 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8694 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8695 if test $ac_cv_sys_long_file_names = yes; then
8696
8697 cat >>confdefs.h <<\_ACEOF
8698 #define HAVE_LONG_FILE_NAMES 1
8699 _ACEOF
8700
8701 fi
8702
8703
8704 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
8705 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
8706 if test "${ac_cv_func_fnmatch_works+set}" = set; then
8707   echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709   # Some versions of Solaris, SCO, and the GNU C Library
8710    # have a broken or incompatible fnmatch.
8711    # So we run a test program.  If we are cross-compiling, take no chance.
8712    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
8713    if test "$cross_compiling" = yes; then
8714   ac_cv_func_fnmatch_works=cross
8715 else
8716   cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h.  */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h.  */
8722 #include <fnmatch.h>
8723 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
8724 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
8725
8726 int
8727 main ()
8728 {
8729 exit
8730            (!(y ("a*", "abc", 0)
8731               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
8732               && y ("a\\\\bc", "abc", 0)
8733               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
8734               && y ("*x", ".x", 0)
8735               && n ("*x", ".x", FNM_PERIOD)
8736               && 1));
8737   ;
8738   return 0;
8739 }
8740 _ACEOF
8741 rm -f conftest$ac_exeext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743   (eval $ac_link) 2>&5
8744   ac_status=$?
8745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748   (eval $ac_try) 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); }; }; then
8752   ac_cv_func_fnmatch_works=yes
8753 else
8754   echo "$as_me: program exited with status $ac_status" >&5
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758 ( exit $ac_status )
8759 ac_cv_func_fnmatch_works=no
8760 fi
8761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8762 fi
8763 fi
8764 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
8765 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
8766 if test $ac_cv_func_fnmatch_works = yes; then
8767
8768 cat >>confdefs.h <<\_ACEOF
8769 #define HAVE_FNMATCH 1
8770 _ACEOF
8771
8772 fi
8773
8774
8775
8776 if test "$ac_cv_func_fnmatch_works" = no; then
8777   case $LIBOBJS in
8778     "fnmatch.$ac_objext"   | \
8779   *" fnmatch.$ac_objext"   | \
8780     "fnmatch.$ac_objext "* | \
8781   *" fnmatch.$ac_objext "* ) ;;
8782   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
8783 esac
8784
8785             ac_config_links="$ac_config_links lib/fnmatch.h:lib/fnmatch.h.in"
8786
8787
8788 fi
8789
8790
8791
8792 for ac_header in stdlib.h unistd.h
8793 do
8794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8796   echo "$as_me:$LINENO: checking for $ac_header" >&5
8797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8799   echo $ECHO_N "(cached) $ECHO_C" >&6
8800 fi
8801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8803 else
8804   # Is the header compilable?
8805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8807 cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h.  */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h.  */
8813 $ac_includes_default
8814 #include <$ac_header>
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8818   (eval $ac_compile) 2>conftest.er1
8819   ac_status=$?
8820   grep -v '^ *+' conftest.er1 >conftest.err
8821   rm -f conftest.er1
8822   cat conftest.err >&5
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); } &&
8825          { ac_try='test -z "$ac_c_werror_flag"
8826                          || test ! -s conftest.err'
8827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828   (eval $ac_try) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; } &&
8832          { ac_try='test -s conftest.$ac_objext'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; }; then
8838   ac_header_compiler=yes
8839 else
8840   echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 ac_header_compiler=no
8844 fi
8845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8847 echo "${ECHO_T}$ac_header_compiler" >&6
8848
8849 # Is the header present?
8850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8852 cat >conftest.$ac_ext <<_ACEOF
8853 /* confdefs.h.  */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h.  */
8858 #include <$ac_header>
8859 _ACEOF
8860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8861   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8862   ac_status=$?
8863   grep -v '^ *+' conftest.er1 >conftest.err
8864   rm -f conftest.er1
8865   cat conftest.err >&5
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); } >/dev/null; then
8868   if test -s conftest.err; then
8869     ac_cpp_err=$ac_c_preproc_warn_flag
8870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8871   else
8872     ac_cpp_err=
8873   fi
8874 else
8875   ac_cpp_err=yes
8876 fi
8877 if test -z "$ac_cpp_err"; then
8878   ac_header_preproc=yes
8879 else
8880   echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8882
8883   ac_header_preproc=no
8884 fi
8885 rm -f conftest.err conftest.$ac_ext
8886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8887 echo "${ECHO_T}$ac_header_preproc" >&6
8888
8889 # So?  What about this header?
8890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8891   yes:no: )
8892     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8896     ac_header_preproc=yes
8897     ;;
8898   no:yes:* )
8899     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8901     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8902 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8903     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8905     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8906 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8909     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8911     (
8912       cat <<\_ASBOX
8913 ## --------------------------------- ##
8914 ## Report this to bug-cvs@nongnu.org ##
8915 ## --------------------------------- ##
8916 _ASBOX
8917     ) |
8918       sed "s/^/$as_me: WARNING:     /" >&2
8919     ;;
8920 esac
8921 echo "$as_me:$LINENO: checking for $ac_header" >&5
8922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8924   echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926   eval "$as_ac_Header=\$ac_header_preproc"
8927 fi
8928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8930
8931 fi
8932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8933   cat >>confdefs.h <<_ACEOF
8934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8935 _ACEOF
8936
8937 fi
8938
8939 done
8940
8941
8942 for ac_func in getpagesize
8943 do
8944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8945 echo "$as_me:$LINENO: checking for $ac_func" >&5
8946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8947 if eval "test \"\${$as_ac_var+set}\" = set"; then
8948   echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950   cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h.  */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h.  */
8956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8958 #define $ac_func innocuous_$ac_func
8959
8960 /* System header to define __stub macros and hopefully few prototypes,
8961     which can conflict with char $ac_func (); below.
8962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8963     <limits.h> exists even on freestanding compilers.  */
8964
8965 #ifdef __STDC__
8966 # include <limits.h>
8967 #else
8968 # include <assert.h>
8969 #endif
8970
8971 #undef $ac_func
8972
8973 /* Override any gcc2 internal prototype to avoid an error.  */
8974 #ifdef __cplusplus
8975 extern "C"
8976 {
8977 #endif
8978 /* We use char because int might match the return type of a gcc2
8979    builtin and then its argument prototype would still apply.  */
8980 char $ac_func ();
8981 /* The GNU C library defines this for functions which it implements
8982     to always fail with ENOSYS.  Some functions are actually named
8983     something starting with __ and the normal name is an alias.  */
8984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8985 choke me
8986 #else
8987 char (*f) () = $ac_func;
8988 #endif
8989 #ifdef __cplusplus
8990 }
8991 #endif
8992
8993 int
8994 main ()
8995 {
8996 return f != $ac_func;
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 rm -f conftest.$ac_objext conftest$ac_exeext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003   (eval $ac_link) 2>conftest.er1
9004   ac_status=$?
9005   grep -v '^ *+' conftest.er1 >conftest.err
9006   rm -f conftest.er1
9007   cat conftest.err >&5
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); } &&
9010          { ac_try='test -z "$ac_c_werror_flag"
9011                          || test ! -s conftest.err'
9012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013   (eval $ac_try) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); }; } &&
9017          { ac_try='test -s conftest$ac_exeext'
9018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019   (eval $ac_try) 2>&5
9020   ac_status=$?
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); }; }; then
9023   eval "$as_ac_var=yes"
9024 else
9025   echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9027
9028 eval "$as_ac_var=no"
9029 fi
9030 rm -f conftest.err conftest.$ac_objext \
9031       conftest$ac_exeext conftest.$ac_ext
9032 fi
9033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9035 if test `eval echo '${'$as_ac_var'}'` = yes; then
9036   cat >>confdefs.h <<_ACEOF
9037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9038 _ACEOF
9039
9040 fi
9041 done
9042
9043 echo "$as_me:$LINENO: checking for working mmap" >&5
9044 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9045 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048   if test "$cross_compiling" = yes; then
9049   ac_cv_func_mmap_fixed_mapped=no
9050 else
9051   cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h.  */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h.  */
9057 $ac_includes_default
9058 /* malloc might have been renamed as rpl_malloc. */
9059 #undef malloc
9060
9061 /* Thanks to Mike Haertel and Jim Avera for this test.
9062    Here is a matrix of mmap possibilities:
9063         mmap private not fixed
9064         mmap private fixed at somewhere currently unmapped
9065         mmap private fixed at somewhere already mapped
9066         mmap shared not fixed
9067         mmap shared fixed at somewhere currently unmapped
9068         mmap shared fixed at somewhere already mapped
9069    For private mappings, we should verify that changes cannot be read()
9070    back from the file, nor mmap's back from the file at a different
9071    address.  (There have been systems where private was not correctly
9072    implemented like the infamous i386 svr4.0, and systems where the
9073    VM page cache was not coherent with the file system buffer cache
9074    like early versions of FreeBSD and possibly contemporary NetBSD.)
9075    For shared mappings, we should conversely verify that changes get
9076    propagated back to all the places they're supposed to be.
9077
9078    Grep wants private fixed already mapped.
9079    The main things grep needs to know about mmap are:
9080    * does it exist and is it safe to write into the mmap'd area
9081    * how to use it (BSD variants)  */
9082
9083 #include <fcntl.h>
9084 #include <sys/mman.h>
9085
9086 #if !STDC_HEADERS && !HAVE_STDLIB_H
9087 char *malloc ();
9088 #endif
9089
9090 /* This mess was copied from the GNU getpagesize.h.  */
9091 #if !HAVE_GETPAGESIZE
9092 /* Assume that all systems that can run configure have sys/param.h.  */
9093 # if !HAVE_SYS_PARAM_H
9094 #  define HAVE_SYS_PARAM_H 1
9095 # endif
9096
9097 # ifdef _SC_PAGESIZE
9098 #  define getpagesize() sysconf(_SC_PAGESIZE)
9099 # else /* no _SC_PAGESIZE */
9100 #  if HAVE_SYS_PARAM_H
9101 #   include <sys/param.h>
9102 #   ifdef EXEC_PAGESIZE
9103 #    define getpagesize() EXEC_PAGESIZE
9104 #   else /* no EXEC_PAGESIZE */
9105 #    ifdef NBPG
9106 #     define getpagesize() NBPG * CLSIZE
9107 #     ifndef CLSIZE
9108 #      define CLSIZE 1
9109 #     endif /* no CLSIZE */
9110 #    else /* no NBPG */
9111 #     ifdef NBPC
9112 #      define getpagesize() NBPC
9113 #     else /* no NBPC */
9114 #      ifdef PAGESIZE
9115 #       define getpagesize() PAGESIZE
9116 #      endif /* PAGESIZE */
9117 #     endif /* no NBPC */
9118 #    endif /* no NBPG */
9119 #   endif /* no EXEC_PAGESIZE */
9120 #  else /* no HAVE_SYS_PARAM_H */
9121 #   define getpagesize() 8192   /* punt totally */
9122 #  endif /* no HAVE_SYS_PARAM_H */
9123 # endif /* no _SC_PAGESIZE */
9124
9125 #endif /* no HAVE_GETPAGESIZE */
9126
9127 int
9128 main ()
9129 {
9130   char *data, *data2, *data3;
9131   int i, pagesize;
9132   int fd;
9133
9134   pagesize = getpagesize ();
9135
9136   /* First, make a file with some known garbage in it. */
9137   data = (char *) malloc (pagesize);
9138   if (!data)
9139     exit (1);
9140   for (i = 0; i < pagesize; ++i)
9141     *(data + i) = rand ();
9142   umask (0);
9143   fd = creat ("conftest.mmap", 0600);
9144   if (fd < 0)
9145     exit (1);
9146   if (write (fd, data, pagesize) != pagesize)
9147     exit (1);
9148   close (fd);
9149
9150   /* Next, try to mmap the file at a fixed address which already has
9151      something else allocated at it.  If we can, also make sure that
9152      we see the same garbage.  */
9153   fd = open ("conftest.mmap", O_RDWR);
9154   if (fd < 0)
9155     exit (1);
9156   data2 = (char *) malloc (2 * pagesize);
9157   if (!data2)
9158     exit (1);
9159   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9160   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9161                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9162     exit (1);
9163   for (i = 0; i < pagesize; ++i)
9164     if (*(data + i) != *(data2 + i))
9165       exit (1);
9166
9167   /* Finally, make sure that changes to the mapped area do not
9168      percolate back to the file as seen by read().  (This is a bug on
9169      some variants of i386 svr4.0.)  */
9170   for (i = 0; i < pagesize; ++i)
9171     *(data2 + i) = *(data2 + i) + 1;
9172   data3 = (char *) malloc (pagesize);
9173   if (!data3)
9174     exit (1);
9175   if (read (fd, data3, pagesize) != pagesize)
9176     exit (1);
9177   for (i = 0; i < pagesize; ++i)
9178     if (*(data + i) != *(data3 + i))
9179       exit (1);
9180   close (fd);
9181   exit (0);
9182 }
9183 _ACEOF
9184 rm -f conftest$ac_exeext
9185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186   (eval $ac_link) 2>&5
9187   ac_status=$?
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191   (eval $ac_try) 2>&5
9192   ac_status=$?
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); }; }; then
9195   ac_cv_func_mmap_fixed_mapped=yes
9196 else
9197   echo "$as_me: program exited with status $ac_status" >&5
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9200
9201 ( exit $ac_status )
9202 ac_cv_func_mmap_fixed_mapped=no
9203 fi
9204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9205 fi
9206 fi
9207 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9208 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9209 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9210
9211 cat >>confdefs.h <<\_ACEOF
9212 #define HAVE_MMAP 1
9213 _ACEOF
9214
9215 fi
9216 rm -f conftest.mmap
9217
9218
9219 # Try to find connect and gethostbyname.
9220
9221 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
9222 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
9223 if test "${ac_cv_lib_nsl_main+set}" = set; then
9224   echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226   ac_check_lib_save_LIBS=$LIBS
9227 LIBS="-lnsl  $LIBS"
9228 cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h.  */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h.  */
9234
9235
9236 int
9237 main ()
9238 {
9239 main ();
9240   ;
9241   return 0;
9242 }
9243 _ACEOF
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9246   (eval $ac_link) 2>conftest.er1
9247   ac_status=$?
9248   grep -v '^ *+' conftest.er1 >conftest.err
9249   rm -f conftest.er1
9250   cat conftest.err >&5
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); } &&
9253          { ac_try='test -z "$ac_c_werror_flag"
9254                          || test ! -s conftest.err'
9255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256   (eval $ac_try) 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); }; } &&
9260          { ac_try='test -s conftest$ac_exeext'
9261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262   (eval $ac_try) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; }; then
9266   ac_cv_lib_nsl_main=yes
9267 else
9268   echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9270
9271 ac_cv_lib_nsl_main=no
9272 fi
9273 rm -f conftest.err conftest.$ac_objext \
9274       conftest$ac_exeext conftest.$ac_ext
9275 LIBS=$ac_check_lib_save_LIBS
9276 fi
9277 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
9278 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
9279 if test $ac_cv_lib_nsl_main = yes; then
9280   cat >>confdefs.h <<_ACEOF
9281 #define HAVE_LIBNSL 1
9282 _ACEOF
9283
9284   LIBS="-lnsl $LIBS"
9285
9286 fi
9287
9288 echo "$as_me:$LINENO: checking for library containing connect" >&5
9289 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
9290 if test "${ac_cv_search_connect+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293   ac_func_search_save_LIBS=$LIBS
9294 ac_cv_search_connect=no
9295 cat >conftest.$ac_ext <<_ACEOF
9296 /* confdefs.h.  */
9297 _ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h.  */
9301
9302 /* Override any gcc2 internal prototype to avoid an error.  */
9303 #ifdef __cplusplus
9304 extern "C"
9305 #endif
9306 /* We use char because int might match the return type of a gcc2
9307    builtin and then its argument prototype would still apply.  */
9308 char connect ();
9309 int
9310 main ()
9311 {
9312 connect ();
9313   ;
9314   return 0;
9315 }
9316 _ACEOF
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319   (eval $ac_link) 2>conftest.er1
9320   ac_status=$?
9321   grep -v '^ *+' conftest.er1 >conftest.err
9322   rm -f conftest.er1
9323   cat conftest.err >&5
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); } &&
9326          { ac_try='test -z "$ac_c_werror_flag"
9327                          || test ! -s conftest.err'
9328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329   (eval $ac_try) 2>&5
9330   ac_status=$?
9331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   (exit $ac_status); }; } &&
9333          { ac_try='test -s conftest$ac_exeext'
9334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335   (eval $ac_try) 2>&5
9336   ac_status=$?
9337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338   (exit $ac_status); }; }; then
9339   ac_cv_search_connect="none required"
9340 else
9341   echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9343
9344 fi
9345 rm -f conftest.err conftest.$ac_objext \
9346       conftest$ac_exeext conftest.$ac_ext
9347 if test "$ac_cv_search_connect" = no; then
9348   for ac_lib in xnet socket inet; do
9349     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9350     cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h.  */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h.  */
9356
9357 /* Override any gcc2 internal prototype to avoid an error.  */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 /* We use char because int might match the return type of a gcc2
9362    builtin and then its argument prototype would still apply.  */
9363 char connect ();
9364 int
9365 main ()
9366 {
9367 connect ();
9368   ;
9369   return 0;
9370 }
9371 _ACEOF
9372 rm -f conftest.$ac_objext conftest$ac_exeext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9374   (eval $ac_link) 2>conftest.er1
9375   ac_status=$?
9376   grep -v '^ *+' conftest.er1 >conftest.err
9377   rm -f conftest.er1
9378   cat conftest.err >&5
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); } &&
9381          { ac_try='test -z "$ac_c_werror_flag"
9382                          || test ! -s conftest.err'
9383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; } &&
9388          { ac_try='test -s conftest$ac_exeext'
9389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390   (eval $ac_try) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; }; then
9394   ac_cv_search_connect="-l$ac_lib"
9395 break
9396 else
9397   echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 fi
9401 rm -f conftest.err conftest.$ac_objext \
9402       conftest$ac_exeext conftest.$ac_ext
9403   done
9404 fi
9405 LIBS=$ac_func_search_save_LIBS
9406 fi
9407 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
9408 echo "${ECHO_T}$ac_cv_search_connect" >&6
9409 if test "$ac_cv_search_connect" != no; then
9410   test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
9411
9412 cat >>confdefs.h <<\_ACEOF
9413 #define HAVE_CONNECT 1
9414 _ACEOF
9415
9416 fi
9417
9418 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9419 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9420 if test "${ac_cv_search_gethostbyname+set}" = set; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423   ac_func_search_save_LIBS=$LIBS
9424 ac_cv_search_gethostbyname=no
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h.  */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h.  */
9431
9432 /* Override any gcc2 internal prototype to avoid an error.  */
9433 #ifdef __cplusplus
9434 extern "C"
9435 #endif
9436 /* We use char because int might match the return type of a gcc2
9437    builtin and then its argument prototype would still apply.  */
9438 char gethostbyname ();
9439 int
9440 main ()
9441 {
9442 gethostbyname ();
9443   ;
9444   return 0;
9445 }
9446 _ACEOF
9447 rm -f conftest.$ac_objext conftest$ac_exeext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449   (eval $ac_link) 2>conftest.er1
9450   ac_status=$?
9451   grep -v '^ *+' conftest.er1 >conftest.err
9452   rm -f conftest.er1
9453   cat conftest.err >&5
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); } &&
9456          { ac_try='test -z "$ac_c_werror_flag"
9457                          || test ! -s conftest.err'
9458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459   (eval $ac_try) 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); }; } &&
9463          { ac_try='test -s conftest$ac_exeext'
9464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465   (eval $ac_try) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; }; then
9469   ac_cv_search_gethostbyname="none required"
9470 else
9471   echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474 fi
9475 rm -f conftest.err conftest.$ac_objext \
9476       conftest$ac_exeext conftest.$ac_ext
9477 if test "$ac_cv_search_gethostbyname" = no; then
9478   for ac_lib in netinet; do
9479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9480     cat >conftest.$ac_ext <<_ACEOF
9481 /* confdefs.h.  */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h.  */
9486
9487 /* Override any gcc2 internal prototype to avoid an error.  */
9488 #ifdef __cplusplus
9489 extern "C"
9490 #endif
9491 /* We use char because int might match the return type of a gcc2
9492    builtin and then its argument prototype would still apply.  */
9493 char gethostbyname ();
9494 int
9495 main ()
9496 {
9497 gethostbyname ();
9498   ;
9499   return 0;
9500 }
9501 _ACEOF
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504   (eval $ac_link) 2>conftest.er1
9505   ac_status=$?
9506   grep -v '^ *+' conftest.er1 >conftest.err
9507   rm -f conftest.er1
9508   cat conftest.err >&5
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); } &&
9511          { ac_try='test -z "$ac_c_werror_flag"
9512                          || test ! -s conftest.err'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; } &&
9518          { ac_try='test -s conftest$ac_exeext'
9519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520   (eval $ac_try) 2>&5
9521   ac_status=$?
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); }; }; then
9524   ac_cv_search_gethostbyname="-l$ac_lib"
9525 break
9526 else
9527   echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9529
9530 fi
9531 rm -f conftest.err conftest.$ac_objext \
9532       conftest$ac_exeext conftest.$ac_ext
9533   done
9534 fi
9535 LIBS=$ac_func_search_save_LIBS
9536 fi
9537 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9538 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9539 if test "$ac_cv_search_gethostbyname" != no; then
9540   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9541
9542 fi
9543
9544
9545
9546
9547 KRB4=/usr/kerberos
9548
9549
9550 # Check whether --with-krb4 or --without-krb4 was given.
9551 if test "${with_krb4+set}" = set; then
9552   withval="$with_krb4"
9553   KRB4=$with_krb4
9554 fi; echo "$as_me:$LINENO: checking for KRB4 in $KRB4" >&5
9555 echo $ECHO_N "checking for KRB4 in $KRB4... $ECHO_C" >&6
9556 echo "$as_me:$LINENO: result: " >&5
9557 echo "${ECHO_T}" >&6
9558
9559
9560 krb_h=
9561 echo "$as_me:$LINENO: checking for krb.h" >&5
9562 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
9563 if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
9564    hold_cflags=$CFLAGS
9565    CFLAGS="$CFLAGS -I$KRB4/include"
9566    cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h.  */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h.  */
9572 #include <krb.h>
9573 int
9574 main ()
9575 {
9576 int i;
9577   ;
9578   return 0;
9579 }
9580 _ACEOF
9581 rm -f conftest.$ac_objext conftest$ac_exeext
9582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9583   (eval $ac_link) 2>conftest.er1
9584   ac_status=$?
9585   grep -v '^ *+' conftest.er1 >conftest.err
9586   rm -f conftest.er1
9587   cat conftest.err >&5
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); } &&
9590          { ac_try='test -z "$ac_c_werror_flag"
9591                          || test ! -s conftest.err'
9592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593   (eval $ac_try) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; } &&
9597          { ac_try='test -s conftest$ac_exeext'
9598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599   (eval $ac_try) 2>&5
9600   ac_status=$?
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); }; }; then
9603   krb_h=yes krb_incdir=$KRB4/include
9604 else
9605   echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 CFLAGS=$hold_cflags
9609            cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h.  */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h.  */
9615 #include <krb.h>
9616 int
9617 main ()
9618 {
9619 int i;
9620   ;
9621   return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626   (eval $ac_link) 2>conftest.er1
9627   ac_status=$?
9628   grep -v '^ *+' conftest.er1 >conftest.err
9629   rm -f conftest.er1
9630   cat conftest.err >&5
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } &&
9633          { ac_try='test -z "$ac_c_werror_flag"
9634                          || test ! -s conftest.err'
9635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636   (eval $ac_try) 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); }; } &&
9640          { ac_try='test -s conftest$ac_exeext'
9641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642   (eval $ac_try) 2>&5
9643   ac_status=$?
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); }; }; then
9646   krb_h=yes krb_incdir=
9647 else
9648   echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9650
9651 fi
9652 rm -f conftest.err conftest.$ac_objext \
9653       conftest$ac_exeext conftest.$ac_ext
9654 fi
9655 rm -f conftest.err conftest.$ac_objext \
9656       conftest$ac_exeext conftest.$ac_ext
9657    CFLAGS=$hold_cflags
9658 else
9659    cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h.  */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h.  */
9665 #include <krb.h>
9666 int
9667 main ()
9668 {
9669 int i;
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676   (eval $ac_link) 2>conftest.er1
9677   ac_status=$?
9678   grep -v '^ *+' conftest.er1 >conftest.err
9679   rm -f conftest.er1
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } &&
9683          { ac_try='test -z "$ac_c_werror_flag"
9684                          || test ! -s conftest.err'
9685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686   (eval $ac_try) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; } &&
9690          { ac_try='test -s conftest$ac_exeext'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   krb_h=yes krb_incdir=
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701 fi
9702 rm -f conftest.err conftest.$ac_objext \
9703       conftest$ac_exeext conftest.$ac_ext
9704 fi
9705 if test -z "$krb_h"; then
9706   cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712 #include <krb.h>
9713 int
9714 main ()
9715 {
9716 int i;
9717   ;
9718   return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723   (eval $ac_link) 2>conftest.er1
9724   ac_status=$?
9725   grep -v '^ *+' conftest.er1 >conftest.err
9726   rm -f conftest.er1
9727   cat conftest.err >&5
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); } &&
9730          { ac_try='test -z "$ac_c_werror_flag"
9731                          || test ! -s conftest.err'
9732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733   (eval $ac_try) 2>&5
9734   ac_status=$?
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); }; } &&
9737          { ac_try='test -s conftest$ac_exeext'
9738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739   (eval $ac_try) 2>&5
9740   ac_status=$?
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); }; }; then
9743   krb_h=yes krb_incdir=
9744 else
9745   echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9747
9748 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
9749        hold_cflags=$CFLAGS
9750        CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
9751        cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757 #include <krb.h>
9758 int
9759 main ()
9760 {
9761 int i;
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768   (eval $ac_link) 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag"
9776                          || test ! -s conftest.err'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; } &&
9782          { ac_try='test -s conftest$ac_exeext'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; }; then
9788   krb_h=yes krb_incdir=$KRB4/include/kerberosIV
9789 else
9790   echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 fi
9794 rm -f conftest.err conftest.$ac_objext \
9795       conftest$ac_exeext conftest.$ac_ext
9796        CFLAGS=$hold_cflags
9797      fi
9798 fi
9799 rm -f conftest.err conftest.$ac_objext \
9800       conftest$ac_exeext conftest.$ac_ext
9801 fi
9802 echo "$as_me:$LINENO: result: $krb_h" >&5
9803 echo "${ECHO_T}$krb_h" >&6
9804
9805 includeopt=
9806
9807 if test -n "$krb_h"; then
9808   krb_lib=
9809   if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
9810        hold_ldflags=$LDFLAGS
9811        LDFLAGS="-L${KRB4}/lib $LDFLAGS"
9812        echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
9813 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
9814 if test "${ac_cv_lib_krb_printf+set}" = set; then
9815   echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817   ac_check_lib_save_LIBS=$LIBS
9818 LIBS="-lkrb  $LIBS"
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h.  */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h.  */
9825
9826 /* Override any gcc2 internal prototype to avoid an error.  */
9827 #ifdef __cplusplus
9828 extern "C"
9829 #endif
9830 /* We use char because int might match the return type of a gcc2
9831    builtin and then its argument prototype would still apply.  */
9832 char printf ();
9833 int
9834 main ()
9835 {
9836 printf ();
9837   ;
9838   return 0;
9839 }
9840 _ACEOF
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843   (eval $ac_link) 2>conftest.er1
9844   ac_status=$?
9845   grep -v '^ *+' conftest.er1 >conftest.err
9846   rm -f conftest.er1
9847   cat conftest.err >&5
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); } &&
9850          { ac_try='test -z "$ac_c_werror_flag"
9851                          || test ! -s conftest.err'
9852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853   (eval $ac_try) 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); }; } &&
9857          { ac_try='test -s conftest$ac_exeext'
9858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859   (eval $ac_try) 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); }; }; then
9863   ac_cv_lib_krb_printf=yes
9864 else
9865   echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9867
9868 ac_cv_lib_krb_printf=no
9869 fi
9870 rm -f conftest.err conftest.$ac_objext \
9871       conftest$ac_exeext conftest.$ac_ext
9872 LIBS=$ac_check_lib_save_LIBS
9873 fi
9874 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
9875 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
9876 if test $ac_cv_lib_krb_printf = yes; then
9877   krb_lib=yes krb_libdir=${KRB4}/lib
9878 else
9879   LDFLAGS=$hold_ldflags
9880             # Using open here instead of printf so we don't
9881             # get confused by the cached value for printf from above.
9882             echo "$as_me:$LINENO: checking for open in -lkrb" >&5
9883 echo $ECHO_N "checking for open in -lkrb... $ECHO_C" >&6
9884 if test "${ac_cv_lib_krb_open+set}" = set; then
9885   echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887   ac_check_lib_save_LIBS=$LIBS
9888 LIBS="-lkrb  $LIBS"
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h.  */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h.  */
9895
9896 /* Override any gcc2 internal prototype to avoid an error.  */
9897 #ifdef __cplusplus
9898 extern "C"
9899 #endif
9900 /* We use char because int might match the return type of a gcc2
9901    builtin and then its argument prototype would still apply.  */
9902 char open ();
9903 int
9904 main ()
9905 {
9906 open ();
9907   ;
9908   return 0;
9909 }
9910 _ACEOF
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913   (eval $ac_link) 2>conftest.er1
9914   ac_status=$?
9915   grep -v '^ *+' conftest.er1 >conftest.err
9916   rm -f conftest.er1
9917   cat conftest.err >&5
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } &&
9920          { ac_try='test -z "$ac_c_werror_flag"
9921                          || test ! -s conftest.err'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; } &&
9927          { ac_try='test -s conftest$ac_exeext'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; }; then
9933   ac_cv_lib_krb_open=yes
9934 else
9935   echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 ac_cv_lib_krb_open=no
9939 fi
9940 rm -f conftest.err conftest.$ac_objext \
9941       conftest$ac_exeext conftest.$ac_ext
9942 LIBS=$ac_check_lib_save_LIBS
9943 fi
9944 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_open" >&5
9945 echo "${ECHO_T}$ac_cv_lib_krb_open" >&6
9946 if test $ac_cv_lib_krb_open = yes; then
9947   krb_lib=yes krb_libdir=
9948 fi
9949
9950 fi
9951
9952        LDFLAGS=$hold_ldflags
9953   else
9954        echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
9955 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
9956 if test "${ac_cv_lib_krb_printf+set}" = set; then
9957   echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959   ac_check_lib_save_LIBS=$LIBS
9960 LIBS="-lkrb  $LIBS"
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967
9968 /* Override any gcc2 internal prototype to avoid an error.  */
9969 #ifdef __cplusplus
9970 extern "C"
9971 #endif
9972 /* We use char because int might match the return type of a gcc2
9973    builtin and then its argument prototype would still apply.  */
9974 char printf ();
9975 int
9976 main ()
9977 {
9978 printf ();
9979   ;
9980   return 0;
9981 }
9982 _ACEOF
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985   (eval $ac_link) 2>conftest.er1
9986   ac_status=$?
9987   grep -v '^ *+' conftest.er1 >conftest.err
9988   rm -f conftest.er1
9989   cat conftest.err >&5
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); } &&
9992          { ac_try='test -z "$ac_c_werror_flag"
9993                          || test ! -s conftest.err'
9994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995   (eval $ac_try) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; } &&
9999          { ac_try='test -s conftest$ac_exeext'
10000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001   (eval $ac_try) 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); }; }; then
10005   ac_cv_lib_krb_printf=yes
10006 else
10007   echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 ac_cv_lib_krb_printf=no
10011 fi
10012 rm -f conftest.err conftest.$ac_objext \
10013       conftest$ac_exeext conftest.$ac_ext
10014 LIBS=$ac_check_lib_save_LIBS
10015 fi
10016 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
10017 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
10018 if test $ac_cv_lib_krb_printf = yes; then
10019   krb_lib=yes krb_libdir=
10020 fi
10021
10022        echo "$as_me:$LINENO: checking for krb_recvauth" >&5
10023 echo $ECHO_N "checking for krb_recvauth... $ECHO_C" >&6
10024 if test "${ac_cv_func_krb_recvauth+set}" = set; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033 /* Define krb_recvauth to an innocuous variant, in case <limits.h> declares krb_recvauth.
10034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10035 #define krb_recvauth innocuous_krb_recvauth
10036
10037 /* System header to define __stub macros and hopefully few prototypes,
10038     which can conflict with char krb_recvauth (); below.
10039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10040     <limits.h> exists even on freestanding compilers.  */
10041
10042 #ifdef __STDC__
10043 # include <limits.h>
10044 #else
10045 # include <assert.h>
10046 #endif
10047
10048 #undef krb_recvauth
10049
10050 /* Override any gcc2 internal prototype to avoid an error.  */
10051 #ifdef __cplusplus
10052 extern "C"
10053 {
10054 #endif
10055 /* We use char because int might match the return type of a gcc2
10056    builtin and then its argument prototype would still apply.  */
10057 char krb_recvauth ();
10058 /* The GNU C library defines this for functions which it implements
10059     to always fail with ENOSYS.  Some functions are actually named
10060     something starting with __ and the normal name is an alias.  */
10061 #if defined (__stub_krb_recvauth) || defined (__stub___krb_recvauth)
10062 choke me
10063 #else
10064 char (*f) () = krb_recvauth;
10065 #endif
10066 #ifdef __cplusplus
10067 }
10068 #endif
10069
10070 int
10071 main ()
10072 {
10073 return f != krb_recvauth;
10074   ;
10075   return 0;
10076 }
10077 _ACEOF
10078 rm -f conftest.$ac_objext conftest$ac_exeext
10079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10080   (eval $ac_link) 2>conftest.er1
10081   ac_status=$?
10082   grep -v '^ *+' conftest.er1 >conftest.err
10083   rm -f conftest.er1
10084   cat conftest.err >&5
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); } &&
10087          { ac_try='test -z "$ac_c_werror_flag"
10088                          || test ! -s conftest.err'
10089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090   (eval $ac_try) 2>&5
10091   ac_status=$?
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); }; } &&
10094          { ac_try='test -s conftest$ac_exeext'
10095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096   (eval $ac_try) 2>&5
10097   ac_status=$?
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); }; }; then
10100   ac_cv_func_krb_recvauth=yes
10101 else
10102   echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10104
10105 ac_cv_func_krb_recvauth=no
10106 fi
10107 rm -f conftest.err conftest.$ac_objext \
10108       conftest$ac_exeext conftest.$ac_ext
10109 fi
10110 echo "$as_me:$LINENO: result: $ac_cv_func_krb_recvauth" >&5
10111 echo "${ECHO_T}$ac_cv_func_krb_recvauth" >&6
10112 if test $ac_cv_func_krb_recvauth = yes; then
10113   krb_lib=yes krb_libdir=
10114 fi
10115
10116   fi
10117   if test -n "$krb_lib"; then
10118
10119 cat >>confdefs.h <<\_ACEOF
10120 #define HAVE_KERBEROS 1
10121 _ACEOF
10122
10123     test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
10124     # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
10125     # -ldes in the command line.  Don't do it permanently so that we honor
10126     # the user's setting for LDFLAGS
10127     hold_ldflags=$LDFLAGS
10128     test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
10129     echo "$as_me:$LINENO: checking for printf in -ldes" >&5
10130 echo $ECHO_N "checking for printf in -ldes... $ECHO_C" >&6
10131 if test "${ac_cv_lib_des_printf+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-ldes  $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h.  */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h.  */
10142
10143 /* Override any gcc2 internal prototype to avoid an error.  */
10144 #ifdef __cplusplus
10145 extern "C"
10146 #endif
10147 /* We use char because int might match the return type of a gcc2
10148    builtin and then its argument prototype would still apply.  */
10149 char printf ();
10150 int
10151 main ()
10152 {
10153 printf ();
10154   ;
10155   return 0;
10156 }
10157 _ACEOF
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160   (eval $ac_link) 2>conftest.er1
10161   ac_status=$?
10162   grep -v '^ *+' conftest.er1 >conftest.err
10163   rm -f conftest.er1
10164   cat conftest.err >&5
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); } &&
10167          { ac_try='test -z "$ac_c_werror_flag"
10168                          || test ! -s conftest.err'
10169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170   (eval $ac_try) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); }; } &&
10174          { ac_try='test -s conftest$ac_exeext'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   ac_cv_lib_des_printf=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185 ac_cv_lib_des_printf=no
10186 fi
10187 rm -f conftest.err conftest.$ac_objext \
10188       conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10190 fi
10191 echo "$as_me:$LINENO: result: $ac_cv_lib_des_printf" >&5
10192 echo "${ECHO_T}$ac_cv_lib_des_printf" >&6
10193 if test $ac_cv_lib_des_printf = yes; then
10194   LIBS="${LIBS} -ldes"
10195 fi
10196
10197
10198 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb" >&5
10199 echo $ECHO_N "checking for krb_recvauth in -lkrb... $ECHO_C" >&6
10200 if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203   ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-lkrb  $LIBS"
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h.  */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h.  */
10211
10212 /* Override any gcc2 internal prototype to avoid an error.  */
10213 #ifdef __cplusplus
10214 extern "C"
10215 #endif
10216 /* We use char because int might match the return type of a gcc2
10217    builtin and then its argument prototype would still apply.  */
10218 char krb_recvauth ();
10219 int
10220 main ()
10221 {
10222 krb_recvauth ();
10223   ;
10224   return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229   (eval $ac_link) 2>conftest.er1
10230   ac_status=$?
10231   grep -v '^ *+' conftest.er1 >conftest.err
10232   rm -f conftest.er1
10233   cat conftest.err >&5
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); } &&
10236          { ac_try='test -z "$ac_c_werror_flag"
10237                          || test ! -s conftest.err'
10238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239   (eval $ac_try) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; } &&
10243          { ac_try='test -s conftest$ac_exeext'
10244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245   (eval $ac_try) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; }; then
10249   ac_cv_lib_krb_krb_recvauth=yes
10250 else
10251   echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10253
10254 ac_cv_lib_krb_krb_recvauth=no
10255 fi
10256 rm -f conftest.err conftest.$ac_objext \
10257       conftest$ac_exeext conftest.$ac_ext
10258 LIBS=$ac_check_lib_save_LIBS
10259 fi
10260 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_recvauth" >&5
10261 echo "${ECHO_T}$ac_cv_lib_krb_krb_recvauth" >&6
10262 if test $ac_cv_lib_krb_krb_recvauth = yes; then
10263   cat >>confdefs.h <<_ACEOF
10264 #define HAVE_LIBKRB 1
10265 _ACEOF
10266
10267   LIBS="-lkrb $LIBS"
10268
10269 fi
10270
10271
10272 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb4" >&5
10273 echo $ECHO_N "checking for krb_recvauth in -lkrb4... $ECHO_C" >&6
10274 if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then
10275   echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277   ac_check_lib_save_LIBS=$LIBS
10278 LIBS="-lkrb4  $LIBS"
10279 cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h.  */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h.  */
10285
10286 /* Override any gcc2 internal prototype to avoid an error.  */
10287 #ifdef __cplusplus
10288 extern "C"
10289 #endif
10290 /* We use char because int might match the return type of a gcc2
10291    builtin and then its argument prototype would still apply.  */
10292 char krb_recvauth ();
10293 int
10294 main ()
10295 {
10296 krb_recvauth ();
10297   ;
10298   return 0;
10299 }
10300 _ACEOF
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303   (eval $ac_link) 2>conftest.er1
10304   ac_status=$?
10305   grep -v '^ *+' conftest.er1 >conftest.err
10306   rm -f conftest.er1
10307   cat conftest.err >&5
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); } &&
10310          { ac_try='test -z "$ac_c_werror_flag"
10311                          || test ! -s conftest.err'
10312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313   (eval $ac_try) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; } &&
10317          { ac_try='test -s conftest$ac_exeext'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; }; then
10323   ac_cv_lib_krb4_krb_recvauth=yes
10324 else
10325   echo "$as_me: failed program was:" >&5
10326 sed 's/^/| /' conftest.$ac_ext >&5
10327
10328 ac_cv_lib_krb4_krb_recvauth=no
10329 fi
10330 rm -f conftest.err conftest.$ac_objext \
10331       conftest$ac_exeext conftest.$ac_ext
10332 LIBS=$ac_check_lib_save_LIBS
10333 fi
10334 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_recvauth" >&5
10335 echo "${ECHO_T}$ac_cv_lib_krb4_krb_recvauth" >&6
10336 if test $ac_cv_lib_krb4_krb_recvauth = yes; then
10337   cat >>confdefs.h <<_ACEOF
10338 #define HAVE_LIBKRB4 1
10339 _ACEOF
10340
10341   LIBS="-lkrb4 $LIBS"
10342
10343 fi
10344
10345     LDFLAGS=$hold_ldflags
10346     if test -n "$krb_incdir"; then
10347       includeopt="${includeopt} -I$krb_incdir"
10348     fi
10349   fi
10350 fi
10351
10352 for ac_func in krb_get_err_text
10353 do
10354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10355 echo "$as_me:$LINENO: checking for $ac_func" >&5
10356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10357 if eval "test \"\${$as_ac_var+set}\" = set"; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h.  */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h.  */
10366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10368 #define $ac_func innocuous_$ac_func
10369
10370 /* System header to define __stub macros and hopefully few prototypes,
10371     which can conflict with char $ac_func (); below.
10372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10373     <limits.h> exists even on freestanding compilers.  */
10374
10375 #ifdef __STDC__
10376 # include <limits.h>
10377 #else
10378 # include <assert.h>
10379 #endif
10380
10381 #undef $ac_func
10382
10383 /* Override any gcc2 internal prototype to avoid an error.  */
10384 #ifdef __cplusplus
10385 extern "C"
10386 {
10387 #endif
10388 /* We use char because int might match the return type of a gcc2
10389    builtin and then its argument prototype would still apply.  */
10390 char $ac_func ();
10391 /* The GNU C library defines this for functions which it implements
10392     to always fail with ENOSYS.  Some functions are actually named
10393     something starting with __ and the normal name is an alias.  */
10394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10395 choke me
10396 #else
10397 char (*f) () = $ac_func;
10398 #endif
10399 #ifdef __cplusplus
10400 }
10401 #endif
10402
10403 int
10404 main ()
10405 {
10406 return f != $ac_func;
10407   ;
10408   return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10413   (eval $ac_link) 2>conftest.er1
10414   ac_status=$?
10415   grep -v '^ *+' conftest.er1 >conftest.err
10416   rm -f conftest.er1
10417   cat conftest.err >&5
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); } &&
10420          { ac_try='test -z "$ac_c_werror_flag"
10421                          || test ! -s conftest.err'
10422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423   (eval $ac_try) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); }; } &&
10427          { ac_try='test -s conftest$ac_exeext'
10428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429   (eval $ac_try) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); }; }; then
10433   eval "$as_ac_var=yes"
10434 else
10435   echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10437
10438 eval "$as_ac_var=no"
10439 fi
10440 rm -f conftest.err conftest.$ac_objext \
10441       conftest$ac_exeext conftest.$ac_ext
10442 fi
10443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10445 if test `eval echo '${'$as_ac_var'}'` = yes; then
10446   cat >>confdefs.h <<_ACEOF
10447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10448 _ACEOF
10449
10450 fi
10451 done
10452
10453
10454
10455
10456 #
10457 # Use --with-gssapi[=DIR] to enable GSSAPI support.
10458 #
10459 # defaults to enabled with DIR in default list below
10460 #
10461 # Search for /SUNHEA/ and read the comments about this default below.
10462 #
10463
10464 # Check whether --with-gssapi or --without-gssapi was given.
10465 if test "${with_gssapi+set}" = set; then
10466   withval="$with_gssapi"
10467
10468 else
10469   with_gssapi=yes
10470 fi;
10471 #
10472 # Try to locate a GSSAPI installation if no location was specified, assuming
10473 # GSSAPI was enabled (the default).
10474 #
10475 if test -n "$acx_gssapi_cv_gssapi"; then
10476   # Granted, this is a slightly ugly way to print this info, but the
10477   # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
10478   # AC_CACHE_CHECK worse
10479   echo "$as_me:$LINENO: checking for GSSAPI" >&5
10480 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
10481 else :; fi
10482 if test "${acx_gssapi_cv_gssapi+set}" = set; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485
10486 if test x$with_gssapi = xyes; then
10487   # --with but no location specified
10488   # assume a gssapi.h or gssapi/gssapi.h locates our install.
10489   #
10490   # This isn't always strictly true.  For instance Solaris 7's SUNHEA (header)
10491   # package installs gssapi.h whether or not the necessary libraries are
10492   # installed.  I'm still not sure whether to consider this a bug.  The long
10493   # way around is to not consider GSSPAI installed unless gss_import_name is
10494   # found, but that brings up a lot of other hassles, like continuing to let
10495   # gcc & ld generate the error messages when the user uses --with-gssapi=dir
10496   # as a debugging aid.  The short way around is to disable GSSAPI by default,
10497   # but I think Sun users have been faced with this for awhile and I haven't
10498   # heard many complaints.
10499   acx_gssapi_save_CPPFLAGS=$CPPFLAGS
10500   for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
10501     if test x$acx_gssapi_cv_gssapi = xno; then
10502       break
10503     fi
10504     if test x$acx_gssapi_cv_gssapi = xyes; then
10505       echo "$as_me:$LINENO: checking for GSSAPI" >&5
10506 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
10507       echo "$as_me:$LINENO: result: " >&5
10508 echo "${ECHO_T}" >&6
10509     else
10510       CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
10511       echo "$as_me:$LINENO: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
10512 echo $ECHO_N "checking for GSSAPI in $acx_gssapi_cv_gssapi... $ECHO_C" >&6
10513       echo "$as_me:$LINENO: result: " >&5
10514 echo "${ECHO_T}" >&6
10515     fi
10516     unset ac_cv_header_gssapi_h
10517     unset ac_cv_header_gssapi_gssapi_h
10518     unset ac_cv_header_krb5_h
10519
10520
10521
10522 for ac_header in gssapi.h gssapi/gssapi.h krb5.h
10523 do
10524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10526   echo "$as_me:$LINENO: checking for $ac_header" >&5
10527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10529   echo $ECHO_N "(cached) $ECHO_C" >&6
10530 fi
10531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10533 else
10534   # Is the header compilable?
10535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h.  */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h.  */
10543 $ac_includes_default
10544 #include <$ac_header>
10545 _ACEOF
10546 rm -f conftest.$ac_objext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548   (eval $ac_compile) 2>conftest.er1
10549   ac_status=$?
10550   grep -v '^ *+' conftest.er1 >conftest.err
10551   rm -f conftest.er1
10552   cat conftest.err >&5
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); } &&
10555          { ac_try='test -z "$ac_c_werror_flag"
10556                          || test ! -s conftest.err'
10557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558   (eval $ac_try) 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); }; } &&
10562          { ac_try='test -s conftest.$ac_objext'
10563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564   (eval $ac_try) 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); }; }; then
10568   ac_header_compiler=yes
10569 else
10570   echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573 ac_header_compiler=no
10574 fi
10575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10577 echo "${ECHO_T}$ac_header_compiler" >&6
10578
10579 # Is the header present?
10580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h.  */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h.  */
10588 #include <$ac_header>
10589 _ACEOF
10590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10591   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10592   ac_status=$?
10593   grep -v '^ *+' conftest.er1 >conftest.err
10594   rm -f conftest.er1
10595   cat conftest.err >&5
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); } >/dev/null; then
10598   if test -s conftest.err; then
10599     ac_cpp_err=$ac_c_preproc_warn_flag
10600     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10601   else
10602     ac_cpp_err=
10603   fi
10604 else
10605   ac_cpp_err=yes
10606 fi
10607 if test -z "$ac_cpp_err"; then
10608   ac_header_preproc=yes
10609 else
10610   echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613   ac_header_preproc=no
10614 fi
10615 rm -f conftest.err conftest.$ac_ext
10616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10617 echo "${ECHO_T}$ac_header_preproc" >&6
10618
10619 # So?  What about this header?
10620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10621   yes:no: )
10622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10626     ac_header_preproc=yes
10627     ;;
10628   no:yes:* )
10629     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10631     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10632 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10633     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10635     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10636 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10639     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10641     (
10642       cat <<\_ASBOX
10643 ## --------------------------------- ##
10644 ## Report this to bug-cvs@nongnu.org ##
10645 ## --------------------------------- ##
10646 _ASBOX
10647     ) |
10648       sed "s/^/$as_me: WARNING:     /" >&2
10649     ;;
10650 esac
10651 echo "$as_me:$LINENO: checking for $ac_header" >&5
10652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   eval "$as_ac_Header=\$ac_header_preproc"
10657 fi
10658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10660
10661 fi
10662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10663   cat >>confdefs.h <<_ACEOF
10664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10665 _ACEOF
10666
10667 fi
10668
10669 done
10670
10671     if (test "$ac_cv_header_gssapi_h" = yes ||
10672           test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
10673         test "$ac_cv_header_krb5_h" = yes; then
10674       break
10675     fi
10676   done
10677   CPPFLAGS=$acx_gssapi_save_CPPFLAGS
10678 else
10679   acx_gssapi_cv_gssapi=$with_gssapi
10680 fi
10681 echo "$as_me:$LINENO: checking for GSSAPI" >&5
10682 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
10683
10684 fi
10685 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gssapi" >&5
10686 echo "${ECHO_T}$acx_gssapi_cv_gssapi" >&6
10687
10688 #
10689 # Set up GSSAPI includes for later use.  We don't bother to check for
10690 # $acx_gssapi_cv_gssapi=no here since that will be caught later.
10691 #
10692 if test x$acx_gssapi_cv_gssapi = xyes; then
10693   # no special includes necessary
10694   GSSAPI_INCLUDES=""
10695 else
10696   # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
10697   GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
10698 fi
10699
10700 #
10701 # Get the rest of the information CVS needs to compile with GSSAPI support
10702 #
10703 if test x$acx_gssapi_cv_gssapi != xno; then
10704   # define HAVE_GSSAPI and set up the includes
10705
10706 cat >>confdefs.h <<\_ACEOF
10707 #define HAVE_GSSAPI
10708 _ACEOF
10709
10710   includeopt=$includeopt$GSSAPI_INCLUDES
10711
10712   # locate any other headers
10713   acx_gssapi_save_CPPFLAGS=$CPPFLAGS
10714   CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
10715
10716
10717
10718
10719 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
10720 do
10721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10723   echo "$as_me:$LINENO: checking for $ac_header" >&5
10724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10726   echo $ECHO_N "(cached) $ECHO_C" >&6
10727 fi
10728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10730 else
10731   # Is the header compilable?
10732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740 $ac_includes_default
10741 #include <$ac_header>
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745   (eval $ac_compile) 2>conftest.er1
10746   ac_status=$?
10747   grep -v '^ *+' conftest.er1 >conftest.err
10748   rm -f conftest.er1
10749   cat conftest.err >&5
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } &&
10752          { ac_try='test -z "$ac_c_werror_flag"
10753                          || test ! -s conftest.err'
10754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755   (eval $ac_try) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; } &&
10759          { ac_try='test -s conftest.$ac_objext'
10760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761   (eval $ac_try) 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }; }; then
10765   ac_header_compiler=yes
10766 else
10767   echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 ac_header_compiler=no
10771 fi
10772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10774 echo "${ECHO_T}$ac_header_compiler" >&6
10775
10776 # Is the header present?
10777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h.  */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h.  */
10785 #include <$ac_header>
10786 _ACEOF
10787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10789   ac_status=$?
10790   grep -v '^ *+' conftest.er1 >conftest.err
10791   rm -f conftest.er1
10792   cat conftest.err >&5
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } >/dev/null; then
10795   if test -s conftest.err; then
10796     ac_cpp_err=$ac_c_preproc_warn_flag
10797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10798   else
10799     ac_cpp_err=
10800   fi
10801 else
10802   ac_cpp_err=yes
10803 fi
10804 if test -z "$ac_cpp_err"; then
10805   ac_header_preproc=yes
10806 else
10807   echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10809
10810   ac_header_preproc=no
10811 fi
10812 rm -f conftest.err conftest.$ac_ext
10813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10814 echo "${ECHO_T}$ac_header_preproc" >&6
10815
10816 # So?  What about this header?
10817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10818   yes:no: )
10819     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10823     ac_header_preproc=yes
10824     ;;
10825   no:yes:* )
10826     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10828     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10829 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10830     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10832     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10833 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10836     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10838     (
10839       cat <<\_ASBOX
10840 ## --------------------------------- ##
10841 ## Report this to bug-cvs@nongnu.org ##
10842 ## --------------------------------- ##
10843 _ASBOX
10844     ) |
10845       sed "s/^/$as_me: WARNING:     /" >&2
10846     ;;
10847 esac
10848 echo "$as_me:$LINENO: checking for $ac_header" >&5
10849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10851   echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853   eval "$as_ac_Header=\$ac_header_preproc"
10854 fi
10855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10857
10858 fi
10859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10860   cat >>confdefs.h <<_ACEOF
10861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10862 _ACEOF
10863
10864 fi
10865
10866 done
10867
10868   # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
10869   echo "$as_me:$LINENO: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
10870 echo $ECHO_N "checking for GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6
10871 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then
10872   echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874
10875     acx_gssapi_cv_gss_c_nt_hostbased_service=no
10876     if test "$ac_cv_header_gssapi_h" = "yes"; then
10877       cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h.  */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h.  */
10883 #include <gssapi.h>
10884
10885 _ACEOF
10886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10887   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
10888   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
10889 else
10890
10891         cat >conftest.$ac_ext <<_ACEOF
10892 /* confdefs.h.  */
10893 _ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h.  */
10897 #include <gssapi.h>
10898
10899 _ACEOF
10900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10901   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
10902   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
10903 fi
10904 rm -f conftest*
10905
10906
10907 fi
10908 rm -f conftest*
10909
10910     fi
10911     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
10912        test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
10913       cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h.  */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h.  */
10919 #include <gssapi/gssapi.h>
10920
10921 _ACEOF
10922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10923   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
10924   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
10925 else
10926
10927         cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h.  */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h.  */
10933 #include <gssapi/gssapi.h>
10934
10935 _ACEOF
10936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10937   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
10938   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
10939 fi
10940 rm -f conftest*
10941
10942
10943 fi
10944 rm -f conftest*
10945
10946     else :; fi
10947     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
10948        test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
10949       cat >conftest.$ac_ext <<_ACEOF
10950 /* confdefs.h.  */
10951 _ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h.  */
10955 #include <gssapi/gssapi_generic.h>
10956
10957 _ACEOF
10958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10959   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
10960   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
10961 else
10962
10963         cat >conftest.$ac_ext <<_ACEOF
10964 /* confdefs.h.  */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h.  */
10969 #include <gssapi/gssapi_generic.h>
10970
10971 _ACEOF
10972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10973   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
10974   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
10975 fi
10976 rm -f conftest*
10977
10978
10979 fi
10980 rm -f conftest*
10981
10982     else :; fi
10983
10984 fi
10985 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
10986 echo "${ECHO_T}$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6
10987   if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
10988      test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
10989     # don't define for yes since that means it already means something and
10990     # don't define for no since we'd rather the compiler catch the error
10991     # It's debatable whether we'd prefer that the compiler catch the error
10992     #  - it seems our estranged developer is more likely to be familiar with
10993     #    the intricacies of the compiler than with those of autoconf, but by
10994     #    the same token, maybe we'd rather alert them to the fact that most
10995     #    of the support they need to fix the problem is installed if they can
10996     #    simply locate the appropriate symbol.
10997
10998 cat >>confdefs.h <<_ACEOF
10999 #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
11000 _ACEOF
11001
11002   else :; fi
11003
11004   CPPFLAGS=$acx_gssapi_save_CPPFLAGS
11005
11006   # Expect the libs to be installed parallel to the headers
11007   #
11008   # We could try once with and once without, but I'm not sure it's worth the
11009   # trouble.
11010   if test x$acx_gssapi_cv_gssapi != xyes; then
11011     if test -z "$LIBS"; then
11012       LIBS="-L$acx_gssapi_cv_gssapi/lib"
11013     else
11014       LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
11015     fi
11016   else :; fi
11017
11018       #
11019   # Some of the order below is particular due to library dependencies
11020   #
11021
11022   #
11023   # des                 Heimdal K 0.3d, but Heimdal seems to be set up such
11024   #                     that it could have been installed from elsewhere.
11025   #
11026   echo "$as_me:$LINENO: checking for library containing des_set_odd_parity" >&5
11027 echo $ECHO_N "checking for library containing des_set_odd_parity... $ECHO_C" >&6
11028 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
11029   echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031   ac_func_search_save_LIBS=$LIBS
11032 ac_cv_search_des_set_odd_parity=no
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039
11040 /* Override any gcc2 internal prototype to avoid an error.  */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 /* We use char because int might match the return type of a gcc2
11045    builtin and then its argument prototype would still apply.  */
11046 char des_set_odd_parity ();
11047 int
11048 main ()
11049 {
11050 des_set_odd_parity ();
11051   ;
11052   return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057   (eval $ac_link) 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } &&
11064          { ac_try='test -z "$ac_c_werror_flag"
11065                          || test ! -s conftest.err'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; } &&
11071          { ac_try='test -s conftest$ac_exeext'
11072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073   (eval $ac_try) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }; }; then
11077   ac_cv_search_des_set_odd_parity="none required"
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082 fi
11083 rm -f conftest.err conftest.$ac_objext \
11084       conftest$ac_exeext conftest.$ac_ext
11085 if test "$ac_cv_search_des_set_odd_parity" = no; then
11086   for ac_lib in des; do
11087     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11088     cat >conftest.$ac_ext <<_ACEOF
11089 /* confdefs.h.  */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h.  */
11094
11095 /* Override any gcc2 internal prototype to avoid an error.  */
11096 #ifdef __cplusplus
11097 extern "C"
11098 #endif
11099 /* We use char because int might match the return type of a gcc2
11100    builtin and then its argument prototype would still apply.  */
11101 char des_set_odd_parity ();
11102 int
11103 main ()
11104 {
11105 des_set_odd_parity ();
11106   ;
11107   return 0;
11108 }
11109 _ACEOF
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112   (eval $ac_link) 2>conftest.er1
11113   ac_status=$?
11114   grep -v '^ *+' conftest.er1 >conftest.err
11115   rm -f conftest.er1
11116   cat conftest.err >&5
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); } &&
11119          { ac_try='test -z "$ac_c_werror_flag"
11120                          || test ! -s conftest.err'
11121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122   (eval $ac_try) 2>&5
11123   ac_status=$?
11124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125   (exit $ac_status); }; } &&
11126          { ac_try='test -s conftest$ac_exeext'
11127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128   (eval $ac_try) 2>&5
11129   ac_status=$?
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); }; }; then
11132   ac_cv_search_des_set_odd_parity="-l$ac_lib"
11133 break
11134 else
11135   echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11137
11138 fi
11139 rm -f conftest.err conftest.$ac_objext \
11140       conftest$ac_exeext conftest.$ac_ext
11141   done
11142 fi
11143 LIBS=$ac_func_search_save_LIBS
11144 fi
11145 echo "$as_me:$LINENO: result: $ac_cv_search_des_set_odd_parity" >&5
11146 echo "${ECHO_T}$ac_cv_search_des_set_odd_parity" >&6
11147 if test "$ac_cv_search_des_set_odd_parity" != no; then
11148   test "$ac_cv_search_des_set_odd_parity" = "none required" || LIBS="$ac_cv_search_des_set_odd_parity $LIBS"
11149
11150 fi
11151
11152
11153   #
11154   # com_err             Heimdal K 0.3d
11155   #
11156   # com_err             MIT K5 v1.2.2-beta1
11157   #
11158   echo "$as_me:$LINENO: checking for library containing com_err" >&5
11159 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
11160 if test "${ac_cv_search_com_err+set}" = set; then
11161   echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163   ac_func_search_save_LIBS=$LIBS
11164 ac_cv_search_com_err=no
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h.  */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h.  */
11171
11172 /* Override any gcc2 internal prototype to avoid an error.  */
11173 #ifdef __cplusplus
11174 extern "C"
11175 #endif
11176 /* We use char because int might match the return type of a gcc2
11177    builtin and then its argument prototype would still apply.  */
11178 char com_err ();
11179 int
11180 main ()
11181 {
11182 com_err ();
11183   ;
11184   return 0;
11185 }
11186 _ACEOF
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189   (eval $ac_link) 2>conftest.er1
11190   ac_status=$?
11191   grep -v '^ *+' conftest.er1 >conftest.err
11192   rm -f conftest.er1
11193   cat conftest.err >&5
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); } &&
11196          { ac_try='test -z "$ac_c_werror_flag"
11197                          || test ! -s conftest.err'
11198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199   (eval $ac_try) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); }; } &&
11203          { ac_try='test -s conftest$ac_exeext'
11204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205   (eval $ac_try) 2>&5
11206   ac_status=$?
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); }; }; then
11209   ac_cv_search_com_err="none required"
11210 else
11211   echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214 fi
11215 rm -f conftest.err conftest.$ac_objext \
11216       conftest$ac_exeext conftest.$ac_ext
11217 if test "$ac_cv_search_com_err" = no; then
11218   for ac_lib in com_err; do
11219     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11220     cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h.  */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h.  */
11226
11227 /* Override any gcc2 internal prototype to avoid an error.  */
11228 #ifdef __cplusplus
11229 extern "C"
11230 #endif
11231 /* We use char because int might match the return type of a gcc2
11232    builtin and then its argument prototype would still apply.  */
11233 char com_err ();
11234 int
11235 main ()
11236 {
11237 com_err ();
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244   (eval $ac_link) 2>conftest.er1
11245   ac_status=$?
11246   grep -v '^ *+' conftest.er1 >conftest.err
11247   rm -f conftest.er1
11248   cat conftest.err >&5
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); } &&
11251          { ac_try='test -z "$ac_c_werror_flag"
11252                          || test ! -s conftest.err'
11253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254   (eval $ac_try) 2>&5
11255   ac_status=$?
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); }; } &&
11258          { ac_try='test -s conftest$ac_exeext'
11259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260   (eval $ac_try) 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; }; then
11264   ac_cv_search_com_err="-l$ac_lib"
11265 break
11266 else
11267   echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11269
11270 fi
11271 rm -f conftest.err conftest.$ac_objext \
11272       conftest$ac_exeext conftest.$ac_ext
11273   done
11274 fi
11275 LIBS=$ac_func_search_save_LIBS
11276 fi
11277 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
11278 echo "${ECHO_T}$ac_cv_search_com_err" >&6
11279 if test "$ac_cv_search_com_err" != no; then
11280   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
11281
11282 fi
11283
11284
11285   #
11286   # asn1                Heimdal K 0.3d          -lcom_err
11287   #
11288   echo "$as_me:$LINENO: checking for library containing initialize_asn1_error_table_r" >&5
11289 echo $ECHO_N "checking for library containing initialize_asn1_error_table_r... $ECHO_C" >&6
11290 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
11291   echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293   ac_func_search_save_LIBS=$LIBS
11294 ac_cv_search_initialize_asn1_error_table_r=no
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301
11302 /* Override any gcc2 internal prototype to avoid an error.  */
11303 #ifdef __cplusplus
11304 extern "C"
11305 #endif
11306 /* We use char because int might match the return type of a gcc2
11307    builtin and then its argument prototype would still apply.  */
11308 char initialize_asn1_error_table_r ();
11309 int
11310 main ()
11311 {
11312 initialize_asn1_error_table_r ();
11313   ;
11314   return 0;
11315 }
11316 _ACEOF
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319   (eval $ac_link) 2>conftest.er1
11320   ac_status=$?
11321   grep -v '^ *+' conftest.er1 >conftest.err
11322   rm -f conftest.er1
11323   cat conftest.err >&5
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); } &&
11326          { ac_try='test -z "$ac_c_werror_flag"
11327                          || test ! -s conftest.err'
11328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329   (eval $ac_try) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); }; } &&
11333          { ac_try='test -s conftest$ac_exeext'
11334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335   (eval $ac_try) 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; }; then
11339   ac_cv_search_initialize_asn1_error_table_r="none required"
11340 else
11341   echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344 fi
11345 rm -f conftest.err conftest.$ac_objext \
11346       conftest$ac_exeext conftest.$ac_ext
11347 if test "$ac_cv_search_initialize_asn1_error_table_r" = no; then
11348   for ac_lib in asn1; do
11349     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11350     cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h.  */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h.  */
11356
11357 /* Override any gcc2 internal prototype to avoid an error.  */
11358 #ifdef __cplusplus
11359 extern "C"
11360 #endif
11361 /* We use char because int might match the return type of a gcc2
11362    builtin and then its argument prototype would still apply.  */
11363 char initialize_asn1_error_table_r ();
11364 int
11365 main ()
11366 {
11367 initialize_asn1_error_table_r ();
11368   ;
11369   return 0;
11370 }
11371 _ACEOF
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374   (eval $ac_link) 2>conftest.er1
11375   ac_status=$?
11376   grep -v '^ *+' conftest.er1 >conftest.err
11377   rm -f conftest.er1
11378   cat conftest.err >&5
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); } &&
11381          { ac_try='test -z "$ac_c_werror_flag"
11382                          || test ! -s conftest.err'
11383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384   (eval $ac_try) 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); }; } &&
11388          { ac_try='test -s conftest$ac_exeext'
11389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390   (eval $ac_try) 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); }; }; then
11394   ac_cv_search_initialize_asn1_error_table_r="-l$ac_lib"
11395 break
11396 else
11397   echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11399
11400 fi
11401 rm -f conftest.err conftest.$ac_objext \
11402       conftest$ac_exeext conftest.$ac_ext
11403   done
11404 fi
11405 LIBS=$ac_func_search_save_LIBS
11406 fi
11407 echo "$as_me:$LINENO: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
11408 echo "${ECHO_T}$ac_cv_search_initialize_asn1_error_table_r" >&6
11409 if test "$ac_cv_search_initialize_asn1_error_table_r" != no; then
11410   test "$ac_cv_search_initialize_asn1_error_table_r" = "none required" || LIBS="$ac_cv_search_initialize_asn1_error_table_r $LIBS"
11411
11412 fi
11413
11414
11415   #
11416   # resolv              required, but not installed by Heimdal K 0.3d
11417   #
11418   # resolv              MIT K5 1.2.2-beta1
11419   #                     Linux 2.2.17
11420   #
11421   echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
11422 echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
11423 if test "${ac_cv_search___dn_expand+set}" = set; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426   ac_func_search_save_LIBS=$LIBS
11427 ac_cv_search___dn_expand=no
11428 cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h.  */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h.  */
11434
11435 /* Override any gcc2 internal prototype to avoid an error.  */
11436 #ifdef __cplusplus
11437 extern "C"
11438 #endif
11439 /* We use char because int might match the return type of a gcc2
11440    builtin and then its argument prototype would still apply.  */
11441 char __dn_expand ();
11442 int
11443 main ()
11444 {
11445 __dn_expand ();
11446   ;
11447   return 0;
11448 }
11449 _ACEOF
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11452   (eval $ac_link) 2>conftest.er1
11453   ac_status=$?
11454   grep -v '^ *+' conftest.er1 >conftest.err
11455   rm -f conftest.er1
11456   cat conftest.err >&5
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); } &&
11459          { ac_try='test -z "$ac_c_werror_flag"
11460                          || test ! -s conftest.err'
11461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462   (eval $ac_try) 2>&5
11463   ac_status=$?
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); }; } &&
11466          { ac_try='test -s conftest$ac_exeext'
11467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468   (eval $ac_try) 2>&5
11469   ac_status=$?
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); }; }; then
11472   ac_cv_search___dn_expand="none required"
11473 else
11474   echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11476
11477 fi
11478 rm -f conftest.err conftest.$ac_objext \
11479       conftest$ac_exeext conftest.$ac_ext
11480 if test "$ac_cv_search___dn_expand" = no; then
11481   for ac_lib in resolv; do
11482     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11483     cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h.  */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h.  */
11489
11490 /* Override any gcc2 internal prototype to avoid an error.  */
11491 #ifdef __cplusplus
11492 extern "C"
11493 #endif
11494 /* We use char because int might match the return type of a gcc2
11495    builtin and then its argument prototype would still apply.  */
11496 char __dn_expand ();
11497 int
11498 main ()
11499 {
11500 __dn_expand ();
11501   ;
11502   return 0;
11503 }
11504 _ACEOF
11505 rm -f conftest.$ac_objext conftest$ac_exeext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507   (eval $ac_link) 2>conftest.er1
11508   ac_status=$?
11509   grep -v '^ *+' conftest.er1 >conftest.err
11510   rm -f conftest.er1
11511   cat conftest.err >&5
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); } &&
11514          { ac_try='test -z "$ac_c_werror_flag"
11515                          || test ! -s conftest.err'
11516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517   (eval $ac_try) 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; } &&
11521          { ac_try='test -s conftest$ac_exeext'
11522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523   (eval $ac_try) 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); }; }; then
11527   ac_cv_search___dn_expand="-l$ac_lib"
11528 break
11529 else
11530   echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533 fi
11534 rm -f conftest.err conftest.$ac_objext \
11535       conftest$ac_exeext conftest.$ac_ext
11536   done
11537 fi
11538 LIBS=$ac_func_search_save_LIBS
11539 fi
11540 echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
11541 echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
11542 if test "$ac_cv_search___dn_expand" != no; then
11543   test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
11544
11545 fi
11546
11547
11548   #
11549   # crypto             Need by gssapi under FreeBSD 5.4
11550   #
11551   echo "$as_me:$LINENO: checking for library containing RC4" >&5
11552 echo $ECHO_N "checking for library containing RC4... $ECHO_C" >&6
11553 if test "${ac_cv_search_RC4+set}" = set; then
11554   echo $ECHO_N "(cached) $ECHO_C" >&6
11555 else
11556   ac_func_search_save_LIBS=$LIBS
11557 ac_cv_search_RC4=no
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h.  */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h.  */
11564
11565 /* Override any gcc2 internal prototype to avoid an error.  */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 /* We use char because int might match the return type of a gcc2
11570    builtin and then its argument prototype would still apply.  */
11571 char RC4 ();
11572 int
11573 main ()
11574 {
11575 RC4 ();
11576   ;
11577   return 0;
11578 }
11579 _ACEOF
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11582   (eval $ac_link) 2>conftest.er1
11583   ac_status=$?
11584   grep -v '^ *+' conftest.er1 >conftest.err
11585   rm -f conftest.er1
11586   cat conftest.err >&5
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); } &&
11589          { ac_try='test -z "$ac_c_werror_flag"
11590                          || test ! -s conftest.err'
11591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592   (eval $ac_try) 2>&5
11593   ac_status=$?
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); }; } &&
11596          { ac_try='test -s conftest$ac_exeext'
11597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598   (eval $ac_try) 2>&5
11599   ac_status=$?
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); }; }; then
11602   ac_cv_search_RC4="none required"
11603 else
11604   echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11606
11607 fi
11608 rm -f conftest.err conftest.$ac_objext \
11609       conftest$ac_exeext conftest.$ac_ext
11610 if test "$ac_cv_search_RC4" = no; then
11611   for ac_lib in crypto; do
11612     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11613     cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h.  */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h.  */
11619
11620 /* Override any gcc2 internal prototype to avoid an error.  */
11621 #ifdef __cplusplus
11622 extern "C"
11623 #endif
11624 /* We use char because int might match the return type of a gcc2
11625    builtin and then its argument prototype would still apply.  */
11626 char RC4 ();
11627 int
11628 main ()
11629 {
11630 RC4 ();
11631   ;
11632   return 0;
11633 }
11634 _ACEOF
11635 rm -f conftest.$ac_objext conftest$ac_exeext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11637   (eval $ac_link) 2>conftest.er1
11638   ac_status=$?
11639   grep -v '^ *+' conftest.er1 >conftest.err
11640   rm -f conftest.er1
11641   cat conftest.err >&5
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); } &&
11644          { ac_try='test -z "$ac_c_werror_flag"
11645                          || test ! -s conftest.err'
11646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647   (eval $ac_try) 2>&5
11648   ac_status=$?
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); }; } &&
11651          { ac_try='test -s conftest$ac_exeext'
11652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653   (eval $ac_try) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); }; }; then
11657   ac_cv_search_RC4="-l$ac_lib"
11658 break
11659 else
11660   echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11662
11663 fi
11664 rm -f conftest.err conftest.$ac_objext \
11665       conftest$ac_exeext conftest.$ac_ext
11666   done
11667 fi
11668 LIBS=$ac_func_search_save_LIBS
11669 fi
11670 echo "$as_me:$LINENO: result: $ac_cv_search_RC4" >&5
11671 echo "${ECHO_T}$ac_cv_search_RC4" >&6
11672 if test "$ac_cv_search_RC4" != no; then
11673   test "$ac_cv_search_RC4" = "none required" || LIBS="$ac_cv_search_RC4 $LIBS"
11674
11675 fi
11676
11677
11678   #
11679   # crypt              Needed by roken under FreeBSD 4.6.
11680   #
11681   echo "$as_me:$LINENO: checking for library containing crypt" >&5
11682 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
11683 if test "${ac_cv_search_crypt+set}" = set; then
11684   echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686   ac_func_search_save_LIBS=$LIBS
11687 ac_cv_search_crypt=no
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694
11695 /* Override any gcc2 internal prototype to avoid an error.  */
11696 #ifdef __cplusplus
11697 extern "C"
11698 #endif
11699 /* We use char because int might match the return type of a gcc2
11700    builtin and then its argument prototype would still apply.  */
11701 char crypt ();
11702 int
11703 main ()
11704 {
11705 crypt ();
11706   ;
11707   return 0;
11708 }
11709 _ACEOF
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11712   (eval $ac_link) 2>conftest.er1
11713   ac_status=$?
11714   grep -v '^ *+' conftest.er1 >conftest.err
11715   rm -f conftest.er1
11716   cat conftest.err >&5
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); } &&
11719          { ac_try='test -z "$ac_c_werror_flag"
11720                          || test ! -s conftest.err'
11721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722   (eval $ac_try) 2>&5
11723   ac_status=$?
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); }; } &&
11726          { ac_try='test -s conftest$ac_exeext'
11727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728   (eval $ac_try) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; }; then
11732   ac_cv_search_crypt="none required"
11733 else
11734   echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737 fi
11738 rm -f conftest.err conftest.$ac_objext \
11739       conftest$ac_exeext conftest.$ac_ext
11740 if test "$ac_cv_search_crypt" = no; then
11741   for ac_lib in crypt; do
11742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11743     cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749
11750 /* Override any gcc2 internal prototype to avoid an error.  */
11751 #ifdef __cplusplus
11752 extern "C"
11753 #endif
11754 /* We use char because int might match the return type of a gcc2
11755    builtin and then its argument prototype would still apply.  */
11756 char crypt ();
11757 int
11758 main ()
11759 {
11760 crypt ();
11761   ;
11762   return 0;
11763 }
11764 _ACEOF
11765 rm -f conftest.$ac_objext conftest$ac_exeext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11767   (eval $ac_link) 2>conftest.er1
11768   ac_status=$?
11769   grep -v '^ *+' conftest.er1 >conftest.err
11770   rm -f conftest.er1
11771   cat conftest.err >&5
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); } &&
11774          { ac_try='test -z "$ac_c_werror_flag"
11775                          || test ! -s conftest.err'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; } &&
11781          { ac_try='test -s conftest$ac_exeext'
11782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783   (eval $ac_try) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; }; then
11787   ac_cv_search_crypt="-l$ac_lib"
11788 break
11789 else
11790   echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11792
11793 fi
11794 rm -f conftest.err conftest.$ac_objext \
11795       conftest$ac_exeext conftest.$ac_ext
11796   done
11797 fi
11798 LIBS=$ac_func_search_save_LIBS
11799 fi
11800 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
11801 echo "${ECHO_T}$ac_cv_search_crypt" >&6
11802 if test "$ac_cv_search_crypt" != no; then
11803   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
11804
11805 fi
11806
11807
11808   #
11809   # roken               Heimdal K 0.3d          -lresolv
11810   # roken               FreeBSD 4.6             -lcrypt
11811   #
11812   echo "$as_me:$LINENO: checking for library containing roken_gethostbyaddr" >&5
11813 echo $ECHO_N "checking for library containing roken_gethostbyaddr... $ECHO_C" >&6
11814 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
11815   echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817   ac_func_search_save_LIBS=$LIBS
11818 ac_cv_search_roken_gethostbyaddr=no
11819 cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h.  */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h.  */
11825
11826 /* Override any gcc2 internal prototype to avoid an error.  */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 /* We use char because int might match the return type of a gcc2
11831    builtin and then its argument prototype would still apply.  */
11832 char roken_gethostbyaddr ();
11833 int
11834 main ()
11835 {
11836 roken_gethostbyaddr ();
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11843   (eval $ac_link) 2>conftest.er1
11844   ac_status=$?
11845   grep -v '^ *+' conftest.er1 >conftest.err
11846   rm -f conftest.er1
11847   cat conftest.err >&5
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); } &&
11850          { ac_try='test -z "$ac_c_werror_flag"
11851                          || test ! -s conftest.err'
11852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853   (eval $ac_try) 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); }; } &&
11857          { ac_try='test -s conftest$ac_exeext'
11858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859   (eval $ac_try) 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); }; }; then
11863   ac_cv_search_roken_gethostbyaddr="none required"
11864 else
11865   echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11867
11868 fi
11869 rm -f conftest.err conftest.$ac_objext \
11870       conftest$ac_exeext conftest.$ac_ext
11871 if test "$ac_cv_search_roken_gethostbyaddr" = no; then
11872   for ac_lib in roken; do
11873     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11874     cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h.  */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h.  */
11880
11881 /* Override any gcc2 internal prototype to avoid an error.  */
11882 #ifdef __cplusplus
11883 extern "C"
11884 #endif
11885 /* We use char because int might match the return type of a gcc2
11886    builtin and then its argument prototype would still apply.  */
11887 char roken_gethostbyaddr ();
11888 int
11889 main ()
11890 {
11891 roken_gethostbyaddr ();
11892   ;
11893   return 0;
11894 }
11895 _ACEOF
11896 rm -f conftest.$ac_objext conftest$ac_exeext
11897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11898   (eval $ac_link) 2>conftest.er1
11899   ac_status=$?
11900   grep -v '^ *+' conftest.er1 >conftest.err
11901   rm -f conftest.er1
11902   cat conftest.err >&5
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); } &&
11905          { ac_try='test -z "$ac_c_werror_flag"
11906                          || test ! -s conftest.err'
11907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908   (eval $ac_try) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); }; } &&
11912          { ac_try='test -s conftest$ac_exeext'
11913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914   (eval $ac_try) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); }; }; then
11918   ac_cv_search_roken_gethostbyaddr="-l$ac_lib"
11919 break
11920 else
11921   echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11923
11924 fi
11925 rm -f conftest.err conftest.$ac_objext \
11926       conftest$ac_exeext conftest.$ac_ext
11927   done
11928 fi
11929 LIBS=$ac_func_search_save_LIBS
11930 fi
11931 echo "$as_me:$LINENO: result: $ac_cv_search_roken_gethostbyaddr" >&5
11932 echo "${ECHO_T}$ac_cv_search_roken_gethostbyaddr" >&6
11933 if test "$ac_cv_search_roken_gethostbyaddr" != no; then
11934   test "$ac_cv_search_roken_gethostbyaddr" = "none required" || LIBS="$ac_cv_search_roken_gethostbyaddr $LIBS"
11935
11936 fi
11937
11938
11939   #
11940   # k5crypto            MIT K5 v1.2.2-beta1
11941   #
11942   echo "$as_me:$LINENO: checking for library containing valid_enctype" >&5
11943 echo $ECHO_N "checking for library containing valid_enctype... $ECHO_C" >&6
11944 if test "${ac_cv_search_valid_enctype+set}" = set; then
11945   echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947   ac_func_search_save_LIBS=$LIBS
11948 ac_cv_search_valid_enctype=no
11949 cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h.  */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h.  */
11955
11956 /* Override any gcc2 internal prototype to avoid an error.  */
11957 #ifdef __cplusplus
11958 extern "C"
11959 #endif
11960 /* We use char because int might match the return type of a gcc2
11961    builtin and then its argument prototype would still apply.  */
11962 char valid_enctype ();
11963 int
11964 main ()
11965 {
11966 valid_enctype ();
11967   ;
11968   return 0;
11969 }
11970 _ACEOF
11971 rm -f conftest.$ac_objext conftest$ac_exeext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11973   (eval $ac_link) 2>conftest.er1
11974   ac_status=$?
11975   grep -v '^ *+' conftest.er1 >conftest.err
11976   rm -f conftest.er1
11977   cat conftest.err >&5
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); } &&
11980          { ac_try='test -z "$ac_c_werror_flag"
11981                          || test ! -s conftest.err'
11982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983   (eval $ac_try) 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; } &&
11987          { ac_try='test -s conftest$ac_exeext'
11988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989   (eval $ac_try) 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); }; }; then
11993   ac_cv_search_valid_enctype="none required"
11994 else
11995   echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998 fi
11999 rm -f conftest.err conftest.$ac_objext \
12000       conftest$ac_exeext conftest.$ac_ext
12001 if test "$ac_cv_search_valid_enctype" = no; then
12002   for ac_lib in k5crypto; do
12003     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12004     cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h.  */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h.  */
12010
12011 /* Override any gcc2 internal prototype to avoid an error.  */
12012 #ifdef __cplusplus
12013 extern "C"
12014 #endif
12015 /* We use char because int might match the return type of a gcc2
12016    builtin and then its argument prototype would still apply.  */
12017 char valid_enctype ();
12018 int
12019 main ()
12020 {
12021 valid_enctype ();
12022   ;
12023   return 0;
12024 }
12025 _ACEOF
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028   (eval $ac_link) 2>conftest.er1
12029   ac_status=$?
12030   grep -v '^ *+' conftest.er1 >conftest.err
12031   rm -f conftest.er1
12032   cat conftest.err >&5
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); } &&
12035          { ac_try='test -z "$ac_c_werror_flag"
12036                          || test ! -s conftest.err'
12037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038   (eval $ac_try) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; } &&
12042          { ac_try='test -s conftest$ac_exeext'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; }; then
12048   ac_cv_search_valid_enctype="-l$ac_lib"
12049 break
12050 else
12051   echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12053
12054 fi
12055 rm -f conftest.err conftest.$ac_objext \
12056       conftest$ac_exeext conftest.$ac_ext
12057   done
12058 fi
12059 LIBS=$ac_func_search_save_LIBS
12060 fi
12061 echo "$as_me:$LINENO: result: $ac_cv_search_valid_enctype" >&5
12062 echo "${ECHO_T}$ac_cv_search_valid_enctype" >&6
12063 if test "$ac_cv_search_valid_enctype" != no; then
12064   test "$ac_cv_search_valid_enctype" = "none required" || LIBS="$ac_cv_search_valid_enctype $LIBS"
12065
12066 fi
12067
12068
12069   #
12070   # gen                 ? ? ?                   Needed on Irix 5.3 with some
12071   #                     Irix 5.3                version of Kerberos.  I'm not
12072   #                                             sure which since Irix didn't
12073   #                                             get any testing this time
12074   #                                             around.  Original comment:
12075   #
12076   # This is necessary on Irix 5.3, in order to link against libkrb5 --
12077   # there, an_to_ln.o refers to things defined only in -lgen.
12078   #
12079   echo "$as_me:$LINENO: checking for library containing compile" >&5
12080 echo $ECHO_N "checking for library containing compile... $ECHO_C" >&6
12081 if test "${ac_cv_search_compile+set}" = set; then
12082   echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084   ac_func_search_save_LIBS=$LIBS
12085 ac_cv_search_compile=no
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092
12093 /* Override any gcc2 internal prototype to avoid an error.  */
12094 #ifdef __cplusplus
12095 extern "C"
12096 #endif
12097 /* We use char because int might match the return type of a gcc2
12098    builtin and then its argument prototype would still apply.  */
12099 char compile ();
12100 int
12101 main ()
12102 {
12103 compile ();
12104   ;
12105   return 0;
12106 }
12107 _ACEOF
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12110   (eval $ac_link) 2>conftest.er1
12111   ac_status=$?
12112   grep -v '^ *+' conftest.er1 >conftest.err
12113   rm -f conftest.er1
12114   cat conftest.err >&5
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); } &&
12117          { ac_try='test -z "$ac_c_werror_flag"
12118                          || test ! -s conftest.err'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; } &&
12124          { ac_try='test -s conftest$ac_exeext'
12125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126   (eval $ac_try) 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); }; }; then
12130   ac_cv_search_compile="none required"
12131 else
12132   echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12134
12135 fi
12136 rm -f conftest.err conftest.$ac_objext \
12137       conftest$ac_exeext conftest.$ac_ext
12138 if test "$ac_cv_search_compile" = no; then
12139   for ac_lib in gen; do
12140     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12141     cat >conftest.$ac_ext <<_ACEOF
12142 /* confdefs.h.  */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h.  */
12147
12148 /* Override any gcc2 internal prototype to avoid an error.  */
12149 #ifdef __cplusplus
12150 extern "C"
12151 #endif
12152 /* We use char because int might match the return type of a gcc2
12153    builtin and then its argument prototype would still apply.  */
12154 char compile ();
12155 int
12156 main ()
12157 {
12158 compile ();
12159   ;
12160   return 0;
12161 }
12162 _ACEOF
12163 rm -f conftest.$ac_objext conftest$ac_exeext
12164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12165   (eval $ac_link) 2>conftest.er1
12166   ac_status=$?
12167   grep -v '^ *+' conftest.er1 >conftest.err
12168   rm -f conftest.er1
12169   cat conftest.err >&5
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } &&
12172          { ac_try='test -z "$ac_c_werror_flag"
12173                          || test ! -s conftest.err'
12174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175   (eval $ac_try) 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); }; } &&
12179          { ac_try='test -s conftest$ac_exeext'
12180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181   (eval $ac_try) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); }; }; then
12185   ac_cv_search_compile="-l$ac_lib"
12186 break
12187 else
12188   echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12190
12191 fi
12192 rm -f conftest.err conftest.$ac_objext \
12193       conftest$ac_exeext conftest.$ac_ext
12194   done
12195 fi
12196 LIBS=$ac_func_search_save_LIBS
12197 fi
12198 echo "$as_me:$LINENO: result: $ac_cv_search_compile" >&5
12199 echo "${ECHO_T}$ac_cv_search_compile" >&6
12200 if test "$ac_cv_search_compile" != no; then
12201   test "$ac_cv_search_compile" = "none required" || LIBS="$ac_cv_search_compile $LIBS"
12202
12203 fi
12204
12205
12206   #
12207   # krb5                ? ? ?                   -lgen -l???
12208   #                     Irix 5.3
12209   #
12210   # krb5                MIT K5 v1.1.1
12211   #
12212   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err
12213   #                     Linux 2.2.17
12214   #
12215   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err -lresolv
12216   #
12217   # krb5                Heimdal K 0.3d          -lasn1 -lroken -ldes
12218   #
12219   echo "$as_me:$LINENO: checking for library containing krb5_free_context" >&5
12220 echo $ECHO_N "checking for library containing krb5_free_context... $ECHO_C" >&6
12221 if test "${ac_cv_search_krb5_free_context+set}" = set; then
12222   echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224   ac_func_search_save_LIBS=$LIBS
12225 ac_cv_search_krb5_free_context=no
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h.  */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h.  */
12232
12233 /* Override any gcc2 internal prototype to avoid an error.  */
12234 #ifdef __cplusplus
12235 extern "C"
12236 #endif
12237 /* We use char because int might match the return type of a gcc2
12238    builtin and then its argument prototype would still apply.  */
12239 char krb5_free_context ();
12240 int
12241 main ()
12242 {
12243 krb5_free_context ();
12244   ;
12245   return 0;
12246 }
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250   (eval $ac_link) 2>conftest.er1
12251   ac_status=$?
12252   grep -v '^ *+' conftest.er1 >conftest.err
12253   rm -f conftest.er1
12254   cat conftest.err >&5
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); } &&
12257          { ac_try='test -z "$ac_c_werror_flag"
12258                          || test ! -s conftest.err'
12259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260   (eval $ac_try) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; } &&
12264          { ac_try='test -s conftest$ac_exeext'
12265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266   (eval $ac_try) 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }; }; then
12270   ac_cv_search_krb5_free_context="none required"
12271 else
12272   echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 fi
12276 rm -f conftest.err conftest.$ac_objext \
12277       conftest$ac_exeext conftest.$ac_ext
12278 if test "$ac_cv_search_krb5_free_context" = no; then
12279   for ac_lib in krb5; do
12280     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12281     cat >conftest.$ac_ext <<_ACEOF
12282 /* confdefs.h.  */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h.  */
12287
12288 /* Override any gcc2 internal prototype to avoid an error.  */
12289 #ifdef __cplusplus
12290 extern "C"
12291 #endif
12292 /* We use char because int might match the return type of a gcc2
12293    builtin and then its argument prototype would still apply.  */
12294 char krb5_free_context ();
12295 int
12296 main ()
12297 {
12298 krb5_free_context ();
12299   ;
12300   return 0;
12301 }
12302 _ACEOF
12303 rm -f conftest.$ac_objext conftest$ac_exeext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305   (eval $ac_link) 2>conftest.er1
12306   ac_status=$?
12307   grep -v '^ *+' conftest.er1 >conftest.err
12308   rm -f conftest.er1
12309   cat conftest.err >&5
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); } &&
12312          { ac_try='test -z "$ac_c_werror_flag"
12313                          || test ! -s conftest.err'
12314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315   (eval $ac_try) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; } &&
12319          { ac_try='test -s conftest$ac_exeext'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; }; then
12325   ac_cv_search_krb5_free_context="-l$ac_lib"
12326 break
12327 else
12328   echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12330
12331 fi
12332 rm -f conftest.err conftest.$ac_objext \
12333       conftest$ac_exeext conftest.$ac_ext
12334   done
12335 fi
12336 LIBS=$ac_func_search_save_LIBS
12337 fi
12338 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_free_context" >&5
12339 echo "${ECHO_T}$ac_cv_search_krb5_free_context" >&6
12340 if test "$ac_cv_search_krb5_free_context" != no; then
12341   test "$ac_cv_search_krb5_free_context" = "none required" || LIBS="$ac_cv_search_krb5_free_context $LIBS"
12342
12343 fi
12344
12345
12346   #
12347   # gss                 This may be the only lib needed under HP-UX, so find it
12348   #                     first.
12349   #
12350   # gssapi_krb5         Only lib needed with MIT K5 v1.2.1, so find it first in
12351   #                     order to prefer MIT Kerberos.  If both MIT & Heimdal
12352   #                     Kerberos are installed and in the path, this will leave
12353   #                     some of the libraries above in LIBS unnecessarily, but
12354   #                     noone would ever do that, right?
12355   #
12356   # gss                 HP-UX                   ???
12357   #
12358   # gssapi_krb5         MIT K5 v1.2.2-beta1     -lkrb5
12359   #
12360   # gssapi              Heimdal K 0.3d          -lkrb5
12361   #
12362   echo "$as_me:$LINENO: checking for library containing gss_import_name" >&5
12363 echo $ECHO_N "checking for library containing gss_import_name... $ECHO_C" >&6
12364 if test "${ac_cv_search_gss_import_name+set}" = set; then
12365   echo $ECHO_N "(cached) $ECHO_C" >&6
12366 else
12367   ac_func_search_save_LIBS=$LIBS
12368 ac_cv_search_gss_import_name=no
12369 cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375
12376 /* Override any gcc2 internal prototype to avoid an error.  */
12377 #ifdef __cplusplus
12378 extern "C"
12379 #endif
12380 /* We use char because int might match the return type of a gcc2
12381    builtin and then its argument prototype would still apply.  */
12382 char gss_import_name ();
12383 int
12384 main ()
12385 {
12386 gss_import_name ();
12387   ;
12388   return 0;
12389 }
12390 _ACEOF
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12393   (eval $ac_link) 2>conftest.er1
12394   ac_status=$?
12395   grep -v '^ *+' conftest.er1 >conftest.err
12396   rm -f conftest.er1
12397   cat conftest.err >&5
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); } &&
12400          { ac_try='test -z "$ac_c_werror_flag"
12401                          || test ! -s conftest.err'
12402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403   (eval $ac_try) 2>&5
12404   ac_status=$?
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); }; } &&
12407          { ac_try='test -s conftest$ac_exeext'
12408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409   (eval $ac_try) 2>&5
12410   ac_status=$?
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); }; }; then
12413   ac_cv_search_gss_import_name="none required"
12414 else
12415   echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12417
12418 fi
12419 rm -f conftest.err conftest.$ac_objext \
12420       conftest$ac_exeext conftest.$ac_ext
12421 if test "$ac_cv_search_gss_import_name" = no; then
12422   for ac_lib in gss gssapi_krb5 gssapi; do
12423     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12424     cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430
12431 /* Override any gcc2 internal prototype to avoid an error.  */
12432 #ifdef __cplusplus
12433 extern "C"
12434 #endif
12435 /* We use char because int might match the return type of a gcc2
12436    builtin and then its argument prototype would still apply.  */
12437 char gss_import_name ();
12438 int
12439 main ()
12440 {
12441 gss_import_name ();
12442   ;
12443   return 0;
12444 }
12445 _ACEOF
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448   (eval $ac_link) 2>conftest.er1
12449   ac_status=$?
12450   grep -v '^ *+' conftest.er1 >conftest.err
12451   rm -f conftest.er1
12452   cat conftest.err >&5
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); } &&
12455          { ac_try='test -z "$ac_c_werror_flag"
12456                          || test ! -s conftest.err'
12457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458   (eval $ac_try) 2>&5
12459   ac_status=$?
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); }; } &&
12462          { ac_try='test -s conftest$ac_exeext'
12463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464   (eval $ac_try) 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); }; }; then
12468   ac_cv_search_gss_import_name="-l$ac_lib"
12469 break
12470 else
12471   echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12473
12474 fi
12475 rm -f conftest.err conftest.$ac_objext \
12476       conftest$ac_exeext conftest.$ac_ext
12477   done
12478 fi
12479 LIBS=$ac_func_search_save_LIBS
12480 fi
12481 echo "$as_me:$LINENO: result: $ac_cv_search_gss_import_name" >&5
12482 echo "${ECHO_T}$ac_cv_search_gss_import_name" >&6
12483 if test "$ac_cv_search_gss_import_name" != no; then
12484   test "$ac_cv_search_gss_import_name" = "none required" || LIBS="$ac_cv_search_gss_import_name $LIBS"
12485
12486 fi
12487
12488 fi
12489
12490
12491
12492
12493
12494
12495 # Let the confiscator request a specific editor
12496
12497 # Check whether --with-editor or --without-editor was given.
12498 if test "${with_editor+set}" = set; then
12499   withval="$with_editor"
12500
12501 else
12502   with_editor=yes
12503 fi;
12504
12505 # If --with-editor was supplied with an argument, let it override $EDITOR from
12506 # the user's environment.  We need to unset EDITOR here because AC_CHECK_PROGS
12507 # will let the value of EDITOR ride when it is set rather than searching.  We
12508 # ignore the --without-editor case since it will be caught below.
12509 if test -n "$EDITOR" && test yes != $with_editor; then
12510   $as_unset EDITOR || test "${EDITOR+set}" != set || { EDITOR=; export EDITOR; }
12511 fi
12512
12513 # Set the default when --with-editor wasn't supplied or when it was supplied
12514 # without an argument.
12515 if test yes = $with_editor; then
12516   with_editor="vim vi emacs nano pico edit"
12517 fi
12518
12519 if echo $with_editor |grep ^/ >/dev/null; then
12520   # If $with_editor is an absolute path, issue a warning if the executable
12521   # doesn't exist or isn't usable, but then trust the user and use it
12522   # regardless
12523   EDITOR=$with_editor
12524   echo "$as_me:$LINENO: checking for an editor" >&5
12525 echo $ECHO_N "checking for an editor... $ECHO_C" >&6
12526   echo "$as_me:$LINENO: result: $EDITOR" >&5
12527 echo "${ECHO_T}$EDITOR" >&6
12528   if ! test -f $with_editor \
12529       || ! test -x $with_editor; then
12530     # warn the user that they may encounter problems
12531     { echo "$as_me:$LINENO: WARNING: \`$with_editor' is not a path to an executable file" >&5
12532 echo "$as_me: WARNING: \`$with_editor' is not a path to an executable file" >&2;}
12533   fi
12534 elif test no != "${with_editor}"; then
12535   # Search for an editor
12536   for ac_prog in $with_editor
12537 do
12538   # Extract the first word of "$ac_prog", so it can be a program name with args.
12539 set dummy $ac_prog; ac_word=$2
12540 echo "$as_me:$LINENO: checking for $ac_word" >&5
12541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12542 if test "${ac_cv_prog_EDITOR+set}" = set; then
12543   echo $ECHO_N "(cached) $ECHO_C" >&6
12544 else
12545   if test -n "$EDITOR"; then
12546   ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
12547 else
12548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549 for as_dir in $PATH
12550 do
12551   IFS=$as_save_IFS
12552   test -z "$as_dir" && as_dir=.
12553   for ac_exec_ext in '' $ac_executable_extensions; do
12554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12555     ac_cv_prog_EDITOR="$ac_prog"
12556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12557     break 2
12558   fi
12559 done
12560 done
12561
12562 fi
12563 fi
12564 EDITOR=$ac_cv_prog_EDITOR
12565 if test -n "$EDITOR"; then
12566   echo "$as_me:$LINENO: result: $EDITOR" >&5
12567 echo "${ECHO_T}$EDITOR" >&6
12568 else
12569   echo "$as_me:$LINENO: result: no" >&5
12570 echo "${ECHO_T}no" >&6
12571 fi
12572
12573   test -n "$EDITOR" && break
12574 done
12575 test -n "$EDITOR" || EDITOR="no"
12576
12577     if test no = "${EDITOR}"; then
12578       { { echo "$as_me:$LINENO: error:
12579     Failed to find a text file editor.  CVS cannot be compiled
12580     without a default log message editor.  Searched for
12581     \`$with_editor'.  Try \`configure --with-editor'." >&5
12582 echo "$as_me: error:
12583     Failed to find a text file editor.  CVS cannot be compiled
12584     without a default log message editor.  Searched for
12585     \`$with_editor'.  Try \`configure --with-editor'." >&2;}
12586    { (exit 1); exit 1; }; }
12587     fi
12588 else
12589   { { echo "$as_me:$LINENO: error:
12590     CVS cannot be compiled without a default log message editor.
12591     Try \`configure --with-editor'." >&5
12592 echo "$as_me: error:
12593     CVS cannot be compiled without a default log message editor.
12594     Try \`configure --with-editor'." >&2;}
12595    { (exit 1); exit 1; }; }
12596 fi
12597
12598
12599 cat >>confdefs.h <<_ACEOF
12600 #define EDITOR_DFLT "$EDITOR"
12601 _ACEOF
12602
12603
12604
12605
12606 # What remote shell transport should our client cvs default to using?
12607
12608 # Check whether --with-rsh or --without-rsh was given.
12609 if test "${with_rsh+set}" = set; then
12610   withval="$with_rsh"
12611
12612 else
12613           with_rsh="remsh rsh ssh"
12614 fi;
12615
12616 if test no = "$with_rsh"; then
12617   { echo "$as_me:$LINENO: WARNING: Failed to find usable remote shell. Using 'rsh'." >&5
12618 echo "$as_me: WARNING: Failed to find usable remote shell. Using 'rsh'." >&2;}
12619   with_rsh=rsh
12620 elif test yes = "$with_rsh"; then
12621   # Make --with-rsh mean the same thing as --with-rsh=rsh
12622   with_rsh=rsh
12623 fi
12624
12625 if echo $with_rsh |grep ^/ >/dev/null; then
12626   # If $with_rsh is an absolute path, issue a warning if the executable
12627   # doesn't exist or isn't usable, but then trust the user and use it
12628   # regardless
12629   with_default_rsh=$with_rsh
12630   echo "$as_me:$LINENO: checking for a remote shell" >&5
12631 echo $ECHO_N "checking for a remote shell... $ECHO_C" >&6
12632   if ! test -f $with_rsh \
12633       || ! test -x $with_rsh; then
12634     # warn the user that they may encounter problems
12635     { echo "$as_me:$LINENO: WARNING: $with_rsh is not a path to an executable file" >&5
12636 echo "$as_me: WARNING: $with_rsh is not a path to an executable file" >&2;}
12637   fi
12638 else
12639   # Search for a remote shell
12640   for ac_prog in $with_rsh
12641 do
12642   # Extract the first word of "$ac_prog", so it can be a program name with args.
12643 set dummy $ac_prog; ac_word=$2
12644 echo "$as_me:$LINENO: checking for $ac_word" >&5
12645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12646 if test "${ac_cv_prog_with_default_rsh+set}" = set; then
12647   echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649   if test -n "$with_default_rsh"; then
12650   ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test.
12651 else
12652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653 for as_dir in $PATH
12654 do
12655   IFS=$as_save_IFS
12656   test -z "$as_dir" && as_dir=.
12657   for ac_exec_ext in '' $ac_executable_extensions; do
12658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12659     ac_cv_prog_with_default_rsh="$ac_prog"
12660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12661     break 2
12662   fi
12663 done
12664 done
12665
12666 fi
12667 fi
12668 with_default_rsh=$ac_cv_prog_with_default_rsh
12669 if test -n "$with_default_rsh"; then
12670   echo "$as_me:$LINENO: result: $with_default_rsh" >&5
12671 echo "${ECHO_T}$with_default_rsh" >&6
12672 else
12673   echo "$as_me:$LINENO: result: no" >&5
12674 echo "${ECHO_T}no" >&6
12675 fi
12676
12677   test -n "$with_default_rsh" && break
12678 done
12679 test -n "$with_default_rsh" || with_default_rsh=""rsh""
12680
12681 fi
12682
12683
12684 cat >>confdefs.h <<_ACEOF
12685 #define RSH_DFLT "$with_default_rsh"
12686 _ACEOF
12687
12688
12689
12690
12691 # Check whether --with-tmpdir or --without-tmpdir was given.
12692 if test "${with_tmpdir+set}" = set; then
12693   withval="$with_tmpdir"
12694
12695 fi;
12696
12697 echo "$as_me:$LINENO: checking for temporary directory" >&5
12698 echo $ECHO_N "checking for temporary directory... $ECHO_C" >&6
12699 if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
12700   for with_tmpdir in /tmp /var/tmp no; do
12701     if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
12702         && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
12703       break
12704     fi
12705   done
12706   if test no = "$with_tmpdir"; then
12707     { echo "$as_me:$LINENO: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&5
12708 echo "$as_me: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&2;}
12709     with_tmpdir=/tmp
12710   fi
12711   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
12712 echo "${ECHO_T}$with_tmpdir" >&6
12713 elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
12714   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
12715 echo "${ECHO_T}$with_tmpdir" >&6
12716   { { echo "$as_me:$LINENO: error: --with-tmpdir requires an absolute path." >&5
12717 echo "$as_me: error: --with-tmpdir requires an absolute path." >&2;}
12718    { (exit 1); exit 1; }; }
12719 elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
12720         || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
12721   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
12722 echo "${ECHO_T}$with_tmpdir" >&6
12723   { echo "$as_me:$LINENO: WARNING: User supplied temporary directory ('$with_tmpdir') does not
12724      exist or lacks sufficient permissions for read/write." >&5
12725 echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not
12726      exist or lacks sufficient permissions for read/write." >&2;}
12727 fi
12728
12729
12730 cat >>confdefs.h <<_ACEOF
12731 #define TMPDIR_DFLT "$with_tmpdir"
12732 _ACEOF
12733
12734
12735
12736
12737
12738
12739 # Check whether --with-umask or --without-umask was given.
12740 if test "${with_umask+set}" = set; then
12741   withval="$with_umask"
12742
12743 fi;
12744
12745 if test -z "$with_umask" || test yes = "$with_umask"; then
12746   with_umask=002
12747 elif test no = "$with_umask"; then
12748   with_umask=000
12749 fi
12750
12751
12752 cat >>confdefs.h <<_ACEOF
12753 #define UMASK_DFLT $with_umask
12754 _ACEOF
12755
12756
12757
12758
12759 # Check whether --with-cvs-admin-group or --without-cvs-admin-group was given.
12760 if test "${with_cvs_admin_group+set}" = set; then
12761   withval="$with_cvs_admin_group"
12762
12763 else
12764   with_cvs_admin_group=cvsadmin
12765 fi;
12766
12767 if test yes = "$with_cvs_admin_group"; then
12768   with_cvs_admin_group=cvsadmin
12769 fi
12770 if test no != "$with_cvs_admin_group"; then
12771
12772 cat >>confdefs.h <<_ACEOF
12773 #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
12774 _ACEOF
12775
12776 fi
12777
12778
12779 # Check whether --enable-cvs-ndbm or --disable-cvs-ndbm was given.
12780 if test "${enable_cvs_ndbm+set}" = set; then
12781   enableval="$enable_cvs_ndbm"
12782
12783 else
12784   enable_cvs_ndbm=yes
12785 fi;
12786 if test no != "$enable_cvs_ndbm"; then
12787
12788 cat >>confdefs.h <<\_ACEOF
12789 #define MY_NDBM 1
12790 _ACEOF
12791
12792 fi
12793
12794
12795
12796
12797
12798
12799
12800
12801 # Check for options requesting client and server feature. If none are
12802 # given and we have connect(), we want the full client & server arrangement.
12803 # Check whether --enable-client or --disable-client was given.
12804 if test "${enable_client+set}" = set; then
12805   enableval="$enable_client"
12806
12807 else
12808   if test "$ac_cv_search_connect" != no; then
12809     enable_client=yes
12810   fi
12811 fi;
12812 if test no != "$enable_client"; then
12813
12814 cat >>confdefs.h <<\_ACEOF
12815 #define CLIENT_SUPPORT 1
12816 _ACEOF
12817
12818 fi
12819
12820 # Check whether --enable-password-authenticated-client or --disable-password-authenticated-client was given.
12821 if test "${enable_password_authenticated_client+set}" = set; then
12822   enableval="$enable_password_authenticated_client"
12823
12824 fi;
12825
12826 if test no != "$enable_password_authenticated_client"; then
12827   if test no != "$enable_client"; then
12828
12829 cat >>confdefs.h <<\_ACEOF
12830 #define AUTH_CLIENT_SUPPORT 1
12831 _ACEOF
12832
12833   else
12834     { echo "$as_me:$LINENO: WARNING: --enable-password-authenticated-client is meaningless with
12835        the CVS client disabled (--disable-client)" >&5
12836 echo "$as_me: WARNING: --enable-password-authenticated-client is meaningless with
12837        the CVS client disabled (--disable-client)" >&2;}
12838   fi
12839 fi
12840
12841
12842 # Check whether --enable-server or --disable-server was given.
12843 if test "${enable_server+set}" = set; then
12844   enableval="$enable_server"
12845
12846 else
12847   if test "$ac_cv_search_connect" != no; then
12848      enable_server=yes
12849    fi
12850 fi;
12851
12852 if test no != "$enable_server"; then
12853
12854 cat >>confdefs.h <<\_ACEOF
12855 #define SERVER_SUPPORT 1
12856 _ACEOF
12857
12858
12859             echo "$as_me:$LINENO: checking for library containing crypt" >&5
12860 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
12861 if test "${ac_cv_search_crypt+set}" = set; then
12862   echo $ECHO_N "(cached) $ECHO_C" >&6
12863 else
12864   ac_func_search_save_LIBS=$LIBS
12865 ac_cv_search_crypt=no
12866 cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12872
12873 /* Override any gcc2 internal prototype to avoid an error.  */
12874 #ifdef __cplusplus
12875 extern "C"
12876 #endif
12877 /* We use char because int might match the return type of a gcc2
12878    builtin and then its argument prototype would still apply.  */
12879 char crypt ();
12880 int
12881 main ()
12882 {
12883 crypt ();
12884   ;
12885   return 0;
12886 }
12887 _ACEOF
12888 rm -f conftest.$ac_objext conftest$ac_exeext
12889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12890   (eval $ac_link) 2>conftest.er1
12891   ac_status=$?
12892   grep -v '^ *+' conftest.er1 >conftest.err
12893   rm -f conftest.er1
12894   cat conftest.err >&5
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); } &&
12897          { ac_try='test -z "$ac_c_werror_flag"
12898                          || test ! -s conftest.err'
12899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900   (eval $ac_try) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; } &&
12904          { ac_try='test -s conftest$ac_exeext'
12905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906   (eval $ac_try) 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; }; then
12910   ac_cv_search_crypt="none required"
12911 else
12912   echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915 fi
12916 rm -f conftest.err conftest.$ac_objext \
12917       conftest$ac_exeext conftest.$ac_ext
12918 if test "$ac_cv_search_crypt" = no; then
12919   for ac_lib in crypt; do
12920     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12921     cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h.  */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h.  */
12927
12928 /* Override any gcc2 internal prototype to avoid an error.  */
12929 #ifdef __cplusplus
12930 extern "C"
12931 #endif
12932 /* We use char because int might match the return type of a gcc2
12933    builtin and then its argument prototype would still apply.  */
12934 char crypt ();
12935 int
12936 main ()
12937 {
12938 crypt ();
12939   ;
12940   return 0;
12941 }
12942 _ACEOF
12943 rm -f conftest.$ac_objext conftest$ac_exeext
12944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12945   (eval $ac_link) 2>conftest.er1
12946   ac_status=$?
12947   grep -v '^ *+' conftest.er1 >conftest.err
12948   rm -f conftest.er1
12949   cat conftest.err >&5
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); } &&
12952          { ac_try='test -z "$ac_c_werror_flag"
12953                          || test ! -s conftest.err'
12954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955   (eval $ac_try) 2>&5
12956   ac_status=$?
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); }; } &&
12959          { ac_try='test -s conftest$ac_exeext'
12960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961   (eval $ac_try) 2>&5
12962   ac_status=$?
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); }; }; then
12965   ac_cv_search_crypt="-l$ac_lib"
12966 break
12967 else
12968   echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12970
12971 fi
12972 rm -f conftest.err conftest.$ac_objext \
12973       conftest$ac_exeext conftest.$ac_ext
12974   done
12975 fi
12976 LIBS=$ac_func_search_save_LIBS
12977 fi
12978 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
12979 echo "${ECHO_T}$ac_cv_search_crypt" >&6
12980 if test "$ac_cv_search_crypt" != no; then
12981   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
12982
12983 cat >>confdefs.h <<\_ACEOF
12984 #define HAVE_CRYPT 1
12985 _ACEOF
12986
12987
12988 cat >>confdefs.h <<\_ACEOF
12989 #define AUTH_SERVER_SUPPORT 1
12990 _ACEOF
12991
12992 fi
12993
12994           # Check whether --enable-server-flow-control or --disable-server-flow-control was given.
12995 if test "${enable_server_flow_control+set}" = set; then
12996   enableval="$enable_server_flow_control"
12997   if test yes = $enable_server_flow_control; then
12998        enable_server_flow_control=1M,2M
12999      fi
13000 else
13001   enable_server_flow_control=1M,2M
13002 fi;
13003   if test no != $enable_server_flow_control; then
13004     ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
13005     ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
13006     ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
13007     ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
13008     test "" != "$ccvs_lwm" || ccvs_lwm_E="?"
13009     case $ccvs_lwm_E in
13010         G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
13011         M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
13012         k) ccvs_lwm="$ccvs_lwm * 1024";;
13013         b | '') ;;
13014         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
13015                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
13016 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
13017                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
13018    { (exit 1); exit 1; }; }
13019       esac
13020     ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
13021     ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
13022     test "" != "$ccvs_hwm" || ccvs_hwm_E="?"
13023     case $ccvs_hwm_E in
13024         G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
13025         M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
13026         k) ccvs_hwm="$ccvs_hwm * 1024";;
13027         b | '') ccvs_hwm="$ccvs_hwm";;
13028         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
13029                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
13030 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
13031                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
13032    { (exit 1); exit 1; }; }
13033       esac
13034
13035
13036 cat >>confdefs.h <<\_ACEOF
13037 #define SERVER_FLOWCONTROL 1
13038 _ACEOF
13039
13040
13041 cat >>confdefs.h <<_ACEOF
13042 #define SERVER_LO_WATER ($ccvs_lwm)
13043 _ACEOF
13044
13045
13046 cat >>confdefs.h <<_ACEOF
13047 #define SERVER_HI_WATER ($ccvs_hwm)
13048 _ACEOF
13049
13050   fi # enable_server_flow_control
13051 fi # enable_server
13052
13053
13054
13055 # Check whether --enable-case-sensitivity or --disable-case-sensitivity was given.
13056 if test "${enable_case_sensitivity+set}" = set; then
13057   enableval="$enable_case_sensitivity"
13058   case "$enable_case_sensitivity" in
13059        yes | no | auto) ;;
13060        *)
13061           { { echo "$as_me:$LINENO: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." >&5
13062 echo "$as_me: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." >&2;}
13063    { (exit 1); exit 1; }; }
13064           ;;
13065      esac
13066 else
13067   enable_case_sensitivity=auto
13068 fi;
13069
13070 acx_forced=' (forced)'
13071 echo "$as_me:$LINENO: checking for a case sensitive file system" >&5
13072 echo $ECHO_N "checking for a case sensitive file system... $ECHO_C" >&6
13073 if test $enable_case_sensitivity = auto; then
13074         if test "${acx_cv_case_sensitive+set}" = set; then
13075   echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077    rm -f ac_TEST_filenames_CASE_sensitive
13078     echo foo >ac_test_filenames_case_sensitive
13079     if test -f ac_TEST_filenames_CASE_sensitive; then
13080       acx_cv_case_sensitive=no
13081     else
13082       acx_cv_case_sensitive=yes
13083     fi
13084     rm ac_test_filenames_case_sensitive
13085
13086 fi
13087
13088   enable_case_sensitivity=$acx_cv_case_sensitive
13089   acx_forced=
13090 fi
13091 echo "$as_me:$LINENO: result: $enable_case_sensitivity$acx_forced" >&5
13092 echo "${ECHO_T}$enable_case_sensitivity$acx_forced" >&6
13093 if test $enable_case_sensitivity = no; then
13094
13095 cat >>confdefs.h <<\_ACEOF
13096 #define FILENAMES_CASE_INSENSITIVE 1
13097 _ACEOF
13098
13099       case $LIBOBJS in
13100     "fncase.$ac_objext"   | \
13101   *" fncase.$ac_objext"   | \
13102     "fncase.$ac_objext "* | \
13103   *" fncase.$ac_objext "* ) ;;
13104   *) LIBOBJS="$LIBOBJS fncase.$ac_objext" ;;
13105 esac
13106
13107 fi
13108
13109
13110
13111
13112 # Check whether --enable-encryption or --disable-encryption was given.
13113 if test "${enable_encryption+set}" = set; then
13114   enableval="$enable_encryption"
13115
13116 else
13117   enable_encryption=no
13118 fi;
13119 if test "$enable_encryption" = yes; then
13120   if test no != "$with_client" || test no != "$with_server"; then
13121
13122 cat >>confdefs.h <<\_ACEOF
13123 #define ENCRYPTION 1
13124 _ACEOF
13125
13126   else
13127     { echo "$as_me:$LINENO: WARNING: --enable-encryption is meaningless when neither the CVS client
13128        nor the CVS server is enabled (--disable-client and --disable-server)." >&5
13129 echo "$as_me: WARNING: --enable-encryption is meaningless when neither the CVS client
13130        nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
13131   fi
13132 fi
13133
13134
13135
13136
13137 # Check whether --enable-force-editor or --disable-force-editor was given.
13138 if test "${enable_force_editor+set}" = set; then
13139   enableval="$enable_force_editor"
13140
13141 else
13142   enable_force_editor=no
13143 fi;
13144
13145 if test yes = "$enable_force_editor"; then
13146
13147 cat >>confdefs.h <<\_ACEOF
13148 #define FORCE_USE_EDITOR 1
13149 _ACEOF
13150
13151 fi
13152
13153
13154
13155
13156 # Check whether --enable-rootcommit or --disable-rootcommit was given.
13157 if test "${enable_rootcommit+set}" = set; then
13158   enableval="$enable_rootcommit"
13159
13160 else
13161   enable_rootcommit=no
13162 fi;
13163 if test "$enable_rootcommit" = no; then
13164
13165 cat >>confdefs.h <<\_ACEOF
13166 #define CVS_BADROOT 1
13167 _ACEOF
13168
13169 fi
13170
13171
13172
13173
13174
13175
13176
13177
13178 echo "$as_me:$LINENO: checking for cygwin32" >&5
13179 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6
13180 if test "${ccvs_cv_sys_cygwin32+set}" = set; then
13181   echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183   cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h.  */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h.  */
13189
13190 int
13191 main ()
13192 {
13193 return __CYGWIN32__;
13194   ;
13195   return 0;
13196 }
13197 _ACEOF
13198 rm -f conftest.$ac_objext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200   (eval $ac_compile) 2>conftest.er1
13201   ac_status=$?
13202   grep -v '^ *+' conftest.er1 >conftest.err
13203   rm -f conftest.er1
13204   cat conftest.err >&5
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); } &&
13207          { ac_try='test -z "$ac_c_werror_flag"
13208                          || test ! -s conftest.err'
13209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210   (eval $ac_try) 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); }; } &&
13214          { ac_try='test -s conftest.$ac_objext'
13215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216   (eval $ac_try) 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; }; then
13220   ccvs_cv_sys_cygwin32=yes
13221 else
13222   echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 ccvs_cv_sys_cygwin32=no
13226 fi
13227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13228 fi
13229 echo "$as_me:$LINENO: result: $ccvs_cv_sys_cygwin32" >&5
13230 echo "${ECHO_T}$ccvs_cv_sys_cygwin32" >&6
13231 if test $ccvs_cv_sys_cygwin32 = yes; then
13232   LIBS="$LIBS -ladvapi32"
13233
13234
13235 cat >>confdefs.h <<\_ACEOF
13236 #define UTIME_EXPECTS_WRITABLE 1
13237 _ACEOF
13238
13239
13240
13241 cat >>confdefs.h <<\_ACEOF
13242 #define USE_SETMODE_STDOUT 1
13243 _ACEOF
13244
13245
13246 cat >>confdefs.h <<\_ACEOF
13247 #define HAVE_SETMODE 1
13248 _ACEOF
13249
13250 fi
13251
13252           ac_config_files="$ac_config_files contrib/check_cvs"
13253
13254           ac_config_files="$ac_config_files contrib/clmerge"
13255
13256           ac_config_files="$ac_config_files contrib/cln_hist"
13257
13258           ac_config_files="$ac_config_files contrib/commit_prep"
13259
13260           ac_config_files="$ac_config_files contrib/cvs_acls"
13261
13262           ac_config_files="$ac_config_files contrib/log"
13263
13264           ac_config_files="$ac_config_files contrib/log_accum"
13265
13266           ac_config_files="$ac_config_files contrib/mfpipe"
13267
13268           ac_config_files="$ac_config_files contrib/pvcs2rcs"
13269
13270           ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh"
13271
13272           ac_config_files="$ac_config_files contrib/rcslock"
13273
13274           ac_config_files="$ac_config_files contrib/sccs2rcs"
13275
13276           ac_config_files="$ac_config_files doc/mkman:doc/mkman.pl"
13277
13278           ac_config_files="$ac_config_files src/cvsbug"
13279
13280           ac_config_files="$ac_config_files windows-NT/fix-msvc-mak:windows-NT/fix-msvc-mak-head.pl:windows-NT/fix-msvc-mak.pl"
13281
13282
13283                                                                                                                                                       ac_config_files="$ac_config_files Makefile contrib/Makefile cvs.spec diff/Makefile doc/Makefile emx/Makefile lib/Makefile man/Makefile os2/Makefile src/Makefile tools/Makefile vms/Makefile windows-NT/Makefile windows-NT/SCC/Makefile zlib/Makefile"
13284
13285
13286 cat >confcache <<\_ACEOF
13287 # This file is a shell script that caches the results of configure
13288 # tests run on this system so they can be shared between configure
13289 # scripts and configure runs, see configure's option --config-cache.
13290 # It is not useful on other systems.  If it contains results you don't
13291 # want to keep, you may remove or edit it.
13292 #
13293 # config.status only pays attention to the cache file if you give it
13294 # the --recheck option to rerun configure.
13295 #
13296 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13298 # following values.
13299
13300 _ACEOF
13301
13302 # The following way of writing the cache mishandles newlines in values,
13303 # but we know of no workaround that is simple, portable, and efficient.
13304 # So, don't put newlines in cache variables' values.
13305 # Ultrix sh set writes to stderr and can't be redirected directly,
13306 # and sets the high bit in the cache file unless we assign to the vars.
13307 {
13308   (set) 2>&1 |
13309     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13310     *ac_space=\ *)
13311       # `set' does not quote correctly, so add quotes (double-quote
13312       # substitution turns \\\\ into \\, and sed turns \\ into \).
13313       sed -n \
13314         "s/'/'\\\\''/g;
13315           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13316       ;;
13317     *)
13318       # `set' quotes correctly as required by POSIX, so do not add quotes.
13319       sed -n \
13320         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13321       ;;
13322     esac;
13323 } |
13324   sed '
13325      t clear
13326      : clear
13327      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13328      t end
13329      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13330      : end' >>confcache
13331 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13332   if test -w $cache_file; then
13333     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13334     cat confcache >$cache_file
13335   else
13336     echo "not updating unwritable cache $cache_file"
13337   fi
13338 fi
13339 rm -f confcache
13340
13341 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13342 # Let make expand exec_prefix.
13343 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13344
13345 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13346 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13347 # trailing colons and then remove the whole line if VPATH becomes empty
13348 # (actually we leave an empty line to preserve line numbers).
13349 if test "x$srcdir" = x.; then
13350   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13351 s/:*\$(srcdir):*/:/;
13352 s/:*\${srcdir}:*/:/;
13353 s/:*@srcdir@:*/:/;
13354 s/^\([^=]*=[     ]*\):*/\1/;
13355 s/:*$//;
13356 s/^[^=]*=[       ]*$//;
13357 }'
13358 fi
13359
13360 DEFS=-DHAVE_CONFIG_H
13361
13362 ac_libobjs=
13363 ac_ltlibobjs=
13364 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13365   # 1. Remove the extension, and $U if already installed.
13366   ac_i=`echo "$ac_i" |
13367          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13368   # 2. Add them.
13369   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13370   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13371 done
13372 LIBOBJS=$ac_libobjs
13373
13374 LTLIBOBJS=$ac_ltlibobjs
13375
13376
13377 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13378   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13379 Usually this means the macro was only invoked conditionally." >&5
13380 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13381 Usually this means the macro was only invoked conditionally." >&2;}
13382    { (exit 1); exit 1; }; }
13383 fi
13384 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13385   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13386 Usually this means the macro was only invoked conditionally." >&5
13387 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13388 Usually this means the macro was only invoked conditionally." >&2;}
13389    { (exit 1); exit 1; }; }
13390 fi
13391 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13392   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13393 Usually this means the macro was only invoked conditionally." >&5
13394 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13395 Usually this means the macro was only invoked conditionally." >&2;}
13396    { (exit 1); exit 1; }; }
13397 fi
13398 if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
13399   { { echo "$as_me:$LINENO: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
13400 Usually this means the macro was only invoked conditionally." >&5
13401 echo "$as_me: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
13402 Usually this means the macro was only invoked conditionally." >&2;}
13403    { (exit 1); exit 1; }; }
13404 fi
13405
13406 : ${CONFIG_STATUS=./config.status}
13407 ac_clean_files_save=$ac_clean_files
13408 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13409 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13410 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13411 cat >$CONFIG_STATUS <<_ACEOF
13412 #! $SHELL
13413 # Generated by $as_me.
13414 # Run this file to recreate the current configuration.
13415 # Compiler output produced by configure, useful for debugging
13416 # configure, is in config.log if it exists.
13417
13418 debug=false
13419 ac_cs_recheck=false
13420 ac_cs_silent=false
13421 SHELL=\${CONFIG_SHELL-$SHELL}
13422 _ACEOF
13423
13424 cat >>$CONFIG_STATUS <<\_ACEOF
13425 ## --------------------- ##
13426 ## M4sh Initialization.  ##
13427 ## --------------------- ##
13428
13429 # Be Bourne compatible
13430 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13431   emulate sh
13432   NULLCMD=:
13433   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13434   # is contrary to our usage.  Disable this feature.
13435   alias -g '${1+"$@"}'='"$@"'
13436 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13437   set -o posix
13438 fi
13439 DUALCASE=1; export DUALCASE # for MKS sh
13440
13441 # Support unset when possible.
13442 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13443   as_unset=unset
13444 else
13445   as_unset=false
13446 fi
13447
13448
13449 # Work around bugs in pre-3.0 UWIN ksh.
13450 $as_unset ENV MAIL MAILPATH
13451 PS1='$ '
13452 PS2='> '
13453 PS4='+ '
13454
13455 # NLS nuisances.
13456 for as_var in \
13457   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13458   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13459   LC_TELEPHONE LC_TIME
13460 do
13461   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13462     eval $as_var=C; export $as_var
13463   else
13464     $as_unset $as_var
13465   fi
13466 done
13467
13468 # Required to use basename.
13469 if expr a : '\(a\)' >/dev/null 2>&1; then
13470   as_expr=expr
13471 else
13472   as_expr=false
13473 fi
13474
13475 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13476   as_basename=basename
13477 else
13478   as_basename=false
13479 fi
13480
13481
13482 # Name of the executable.
13483 as_me=`$as_basename "$0" ||
13484 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13485          X"$0" : 'X\(//\)$' \| \
13486          X"$0" : 'X\(/\)$' \| \
13487          .     : '\(.\)' 2>/dev/null ||
13488 echo X/"$0" |
13489     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13490           /^X\/\(\/\/\)$/{ s//\1/; q; }
13491           /^X\/\(\/\).*/{ s//\1/; q; }
13492           s/.*/./; q'`
13493
13494
13495 # PATH needs CR, and LINENO needs CR and PATH.
13496 # Avoid depending upon Character Ranges.
13497 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13498 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13499 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13500 as_cr_digits='0123456789'
13501 as_cr_alnum=$as_cr_Letters$as_cr_digits
13502
13503 # The user is always right.
13504 if test "${PATH_SEPARATOR+set}" != set; then
13505   echo "#! /bin/sh" >conf$$.sh
13506   echo  "exit 0"   >>conf$$.sh
13507   chmod +x conf$$.sh
13508   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13509     PATH_SEPARATOR=';'
13510   else
13511     PATH_SEPARATOR=:
13512   fi
13513   rm -f conf$$.sh
13514 fi
13515
13516
13517   as_lineno_1=$LINENO
13518   as_lineno_2=$LINENO
13519   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13520   test "x$as_lineno_1" != "x$as_lineno_2" &&
13521   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13522   # Find who we are.  Look in the path if we contain no path at all
13523   # relative or not.
13524   case $0 in
13525     *[\\/]* ) as_myself=$0 ;;
13526     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527 for as_dir in $PATH
13528 do
13529   IFS=$as_save_IFS
13530   test -z "$as_dir" && as_dir=.
13531   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13532 done
13533
13534        ;;
13535   esac
13536   # We did not find ourselves, most probably we were run as `sh COMMAND'
13537   # in which case we are not to be found in the path.
13538   if test "x$as_myself" = x; then
13539     as_myself=$0
13540   fi
13541   if test ! -f "$as_myself"; then
13542     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13543 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13544    { (exit 1); exit 1; }; }
13545   fi
13546   case $CONFIG_SHELL in
13547   '')
13548     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13550 do
13551   IFS=$as_save_IFS
13552   test -z "$as_dir" && as_dir=.
13553   for as_base in sh bash ksh sh5; do
13554          case $as_dir in
13555          /*)
13556            if ("$as_dir/$as_base" -c '
13557   as_lineno_1=$LINENO
13558   as_lineno_2=$LINENO
13559   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13560   test "x$as_lineno_1" != "x$as_lineno_2" &&
13561   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13562              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13563              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13564              CONFIG_SHELL=$as_dir/$as_base
13565              export CONFIG_SHELL
13566              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13567            fi;;
13568          esac
13569        done
13570 done
13571 ;;
13572   esac
13573
13574   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13575   # uniformly replaced by the line number.  The first 'sed' inserts a
13576   # line-number line before each line; the second 'sed' does the real
13577   # work.  The second script uses 'N' to pair each line-number line
13578   # with the numbered line, and appends trailing '-' during
13579   # substitution so that $LINENO is not a special case at line end.
13580   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13581   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13582   sed '=' <$as_myself |
13583     sed '
13584       N
13585       s,$,-,
13586       : loop
13587       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13588       t loop
13589       s,-$,,
13590       s,^['$as_cr_digits']*\n,,
13591     ' >$as_me.lineno &&
13592   chmod +x $as_me.lineno ||
13593     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13594 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13595    { (exit 1); exit 1; }; }
13596
13597   # Don't try to exec as it changes $[0], causing all sort of problems
13598   # (the dirname of $[0] is not the place where we might find the
13599   # original and so on.  Autoconf is especially sensible to this).
13600   . ./$as_me.lineno
13601   # Exit status is that of the last command.
13602   exit
13603 }
13604
13605
13606 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13607   *c*,-n*) ECHO_N= ECHO_C='
13608 ' ECHO_T='      ' ;;
13609   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13610   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13611 esac
13612
13613 if expr a : '\(a\)' >/dev/null 2>&1; then
13614   as_expr=expr
13615 else
13616   as_expr=false
13617 fi
13618
13619 rm -f conf$$ conf$$.exe conf$$.file
13620 echo >conf$$.file
13621 if ln -s conf$$.file conf$$ 2>/dev/null; then
13622   # We could just check for DJGPP; but this test a) works b) is more generic
13623   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13624   if test -f conf$$.exe; then
13625     # Don't use ln at all; we don't have any links
13626     as_ln_s='cp -p'
13627   else
13628     as_ln_s='ln -s'
13629   fi
13630 elif ln conf$$.file conf$$ 2>/dev/null; then
13631   as_ln_s=ln
13632 else
13633   as_ln_s='cp -p'
13634 fi
13635 rm -f conf$$ conf$$.exe conf$$.file
13636
13637 if mkdir -p . 2>/dev/null; then
13638   as_mkdir_p=:
13639 else
13640   test -d ./-p && rmdir ./-p
13641   as_mkdir_p=false
13642 fi
13643
13644 as_executable_p="test -f"
13645
13646 # Sed expression to map a string onto a valid CPP name.
13647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13648
13649 # Sed expression to map a string onto a valid variable name.
13650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13651
13652
13653 # IFS
13654 # We need space, tab and new line, in precisely that order.
13655 as_nl='
13656 '
13657 IFS="   $as_nl"
13658
13659 # CDPATH.
13660 $as_unset CDPATH
13661
13662 exec 6>&1
13663
13664 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13665 # report actual input values of CONFIG_FILES etc. instead of their
13666 # values after options handling.  Logging --version etc. is OK.
13667 exec 5>>config.log
13668 {
13669   echo
13670   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13671 ## Running $as_me. ##
13672 _ASBOX
13673 } >&5
13674 cat >&5 <<_CSEOF
13675
13676 This file was extended by Concurrent Versions System (CVS) $as_me 1.11.22, which was
13677 generated by GNU Autoconf 2.59.  Invocation command line was
13678
13679   CONFIG_FILES    = $CONFIG_FILES
13680   CONFIG_HEADERS  = $CONFIG_HEADERS
13681   CONFIG_LINKS    = $CONFIG_LINKS
13682   CONFIG_COMMANDS = $CONFIG_COMMANDS
13683   $ $0 $@
13684
13685 _CSEOF
13686 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13687 echo >&5
13688 _ACEOF
13689
13690 # Files that config.status was made for.
13691 if test -n "$ac_config_files"; then
13692   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13693 fi
13694
13695 if test -n "$ac_config_headers"; then
13696   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13697 fi
13698
13699 if test -n "$ac_config_links"; then
13700   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13701 fi
13702
13703 if test -n "$ac_config_commands"; then
13704   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13705 fi
13706
13707 cat >>$CONFIG_STATUS <<\_ACEOF
13708
13709 ac_cs_usage="\
13710 \`$as_me' instantiates files from templates according to the
13711 current configuration.
13712
13713 Usage: $0 [OPTIONS] [FILE]...
13714
13715   -h, --help       print this help, then exit
13716   -V, --version    print version number, then exit
13717   -q, --quiet      do not print progress messages
13718   -d, --debug      don't remove temporary files
13719       --recheck    update $as_me by reconfiguring in the same conditions
13720   --file=FILE[:TEMPLATE]
13721                    instantiate the configuration file FILE
13722   --header=FILE[:TEMPLATE]
13723                    instantiate the configuration header FILE
13724
13725 Configuration files:
13726 $config_files
13727
13728 Configuration headers:
13729 $config_headers
13730
13731 Configuration links:
13732 $config_links
13733
13734 Configuration commands:
13735 $config_commands
13736
13737 Report bugs to <bug-autoconf@gnu.org>."
13738 _ACEOF
13739
13740 cat >>$CONFIG_STATUS <<_ACEOF
13741 ac_cs_version="\\
13742 Concurrent Versions System (CVS) config.status 1.11.22
13743 configured by $0, generated by GNU Autoconf 2.59,
13744   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13745
13746 Copyright (C) 2003 Free Software Foundation, Inc.
13747 This config.status script is free software; the Free Software Foundation
13748 gives unlimited permission to copy, distribute and modify it."
13749 srcdir=$srcdir
13750 INSTALL="$INSTALL"
13751 _ACEOF
13752
13753 cat >>$CONFIG_STATUS <<\_ACEOF
13754 # If no file are specified by the user, then we need to provide default
13755 # value.  By we need to know if files were specified by the user.
13756 ac_need_defaults=:
13757 while test $# != 0
13758 do
13759   case $1 in
13760   --*=*)
13761     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13762     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13763     ac_shift=:
13764     ;;
13765   -*)
13766     ac_option=$1
13767     ac_optarg=$2
13768     ac_shift=shift
13769     ;;
13770   *) # This is not an option, so the user has probably given explicit
13771      # arguments.
13772      ac_option=$1
13773      ac_need_defaults=false;;
13774   esac
13775
13776   case $ac_option in
13777   # Handling of the options.
13778 _ACEOF
13779 cat >>$CONFIG_STATUS <<\_ACEOF
13780   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13781     ac_cs_recheck=: ;;
13782   --version | --vers* | -V )
13783     echo "$ac_cs_version"; exit 0 ;;
13784   --he | --h)
13785     # Conflict between --help and --header
13786     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13787 Try \`$0 --help' for more information." >&5
13788 echo "$as_me: error: ambiguous option: $1
13789 Try \`$0 --help' for more information." >&2;}
13790    { (exit 1); exit 1; }; };;
13791   --help | --hel | -h )
13792     echo "$ac_cs_usage"; exit 0 ;;
13793   --debug | --d* | -d )
13794     debug=: ;;
13795   --file | --fil | --fi | --f )
13796     $ac_shift
13797     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13798     ac_need_defaults=false;;
13799   --header | --heade | --head | --hea )
13800     $ac_shift
13801     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13802     ac_need_defaults=false;;
13803   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13804   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13805     ac_cs_silent=: ;;
13806
13807   # This is an error.
13808   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13809 Try \`$0 --help' for more information." >&5
13810 echo "$as_me: error: unrecognized option: $1
13811 Try \`$0 --help' for more information." >&2;}
13812    { (exit 1); exit 1; }; } ;;
13813
13814   *) ac_config_targets="$ac_config_targets $1" ;;
13815
13816   esac
13817   shift
13818 done
13819
13820 ac_configure_extra_args=
13821
13822 if $ac_cs_silent; then
13823   exec 6>/dev/null
13824   ac_configure_extra_args="$ac_configure_extra_args --silent"
13825 fi
13826
13827 _ACEOF
13828 cat >>$CONFIG_STATUS <<_ACEOF
13829 if \$ac_cs_recheck; then
13830   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13831   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13832 fi
13833
13834 _ACEOF
13835
13836 cat >>$CONFIG_STATUS <<_ACEOF
13837 #
13838 # INIT-COMMANDS section.
13839 #
13840
13841 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13842
13843 _ACEOF
13844
13845
13846
13847 cat >>$CONFIG_STATUS <<\_ACEOF
13848 for ac_config_target in $ac_config_targets
13849 do
13850   case "$ac_config_target" in
13851   # Handling of arguments.
13852   "contrib/check_cvs" ) CONFIG_FILES="$CONFIG_FILES contrib/check_cvs" ;;
13853   "contrib/clmerge" ) CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;;
13854   "contrib/cln_hist" ) CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;;
13855   "contrib/commit_prep" ) CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;;
13856   "contrib/cvs_acls" ) CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;;
13857   "contrib/log" ) CONFIG_FILES="$CONFIG_FILES contrib/log" ;;
13858   "contrib/log_accum" ) CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;;
13859   "contrib/mfpipe" ) CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;;
13860   "contrib/pvcs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;;
13861   "contrib/rcs2log" ) CONFIG_FILES="$CONFIG_FILES contrib/rcs2log:contrib/rcs2log.sh" ;;
13862   "contrib/rcslock" ) CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;;
13863   "contrib/sccs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;;
13864   "doc/mkman" ) CONFIG_FILES="$CONFIG_FILES doc/mkman:doc/mkman.pl" ;;
13865   "src/cvsbug" ) CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;;
13866   "windows-NT/fix-msvc-mak" ) CONFIG_FILES="$CONFIG_FILES windows-NT/fix-msvc-mak:windows-NT/fix-msvc-mak-head.pl:windows-NT/fix-msvc-mak.pl" ;;
13867   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13868   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
13869   "cvs.spec" ) CONFIG_FILES="$CONFIG_FILES cvs.spec" ;;
13870   "diff/Makefile" ) CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
13871   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13872   "emx/Makefile" ) CONFIG_FILES="$CONFIG_FILES emx/Makefile" ;;
13873   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13874   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13875   "os2/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/Makefile" ;;
13876   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13877   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13878   "vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES vms/Makefile" ;;
13879   "windows-NT/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/Makefile" ;;
13880   "windows-NT/SCC/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/SCC/Makefile" ;;
13881   "zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
13882   "lib/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/fnmatch.h:lib/fnmatch.h.in" ;;
13883   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13884   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13885   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13886 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13887    { (exit 1); exit 1; }; };;
13888   esac
13889 done
13890
13891 # If the user did not use the arguments to specify the items to instantiate,
13892 # then the envvar interface is used.  Set only those that are not.
13893 # We use the long form for the default assignment because of an extremely
13894 # bizarre bug on SunOS 4.1.3.
13895 if $ac_need_defaults; then
13896   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13897   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13898   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13899   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13900 fi
13901
13902 # Have a temporary directory for convenience.  Make it in the build tree
13903 # simply because there is no reason to put it here, and in addition,
13904 # creating and moving files from /tmp can sometimes cause problems.
13905 # Create a temporary directory, and hook for its removal unless debugging.
13906 $debug ||
13907 {
13908   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13909   trap '{ (exit 1); exit 1; }' 1 2 13 15
13910 }
13911
13912 # Create a (secure) tmp directory for tmp files.
13913
13914 {
13915   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13916   test -n "$tmp" && test -d "$tmp"
13917 }  ||
13918 {
13919   tmp=./confstat$$-$RANDOM
13920   (umask 077 && mkdir $tmp)
13921 } ||
13922 {
13923    echo "$me: cannot create a temporary directory in ." >&2
13924    { (exit 1); exit 1; }
13925 }
13926
13927 _ACEOF
13928
13929 cat >>$CONFIG_STATUS <<_ACEOF
13930
13931 #
13932 # CONFIG_FILES section.
13933 #
13934
13935 # No need to generate the scripts if there are no CONFIG_FILES.
13936 # This happens for instance when ./config.status config.h
13937 if test -n "\$CONFIG_FILES"; then
13938   # Protect against being on the right side of a sed subst in config.status.
13939   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13940    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13941 s,@SHELL@,$SHELL,;t t
13942 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13943 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13944 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13945 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13946 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13947 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13948 s,@exec_prefix@,$exec_prefix,;t t
13949 s,@prefix@,$prefix,;t t
13950 s,@program_transform_name@,$program_transform_name,;t t
13951 s,@bindir@,$bindir,;t t
13952 s,@sbindir@,$sbindir,;t t
13953 s,@libexecdir@,$libexecdir,;t t
13954 s,@datadir@,$datadir,;t t
13955 s,@sysconfdir@,$sysconfdir,;t t
13956 s,@sharedstatedir@,$sharedstatedir,;t t
13957 s,@localstatedir@,$localstatedir,;t t
13958 s,@libdir@,$libdir,;t t
13959 s,@includedir@,$includedir,;t t
13960 s,@oldincludedir@,$oldincludedir,;t t
13961 s,@infodir@,$infodir,;t t
13962 s,@mandir@,$mandir,;t t
13963 s,@build_alias@,$build_alias,;t t
13964 s,@host_alias@,$host_alias,;t t
13965 s,@target_alias@,$target_alias,;t t
13966 s,@DEFS@,$DEFS,;t t
13967 s,@ECHO_C@,$ECHO_C,;t t
13968 s,@ECHO_N@,$ECHO_N,;t t
13969 s,@ECHO_T@,$ECHO_T,;t t
13970 s,@LIBS@,$LIBS,;t t
13971 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13972 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13973 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13974 s,@CYGPATH_W@,$CYGPATH_W,;t t
13975 s,@PACKAGE@,$PACKAGE,;t t
13976 s,@VERSION@,$VERSION,;t t
13977 s,@ACLOCAL@,$ACLOCAL,;t t
13978 s,@AUTOCONF@,$AUTOCONF,;t t
13979 s,@AUTOMAKE@,$AUTOMAKE,;t t
13980 s,@AUTOHEADER@,$AUTOHEADER,;t t
13981 s,@MAKEINFO@,$MAKEINFO,;t t
13982 s,@install_sh@,$install_sh,;t t
13983 s,@STRIP@,$STRIP,;t t
13984 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13985 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13986 s,@mkdir_p@,$mkdir_p,;t t
13987 s,@AWK@,$AWK,;t t
13988 s,@SET_MAKE@,$SET_MAKE,;t t
13989 s,@am__leading_dot@,$am__leading_dot,;t t
13990 s,@AMTAR@,$AMTAR,;t t
13991 s,@am__tar@,$am__tar,;t t
13992 s,@am__untar@,$am__untar,;t t
13993 s,@ac_prefix_program@,$ac_prefix_program,;t t
13994 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13995 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13996 s,@MAINT@,$MAINT,;t t
13997 s,@CC@,$CC,;t t
13998 s,@CFLAGS@,$CFLAGS,;t t
13999 s,@LDFLAGS@,$LDFLAGS,;t t
14000 s,@CPPFLAGS@,$CPPFLAGS,;t t
14001 s,@ac_ct_CC@,$ac_ct_CC,;t t
14002 s,@EXEEXT@,$EXEEXT,;t t
14003 s,@OBJEXT@,$OBJEXT,;t t
14004 s,@DEPDIR@,$DEPDIR,;t t
14005 s,@am__include@,$am__include,;t t
14006 s,@am__quote@,$am__quote,;t t
14007 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14008 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14009 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14010 s,@CCDEPMODE@,$CCDEPMODE,;t t
14011 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14012 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14013 s,@CPP@,$CPP,;t t
14014 s,@EGREP@,$EGREP,;t t
14015 s,@RANLIB@,$RANLIB,;t t
14016 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14017 s,@YACC@,$YACC,;t t
14018 s,@LN_S@,$LN_S,;t t
14019 s,@PERL@,$PERL,;t t
14020 s,@CSH@,$CSH,;t t
14021 s,@MKTEMP@,$MKTEMP,;t t
14022 s,@SENDMAIL@,$SENDMAIL,;t t
14023 s,@PR@,$PR,;t t
14024 s,@ROFF@,$ROFF,;t t
14025 s,@PS2PDF@,$PS2PDF,;t t
14026 s,@TEXI2DVI@,$TEXI2DVI,;t t
14027 s,@MAKE_TARGETS_IN_VPATH_TRUE@,$MAKE_TARGETS_IN_VPATH_TRUE,;t t
14028 s,@MAKE_TARGETS_IN_VPATH_FALSE@,$MAKE_TARGETS_IN_VPATH_FALSE,;t t
14029 s,@LIBOBJS@,$LIBOBJS,;t t
14030 s,@KRB4@,$KRB4,;t t
14031 s,@includeopt@,$includeopt,;t t
14032 s,@EDITOR@,$EDITOR,;t t
14033 s,@with_default_rsh@,$with_default_rsh,;t t
14034 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14035 /@MKTEMP_SH_FUNCTION@/r $MKTEMP_SH_FUNCTION
14036 s,@MKTEMP_SH_FUNCTION@,,;t t
14037 CEOF
14038
14039 _ACEOF
14040
14041   cat >>$CONFIG_STATUS <<\_ACEOF
14042   # Split the substitutions into bite-sized pieces for seds with
14043   # small command number limits, like on Digital OSF/1 and HP-UX.
14044   ac_max_sed_lines=48
14045   ac_sed_frag=1 # Number of current file.
14046   ac_beg=1 # First line for current file.
14047   ac_end=$ac_max_sed_lines # Line after last line for current file.
14048   ac_more_lines=:
14049   ac_sed_cmds=
14050   while $ac_more_lines; do
14051     if test $ac_beg -gt 1; then
14052       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14053     else
14054       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14055     fi
14056     if test ! -s $tmp/subs.frag; then
14057       ac_more_lines=false
14058     else
14059       # The purpose of the label and of the branching condition is to
14060       # speed up the sed processing (if there are no `@' at all, there
14061       # is no need to browse any of the substitutions).
14062       # These are the two extra sed commands mentioned above.
14063       (echo ':t
14064   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14065       if test -z "$ac_sed_cmds"; then
14066         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14067       else
14068         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14069       fi
14070       ac_sed_frag=`expr $ac_sed_frag + 1`
14071       ac_beg=$ac_end
14072       ac_end=`expr $ac_end + $ac_max_sed_lines`
14073     fi
14074   done
14075   if test -z "$ac_sed_cmds"; then
14076     ac_sed_cmds=cat
14077   fi
14078 fi # test -n "$CONFIG_FILES"
14079
14080 _ACEOF
14081 cat >>$CONFIG_STATUS <<\_ACEOF
14082 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14083   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14084   case $ac_file in
14085   - | *:- | *:-:* ) # input from stdin
14086         cat >$tmp/stdin
14087         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14088         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14089   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14090         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14091   * )   ac_file_in=$ac_file.in ;;
14092   esac
14093
14094   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14095   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14097          X"$ac_file" : 'X\(//\)[^/]' \| \
14098          X"$ac_file" : 'X\(//\)$' \| \
14099          X"$ac_file" : 'X\(/\)' \| \
14100          .     : '\(.\)' 2>/dev/null ||
14101 echo X"$ac_file" |
14102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14103           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14104           /^X\(\/\/\)$/{ s//\1/; q; }
14105           /^X\(\/\).*/{ s//\1/; q; }
14106           s/.*/./; q'`
14107   { if $as_mkdir_p; then
14108     mkdir -p "$ac_dir"
14109   else
14110     as_dir="$ac_dir"
14111     as_dirs=
14112     while test ! -d "$as_dir"; do
14113       as_dirs="$as_dir $as_dirs"
14114       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14116          X"$as_dir" : 'X\(//\)[^/]' \| \
14117          X"$as_dir" : 'X\(//\)$' \| \
14118          X"$as_dir" : 'X\(/\)' \| \
14119          .     : '\(.\)' 2>/dev/null ||
14120 echo X"$as_dir" |
14121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14122           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14123           /^X\(\/\/\)$/{ s//\1/; q; }
14124           /^X\(\/\).*/{ s//\1/; q; }
14125           s/.*/./; q'`
14126     done
14127     test ! -n "$as_dirs" || mkdir $as_dirs
14128   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14129 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14130    { (exit 1); exit 1; }; }; }
14131
14132   ac_builddir=.
14133
14134 if test "$ac_dir" != .; then
14135   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14136   # A "../" for each directory in $ac_dir_suffix.
14137   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14138 else
14139   ac_dir_suffix= ac_top_builddir=
14140 fi
14141
14142 case $srcdir in
14143   .)  # No --srcdir option.  We are building in place.
14144     ac_srcdir=.
14145     if test -z "$ac_top_builddir"; then
14146        ac_top_srcdir=.
14147     else
14148        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14149     fi ;;
14150   [\\/]* | ?:[\\/]* )  # Absolute path.
14151     ac_srcdir=$srcdir$ac_dir_suffix;
14152     ac_top_srcdir=$srcdir ;;
14153   *) # Relative path.
14154     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14155     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14156 esac
14157
14158 # Do not use `cd foo && pwd` to compute absolute paths, because
14159 # the directories may not exist.
14160 case `pwd` in
14161 .) ac_abs_builddir="$ac_dir";;
14162 *)
14163   case "$ac_dir" in
14164   .) ac_abs_builddir=`pwd`;;
14165   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14166   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14167   esac;;
14168 esac
14169 case $ac_abs_builddir in
14170 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14171 *)
14172   case ${ac_top_builddir}. in
14173   .) ac_abs_top_builddir=$ac_abs_builddir;;
14174   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14175   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14176   esac;;
14177 esac
14178 case $ac_abs_builddir in
14179 .) ac_abs_srcdir=$ac_srcdir;;
14180 *)
14181   case $ac_srcdir in
14182   .) ac_abs_srcdir=$ac_abs_builddir;;
14183   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14184   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14185   esac;;
14186 esac
14187 case $ac_abs_builddir in
14188 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14189 *)
14190   case $ac_top_srcdir in
14191   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14192   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14193   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14194   esac;;
14195 esac
14196
14197
14198   case $INSTALL in
14199   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14200   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14201   esac
14202
14203   if test x"$ac_file" != x-; then
14204     { echo "$as_me:$LINENO: creating $ac_file" >&5
14205 echo "$as_me: creating $ac_file" >&6;}
14206     rm -f "$ac_file"
14207   fi
14208   # Let's still pretend it is `configure' which instantiates (i.e., don't
14209   # use $as_me), people would be surprised to read:
14210   #    /* config.h.  Generated by config.status.  */
14211   if test x"$ac_file" = x-; then
14212     configure_input=
14213   else
14214     configure_input="$ac_file.  "
14215   fi
14216   configure_input=$configure_input"Generated from `echo $ac_file_in |
14217                                      sed 's,.*/,,'` by configure."
14218
14219   # First look for the input files in the build tree, otherwise in the
14220   # src tree.
14221   ac_file_inputs=`IFS=:
14222     for f in $ac_file_in; do
14223       case $f in
14224       -) echo $tmp/stdin ;;
14225       [\\/$]*)
14226          # Absolute (can't be DOS-style, as IFS=:)
14227          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14228 echo "$as_me: error: cannot find input file: $f" >&2;}
14229    { (exit 1); exit 1; }; }
14230          echo "$f";;
14231       *) # Relative
14232          if test -f "$f"; then
14233            # Build tree
14234            echo "$f"
14235          elif test -f "$srcdir/$f"; then
14236            # Source tree
14237            echo "$srcdir/$f"
14238          else
14239            # /dev/null tree
14240            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14241 echo "$as_me: error: cannot find input file: $f" >&2;}
14242    { (exit 1); exit 1; }; }
14243          fi;;
14244       esac
14245     done` || { (exit 1); exit 1; }
14246 _ACEOF
14247 cat >>$CONFIG_STATUS <<_ACEOF
14248   sed "$ac_vpsub
14249 $extrasub
14250 _ACEOF
14251 cat >>$CONFIG_STATUS <<\_ACEOF
14252 :t
14253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14254 s,@configure_input@,$configure_input,;t t
14255 s,@srcdir@,$ac_srcdir,;t t
14256 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14257 s,@top_srcdir@,$ac_top_srcdir,;t t
14258 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14259 s,@builddir@,$ac_builddir,;t t
14260 s,@abs_builddir@,$ac_abs_builddir,;t t
14261 s,@top_builddir@,$ac_top_builddir,;t t
14262 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14263 s,@INSTALL@,$ac_INSTALL,;t t
14264 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14265   rm -f $tmp/stdin
14266   if test x"$ac_file" != x-; then
14267     mv $tmp/out $ac_file
14268   else
14269     cat $tmp/out
14270     rm -f $tmp/out
14271   fi
14272
14273   # Run the commands associated with the file.
14274   case $ac_file in
14275     contrib/check_cvs ) chmod +x contrib/check_cvs ;;
14276     contrib/clmerge ) chmod +x contrib/clmerge ;;
14277     contrib/cln_hist ) chmod +x contrib/cln_hist ;;
14278     contrib/commit_prep ) chmod +x contrib/commit_prep ;;
14279     contrib/cvs_acls ) chmod +x contrib/cvs_acls ;;
14280     contrib/log ) chmod +x contrib/log ;;
14281     contrib/log_accum ) chmod +x contrib/log_accum ;;
14282     contrib/mfpipe ) chmod +x contrib/mfpipe ;;
14283     contrib/pvcs2rcs ) chmod +x contrib/pvcs2rcs ;;
14284     contrib/rcs2log ) chmod +x contrib/rcs2log ;;
14285     contrib/rcslock ) chmod +x contrib/rcslock ;;
14286     contrib/sccs2rcs ) chmod +x contrib/sccs2rcs ;;
14287     doc/mkman ) chmod +x doc/mkman ;;
14288     src/cvsbug ) chmod +x src/cvsbug ;;
14289     windows-NT/fix-msvc-mak ) chmod +x windows-NT/fix-msvc-mak ;;
14290   esac
14291 done
14292 _ACEOF
14293 cat >>$CONFIG_STATUS <<\_ACEOF
14294
14295 #
14296 # CONFIG_HEADER section.
14297 #
14298
14299 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14300 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14301 #
14302 # ac_d sets the value in "#define NAME VALUE" lines.
14303 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
14304 ac_dB='[         ].*$,\1#\2'
14305 ac_dC=' '
14306 ac_dD=',;t'
14307 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14308 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14309 ac_uB='$,\1#\2define\3'
14310 ac_uC=' '
14311 ac_uD=',;t'
14312
14313 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14314   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14315   case $ac_file in
14316   - | *:- | *:-:* ) # input from stdin
14317         cat >$tmp/stdin
14318         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14319         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14320   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14321         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14322   * )   ac_file_in=$ac_file.in ;;
14323   esac
14324
14325   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14326 echo "$as_me: creating $ac_file" >&6;}
14327
14328   # First look for the input files in the build tree, otherwise in the
14329   # src tree.
14330   ac_file_inputs=`IFS=:
14331     for f in $ac_file_in; do
14332       case $f in
14333       -) echo $tmp/stdin ;;
14334       [\\/$]*)
14335          # Absolute (can't be DOS-style, as IFS=:)
14336          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14337 echo "$as_me: error: cannot find input file: $f" >&2;}
14338    { (exit 1); exit 1; }; }
14339          # Do quote $f, to prevent DOS paths from being IFS'd.
14340          echo "$f";;
14341       *) # Relative
14342          if test -f "$f"; then
14343            # Build tree
14344            echo "$f"
14345          elif test -f "$srcdir/$f"; then
14346            # Source tree
14347            echo "$srcdir/$f"
14348          else
14349            # /dev/null tree
14350            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14351 echo "$as_me: error: cannot find input file: $f" >&2;}
14352    { (exit 1); exit 1; }; }
14353          fi;;
14354       esac
14355     done` || { (exit 1); exit 1; }
14356   # Remove the trailing spaces.
14357   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
14358
14359 _ACEOF
14360
14361 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14362 # `conftest.undefs', that substitutes the proper values into
14363 # config.h.in to produce config.h.  The first handles `#define'
14364 # templates, and the second `#undef' templates.
14365 # And first: Protect against being on the right side of a sed subst in
14366 # config.status.  Protect against being in an unquoted here document
14367 # in config.status.
14368 rm -f conftest.defines conftest.undefs
14369 # Using a here document instead of a string reduces the quoting nightmare.
14370 # Putting comments in sed scripts is not portable.
14371 #
14372 # `end' is used to avoid that the second main sed command (meant for
14373 # 0-ary CPP macros) applies to n-ary macro definitions.
14374 # See the Autoconf documentation for `clear'.
14375 cat >confdef2sed.sed <<\_ACEOF
14376 s/[\\&,]/\\&/g
14377 s,[\\$`],\\&,g
14378 t clear
14379 : clear
14380 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14381 t end
14382 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14383 : end
14384 _ACEOF
14385 # If some macros were called several times there might be several times
14386 # the same #defines, which is useless.  Nevertheless, we may not want to
14387 # sort them, since we want the *last* AC-DEFINE to be honored.
14388 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14389 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14390 rm -f confdef2sed.sed
14391
14392 # This sed command replaces #undef with comments.  This is necessary, for
14393 # example, in the case of _POSIX_SOURCE, which is predefined and required
14394 # on some systems where configure will not decide to define it.
14395 cat >>conftest.undefs <<\_ACEOF
14396 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14397 _ACEOF
14398
14399 # Break up conftest.defines because some shells have a limit on the size
14400 # of here documents, and old seds have small limits too (100 cmds).
14401 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14402 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14403 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14404 echo '  :' >>$CONFIG_STATUS
14405 rm -f conftest.tail
14406 while grep . conftest.defines >/dev/null
14407 do
14408   # Write a limited-size here document to $tmp/defines.sed.
14409   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14410   # Speed up: don't consider the non `#define' lines.
14411   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
14412   # Work around the forget-to-reset-the-flag bug.
14413   echo 't clr' >>$CONFIG_STATUS
14414   echo ': clr' >>$CONFIG_STATUS
14415   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14416   echo 'CEOF
14417   sed -f $tmp/defines.sed $tmp/in >$tmp/out
14418   rm -f $tmp/in
14419   mv $tmp/out $tmp/in
14420 ' >>$CONFIG_STATUS
14421   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14422   rm -f conftest.defines
14423   mv conftest.tail conftest.defines
14424 done
14425 rm -f conftest.defines
14426 echo '  fi # grep' >>$CONFIG_STATUS
14427 echo >>$CONFIG_STATUS
14428
14429 # Break up conftest.undefs because some shells have a limit on the size
14430 # of here documents, and old seds have small limits too (100 cmds).
14431 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14432 rm -f conftest.tail
14433 while grep . conftest.undefs >/dev/null
14434 do
14435   # Write a limited-size here document to $tmp/undefs.sed.
14436   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14437   # Speed up: don't consider the non `#undef'
14438   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14439   # Work around the forget-to-reset-the-flag bug.
14440   echo 't clr' >>$CONFIG_STATUS
14441   echo ': clr' >>$CONFIG_STATUS
14442   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14443   echo 'CEOF
14444   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14445   rm -f $tmp/in
14446   mv $tmp/out $tmp/in
14447 ' >>$CONFIG_STATUS
14448   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14449   rm -f conftest.undefs
14450   mv conftest.tail conftest.undefs
14451 done
14452 rm -f conftest.undefs
14453
14454 cat >>$CONFIG_STATUS <<\_ACEOF
14455   # Let's still pretend it is `configure' which instantiates (i.e., don't
14456   # use $as_me), people would be surprised to read:
14457   #    /* config.h.  Generated by config.status.  */
14458   if test x"$ac_file" = x-; then
14459     echo "/* Generated by configure.  */" >$tmp/config.h
14460   else
14461     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14462   fi
14463   cat $tmp/in >>$tmp/config.h
14464   rm -f $tmp/in
14465   if test x"$ac_file" != x-; then
14466     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14467       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14468 echo "$as_me: $ac_file is unchanged" >&6;}
14469     else
14470       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14472          X"$ac_file" : 'X\(//\)[^/]' \| \
14473          X"$ac_file" : 'X\(//\)$' \| \
14474          X"$ac_file" : 'X\(/\)' \| \
14475          .     : '\(.\)' 2>/dev/null ||
14476 echo X"$ac_file" |
14477     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14478           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14479           /^X\(\/\/\)$/{ s//\1/; q; }
14480           /^X\(\/\).*/{ s//\1/; q; }
14481           s/.*/./; q'`
14482       { if $as_mkdir_p; then
14483     mkdir -p "$ac_dir"
14484   else
14485     as_dir="$ac_dir"
14486     as_dirs=
14487     while test ! -d "$as_dir"; do
14488       as_dirs="$as_dir $as_dirs"
14489       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14491          X"$as_dir" : 'X\(//\)[^/]' \| \
14492          X"$as_dir" : 'X\(//\)$' \| \
14493          X"$as_dir" : 'X\(/\)' \| \
14494          .     : '\(.\)' 2>/dev/null ||
14495 echo X"$as_dir" |
14496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14497           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14498           /^X\(\/\/\)$/{ s//\1/; q; }
14499           /^X\(\/\).*/{ s//\1/; q; }
14500           s/.*/./; q'`
14501     done
14502     test ! -n "$as_dirs" || mkdir $as_dirs
14503   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14505    { (exit 1); exit 1; }; }; }
14506
14507       rm -f $ac_file
14508       mv $tmp/config.h $ac_file
14509     fi
14510   else
14511     cat $tmp/config.h
14512     rm -f $tmp/config.h
14513   fi
14514 # Compute $ac_file's index in $config_headers.
14515 _am_stamp_count=1
14516 for _am_header in $config_headers :; do
14517   case $_am_header in
14518     $ac_file | $ac_file:* )
14519       break ;;
14520     * )
14521       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14522   esac
14523 done
14524 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14525 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14526          X$ac_file : 'X\(//\)[^/]' \| \
14527          X$ac_file : 'X\(//\)$' \| \
14528          X$ac_file : 'X\(/\)' \| \
14529          .     : '\(.\)' 2>/dev/null ||
14530 echo X$ac_file |
14531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14532           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14533           /^X\(\/\/\)$/{ s//\1/; q; }
14534           /^X\(\/\).*/{ s//\1/; q; }
14535           s/.*/./; q'`/stamp-h$_am_stamp_count
14536 done
14537 _ACEOF
14538 cat >>$CONFIG_STATUS <<\_ACEOF
14539
14540 #
14541 # CONFIG_LINKS section.
14542 #
14543
14544 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
14545   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14546   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14547
14548   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
14549 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
14550
14551   if test ! -r $srcdir/$ac_source; then
14552     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
14553 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
14554    { (exit 1); exit 1; }; }
14555   fi
14556   rm -f $ac_dest
14557
14558   # Make relative symlinks.
14559   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
14560 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14561          X"$ac_dest" : 'X\(//\)[^/]' \| \
14562          X"$ac_dest" : 'X\(//\)$' \| \
14563          X"$ac_dest" : 'X\(/\)' \| \
14564          .     : '\(.\)' 2>/dev/null ||
14565 echo X"$ac_dest" |
14566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14567           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14568           /^X\(\/\/\)$/{ s//\1/; q; }
14569           /^X\(\/\).*/{ s//\1/; q; }
14570           s/.*/./; q'`
14571   { if $as_mkdir_p; then
14572     mkdir -p "$ac_dest_dir"
14573   else
14574     as_dir="$ac_dest_dir"
14575     as_dirs=
14576     while test ! -d "$as_dir"; do
14577       as_dirs="$as_dir $as_dirs"
14578       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14580          X"$as_dir" : 'X\(//\)[^/]' \| \
14581          X"$as_dir" : 'X\(//\)$' \| \
14582          X"$as_dir" : 'X\(/\)' \| \
14583          .     : '\(.\)' 2>/dev/null ||
14584 echo X"$as_dir" |
14585     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14586           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14587           /^X\(\/\/\)$/{ s//\1/; q; }
14588           /^X\(\/\).*/{ s//\1/; q; }
14589           s/.*/./; q'`
14590     done
14591     test ! -n "$as_dirs" || mkdir $as_dirs
14592   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
14593 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
14594    { (exit 1); exit 1; }; }; }
14595
14596   ac_builddir=.
14597
14598 if test "$ac_dest_dir" != .; then
14599   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
14600   # A "../" for each directory in $ac_dir_suffix.
14601   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14602 else
14603   ac_dir_suffix= ac_top_builddir=
14604 fi
14605
14606 case $srcdir in
14607   .)  # No --srcdir option.  We are building in place.
14608     ac_srcdir=.
14609     if test -z "$ac_top_builddir"; then
14610        ac_top_srcdir=.
14611     else
14612        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14613     fi ;;
14614   [\\/]* | ?:[\\/]* )  # Absolute path.
14615     ac_srcdir=$srcdir$ac_dir_suffix;
14616     ac_top_srcdir=$srcdir ;;
14617   *) # Relative path.
14618     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14619     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14620 esac
14621
14622 # Do not use `cd foo && pwd` to compute absolute paths, because
14623 # the directories may not exist.
14624 case `pwd` in
14625 .) ac_abs_builddir="$ac_dest_dir";;
14626 *)
14627   case "$ac_dest_dir" in
14628   .) ac_abs_builddir=`pwd`;;
14629   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
14630   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
14631   esac;;
14632 esac
14633 case $ac_abs_builddir in
14634 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14635 *)
14636   case ${ac_top_builddir}. in
14637   .) ac_abs_top_builddir=$ac_abs_builddir;;
14638   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14639   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14640   esac;;
14641 esac
14642 case $ac_abs_builddir in
14643 .) ac_abs_srcdir=$ac_srcdir;;
14644 *)
14645   case $ac_srcdir in
14646   .) ac_abs_srcdir=$ac_abs_builddir;;
14647   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14648   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14649   esac;;
14650 esac
14651 case $ac_abs_builddir in
14652 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14653 *)
14654   case $ac_top_srcdir in
14655   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14656   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14657   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14658   esac;;
14659 esac
14660
14661
14662   case $srcdir in
14663   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
14664       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
14665   esac
14666
14667   # Try a symlink, then a hard link, then a copy.
14668   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14669     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
14670     cp -p $srcdir/$ac_source $ac_dest ||
14671     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
14672 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
14673    { (exit 1); exit 1; }; }
14674 done
14675 _ACEOF
14676 cat >>$CONFIG_STATUS <<\_ACEOF
14677
14678 #
14679 # CONFIG_COMMANDS section.
14680 #
14681 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14682   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14683   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14684   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14685 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14686          X"$ac_dest" : 'X\(//\)[^/]' \| \
14687          X"$ac_dest" : 'X\(//\)$' \| \
14688          X"$ac_dest" : 'X\(/\)' \| \
14689          .     : '\(.\)' 2>/dev/null ||
14690 echo X"$ac_dest" |
14691     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14692           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14693           /^X\(\/\/\)$/{ s//\1/; q; }
14694           /^X\(\/\).*/{ s//\1/; q; }
14695           s/.*/./; q'`
14696   { if $as_mkdir_p; then
14697     mkdir -p "$ac_dir"
14698   else
14699     as_dir="$ac_dir"
14700     as_dirs=
14701     while test ! -d "$as_dir"; do
14702       as_dirs="$as_dir $as_dirs"
14703       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14705          X"$as_dir" : 'X\(//\)[^/]' \| \
14706          X"$as_dir" : 'X\(//\)$' \| \
14707          X"$as_dir" : 'X\(/\)' \| \
14708          .     : '\(.\)' 2>/dev/null ||
14709 echo X"$as_dir" |
14710     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14711           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14712           /^X\(\/\/\)$/{ s//\1/; q; }
14713           /^X\(\/\).*/{ s//\1/; q; }
14714           s/.*/./; q'`
14715     done
14716     test ! -n "$as_dirs" || mkdir $as_dirs
14717   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14718 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14719    { (exit 1); exit 1; }; }; }
14720
14721   ac_builddir=.
14722
14723 if test "$ac_dir" != .; then
14724   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14725   # A "../" for each directory in $ac_dir_suffix.
14726   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14727 else
14728   ac_dir_suffix= ac_top_builddir=
14729 fi
14730
14731 case $srcdir in
14732   .)  # No --srcdir option.  We are building in place.
14733     ac_srcdir=.
14734     if test -z "$ac_top_builddir"; then
14735        ac_top_srcdir=.
14736     else
14737        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14738     fi ;;
14739   [\\/]* | ?:[\\/]* )  # Absolute path.
14740     ac_srcdir=$srcdir$ac_dir_suffix;
14741     ac_top_srcdir=$srcdir ;;
14742   *) # Relative path.
14743     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14744     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14745 esac
14746
14747 # Do not use `cd foo && pwd` to compute absolute paths, because
14748 # the directories may not exist.
14749 case `pwd` in
14750 .) ac_abs_builddir="$ac_dir";;
14751 *)
14752   case "$ac_dir" in
14753   .) ac_abs_builddir=`pwd`;;
14754   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14755   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14756   esac;;
14757 esac
14758 case $ac_abs_builddir in
14759 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14760 *)
14761   case ${ac_top_builddir}. in
14762   .) ac_abs_top_builddir=$ac_abs_builddir;;
14763   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14764   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14765   esac;;
14766 esac
14767 case $ac_abs_builddir in
14768 .) ac_abs_srcdir=$ac_srcdir;;
14769 *)
14770   case $ac_srcdir in
14771   .) ac_abs_srcdir=$ac_abs_builddir;;
14772   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14773   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14774   esac;;
14775 esac
14776 case $ac_abs_builddir in
14777 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14778 *)
14779   case $ac_top_srcdir in
14780   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14781   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14782   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14783   esac;;
14784 esac
14785
14786
14787   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14788 echo "$as_me: executing $ac_dest commands" >&6;}
14789   case $ac_dest in
14790     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14791   # Strip MF so we end up with the name of the file.
14792   mf=`echo "$mf" | sed -e 's/:.*$//'`
14793   # Check whether this is an Automake generated Makefile or not.
14794   # We used to match only the files named `Makefile.in', but
14795   # some people rename them; so instead we look at the file content.
14796   # Grep'ing the first line is not enough: some people post-process
14797   # each Makefile.in and add a new line on top of each file to say so.
14798   # So let's grep whole file.
14799   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14800     dirpart=`(dirname "$mf") 2>/dev/null ||
14801 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14802          X"$mf" : 'X\(//\)[^/]' \| \
14803          X"$mf" : 'X\(//\)$' \| \
14804          X"$mf" : 'X\(/\)' \| \
14805          .     : '\(.\)' 2>/dev/null ||
14806 echo X"$mf" |
14807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14808           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14809           /^X\(\/\/\)$/{ s//\1/; q; }
14810           /^X\(\/\).*/{ s//\1/; q; }
14811           s/.*/./; q'`
14812   else
14813     continue
14814   fi
14815   # Extract the definition of DEPDIR, am__include, and am__quote
14816   # from the Makefile without running `make'.
14817   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14818   test -z "$DEPDIR" && continue
14819   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14820   test -z "am__include" && continue
14821   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14822   # When using ansi2knr, U may be empty or an underscore; expand it
14823   U=`sed -n 's/^U = //p' < "$mf"`
14824   # Find all dependency output files, they are included files with
14825   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14826   # simplest approach to changing $(DEPDIR) to its actual value in the
14827   # expansion.
14828   for file in `sed -n "
14829     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14830        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14831     # Make sure the directory exists.
14832     test -f "$dirpart/$file" && continue
14833     fdir=`(dirname "$file") 2>/dev/null ||
14834 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14835          X"$file" : 'X\(//\)[^/]' \| \
14836          X"$file" : 'X\(//\)$' \| \
14837          X"$file" : 'X\(/\)' \| \
14838          .     : '\(.\)' 2>/dev/null ||
14839 echo X"$file" |
14840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14841           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14842           /^X\(\/\/\)$/{ s//\1/; q; }
14843           /^X\(\/\).*/{ s//\1/; q; }
14844           s/.*/./; q'`
14845     { if $as_mkdir_p; then
14846     mkdir -p $dirpart/$fdir
14847   else
14848     as_dir=$dirpart/$fdir
14849     as_dirs=
14850     while test ! -d "$as_dir"; do
14851       as_dirs="$as_dir $as_dirs"
14852       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14854          X"$as_dir" : 'X\(//\)[^/]' \| \
14855          X"$as_dir" : 'X\(//\)$' \| \
14856          X"$as_dir" : 'X\(/\)' \| \
14857          .     : '\(.\)' 2>/dev/null ||
14858 echo X"$as_dir" |
14859     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14860           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14861           /^X\(\/\/\)$/{ s//\1/; q; }
14862           /^X\(\/\).*/{ s//\1/; q; }
14863           s/.*/./; q'`
14864     done
14865     test ! -n "$as_dirs" || mkdir $as_dirs
14866   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14867 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14868    { (exit 1); exit 1; }; }; }
14869
14870     # echo "creating $dirpart/$file"
14871     echo '# dummy' > "$dirpart/$file"
14872   done
14873 done
14874  ;;
14875   esac
14876 done
14877 _ACEOF
14878
14879 cat >>$CONFIG_STATUS <<\_ACEOF
14880
14881 { (exit 0); exit 0; }
14882 _ACEOF
14883 chmod +x $CONFIG_STATUS
14884 ac_clean_files=$ac_clean_files_save
14885
14886
14887 # configure is writing to config.log, and then calls config.status.
14888 # config.status does its own redirection, appending to config.log.
14889 # Unfortunately, on DOS this fails, as config.log is still kept open
14890 # by configure, so config.status won't be able to write to it; its
14891 # output is simply discarded.  So we exec the FD to /dev/null,
14892 # effectively closing config.log, so it can be properly (re)opened and
14893 # appended to by config.status.  When coming back to configure, we
14894 # need to make the FD available again.
14895 if test "$no_create" != yes; then
14896   ac_cs_success=:
14897   ac_config_status_args=
14898   test "$silent" = yes &&
14899     ac_config_status_args="$ac_config_status_args --quiet"
14900   exec 5>/dev/null
14901   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14902   exec 5>>config.log
14903   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14904   # would make configure fail if this is the last instruction.
14905   $ac_cs_success || { (exit 1); exit 1; }
14906 fi
14907
14908
14909
14910
14911 # Report the state of this version of CVS if this is from dev.
14912