Import initial version of 1:1 pthread library.
[dragonfly.git] / contrib / cvs-1.12.9 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58 for Concurrent Versions System (CVS) 1.12.9.
4 #
5 # Report bugs to <bug-cvs@gnu.org>.
6 #
7 # Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
8 #               1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
9 #               Free Software Foundation, Inc.
10 #
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2, or (at your option)
14 # any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20 #
21 # Copyright (C) 2003 Free Software Foundation, Inc.
22 # This configure script is free software; the Free Software Foundation
23 # gives unlimited permission to copy, distribute and modify it.
24 ## --------------------- ##
25 ## M4sh Initialization.  ##
26 ## --------------------- ##
27
28 # Be Bourne compatible
29 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30   emulate sh
31   NULLCMD=:
32   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33   # is contrary to our usage.  Disable this feature.
34   alias -g '${1+"$@"}'='"$@"'
35 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
36   set -o posix
37 fi
38 DUALCASE=1; export DUALCASE # for MKS sh
39
40 # Support unset when possible.
41 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42   as_unset=unset
43 else
44   as_unset=false
45 fi
46
47
48 # Work around bugs in pre-3.0 UWIN ksh.
49 $as_unset ENV MAIL MAILPATH
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # NLS nuisances.
55 for as_var in \
56   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
57   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
58   LC_TELEPHONE LC_TIME
59 do
60   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
61     eval $as_var=C; export $as_var
62   else
63     $as_unset $as_var
64   fi
65 done
66
67 # Required to use basename.
68 if expr a : '\(a\)' >/dev/null 2>&1; then
69   as_expr=expr
70 else
71   as_expr=false
72 fi
73
74 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
75   as_basename=basename
76 else
77   as_basename=false
78 fi
79
80
81 # Name of the executable.
82 as_me=`$as_basename "$0" ||
83 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
84          X"$0" : 'X\(//\)$' \| \
85          X"$0" : 'X\(/\)$' \| \
86          .     : '\(.\)' 2>/dev/null ||
87 echo X/"$0" |
88     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
89           /^X\/\(\/\/\)$/{ s//\1/; q; }
90           /^X\/\(\/\).*/{ s//\1/; q; }
91           s/.*/./; q'`
92
93
94 # PATH needs CR, and LINENO needs CR and PATH.
95 # Avoid depending upon Character Ranges.
96 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
97 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
98 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
99 as_cr_digits='0123456789'
100 as_cr_alnum=$as_cr_Letters$as_cr_digits
101
102 # The user is always right.
103 if test "${PATH_SEPARATOR+set}" != set; then
104   echo "#! /bin/sh" >conf$$.sh
105   echo  "exit 0"   >>conf$$.sh
106   chmod +x conf$$.sh
107   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
108     PATH_SEPARATOR=';'
109   else
110     PATH_SEPARATOR=:
111   fi
112   rm -f conf$$.sh
113 fi
114
115
116   as_lineno_1=$LINENO
117   as_lineno_2=$LINENO
118   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
119   test "x$as_lineno_1" != "x$as_lineno_2" &&
120   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
121   # Find who we are.  Look in the path if we contain no path at all
122   # relative or not.
123   case $0 in
124     *[\\/]* ) as_myself=$0 ;;
125     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
126 for as_dir in $PATH
127 do
128   IFS=$as_save_IFS
129   test -z "$as_dir" && as_dir=.
130   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
131 done
132
133        ;;
134   esac
135   # We did not find ourselves, most probably we were run as `sh COMMAND'
136   # in which case we are not to be found in the path.
137   if test "x$as_myself" = x; then
138     as_myself=$0
139   fi
140   if test ! -f "$as_myself"; then
141     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
142    { (exit 1); exit 1; }; }
143   fi
144   case $CONFIG_SHELL in
145   '')
146     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
147 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
148 do
149   IFS=$as_save_IFS
150   test -z "$as_dir" && as_dir=.
151   for as_base in sh bash ksh sh5; do
152          case $as_dir in
153          /*)
154            if ("$as_dir/$as_base" -c '
155   as_lineno_1=$LINENO
156   as_lineno_2=$LINENO
157   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
158   test "x$as_lineno_1" != "x$as_lineno_2" &&
159   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
160              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
161              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
162              CONFIG_SHELL=$as_dir/$as_base
163              export CONFIG_SHELL
164              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
165            fi;;
166          esac
167        done
168 done
169 ;;
170   esac
171
172   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
173   # uniformly replaced by the line number.  The first 'sed' inserts a
174   # line-number line before each line; the second 'sed' does the real
175   # work.  The second script uses 'N' to pair each line-number line
176   # with the numbered line, and appends trailing '-' during
177   # substitution so that $LINENO is not a special case at line end.
178   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
179   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
180   sed '=' <$as_myself |
181     sed '
182       N
183       s,$,-,
184       : loop
185       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
186       t loop
187       s,-$,,
188       s,^['$as_cr_digits']*\n,,
189     ' >$as_me.lineno &&
190   chmod +x $as_me.lineno ||
191     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
192    { (exit 1); exit 1; }; }
193
194   # Don't try to exec as it changes $[0], causing all sort of problems
195   # (the dirname of $[0] is not the place where we might find the
196   # original and so on.  Autoconf is especially sensible to this).
197   . ./$as_me.lineno
198   # Exit status is that of the last command.
199   exit
200 }
201
202
203 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
204   *c*,-n*) ECHO_N= ECHO_C='
205 ' ECHO_T='      ' ;;
206   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
207   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
208 esac
209
210 if expr a : '\(a\)' >/dev/null 2>&1; then
211   as_expr=expr
212 else
213   as_expr=false
214 fi
215
216 rm -f conf$$ conf$$.exe conf$$.file
217 echo >conf$$.file
218 if ln -s conf$$.file conf$$ 2>/dev/null; then
219   # We could just check for DJGPP; but this test a) works b) is more generic
220   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
221   if test -f conf$$.exe; then
222     # Don't use ln at all; we don't have any links
223     as_ln_s='cp -p'
224   else
225     as_ln_s='ln -s'
226   fi
227 elif ln conf$$.file conf$$ 2>/dev/null; then
228   as_ln_s=ln
229 else
230   as_ln_s='cp -p'
231 fi
232 rm -f conf$$ conf$$.exe conf$$.file
233
234 if mkdir -p . 2>/dev/null; then
235   as_mkdir_p=:
236 else
237   test -d ./-p && rmdir ./-p
238   as_mkdir_p=false
239 fi
240
241 as_executable_p="test -f"
242
243 # Sed expression to map a string onto a valid CPP name.
244 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
245
246 # Sed expression to map a string onto a valid variable name.
247 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
248
249
250 # IFS
251 # We need space, tab and new line, in precisely that order.
252 as_nl='
253 '
254 IFS="   $as_nl"
255
256 # CDPATH.
257 $as_unset CDPATH
258
259
260 # Name of the host.
261 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
262 # so uname gets run too.
263 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
264
265 exec 6>&1
266
267 #
268 # Initializations.
269 #
270 ac_default_prefix=/usr/local
271 ac_config_libobj_dir=.
272 cross_compiling=no
273 subdirs=
274 MFLAGS=
275 MAKEFLAGS=
276 SHELL=${CONFIG_SHELL-/bin/sh}
277
278 # Maximum number of lines to put in a shell here document.
279 # This variable seems obsolete.  It should probably be removed, and
280 # only ac_max_sed_lines should be used.
281 : ${ac_max_here_lines=38}
282
283 # Identity of this package.
284 PACKAGE_NAME='Concurrent Versions System (CVS)'
285 PACKAGE_TARNAME='cvs'
286 PACKAGE_VERSION='1.12.9'
287 PACKAGE_STRING='Concurrent Versions System (CVS) 1.12.9'
288 PACKAGE_BUGREPORT='bug-cvs@gnu.org'
289
290 ac_unique_file="src/cvs.h"
291 # Factoring default headers for most tests.
292 ac_includes_default="\
293 #include <stdio.h>
294 #if HAVE_SYS_TYPES_H
295 # include <sys/types.h>
296 #endif
297 #if HAVE_SYS_STAT_H
298 # include <sys/stat.h>
299 #endif
300 #if STDC_HEADERS
301 # include <stdlib.h>
302 # include <stddef.h>
303 #else
304 # if HAVE_STDLIB_H
305 #  include <stdlib.h>
306 # endif
307 #endif
308 #if HAVE_STRING_H
309 # if !STDC_HEADERS && HAVE_MEMORY_H
310 #  include <memory.h>
311 # endif
312 # include <string.h>
313 #endif
314 #if HAVE_STRINGS_H
315 # include <strings.h>
316 #endif
317 #if HAVE_INTTYPES_H
318 # include <inttypes.h>
319 #else
320 # if HAVE_STDINT_H
321 #  include <stdint.h>
322 # endif
323 #endif
324 #if HAVE_UNISTD_H
325 # include <unistd.h>
326 #endif"
327
328 gl_header_list=
329 gl_func_list=
330 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 LN_S PERL CSH MKTEMP SENDMAIL PR ROFF PS2PDF TEXI2DVI MAKE_TARGETS_IN_VPATH_TRUE MAKE_TARGETS_IN_VPATH_FALSE LIBOBJS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB STDBOOL_H HAVE__BOOL ALLOCA ALLOCA_H FNMATCH_H LIB_NANOSLEEP YACC YFLAGS LIB_CLOCK_GETTIME HAVE_PUTENV cvs_client_objects KRB4 ZLIB_SUBDIRS ZLIB_CPPFLAGS ZLIB_LIBS with_default_rsh RSH_DFLT EDITOR LTLIBOBJS'
331 ac_subst_files='MKTEMP_SH_FUNCTION'
332
333 # Initialize some variables set by options.
334 ac_init_help=
335 ac_init_version=false
336 # The variables have the same names as the options, with
337 # dashes changed to underlines.
338 cache_file=/dev/null
339 exec_prefix=NONE
340 no_create=
341 no_recursion=
342 prefix=NONE
343 program_prefix=NONE
344 program_suffix=NONE
345 program_transform_name=s,x,x,
346 silent=
347 site=
348 srcdir=
349 verbose=
350 x_includes=NONE
351 x_libraries=NONE
352
353 # Installation directory options.
354 # These are left unexpanded so users can "make install exec_prefix=/foo"
355 # and all the variables that are supposed to be based on exec_prefix
356 # by default will actually change.
357 # Use braces instead of parens because sh, perl, etc. also accept them.
358 bindir='${exec_prefix}/bin'
359 sbindir='${exec_prefix}/sbin'
360 libexecdir='${exec_prefix}/libexec'
361 datadir='${prefix}/share'
362 sysconfdir='${prefix}/etc'
363 sharedstatedir='${prefix}/com'
364 localstatedir='${prefix}/var'
365 libdir='${exec_prefix}/lib'
366 includedir='${prefix}/include'
367 oldincludedir='/usr/include'
368 infodir='${prefix}/info'
369 mandir='${prefix}/man'
370
371 ac_prev=
372 for ac_option
373 do
374   # If the previous option needs an argument, assign it.
375   if test -n "$ac_prev"; then
376     eval "$ac_prev=\$ac_option"
377     ac_prev=
378     continue
379   fi
380
381   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
382
383   # Accept the important Cygnus configure options, so we can diagnose typos.
384
385   case $ac_option in
386
387   -bindir | --bindir | --bindi | --bind | --bin | --bi)
388     ac_prev=bindir ;;
389   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
390     bindir=$ac_optarg ;;
391
392   -build | --build | --buil | --bui | --bu)
393     ac_prev=build_alias ;;
394   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
395     build_alias=$ac_optarg ;;
396
397   -cache-file | --cache-file | --cache-fil | --cache-fi \
398   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
399     ac_prev=cache_file ;;
400   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
401   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
402     cache_file=$ac_optarg ;;
403
404   --config-cache | -C)
405     cache_file=config.cache ;;
406
407   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
408     ac_prev=datadir ;;
409   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
410   | --da=*)
411     datadir=$ac_optarg ;;
412
413   -disable-* | --disable-*)
414     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
415     # Reject names that are not valid shell variable names.
416     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
417       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
418    { (exit 1); exit 1; }; }
419     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
420     eval "enable_$ac_feature=no" ;;
421
422   -enable-* | --enable-*)
423     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
424     # Reject names that are not valid shell variable names.
425     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
426       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
427    { (exit 1); exit 1; }; }
428     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
429     case $ac_option in
430       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
431       *) ac_optarg=yes ;;
432     esac
433     eval "enable_$ac_feature='$ac_optarg'" ;;
434
435   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
436   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
437   | --exec | --exe | --ex)
438     ac_prev=exec_prefix ;;
439   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
440   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
441   | --exec=* | --exe=* | --ex=*)
442     exec_prefix=$ac_optarg ;;
443
444   -gas | --gas | --ga | --g)
445     # Obsolete; use --with-gas.
446     with_gas=yes ;;
447
448   -help | --help | --hel | --he | -h)
449     ac_init_help=long ;;
450   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
451     ac_init_help=recursive ;;
452   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
453     ac_init_help=short ;;
454
455   -host | --host | --hos | --ho)
456     ac_prev=host_alias ;;
457   -host=* | --host=* | --hos=* | --ho=*)
458     host_alias=$ac_optarg ;;
459
460   -includedir | --includedir | --includedi | --included | --include \
461   | --includ | --inclu | --incl | --inc)
462     ac_prev=includedir ;;
463   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
464   | --includ=* | --inclu=* | --incl=* | --inc=*)
465     includedir=$ac_optarg ;;
466
467   -infodir | --infodir | --infodi | --infod | --info | --inf)
468     ac_prev=infodir ;;
469   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
470     infodir=$ac_optarg ;;
471
472   -libdir | --libdir | --libdi | --libd)
473     ac_prev=libdir ;;
474   -libdir=* | --libdir=* | --libdi=* | --libd=*)
475     libdir=$ac_optarg ;;
476
477   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
478   | --libexe | --libex | --libe)
479     ac_prev=libexecdir ;;
480   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
481   | --libexe=* | --libex=* | --libe=*)
482     libexecdir=$ac_optarg ;;
483
484   -localstatedir | --localstatedir | --localstatedi | --localstated \
485   | --localstate | --localstat | --localsta | --localst \
486   | --locals | --local | --loca | --loc | --lo)
487     ac_prev=localstatedir ;;
488   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
489   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
490   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
491     localstatedir=$ac_optarg ;;
492
493   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
494     ac_prev=mandir ;;
495   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
496     mandir=$ac_optarg ;;
497
498   -nfp | --nfp | --nf)
499     # Obsolete; use --without-fp.
500     with_fp=no ;;
501
502   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503   | --no-cr | --no-c | -n)
504     no_create=yes ;;
505
506   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
508     no_recursion=yes ;;
509
510   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
511   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
512   | --oldin | --oldi | --old | --ol | --o)
513     ac_prev=oldincludedir ;;
514   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
515   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
516   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
517     oldincludedir=$ac_optarg ;;
518
519   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
520     ac_prev=prefix ;;
521   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
522     prefix=$ac_optarg ;;
523
524   -program-prefix | --program-prefix | --program-prefi | --program-pref \
525   | --program-pre | --program-pr | --program-p)
526     ac_prev=program_prefix ;;
527   -program-prefix=* | --program-prefix=* | --program-prefi=* \
528   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
529     program_prefix=$ac_optarg ;;
530
531   -program-suffix | --program-suffix | --program-suffi | --program-suff \
532   | --program-suf | --program-su | --program-s)
533     ac_prev=program_suffix ;;
534   -program-suffix=* | --program-suffix=* | --program-suffi=* \
535   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
536     program_suffix=$ac_optarg ;;
537
538   -program-transform-name | --program-transform-name \
539   | --program-transform-nam | --program-transform-na \
540   | --program-transform-n | --program-transform- \
541   | --program-transform | --program-transfor \
542   | --program-transfo | --program-transf \
543   | --program-trans | --program-tran \
544   | --progr-tra | --program-tr | --program-t)
545     ac_prev=program_transform_name ;;
546   -program-transform-name=* | --program-transform-name=* \
547   | --program-transform-nam=* | --program-transform-na=* \
548   | --program-transform-n=* | --program-transform-=* \
549   | --program-transform=* | --program-transfor=* \
550   | --program-transfo=* | --program-transf=* \
551   | --program-trans=* | --program-tran=* \
552   | --progr-tra=* | --program-tr=* | --program-t=*)
553     program_transform_name=$ac_optarg ;;
554
555   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
556   | -silent | --silent | --silen | --sile | --sil)
557     silent=yes ;;
558
559   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
560     ac_prev=sbindir ;;
561   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
562   | --sbi=* | --sb=*)
563     sbindir=$ac_optarg ;;
564
565   -sharedstatedir | --sharedstatedir | --sharedstatedi \
566   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
567   | --sharedst | --shareds | --shared | --share | --shar \
568   | --sha | --sh)
569     ac_prev=sharedstatedir ;;
570   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
571   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
572   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
573   | --sha=* | --sh=*)
574     sharedstatedir=$ac_optarg ;;
575
576   -site | --site | --sit)
577     ac_prev=site ;;
578   -site=* | --site=* | --sit=*)
579     site=$ac_optarg ;;
580
581   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
582     ac_prev=srcdir ;;
583   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
584     srcdir=$ac_optarg ;;
585
586   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
587   | --syscon | --sysco | --sysc | --sys | --sy)
588     ac_prev=sysconfdir ;;
589   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
590   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
591     sysconfdir=$ac_optarg ;;
592
593   -target | --target | --targe | --targ | --tar | --ta | --t)
594     ac_prev=target_alias ;;
595   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
596     target_alias=$ac_optarg ;;
597
598   -v | -verbose | --verbose | --verbos | --verbo | --verb)
599     verbose=yes ;;
600
601   -version | --version | --versio | --versi | --vers | -V)
602     ac_init_version=: ;;
603
604   -with-* | --with-*)
605     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
606     # Reject names that are not valid shell variable names.
607     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608       { echo "$as_me: error: invalid package name: $ac_package" >&2
609    { (exit 1); exit 1; }; }
610     ac_package=`echo $ac_package| sed 's/-/_/g'`
611     case $ac_option in
612       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
613       *) ac_optarg=yes ;;
614     esac
615     eval "with_$ac_package='$ac_optarg'" ;;
616
617   -without-* | --without-*)
618     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
619     # Reject names that are not valid shell variable names.
620     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
621       { echo "$as_me: error: invalid package name: $ac_package" >&2
622    { (exit 1); exit 1; }; }
623     ac_package=`echo $ac_package | sed 's/-/_/g'`
624     eval "with_$ac_package=no" ;;
625
626   --x)
627     # Obsolete; use --with-x.
628     with_x=yes ;;
629
630   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
631   | --x-incl | --x-inc | --x-in | --x-i)
632     ac_prev=x_includes ;;
633   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
634   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
635     x_includes=$ac_optarg ;;
636
637   -x-libraries | --x-libraries | --x-librarie | --x-librari \
638   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
639     ac_prev=x_libraries ;;
640   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
641   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
642     x_libraries=$ac_optarg ;;
643
644   -*) { echo "$as_me: error: unrecognized option: $ac_option
645 Try \`$0 --help' for more information." >&2
646    { (exit 1); exit 1; }; }
647     ;;
648
649   *=*)
650     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
651     # Reject names that are not valid shell variable names.
652     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
653       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
654    { (exit 1); exit 1; }; }
655     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
656     eval "$ac_envvar='$ac_optarg'"
657     export $ac_envvar ;;
658
659   *)
660     # FIXME: should be removed in autoconf 3.0.
661     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
662     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
663       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
664     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
665     ;;
666
667   esac
668 done
669
670 if test -n "$ac_prev"; then
671   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
672   { echo "$as_me: error: missing argument to $ac_option" >&2
673    { (exit 1); exit 1; }; }
674 fi
675
676 # Be sure to have absolute paths.
677 for ac_var in exec_prefix prefix
678 do
679   eval ac_val=$`echo $ac_var`
680   case $ac_val in
681     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
682     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683    { (exit 1); exit 1; }; };;
684   esac
685 done
686
687 # Be sure to have absolute paths.
688 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
689               localstatedir libdir includedir oldincludedir infodir mandir
690 do
691   eval ac_val=$`echo $ac_var`
692   case $ac_val in
693     [\\/$]* | ?:[\\/]* ) ;;
694     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
695    { (exit 1); exit 1; }; };;
696   esac
697 done
698
699 # There might be people who depend on the old broken behavior: `$host'
700 # used to hold the argument of --host etc.
701 # FIXME: To remove some day.
702 build=$build_alias
703 host=$host_alias
704 target=$target_alias
705
706 # FIXME: To remove some day.
707 if test "x$host_alias" != x; then
708   if test "x$build_alias" = x; then
709     cross_compiling=maybe
710     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
711     If a cross compiler is detected then cross compile mode will be used." >&2
712   elif test "x$build_alias" != "x$host_alias"; then
713     cross_compiling=yes
714   fi
715 fi
716
717 ac_tool_prefix=
718 test -n "$host_alias" && ac_tool_prefix=$host_alias-
719
720 test "$silent" = yes && exec 6>/dev/null
721
722
723 # Find the source files, if location was not specified.
724 if test -z "$srcdir"; then
725   ac_srcdir_defaulted=yes
726   # Try the directory containing this script, then its parent.
727   ac_confdir=`(dirname "$0") 2>/dev/null ||
728 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
729          X"$0" : 'X\(//\)[^/]' \| \
730          X"$0" : 'X\(//\)$' \| \
731          X"$0" : 'X\(/\)' \| \
732          .     : '\(.\)' 2>/dev/null ||
733 echo X"$0" |
734     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
735           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
736           /^X\(\/\/\)$/{ s//\1/; q; }
737           /^X\(\/\).*/{ s//\1/; q; }
738           s/.*/./; q'`
739   srcdir=$ac_confdir
740   if test ! -r $srcdir/$ac_unique_file; then
741     srcdir=..
742   fi
743 else
744   ac_srcdir_defaulted=no
745 fi
746 if test ! -r $srcdir/$ac_unique_file; then
747   if test "$ac_srcdir_defaulted" = yes; then
748     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
749    { (exit 1); exit 1; }; }
750   else
751     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
752    { (exit 1); exit 1; }; }
753   fi
754 fi
755 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
756   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
757    { (exit 1); exit 1; }; }
758 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
759 ac_env_build_alias_set=${build_alias+set}
760 ac_env_build_alias_value=$build_alias
761 ac_cv_env_build_alias_set=${build_alias+set}
762 ac_cv_env_build_alias_value=$build_alias
763 ac_env_host_alias_set=${host_alias+set}
764 ac_env_host_alias_value=$host_alias
765 ac_cv_env_host_alias_set=${host_alias+set}
766 ac_cv_env_host_alias_value=$host_alias
767 ac_env_target_alias_set=${target_alias+set}
768 ac_env_target_alias_value=$target_alias
769 ac_cv_env_target_alias_set=${target_alias+set}
770 ac_cv_env_target_alias_value=$target_alias
771 ac_env_CC_set=${CC+set}
772 ac_env_CC_value=$CC
773 ac_cv_env_CC_set=${CC+set}
774 ac_cv_env_CC_value=$CC
775 ac_env_CFLAGS_set=${CFLAGS+set}
776 ac_env_CFLAGS_value=$CFLAGS
777 ac_cv_env_CFLAGS_set=${CFLAGS+set}
778 ac_cv_env_CFLAGS_value=$CFLAGS
779 ac_env_LDFLAGS_set=${LDFLAGS+set}
780 ac_env_LDFLAGS_value=$LDFLAGS
781 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
782 ac_cv_env_LDFLAGS_value=$LDFLAGS
783 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
784 ac_env_CPPFLAGS_value=$CPPFLAGS
785 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
786 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
787 ac_env_CPP_set=${CPP+set}
788 ac_env_CPP_value=$CPP
789 ac_cv_env_CPP_set=${CPP+set}
790 ac_cv_env_CPP_value=$CPP
791 ac_env_YACC_set=${YACC+set}
792 ac_env_YACC_value=$YACC
793 ac_cv_env_YACC_set=${YACC+set}
794 ac_cv_env_YACC_value=$YACC
795 ac_env_YFLAGS_set=${YFLAGS+set}
796 ac_env_YFLAGS_value=$YFLAGS
797 ac_cv_env_YFLAGS_set=${YFLAGS+set}
798 ac_cv_env_YFLAGS_value=$YFLAGS
799 ac_env_EDITOR_set=${EDITOR+set}
800 ac_env_EDITOR_value=$EDITOR
801 ac_cv_env_EDITOR_set=${EDITOR+set}
802 ac_cv_env_EDITOR_value=$EDITOR
803
804 #
805 # Report the --help message.
806 #
807 if test "$ac_init_help" = "long"; then
808   # Omit some internal or obsolete options to make the list less imposing.
809   # This message is too long to be a string in the A/UX 3.1 sh.
810   cat <<_ACEOF
811 \`configure' configures Concurrent Versions System (CVS) 1.12.9 to adapt to many kinds of systems.
812
813 Usage: $0 [OPTION]... [VAR=VALUE]...
814
815 To assign environment variables (e.g., CC, CFLAGS...), specify them as
816 VAR=VALUE.  See below for descriptions of some of the useful variables.
817
818 Defaults for the options are specified in brackets.
819
820 Configuration:
821   -h, --help              display this help and exit
822       --help=short        display options specific to this package
823       --help=recursive    display the short help of all the included packages
824   -V, --version           display version information and exit
825   -q, --quiet, --silent   do not print \`checking...' messages
826       --cache-file=FILE   cache test results in FILE [disabled]
827   -C, --config-cache      alias for \`--cache-file=config.cache'
828   -n, --no-create         do not create output files
829       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
830
831 _ACEOF
832
833   cat <<_ACEOF
834 Installation directories:
835   --prefix=PREFIX         install architecture-independent files in PREFIX
836                           [$ac_default_prefix]
837   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
838                           [PREFIX]
839
840 By default, \`make install' will install all the files in
841 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
842 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
843 for instance \`--prefix=\$HOME'.
844
845 For better control, use the options below.
846
847 Fine tuning of the installation directories:
848   --bindir=DIR           user executables [EPREFIX/bin]
849   --sbindir=DIR          system admin executables [EPREFIX/sbin]
850   --libexecdir=DIR       program executables [EPREFIX/libexec]
851   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
852   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
853   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
854   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
855   --libdir=DIR           object code libraries [EPREFIX/lib]
856   --includedir=DIR       C header files [PREFIX/include]
857   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
858   --infodir=DIR          info documentation [PREFIX/info]
859   --mandir=DIR           man documentation [PREFIX/man]
860 _ACEOF
861
862   cat <<\_ACEOF
863
864 Program names:
865   --program-prefix=PREFIX            prepend PREFIX to installed program names
866   --program-suffix=SUFFIX            append SUFFIX to installed program names
867   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
868
869 System types:
870   --build=BUILD     configure for building on BUILD [guessed]
871   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
872 _ACEOF
873 fi
874
875 if test -n "$ac_init_help"; then
876   case $ac_init_help in
877      short | recursive ) echo "Configuration of Concurrent Versions System (CVS) 1.12.9:";;
878    esac
879   cat <<\_ACEOF
880
881 Optional Features:
882   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
883   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
884   --enable-maintainer-mode enable make rules and dependencies not useful
885                           (and sometimes confusing) to the casual installer
886   --disable-dependency-tracking Speeds up one-time builds
887   --enable-dependency-tracking  Do not reject slow dependency extractors
888   --disable-largefile     omit support for large files
889   --disable-nls           do not use Native Language Support
890   --disable-rpath         do not hardcode runtime library paths
891   --enable-cvs-ndbm       Use the NDBM library distributed with CVS rather
892                           than attempting to use a system NDBM library.
893                           Disabling this may not work. (default)
894   --enable-client         Include code for running as a remote client
895                           (default)
896   --enable-password-authenticated-client
897                           Enable pserver as a remote access method in the CVS
898                           client (default)
899   --enable-server         Include code for running as a server (default)
900   --enable-server-flow-control
901                           If you are working with a large remote repository
902                           and a 'cvs checkout' is swamping your network and
903                           memory, define these to enable flow control. You may
904                           optionally pass a low water mark in bytes and a high
905                           water mark in bytes, separated by commas. (default
906                           is enabled 1M,2M)
907   --enable-pam            Use to enable system authentication with PAM instead
908                           of using the simple getpwnam interface. This allows
909                           authentication (in theory) with any PAM module, e.g.
910                           on systems with shadow passwords or via LDAP
911   --enable-case-sensitivity
912                           Force CVS to expect a case sensitive file system.
913                           Enabling this on a case insensitive system should
914                           have little effect on the server or client
915                           operation, though client users may ocassionally be
916                           suprised that the CVS server appears to be case
917                           sensitive. Disabling this for a case sensitive
918                           server disables server support for case insensitive
919                           clients, which can confuse all users of case
920                           insensitive clients contacting the server. Disabling
921                           this for a case sensitive client will cause the
922                           client to ask servers to behave case insensitively,
923                           which could cause confusion for users, but also
924                           probably no real harm. (default autoselects based on
925                           the case sensitivity of the file system containing
926                           the current working directory)
927   --enable-encryption     Enable encryption support (disabled by default)
928   --enable-force-editor   When committing or importing files, you must enter a
929                           log message. Normally, you can do this either via
930                           the -m flag on the command line, the -F flag on the
931                           command line, or an editor will be started for you.
932                           If you like to use logging templates (the rcsinfo
933                           file within the $CVSROOT/CVSROOT directory), you
934                           might want to force people to use the editor even if
935                           they specify a message with -m or -F.
936                           --enable-force-editor will cause the -m or -F
937                           message to be appended to the temp file when the
938                           editor is started. (disabled by default)
939   --enable-lock-compatibility
940                           Include locking code which prevents versions of CVS
941                           earlier than 1.12.4 directly accessing the same
942                           repositiory as this executable from ignoring this
943                           executable's promotable read locks. If only CVS
944                           versions 1.12.4 and later will be accessing your
945                           repository directly (as a server or locally), you
946                           can safely disable this option in return for fewer
947                           disk accesses and a small speed increase. Disabling
948                           this option when versions of CVS earlier than 1,12,4
949                           _will_ be accessing your repository, however, is
950                           *VERY* *VERY* *VERY* dangerous and could result in
951                           data loss. (enabled by default)
952   --enable-rootcommit     Allow the root user to commit files (disabled by
953                           default)
954   --enable-old-info-format-support
955                           Enable support for the pre 1.12.1 *info scripting
956                           hook format strings. Disable this option for a
957                           smaller executable once your scripting hooks have
958                           been updated to use the new *info format strings
959                           (default).
960
961 Optional Packages:
962   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
963   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
964   --with-gnu-ld           assume the C compiler uses GNU ld default=no
965   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
966   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
967   --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
968   --without-libintl-prefix     don't search for libintl in includedir and libdir
969   --without-included-regex don't compile regex; this is the default on
970                           systems with version 2 of the GNU C library
971                           (use with caution on other system)
972   --with-krb4             Kerberos 4 directory (default /usr/kerberos)
973   --with-gssapi           GSSAPI directory (default autoselects)
974   --with-external-zlib    Use the specified ZLIB library (defaults to the
975                           version distributed with the CVS source)
976   --with-rsh              The default remote shell CVS will use for :ext:
977                           transport (default rsh)
978   --with-editor           The default text editor CVS should use for log
979                           messages (default autoselects)
980   --with-hardcoded-pam-service-name
981                           Use this to hard code a service name for PAM CVS
982                           authentication. The special name, `program_name',
983                           will cause CVS to use whatever name it was invoked
984                           as as the service name. (defaults to `cvs')
985   --with-tmpdir           The temporary directory CVS should use as a default
986                           (default autoselects)
987   --with-umask            Set the umask CVS will use by default in the
988                           repository (default 002)
989   --with-cvs-admin-group=GROUP
990                           The CVS admin command is restricted to the members
991                           of this group. If this group does not exist, all
992                           users are allowed to run CVS admin. To disable the
993                           CVS admin command for all users, create an empty
994                           group by specifying the --with-cvs-admin-group=
995                           option. To disable access control for CVS admin, run
996                           configure with the --without-cvs-admin-group option.
997                           (default 'cvsadmin')
998
999 Some influential environment variables:
1000   CC          C compiler command
1001   CFLAGS      C compiler flags
1002   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1003               nonstandard directory <lib dir>
1004   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1005               headers in a nonstandard directory <include dir>
1006   CPP         C preprocessor
1007   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1008               `bison -y'. Values other than `bison -y' will most likely break
1009               on most systems.
1010   YFLAGS      YFLAGS contains the list arguments that will be passed by
1011               default to Bison. This script will default YFLAGS to the empty
1012               string to avoid a default value of `-d' given by some make
1013               applications.
1014   EDITOR      The text editor CVS will use by default for log messages.
1015
1016 Use these variables to override the choices made by `configure' or to help
1017 it to find libraries and programs with nonstandard names/locations.
1018
1019 Report bugs to <bug-cvs@gnu.org>.
1020 _ACEOF
1021 fi
1022
1023 if test "$ac_init_help" = "recursive"; then
1024   # If there are subdirs, report their specific --help.
1025   ac_popdir=`pwd`
1026   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1027     test -d $ac_dir || continue
1028     ac_builddir=.
1029
1030 if test "$ac_dir" != .; then
1031   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1032   # A "../" for each directory in $ac_dir_suffix.
1033   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1034 else
1035   ac_dir_suffix= ac_top_builddir=
1036 fi
1037
1038 case $srcdir in
1039   .)  # No --srcdir option.  We are building in place.
1040     ac_srcdir=.
1041     if test -z "$ac_top_builddir"; then
1042        ac_top_srcdir=.
1043     else
1044        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1045     fi ;;
1046   [\\/]* | ?:[\\/]* )  # Absolute path.
1047     ac_srcdir=$srcdir$ac_dir_suffix;
1048     ac_top_srcdir=$srcdir ;;
1049   *) # Relative path.
1050     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1051     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1052 esac
1053 case "$ac_dir" in
1054 .) ac_abs_builddir=$ac_builddir;;
1055 *)
1056   case $ac_builddir in
1057   .) ac_abs_builddir="$ac_dir";;
1058   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1059   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1060   esac;;
1061 esac
1062 case "$ac_dir" in
1063 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1064 *)
1065   case ${ac_top_builddir}. in
1066   .) ac_abs_top_builddir="$ac_dir";;
1067   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1068   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1069   esac;;
1070 esac
1071 case "$ac_dir" in
1072 .) ac_abs_srcdir=$ac_srcdir;;
1073 *)
1074   case $ac_srcdir in
1075   .) ac_abs_srcdir="$ac_dir";;
1076   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1077   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1078   esac;;
1079 esac
1080 case "$ac_dir" in
1081 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1082 *)
1083   case $ac_top_srcdir in
1084   .) ac_abs_top_srcdir="$ac_dir";;
1085   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1086   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1087   esac;;
1088 esac
1089
1090     cd $ac_dir
1091     # Check for guested configure; otherwise get Cygnus style configure.
1092     if test -f $ac_srcdir/configure.gnu; then
1093       echo
1094       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1095     elif test -f $ac_srcdir/configure; then
1096       echo
1097       $SHELL $ac_srcdir/configure  --help=recursive
1098     elif test -f $ac_srcdir/configure.ac ||
1099            test -f $ac_srcdir/configure.in; then
1100       echo
1101       $ac_configure --help
1102     else
1103       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1104     fi
1105     cd $ac_popdir
1106   done
1107 fi
1108
1109 test -n "$ac_init_help" && exit 0
1110 if $ac_init_version; then
1111   cat <<\_ACEOF
1112 Concurrent Versions System (CVS) configure 1.12.9
1113 generated by GNU Autoconf 2.58
1114
1115 Copyright (C) 2003 Free Software Foundation, Inc.
1116 This configure script is free software; the Free Software Foundation
1117 gives unlimited permission to copy, distribute and modify it.
1118
1119 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
1120               1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
1121               Free Software Foundation, Inc.
1122
1123 This program is free software; you can redistribute it and/or modify
1124 it under the terms of the GNU General Public License as published by
1125 the Free Software Foundation; either version 2, or (at your option)
1126 any later version.
1127
1128 This program is distributed in the hope that it will be useful,
1129 but WITHOUT ANY WARRANTY; without even the implied warranty of
1130 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1131 GNU General Public License for more details.
1132 _ACEOF
1133   exit 0
1134 fi
1135 exec 5>config.log
1136 cat >&5 <<_ACEOF
1137 This file contains any messages produced by compilers while
1138 running configure, to aid debugging if configure makes a mistake.
1139
1140 It was created by Concurrent Versions System (CVS) $as_me 1.12.9, which was
1141 generated by GNU Autoconf 2.58.  Invocation command line was
1142
1143   $ $0 $@
1144
1145 _ACEOF
1146 {
1147 cat <<_ASUNAME
1148 ## --------- ##
1149 ## Platform. ##
1150 ## --------- ##
1151
1152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1157
1158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1159 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1160
1161 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1162 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1164 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1165 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1166 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1167 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1168
1169 _ASUNAME
1170
1171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1172 for as_dir in $PATH
1173 do
1174   IFS=$as_save_IFS
1175   test -z "$as_dir" && as_dir=.
1176   echo "PATH: $as_dir"
1177 done
1178
1179 } >&5
1180
1181 cat >&5 <<_ACEOF
1182
1183
1184 ## ----------- ##
1185 ## Core tests. ##
1186 ## ----------- ##
1187
1188 _ACEOF
1189
1190
1191 # Keep a trace of the command line.
1192 # Strip out --no-create and --no-recursion so they do not pile up.
1193 # Strip out --silent because we don't want to record it for future runs.
1194 # Also quote any args containing shell meta-characters.
1195 # Make two passes to allow for proper duplicate-argument suppression.
1196 ac_configure_args=
1197 ac_configure_args0=
1198 ac_configure_args1=
1199 ac_sep=
1200 ac_must_keep_next=false
1201 for ac_pass in 1 2
1202 do
1203   for ac_arg
1204   do
1205     case $ac_arg in
1206     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1207     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208     | -silent | --silent | --silen | --sile | --sil)
1209       continue ;;
1210     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1211       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1212     esac
1213     case $ac_pass in
1214     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1215     2)
1216       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1217       if test $ac_must_keep_next = true; then
1218         ac_must_keep_next=false # Got value, back to normal.
1219       else
1220         case $ac_arg in
1221           *=* | --config-cache | -C | -disable-* | --disable-* \
1222           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1223           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1224           | -with-* | --with-* | -without-* | --without-* | --x)
1225             case "$ac_configure_args0 " in
1226               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1227             esac
1228             ;;
1229           -* ) ac_must_keep_next=true ;;
1230         esac
1231       fi
1232       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1233       # Get rid of the leading space.
1234       ac_sep=" "
1235       ;;
1236     esac
1237   done
1238 done
1239 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1240 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1241
1242 # When interrupted or exit'd, cleanup temporary files, and complete
1243 # config.log.  We remove comments because anyway the quotes in there
1244 # would cause problems or look ugly.
1245 # WARNING: Be sure not to use single quotes in there, as some shells,
1246 # such as our DU 5.0 friend, will then `close' the trap.
1247 trap 'exit_status=$?
1248   # Save into config.log some information that might help in debugging.
1249   {
1250     echo
1251
1252     cat <<\_ASBOX
1253 ## ---------------- ##
1254 ## Cache variables. ##
1255 ## ---------------- ##
1256 _ASBOX
1257     echo
1258     # The following way of writing the cache mishandles newlines in values,
1259 {
1260   (set) 2>&1 |
1261     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1262     *ac_space=\ *)
1263       sed -n \
1264         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1265           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1266       ;;
1267     *)
1268       sed -n \
1269         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1270       ;;
1271     esac;
1272 }
1273     echo
1274
1275     cat <<\_ASBOX
1276 ## ----------------- ##
1277 ## Output variables. ##
1278 ## ----------------- ##
1279 _ASBOX
1280     echo
1281     for ac_var in $ac_subst_vars
1282     do
1283       eval ac_val=$`echo $ac_var`
1284       echo "$ac_var='"'"'$ac_val'"'"'"
1285     done | sort
1286     echo
1287
1288     if test -n "$ac_subst_files"; then
1289       cat <<\_ASBOX
1290 ## ------------- ##
1291 ## Output files. ##
1292 ## ------------- ##
1293 _ASBOX
1294       echo
1295       for ac_var in $ac_subst_files
1296       do
1297         eval ac_val=$`echo $ac_var`
1298         echo "$ac_var='"'"'$ac_val'"'"'"
1299       done | sort
1300       echo
1301     fi
1302
1303     if test -s confdefs.h; then
1304       cat <<\_ASBOX
1305 ## ----------- ##
1306 ## confdefs.h. ##
1307 ## ----------- ##
1308 _ASBOX
1309       echo
1310       sed "/^$/d" confdefs.h | sort
1311       echo
1312     fi
1313     test "$ac_signal" != 0 &&
1314       echo "$as_me: caught signal $ac_signal"
1315     echo "$as_me: exit $exit_status"
1316   } >&5
1317   rm -f core *.core &&
1318   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1319     exit $exit_status
1320      ' 0
1321 for ac_signal in 1 2 13 15; do
1322   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1323 done
1324 ac_signal=0
1325
1326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1327 rm -rf conftest* confdefs.h
1328 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1329 echo >confdefs.h
1330
1331 # Predefined preprocessor variables.
1332
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_NAME "$PACKAGE_NAME"
1335 _ACEOF
1336
1337
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1340 _ACEOF
1341
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_STRING "$PACKAGE_STRING"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1355 _ACEOF
1356
1357
1358 # Let the site file select an alternate cache file if it wants to.
1359 # Prefer explicitly selected file to automatically selected ones.
1360 if test -z "$CONFIG_SITE"; then
1361   if test "x$prefix" != xNONE; then
1362     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1363   else
1364     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1365   fi
1366 fi
1367 for ac_site_file in $CONFIG_SITE; do
1368   if test -r "$ac_site_file"; then
1369     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1370 echo "$as_me: loading site script $ac_site_file" >&6;}
1371     sed 's/^/| /' "$ac_site_file" >&5
1372     . "$ac_site_file"
1373   fi
1374 done
1375
1376 if test -r "$cache_file"; then
1377   # Some versions of bash will fail to source /dev/null (special
1378   # files actually), so we avoid doing that.
1379   if test -f "$cache_file"; then
1380     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1381 echo "$as_me: loading cache $cache_file" >&6;}
1382     case $cache_file in
1383       [\\/]* | ?:[\\/]* ) . $cache_file;;
1384       *)                      . ./$cache_file;;
1385     esac
1386   fi
1387 else
1388   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1389 echo "$as_me: creating cache $cache_file" >&6;}
1390   >$cache_file
1391 fi
1392
1393 # Check that the precious variables saved in the cache have kept the same
1394 # value.
1395 ac_cache_corrupted=false
1396 for ac_var in `(set) 2>&1 |
1397                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1398   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1399   eval ac_new_set=\$ac_env_${ac_var}_set
1400   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1401   eval ac_new_val="\$ac_env_${ac_var}_value"
1402   case $ac_old_set,$ac_new_set in
1403     set,)
1404       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1406       ac_cache_corrupted=: ;;
1407     ,set)
1408       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1409 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1410       ac_cache_corrupted=: ;;
1411     ,);;
1412     *)
1413       if test "x$ac_old_val" != "x$ac_new_val"; then
1414         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1415 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1416         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1417 echo "$as_me:   former value:  $ac_old_val" >&2;}
1418         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1419 echo "$as_me:   current value: $ac_new_val" >&2;}
1420         ac_cache_corrupted=:
1421       fi;;
1422   esac
1423   # Pass precious variables to config.status.
1424   if test "$ac_new_set" = set; then
1425     case $ac_new_val in
1426     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1427       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1428     *) ac_arg=$ac_var=$ac_new_val ;;
1429     esac
1430     case " $ac_configure_args " in
1431       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1432       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1433     esac
1434   fi
1435 done
1436 if $ac_cache_corrupted; then
1437   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1438 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1439   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1440 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1441    { (exit 1); exit 1; }; }
1442 fi
1443
1444 ac_ext=c
1445 ac_cpp='$CPP $CPPFLAGS'
1446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1449
1450
1451 gl_header_list="$gl_header_list fcntl.h"
1452 gl_header_list="$gl_header_list sys/time.h"
1453 gl_header_list="$gl_header_list unistd.h"
1454 gl_func_list="$gl_func_list mempcpy"
1455 gl_func_list="$gl_func_list isascii"
1456 gl_func_list="$gl_func_list gettimeofday"
1457 gl_header_list="$gl_header_list sys/param.h"
1458 gl_header_list="$gl_header_list wchar.h"
1459 gl_header_list="$gl_header_list wctype.h"
1460 gl_header_list="$gl_header_list stdlib.h"
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487 am__api_version="1.7"
1488 ac_aux_dir=
1489 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1490   if test -f $ac_dir/install-sh; then
1491     ac_aux_dir=$ac_dir
1492     ac_install_sh="$ac_aux_dir/install-sh -c"
1493     break
1494   elif test -f $ac_dir/install.sh; then
1495     ac_aux_dir=$ac_dir
1496     ac_install_sh="$ac_aux_dir/install.sh -c"
1497     break
1498   elif test -f $ac_dir/shtool; then
1499     ac_aux_dir=$ac_dir
1500     ac_install_sh="$ac_aux_dir/shtool install -c"
1501     break
1502   fi
1503 done
1504 if test -z "$ac_aux_dir"; then
1505   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1506 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513 # Find a good install program.  We prefer a C program (faster),
1514 # so one script is as good as another.  But avoid the broken or
1515 # incompatible versions:
1516 # SysV /etc/install, /usr/sbin/install
1517 # SunOS /usr/etc/install
1518 # IRIX /sbin/install
1519 # AIX /bin/install
1520 # AmigaOS /C/install, which installs bootblocks on floppy discs
1521 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1522 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1523 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1524 # OS/2's system install, which has a completely different semantic
1525 # ./install, which can be erroneously created by make from ./install.sh.
1526 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1527 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1528 if test -z "$INSTALL"; then
1529 if test "${ac_cv_path_install+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1534 do
1535   IFS=$as_save_IFS
1536   test -z "$as_dir" && as_dir=.
1537   # Account for people who put trailing slashes in PATH elements.
1538 case $as_dir/ in
1539   ./ | .// | /cC/* | \
1540   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1541   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1542   /usr/ucb/* ) ;;
1543   *)
1544     # OSF1 and SCO ODT 3.0 have their own names for install.
1545     # Don't use installbsd from OSF since it installs stuff as root
1546     # by default.
1547     for ac_prog in ginstall scoinst install; do
1548       for ac_exec_ext in '' $ac_executable_extensions; do
1549         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1550           if test $ac_prog = install &&
1551             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1552             # AIX install.  It has an incompatible calling convention.
1553             :
1554           elif test $ac_prog = install &&
1555             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1556             # program-specific install script used by HP pwplus--don't use.
1557             :
1558           else
1559             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1560             break 3
1561           fi
1562         fi
1563       done
1564     done
1565     ;;
1566 esac
1567 done
1568
1569
1570 fi
1571   if test "${ac_cv_path_install+set}" = set; then
1572     INSTALL=$ac_cv_path_install
1573   else
1574     # As a last resort, use the slow shell script.  We don't cache a
1575     # path for INSTALL within a source directory, because that will
1576     # break other packages using the cache if that directory is
1577     # removed, or if the path is relative.
1578     INSTALL=$ac_install_sh
1579   fi
1580 fi
1581 echo "$as_me:$LINENO: result: $INSTALL" >&5
1582 echo "${ECHO_T}$INSTALL" >&6
1583
1584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1585 # It thinks the first close brace ends the variable substitution.
1586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1587
1588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1589
1590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1591
1592 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1593 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1594 # Just in case
1595 sleep 1
1596 echo timestamp > conftest.file
1597 # Do `set' in a subshell so we don't clobber the current shell's
1598 # arguments.  Must try -L first in case configure is actually a
1599 # symlink; some systems play weird games with the mod time of symlinks
1600 # (eg FreeBSD returns the mod time of the symlink's containing
1601 # directory).
1602 if (
1603    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1604    if test "$*" = "X"; then
1605       # -L didn't work.
1606       set X `ls -t $srcdir/configure conftest.file`
1607    fi
1608    rm -f conftest.file
1609    if test "$*" != "X $srcdir/configure conftest.file" \
1610       && test "$*" != "X conftest.file $srcdir/configure"; then
1611
1612       # If neither matched, then we have a broken ls.  This can happen
1613       # if, for instance, CONFIG_SHELL is bash and it inherits a
1614       # broken ls alias from the environment.  This has actually
1615       # happened.  Such a system could not be considered "sane".
1616       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1617 alias in your environment" >&5
1618 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1619 alias in your environment" >&2;}
1620    { (exit 1); exit 1; }; }
1621    fi
1622
1623    test "$2" = conftest.file
1624    )
1625 then
1626    # Ok.
1627    :
1628 else
1629    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1630 Check your system clock" >&5
1631 echo "$as_me: error: newly created file is older than distributed files!
1632 Check your system clock" >&2;}
1633    { (exit 1); exit 1; }; }
1634 fi
1635 echo "$as_me:$LINENO: result: yes" >&5
1636 echo "${ECHO_T}yes" >&6
1637 test "$program_prefix" != NONE &&
1638   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1639 # Use a double $ so make ignores it.
1640 test "$program_suffix" != NONE &&
1641   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1642 # Double any \ or $.  echo might interpret backslashes.
1643 # By default was `s,x,x', remove it if useless.
1644 cat <<\_ACEOF >conftest.sed
1645 s/[\\$]/&&/g;s/;s,x,x,$//
1646 _ACEOF
1647 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1648 rm conftest.sed
1649
1650
1651 # expand $ac_aux_dir to an absolute path
1652 am_aux_dir=`cd $ac_aux_dir && pwd`
1653
1654 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1655 # Use eval to expand $SHELL
1656 if eval "$MISSING --run true"; then
1657   am_missing_run="$MISSING --run "
1658 else
1659   am_missing_run=
1660   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1661 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1662 fi
1663
1664 for ac_prog in gawk mawk nawk awk
1665 do
1666   # Extract the first word of "$ac_prog", so it can be a program name with args.
1667 set dummy $ac_prog; ac_word=$2
1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670 if test "${ac_cv_prog_AWK+set}" = set; then
1671   echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673   if test -n "$AWK"; then
1674   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1675 else
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 for as_dir in $PATH
1678 do
1679   IFS=$as_save_IFS
1680   test -z "$as_dir" && as_dir=.
1681   for ac_exec_ext in '' $ac_executable_extensions; do
1682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683     ac_cv_prog_AWK="$ac_prog"
1684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685     break 2
1686   fi
1687 done
1688 done
1689
1690 fi
1691 fi
1692 AWK=$ac_cv_prog_AWK
1693 if test -n "$AWK"; then
1694   echo "$as_me:$LINENO: result: $AWK" >&5
1695 echo "${ECHO_T}$AWK" >&6
1696 else
1697   echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1699 fi
1700
1701   test -n "$AWK" && break
1702 done
1703
1704 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1705 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1706 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1707 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1708   echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710   cat >conftest.make <<\_ACEOF
1711 all:
1712         @echo 'ac_maketemp="$(MAKE)"'
1713 _ACEOF
1714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1715 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1716 if test -n "$ac_maketemp"; then
1717   eval ac_cv_prog_make_${ac_make}_set=yes
1718 else
1719   eval ac_cv_prog_make_${ac_make}_set=no
1720 fi
1721 rm -f conftest.make
1722 fi
1723 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1724   echo "$as_me:$LINENO: result: yes" >&5
1725 echo "${ECHO_T}yes" >&6
1726   SET_MAKE=
1727 else
1728   echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6
1730   SET_MAKE="MAKE=${MAKE-make}"
1731 fi
1732
1733 rm -rf .tst 2>/dev/null
1734 mkdir .tst 2>/dev/null
1735 if test -d .tst; then
1736   am__leading_dot=.
1737 else
1738   am__leading_dot=_
1739 fi
1740 rmdir .tst 2>/dev/null
1741
1742  # test to see if srcdir already configured
1743 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1744    test -f $srcdir/config.status; then
1745   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1746 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1747    { (exit 1); exit 1; }; }
1748 fi
1749
1750 # test whether we have cygpath
1751 if test -z "$CYGPATH_W"; then
1752   if (cygpath --version) >/dev/null 2>/dev/null; then
1753     CYGPATH_W='cygpath -w'
1754   else
1755     CYGPATH_W=echo
1756   fi
1757 fi
1758
1759
1760 # Define the identity of the package.
1761  PACKAGE='cvs'
1762  VERSION='1.12.9'
1763
1764
1765 # Some tools Automake needs.
1766
1767 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1768
1769
1770 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1771
1772
1773 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1774
1775
1776 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1777
1778
1779 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1780
1781
1782 AMTAR=${AMTAR-"${am_missing_run}tar"}
1783
1784 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1785
1786 # Installed binaries are usually stripped using `strip' when the user
1787 # run `make install-strip'.  However `strip' might not be the right
1788 # tool to use in cross-compilation environments, therefore Automake
1789 # will honor the `STRIP' environment variable to overrule this program.
1790 if test "$cross_compiling" != no; then
1791   if test -n "$ac_tool_prefix"; then
1792   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1793 set dummy ${ac_tool_prefix}strip; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_STRIP+set}" = set; then
1797   echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799   if test -n "$STRIP"; then
1800   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1801 else
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 for as_dir in $PATH
1804 do
1805   IFS=$as_save_IFS
1806   test -z "$as_dir" && as_dir=.
1807   for ac_exec_ext in '' $ac_executable_extensions; do
1808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811     break 2
1812   fi
1813 done
1814 done
1815
1816 fi
1817 fi
1818 STRIP=$ac_cv_prog_STRIP
1819 if test -n "$STRIP"; then
1820   echo "$as_me:$LINENO: result: $STRIP" >&5
1821 echo "${ECHO_T}$STRIP" >&6
1822 else
1823   echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827 fi
1828 if test -z "$ac_cv_prog_STRIP"; then
1829   ac_ct_STRIP=$STRIP
1830   # Extract the first word of "strip", so it can be a program name with args.
1831 set dummy strip; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1835   echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837   if test -n "$ac_ct_STRIP"; then
1838   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1839 else
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843   IFS=$as_save_IFS
1844   test -z "$as_dir" && as_dir=.
1845   for ac_exec_ext in '' $ac_executable_extensions; do
1846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847     ac_cv_prog_ac_ct_STRIP="strip"
1848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849     break 2
1850   fi
1851 done
1852 done
1853
1854   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1855 fi
1856 fi
1857 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1858 if test -n "$ac_ct_STRIP"; then
1859   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1860 echo "${ECHO_T}$ac_ct_STRIP" >&6
1861 else
1862   echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1864 fi
1865
1866   STRIP=$ac_ct_STRIP
1867 else
1868   STRIP="$ac_cv_prog_STRIP"
1869 fi
1870
1871 fi
1872 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1873
1874 # We need awk for the "check" target.  The system "awk" is bad on
1875 # some platforms.
1876
1877
1878
1879
1880
1881 if test "x$prefix" = xNONE; then
1882   echo $ECHO_N "checking for prefix by $ECHO_C" >&6
1883   # Extract the first word of "cvs", so it can be a program name with args.
1884 set dummy cvs; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   case $ac_prefix_program in
1891   [\\/]* | ?:[\\/]*)
1892   ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
1893   ;;
1894   *)
1895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898   IFS=$as_save_IFS
1899   test -z "$as_dir" && as_dir=.
1900   for ac_exec_ext in '' $ac_executable_extensions; do
1901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902     ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
1903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904     break 2
1905   fi
1906 done
1907 done
1908
1909   ;;
1910 esac
1911 fi
1912 ac_prefix_program=$ac_cv_path_ac_prefix_program
1913
1914 if test -n "$ac_prefix_program"; then
1915   echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
1916 echo "${ECHO_T}$ac_prefix_program" >&6
1917 else
1918   echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1920 fi
1921
1922   if test -n "$ac_prefix_program"; then
1923     prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
1924 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1925          X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
1926          X"$ac_prefix_program" : 'X\(//\)$' \| \
1927          X"$ac_prefix_program" : 'X\(/\)' \| \
1928          .     : '\(.\)' 2>/dev/null ||
1929 echo X"$ac_prefix_program" |
1930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1931           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1932           /^X\(\/\/\)$/{ s//\1/; q; }
1933           /^X\(\/\).*/{ s//\1/; q; }
1934           s/.*/./; q'`
1935     prefix=`(dirname "$prefix") 2>/dev/null ||
1936 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1937          X"$prefix" : 'X\(//\)[^/]' \| \
1938          X"$prefix" : 'X\(//\)$' \| \
1939          X"$prefix" : 'X\(/\)' \| \
1940          .     : '\(.\)' 2>/dev/null ||
1941 echo X"$prefix" |
1942     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1943           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1944           /^X\(\/\/\)$/{ s//\1/; q; }
1945           /^X\(\/\).*/{ s//\1/; q; }
1946           s/.*/./; q'`
1947   fi
1948 fi
1949
1950           ac_config_headers="$ac_config_headers config.h"
1951
1952 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1953 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1954     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1955 if test "${enable_maintainer_mode+set}" = set; then
1956   enableval="$enable_maintainer_mode"
1957   USE_MAINTAINER_MODE=$enableval
1958 else
1959   USE_MAINTAINER_MODE=no
1960 fi;
1961   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1962 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1963
1964
1965 if test $USE_MAINTAINER_MODE = yes; then
1966   MAINTAINER_MODE_TRUE=
1967   MAINTAINER_MODE_FALSE='#'
1968 else
1969   MAINTAINER_MODE_TRUE='#'
1970   MAINTAINER_MODE_FALSE=
1971 fi
1972
1973   MAINT=$MAINTAINER_MODE_TRUE
1974
1975
1976
1977
1978 cat >>confdefs.h <<\_ACEOF
1979 #define _GNU_SOURCE 1
1980 _ACEOF
1981
1982
1983 DEPDIR="${am__leading_dot}deps"
1984
1985           ac_config_commands="$ac_config_commands depfiles"
1986
1987
1988 am_make=${MAKE-make}
1989 cat > confinc << 'END'
1990 am__doit:
1991         @echo done
1992 .PHONY: am__doit
1993 END
1994 # If we don't find an include directive, just comment out the code.
1995 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1996 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1997 am__include="#"
1998 am__quote=
1999 _am_result=none
2000 # First try GNU make style include.
2001 echo "include confinc" > confmf
2002 # We grep out `Entering directory' and `Leaving directory'
2003 # messages which can occur if `w' ends up in MAKEFLAGS.
2004 # In particular we don't look at `^make:' because GNU make might
2005 # be invoked under some other name (usually "gmake"), in which
2006 # case it prints its new name instead of `make'.
2007 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2008    am__include=include
2009    am__quote=
2010    _am_result=GNU
2011 fi
2012 # Now try BSD make style include.
2013 if test "$am__include" = "#"; then
2014    echo '.include "confinc"' > confmf
2015    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2016       am__include=.include
2017       am__quote="\""
2018       _am_result=BSD
2019    fi
2020 fi
2021
2022
2023 echo "$as_me:$LINENO: result: $_am_result" >&5
2024 echo "${ECHO_T}$_am_result" >&6
2025 rm -f confinc confmf
2026
2027 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2028 if test "${enable_dependency_tracking+set}" = set; then
2029   enableval="$enable_dependency_tracking"
2030
2031 fi;
2032 if test "x$enable_dependency_tracking" != xno; then
2033   am_depcomp="$ac_aux_dir/depcomp"
2034   AMDEPBACKSLASH='\'
2035 fi
2036
2037
2038 if test "x$enable_dependency_tracking" != xno; then
2039   AMDEP_TRUE=
2040   AMDEP_FALSE='#'
2041 else
2042   AMDEP_TRUE='#'
2043   AMDEP_FALSE=
2044 fi
2045
2046
2047
2048 ac_ext=c
2049 ac_cpp='$CPP $CPPFLAGS'
2050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053 if test -n "$ac_tool_prefix"; then
2054   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2055 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_CC+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   if test -n "$CC"; then
2062   ac_cv_prog_CC="$CC" # Let the user override the test.
2063 else
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067   IFS=$as_save_IFS
2068   test -z "$as_dir" && as_dir=.
2069   for ac_exec_ext in '' $ac_executable_extensions; do
2070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073     break 2
2074   fi
2075 done
2076 done
2077
2078 fi
2079 fi
2080 CC=$ac_cv_prog_CC
2081 if test -n "$CC"; then
2082   echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6
2084 else
2085   echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2087 fi
2088
2089 fi
2090 if test -z "$ac_cv_prog_CC"; then
2091   ac_ct_CC=$CC
2092   # Extract the first word of "gcc", so it can be a program name with args.
2093 set dummy gcc; ac_word=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   if test -n "$ac_ct_CC"; then
2100   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2101 else
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   for ac_exec_ext in '' $ac_executable_extensions; do
2108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109     ac_cv_prog_ac_ct_CC="gcc"
2110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111     break 2
2112   fi
2113 done
2114 done
2115
2116 fi
2117 fi
2118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2119 if test -n "$ac_ct_CC"; then
2120   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2121 echo "${ECHO_T}$ac_ct_CC" >&6
2122 else
2123   echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2125 fi
2126
2127   CC=$ac_ct_CC
2128 else
2129   CC="$ac_cv_prog_CC"
2130 fi
2131
2132 if test -z "$CC"; then
2133   if test -n "$ac_tool_prefix"; then
2134   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2135 set dummy ${ac_tool_prefix}cc; ac_word=$2
2136 echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138 if test "${ac_cv_prog_CC+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   if test -n "$CC"; then
2142   ac_cv_prog_CC="$CC" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147   IFS=$as_save_IFS
2148   test -z "$as_dir" && as_dir=.
2149   for ac_exec_ext in '' $ac_executable_extensions; do
2150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151     ac_cv_prog_CC="${ac_tool_prefix}cc"
2152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153     break 2
2154   fi
2155 done
2156 done
2157
2158 fi
2159 fi
2160 CC=$ac_cv_prog_CC
2161 if test -n "$CC"; then
2162   echo "$as_me:$LINENO: result: $CC" >&5
2163 echo "${ECHO_T}$CC" >&6
2164 else
2165   echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6
2167 fi
2168
2169 fi
2170 if test -z "$ac_cv_prog_CC"; then
2171   ac_ct_CC=$CC
2172   # Extract the first word of "cc", so it can be a program name with args.
2173 set dummy cc; ac_word=$2
2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   if test -n "$ac_ct_CC"; then
2180   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2181 else
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 for as_dir in $PATH
2184 do
2185   IFS=$as_save_IFS
2186   test -z "$as_dir" && as_dir=.
2187   for ac_exec_ext in '' $ac_executable_extensions; do
2188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189     ac_cv_prog_ac_ct_CC="cc"
2190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191     break 2
2192   fi
2193 done
2194 done
2195
2196 fi
2197 fi
2198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2199 if test -n "$ac_ct_CC"; then
2200   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2201 echo "${ECHO_T}$ac_ct_CC" >&6
2202 else
2203   echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6
2205 fi
2206
2207   CC=$ac_ct_CC
2208 else
2209   CC="$ac_cv_prog_CC"
2210 fi
2211
2212 fi
2213 if test -z "$CC"; then
2214   # Extract the first word of "cc", so it can be a program name with args.
2215 set dummy cc; ac_word=$2
2216 echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218 if test "${ac_cv_prog_CC+set}" = set; then
2219   echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221   if test -n "$CC"; then
2222   ac_cv_prog_CC="$CC" # Let the user override the test.
2223 else
2224   ac_prog_rejected=no
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228   IFS=$as_save_IFS
2229   test -z "$as_dir" && as_dir=.
2230   for ac_exec_ext in '' $ac_executable_extensions; do
2231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2233        ac_prog_rejected=yes
2234        continue
2235      fi
2236     ac_cv_prog_CC="cc"
2237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238     break 2
2239   fi
2240 done
2241 done
2242
2243 if test $ac_prog_rejected = yes; then
2244   # We found a bogon in the path, so make sure we never use it.
2245   set dummy $ac_cv_prog_CC
2246   shift
2247   if test $# != 0; then
2248     # We chose a different compiler from the bogus one.
2249     # However, it has the same basename, so the bogon will be chosen
2250     # first if we set CC to just the basename; use the full file name.
2251     shift
2252     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2253   fi
2254 fi
2255 fi
2256 fi
2257 CC=$ac_cv_prog_CC
2258 if test -n "$CC"; then
2259   echo "$as_me:$LINENO: result: $CC" >&5
2260 echo "${ECHO_T}$CC" >&6
2261 else
2262   echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2264 fi
2265
2266 fi
2267 if test -z "$CC"; then
2268   if test -n "$ac_tool_prefix"; then
2269   for ac_prog in cl
2270   do
2271     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275 if test "${ac_cv_prog_CC+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   if test -n "$CC"; then
2279   ac_cv_prog_CC="$CC" # Let the user override the test.
2280 else
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2283 do
2284   IFS=$as_save_IFS
2285   test -z "$as_dir" && as_dir=.
2286   for ac_exec_ext in '' $ac_executable_extensions; do
2287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290     break 2
2291   fi
2292 done
2293 done
2294
2295 fi
2296 fi
2297 CC=$ac_cv_prog_CC
2298 if test -n "$CC"; then
2299   echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6
2301 else
2302   echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2304 fi
2305
2306     test -n "$CC" && break
2307   done
2308 fi
2309 if test -z "$CC"; then
2310   ac_ct_CC=$CC
2311   for ac_prog in cl
2312 do
2313   # Extract the first word of "$ac_prog", so it can be a program name with args.
2314 set dummy $ac_prog; ac_word=$2
2315 echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2318   echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320   if test -n "$ac_ct_CC"; then
2321   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326   IFS=$as_save_IFS
2327   test -z "$as_dir" && as_dir=.
2328   for ac_exec_ext in '' $ac_executable_extensions; do
2329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330     ac_cv_prog_ac_ct_CC="$ac_prog"
2331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332     break 2
2333   fi
2334 done
2335 done
2336
2337 fi
2338 fi
2339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2340 if test -n "$ac_ct_CC"; then
2341   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2342 echo "${ECHO_T}$ac_ct_CC" >&6
2343 else
2344   echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2346 fi
2347
2348   test -n "$ac_ct_CC" && break
2349 done
2350
2351   CC=$ac_ct_CC
2352 fi
2353
2354 fi
2355
2356
2357 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2358 See \`config.log' for more details." >&5
2359 echo "$as_me: error: no acceptable C compiler found in \$PATH
2360 See \`config.log' for more details." >&2;}
2361    { (exit 1); exit 1; }; }
2362
2363 # Provide some information about the compiler.
2364 echo "$as_me:$LINENO:" \
2365      "checking for C compiler version" >&5
2366 ac_compiler=`set X $ac_compile; echo $2`
2367 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2368   (eval $ac_compiler --version </dev/null >&5) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }
2372 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2373   (eval $ac_compiler -v </dev/null >&5) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }
2377 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2378   (eval $ac_compiler -V </dev/null >&5) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }
2382
2383 cat >conftest.$ac_ext <<_ACEOF
2384 /* confdefs.h.  */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h.  */
2389
2390 int
2391 main ()
2392 {
2393
2394   ;
2395   return 0;
2396 }
2397 _ACEOF
2398 ac_clean_files_save=$ac_clean_files
2399 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2400 # Try to create an executable without -o first, disregard a.out.
2401 # It will help us diagnose broken compilers, and finding out an intuition
2402 # of exeext.
2403 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2404 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2405 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2406 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2407   (eval $ac_link_default) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; then
2411   # Find the output, starting from the most likely.  This scheme is
2412 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2413 # resort.
2414
2415 # Be careful to initialize this variable, since it used to be cached.
2416 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2417 ac_cv_exeext=
2418 # b.out is created by i960 compilers.
2419 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2420 do
2421   test -f "$ac_file" || continue
2422   case $ac_file in
2423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2424         ;;
2425     conftest.$ac_ext )
2426         # This is the source file.
2427         ;;
2428     [ab].out )
2429         # We found the default executable, but exeext='' is most
2430         # certainly right.
2431         break;;
2432     *.* )
2433         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2434         # FIXME: I believe we export ac_cv_exeext for Libtool,
2435         # but it would be cool to find out if it's true.  Does anybody
2436         # maintain Libtool? --akim.
2437         export ac_cv_exeext
2438         break;;
2439     * )
2440         break;;
2441   esac
2442 done
2443 else
2444   echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446
2447 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2448 See \`config.log' for more details." >&5
2449 echo "$as_me: error: C compiler cannot create executables
2450 See \`config.log' for more details." >&2;}
2451    { (exit 77); exit 77; }; }
2452 fi
2453
2454 ac_exeext=$ac_cv_exeext
2455 echo "$as_me:$LINENO: result: $ac_file" >&5
2456 echo "${ECHO_T}$ac_file" >&6
2457
2458 # Check the compiler produces executables we can run.  If not, either
2459 # the compiler is broken, or we cross compile.
2460 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2461 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2462 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2463 # If not cross compiling, check that we can run a simple program.
2464 if test "$cross_compiling" != yes; then
2465   if { ac_try='./$ac_file'
2466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467   (eval $ac_try) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; }; then
2471     cross_compiling=no
2472   else
2473     if test "$cross_compiling" = maybe; then
2474         cross_compiling=yes
2475     else
2476         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2477 If you meant to cross compile, use \`--host'.
2478 See \`config.log' for more details." >&5
2479 echo "$as_me: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details." >&2;}
2482    { (exit 1); exit 1; }; }
2483     fi
2484   fi
2485 fi
2486 echo "$as_me:$LINENO: result: yes" >&5
2487 echo "${ECHO_T}yes" >&6
2488
2489 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2490 ac_clean_files=$ac_clean_files_save
2491 # Check the compiler produces executables we can run.  If not, either
2492 # the compiler is broken, or we cross compile.
2493 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2494 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2495 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2496 echo "${ECHO_T}$cross_compiling" >&6
2497
2498 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2499 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2501   (eval $ac_link) 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; then
2505   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2506 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2507 # work properly (i.e., refer to `conftest.exe'), while it won't with
2508 # `rm'.
2509 for ac_file in conftest.exe conftest conftest.*; do
2510   test -f "$ac_file" || continue
2511   case $ac_file in
2512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2513     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2514           export ac_cv_exeext
2515           break;;
2516     * ) break;;
2517   esac
2518 done
2519 else
2520   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2521 See \`config.log' for more details." >&5
2522 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2523 See \`config.log' for more details." >&2;}
2524    { (exit 1); exit 1; }; }
2525 fi
2526
2527 rm -f conftest$ac_cv_exeext
2528 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2529 echo "${ECHO_T}$ac_cv_exeext" >&6
2530
2531 rm -f conftest.$ac_ext
2532 EXEEXT=$ac_cv_exeext
2533 ac_exeext=$EXEEXT
2534 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2535 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2536 if test "${ac_cv_objext+set}" = set; then
2537   echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539   cat >conftest.$ac_ext <<_ACEOF
2540 /* confdefs.h.  */
2541 _ACEOF
2542 cat confdefs.h >>conftest.$ac_ext
2543 cat >>conftest.$ac_ext <<_ACEOF
2544 /* end confdefs.h.  */
2545
2546 int
2547 main ()
2548 {
2549
2550   ;
2551   return 0;
2552 }
2553 _ACEOF
2554 rm -f conftest.o conftest.obj
2555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556   (eval $ac_compile) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; then
2560   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2561   case $ac_file in
2562     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2563     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2564        break;;
2565   esac
2566 done
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2572 See \`config.log' for more details." >&5
2573 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2574 See \`config.log' for more details." >&2;}
2575    { (exit 1); exit 1; }; }
2576 fi
2577
2578 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2579 fi
2580 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2581 echo "${ECHO_T}$ac_cv_objext" >&6
2582 OBJEXT=$ac_cv_objext
2583 ac_objext=$OBJEXT
2584 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2585 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2586 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
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
2596 int
2597 main ()
2598 {
2599 #ifndef __GNUC__
2600        choke me
2601 #endif
2602
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609   (eval $ac_compile) 2>conftest.er1
2610   ac_status=$?
2611   grep -v '^ *+' conftest.er1 >conftest.err
2612   rm -f conftest.er1
2613   cat conftest.err >&5
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); } &&
2616          { ac_try='test -z "$ac_c_werror_flag"
2617                          || test ! -s conftest.err'
2618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619   (eval $ac_try) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; } &&
2623          { ac_try='test -s conftest.$ac_objext'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   ac_compiler_gnu=yes
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 ac_compiler_gnu=no
2635 fi
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2638
2639 fi
2640 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2641 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2642 GCC=`test $ac_compiler_gnu = yes && echo yes`
2643 ac_test_CFLAGS=${CFLAGS+set}
2644 ac_save_CFLAGS=$CFLAGS
2645 CFLAGS="-g"
2646 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2647 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2648 if test "${ac_cv_prog_cc_g+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h.  */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h.  */
2657
2658 int
2659 main ()
2660 {
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>conftest.er1
2669   ac_status=$?
2670   grep -v '^ *+' conftest.er1 >conftest.err
2671   rm -f conftest.er1
2672   cat conftest.err >&5
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -z "$ac_c_werror_flag"
2676                          || test ! -s conftest.err'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; } &&
2682          { ac_try='test -s conftest.$ac_objext'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; }; then
2688   ac_cv_prog_cc_g=yes
2689 else
2690   echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 ac_cv_prog_cc_g=no
2694 fi
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 fi
2697 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2699 if test "$ac_test_CFLAGS" = set; then
2700   CFLAGS=$ac_save_CFLAGS
2701 elif test $ac_cv_prog_cc_g = yes; then
2702   if test "$GCC" = yes; then
2703     CFLAGS="-g -O2"
2704   else
2705     CFLAGS="-g"
2706   fi
2707 else
2708   if test "$GCC" = yes; then
2709     CFLAGS="-O2"
2710   else
2711     CFLAGS=
2712   fi
2713 fi
2714 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2715 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2716 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2717   echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719   ac_cv_prog_cc_stdc=no
2720 ac_save_CC=$CC
2721 cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h.  */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h.  */
2727 #include <stdarg.h>
2728 #include <stdio.h>
2729 #include <sys/types.h>
2730 #include <sys/stat.h>
2731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2732 struct buf { int x; };
2733 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2734 static char *e (p, i)
2735      char **p;
2736      int i;
2737 {
2738   return p[i];
2739 }
2740 static char *f (char * (*g) (char **, int), char **p, ...)
2741 {
2742   char *s;
2743   va_list v;
2744   va_start (v,p);
2745   s = g (p, va_arg (v,int));
2746   va_end (v);
2747   return s;
2748 }
2749
2750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2751    function prototypes and stuff, but not '\xHH' hex character constants.
2752    These don't provoke an error unfortunately, instead are silently treated
2753    as 'x'.  The following induces an error, until -std1 is added to get
2754    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2755    array size at least.  It's necessary to write '\x00'==0 to get something
2756    that's true only with -std1.  */
2757 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2758
2759 int test (int i, double x);
2760 struct s1 {int (*f) (int a);};
2761 struct s2 {int (*f) (double a);};
2762 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2763 int argc;
2764 char **argv;
2765 int
2766 main ()
2767 {
2768 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 # Don't try gcc -ansi; that turns off useful extensions and
2774 # breaks some systems' header files.
2775 # AIX                   -qlanglvl=ansi
2776 # Ultrix and OSF/1      -std1
2777 # HP-UX 10.20 and later -Ae
2778 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2779 # SVR4                  -Xc -D__EXTENSIONS__
2780 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2781 do
2782   CC="$ac_save_CC $ac_arg"
2783   rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_c_werror_flag"
2793                          || test ! -s conftest.err'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; } &&
2799          { ac_try='test -s conftest.$ac_objext'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; }; then
2805   ac_cv_prog_cc_stdc=$ac_arg
2806 break
2807 else
2808   echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811 fi
2812 rm -f conftest.err conftest.$ac_objext
2813 done
2814 rm -f conftest.$ac_ext conftest.$ac_objext
2815 CC=$ac_save_CC
2816
2817 fi
2818
2819 case "x$ac_cv_prog_cc_stdc" in
2820   x|xno)
2821     echo "$as_me:$LINENO: result: none needed" >&5
2822 echo "${ECHO_T}none needed" >&6 ;;
2823   *)
2824     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2825 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2826     CC="$CC $ac_cv_prog_cc_stdc" ;;
2827 esac
2828
2829 # Some people use a C++ compiler to compile C.  Since we use `exit',
2830 # in C++ we need to declare it.  In case someone uses the same compiler
2831 # for both compiling C and C++ we need to have the C++ compiler decide
2832 # the declaration of exit, since it's the most demanding environment.
2833 cat >conftest.$ac_ext <<_ACEOF
2834 #ifndef __cplusplus
2835   choke me
2836 #endif
2837 _ACEOF
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840   (eval $ac_compile) 2>conftest.er1
2841   ac_status=$?
2842   grep -v '^ *+' conftest.er1 >conftest.err
2843   rm -f conftest.er1
2844   cat conftest.err >&5
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); } &&
2847          { ac_try='test -z "$ac_c_werror_flag"
2848                          || test ! -s conftest.err'
2849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; } &&
2854          { ac_try='test -s conftest.$ac_objext'
2855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; }; then
2860   for ac_declaration in \
2861    '' \
2862    'extern "C" void std::exit (int) throw (); using std::exit;' \
2863    'extern "C" void std::exit (int); using std::exit;' \
2864    'extern "C" void exit (int) throw ();' \
2865    'extern "C" void exit (int);' \
2866    'void exit (int);'
2867 do
2868   cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h.  */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h.  */
2874 $ac_declaration
2875 #include <stdlib.h>
2876 int
2877 main ()
2878 {
2879 exit (42);
2880   ;
2881   return 0;
2882 }
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886   (eval $ac_compile) 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } &&
2893          { ac_try='test -z "$ac_c_werror_flag"
2894                          || test ! -s conftest.err'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; } &&
2900          { ac_try='test -s conftest.$ac_objext'
2901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902   (eval $ac_try) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; }; then
2906   :
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 continue
2912 fi
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914   cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920 $ac_declaration
2921 int
2922 main ()
2923 {
2924 exit (42);
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931   (eval $ac_compile) 2>conftest.er1
2932   ac_status=$?
2933   grep -v '^ *+' conftest.er1 >conftest.err
2934   rm -f conftest.er1
2935   cat conftest.err >&5
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); } &&
2938          { ac_try='test -z "$ac_c_werror_flag"
2939                          || test ! -s conftest.err'
2940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941   (eval $ac_try) 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }; } &&
2945          { ac_try='test -s conftest.$ac_objext'
2946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947   (eval $ac_try) 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; }; then
2951   break
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956 fi
2957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2958 done
2959 rm -f conftest*
2960 if test -n "$ac_declaration"; then
2961   echo '#ifdef __cplusplus' >>confdefs.h
2962   echo $ac_declaration      >>confdefs.h
2963   echo '#endif'             >>confdefs.h
2964 fi
2965
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 fi
2971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2972 ac_ext=c
2973 ac_cpp='$CPP $CPPFLAGS'
2974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977
2978 depcc="$CC"   am_compiler_list=
2979
2980 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2981 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2982 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2983   echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2986   # We make a subdir and do the tests there.  Otherwise we can end up
2987   # making bogus files that we don't know about and never remove.  For
2988   # instance it was reported that on HP-UX the gcc test will end up
2989   # making a dummy file named `D' -- because `-MD' means `put the output
2990   # in D'.
2991   mkdir conftest.dir
2992   # Copy depcomp to subdir because otherwise we won't find it if we're
2993   # using a relative directory.
2994   cp "$am_depcomp" conftest.dir
2995   cd conftest.dir
2996   # We will build objects and dependencies in a subdirectory because
2997   # it helps to detect inapplicable dependency modes.  For instance
2998   # both Tru64's cc and ICC support -MD to output dependencies as a
2999   # side effect of compilation, but ICC will put the dependencies in
3000   # the current directory while Tru64 will put them in the object
3001   # directory.
3002   mkdir sub
3003
3004   am_cv_CC_dependencies_compiler_type=none
3005   if test "$am_compiler_list" = ""; then
3006      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3007   fi
3008   for depmode in $am_compiler_list; do
3009     # Setup a source with many dependencies, because some compilers
3010     # like to wrap large dependency lists on column 80 (with \), and
3011     # we should not choose a depcomp mode which is confused by this.
3012     #
3013     # We need to recreate these files for each test, as the compiler may
3014     # overwrite some of them when testing with obscure command lines.
3015     # This happens at least with the AIX C compiler.
3016     : > sub/conftest.c
3017     for i in 1 2 3 4 5 6; do
3018       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3019       : > sub/conftst$i.h
3020     done
3021     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3022
3023     case $depmode in
3024     nosideeffect)
3025       # after this tag, mechanisms are not by side-effect, so they'll
3026       # only be used when explicitly requested
3027       if test "x$enable_dependency_tracking" = xyes; then
3028         continue
3029       else
3030         break
3031       fi
3032       ;;
3033     none) break ;;
3034     esac
3035     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3036     # mode.  It turns out that the SunPro C++ compiler does not properly
3037     # handle `-M -o', and we need to detect this.
3038     if depmode=$depmode \
3039        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3040        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3041        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3042          >/dev/null 2>conftest.err &&
3043        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3044        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3045        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3046       # icc doesn't choke on unknown options, it will just issue warnings
3047       # (even with -Werror).  So we grep stderr for any message
3048       # that says an option was ignored.
3049       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3050         am_cv_CC_dependencies_compiler_type=$depmode
3051         break
3052       fi
3053     fi
3054   done
3055
3056   cd ..
3057   rm -rf conftest.dir
3058 else
3059   am_cv_CC_dependencies_compiler_type=none
3060 fi
3061
3062 fi
3063 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3064 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3065 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3066
3067
3068
3069 if
3070   test "x$enable_dependency_tracking" != xno \
3071   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3072   am__fastdepCC_TRUE=
3073   am__fastdepCC_FALSE='#'
3074 else
3075   am__fastdepCC_TRUE='#'
3076   am__fastdepCC_FALSE=
3077 fi
3078
3079
3080
3081 ac_ext=c
3082 ac_cpp='$CPP $CPPFLAGS'
3083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3087 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3088 # On Suns, sometimes $CPP names a directory.
3089 if test -n "$CPP" && test -d "$CPP"; then
3090   CPP=
3091 fi
3092 if test -z "$CPP"; then
3093   if test "${ac_cv_prog_CPP+set}" = set; then
3094   echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096       # Double quotes because CPP needs to be expanded
3097     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3098     do
3099       ac_preproc_ok=false
3100 for ac_c_preproc_warn_flag in '' yes
3101 do
3102   # Use a header file that comes with gcc, so configuring glibc
3103   # with a fresh cross-compiler works.
3104   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3105   # <limits.h> exists even on freestanding compilers.
3106   # On the NeXT, cc -E runs the code through the compiler's parser,
3107   # not just through cpp. "Syntax error" is here to catch this case.
3108   cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h.  */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h.  */
3114 #ifdef __STDC__
3115 # include <limits.h>
3116 #else
3117 # include <assert.h>
3118 #endif
3119                      Syntax error
3120 _ACEOF
3121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3123   ac_status=$?
3124   grep -v '^ *+' conftest.er1 >conftest.err
3125   rm -f conftest.er1
3126   cat conftest.err >&5
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } >/dev/null; then
3129   if test -s conftest.err; then
3130     ac_cpp_err=$ac_c_preproc_warn_flag
3131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3132   else
3133     ac_cpp_err=
3134   fi
3135 else
3136   ac_cpp_err=yes
3137 fi
3138 if test -z "$ac_cpp_err"; then
3139   :
3140 else
3141   echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144   # Broken: fails on valid input.
3145 continue
3146 fi
3147 rm -f conftest.err conftest.$ac_ext
3148
3149   # OK, works on sane cases.  Now check whether non-existent headers
3150   # can be detected and how.
3151   cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h.  */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h.  */
3157 #include <ac_nonexistent.h>
3158 _ACEOF
3159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3161   ac_status=$?
3162   grep -v '^ *+' conftest.er1 >conftest.err
3163   rm -f conftest.er1
3164   cat conftest.err >&5
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); } >/dev/null; then
3167   if test -s conftest.err; then
3168     ac_cpp_err=$ac_c_preproc_warn_flag
3169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3170   else
3171     ac_cpp_err=
3172   fi
3173 else
3174   ac_cpp_err=yes
3175 fi
3176 if test -z "$ac_cpp_err"; then
3177   # Broken: success on invalid input.
3178 continue
3179 else
3180   echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183   # Passes both tests.
3184 ac_preproc_ok=:
3185 break
3186 fi
3187 rm -f conftest.err conftest.$ac_ext
3188
3189 done
3190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3191 rm -f conftest.err conftest.$ac_ext
3192 if $ac_preproc_ok; then
3193   break
3194 fi
3195
3196     done
3197     ac_cv_prog_CPP=$CPP
3198
3199 fi
3200   CPP=$ac_cv_prog_CPP
3201 else
3202   ac_cv_prog_CPP=$CPP
3203 fi
3204 echo "$as_me:$LINENO: result: $CPP" >&5
3205 echo "${ECHO_T}$CPP" >&6
3206 ac_preproc_ok=false
3207 for ac_c_preproc_warn_flag in '' yes
3208 do
3209   # Use a header file that comes with gcc, so configuring glibc
3210   # with a fresh cross-compiler works.
3211   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3212   # <limits.h> exists even on freestanding compilers.
3213   # On the NeXT, cc -E runs the code through the compiler's parser,
3214   # not just through cpp. "Syntax error" is here to catch this case.
3215   cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221 #ifdef __STDC__
3222 # include <limits.h>
3223 #else
3224 # include <assert.h>
3225 #endif
3226                      Syntax error
3227 _ACEOF
3228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3230   ac_status=$?
3231   grep -v '^ *+' conftest.er1 >conftest.err
3232   rm -f conftest.er1
3233   cat conftest.err >&5
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); } >/dev/null; then
3236   if test -s conftest.err; then
3237     ac_cpp_err=$ac_c_preproc_warn_flag
3238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3239   else
3240     ac_cpp_err=
3241   fi
3242 else
3243   ac_cpp_err=yes
3244 fi
3245 if test -z "$ac_cpp_err"; then
3246   :
3247 else
3248   echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251   # Broken: fails on valid input.
3252 continue
3253 fi
3254 rm -f conftest.err conftest.$ac_ext
3255
3256   # OK, works on sane cases.  Now check whether non-existent headers
3257   # can be detected and how.
3258   cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264 #include <ac_nonexistent.h>
3265 _ACEOF
3266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3267   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3268   ac_status=$?
3269   grep -v '^ *+' conftest.er1 >conftest.err
3270   rm -f conftest.er1
3271   cat conftest.err >&5
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); } >/dev/null; then
3274   if test -s conftest.err; then
3275     ac_cpp_err=$ac_c_preproc_warn_flag
3276     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3277   else
3278     ac_cpp_err=
3279   fi
3280 else
3281   ac_cpp_err=yes
3282 fi
3283 if test -z "$ac_cpp_err"; then
3284   # Broken: success on invalid input.
3285 continue
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290   # Passes both tests.
3291 ac_preproc_ok=:
3292 break
3293 fi
3294 rm -f conftest.err conftest.$ac_ext
3295
3296 done
3297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3298 rm -f conftest.err conftest.$ac_ext
3299 if $ac_preproc_ok; then
3300   :
3301 else
3302   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3303 See \`config.log' for more details." >&5
3304 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3305 See \`config.log' for more details." >&2;}
3306    { (exit 1); exit 1; }; }
3307 fi
3308
3309 ac_ext=c
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314
3315
3316 echo "$as_me:$LINENO: checking for egrep" >&5
3317 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3318 if test "${ac_cv_prog_egrep+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3322     then ac_cv_prog_egrep='grep -E'
3323     else ac_cv_prog_egrep='egrep'
3324     fi
3325 fi
3326 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3327 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3328  EGREP=$ac_cv_prog_egrep
3329
3330
3331
3332 echo "$as_me:$LINENO: checking for AIX" >&5
3333 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3334 cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h.  */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h.  */
3340 #ifdef _AIX
3341   yes
3342 #endif
3343
3344 _ACEOF
3345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3346   $EGREP "yes" >/dev/null 2>&1; then
3347   echo "$as_me:$LINENO: result: yes" >&5
3348 echo "${ECHO_T}yes" >&6
3349 cat >>confdefs.h <<\_ACEOF
3350 #define _ALL_SOURCE 1
3351 _ACEOF
3352
3353 else
3354   echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3356 fi
3357 rm -f conftest*
3358
3359
3360 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3362 if test "${ac_cv_header_stdc+set}" = set; then
3363   echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365   cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371 #include <stdlib.h>
3372 #include <stdarg.h>
3373 #include <string.h>
3374 #include <float.h>
3375
3376 int
3377 main ()
3378 {
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386   (eval $ac_compile) 2>conftest.er1
3387   ac_status=$?
3388   grep -v '^ *+' conftest.er1 >conftest.err
3389   rm -f conftest.er1
3390   cat conftest.err >&5
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); } &&
3393          { ac_try='test -z "$ac_c_werror_flag"
3394                          || test ! -s conftest.err'
3395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396   (eval $ac_try) 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; } &&
3400          { ac_try='test -s conftest.$ac_objext'
3401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402   (eval $ac_try) 2>&5
3403   ac_status=$?
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); }; }; then
3406   ac_cv_header_stdc=yes
3407 else
3408   echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 ac_cv_header_stdc=no
3412 fi
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414
3415 if test $ac_cv_header_stdc = yes; then
3416   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3417   cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #include <string.h>
3424
3425 _ACEOF
3426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3427   $EGREP "memchr" >/dev/null 2>&1; then
3428   :
3429 else
3430   ac_cv_header_stdc=no
3431 fi
3432 rm -f conftest*
3433
3434 fi
3435
3436 if test $ac_cv_header_stdc = yes; then
3437   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3438   cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h.  */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h.  */
3444 #include <stdlib.h>
3445
3446 _ACEOF
3447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3448   $EGREP "free" >/dev/null 2>&1; then
3449   :
3450 else
3451   ac_cv_header_stdc=no
3452 fi
3453 rm -f conftest*
3454
3455 fi
3456
3457 if test $ac_cv_header_stdc = yes; then
3458   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3459   if test "$cross_compiling" = yes; then
3460   :
3461 else
3462   cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468 #include <ctype.h>
3469 #if ((' ' & 0x0FF) == 0x020)
3470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3472 #else
3473 # define ISLOWER(c) \
3474                    (('a' <= (c) && (c) <= 'i') \
3475                      || ('j' <= (c) && (c) <= 'r') \
3476                      || ('s' <= (c) && (c) <= 'z'))
3477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3478 #endif
3479
3480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3481 int
3482 main ()
3483 {
3484   int i;
3485   for (i = 0; i < 256; i++)
3486     if (XOR (islower (i), ISLOWER (i))
3487         || toupper (i) != TOUPPER (i))
3488       exit(2);
3489   exit (0);
3490 }
3491 _ACEOF
3492 rm -f conftest$ac_exeext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3494   (eval $ac_link) 2>&5
3495   ac_status=$?
3496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499   (eval $ac_try) 2>&5
3500   ac_status=$?
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); }; }; then
3503   :
3504 else
3505   echo "$as_me: program exited with status $ac_status" >&5
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509 ( exit $ac_status )
3510 ac_cv_header_stdc=no
3511 fi
3512 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3513 fi
3514 fi
3515 fi
3516 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3517 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3518 if test $ac_cv_header_stdc = yes; then
3519
3520 cat >>confdefs.h <<\_ACEOF
3521 #define STDC_HEADERS 1
3522 _ACEOF
3523
3524 fi
3525
3526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3537                   inttypes.h stdint.h unistd.h
3538 do
3539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3540 echo "$as_me:$LINENO: checking for $ac_header" >&5
3541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h.  */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h.  */
3551 $ac_includes_default
3552
3553 #include <$ac_header>
3554 _ACEOF
3555 rm -f conftest.$ac_objext
3556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557   (eval $ac_compile) 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } &&
3564          { ac_try='test -z "$ac_c_werror_flag"
3565                          || test ! -s conftest.err'
3566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567   (eval $ac_try) 2>&5
3568   ac_status=$?
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); }; } &&
3571          { ac_try='test -s conftest.$ac_objext'
3572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573   (eval $ac_try) 2>&5
3574   ac_status=$?
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); }; }; then
3577   eval "$as_ac_Header=yes"
3578 else
3579   echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3581
3582 eval "$as_ac_Header=no"
3583 fi
3584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3585 fi
3586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3589   cat >>confdefs.h <<_ACEOF
3590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3591 _ACEOF
3592
3593 fi
3594
3595 done
3596
3597
3598 if test "${ac_cv_header_minix_config_h+set}" = set; then
3599   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3600 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3601 if test "${ac_cv_header_minix_config_h+set}" = set; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 fi
3604 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3605 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3606 else
3607   # Is the header compilable?
3608 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3609 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3610 cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h.  */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h.  */
3616 $ac_includes_default
3617 #include <minix/config.h>
3618 _ACEOF
3619 rm -f conftest.$ac_objext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3621   (eval $ac_compile) 2>conftest.er1
3622   ac_status=$?
3623   grep -v '^ *+' conftest.er1 >conftest.err
3624   rm -f conftest.er1
3625   cat conftest.err >&5
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } &&
3628          { ac_try='test -z "$ac_c_werror_flag"
3629                          || test ! -s conftest.err'
3630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631   (eval $ac_try) 2>&5
3632   ac_status=$?
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); }; } &&
3635          { ac_try='test -s conftest.$ac_objext'
3636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637   (eval $ac_try) 2>&5
3638   ac_status=$?
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); }; }; then
3641   ac_header_compiler=yes
3642 else
3643   echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646 ac_header_compiler=no
3647 fi
3648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3650 echo "${ECHO_T}$ac_header_compiler" >&6
3651
3652 # Is the header present?
3653 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3654 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h.  */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h.  */
3661 #include <minix/config.h>
3662 _ACEOF
3663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } >/dev/null; then
3671   if test -s conftest.err; then
3672     ac_cpp_err=$ac_c_preproc_warn_flag
3673     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3674   else
3675     ac_cpp_err=
3676   fi
3677 else
3678   ac_cpp_err=yes
3679 fi
3680 if test -z "$ac_cpp_err"; then
3681   ac_header_preproc=yes
3682 else
3683   echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686   ac_header_preproc=no
3687 fi
3688 rm -f conftest.err conftest.$ac_ext
3689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3690 echo "${ECHO_T}$ac_header_preproc" >&6
3691
3692 # So?  What about this header?
3693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3694   yes:no: )
3695     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3696 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3697     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3698 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3699     ac_header_preproc=yes
3700     ;;
3701   no:yes:* )
3702     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3703 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3704     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3705 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3706     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3707 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3708     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3709 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3710     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3711 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3712     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3713 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3714     (
3715       cat <<\_ASBOX
3716 ## ------------------------------ ##
3717 ## Report this to bug-cvs@gnu.org ##
3718 ## ------------------------------ ##
3719 _ASBOX
3720     ) |
3721       sed "s/^/$as_me: WARNING:     /" >&2
3722     ;;
3723 esac
3724 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3725 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3726 if test "${ac_cv_header_minix_config_h+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   ac_cv_header_minix_config_h=$ac_header_preproc
3730 fi
3731 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3732 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3733
3734 fi
3735 if test $ac_cv_header_minix_config_h = yes; then
3736   MINIX=yes
3737 else
3738   MINIX=
3739 fi
3740
3741
3742 if test "$MINIX" = yes; then
3743
3744 cat >>confdefs.h <<\_ACEOF
3745 #define _POSIX_SOURCE 1
3746 _ACEOF
3747
3748
3749 cat >>confdefs.h <<\_ACEOF
3750 #define _POSIX_1_SOURCE 2
3751 _ACEOF
3752
3753
3754 cat >>confdefs.h <<\_ACEOF
3755 #define _MINIX 1
3756 _ACEOF
3757
3758 fi
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770   cat >>confdefs.h <<\_ACEOF
3771 #define __EXTENSIONS__ 1
3772 _ACEOF
3773
3774
3775
3776 ac_ext=c
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 if test -n "$ac_tool_prefix"; then
3782   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3784 echo "$as_me:$LINENO: checking for $ac_word" >&5
3785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786 if test "${ac_cv_prog_CC+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   if test -n "$CC"; then
3790   ac_cv_prog_CC="$CC" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3794 do
3795   IFS=$as_save_IFS
3796   test -z "$as_dir" && as_dir=.
3797   for ac_exec_ext in '' $ac_executable_extensions; do
3798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801     break 2
3802   fi
3803 done
3804 done
3805
3806 fi
3807 fi
3808 CC=$ac_cv_prog_CC
3809 if test -n "$CC"; then
3810   echo "$as_me:$LINENO: result: $CC" >&5
3811 echo "${ECHO_T}$CC" >&6
3812 else
3813   echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3815 fi
3816
3817 fi
3818 if test -z "$ac_cv_prog_CC"; then
3819   ac_ct_CC=$CC
3820   # Extract the first word of "gcc", so it can be a program name with args.
3821 set dummy gcc; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   if test -n "$ac_ct_CC"; then
3828   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833   IFS=$as_save_IFS
3834   test -z "$as_dir" && as_dir=.
3835   for ac_exec_ext in '' $ac_executable_extensions; do
3836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837     ac_cv_prog_ac_ct_CC="gcc"
3838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839     break 2
3840   fi
3841 done
3842 done
3843
3844 fi
3845 fi
3846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3847 if test -n "$ac_ct_CC"; then
3848   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3849 echo "${ECHO_T}$ac_ct_CC" >&6
3850 else
3851   echo "$as_me:$LINENO: result: no" >&5
3852 echo "${ECHO_T}no" >&6
3853 fi
3854
3855   CC=$ac_ct_CC
3856 else
3857   CC="$ac_cv_prog_CC"
3858 fi
3859
3860 if test -z "$CC"; then
3861   if test -n "$ac_tool_prefix"; then
3862   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3863 set dummy ${ac_tool_prefix}cc; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_CC+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   if test -n "$CC"; then
3870   ac_cv_prog_CC="$CC" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875   IFS=$as_save_IFS
3876   test -z "$as_dir" && as_dir=.
3877   for ac_exec_ext in '' $ac_executable_extensions; do
3878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879     ac_cv_prog_CC="${ac_tool_prefix}cc"
3880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881     break 2
3882   fi
3883 done
3884 done
3885
3886 fi
3887 fi
3888 CC=$ac_cv_prog_CC
3889 if test -n "$CC"; then
3890   echo "$as_me:$LINENO: result: $CC" >&5
3891 echo "${ECHO_T}$CC" >&6
3892 else
3893   echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3895 fi
3896
3897 fi
3898 if test -z "$ac_cv_prog_CC"; then
3899   ac_ct_CC=$CC
3900   # Extract the first word of "cc", so it can be a program name with args.
3901 set dummy cc; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   if test -n "$ac_ct_CC"; then
3908   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   for ac_exec_ext in '' $ac_executable_extensions; do
3916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917     ac_cv_prog_ac_ct_CC="cc"
3918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922 done
3923
3924 fi
3925 fi
3926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3927 if test -n "$ac_ct_CC"; then
3928   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3929 echo "${ECHO_T}$ac_ct_CC" >&6
3930 else
3931   echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3933 fi
3934
3935   CC=$ac_ct_CC
3936 else
3937   CC="$ac_cv_prog_CC"
3938 fi
3939
3940 fi
3941 if test -z "$CC"; then
3942   # Extract the first word of "cc", so it can be a program name with args.
3943 set dummy cc; ac_word=$2
3944 echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_prog_CC+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949   if test -n "$CC"; then
3950   ac_cv_prog_CC="$CC" # Let the user override the test.
3951 else
3952   ac_prog_rejected=no
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956   IFS=$as_save_IFS
3957   test -z "$as_dir" && as_dir=.
3958   for ac_exec_ext in '' $ac_executable_extensions; do
3959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3961        ac_prog_rejected=yes
3962        continue
3963      fi
3964     ac_cv_prog_CC="cc"
3965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966     break 2
3967   fi
3968 done
3969 done
3970
3971 if test $ac_prog_rejected = yes; then
3972   # We found a bogon in the path, so make sure we never use it.
3973   set dummy $ac_cv_prog_CC
3974   shift
3975   if test $# != 0; then
3976     # We chose a different compiler from the bogus one.
3977     # However, it has the same basename, so the bogon will be chosen
3978     # first if we set CC to just the basename; use the full file name.
3979     shift
3980     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3981   fi
3982 fi
3983 fi
3984 fi
3985 CC=$ac_cv_prog_CC
3986 if test -n "$CC"; then
3987   echo "$as_me:$LINENO: result: $CC" >&5
3988 echo "${ECHO_T}$CC" >&6
3989 else
3990   echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3992 fi
3993
3994 fi
3995 if test -z "$CC"; then
3996   if test -n "$ac_tool_prefix"; then
3997   for ac_prog in cl
3998   do
3999     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_CC+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   if test -n "$CC"; then
4007   ac_cv_prog_CC="$CC" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012   IFS=$as_save_IFS
4013   test -z "$as_dir" && as_dir=.
4014   for ac_exec_ext in '' $ac_executable_extensions; do
4015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018     break 2
4019   fi
4020 done
4021 done
4022
4023 fi
4024 fi
4025 CC=$ac_cv_prog_CC
4026 if test -n "$CC"; then
4027   echo "$as_me:$LINENO: result: $CC" >&5
4028 echo "${ECHO_T}$CC" >&6
4029 else
4030   echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4032 fi
4033
4034     test -n "$CC" && break
4035   done
4036 fi
4037 if test -z "$CC"; then
4038   ac_ct_CC=$CC
4039   for ac_prog in cl
4040 do
4041   # Extract the first word of "$ac_prog", so it can be a program name with args.
4042 set dummy $ac_prog; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   if test -n "$ac_ct_CC"; then
4049   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054   IFS=$as_save_IFS
4055   test -z "$as_dir" && as_dir=.
4056   for ac_exec_ext in '' $ac_executable_extensions; do
4057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058     ac_cv_prog_ac_ct_CC="$ac_prog"
4059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060     break 2
4061   fi
4062 done
4063 done
4064
4065 fi
4066 fi
4067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4068 if test -n "$ac_ct_CC"; then
4069   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4070 echo "${ECHO_T}$ac_ct_CC" >&6
4071 else
4072   echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4074 fi
4075
4076   test -n "$ac_ct_CC" && break
4077 done
4078
4079   CC=$ac_ct_CC
4080 fi
4081
4082 fi
4083
4084
4085 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4086 See \`config.log' for more details." >&5
4087 echo "$as_me: error: no acceptable C compiler found in \$PATH
4088 See \`config.log' for more details." >&2;}
4089    { (exit 1); exit 1; }; }
4090
4091 # Provide some information about the compiler.
4092 echo "$as_me:$LINENO:" \
4093      "checking for C compiler version" >&5
4094 ac_compiler=`set X $ac_compile; echo $2`
4095 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4096   (eval $ac_compiler --version </dev/null >&5) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }
4100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4101   (eval $ac_compiler -v </dev/null >&5) 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }
4105 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4106   (eval $ac_compiler -V </dev/null >&5) 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }
4110
4111 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4112 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4113 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122
4123 int
4124 main ()
4125 {
4126 #ifndef __GNUC__
4127        choke me
4128 #endif
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136   (eval $ac_compile) 2>conftest.er1
4137   ac_status=$?
4138   grep -v '^ *+' conftest.er1 >conftest.err
4139   rm -f conftest.er1
4140   cat conftest.err >&5
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); } &&
4143          { ac_try='test -z "$ac_c_werror_flag"
4144                          || test ! -s conftest.err'
4145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146   (eval $ac_try) 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; } &&
4150          { ac_try='test -s conftest.$ac_objext'
4151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152   (eval $ac_try) 2>&5
4153   ac_status=$?
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); }; }; then
4156   ac_compiler_gnu=yes
4157 else
4158   echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 ac_compiler_gnu=no
4162 fi
4163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4165
4166 fi
4167 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4168 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4169 GCC=`test $ac_compiler_gnu = yes && echo yes`
4170 ac_test_CFLAGS=${CFLAGS+set}
4171 ac_save_CFLAGS=$CFLAGS
4172 CFLAGS="-g"
4173 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4174 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4175 if test "${ac_cv_prog_cc_g+set}" = set; then
4176   echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178   cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h.  */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h.  */
4184
4185 int
4186 main ()
4187 {
4188
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 rm -f conftest.$ac_objext
4194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195   (eval $ac_compile) 2>conftest.er1
4196   ac_status=$?
4197   grep -v '^ *+' conftest.er1 >conftest.err
4198   rm -f conftest.er1
4199   cat conftest.err >&5
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } &&
4202          { ac_try='test -z "$ac_c_werror_flag"
4203                          || test ! -s conftest.err'
4204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205   (eval $ac_try) 2>&5
4206   ac_status=$?
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); }; } &&
4209          { ac_try='test -s conftest.$ac_objext'
4210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211   (eval $ac_try) 2>&5
4212   ac_status=$?
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); }; }; then
4215   ac_cv_prog_cc_g=yes
4216 else
4217   echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220 ac_cv_prog_cc_g=no
4221 fi
4222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4223 fi
4224 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4225 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4226 if test "$ac_test_CFLAGS" = set; then
4227   CFLAGS=$ac_save_CFLAGS
4228 elif test $ac_cv_prog_cc_g = yes; then
4229   if test "$GCC" = yes; then
4230     CFLAGS="-g -O2"
4231   else
4232     CFLAGS="-g"
4233   fi
4234 else
4235   if test "$GCC" = yes; then
4236     CFLAGS="-O2"
4237   else
4238     CFLAGS=
4239   fi
4240 fi
4241 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4242 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4243 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   ac_cv_prog_cc_stdc=no
4247 ac_save_CC=$CC
4248 cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h.  */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h.  */
4254 #include <stdarg.h>
4255 #include <stdio.h>
4256 #include <sys/types.h>
4257 #include <sys/stat.h>
4258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4259 struct buf { int x; };
4260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4261 static char *e (p, i)
4262      char **p;
4263      int i;
4264 {
4265   return p[i];
4266 }
4267 static char *f (char * (*g) (char **, int), char **p, ...)
4268 {
4269   char *s;
4270   va_list v;
4271   va_start (v,p);
4272   s = g (p, va_arg (v,int));
4273   va_end (v);
4274   return s;
4275 }
4276
4277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4278    function prototypes and stuff, but not '\xHH' hex character constants.
4279    These don't provoke an error unfortunately, instead are silently treated
4280    as 'x'.  The following induces an error, until -std1 is added to get
4281    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4282    array size at least.  It's necessary to write '\x00'==0 to get something
4283    that's true only with -std1.  */
4284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4285
4286 int test (int i, double x);
4287 struct s1 {int (*f) (int a);};
4288 struct s2 {int (*f) (double a);};
4289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4290 int argc;
4291 char **argv;
4292 int
4293 main ()
4294 {
4295 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4296   ;
4297   return 0;
4298 }
4299 _ACEOF
4300 # Don't try gcc -ansi; that turns off useful extensions and
4301 # breaks some systems' header files.
4302 # AIX                   -qlanglvl=ansi
4303 # Ultrix and OSF/1      -std1
4304 # HP-UX 10.20 and later -Ae
4305 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4306 # SVR4                  -Xc -D__EXTENSIONS__
4307 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4308 do
4309   CC="$ac_save_CC $ac_arg"
4310   rm -f conftest.$ac_objext
4311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4312   (eval $ac_compile) 2>conftest.er1
4313   ac_status=$?
4314   grep -v '^ *+' conftest.er1 >conftest.err
4315   rm -f conftest.er1
4316   cat conftest.err >&5
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } &&
4319          { ac_try='test -z "$ac_c_werror_flag"
4320                          || test ! -s conftest.err'
4321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322   (eval $ac_try) 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; } &&
4326          { ac_try='test -s conftest.$ac_objext'
4327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328   (eval $ac_try) 2>&5
4329   ac_status=$?
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); }; }; then
4332   ac_cv_prog_cc_stdc=$ac_arg
4333 break
4334 else
4335   echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338 fi
4339 rm -f conftest.err conftest.$ac_objext
4340 done
4341 rm -f conftest.$ac_ext conftest.$ac_objext
4342 CC=$ac_save_CC
4343
4344 fi
4345
4346 case "x$ac_cv_prog_cc_stdc" in
4347   x|xno)
4348     echo "$as_me:$LINENO: result: none needed" >&5
4349 echo "${ECHO_T}none needed" >&6 ;;
4350   *)
4351     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4352 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4353     CC="$CC $ac_cv_prog_cc_stdc" ;;
4354 esac
4355
4356 # Some people use a C++ compiler to compile C.  Since we use `exit',
4357 # in C++ we need to declare it.  In case someone uses the same compiler
4358 # for both compiling C and C++ we need to have the C++ compiler decide
4359 # the declaration of exit, since it's the most demanding environment.
4360 cat >conftest.$ac_ext <<_ACEOF
4361 #ifndef __cplusplus
4362   choke me
4363 #endif
4364 _ACEOF
4365 rm -f conftest.$ac_objext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367   (eval $ac_compile) 2>conftest.er1
4368   ac_status=$?
4369   grep -v '^ *+' conftest.er1 >conftest.err
4370   rm -f conftest.er1
4371   cat conftest.err >&5
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } &&
4374          { ac_try='test -z "$ac_c_werror_flag"
4375                          || test ! -s conftest.err'
4376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377   (eval $ac_try) 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }; } &&
4381          { ac_try='test -s conftest.$ac_objext'
4382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383   (eval $ac_try) 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); }; }; then
4387   for ac_declaration in \
4388    '' \
4389    'extern "C" void std::exit (int) throw (); using std::exit;' \
4390    'extern "C" void std::exit (int); using std::exit;' \
4391    'extern "C" void exit (int) throw ();' \
4392    'extern "C" void exit (int);' \
4393    'void exit (int);'
4394 do
4395   cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h.  */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h.  */
4401 $ac_declaration
4402 #include <stdlib.h>
4403 int
4404 main ()
4405 {
4406 exit (42);
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 rm -f conftest.$ac_objext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413   (eval $ac_compile) 2>conftest.er1
4414   ac_status=$?
4415   grep -v '^ *+' conftest.er1 >conftest.err
4416   rm -f conftest.er1
4417   cat conftest.err >&5
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); } &&
4420          { ac_try='test -z "$ac_c_werror_flag"
4421                          || test ! -s conftest.err'
4422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423   (eval $ac_try) 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); }; } &&
4427          { ac_try='test -s conftest.$ac_objext'
4428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429   (eval $ac_try) 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; }; then
4433   :
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438 continue
4439 fi
4440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4441   cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h.  */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h.  */
4447 $ac_declaration
4448 int
4449 main ()
4450 {
4451 exit (42);
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 rm -f conftest.$ac_objext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458   (eval $ac_compile) 2>conftest.er1
4459   ac_status=$?
4460   grep -v '^ *+' conftest.er1 >conftest.err
4461   rm -f conftest.er1
4462   cat conftest.err >&5
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); } &&
4465          { ac_try='test -z "$ac_c_werror_flag"
4466                          || test ! -s conftest.err'
4467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468   (eval $ac_try) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; } &&
4472          { ac_try='test -s conftest.$ac_objext'
4473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474   (eval $ac_try) 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; }; then
4478   break
4479 else
4480   echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4482
4483 fi
4484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4485 done
4486 rm -f conftest*
4487 if test -n "$ac_declaration"; then
4488   echo '#ifdef __cplusplus' >>confdefs.h
4489   echo $ac_declaration      >>confdefs.h
4490   echo '#endif'             >>confdefs.h
4491 fi
4492
4493 else
4494   echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4496
4497 fi
4498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4499 ac_ext=c
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504
4505 depcc="$CC"   am_compiler_list=
4506
4507 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4508 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4509 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4510   echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4513   # We make a subdir and do the tests there.  Otherwise we can end up
4514   # making bogus files that we don't know about and never remove.  For
4515   # instance it was reported that on HP-UX the gcc test will end up
4516   # making a dummy file named `D' -- because `-MD' means `put the output
4517   # in D'.
4518   mkdir conftest.dir
4519   # Copy depcomp to subdir because otherwise we won't find it if we're
4520   # using a relative directory.
4521   cp "$am_depcomp" conftest.dir
4522   cd conftest.dir
4523   # We will build objects and dependencies in a subdirectory because
4524   # it helps to detect inapplicable dependency modes.  For instance
4525   # both Tru64's cc and ICC support -MD to output dependencies as a
4526   # side effect of compilation, but ICC will put the dependencies in
4527   # the current directory while Tru64 will put them in the object
4528   # directory.
4529   mkdir sub
4530
4531   am_cv_CC_dependencies_compiler_type=none
4532   if test "$am_compiler_list" = ""; then
4533      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4534   fi
4535   for depmode in $am_compiler_list; do
4536     # Setup a source with many dependencies, because some compilers
4537     # like to wrap large dependency lists on column 80 (with \), and
4538     # we should not choose a depcomp mode which is confused by this.
4539     #
4540     # We need to recreate these files for each test, as the compiler may
4541     # overwrite some of them when testing with obscure command lines.
4542     # This happens at least with the AIX C compiler.
4543     : > sub/conftest.c
4544     for i in 1 2 3 4 5 6; do
4545       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4546       : > sub/conftst$i.h
4547     done
4548     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4549
4550     case $depmode in
4551     nosideeffect)
4552       # after this tag, mechanisms are not by side-effect, so they'll
4553       # only be used when explicitly requested
4554       if test "x$enable_dependency_tracking" = xyes; then
4555         continue
4556       else
4557         break
4558       fi
4559       ;;
4560     none) break ;;
4561     esac
4562     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4563     # mode.  It turns out that the SunPro C++ compiler does not properly
4564     # handle `-M -o', and we need to detect this.
4565     if depmode=$depmode \
4566        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4567        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4568        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4569          >/dev/null 2>conftest.err &&
4570        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4571        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4572        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4573       # icc doesn't choke on unknown options, it will just issue warnings
4574       # (even with -Werror).  So we grep stderr for any message
4575       # that says an option was ignored.
4576       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4577         am_cv_CC_dependencies_compiler_type=$depmode
4578         break
4579       fi
4580     fi
4581   done
4582
4583   cd ..
4584   rm -rf conftest.dir
4585 else
4586   am_cv_CC_dependencies_compiler_type=none
4587 fi
4588
4589 fi
4590 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4591 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4592 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4593
4594
4595
4596 if
4597   test "x$enable_dependency_tracking" != xno \
4598   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4599   am__fastdepCC_TRUE=
4600   am__fastdepCC_FALSE='#'
4601 else
4602   am__fastdepCC_TRUE='#'
4603   am__fastdepCC_FALSE=
4604 fi
4605
4606
4607 if test "x$CC" != xcc; then
4608   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4609 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4610 else
4611   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4612 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4613 fi
4614 set dummy $CC; ac_cc=`echo $2 |
4615                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4616 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h.  */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h.  */
4625
4626 int
4627 main ()
4628 {
4629
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 # Make sure it works both with $CC and with simple cc.
4635 # We do the test twice because some compilers refuse to overwrite an
4636 # existing .o file with -o, though they will create one.
4637 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4638 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639   (eval $ac_try) 2>&5
4640   ac_status=$?
4641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); } &&
4643    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644   (eval $ac_try) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); };
4648 then
4649   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4650   if test "x$CC" != xcc; then
4651     # Test first that cc exists at all.
4652     if { ac_try='cc -c conftest.$ac_ext >&5'
4653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654   (eval $ac_try) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; }; then
4658       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4659       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660   (eval $ac_try) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } &&
4664          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665   (eval $ac_try) 2>&5
4666   ac_status=$?
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); };
4669       then
4670         # cc works too.
4671         :
4672       else
4673         # cc exists but doesn't like -o.
4674         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4675       fi
4676     fi
4677   fi
4678 else
4679   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4680 fi
4681 rm -f conftest*
4682
4683 fi
4684 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4685   echo "$as_me:$LINENO: result: yes" >&5
4686 echo "${ECHO_T}yes" >&6
4687 else
4688   echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6
4690
4691 cat >>confdefs.h <<\_ACEOF
4692 #define NO_MINUS_C_MINUS_O 1
4693 _ACEOF
4694
4695 fi
4696
4697 # FIXME: we rely on the cache variable name because
4698 # there is no other way.
4699 set dummy $CC
4700 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4701 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4702    # Losing compiler, so override with the script.
4703    # FIXME: It is wrong to rewrite CC.
4704    # But if we don't then we get into trouble of one sort or another.
4705    # A longer-term fix would be to have automake use am__CC in this case,
4706    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4707    CC="$am_aux_dir/compile $CC"
4708 fi
4709
4710
4711 # Find the posix library needed on INTERACTIVE UNIX (ISC)
4712 echo "$as_me:$LINENO: checking for library containing strerror" >&5
4713 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4714 if test "${ac_cv_search_strerror+set}" = set; then
4715   echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717   ac_func_search_save_LIBS=$LIBS
4718 ac_cv_search_strerror=no
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h.  */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h.  */
4725
4726 /* Override any gcc2 internal prototype to avoid an error.  */
4727 #ifdef __cplusplus
4728 extern "C"
4729 #endif
4730 /* We use char because int might match the return type of a gcc2
4731    builtin and then its argument prototype would still apply.  */
4732 char strerror ();
4733 int
4734 main ()
4735 {
4736 strerror ();
4737   ;
4738   return 0;
4739 }
4740 _ACEOF
4741 rm -f conftest.$ac_objext conftest$ac_exeext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4743   (eval $ac_link) 2>conftest.er1
4744   ac_status=$?
4745   grep -v '^ *+' conftest.er1 >conftest.err
4746   rm -f conftest.er1
4747   cat conftest.err >&5
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); } &&
4750          { ac_try='test -z "$ac_c_werror_flag"
4751                          || test ! -s conftest.err'
4752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753   (eval $ac_try) 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }; } &&
4757          { ac_try='test -s conftest$ac_exeext'
4758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759   (eval $ac_try) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); }; }; then
4763   ac_cv_search_strerror="none required"
4764 else
4765   echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 fi
4769 rm -f conftest.err conftest.$ac_objext \
4770       conftest$ac_exeext conftest.$ac_ext
4771 if test "$ac_cv_search_strerror" = no; then
4772   for ac_lib in cposix; do
4773     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4774     cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h.  */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h.  */
4780
4781 /* Override any gcc2 internal prototype to avoid an error.  */
4782 #ifdef __cplusplus
4783 extern "C"
4784 #endif
4785 /* We use char because int might match the return type of a gcc2
4786    builtin and then its argument prototype would still apply.  */
4787 char strerror ();
4788 int
4789 main ()
4790 {
4791 strerror ();
4792   ;
4793   return 0;
4794 }
4795 _ACEOF
4796 rm -f conftest.$ac_objext conftest$ac_exeext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4798   (eval $ac_link) 2>conftest.er1
4799   ac_status=$?
4800   grep -v '^ *+' conftest.er1 >conftest.err
4801   rm -f conftest.er1
4802   cat conftest.err >&5
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); } &&
4805          { ac_try='test -z "$ac_c_werror_flag"
4806                          || test ! -s conftest.err'
4807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808   (eval $ac_try) 2>&5
4809   ac_status=$?
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); }; } &&
4812          { ac_try='test -s conftest$ac_exeext'
4813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814   (eval $ac_try) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; }; then
4818   ac_cv_search_strerror="-l$ac_lib"
4819 break
4820 else
4821   echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4823
4824 fi
4825 rm -f conftest.err conftest.$ac_objext \
4826       conftest$ac_exeext conftest.$ac_ext
4827   done
4828 fi
4829 LIBS=$ac_func_search_save_LIBS
4830 fi
4831 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4832 echo "${ECHO_T}$ac_cv_search_strerror" >&6
4833 if test "$ac_cv_search_strerror" != no; then
4834   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4835
4836 fi
4837
4838
4839
4840 if test -n "$ac_tool_prefix"; then
4841   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4843 echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4845 if test "${ac_cv_prog_RANLIB+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848   if test -n "$RANLIB"; then
4849   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854   IFS=$as_save_IFS
4855   test -z "$as_dir" && as_dir=.
4856   for ac_exec_ext in '' $ac_executable_extensions; do
4857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860     break 2
4861   fi
4862 done
4863 done
4864
4865 fi
4866 fi
4867 RANLIB=$ac_cv_prog_RANLIB
4868 if test -n "$RANLIB"; then
4869   echo "$as_me:$LINENO: result: $RANLIB" >&5
4870 echo "${ECHO_T}$RANLIB" >&6
4871 else
4872   echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6
4874 fi
4875
4876 fi
4877 if test -z "$ac_cv_prog_RANLIB"; then
4878   ac_ct_RANLIB=$RANLIB
4879   # Extract the first word of "ranlib", so it can be a program name with args.
4880 set dummy ranlib; ac_word=$2
4881 echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4883 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   if test -n "$ac_ct_RANLIB"; then
4887   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4891 do
4892   IFS=$as_save_IFS
4893   test -z "$as_dir" && as_dir=.
4894   for ac_exec_ext in '' $ac_executable_extensions; do
4895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896     ac_cv_prog_ac_ct_RANLIB="ranlib"
4897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898     break 2
4899   fi
4900 done
4901 done
4902
4903   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4904 fi
4905 fi
4906 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4907 if test -n "$ac_ct_RANLIB"; then
4908   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4909 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4910 else
4911   echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6
4913 fi
4914
4915   RANLIB=$ac_ct_RANLIB
4916 else
4917   RANLIB="$ac_cv_prog_RANLIB"
4918 fi
4919
4920 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4921 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4922 LN_S=$as_ln_s
4923 if test "$LN_S" = "ln -s"; then
4924   echo "$as_me:$LINENO: result: yes" >&5
4925 echo "${ECHO_T}yes" >&6
4926 else
4927   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4928 echo "${ECHO_T}no, using $LN_S" >&6
4929 fi
4930
4931 # Check whether --enable-largefile or --disable-largefile was given.
4932 if test "${enable_largefile+set}" = set; then
4933   enableval="$enable_largefile"
4934
4935 fi;
4936 if test "$enable_largefile" != no; then
4937
4938   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4939 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4940 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   ac_cv_sys_largefile_CC=no
4944      if test "$GCC" != yes; then
4945        ac_save_CC=$CC
4946        while :; do
4947          # IRIX 6.2 and later do not support large files by default,
4948          # so use the C compiler's -n32 option if that helps.
4949          cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 #include <sys/types.h>
4956  /* Check that off_t can represent 2**63 - 1 correctly.
4957     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4958     since some C++ compilers masquerading as C compilers
4959     incorrectly reject 9223372036854775807.  */
4960 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4961   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4962                        && LARGE_OFF_T % 2147483647 == 1)
4963                       ? 1 : -1];
4964 int
4965 main ()
4966 {
4967
4968   ;
4969   return 0;
4970 }
4971 _ACEOF
4972          rm -f conftest.$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974   (eval $ac_compile) 2>conftest.er1
4975   ac_status=$?
4976   grep -v '^ *+' conftest.er1 >conftest.err
4977   rm -f conftest.er1
4978   cat conftest.err >&5
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); } &&
4981          { ac_try='test -z "$ac_c_werror_flag"
4982                          || test ! -s conftest.err'
4983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984   (eval $ac_try) 2>&5
4985   ac_status=$?
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); }; } &&
4988          { ac_try='test -s conftest.$ac_objext'
4989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990   (eval $ac_try) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; }; then
4994   break
4995 else
4996   echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999 fi
5000 rm -f conftest.err conftest.$ac_objext
5001          CC="$CC -n32"
5002          rm -f conftest.$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004   (eval $ac_compile) 2>conftest.er1
5005   ac_status=$?
5006   grep -v '^ *+' conftest.er1 >conftest.err
5007   rm -f conftest.er1
5008   cat conftest.err >&5
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); } &&
5011          { ac_try='test -z "$ac_c_werror_flag"
5012                          || test ! -s conftest.err'
5013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014   (eval $ac_try) 2>&5
5015   ac_status=$?
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); }; } &&
5018          { ac_try='test -s conftest.$ac_objext'
5019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020   (eval $ac_try) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); }; }; then
5024   ac_cv_sys_largefile_CC=' -n32'; break
5025 else
5026   echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 fi
5030 rm -f conftest.err conftest.$ac_objext
5031          break
5032        done
5033        CC=$ac_save_CC
5034        rm -f conftest.$ac_ext
5035     fi
5036 fi
5037 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5038 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5039   if test "$ac_cv_sys_largefile_CC" != no; then
5040     CC=$CC$ac_cv_sys_largefile_CC
5041   fi
5042
5043   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5044 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5045 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5046   echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048   while :; do
5049   ac_cv_sys_file_offset_bits=no
5050   cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h.  */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h.  */
5056 #include <sys/types.h>
5057  /* Check that off_t can represent 2**63 - 1 correctly.
5058     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5059     since some C++ compilers masquerading as C compilers
5060     incorrectly reject 9223372036854775807.  */
5061 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5062   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5063                        && LARGE_OFF_T % 2147483647 == 1)
5064                       ? 1 : -1];
5065 int
5066 main ()
5067 {
5068
5069   ;
5070   return 0;
5071 }
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075   (eval $ac_compile) 2>conftest.er1
5076   ac_status=$?
5077   grep -v '^ *+' conftest.er1 >conftest.err
5078   rm -f conftest.er1
5079   cat conftest.err >&5
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); } &&
5082          { ac_try='test -z "$ac_c_werror_flag"
5083                          || test ! -s conftest.err'
5084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085   (eval $ac_try) 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); }; } &&
5089          { ac_try='test -s conftest.$ac_objext'
5090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091   (eval $ac_try) 2>&5
5092   ac_status=$?
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); }; }; then
5095   break
5096 else
5097   echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 fi
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5102   cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h.  */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h.  */
5108 #define _FILE_OFFSET_BITS 64
5109 #include <sys/types.h>
5110  /* Check that off_t can represent 2**63 - 1 correctly.
5111     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5112     since some C++ compilers masquerading as C compilers
5113     incorrectly reject 9223372036854775807.  */
5114 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5115   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5116                        && LARGE_OFF_T % 2147483647 == 1)
5117                       ? 1 : -1];
5118 int
5119 main ()
5120 {
5121
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest.$ac_objext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5128   (eval $ac_compile) 2>conftest.er1
5129   ac_status=$?
5130   grep -v '^ *+' conftest.er1 >conftest.err
5131   rm -f conftest.er1
5132   cat conftest.err >&5
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } &&
5135          { ac_try='test -z "$ac_c_werror_flag"
5136                          || test ! -s conftest.err'
5137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138   (eval $ac_try) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); }; } &&
5142          { ac_try='test -s conftest.$ac_objext'
5143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144   (eval $ac_try) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); }; }; then
5148   ac_cv_sys_file_offset_bits=64; break
5149 else
5150   echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 fi
5154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5155   break
5156 done
5157 fi
5158 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5159 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5160 if test "$ac_cv_sys_file_offset_bits" != no; then
5161
5162 cat >>confdefs.h <<_ACEOF
5163 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5164 _ACEOF
5165
5166 fi
5167 rm -f conftest*
5168   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5169 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5170 if test "${ac_cv_sys_large_files+set}" = set; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   while :; do
5174   ac_cv_sys_large_files=no
5175   cat >conftest.$ac_ext <<_ACEOF
5176 /* confdefs.h.  */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h.  */
5181 #include <sys/types.h>
5182  /* Check that off_t can represent 2**63 - 1 correctly.
5183     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5184     since some C++ compilers masquerading as C compilers
5185     incorrectly reject 9223372036854775807.  */
5186 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5187   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5188                        && LARGE_OFF_T % 2147483647 == 1)
5189                       ? 1 : -1];
5190 int
5191 main ()
5192 {
5193
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200   (eval $ac_compile) 2>conftest.er1
5201   ac_status=$?
5202   grep -v '^ *+' conftest.er1 >conftest.err
5203   rm -f conftest.er1
5204   cat conftest.err >&5
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } &&
5207          { ac_try='test -z "$ac_c_werror_flag"
5208                          || test ! -s conftest.err'
5209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210   (eval $ac_try) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); }; } &&
5214          { ac_try='test -s conftest.$ac_objext'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; }; then
5220   break
5221 else
5222   echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5224
5225 fi
5226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5227   cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h.  */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h.  */
5233 #define _LARGE_FILES 1
5234 #include <sys/types.h>
5235  /* Check that off_t can represent 2**63 - 1 correctly.
5236     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5237     since some C++ compilers masquerading as C compilers
5238     incorrectly reject 9223372036854775807.  */
5239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5240   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5241                        && LARGE_OFF_T % 2147483647 == 1)
5242                       ? 1 : -1];
5243 int
5244 main ()
5245 {
5246
5247   ;
5248   return 0;
5249 }
5250 _ACEOF
5251 rm -f conftest.$ac_objext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253   (eval $ac_compile) 2>conftest.er1
5254   ac_status=$?
5255   grep -v '^ *+' conftest.er1 >conftest.err
5256   rm -f conftest.er1
5257   cat conftest.err >&5
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } &&
5260          { ac_try='test -z "$ac_c_werror_flag"
5261                          || test ! -s conftest.err'
5262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263   (eval $ac_try) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); }; } &&
5267          { ac_try='test -s conftest.$ac_objext'
5268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269   (eval $ac_try) 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; }; then
5273   ac_cv_sys_large_files=1; break
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5277
5278 fi
5279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5280   break
5281 done
5282 fi
5283 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5284 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5285 if test "$ac_cv_sys_large_files" != no; then
5286
5287 cat >>confdefs.h <<_ACEOF
5288 #define _LARGE_FILES $ac_cv_sys_large_files
5289 _ACEOF
5290
5291 fi
5292 rm -f conftest*
5293 fi
5294
5295
5296
5297 # Extract the first word of "perl", so it can be a program name with args.
5298 set dummy perl; ac_word=$2
5299 echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_path_PERL+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   case $PERL in
5305   [\\/]* | ?:[\\/]*)
5306   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5307   ;;
5308   *)
5309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5311 do
5312   IFS=$as_save_IFS
5313   test -z "$as_dir" && as_dir=.
5314   for ac_exec_ext in '' $ac_executable_extensions; do
5315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318     break 2
5319   fi
5320 done
5321 done
5322
5323   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5324   ;;
5325 esac
5326 fi
5327 PERL=$ac_cv_path_PERL
5328
5329 if test -n "$PERL"; then
5330   echo "$as_me:$LINENO: result: $PERL" >&5
5331 echo "${ECHO_T}$PERL" >&6
5332 else
5333   echo "$as_me:$LINENO: result: no" >&5
5334 echo "${ECHO_T}no" >&6
5335 fi
5336
5337 # Extract the first word of "csh", so it can be a program name with args.
5338 set dummy csh; ac_word=$2
5339 echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5341 if test "${ac_cv_path_CSH+set}" = set; then
5342   echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344   case $CSH in
5345   [\\/]* | ?:[\\/]*)
5346   ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
5347   ;;
5348   *)
5349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354   for ac_exec_ext in '' $ac_executable_extensions; do
5355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356     ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
5357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361 done
5362
5363   test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
5364   ;;
5365 esac
5366 fi
5367 CSH=$ac_cv_path_CSH
5368
5369 if test -n "$CSH"; then
5370   echo "$as_me:$LINENO: result: $CSH" >&5
5371 echo "${ECHO_T}$CSH" >&6
5372 else
5373   echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6
5375 fi
5376
5377 # for contrib/rcs2log.sh & src/cvsbug.in.
5378 # Extract the first word of "mktemp", so it can be a program name with args.
5379 set dummy mktemp; ac_word=$2
5380 echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382 if test "${ac_cv_path_MKTEMP+set}" = set; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385   case $MKTEMP in
5386   [\\/]* | ?:[\\/]*)
5387   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5388   ;;
5389   *)
5390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393   IFS=$as_save_IFS
5394   test -z "$as_dir" && as_dir=.
5395   for ac_exec_ext in '' $ac_executable_extensions; do
5396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399     break 2
5400   fi
5401 done
5402 done
5403
5404   test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp"
5405   ;;
5406 esac
5407 fi
5408 MKTEMP=$ac_cv_path_MKTEMP
5409
5410 if test -n "$MKTEMP"; then
5411   echo "$as_me:$LINENO: result: $MKTEMP" >&5
5412 echo "${ECHO_T}$MKTEMP" >&6
5413 else
5414   echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5416 fi
5417
5418 if test x"$MKTEMP" = xmktemp; then
5419         MKTEMP_SH_FUNCTION=$srcdir/mktemp.sh
5420 else
5421         MKTEMP_SH_FUNCTION=/dev/null
5422 fi
5423
5424 # for src/cvsbug.in
5425 # Extract the first word of "sendmail", so it can be a program name with args.
5426 set dummy sendmail; ac_word=$2
5427 echo "$as_me:$LINENO: checking for $ac_word" >&5
5428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429 if test "${ac_cv_path_SENDMAIL+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   case $SENDMAIL in
5433   [\\/]* | ?:[\\/]*)
5434   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
5435   ;;
5436   *)
5437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 as_dummy="$PATH:/usr/sbin:/usr/lib"
5439 for as_dir in $as_dummy
5440 do
5441   IFS=$as_save_IFS
5442   test -z "$as_dir" && as_dir=.
5443   for ac_exec_ext in '' $ac_executable_extensions; do
5444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
5446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447     break 2
5448   fi
5449 done
5450 done
5451
5452   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no"
5453   ;;
5454 esac
5455 fi
5456 SENDMAIL=$ac_cv_path_SENDMAIL
5457
5458 if test -n "$SENDMAIL"; then
5459   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
5460 echo "${ECHO_T}$SENDMAIL" >&6
5461 else
5462   echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5464 fi
5465
5466 # For diff/util.c
5467 # Extract the first word of "pr", so it can be a program name with args.
5468 set dummy pr; ac_word=$2
5469 echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5471 if test "${ac_cv_path_PR+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   case $PR in
5475   [\\/]* | ?:[\\/]*)
5476   ac_cv_path_PR="$PR" # Let the user override the test with a path.
5477   ;;
5478   *)
5479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482   IFS=$as_save_IFS
5483   test -z "$as_dir" && as_dir=.
5484   for ac_exec_ext in '' $ac_executable_extensions; do
5485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486     ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext"
5487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488     break 2
5489   fi
5490 done
5491 done
5492
5493   test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
5494   ;;
5495 esac
5496 fi
5497 PR=$ac_cv_path_PR
5498
5499 if test -n "$PR"; then
5500   echo "$as_me:$LINENO: result: $PR" >&5
5501 echo "${ECHO_T}$PR" >&6
5502 else
5503   echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5505 fi
5506
5507 if test x"$PR" != xno; then
5508
5509 cat >>confdefs.h <<_ACEOF
5510 #define PR_PROGRAM "$PR"
5511 _ACEOF
5512
5513 fi
5514
5515 missing_dir=`cd $ac_aux_dir && pwd`
5516 glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
5517 for ac_prog in groff roff
5518 do
5519   # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5523 if test "${ac_cv_path_ROFF+set}" = set; then
5524   echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526   case $ROFF in
5527   [\\/]* | ?:[\\/]*)
5528   ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path.
5529   ;;
5530   *)
5531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $glocs
5533 do
5534   IFS=$as_save_IFS
5535   test -z "$as_dir" && as_dir=.
5536   for ac_exec_ext in '' $ac_executable_extensions; do
5537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538     ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext"
5539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540     break 2
5541   fi
5542 done
5543 done
5544
5545   ;;
5546 esac
5547 fi
5548 ROFF=$ac_cv_path_ROFF
5549
5550 if test -n "$ROFF"; then
5551   echo "$as_me:$LINENO: result: $ROFF" >&5
5552 echo "${ECHO_T}$ROFF" >&6
5553 else
5554   echo "$as_me:$LINENO: result: no" >&5
5555 echo "${ECHO_T}no" >&6
5556 fi
5557
5558   test -n "$ROFF" && break
5559 done
5560 test -n "$ROFF" || ROFF="$missing_dir/missing roff"
5561
5562 # Extract the first word of "ps2pdf", so it can be a program name with args.
5563 set dummy ps2pdf; ac_word=$2
5564 echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5566 if test "${ac_cv_path_PS2PDF+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   case $PS2PDF in
5570   [\\/]* | ?:[\\/]*)
5571   ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
5572   ;;
5573   *)
5574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577   IFS=$as_save_IFS
5578   test -z "$as_dir" && as_dir=.
5579   for ac_exec_ext in '' $ac_executable_extensions; do
5580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581     ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
5582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583     break 2
5584   fi
5585 done
5586 done
5587
5588   test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
5589   ;;
5590 esac
5591 fi
5592 PS2PDF=$ac_cv_path_PS2PDF
5593
5594 if test -n "$PS2PDF"; then
5595   echo "$as_me:$LINENO: result: $PS2PDF" >&5
5596 echo "${ECHO_T}$PS2PDF" >&6
5597 else
5598   echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5600 fi
5601
5602 # Extract the first word of "texi2dvi", so it can be a program name with args.
5603 set dummy texi2dvi; ac_word=$2
5604 echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5606 if test "${ac_cv_path_TEXI2DVI+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609   case $TEXI2DVI in
5610   [\\/]* | ?:[\\/]*)
5611   ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
5612   ;;
5613   *)
5614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617   IFS=$as_save_IFS
5618   test -z "$as_dir" && as_dir=.
5619   for ac_exec_ext in '' $ac_executable_extensions; do
5620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621     ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
5622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623     break 2
5624   fi
5625 done
5626 done
5627
5628   test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
5629   ;;
5630 esac
5631 fi
5632 TEXI2DVI=$ac_cv_path_TEXI2DVI
5633
5634 if test -n "$TEXI2DVI"; then
5635   echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
5636 echo "${ECHO_T}$TEXI2DVI" >&6
5637 else
5638   echo "$as_me:$LINENO: result: no" >&5
5639 echo "${ECHO_T}no" >&6
5640 fi
5641
5642
5643 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
5644 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
5645 if test "${ac_cv_sys_interpreter+set}" = set; then
5646   echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648   echo '#! /bin/cat
5649 exit 69
5650 ' >conftest
5651 chmod u+x conftest
5652 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
5653 if test $? -ne 69; then
5654    ac_cv_sys_interpreter=yes
5655 else
5656    ac_cv_sys_interpreter=no
5657 fi
5658 rm -f conftest
5659 fi
5660 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
5661 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
5662 interpval=$ac_cv_sys_interpreter
5663
5664 if test X"$ac_cv_sys_interpreter" != X"yes" ; then
5665   # silly trick to avoid problems in AC macros...
5666   ac_msg='perl scripts using #! may not be invoked properly'
5667   { echo "$as_me:$LINENO: WARNING: $ac_msg" >&5
5668 echo "$as_me: WARNING: $ac_msg" >&2;}
5669 fi
5670
5671 # BSD's logo is a devil for a reason, hey?
5672 echo "$as_me:$LINENO: checking for BSD VPATH bug in make" >&5
5673 echo $ECHO_N "checking for BSD VPATH bug in make... $ECHO_C" >&6
5674 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then
5675   echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677   if test ! -d ac_test_dir ; then
5678         { ac_try='mkdir ac_test_dir'
5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680   (eval $ac_try) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; }
5684 fi
5685 cat >conftestmake <<EOF
5686 VPATH = ac_test_dir
5687 ac_test_target: ac_test_dep
5688         echo BSD VPATH bug present >&2
5689 ac_test_dep: ac_test_dep_dep
5690 EOF
5691 touch ac_test_dir/ac_test_dep_dep
5692 touch ac_test_dir/ac_test_dep
5693 touch ac_test_target
5694 # Don't know why, but the following test doesn't work under FreeBSD 4.2
5695 # without this sleep command
5696 sleep 1
5697 if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
5698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699   (eval $ac_try) 2>&5
5700   ac_status=$?
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); }; } ; then
5703         ccvs_cv_bsd_make_vpath_bug=yes
5704 else
5705         ccvs_cv_bsd_make_vpath_bug=no
5706 fi
5707 { ac_try='rm -rf ac_test_dir ac_test_target conftestmake'
5708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709   (eval $ac_try) 2>&5
5710   ac_status=$?
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); }; }
5713 fi
5714 echo "$as_me:$LINENO: result: $ccvs_cv_bsd_make_vpath_bug" >&5
5715 echo "${ECHO_T}$ccvs_cv_bsd_make_vpath_bug" >&6
5716 # We also don't need to worry about the bug when $srcdir = $builddir
5717
5718
5719 if \
5720                 test $ccvs_cv_bsd_make_vpath_bug = no \
5721                 || test $srcdir = .; then
5722   MAKE_TARGETS_IN_VPATH_TRUE=
5723   MAKE_TARGETS_IN_VPATH_FALSE='#'
5724 else
5725   MAKE_TARGETS_IN_VPATH_TRUE='#'
5726   MAKE_TARGETS_IN_VPATH_FALSE=
5727 fi
5728
5729
5730
5731
5732
5733
5734
5735 ac_header_dirent=no
5736 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5737   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5738 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5739 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h.  */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h.  */
5749 #include <sys/types.h>
5750 #include <$ac_hdr>
5751
5752 int
5753 main ()
5754 {
5755 if ((DIR *) 0)
5756 return 0;
5757   ;
5758   return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763   (eval $ac_compile) 2>conftest.er1
5764   ac_status=$?
5765   grep -v '^ *+' conftest.er1 >conftest.err
5766   rm -f conftest.er1
5767   cat conftest.err >&5
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); } &&
5770          { ac_try='test -z "$ac_c_werror_flag"
5771                          || test ! -s conftest.err'
5772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773   (eval $ac_try) 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); }; } &&
5777          { ac_try='test -s conftest.$ac_objext'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; }; then
5783   eval "$as_ac_Header=yes"
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788 eval "$as_ac_Header=no"
5789 fi
5790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5791 fi
5792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5795   cat >>confdefs.h <<_ACEOF
5796 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5797 _ACEOF
5798
5799 ac_header_dirent=$ac_hdr; break
5800 fi
5801
5802 done
5803 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5804 if test $ac_header_dirent = dirent.h; then
5805   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5806 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5807 if test "${ac_cv_search_opendir+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   ac_func_search_save_LIBS=$LIBS
5811 ac_cv_search_opendir=no
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h.  */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h.  */
5818
5819 /* Override any gcc2 internal prototype to avoid an error.  */
5820 #ifdef __cplusplus
5821 extern "C"
5822 #endif
5823 /* We use char because int might match the return type of a gcc2
5824    builtin and then its argument prototype would still apply.  */
5825 char opendir ();
5826 int
5827 main ()
5828 {
5829 opendir ();
5830   ;
5831   return 0;
5832 }
5833 _ACEOF
5834 rm -f conftest.$ac_objext conftest$ac_exeext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5836   (eval $ac_link) 2>conftest.er1
5837   ac_status=$?
5838   grep -v '^ *+' conftest.er1 >conftest.err
5839   rm -f conftest.er1
5840   cat conftest.err >&5
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); } &&
5843          { ac_try='test -z "$ac_c_werror_flag"
5844                          || test ! -s conftest.err'
5845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846   (eval $ac_try) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); }; } &&
5850          { ac_try='test -s conftest$ac_exeext'
5851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852   (eval $ac_try) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; }; then
5856   ac_cv_search_opendir="none required"
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861 fi
5862 rm -f conftest.err conftest.$ac_objext \
5863       conftest$ac_exeext conftest.$ac_ext
5864 if test "$ac_cv_search_opendir" = no; then
5865   for ac_lib in dir; do
5866     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5867     cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h.  */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h.  */
5873
5874 /* Override any gcc2 internal prototype to avoid an error.  */
5875 #ifdef __cplusplus
5876 extern "C"
5877 #endif
5878 /* We use char because int might match the return type of a gcc2
5879    builtin and then its argument prototype would still apply.  */
5880 char opendir ();
5881 int
5882 main ()
5883 {
5884 opendir ();
5885   ;
5886   return 0;
5887 }
5888 _ACEOF
5889 rm -f conftest.$ac_objext conftest$ac_exeext
5890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5891   (eval $ac_link) 2>conftest.er1
5892   ac_status=$?
5893   grep -v '^ *+' conftest.er1 >conftest.err
5894   rm -f conftest.er1
5895   cat conftest.err >&5
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } &&
5898          { ac_try='test -z "$ac_c_werror_flag"
5899                          || test ! -s conftest.err'
5900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901   (eval $ac_try) 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); }; } &&
5905          { ac_try='test -s conftest$ac_exeext'
5906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907   (eval $ac_try) 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); }; }; then
5911   ac_cv_search_opendir="-l$ac_lib"
5912 break
5913 else
5914   echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5916
5917 fi
5918 rm -f conftest.err conftest.$ac_objext \
5919       conftest$ac_exeext conftest.$ac_ext
5920   done
5921 fi
5922 LIBS=$ac_func_search_save_LIBS
5923 fi
5924 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5925 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5926 if test "$ac_cv_search_opendir" != no; then
5927   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5928
5929 fi
5930
5931 else
5932   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5933 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5934 if test "${ac_cv_search_opendir+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   ac_func_search_save_LIBS=$LIBS
5938 ac_cv_search_opendir=no
5939 cat >conftest.$ac_ext <<_ACEOF
5940 /* confdefs.h.  */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h.  */
5945
5946 /* Override any gcc2 internal prototype to avoid an error.  */
5947 #ifdef __cplusplus
5948 extern "C"
5949 #endif
5950 /* We use char because int might match the return type of a gcc2
5951    builtin and then its argument prototype would still apply.  */
5952 char opendir ();
5953 int
5954 main ()
5955 {
5956 opendir ();
5957   ;
5958   return 0;
5959 }
5960 _ACEOF
5961 rm -f conftest.$ac_objext conftest$ac_exeext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963   (eval $ac_link) 2>conftest.er1
5964   ac_status=$?
5965   grep -v '^ *+' conftest.er1 >conftest.err
5966   rm -f conftest.er1
5967   cat conftest.err >&5
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); } &&
5970          { ac_try='test -z "$ac_c_werror_flag"
5971                          || test ! -s conftest.err'
5972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973   (eval $ac_try) 2>&5
5974   ac_status=$?
5975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976   (exit $ac_status); }; } &&
5977          { ac_try='test -s conftest$ac_exeext'
5978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979   (eval $ac_try) 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); }; }; then
5983   ac_cv_search_opendir="none required"
5984 else
5985   echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988 fi
5989 rm -f conftest.err conftest.$ac_objext \
5990       conftest$ac_exeext conftest.$ac_ext
5991 if test "$ac_cv_search_opendir" = no; then
5992   for ac_lib in x; do
5993     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5994     cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000
6001 /* Override any gcc2 internal prototype to avoid an error.  */
6002 #ifdef __cplusplus
6003 extern "C"
6004 #endif
6005 /* We use char because int might match the return type of a gcc2
6006    builtin and then its argument prototype would still apply.  */
6007 char opendir ();
6008 int
6009 main ()
6010 {
6011 opendir ();
6012   ;
6013   return 0;
6014 }
6015 _ACEOF
6016 rm -f conftest.$ac_objext conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018   (eval $ac_link) 2>conftest.er1
6019   ac_status=$?
6020   grep -v '^ *+' conftest.er1 >conftest.err
6021   rm -f conftest.er1
6022   cat conftest.err >&5
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); } &&
6025          { ac_try='test -z "$ac_c_werror_flag"
6026                          || test ! -s conftest.err'
6027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028   (eval $ac_try) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; } &&
6032          { ac_try='test -s conftest$ac_exeext'
6033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034   (eval $ac_try) 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; }; then
6038   ac_cv_search_opendir="-l$ac_lib"
6039 break
6040 else
6041   echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6043
6044 fi
6045 rm -f conftest.err conftest.$ac_objext \
6046       conftest$ac_exeext conftest.$ac_ext
6047   done
6048 fi
6049 LIBS=$ac_func_search_save_LIBS
6050 fi
6051 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6052 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6053 if test "$ac_cv_search_opendir" != no; then
6054   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6055
6056 fi
6057
6058 fi
6059
6060 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6061 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6062 if test "${ac_cv_header_stdc+set}" = set; then
6063   echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065   cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h.  */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h.  */
6071 #include <stdlib.h>
6072 #include <stdarg.h>
6073 #include <string.h>
6074 #include <float.h>
6075
6076 int
6077 main ()
6078 {
6079
6080   ;
6081   return 0;
6082 }
6083 _ACEOF
6084 rm -f conftest.$ac_objext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086   (eval $ac_compile) 2>conftest.er1
6087   ac_status=$?
6088   grep -v '^ *+' conftest.er1 >conftest.err
6089   rm -f conftest.er1
6090   cat conftest.err >&5
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); } &&
6093          { ac_try='test -z "$ac_c_werror_flag"
6094                          || test ! -s conftest.err'
6095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096   (eval $ac_try) 2>&5
6097   ac_status=$?
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); }; } &&
6100          { ac_try='test -s conftest.$ac_objext'
6101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102   (eval $ac_try) 2>&5
6103   ac_status=$?
6104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); }; }; then
6106   ac_cv_header_stdc=yes
6107 else
6108   echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6110
6111 ac_cv_header_stdc=no
6112 fi
6113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6114
6115 if test $ac_cv_header_stdc = yes; then
6116   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6117   cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h.  */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h.  */
6123 #include <string.h>
6124
6125 _ACEOF
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127   $EGREP "memchr" >/dev/null 2>&1; then
6128   :
6129 else
6130   ac_cv_header_stdc=no
6131 fi
6132 rm -f conftest*
6133
6134 fi
6135
6136 if test $ac_cv_header_stdc = yes; then
6137   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6138   cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144 #include <stdlib.h>
6145
6146 _ACEOF
6147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6148   $EGREP "free" >/dev/null 2>&1; then
6149   :
6150 else
6151   ac_cv_header_stdc=no
6152 fi
6153 rm -f conftest*
6154
6155 fi
6156
6157 if test $ac_cv_header_stdc = yes; then
6158   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6159   if test "$cross_compiling" = yes; then
6160   :
6161 else
6162   cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h.  */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h.  */
6168 #include <ctype.h>
6169 #if ((' ' & 0x0FF) == 0x020)
6170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6172 #else
6173 # define ISLOWER(c) \
6174                    (('a' <= (c) && (c) <= 'i') \
6175                      || ('j' <= (c) && (c) <= 'r') \
6176                      || ('s' <= (c) && (c) <= 'z'))
6177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6178 #endif
6179
6180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6181 int
6182 main ()
6183 {
6184   int i;
6185   for (i = 0; i < 256; i++)
6186     if (XOR (islower (i), ISLOWER (i))
6187         || toupper (i) != TOUPPER (i))
6188       exit(2);
6189   exit (0);
6190 }
6191 _ACEOF
6192 rm -f conftest$ac_exeext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6194   (eval $ac_link) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199   (eval $ac_try) 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); }; }; then
6203   :
6204 else
6205   echo "$as_me: program exited with status $ac_status" >&5
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209 ( exit $ac_status )
6210 ac_cv_header_stdc=no
6211 fi
6212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6213 fi
6214 fi
6215 fi
6216 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6217 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6218 if test $ac_cv_header_stdc = yes; then
6219
6220 cat >>confdefs.h <<\_ACEOF
6221 #define STDC_HEADERS 1
6222 _ACEOF
6223
6224 fi
6225
6226 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6227 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6228 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h.  */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h.  */
6237 #include <sys/types.h>
6238 #include <sys/wait.h>
6239 #ifndef WEXITSTATUS
6240 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6241 #endif
6242 #ifndef WIFEXITED
6243 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6244 #endif
6245
6246 int
6247 main ()
6248 {
6249   int s;
6250   wait (&s);
6251   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6252   ;
6253   return 0;
6254 }
6255 _ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258   (eval $ac_compile) 2>conftest.er1
6259   ac_status=$?
6260   grep -v '^ *+' conftest.er1 >conftest.err
6261   rm -f conftest.er1
6262   cat conftest.err >&5
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); } &&
6265          { ac_try='test -z "$ac_c_werror_flag"
6266                          || test ! -s conftest.err'
6267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268   (eval $ac_try) 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); }; } &&
6272          { ac_try='test -s conftest.$ac_objext'
6273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274   (eval $ac_try) 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); }; }; then
6278   ac_cv_header_sys_wait_h=yes
6279 else
6280   echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 ac_cv_header_sys_wait_h=no
6284 fi
6285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6286 fi
6287 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6288 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6289 if test $ac_cv_header_sys_wait_h = yes; then
6290
6291 cat >>confdefs.h <<\_ACEOF
6292 #define HAVE_SYS_WAIT_H 1
6293 _ACEOF
6294
6295 fi
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311 for ac_header in \
6312         direct.h \
6313         fcntl.h \
6314         io.h \
6315         memory.h \
6316         ndbm.h \
6317         stdint.h \
6318         syslog.h \
6319         sys/bsdtypes.h \
6320         sys/file.h \
6321         sys/param.h \
6322         sys/resource.h \
6323         sys/select.h \
6324         unistd.h \
6325         utime.h\
6326
6327 do
6328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6330   echo "$as_me:$LINENO: checking for $ac_header" >&5
6331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 fi
6335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6337 else
6338   # Is the header compilable?
6339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h.  */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h.  */
6347 $ac_includes_default
6348 #include <$ac_header>
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6352   (eval $ac_compile) 2>conftest.er1
6353   ac_status=$?
6354   grep -v '^ *+' conftest.er1 >conftest.err
6355   rm -f conftest.er1
6356   cat conftest.err >&5
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); } &&
6359          { ac_try='test -z "$ac_c_werror_flag"
6360                          || test ! -s conftest.err'
6361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362   (eval $ac_try) 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; } &&
6366          { ac_try='test -s conftest.$ac_objext'
6367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368   (eval $ac_try) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; }; then
6372   ac_header_compiler=yes
6373 else
6374   echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6376
6377 ac_header_compiler=no
6378 fi
6379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6381 echo "${ECHO_T}$ac_header_compiler" >&6
6382
6383 # Is the header present?
6384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h.  */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h.  */
6392 #include <$ac_header>
6393 _ACEOF
6394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6396   ac_status=$?
6397   grep -v '^ *+' conftest.er1 >conftest.err
6398   rm -f conftest.er1
6399   cat conftest.err >&5
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); } >/dev/null; then
6402   if test -s conftest.err; then
6403     ac_cpp_err=$ac_c_preproc_warn_flag
6404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6405   else
6406     ac_cpp_err=
6407   fi
6408 else
6409   ac_cpp_err=yes
6410 fi
6411 if test -z "$ac_cpp_err"; then
6412   ac_header_preproc=yes
6413 else
6414   echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417   ac_header_preproc=no
6418 fi
6419 rm -f conftest.err conftest.$ac_ext
6420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6421 echo "${ECHO_T}$ac_header_preproc" >&6
6422
6423 # So?  What about this header?
6424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6425   yes:no: )
6426     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6430     ac_header_preproc=yes
6431     ;;
6432   no:yes:* )
6433     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6435     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6436 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6437     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6439     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6440 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6443     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6445     (
6446       cat <<\_ASBOX
6447 ## ------------------------------ ##
6448 ## Report this to bug-cvs@gnu.org ##
6449 ## ------------------------------ ##
6450 _ASBOX
6451     ) |
6452       sed "s/^/$as_me: WARNING:     /" >&2
6453     ;;
6454 esac
6455 echo "$as_me:$LINENO: checking for $ac_header" >&5
6456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   eval "$as_ac_Header=\$ac_header_preproc"
6461 fi
6462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6464
6465 fi
6466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6467   cat >>confdefs.h <<_ACEOF
6468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6469 _ACEOF
6470
6471 fi
6472
6473 done
6474
6475 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6476 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6477 if test "${ac_cv_header_stat_broken+set}" = set; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h.  */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h.  */
6486 #include <sys/types.h>
6487 #include <sys/stat.h>
6488
6489 #if defined(S_ISBLK) && defined(S_IFDIR)
6490 # if S_ISBLK (S_IFDIR)
6491 You lose.
6492 # endif
6493 #endif
6494
6495 #if defined(S_ISBLK) && defined(S_IFCHR)
6496 # if S_ISBLK (S_IFCHR)
6497 You lose.
6498 # endif
6499 #endif
6500
6501 #if defined(S_ISLNK) && defined(S_IFREG)
6502 # if S_ISLNK (S_IFREG)
6503 You lose.
6504 # endif
6505 #endif
6506
6507 #if defined(S_ISSOCK) && defined(S_IFREG)
6508 # if S_ISSOCK (S_IFREG)
6509 You lose.
6510 # endif
6511 #endif
6512
6513 _ACEOF
6514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6515   $EGREP "You lose" >/dev/null 2>&1; then
6516   ac_cv_header_stat_broken=yes
6517 else
6518   ac_cv_header_stat_broken=no
6519 fi
6520 rm -f conftest*
6521
6522 fi
6523 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6524 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6525 if test $ac_cv_header_stat_broken = yes; then
6526
6527 cat >>confdefs.h <<\_ACEOF
6528 #define STAT_MACROS_BROKEN 1
6529 _ACEOF
6530
6531 fi
6532
6533
6534 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6535 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6536 if test "${ac_cv_c_const+set}" = set; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h.  */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h.  */
6545
6546 int
6547 main ()
6548 {
6549 /* FIXME: Include the comments suggested by Paul. */
6550 #ifndef __cplusplus
6551   /* Ultrix mips cc rejects this.  */
6552   typedef int charset[2];
6553   const charset x;
6554   /* SunOS 4.1.1 cc rejects this.  */
6555   char const *const *ccp;
6556   char **p;
6557   /* NEC SVR4.0.2 mips cc rejects this.  */
6558   struct point {int x, y;};
6559   static struct point const zero = {0,0};
6560   /* AIX XL C 1.02.0.0 rejects this.
6561      It does not let you subtract one const X* pointer from another in
6562      an arm of an if-expression whose if-part is not a constant
6563      expression */
6564   const char *g = "string";
6565   ccp = &g + (g ? g-g : 0);
6566   /* HPUX 7.0 cc rejects these. */
6567   ++ccp;
6568   p = (char**) ccp;
6569   ccp = (char const *const *) p;
6570   { /* SCO 3.2v4 cc rejects this.  */
6571     char *t;
6572     char const *s = 0 ? (char *) 0 : (char const *) 0;
6573
6574     *t++ = 0;
6575   }
6576   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6577     int x[] = {25, 17};
6578     const int *foo = &x[0];
6579     ++foo;
6580   }
6581   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6582     typedef const int *iptr;
6583     iptr p = 0;
6584     ++p;
6585   }
6586   { /* AIX XL C 1.02.0.0 rejects this saying
6587        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6588     struct s { int j; const int *ap[3]; };
6589     struct s *b; b->j = 5;
6590   }
6591   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6592     const int foo = 10;
6593   }
6594 #endif
6595
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 rm -f conftest.$ac_objext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602   (eval $ac_compile) 2>conftest.er1
6603   ac_status=$?
6604   grep -v '^ *+' conftest.er1 >conftest.err
6605   rm -f conftest.er1
6606   cat conftest.err >&5
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); } &&
6609          { ac_try='test -z "$ac_c_werror_flag"
6610                          || test ! -s conftest.err'
6611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612   (eval $ac_try) 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); }; } &&
6616          { ac_try='test -s conftest.$ac_objext'
6617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618   (eval $ac_try) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; }; then
6622   ac_cv_c_const=yes
6623 else
6624   echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6626
6627 ac_cv_c_const=no
6628 fi
6629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6630 fi
6631 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6632 echo "${ECHO_T}$ac_cv_c_const" >&6
6633 if test $ac_cv_c_const = no; then
6634
6635 cat >>confdefs.h <<\_ACEOF
6636 #define const
6637 _ACEOF
6638
6639 fi
6640
6641 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6642 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6643 if test "${ac_cv_type_uid_t+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h.  */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h.  */
6652 #include <sys/types.h>
6653
6654 _ACEOF
6655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6656   $EGREP "uid_t" >/dev/null 2>&1; then
6657   ac_cv_type_uid_t=yes
6658 else
6659   ac_cv_type_uid_t=no
6660 fi
6661 rm -f conftest*
6662
6663 fi
6664 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6665 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6666 if test $ac_cv_type_uid_t = no; then
6667
6668 cat >>confdefs.h <<\_ACEOF
6669 #define uid_t int
6670 _ACEOF
6671
6672
6673 cat >>confdefs.h <<\_ACEOF
6674 #define gid_t int
6675 _ACEOF
6676
6677 fi
6678
6679 echo "$as_me:$LINENO: checking for mode_t" >&5
6680 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6681 if test "${ac_cv_type_mode_t+set}" = set; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h.  */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h.  */
6690 $ac_includes_default
6691 int
6692 main ()
6693 {
6694 if ((mode_t *) 0)
6695   return 0;
6696 if (sizeof (mode_t))
6697   return 0;
6698   ;
6699   return 0;
6700 }
6701 _ACEOF
6702 rm -f conftest.$ac_objext
6703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6704   (eval $ac_compile) 2>conftest.er1
6705   ac_status=$?
6706   grep -v '^ *+' conftest.er1 >conftest.err
6707   rm -f conftest.er1
6708   cat conftest.err >&5
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); } &&
6711          { ac_try='test -z "$ac_c_werror_flag"
6712                          || test ! -s conftest.err'
6713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714   (eval $ac_try) 2>&5
6715   ac_status=$?
6716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717   (exit $ac_status); }; } &&
6718          { ac_try='test -s conftest.$ac_objext'
6719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720   (eval $ac_try) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }; }; then
6724   ac_cv_type_mode_t=yes
6725 else
6726   echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729 ac_cv_type_mode_t=no
6730 fi
6731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6732 fi
6733 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6734 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6735 if test $ac_cv_type_mode_t = yes; then
6736   :
6737 else
6738
6739 cat >>confdefs.h <<_ACEOF
6740 #define mode_t int
6741 _ACEOF
6742
6743 fi
6744
6745 echo "$as_me:$LINENO: checking for pid_t" >&5
6746 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6747 if test "${ac_cv_type_pid_t+set}" = set; then
6748   echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750   cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h.  */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h.  */
6756 $ac_includes_default
6757 int
6758 main ()
6759 {
6760 if ((pid_t *) 0)
6761   return 0;
6762 if (sizeof (pid_t))
6763   return 0;
6764   ;
6765   return 0;
6766 }
6767 _ACEOF
6768 rm -f conftest.$ac_objext
6769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6770   (eval $ac_compile) 2>conftest.er1
6771   ac_status=$?
6772   grep -v '^ *+' conftest.er1 >conftest.err
6773   rm -f conftest.er1
6774   cat conftest.err >&5
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); } &&
6777          { ac_try='test -z "$ac_c_werror_flag"
6778                          || test ! -s conftest.err'
6779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780   (eval $ac_try) 2>&5
6781   ac_status=$?
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); }; } &&
6784          { ac_try='test -s conftest.$ac_objext'
6785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786   (eval $ac_try) 2>&5
6787   ac_status=$?
6788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789   (exit $ac_status); }; }; then
6790   ac_cv_type_pid_t=yes
6791 else
6792   echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6794
6795 ac_cv_type_pid_t=no
6796 fi
6797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798 fi
6799 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6800 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6801 if test $ac_cv_type_pid_t = yes; then
6802   :
6803 else
6804
6805 cat >>confdefs.h <<_ACEOF
6806 #define pid_t int
6807 _ACEOF
6808
6809 fi
6810
6811 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6812 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6813 if test "${ac_cv_type_signal+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h.  */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h.  */
6822 #include <sys/types.h>
6823 #include <signal.h>
6824 #ifdef signal
6825 # undef signal
6826 #endif
6827 #ifdef __cplusplus
6828 extern "C" void (*signal (int, void (*)(int)))(int);
6829 #else
6830 void (*signal ()) ();
6831 #endif
6832
6833 int
6834 main ()
6835 {
6836 int i;
6837   ;
6838   return 0;
6839 }
6840 _ACEOF
6841 rm -f conftest.$ac_objext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6843   (eval $ac_compile) 2>conftest.er1
6844   ac_status=$?
6845   grep -v '^ *+' conftest.er1 >conftest.err
6846   rm -f conftest.er1
6847   cat conftest.err >&5
6848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849   (exit $ac_status); } &&
6850          { ac_try='test -z "$ac_c_werror_flag"
6851                          || test ! -s conftest.err'
6852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853   (eval $ac_try) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; } &&
6857          { ac_try='test -s conftest.$ac_objext'
6858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859   (eval $ac_try) 2>&5
6860   ac_status=$?
6861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862   (exit $ac_status); }; }; then
6863   ac_cv_type_signal=void
6864 else
6865   echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6867
6868 ac_cv_type_signal=int
6869 fi
6870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6871 fi
6872 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6873 echo "${ECHO_T}$ac_cv_type_signal" >&6
6874
6875 cat >>confdefs.h <<_ACEOF
6876 #define RETSIGTYPE $ac_cv_type_signal
6877 _ACEOF
6878
6879
6880
6881 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6882 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6883 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6884   echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886   cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h.  */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h.  */
6892 $ac_includes_default
6893 int
6894 main ()
6895 {
6896 static struct stat ac_aggr;
6897 if (ac_aggr.st_blksize)
6898 return 0;
6899   ;
6900   return 0;
6901 }
6902 _ACEOF
6903 rm -f conftest.$ac_objext
6904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6905   (eval $ac_compile) 2>conftest.er1
6906   ac_status=$?
6907   grep -v '^ *+' conftest.er1 >conftest.err
6908   rm -f conftest.er1
6909   cat conftest.err >&5
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); } &&
6912          { ac_try='test -z "$ac_c_werror_flag"
6913                          || test ! -s conftest.err'
6914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915   (eval $ac_try) 2>&5
6916   ac_status=$?
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); }; } &&
6919          { ac_try='test -s conftest.$ac_objext'
6920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921   (eval $ac_try) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; }; then
6925   ac_cv_member_struct_stat_st_blksize=yes
6926 else
6927   echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930 cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h.  */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h.  */
6936 $ac_includes_default
6937 int
6938 main ()
6939 {
6940 static struct stat ac_aggr;
6941 if (sizeof ac_aggr.st_blksize)
6942 return 0;
6943   ;
6944   return 0;
6945 }
6946 _ACEOF
6947 rm -f conftest.$ac_objext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6949   (eval $ac_compile) 2>conftest.er1
6950   ac_status=$?
6951   grep -v '^ *+' conftest.er1 >conftest.err
6952   rm -f conftest.er1
6953   cat conftest.err >&5
6954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); } &&
6956          { ac_try='test -z "$ac_c_werror_flag"
6957                          || test ! -s conftest.err'
6958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959   (eval $ac_try) 2>&5
6960   ac_status=$?
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); }; } &&
6963          { ac_try='test -s conftest.$ac_objext'
6964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965   (eval $ac_try) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); }; }; then
6969   ac_cv_member_struct_stat_st_blksize=yes
6970 else
6971   echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6973
6974 ac_cv_member_struct_stat_st_blksize=no
6975 fi
6976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6977 fi
6978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6979 fi
6980 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6981 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6982 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6983
6984 cat >>confdefs.h <<_ACEOF
6985 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6986 _ACEOF
6987
6988
6989 fi
6990
6991 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6992 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6993 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996   cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002 $ac_includes_default
7003 int
7004 main ()
7005 {
7006 static struct stat ac_aggr;
7007 if (ac_aggr.st_rdev)
7008 return 0;
7009   ;
7010   return 0;
7011 }
7012 _ACEOF
7013 rm -f conftest.$ac_objext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015   (eval $ac_compile) 2>conftest.er1
7016   ac_status=$?
7017   grep -v '^ *+' conftest.er1 >conftest.err
7018   rm -f conftest.er1
7019   cat conftest.err >&5
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } &&
7022          { ac_try='test -z "$ac_c_werror_flag"
7023                          || test ! -s conftest.err'
7024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025   (eval $ac_try) 2>&5
7026   ac_status=$?
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); }; } &&
7029          { ac_try='test -s conftest.$ac_objext'
7030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031   (eval $ac_try) 2>&5
7032   ac_status=$?
7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034   (exit $ac_status); }; }; then
7035   ac_cv_member_struct_stat_st_rdev=yes
7036 else
7037   echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7039
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h.  */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h.  */
7046 $ac_includes_default
7047 int
7048 main ()
7049 {
7050 static struct stat ac_aggr;
7051 if (sizeof ac_aggr.st_rdev)
7052 return 0;
7053   ;
7054   return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059   (eval $ac_compile) 2>conftest.er1
7060   ac_status=$?
7061   grep -v '^ *+' conftest.er1 >conftest.err
7062   rm -f conftest.er1
7063   cat conftest.err >&5
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } &&
7066          { ac_try='test -z "$ac_c_werror_flag"
7067                          || test ! -s conftest.err'
7068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069   (eval $ac_try) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; } &&
7073          { ac_try='test -s conftest.$ac_objext'
7074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075   (eval $ac_try) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; }; then
7079   ac_cv_member_struct_stat_st_rdev=yes
7080 else
7081   echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084 ac_cv_member_struct_stat_st_rdev=no
7085 fi
7086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7087 fi
7088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7089 fi
7090 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7091 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7092 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7093
7094 cat >>confdefs.h <<_ACEOF
7095 #define HAVE_STRUCT_STAT_ST_RDEV 1
7096 _ACEOF
7097
7098
7099 fi
7100
7101
7102 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7103 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
7104 if test "${ac_cv_sys_largefile_source+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   while :; do
7108   ac_cv_sys_largefile_source=no
7109   cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115 #include <stdio.h>
7116 int
7117 main ()
7118 {
7119 return !fseeko;
7120   ;
7121   return 0;
7122 }
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126   (eval $ac_compile) 2>conftest.er1
7127   ac_status=$?
7128   grep -v '^ *+' conftest.er1 >conftest.err
7129   rm -f conftest.er1
7130   cat conftest.err >&5
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); } &&
7133          { ac_try='test -z "$ac_c_werror_flag"
7134                          || test ! -s conftest.err'
7135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136   (eval $ac_try) 2>&5
7137   ac_status=$?
7138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139   (exit $ac_status); }; } &&
7140          { ac_try='test -s conftest.$ac_objext'
7141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142   (eval $ac_try) 2>&5
7143   ac_status=$?
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); }; }; then
7146   break
7147 else
7148   echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7150
7151 fi
7152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7153   cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h.  */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h.  */
7159 #define _LARGEFILE_SOURCE 1
7160 #include <stdio.h>
7161 int
7162 main ()
7163 {
7164 return !fseeko;
7165   ;
7166   return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171   (eval $ac_compile) 2>conftest.er1
7172   ac_status=$?
7173   grep -v '^ *+' conftest.er1 >conftest.err
7174   rm -f conftest.er1
7175   cat conftest.err >&5
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); } &&
7178          { ac_try='test -z "$ac_c_werror_flag"
7179                          || test ! -s conftest.err'
7180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181   (eval $ac_try) 2>&5
7182   ac_status=$?
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); }; } &&
7185          { ac_try='test -s conftest.$ac_objext'
7186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187   (eval $ac_try) 2>&5
7188   ac_status=$?
7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); }; }; then
7191   ac_cv_sys_largefile_source=1; break
7192 else
7193   echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7195
7196 fi
7197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7198   break
7199 done
7200 fi
7201 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7202 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7203 if test "$ac_cv_sys_largefile_source" != no; then
7204
7205 cat >>confdefs.h <<_ACEOF
7206 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7207 _ACEOF
7208
7209 fi
7210 rm -f conftest*
7211
7212 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7213 # in glibc 2.1.3, but that breaks too many other things.
7214 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7215 echo "$as_me:$LINENO: checking for fseeko" >&5
7216 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
7217 if test "${ac_cv_func_fseeko+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h.  */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h.  */
7226 #include <stdio.h>
7227 int
7228 main ()
7229 {
7230 return fseeko && fseeko (stdin, 0, 0);
7231   ;
7232   return 0;
7233 }
7234 _ACEOF
7235 rm -f conftest.$ac_objext conftest$ac_exeext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7237   (eval $ac_link) 2>conftest.er1
7238   ac_status=$?
7239   grep -v '^ *+' conftest.er1 >conftest.err
7240   rm -f conftest.er1
7241   cat conftest.err >&5
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); } &&
7244          { ac_try='test -z "$ac_c_werror_flag"
7245                          || test ! -s conftest.err'
7246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247   (eval $ac_try) 2>&5
7248   ac_status=$?
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); }; } &&
7251          { ac_try='test -s conftest$ac_exeext'
7252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253   (eval $ac_try) 2>&5
7254   ac_status=$?
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); }; }; then
7257   ac_cv_func_fseeko=yes
7258 else
7259   echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7261
7262 ac_cv_func_fseeko=no
7263 fi
7264 rm -f conftest.err conftest.$ac_objext \
7265       conftest$ac_exeext conftest.$ac_ext
7266 fi
7267 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
7268 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
7269 if test $ac_cv_func_fseeko = yes; then
7270
7271 cat >>confdefs.h <<\_ACEOF
7272 #define HAVE_FSEEKO 1
7273 _ACEOF
7274
7275 fi
7276
7277 if test $ac_cv_func_fseeko = no; then
7278     case $LIBOBJS in
7279     "fseeko.$ac_objext"   | \
7280   *" fseeko.$ac_objext"   | \
7281     "fseeko.$ac_objext "* | \
7282   *" fseeko.$ac_objext "* ) ;;
7283   *) LIBOBJS="$LIBOBJS fseeko.$ac_objext" ;;
7284 esac
7285
7286     case $LIBOBJS in
7287     "ftello.$ac_objext"   | \
7288   *" ftello.$ac_objext"   | \
7289     "ftello.$ac_objext "* | \
7290   *" ftello.$ac_objext "* ) ;;
7291   *) LIBOBJS="$LIBOBJS ftello.$ac_objext" ;;
7292 esac
7293
7294 fi
7295
7296 # Replace functions with versions in lib/ when they can't be found.
7297
7298
7299
7300
7301
7302
7303
7304
7305 for ac_func in \
7306         dup2 \
7307         ftruncate \
7308         mkdir \
7309         rename \
7310         strstr \
7311         strtoul\
7312         valloc \
7313         waitpid \
7314
7315 do
7316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7317 echo "$as_me:$LINENO: checking for $ac_func" >&5
7318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7319 if eval "test \"\${$as_ac_var+set}\" = set"; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322   cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h.  */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h.  */
7328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7330 #define $ac_func innocuous_$ac_func
7331
7332 /* System header to define __stub macros and hopefully few prototypes,
7333     which can conflict with char $ac_func (); below.
7334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7335     <limits.h> exists even on freestanding compilers.  */
7336
7337 #ifdef __STDC__
7338 # include <limits.h>
7339 #else
7340 # include <assert.h>
7341 #endif
7342
7343 #undef $ac_func
7344
7345 /* Override any gcc2 internal prototype to avoid an error.  */
7346 #ifdef __cplusplus
7347 extern "C"
7348 {
7349 #endif
7350 /* We use char because int might match the return type of a gcc2
7351    builtin and then its argument prototype would still apply.  */
7352 char $ac_func ();
7353 /* The GNU C library defines this for functions which it implements
7354     to always fail with ENOSYS.  Some functions are actually named
7355     something starting with __ and the normal name is an alias.  */
7356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7357 choke me
7358 #else
7359 char (*f) () = $ac_func;
7360 #endif
7361 #ifdef __cplusplus
7362 }
7363 #endif
7364
7365 int
7366 main ()
7367 {
7368 return f != $ac_func;
7369   ;
7370   return 0;
7371 }
7372 _ACEOF
7373 rm -f conftest.$ac_objext conftest$ac_exeext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7375   (eval $ac_link) 2>conftest.er1
7376   ac_status=$?
7377   grep -v '^ *+' conftest.er1 >conftest.err
7378   rm -f conftest.er1
7379   cat conftest.err >&5
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); } &&
7382          { ac_try='test -z "$ac_c_werror_flag"
7383                          || test ! -s conftest.err'
7384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385   (eval $ac_try) 2>&5
7386   ac_status=$?
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); }; } &&
7389          { ac_try='test -s conftest$ac_exeext'
7390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391   (eval $ac_try) 2>&5
7392   ac_status=$?
7393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394   (exit $ac_status); }; }; then
7395   eval "$as_ac_var=yes"
7396 else
7397   echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7399
7400 eval "$as_ac_var=no"
7401 fi
7402 rm -f conftest.err conftest.$ac_objext \
7403       conftest$ac_exeext conftest.$ac_ext
7404 fi
7405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7407 if test `eval echo '${'$as_ac_var'}'` = yes; then
7408   cat >>confdefs.h <<_ACEOF
7409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7410 _ACEOF
7411
7412 else
7413   case $LIBOBJS in
7414     "$ac_func.$ac_objext"   | \
7415   *" $ac_func.$ac_objext"   | \
7416     "$ac_func.$ac_objext "* | \
7417   *" $ac_func.$ac_objext "* ) ;;
7418   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7419 esac
7420
7421 fi
7422 done
7423
7424
7425
7426
7427
7428 #
7429 # Begin GNULIB stuff.
7430 #
7431
7432 # Look for functions from GNULIB and replace with versions in lib/ when
7433 # necessary.
7434 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7435 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7436 if test "${ac_cv_header_time+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445 #include <sys/types.h>
7446 #include <sys/time.h>
7447 #include <time.h>
7448
7449 int
7450 main ()
7451 {
7452 if ((struct tm *) 0)
7453 return 0;
7454   ;
7455   return 0;
7456 }
7457 _ACEOF
7458 rm -f conftest.$ac_objext
7459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7460   (eval $ac_compile) 2>conftest.er1
7461   ac_status=$?
7462   grep -v '^ *+' conftest.er1 >conftest.err
7463   rm -f conftest.er1
7464   cat conftest.err >&5
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); } &&
7467          { ac_try='test -z "$ac_c_werror_flag"
7468                          || test ! -s conftest.err'
7469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470   (eval $ac_try) 2>&5
7471   ac_status=$?
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); }; } &&
7474          { ac_try='test -s conftest.$ac_objext'
7475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476   (eval $ac_try) 2>&5
7477   ac_status=$?
7478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); }; }; then
7480   ac_cv_header_time=yes
7481 else
7482   echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7484
7485 ac_cv_header_time=no
7486 fi
7487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7488 fi
7489 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7490 echo "${ECHO_T}$ac_cv_header_time" >&6
7491 if test $ac_cv_header_time = yes; then
7492
7493 cat >>confdefs.h <<\_ACEOF
7494 #define TIME_WITH_SYS_TIME 1
7495 _ACEOF
7496
7497 fi
7498
7499
7500
7501  echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
7502 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
7503 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   if test "$cross_compiling" = yes; then
7507          jm_cv_func_gettimeofday_clobber=yes
7508 else
7509   cat >conftest.$ac_ext <<_ACEOF
7510 /* confdefs.h.  */
7511 _ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h.  */
7515
7516 #include <stdio.h>
7517 #include <string.h>
7518
7519 #if TIME_WITH_SYS_TIME
7520 # include <sys/time.h>
7521 # include <time.h>
7522 #else
7523 # if HAVE_SYS_TIME_H
7524 #  include <sys/time.h>
7525 # else
7526 #  include <time.h>
7527 # endif
7528 #endif
7529
7530 #include <stdlib.h>
7531
7532 int
7533 main ()
7534 {
7535   time_t t = 0;
7536   struct tm *lt;
7537   struct tm saved_lt;
7538   struct timeval tv;
7539   lt = localtime (&t);
7540   saved_lt = *lt;
7541   gettimeofday (&tv, NULL);
7542   if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
7543     exit (1);
7544
7545   exit (0);
7546 }
7547
7548 _ACEOF
7549 rm -f conftest$ac_exeext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551   (eval $ac_link) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556   (eval $ac_try) 2>&5
7557   ac_status=$?
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); }; }; then
7560   jm_cv_func_gettimeofday_clobber=no
7561 else
7562   echo "$as_me: program exited with status $ac_status" >&5
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 ( exit $ac_status )
7567 jm_cv_func_gettimeofday_clobber=yes
7568 fi
7569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7570 fi
7571
7572 fi
7573 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
7574 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
7575   if test $jm_cv_func_gettimeofday_clobber = yes; then
7576
7577   case $LIBOBJS in
7578     "gettimeofday.$ac_objext"   | \
7579   *" gettimeofday.$ac_objext"   | \
7580     "gettimeofday.$ac_objext "* | \
7581   *" gettimeofday.$ac_objext "* ) ;;
7582   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
7583 esac
7584
7585
7586 cat >>confdefs.h <<\_ACEOF
7587 #define gmtime rpl_gmtime
7588 _ACEOF
7589
7590
7591 cat >>confdefs.h <<\_ACEOF
7592 #define localtime rpl_localtime
7593 _ACEOF
7594
7595
7596
7597
7598 cat >>confdefs.h <<\_ACEOF
7599 #define gettimeofday rpl_gettimeofday
7600 _ACEOF
7601
7602
7603 cat >>confdefs.h <<\_ACEOF
7604 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
7605 _ACEOF
7606
7607
7608
7609
7610   fi
7611
7612 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
7613 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
7614 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
7615   echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617   cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h.  */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h.  */
7623 $ac_includes_default
7624 int
7625 main ()
7626 {
7627 #ifndef strerror_r
7628   char *p = (char *) strerror_r;
7629 #endif
7630
7631   ;
7632   return 0;
7633 }
7634 _ACEOF
7635 rm -f conftest.$ac_objext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637   (eval $ac_compile) 2>conftest.er1
7638   ac_status=$?
7639   grep -v '^ *+' conftest.er1 >conftest.err
7640   rm -f conftest.er1
7641   cat conftest.err >&5
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); } &&
7644          { ac_try='test -z "$ac_c_werror_flag"
7645                          || test ! -s conftest.err'
7646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647   (eval $ac_try) 2>&5
7648   ac_status=$?
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); }; } &&
7651          { ac_try='test -s conftest.$ac_objext'
7652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653   (eval $ac_try) 2>&5
7654   ac_status=$?
7655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); }; }; then
7657   ac_cv_have_decl_strerror_r=yes
7658 else
7659   echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7661
7662 ac_cv_have_decl_strerror_r=no
7663 fi
7664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7665 fi
7666 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
7667 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
7668 if test $ac_cv_have_decl_strerror_r = yes; then
7669
7670 cat >>confdefs.h <<_ACEOF
7671 #define HAVE_DECL_STRERROR_R 1
7672 _ACEOF
7673
7674
7675 else
7676   cat >>confdefs.h <<_ACEOF
7677 #define HAVE_DECL_STRERROR_R 0
7678 _ACEOF
7679
7680
7681 fi
7682
7683
7684
7685 for ac_func in strerror_r
7686 do
7687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7688 echo "$as_me:$LINENO: checking for $ac_func" >&5
7689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7690 if eval "test \"\${$as_ac_var+set}\" = set"; then
7691   echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693   cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h.  */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h.  */
7699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7701 #define $ac_func innocuous_$ac_func
7702
7703 /* System header to define __stub macros and hopefully few prototypes,
7704     which can conflict with char $ac_func (); below.
7705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706     <limits.h> exists even on freestanding compilers.  */
7707
7708 #ifdef __STDC__
7709 # include <limits.h>
7710 #else
7711 # include <assert.h>
7712 #endif
7713
7714 #undef $ac_func
7715
7716 /* Override any gcc2 internal prototype to avoid an error.  */
7717 #ifdef __cplusplus
7718 extern "C"
7719 {
7720 #endif
7721 /* We use char because int might match the return type of a gcc2
7722    builtin and then its argument prototype would still apply.  */
7723 char $ac_func ();
7724 /* The GNU C library defines this for functions which it implements
7725     to always fail with ENOSYS.  Some functions are actually named
7726     something starting with __ and the normal name is an alias.  */
7727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7728 choke me
7729 #else
7730 char (*f) () = $ac_func;
7731 #endif
7732 #ifdef __cplusplus
7733 }
7734 #endif
7735
7736 int
7737 main ()
7738 {
7739 return f != $ac_func;
7740   ;
7741   return 0;
7742 }
7743 _ACEOF
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746   (eval $ac_link) 2>conftest.er1
7747   ac_status=$?
7748   grep -v '^ *+' conftest.er1 >conftest.err
7749   rm -f conftest.er1
7750   cat conftest.err >&5
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); } &&
7753          { ac_try='test -z "$ac_c_werror_flag"
7754                          || test ! -s conftest.err'
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); }; } &&
7760          { ac_try='test -s conftest$ac_exeext'
7761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762   (eval $ac_try) 2>&5
7763   ac_status=$?
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); }; }; then
7766   eval "$as_ac_var=yes"
7767 else
7768   echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7770
7771 eval "$as_ac_var=no"
7772 fi
7773 rm -f conftest.err conftest.$ac_objext \
7774       conftest$ac_exeext conftest.$ac_ext
7775 fi
7776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7778 if test `eval echo '${'$as_ac_var'}'` = yes; then
7779   cat >>confdefs.h <<_ACEOF
7780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7781 _ACEOF
7782
7783 fi
7784 done
7785
7786 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
7787 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
7788 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791
7792     ac_cv_func_strerror_r_char_p=no
7793     if test $ac_cv_have_decl_strerror_r = yes; then
7794       cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h.  */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h.  */
7800 $ac_includes_default
7801 int
7802 main ()
7803 {
7804
7805           char buf[100];
7806           char x = *strerror_r (0, buf, sizeof buf);
7807           char *p = strerror_r (0, buf, sizeof buf);
7808
7809   ;
7810   return 0;
7811 }
7812 _ACEOF
7813 rm -f conftest.$ac_objext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7815   (eval $ac_compile) 2>conftest.er1
7816   ac_status=$?
7817   grep -v '^ *+' conftest.er1 >conftest.err
7818   rm -f conftest.er1
7819   cat conftest.err >&5
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); } &&
7822          { ac_try='test -z "$ac_c_werror_flag"
7823                          || test ! -s conftest.err'
7824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825   (eval $ac_try) 2>&5
7826   ac_status=$?
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); }; } &&
7829          { ac_try='test -s conftest.$ac_objext'
7830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831   (eval $ac_try) 2>&5
7832   ac_status=$?
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); }; }; then
7835   ac_cv_func_strerror_r_char_p=yes
7836 else
7837   echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7839
7840 fi
7841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7842     else
7843       # strerror_r is not declared.  Choose between
7844       # systems that have relatively inaccessible declarations for the
7845       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
7846       # former has a strerror_r that returns char*, while the latter
7847       # has a strerror_r that returns `int'.
7848       # This test should segfault on the DEC system.
7849       if test "$cross_compiling" = yes; then
7850   :
7851 else
7852   cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h.  */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h.  */
7858 $ac_includes_default
7859         extern char *strerror_r ();
7860 int
7861 main ()
7862 {
7863 char buf[100];
7864           char x = *strerror_r (0, buf, sizeof buf);
7865           exit (!isalpha (x));
7866   ;
7867   return 0;
7868 }
7869 _ACEOF
7870 rm -f conftest$ac_exeext
7871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7872   (eval $ac_link) 2>&5
7873   ac_status=$?
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877   (eval $ac_try) 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); }; }; then
7881   ac_cv_func_strerror_r_char_p=yes
7882 else
7883   echo "$as_me: program exited with status $ac_status" >&5
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7886
7887 fi
7888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7889 fi
7890     fi
7891
7892 fi
7893 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
7894 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
7895 if test $ac_cv_func_strerror_r_char_p = yes; then
7896
7897 cat >>confdefs.h <<\_ACEOF
7898 #define STRERROR_R_CHAR_P 1
7899 _ACEOF
7900
7901 fi
7902
7903
7904   echo "$as_me:$LINENO: checking for ssize_t" >&5
7905 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7906 if test "${gt_cv_ssize_t+set}" = set; then
7907   echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909   cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h.  */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h.  */
7915 #include <sys/types.h>
7916 int
7917 main ()
7918 {
7919 int x = sizeof (ssize_t *) + sizeof (ssize_t);
7920   ;
7921   return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7926   (eval $ac_compile) 2>conftest.er1
7927   ac_status=$?
7928   grep -v '^ *+' conftest.er1 >conftest.err
7929   rm -f conftest.er1
7930   cat conftest.err >&5
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } &&
7933          { ac_try='test -z "$ac_c_werror_flag"
7934                          || test ! -s conftest.err'
7935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936   (eval $ac_try) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; } &&
7940          { ac_try='test -s conftest.$ac_objext'
7941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942   (eval $ac_try) 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); }; }; then
7946   gt_cv_ssize_t=yes
7947 else
7948   echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 gt_cv_ssize_t=no
7952 fi
7953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7954 fi
7955 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
7956 echo "${ECHO_T}$gt_cv_ssize_t" >&6
7957   if test $gt_cv_ssize_t = no; then
7958
7959 cat >>confdefs.h <<\_ACEOF
7960 #define ssize_t int
7961 _ACEOF
7962
7963   fi
7964
7965
7966
7967
7968   am_getline_needs_run_time_check=no
7969   echo "$as_me:$LINENO: checking for getline" >&5
7970 echo $ECHO_N "checking for getline... $ECHO_C" >&6
7971 if test "${ac_cv_func_getline+set}" = set; then
7972   echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974   cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h.  */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h.  */
7980 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
7981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7982 #define getline innocuous_getline
7983
7984 /* System header to define __stub macros and hopefully few prototypes,
7985     which can conflict with char getline (); below.
7986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7987     <limits.h> exists even on freestanding compilers.  */
7988
7989 #ifdef __STDC__
7990 # include <limits.h>
7991 #else
7992 # include <assert.h>
7993 #endif
7994
7995 #undef getline
7996
7997 /* Override any gcc2 internal prototype to avoid an error.  */
7998 #ifdef __cplusplus
7999 extern "C"
8000 {
8001 #endif
8002 /* We use char because int might match the return type of a gcc2
8003    builtin and then its argument prototype would still apply.  */
8004 char getline ();
8005 /* The GNU C library defines this for functions which it implements
8006     to always fail with ENOSYS.  Some functions are actually named
8007     something starting with __ and the normal name is an alias.  */
8008 #if defined (__stub_getline) || defined (__stub___getline)
8009 choke me
8010 #else
8011 char (*f) () = getline;
8012 #endif
8013 #ifdef __cplusplus
8014 }
8015 #endif
8016
8017 int
8018 main ()
8019 {
8020 return f != getline;
8021   ;
8022   return 0;
8023 }
8024 _ACEOF
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027   (eval $ac_link) 2>conftest.er1
8028   ac_status=$?
8029   grep -v '^ *+' conftest.er1 >conftest.err
8030   rm -f conftest.er1
8031   cat conftest.err >&5
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } &&
8034          { ac_try='test -z "$ac_c_werror_flag"
8035                          || test ! -s conftest.err'
8036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037   (eval $ac_try) 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); }; } &&
8041          { ac_try='test -s conftest$ac_exeext'
8042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043   (eval $ac_try) 2>&5
8044   ac_status=$?
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); }; }; then
8047   ac_cv_func_getline=yes
8048 else
8049   echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052 ac_cv_func_getline=no
8053 fi
8054 rm -f conftest.err conftest.$ac_objext \
8055       conftest$ac_exeext conftest.$ac_ext
8056 fi
8057 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
8058 echo "${ECHO_T}$ac_cv_func_getline" >&6
8059 if test $ac_cv_func_getline = yes; then
8060                 am_getline_needs_run_time_check=yes
8061 else
8062   am_cv_func_working_getline=no
8063 fi
8064
8065   if test $am_getline_needs_run_time_check = yes; then
8066     echo "$as_me:$LINENO: checking for working getline function" >&5
8067 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
8068 if test "${am_cv_func_working_getline+set}" = set; then
8069   echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
8072     if test "$cross_compiling" = yes; then
8073   am_cv_func_working_getline=no
8074 else
8075   cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h.  */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h.  */
8081
8082 #    include <stdio.h>
8083 #    include <stdlib.h>
8084 #    include <string.h>
8085     int main ()
8086     { /* Based on a test program from Karl Heuer.  */
8087       char *line = NULL;
8088       size_t siz = 0;
8089       int len;
8090       FILE *in = fopen ("./conftest.data", "r");
8091       if (!in)
8092         return 1;
8093       len = getline (&line, &siz, in);
8094       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
8095     }
8096
8097 _ACEOF
8098 rm -f conftest$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100   (eval $ac_link) 2>&5
8101   ac_status=$?
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105   (eval $ac_try) 2>&5
8106   ac_status=$?
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); }; }; then
8109   am_cv_func_working_getline=yes
8110 else
8111   echo "$as_me: program exited with status $ac_status" >&5
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115 ( exit $ac_status )
8116 am_cv_func_working_getline=no
8117 fi
8118 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8119 fi
8120 fi
8121 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
8122 echo "${ECHO_T}$am_cv_func_working_getline" >&6
8123   fi
8124
8125   if test $am_cv_func_working_getline = no; then
8126
8127 cat >>confdefs.h <<\_ACEOF
8128 #define getline gnu_getline
8129 _ACEOF
8130
8131     case $LIBOBJS in
8132     "getline.$ac_objext"   | \
8133   *" getline.$ac_objext"   | \
8134     "getline.$ac_objext "* | \
8135   *" getline.$ac_objext "* ) ;;
8136   *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
8137 esac
8138
8139
8140     # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
8141     # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
8142     case " $LIBOBJS " in
8143     *" getndelim2.$ac_objext "* ) ;;
8144     *) case $LIBOBJS in
8145     "getndelim2.$ac_objext"   | \
8146   *" getndelim2.$ac_objext"   | \
8147     "getndelim2.$ac_objext "* | \
8148   *" getndelim2.$ac_objext "* ) ;;
8149   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
8150 esac
8151 ;;
8152     esac
8153
8154
8155
8156 for ac_func in getdelim
8157 do
8158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8159 echo "$as_me:$LINENO: checking for $ac_func" >&5
8160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8161 if eval "test \"\${$as_ac_var+set}\" = set"; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8172 #define $ac_func innocuous_$ac_func
8173
8174 /* System header to define __stub macros and hopefully few prototypes,
8175     which can conflict with char $ac_func (); below.
8176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8177     <limits.h> exists even on freestanding compilers.  */
8178
8179 #ifdef __STDC__
8180 # include <limits.h>
8181 #else
8182 # include <assert.h>
8183 #endif
8184
8185 #undef $ac_func
8186
8187 /* Override any gcc2 internal prototype to avoid an error.  */
8188 #ifdef __cplusplus
8189 extern "C"
8190 {
8191 #endif
8192 /* We use char because int might match the return type of a gcc2
8193    builtin and then its argument prototype would still apply.  */
8194 char $ac_func ();
8195 /* The GNU C library defines this for functions which it implements
8196     to always fail with ENOSYS.  Some functions are actually named
8197     something starting with __ and the normal name is an alias.  */
8198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8199 choke me
8200 #else
8201 char (*f) () = $ac_func;
8202 #endif
8203 #ifdef __cplusplus
8204 }
8205 #endif
8206
8207 int
8208 main ()
8209 {
8210 return f != $ac_func;
8211   ;
8212   return 0;
8213 }
8214 _ACEOF
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217   (eval $ac_link) 2>conftest.er1
8218   ac_status=$?
8219   grep -v '^ *+' conftest.er1 >conftest.err
8220   rm -f conftest.er1
8221   cat conftest.err >&5
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); } &&
8224          { ac_try='test -z "$ac_c_werror_flag"
8225                          || test ! -s conftest.err'
8226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227   (eval $ac_try) 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); }; } &&
8231          { ac_try='test -s conftest$ac_exeext'
8232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233   (eval $ac_try) 2>&5
8234   ac_status=$?
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); }; }; then
8237   eval "$as_ac_var=yes"
8238 else
8239   echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 eval "$as_ac_var=no"
8243 fi
8244 rm -f conftest.err conftest.$ac_objext \
8245       conftest$ac_exeext conftest.$ac_ext
8246 fi
8247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8249 if test `eval echo '${'$as_ac_var'}'` = yes; then
8250   cat >>confdefs.h <<_ACEOF
8251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8252 _ACEOF
8253
8254 fi
8255 done
8256
8257
8258
8259
8260
8261   fi
8262
8263
8264         MKINSTALLDIRS=
8265   if test -n "$ac_aux_dir"; then
8266     case "$ac_aux_dir" in
8267       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
8268       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
8269     esac
8270   fi
8271   if test -z "$MKINSTALLDIRS"; then
8272     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8273   fi
8274
8275
8276
8277   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8278 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8279     # Check whether --enable-nls or --disable-nls was given.
8280 if test "${enable_nls+set}" = set; then
8281   enableval="$enable_nls"
8282   USE_NLS=$enableval
8283 else
8284   USE_NLS=yes
8285 fi;
8286   echo "$as_me:$LINENO: result: $USE_NLS" >&5
8287 echo "${ECHO_T}$USE_NLS" >&6
8288
8289
8290
8291
8292
8293
8294 # Prepare PATH_SEPARATOR.
8295 # The user is always right.
8296 if test "${PATH_SEPARATOR+set}" != set; then
8297   echo "#! /bin/sh" >conf$$.sh
8298   echo  "exit 0"   >>conf$$.sh
8299   chmod +x conf$$.sh
8300   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8301     PATH_SEPARATOR=';'
8302   else
8303     PATH_SEPARATOR=:
8304   fi
8305   rm -f conf$$.sh
8306 fi
8307
8308 # Find out how to test for executable files. Don't use a zero-byte file,
8309 # as systems may use methods other than mode bits to determine executability.
8310 cat >conf$$.file <<_ASEOF
8311 #! /bin/sh
8312 exit 0
8313 _ASEOF
8314 chmod +x conf$$.file
8315 if test -x conf$$.file >/dev/null 2>&1; then
8316   ac_executable_p="test -x"
8317 else
8318   ac_executable_p="test -f"
8319 fi
8320 rm -f conf$$.file
8321
8322 # Extract the first word of "msgfmt", so it can be a program name with args.
8323 set dummy msgfmt; ac_word=$2
8324 echo "$as_me:$LINENO: checking for $ac_word" >&5
8325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8326 if test "${ac_cv_path_MSGFMT+set}" = set; then
8327   echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329   case "$MSGFMT" in
8330   [\\/]* | ?:[\\/]*)
8331     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8332     ;;
8333   *)
8334     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8335     for ac_dir in $PATH; do
8336       IFS="$ac_save_IFS"
8337       test -z "$ac_dir" && ac_dir=.
8338       for ac_exec_ext in '' $ac_executable_extensions; do
8339         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8340           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
8341      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8342             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8343             break 2
8344           fi
8345         fi
8346       done
8347     done
8348     IFS="$ac_save_IFS"
8349   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8350     ;;
8351 esac
8352 fi
8353 MSGFMT="$ac_cv_path_MSGFMT"
8354 if test "$MSGFMT" != ":"; then
8355   echo "$as_me:$LINENO: result: $MSGFMT" >&5
8356 echo "${ECHO_T}$MSGFMT" >&6
8357 else
8358   echo "$as_me:$LINENO: result: no" >&5
8359 echo "${ECHO_T}no" >&6
8360 fi
8361
8362   # Extract the first word of "gmsgfmt", so it can be a program name with args.
8363 set dummy gmsgfmt; ac_word=$2
8364 echo "$as_me:$LINENO: checking for $ac_word" >&5
8365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8366 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   case $GMSGFMT in
8370   [\\/]* | ?:[\\/]*)
8371   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8372   ;;
8373   *)
8374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377   IFS=$as_save_IFS
8378   test -z "$as_dir" && as_dir=.
8379   for ac_exec_ext in '' $ac_executable_extensions; do
8380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383     break 2
8384   fi
8385 done
8386 done
8387
8388   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8389   ;;
8390 esac
8391 fi
8392 GMSGFMT=$ac_cv_path_GMSGFMT
8393
8394 if test -n "$GMSGFMT"; then
8395   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8396 echo "${ECHO_T}$GMSGFMT" >&6
8397 else
8398   echo "$as_me:$LINENO: result: no" >&5
8399 echo "${ECHO_T}no" >&6
8400 fi
8401
8402
8403
8404 # Prepare PATH_SEPARATOR.
8405 # The user is always right.
8406 if test "${PATH_SEPARATOR+set}" != set; then
8407   echo "#! /bin/sh" >conf$$.sh
8408   echo  "exit 0"   >>conf$$.sh
8409   chmod +x conf$$.sh
8410   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8411     PATH_SEPARATOR=';'
8412   else
8413     PATH_SEPARATOR=:
8414   fi
8415   rm -f conf$$.sh
8416 fi
8417
8418 # Find out how to test for executable files. Don't use a zero-byte file,
8419 # as systems may use methods other than mode bits to determine executability.
8420 cat >conf$$.file <<_ASEOF
8421 #! /bin/sh
8422 exit 0
8423 _ASEOF
8424 chmod +x conf$$.file
8425 if test -x conf$$.file >/dev/null 2>&1; then
8426   ac_executable_p="test -x"
8427 else
8428   ac_executable_p="test -f"
8429 fi
8430 rm -f conf$$.file
8431
8432 # Extract the first word of "xgettext", so it can be a program name with args.
8433 set dummy xgettext; ac_word=$2
8434 echo "$as_me:$LINENO: checking for $ac_word" >&5
8435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8436 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8437   echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439   case "$XGETTEXT" in
8440   [\\/]* | ?:[\\/]*)
8441     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8442     ;;
8443   *)
8444     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8445     for ac_dir in $PATH; do
8446       IFS="$ac_save_IFS"
8447       test -z "$ac_dir" && ac_dir=.
8448       for ac_exec_ext in '' $ac_executable_extensions; do
8449         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8450           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8451      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8452             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8453             break 2
8454           fi
8455         fi
8456       done
8457     done
8458     IFS="$ac_save_IFS"
8459   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8460     ;;
8461 esac
8462 fi
8463 XGETTEXT="$ac_cv_path_XGETTEXT"
8464 if test "$XGETTEXT" != ":"; then
8465   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8466 echo "${ECHO_T}$XGETTEXT" >&6
8467 else
8468   echo "$as_me:$LINENO: result: no" >&5
8469 echo "${ECHO_T}no" >&6
8470 fi
8471
8472     rm -f messages.po
8473
8474
8475 # Prepare PATH_SEPARATOR.
8476 # The user is always right.
8477 if test "${PATH_SEPARATOR+set}" != set; then
8478   echo "#! /bin/sh" >conf$$.sh
8479   echo  "exit 0"   >>conf$$.sh
8480   chmod +x conf$$.sh
8481   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8482     PATH_SEPARATOR=';'
8483   else
8484     PATH_SEPARATOR=:
8485   fi
8486   rm -f conf$$.sh
8487 fi
8488
8489 # Find out how to test for executable files. Don't use a zero-byte file,
8490 # as systems may use methods other than mode bits to determine executability.
8491 cat >conf$$.file <<_ASEOF
8492 #! /bin/sh
8493 exit 0
8494 _ASEOF
8495 chmod +x conf$$.file
8496 if test -x conf$$.file >/dev/null 2>&1; then
8497   ac_executable_p="test -x"
8498 else
8499   ac_executable_p="test -f"
8500 fi
8501 rm -f conf$$.file
8502
8503 # Extract the first word of "msgmerge", so it can be a program name with args.
8504 set dummy msgmerge; ac_word=$2
8505 echo "$as_me:$LINENO: checking for $ac_word" >&5
8506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8507 if test "${ac_cv_path_MSGMERGE+set}" = set; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   case "$MSGMERGE" in
8511   [\\/]* | ?:[\\/]*)
8512     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8513     ;;
8514   *)
8515     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8516     for ac_dir in $PATH; do
8517       IFS="$ac_save_IFS"
8518       test -z "$ac_dir" && ac_dir=.
8519       for ac_exec_ext in '' $ac_executable_extensions; do
8520         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8521           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
8522             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8523             break 2
8524           fi
8525         fi
8526       done
8527     done
8528     IFS="$ac_save_IFS"
8529   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8530     ;;
8531 esac
8532 fi
8533 MSGMERGE="$ac_cv_path_MSGMERGE"
8534 if test "$MSGMERGE" != ":"; then
8535   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
8536 echo "${ECHO_T}$MSGMERGE" >&6
8537 else
8538   echo "$as_me:$LINENO: result: no" >&5
8539 echo "${ECHO_T}no" >&6
8540 fi
8541
8542
8543       if test "$GMSGFMT" != ":"; then
8544             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
8545        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8546       : ;
8547     else
8548       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
8549       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
8550 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
8551       GMSGFMT=":"
8552     fi
8553   fi
8554
8555       if test "$XGETTEXT" != ":"; then
8556             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8557        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8558       : ;
8559     else
8560       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8561 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8562       XGETTEXT=":"
8563     fi
8564         rm -f messages.po
8565   fi
8566
8567             ac_config_commands="$ac_config_commands default-1"
8568
8569
8570
8571       if test "X$prefix" = "XNONE"; then
8572     acl_final_prefix="$ac_default_prefix"
8573   else
8574     acl_final_prefix="$prefix"
8575   fi
8576   if test "X$exec_prefix" = "XNONE"; then
8577     acl_final_exec_prefix='${prefix}'
8578   else
8579     acl_final_exec_prefix="$exec_prefix"
8580   fi
8581   acl_save_prefix="$prefix"
8582   prefix="$acl_final_prefix"
8583   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8584   prefix="$acl_save_prefix"
8585
8586 # Make sure we can run config.sub.
8587 $ac_config_sub sun4 >/dev/null 2>&1 ||
8588   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
8589 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
8590    { (exit 1); exit 1; }; }
8591
8592 echo "$as_me:$LINENO: checking build system type" >&5
8593 echo $ECHO_N "checking build system type... $ECHO_C" >&6
8594 if test "${ac_cv_build+set}" = set; then
8595   echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597   ac_cv_build_alias=$build_alias
8598 test -z "$ac_cv_build_alias" &&
8599   ac_cv_build_alias=`$ac_config_guess`
8600 test -z "$ac_cv_build_alias" &&
8601   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8602 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8603    { (exit 1); exit 1; }; }
8604 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
8605   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
8606 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
8607    { (exit 1); exit 1; }; }
8608
8609 fi
8610 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8611 echo "${ECHO_T}$ac_cv_build" >&6
8612 build=$ac_cv_build
8613 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8614 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8615 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8616
8617
8618 echo "$as_me:$LINENO: checking host system type" >&5
8619 echo $ECHO_N "checking host system type... $ECHO_C" >&6
8620 if test "${ac_cv_host+set}" = set; then
8621   echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623   ac_cv_host_alias=$host_alias
8624 test -z "$ac_cv_host_alias" &&
8625   ac_cv_host_alias=$ac_cv_build_alias
8626 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
8627   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
8628 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
8629    { (exit 1); exit 1; }; }
8630
8631 fi
8632 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8633 echo "${ECHO_T}$ac_cv_host" >&6
8634 host=$ac_cv_host
8635 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8636 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8637 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8638
8639
8640
8641 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8642 if test "${with_gnu_ld+set}" = set; then
8643   withval="$with_gnu_ld"
8644   test "$withval" = no || with_gnu_ld=yes
8645 else
8646   with_gnu_ld=no
8647 fi;
8648 ac_prog=ld
8649 if test "$GCC" = yes; then
8650   # Check if gcc -print-prog-name=ld gives a path.
8651   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8652 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
8653   case $host in
8654   *-*-mingw*)
8655     # gcc leaves a trailing carriage return which upsets mingw
8656     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8657   *)
8658     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8659   esac
8660   case $ac_prog in
8661     # Accept absolute paths.
8662     [\\/]* | [A-Za-z]:[\\/]*)
8663       re_direlt='/[^/][^/]*/\.\./'
8664       # Canonicalize the path of ld
8665       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8666       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8667         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8668       done
8669       test -z "$LD" && LD="$ac_prog"
8670       ;;
8671   "")
8672     # If it fails, then pretend we aren't using GCC.
8673     ac_prog=ld
8674     ;;
8675   *)
8676     # If it is relative, then search for the first ld in PATH.
8677     with_gnu_ld=unknown
8678     ;;
8679   esac
8680 elif test "$with_gnu_ld" = yes; then
8681   echo "$as_me:$LINENO: checking for GNU ld" >&5
8682 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8683 else
8684   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8685 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8686 fi
8687 if test "${acl_cv_path_LD+set}" = set; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690   if test -z "$LD"; then
8691   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8692   for ac_dir in $PATH; do
8693     test -z "$ac_dir" && ac_dir=.
8694     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8695       acl_cv_path_LD="$ac_dir/$ac_prog"
8696       # Check to see if the program is GNU ld.  I'd rather use --version,
8697       # but apparently some GNU ld's only accept -v.
8698       # Break only if it was the GNU/non-GNU ld that we prefer.
8699       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8700         test "$with_gnu_ld" != no && break
8701       else
8702         test "$with_gnu_ld" != yes && break
8703       fi
8704     fi
8705   done
8706   IFS="$ac_save_ifs"
8707 else
8708   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8709 fi
8710 fi
8711
8712 LD="$acl_cv_path_LD"
8713 if test -n "$LD"; then
8714   echo "$as_me:$LINENO: result: $LD" >&5
8715 echo "${ECHO_T}$LD" >&6
8716 else
8717   echo "$as_me:$LINENO: result: no" >&5
8718 echo "${ECHO_T}no" >&6
8719 fi
8720 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8721 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8722    { (exit 1); exit 1; }; }
8723 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8724 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8725 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8729 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8730   acl_cv_prog_gnu_ld=yes
8731 else
8732   acl_cv_prog_gnu_ld=no
8733 fi
8734 fi
8735 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8736 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
8737 with_gnu_ld=$acl_cv_prog_gnu_ld
8738
8739
8740
8741                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8742 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
8743 if test "${acl_cv_rpath+set}" = set; then
8744   echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746
8747     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8748     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8749     . ./conftest.sh
8750     rm -f ./conftest.sh
8751     acl_cv_rpath=done
8752
8753 fi
8754 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8755 echo "${ECHO_T}$acl_cv_rpath" >&6
8756   wl="$acl_cv_wl"
8757   libext="$acl_cv_libext"
8758   shlibext="$acl_cv_shlibext"
8759   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8760   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8761   hardcode_direct="$acl_cv_hardcode_direct"
8762   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8763   sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
8764   sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
8765     # Check whether --enable-rpath or --disable-rpath was given.
8766 if test "${enable_rpath+set}" = set; then
8767   enableval="$enable_rpath"
8768   :
8769 else
8770   enable_rpath=yes
8771 fi;
8772
8773
8774
8775
8776
8777
8778
8779     use_additional=yes
8780
8781   acl_save_prefix="$prefix"
8782   prefix="$acl_final_prefix"
8783   acl_save_exec_prefix="$exec_prefix"
8784   exec_prefix="$acl_final_exec_prefix"
8785
8786     eval additional_includedir=\"$includedir\"
8787     eval additional_libdir=\"$libdir\"
8788
8789   exec_prefix="$acl_save_exec_prefix"
8790   prefix="$acl_save_prefix"
8791
8792
8793 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8794 if test "${with_libiconv_prefix+set}" = set; then
8795   withval="$with_libiconv_prefix"
8796
8797     if test "X$withval" = "Xno"; then
8798       use_additional=no
8799     else
8800       if test "X$withval" = "X"; then
8801
8802   acl_save_prefix="$prefix"
8803   prefix="$acl_final_prefix"
8804   acl_save_exec_prefix="$exec_prefix"
8805   exec_prefix="$acl_final_exec_prefix"
8806
8807           eval additional_includedir=\"$includedir\"
8808           eval additional_libdir=\"$libdir\"
8809
8810   exec_prefix="$acl_save_exec_prefix"
8811   prefix="$acl_save_prefix"
8812
8813       else
8814         additional_includedir="$withval/include"
8815         additional_libdir="$withval/lib"
8816       fi
8817     fi
8818
8819 fi;
8820       LIBICONV=
8821   LTLIBICONV=
8822   INCICONV=
8823   rpathdirs=
8824   ltrpathdirs=
8825   names_already_handled=
8826   names_next_round='iconv '
8827   while test -n "$names_next_round"; do
8828     names_this_round="$names_next_round"
8829     names_next_round=
8830     for name in $names_this_round; do
8831       already_handled=
8832       for n in $names_already_handled; do
8833         if test "$n" = "$name"; then
8834           already_handled=yes
8835           break
8836         fi
8837       done
8838       if test -z "$already_handled"; then
8839         names_already_handled="$names_already_handled $name"
8840                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8841         eval value=\"\$HAVE_LIB$uppername\"
8842         if test -n "$value"; then
8843           if test "$value" = yes; then
8844             eval value=\"\$LIB$uppername\"
8845             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8846             eval value=\"\$LTLIB$uppername\"
8847             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8848           else
8849                                     :
8850           fi
8851         else
8852                               found_dir=
8853           found_la=
8854           found_so=
8855           found_a=
8856           if test $use_additional = yes; then
8857             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8858               found_dir="$additional_libdir"
8859               found_so="$additional_libdir/lib$name.$shlibext"
8860               if test -f "$additional_libdir/lib$name.la"; then
8861                 found_la="$additional_libdir/lib$name.la"
8862               fi
8863             else
8864               if test -f "$additional_libdir/lib$name.$libext"; then
8865                 found_dir="$additional_libdir"
8866                 found_a="$additional_libdir/lib$name.$libext"
8867                 if test -f "$additional_libdir/lib$name.la"; then
8868                   found_la="$additional_libdir/lib$name.la"
8869                 fi
8870               fi
8871             fi
8872           fi
8873           if test "X$found_dir" = "X"; then
8874             for x in $LDFLAGS $LTLIBICONV; do
8875
8876   acl_save_prefix="$prefix"
8877   prefix="$acl_final_prefix"
8878   acl_save_exec_prefix="$exec_prefix"
8879   exec_prefix="$acl_final_exec_prefix"
8880   eval x=\"$x\"
8881   exec_prefix="$acl_save_exec_prefix"
8882   prefix="$acl_save_prefix"
8883
8884               case "$x" in
8885                 -L*)
8886                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8887                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8888                     found_dir="$dir"
8889                     found_so="$dir/lib$name.$shlibext"
8890                     if test -f "$dir/lib$name.la"; then
8891                       found_la="$dir/lib$name.la"
8892                     fi
8893                   else
8894                     if test -f "$dir/lib$name.$libext"; then
8895                       found_dir="$dir"
8896                       found_a="$dir/lib$name.$libext"
8897                       if test -f "$dir/lib$name.la"; then
8898                         found_la="$dir/lib$name.la"
8899                       fi
8900                     fi
8901                   fi
8902                   ;;
8903               esac
8904               if test "X$found_dir" != "X"; then
8905                 break
8906               fi
8907             done
8908           fi
8909           if test "X$found_dir" != "X"; then
8910                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8911             if test "X$found_so" != "X"; then
8912                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8913                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8914               else
8915                                                                                 haveit=
8916                 for x in $ltrpathdirs; do
8917                   if test "X$x" = "X$found_dir"; then
8918                     haveit=yes
8919                     break
8920                   fi
8921                 done
8922                 if test -z "$haveit"; then
8923                   ltrpathdirs="$ltrpathdirs $found_dir"
8924                 fi
8925                                 if test "$hardcode_direct" = yes; then
8926                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8927                 else
8928                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8929                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8930                                                             haveit=
8931                     for x in $rpathdirs; do
8932                       if test "X$x" = "X$found_dir"; then
8933                         haveit=yes
8934                         break
8935                       fi
8936                     done
8937                     if test -z "$haveit"; then
8938                       rpathdirs="$rpathdirs $found_dir"
8939                     fi
8940                   else
8941                                                                                 haveit=
8942                     for x in $LDFLAGS $LIBICONV; do
8943
8944   acl_save_prefix="$prefix"
8945   prefix="$acl_final_prefix"
8946   acl_save_exec_prefix="$exec_prefix"
8947   exec_prefix="$acl_final_exec_prefix"
8948   eval x=\"$x\"
8949   exec_prefix="$acl_save_exec_prefix"
8950   prefix="$acl_save_prefix"
8951
8952                       if test "X$x" = "X-L$found_dir"; then
8953                         haveit=yes
8954                         break
8955                       fi
8956                     done
8957                     if test -z "$haveit"; then
8958                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8959                     fi
8960                     if test "$hardcode_minus_L" != no; then
8961                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8962                     else
8963                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8964                     fi
8965                   fi
8966                 fi
8967               fi
8968             else
8969               if test "X$found_a" != "X"; then
8970                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8971               else
8972                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8973               fi
8974             fi
8975                         additional_includedir=
8976             case "$found_dir" in
8977               */lib | */lib/)
8978                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8979                 additional_includedir="$basedir/include"
8980                 ;;
8981             esac
8982             if test "X$additional_includedir" != "X"; then
8983                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8984                 haveit=
8985                 if test "X$additional_includedir" = "X/usr/local/include"; then
8986                   if test -n "$GCC"; then
8987                     case $host_os in
8988                       linux*) haveit=yes;;
8989                     esac
8990                   fi
8991                 fi
8992                 if test -z "$haveit"; then
8993                   for x in $CPPFLAGS $INCICONV; do
8994
8995   acl_save_prefix="$prefix"
8996   prefix="$acl_final_prefix"
8997   acl_save_exec_prefix="$exec_prefix"
8998   exec_prefix="$acl_final_exec_prefix"
8999   eval x=\"$x\"
9000   exec_prefix="$acl_save_exec_prefix"
9001   prefix="$acl_save_prefix"
9002
9003                     if test "X$x" = "X-I$additional_includedir"; then
9004                       haveit=yes
9005                       break
9006                     fi
9007                   done
9008                   if test -z "$haveit"; then
9009                     if test -d "$additional_includedir"; then
9010                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9011                     fi
9012                   fi
9013                 fi
9014               fi
9015             fi
9016                         if test -n "$found_la"; then
9017                                                         save_libdir="$libdir"
9018               case "$found_la" in
9019                 */* | *\\*) . "$found_la" ;;
9020                 *) . "./$found_la" ;;
9021               esac
9022               libdir="$save_libdir"
9023                             for dep in $dependency_libs; do
9024                 case "$dep" in
9025                   -L*)
9026                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9027                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9028                       haveit=
9029                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9030                         if test -n "$GCC"; then
9031                           case $host_os in
9032                             linux*) haveit=yes;;
9033                           esac
9034                         fi
9035                       fi
9036                       if test -z "$haveit"; then
9037                         haveit=
9038                         for x in $LDFLAGS $LIBICONV; do
9039
9040   acl_save_prefix="$prefix"
9041   prefix="$acl_final_prefix"
9042   acl_save_exec_prefix="$exec_prefix"
9043   exec_prefix="$acl_final_exec_prefix"
9044   eval x=\"$x\"
9045   exec_prefix="$acl_save_exec_prefix"
9046   prefix="$acl_save_prefix"
9047
9048                           if test "X$x" = "X-L$additional_libdir"; then
9049                             haveit=yes
9050                             break
9051                           fi
9052                         done
9053                         if test -z "$haveit"; then
9054                           if test -d "$additional_libdir"; then
9055                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9056                           fi
9057                         fi
9058                         haveit=
9059                         for x in $LDFLAGS $LTLIBICONV; do
9060
9061   acl_save_prefix="$prefix"
9062   prefix="$acl_final_prefix"
9063   acl_save_exec_prefix="$exec_prefix"
9064   exec_prefix="$acl_final_exec_prefix"
9065   eval x=\"$x\"
9066   exec_prefix="$acl_save_exec_prefix"
9067   prefix="$acl_save_prefix"
9068
9069                           if test "X$x" = "X-L$additional_libdir"; then
9070                             haveit=yes
9071                             break
9072                           fi
9073                         done
9074                         if test -z "$haveit"; then
9075                           if test -d "$additional_libdir"; then
9076                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9077                           fi
9078                         fi
9079                       fi
9080                     fi
9081                     ;;
9082                   -R*)
9083                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9084                     if test "$enable_rpath" != no; then
9085                                                                   haveit=
9086                       for x in $rpathdirs; do
9087                         if test "X$x" = "X$dir"; then
9088                           haveit=yes
9089                           break
9090                         fi
9091                       done
9092                       if test -z "$haveit"; then
9093                         rpathdirs="$rpathdirs $dir"
9094                       fi
9095                                                                   haveit=
9096                       for x in $ltrpathdirs; do
9097                         if test "X$x" = "X$dir"; then
9098                           haveit=yes
9099                           break
9100                         fi
9101                       done
9102                       if test -z "$haveit"; then
9103                         ltrpathdirs="$ltrpathdirs $dir"
9104                       fi
9105                     fi
9106                     ;;
9107                   -l*)
9108                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9109                     ;;
9110                   *.la)
9111                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9112                     ;;
9113                   *)
9114                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9115                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9116                     ;;
9117                 esac
9118               done
9119             fi
9120           else
9121                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9122             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9123           fi
9124         fi
9125       fi
9126     done
9127   done
9128   if test "X$rpathdirs" != "X"; then
9129     if test -n "$hardcode_libdir_separator"; then
9130                         alldirs=
9131       for found_dir in $rpathdirs; do
9132         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9133       done
9134             acl_save_libdir="$libdir"
9135       libdir="$alldirs"
9136       eval flag=\"$hardcode_libdir_flag_spec\"
9137       libdir="$acl_save_libdir"
9138       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9139     else
9140             for found_dir in $rpathdirs; do
9141         acl_save_libdir="$libdir"
9142         libdir="$found_dir"
9143         eval flag=\"$hardcode_libdir_flag_spec\"
9144         libdir="$acl_save_libdir"
9145         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9146       done
9147     fi
9148   fi
9149   if test "X$ltrpathdirs" != "X"; then
9150             for found_dir in $ltrpathdirs; do
9151       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9152     done
9153   fi
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9173 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9174     # Check whether --enable-nls or --disable-nls was given.
9175 if test "${enable_nls+set}" = set; then
9176   enableval="$enable_nls"
9177   USE_NLS=$enableval
9178 else
9179   USE_NLS=yes
9180 fi;
9181   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9182 echo "${ECHO_T}$USE_NLS" >&6
9183
9184
9185
9186
9187   LIBINTL=
9188   LTLIBINTL=
9189   POSUB=
9190
9191     if test "$USE_NLS" = "yes"; then
9192     gt_use_preinstalled_gnugettext=no
9193
9194
9195
9196
9197
9198
9199         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9200 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9201 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9202   echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204   cat >conftest.$ac_ext <<_ACEOF
9205 /* confdefs.h.  */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h.  */
9210 #include <libintl.h>
9211 extern int _nl_msg_cat_cntr;
9212 extern int *_nl_domain_bindings;
9213 int
9214 main ()
9215 {
9216 bindtextdomain ("", "");
9217 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9218   ;
9219   return 0;
9220 }
9221 _ACEOF
9222 rm -f conftest.$ac_objext conftest$ac_exeext
9223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9224   (eval $ac_link) 2>conftest.er1
9225   ac_status=$?
9226   grep -v '^ *+' conftest.er1 >conftest.err
9227   rm -f conftest.er1
9228   cat conftest.err >&5
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); } &&
9231          { ac_try='test -z "$ac_c_werror_flag"
9232                          || test ! -s conftest.err'
9233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234   (eval $ac_try) 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); }; } &&
9238          { ac_try='test -s conftest$ac_exeext'
9239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240   (eval $ac_try) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); }; }; then
9244   gt_cv_func_gnugettext1_libc=yes
9245 else
9246   echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249 gt_cv_func_gnugettext1_libc=no
9250 fi
9251 rm -f conftest.err conftest.$ac_objext \
9252       conftest$ac_exeext conftest.$ac_ext
9253 fi
9254 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9255 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9256
9257         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9258
9259
9260
9261
9262
9263           am_save_CPPFLAGS="$CPPFLAGS"
9264
9265   for element in $INCICONV; do
9266     haveit=
9267     for x in $CPPFLAGS; do
9268
9269   acl_save_prefix="$prefix"
9270   prefix="$acl_final_prefix"
9271   acl_save_exec_prefix="$exec_prefix"
9272   exec_prefix="$acl_final_exec_prefix"
9273   eval x=\"$x\"
9274   exec_prefix="$acl_save_exec_prefix"
9275   prefix="$acl_save_prefix"
9276
9277       if test "X$x" = "X$element"; then
9278         haveit=yes
9279         break
9280       fi
9281     done
9282     if test -z "$haveit"; then
9283       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9284     fi
9285   done
9286
9287
9288   echo "$as_me:$LINENO: checking for iconv" >&5
9289 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9290 if test "${am_cv_func_iconv+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293
9294     am_cv_func_iconv="no, consider installing GNU libiconv"
9295     am_cv_lib_iconv=no
9296     cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302 #include <stdlib.h>
9303 #include <iconv.h>
9304 int
9305 main ()
9306 {
9307 iconv_t cd = iconv_open("","");
9308        iconv(cd,NULL,NULL,NULL,NULL);
9309        iconv_close(cd);
9310   ;
9311   return 0;
9312 }
9313 _ACEOF
9314 rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9316   (eval $ac_link) 2>conftest.er1
9317   ac_status=$?
9318   grep -v '^ *+' conftest.er1 >conftest.err
9319   rm -f conftest.er1
9320   cat conftest.err >&5
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); } &&
9323          { ac_try='test -z "$ac_c_werror_flag"
9324                          || test ! -s conftest.err'
9325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326   (eval $ac_try) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); }; } &&
9330          { ac_try='test -s conftest$ac_exeext'
9331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332   (eval $ac_try) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); }; }; then
9336   am_cv_func_iconv=yes
9337 else
9338   echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9340
9341 fi
9342 rm -f conftest.err conftest.$ac_objext \
9343       conftest$ac_exeext conftest.$ac_ext
9344     if test "$am_cv_func_iconv" != yes; then
9345       am_save_LIBS="$LIBS"
9346       LIBS="$LIBS $LIBICONV"
9347       cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h.  */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h.  */
9353 #include <stdlib.h>
9354 #include <iconv.h>
9355 int
9356 main ()
9357 {
9358 iconv_t cd = iconv_open("","");
9359          iconv(cd,NULL,NULL,NULL,NULL);
9360          iconv_close(cd);
9361   ;
9362   return 0;
9363 }
9364 _ACEOF
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9367   (eval $ac_link) 2>conftest.er1
9368   ac_status=$?
9369   grep -v '^ *+' conftest.er1 >conftest.err
9370   rm -f conftest.er1
9371   cat conftest.err >&5
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); } &&
9374          { ac_try='test -z "$ac_c_werror_flag"
9375                          || test ! -s conftest.err'
9376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377   (eval $ac_try) 2>&5
9378   ac_status=$?
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); }; } &&
9381          { ac_try='test -s conftest$ac_exeext'
9382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383   (eval $ac_try) 2>&5
9384   ac_status=$?
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); }; }; then
9387   am_cv_lib_iconv=yes
9388         am_cv_func_iconv=yes
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 fi
9394 rm -f conftest.err conftest.$ac_objext \
9395       conftest$ac_exeext conftest.$ac_ext
9396       LIBS="$am_save_LIBS"
9397     fi
9398
9399 fi
9400 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9401 echo "${ECHO_T}$am_cv_func_iconv" >&6
9402   if test "$am_cv_func_iconv" = yes; then
9403
9404 cat >>confdefs.h <<\_ACEOF
9405 #define HAVE_ICONV 1
9406 _ACEOF
9407
9408   fi
9409   if test "$am_cv_lib_iconv" = yes; then
9410     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9411 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9412     echo "$as_me:$LINENO: result: $LIBICONV" >&5
9413 echo "${ECHO_T}$LIBICONV" >&6
9414   else
9415             CPPFLAGS="$am_save_CPPFLAGS"
9416     LIBICONV=
9417     LTLIBICONV=
9418   fi
9419
9420
9421
9422
9423
9424
9425     use_additional=yes
9426
9427   acl_save_prefix="$prefix"
9428   prefix="$acl_final_prefix"
9429   acl_save_exec_prefix="$exec_prefix"
9430   exec_prefix="$acl_final_exec_prefix"
9431
9432     eval additional_includedir=\"$includedir\"
9433     eval additional_libdir=\"$libdir\"
9434
9435   exec_prefix="$acl_save_exec_prefix"
9436   prefix="$acl_save_prefix"
9437
9438
9439 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9440 if test "${with_libintl_prefix+set}" = set; then
9441   withval="$with_libintl_prefix"
9442
9443     if test "X$withval" = "Xno"; then
9444       use_additional=no
9445     else
9446       if test "X$withval" = "X"; then
9447
9448   acl_save_prefix="$prefix"
9449   prefix="$acl_final_prefix"
9450   acl_save_exec_prefix="$exec_prefix"
9451   exec_prefix="$acl_final_exec_prefix"
9452
9453           eval additional_includedir=\"$includedir\"
9454           eval additional_libdir=\"$libdir\"
9455
9456   exec_prefix="$acl_save_exec_prefix"
9457   prefix="$acl_save_prefix"
9458
9459       else
9460         additional_includedir="$withval/include"
9461         additional_libdir="$withval/lib"
9462       fi
9463     fi
9464
9465 fi;
9466       LIBINTL=
9467   LTLIBINTL=
9468   INCINTL=
9469   rpathdirs=
9470   ltrpathdirs=
9471   names_already_handled=
9472   names_next_round='intl '
9473   while test -n "$names_next_round"; do
9474     names_this_round="$names_next_round"
9475     names_next_round=
9476     for name in $names_this_round; do
9477       already_handled=
9478       for n in $names_already_handled; do
9479         if test "$n" = "$name"; then
9480           already_handled=yes
9481           break
9482         fi
9483       done
9484       if test -z "$already_handled"; then
9485         names_already_handled="$names_already_handled $name"
9486                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9487         eval value=\"\$HAVE_LIB$uppername\"
9488         if test -n "$value"; then
9489           if test "$value" = yes; then
9490             eval value=\"\$LIB$uppername\"
9491             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9492             eval value=\"\$LTLIB$uppername\"
9493             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9494           else
9495                                     :
9496           fi
9497         else
9498                               found_dir=
9499           found_la=
9500           found_so=
9501           found_a=
9502           if test $use_additional = yes; then
9503             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9504               found_dir="$additional_libdir"
9505               found_so="$additional_libdir/lib$name.$shlibext"
9506               if test -f "$additional_libdir/lib$name.la"; then
9507                 found_la="$additional_libdir/lib$name.la"
9508               fi
9509             else
9510               if test -f "$additional_libdir/lib$name.$libext"; then
9511                 found_dir="$additional_libdir"
9512                 found_a="$additional_libdir/lib$name.$libext"
9513                 if test -f "$additional_libdir/lib$name.la"; then
9514                   found_la="$additional_libdir/lib$name.la"
9515                 fi
9516               fi
9517             fi
9518           fi
9519           if test "X$found_dir" = "X"; then
9520             for x in $LDFLAGS $LTLIBINTL; do
9521
9522   acl_save_prefix="$prefix"
9523   prefix="$acl_final_prefix"
9524   acl_save_exec_prefix="$exec_prefix"
9525   exec_prefix="$acl_final_exec_prefix"
9526   eval x=\"$x\"
9527   exec_prefix="$acl_save_exec_prefix"
9528   prefix="$acl_save_prefix"
9529
9530               case "$x" in
9531                 -L*)
9532                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9533                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9534                     found_dir="$dir"
9535                     found_so="$dir/lib$name.$shlibext"
9536                     if test -f "$dir/lib$name.la"; then
9537                       found_la="$dir/lib$name.la"
9538                     fi
9539                   else
9540                     if test -f "$dir/lib$name.$libext"; then
9541                       found_dir="$dir"
9542                       found_a="$dir/lib$name.$libext"
9543                       if test -f "$dir/lib$name.la"; then
9544                         found_la="$dir/lib$name.la"
9545                       fi
9546                     fi
9547                   fi
9548                   ;;
9549               esac
9550               if test "X$found_dir" != "X"; then
9551                 break
9552               fi
9553             done
9554           fi
9555           if test "X$found_dir" != "X"; then
9556                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9557             if test "X$found_so" != "X"; then
9558                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9559                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9560               else
9561                                                                                 haveit=
9562                 for x in $ltrpathdirs; do
9563                   if test "X$x" = "X$found_dir"; then
9564                     haveit=yes
9565                     break
9566                   fi
9567                 done
9568                 if test -z "$haveit"; then
9569                   ltrpathdirs="$ltrpathdirs $found_dir"
9570                 fi
9571                                 if test "$hardcode_direct" = yes; then
9572                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9573                 else
9574                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9575                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9576                                                             haveit=
9577                     for x in $rpathdirs; do
9578                       if test "X$x" = "X$found_dir"; then
9579                         haveit=yes
9580                         break
9581                       fi
9582                     done
9583                     if test -z "$haveit"; then
9584                       rpathdirs="$rpathdirs $found_dir"
9585                     fi
9586                   else
9587                                                                                 haveit=
9588                     for x in $LDFLAGS $LIBINTL; do
9589
9590   acl_save_prefix="$prefix"
9591   prefix="$acl_final_prefix"
9592   acl_save_exec_prefix="$exec_prefix"
9593   exec_prefix="$acl_final_exec_prefix"
9594   eval x=\"$x\"
9595   exec_prefix="$acl_save_exec_prefix"
9596   prefix="$acl_save_prefix"
9597
9598                       if test "X$x" = "X-L$found_dir"; then
9599                         haveit=yes
9600                         break
9601                       fi
9602                     done
9603                     if test -z "$haveit"; then
9604                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9605                     fi
9606                     if test "$hardcode_minus_L" != no; then
9607                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9608                     else
9609                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9610                     fi
9611                   fi
9612                 fi
9613               fi
9614             else
9615               if test "X$found_a" != "X"; then
9616                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9617               else
9618                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9619               fi
9620             fi
9621                         additional_includedir=
9622             case "$found_dir" in
9623               */lib | */lib/)
9624                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9625                 additional_includedir="$basedir/include"
9626                 ;;
9627             esac
9628             if test "X$additional_includedir" != "X"; then
9629                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9630                 haveit=
9631                 if test "X$additional_includedir" = "X/usr/local/include"; then
9632                   if test -n "$GCC"; then
9633                     case $host_os in
9634                       linux*) haveit=yes;;
9635                     esac
9636                   fi
9637                 fi
9638                 if test -z "$haveit"; then
9639                   for x in $CPPFLAGS $INCINTL; do
9640
9641   acl_save_prefix="$prefix"
9642   prefix="$acl_final_prefix"
9643   acl_save_exec_prefix="$exec_prefix"
9644   exec_prefix="$acl_final_exec_prefix"
9645   eval x=\"$x\"
9646   exec_prefix="$acl_save_exec_prefix"
9647   prefix="$acl_save_prefix"
9648
9649                     if test "X$x" = "X-I$additional_includedir"; then
9650                       haveit=yes
9651                       break
9652                     fi
9653                   done
9654                   if test -z "$haveit"; then
9655                     if test -d "$additional_includedir"; then
9656                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9657                     fi
9658                   fi
9659                 fi
9660               fi
9661             fi
9662                         if test -n "$found_la"; then
9663                                                         save_libdir="$libdir"
9664               case "$found_la" in
9665                 */* | *\\*) . "$found_la" ;;
9666                 *) . "./$found_la" ;;
9667               esac
9668               libdir="$save_libdir"
9669                             for dep in $dependency_libs; do
9670                 case "$dep" in
9671                   -L*)
9672                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9673                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9674                       haveit=
9675                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9676                         if test -n "$GCC"; then
9677                           case $host_os in
9678                             linux*) haveit=yes;;
9679                           esac
9680                         fi
9681                       fi
9682                       if test -z "$haveit"; then
9683                         haveit=
9684                         for x in $LDFLAGS $LIBINTL; do
9685
9686   acl_save_prefix="$prefix"
9687   prefix="$acl_final_prefix"
9688   acl_save_exec_prefix="$exec_prefix"
9689   exec_prefix="$acl_final_exec_prefix"
9690   eval x=\"$x\"
9691   exec_prefix="$acl_save_exec_prefix"
9692   prefix="$acl_save_prefix"
9693
9694                           if test "X$x" = "X-L$additional_libdir"; then
9695                             haveit=yes
9696                             break
9697                           fi
9698                         done
9699                         if test -z "$haveit"; then
9700                           if test -d "$additional_libdir"; then
9701                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9702                           fi
9703                         fi
9704                         haveit=
9705                         for x in $LDFLAGS $LTLIBINTL; do
9706
9707   acl_save_prefix="$prefix"
9708   prefix="$acl_final_prefix"
9709   acl_save_exec_prefix="$exec_prefix"
9710   exec_prefix="$acl_final_exec_prefix"
9711   eval x=\"$x\"
9712   exec_prefix="$acl_save_exec_prefix"
9713   prefix="$acl_save_prefix"
9714
9715                           if test "X$x" = "X-L$additional_libdir"; then
9716                             haveit=yes
9717                             break
9718                           fi
9719                         done
9720                         if test -z "$haveit"; then
9721                           if test -d "$additional_libdir"; then
9722                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9723                           fi
9724                         fi
9725                       fi
9726                     fi
9727                     ;;
9728                   -R*)
9729                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9730                     if test "$enable_rpath" != no; then
9731                                                                   haveit=
9732                       for x in $rpathdirs; do
9733                         if test "X$x" = "X$dir"; then
9734                           haveit=yes
9735                           break
9736                         fi
9737                       done
9738                       if test -z "$haveit"; then
9739                         rpathdirs="$rpathdirs $dir"
9740                       fi
9741                                                                   haveit=
9742                       for x in $ltrpathdirs; do
9743                         if test "X$x" = "X$dir"; then
9744                           haveit=yes
9745                           break
9746                         fi
9747                       done
9748                       if test -z "$haveit"; then
9749                         ltrpathdirs="$ltrpathdirs $dir"
9750                       fi
9751                     fi
9752                     ;;
9753                   -l*)
9754                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9755                     ;;
9756                   *.la)
9757                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9758                     ;;
9759                   *)
9760                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9761                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9762                     ;;
9763                 esac
9764               done
9765             fi
9766           else
9767                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9768             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9769           fi
9770         fi
9771       fi
9772     done
9773   done
9774   if test "X$rpathdirs" != "X"; then
9775     if test -n "$hardcode_libdir_separator"; then
9776                         alldirs=
9777       for found_dir in $rpathdirs; do
9778         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9779       done
9780             acl_save_libdir="$libdir"
9781       libdir="$alldirs"
9782       eval flag=\"$hardcode_libdir_flag_spec\"
9783       libdir="$acl_save_libdir"
9784       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9785     else
9786             for found_dir in $rpathdirs; do
9787         acl_save_libdir="$libdir"
9788         libdir="$found_dir"
9789         eval flag=\"$hardcode_libdir_flag_spec\"
9790         libdir="$acl_save_libdir"
9791         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9792       done
9793     fi
9794   fi
9795   if test "X$ltrpathdirs" != "X"; then
9796             for found_dir in $ltrpathdirs; do
9797       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9798     done
9799   fi
9800
9801           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9802 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9803 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9804   echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806   gt_save_CPPFLAGS="$CPPFLAGS"
9807             CPPFLAGS="$CPPFLAGS $INCINTL"
9808             gt_save_LIBS="$LIBS"
9809             LIBS="$LIBS $LIBINTL"
9810                         cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h.  */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h.  */
9816 #include <libintl.h>
9817 extern int _nl_msg_cat_cntr;
9818 extern
9819 #ifdef __cplusplus
9820 "C"
9821 #endif
9822 const char *_nl_expand_alias ();
9823 int
9824 main ()
9825 {
9826 bindtextdomain ("", "");
9827 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9828   ;
9829   return 0;
9830 }
9831 _ACEOF
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9834   (eval $ac_link) 2>conftest.er1
9835   ac_status=$?
9836   grep -v '^ *+' conftest.er1 >conftest.err
9837   rm -f conftest.er1
9838   cat conftest.err >&5
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); } &&
9841          { ac_try='test -z "$ac_c_werror_flag"
9842                          || test ! -s conftest.err'
9843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844   (eval $ac_try) 2>&5
9845   ac_status=$?
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); }; } &&
9848          { ac_try='test -s conftest$ac_exeext'
9849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850   (eval $ac_try) 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; }; then
9854   gt_cv_func_gnugettext1_libintl=yes
9855 else
9856   echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9858
9859 gt_cv_func_gnugettext1_libintl=no
9860 fi
9861 rm -f conftest.err conftest.$ac_objext \
9862       conftest$ac_exeext conftest.$ac_ext
9863                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9864               LIBS="$LIBS $LIBICONV"
9865               cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h.  */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h.  */
9871 #include <libintl.h>
9872 extern int _nl_msg_cat_cntr;
9873 extern
9874 #ifdef __cplusplus
9875 "C"
9876 #endif
9877 const char *_nl_expand_alias ();
9878 int
9879 main ()
9880 {
9881 bindtextdomain ("", "");
9882 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9889   (eval $ac_link) 2>conftest.er1
9890   ac_status=$?
9891   grep -v '^ *+' conftest.er1 >conftest.err
9892   rm -f conftest.er1
9893   cat conftest.err >&5
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); } &&
9896          { ac_try='test -z "$ac_c_werror_flag"
9897                          || test ! -s conftest.err'
9898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899   (eval $ac_try) 2>&5
9900   ac_status=$?
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); }; } &&
9903          { ac_try='test -s conftest$ac_exeext'
9904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905   (eval $ac_try) 2>&5
9906   ac_status=$?
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); }; }; then
9909   LIBINTL="$LIBINTL $LIBICONV"
9910                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9911                 gt_cv_func_gnugettext1_libintl=yes
9912
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 fi
9918 rm -f conftest.err conftest.$ac_objext \
9919       conftest$ac_exeext conftest.$ac_ext
9920             fi
9921             CPPFLAGS="$gt_save_CPPFLAGS"
9922             LIBS="$gt_save_LIBS"
9923 fi
9924 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9925 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9926         fi
9927
9928                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9929            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9930                 && test "$PACKAGE" != gettext-runtime \
9931                 && test "$PACKAGE" != gettext-tools; }; then
9932           gt_use_preinstalled_gnugettext=yes
9933         else
9934                     LIBINTL=
9935           LTLIBINTL=
9936           INCINTL=
9937         fi
9938
9939
9940
9941     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9942        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9943
9944 cat >>confdefs.h <<\_ACEOF
9945 #define ENABLE_NLS 1
9946 _ACEOF
9947
9948     else
9949       USE_NLS=no
9950     fi
9951   fi
9952
9953   echo "$as_me:$LINENO: checking whether to use NLS" >&5
9954 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9955   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9956 echo "${ECHO_T}$USE_NLS" >&6
9957   if test "$USE_NLS" = "yes"; then
9958     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9959 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9960     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9961       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9962         gt_source="external libintl"
9963       else
9964         gt_source="libc"
9965       fi
9966     else
9967       gt_source="included intl directory"
9968     fi
9969     echo "$as_me:$LINENO: result: $gt_source" >&5
9970 echo "${ECHO_T}$gt_source" >&6
9971   fi
9972
9973   if test "$USE_NLS" = "yes"; then
9974
9975     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9976       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9977         echo "$as_me:$LINENO: checking how to link with libintl" >&5
9978 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9979         echo "$as_me:$LINENO: result: $LIBINTL" >&5
9980 echo "${ECHO_T}$LIBINTL" >&6
9981
9982   for element in $INCINTL; do
9983     haveit=
9984     for x in $CPPFLAGS; do
9985
9986   acl_save_prefix="$prefix"
9987   prefix="$acl_final_prefix"
9988   acl_save_exec_prefix="$exec_prefix"
9989   exec_prefix="$acl_final_exec_prefix"
9990   eval x=\"$x\"
9991   exec_prefix="$acl_save_exec_prefix"
9992   prefix="$acl_save_prefix"
9993
9994       if test "X$x" = "X$element"; then
9995         haveit=yes
9996         break
9997       fi
9998     done
9999     if test -z "$haveit"; then
10000       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10001     fi
10002   done
10003
10004       fi
10005
10006
10007 cat >>confdefs.h <<\_ACEOF
10008 #define HAVE_GETTEXT 1
10009 _ACEOF
10010
10011
10012 cat >>confdefs.h <<\_ACEOF
10013 #define HAVE_DCGETTEXT 1
10014 _ACEOF
10015
10016     fi
10017
10018         POSUB=po
10019   fi
10020
10021
10022
10023     INTLLIBS="$LIBINTL"
10024
10025
10026
10027
10028
10029
10030  echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10031 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10032 if test "${ac_cv_header_stdbool_h+set}" = set; then
10033   echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035   cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041
10042           #include <stdbool.h>
10043           #ifndef bool
10044            "error: bool is not defined"
10045           #endif
10046           #ifndef false
10047            "error: false is not defined"
10048           #endif
10049           #if false
10050            "error: false is not 0"
10051           #endif
10052           #ifndef true
10053            "error: false is not defined"
10054           #endif
10055           #if true != 1
10056            "error: true is not 1"
10057           #endif
10058           #ifndef __bool_true_false_are_defined
10059            "error: __bool_true_false_are_defined is not defined"
10060           #endif
10061
10062           struct s { _Bool s: 1; _Bool t; } s;
10063
10064           char a[true == 1 ? 1 : -1];
10065           char b[false == 0 ? 1 : -1];
10066           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10067           char d[(bool) -0.5 == true ? 1 : -1];
10068           bool e = &s;
10069           char f[(_Bool) -0.0 == false ? 1 : -1];
10070           char g[true];
10071           char h[sizeof (_Bool)];
10072           char i[sizeof s.t];
10073
10074 int
10075 main ()
10076 {
10077  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10078   ;
10079   return 0;
10080 }
10081 _ACEOF
10082 rm -f conftest.$ac_objext
10083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10084   (eval $ac_compile) 2>conftest.er1
10085   ac_status=$?
10086   grep -v '^ *+' conftest.er1 >conftest.err
10087   rm -f conftest.er1
10088   cat conftest.err >&5
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); } &&
10091          { ac_try='test -z "$ac_c_werror_flag"
10092                          || test ! -s conftest.err'
10093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094   (eval $ac_try) 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); }; } &&
10098          { ac_try='test -s conftest.$ac_objext'
10099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100   (eval $ac_try) 2>&5
10101   ac_status=$?
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); }; }; then
10104   ac_cv_header_stdbool_h=yes
10105 else
10106   echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 ac_cv_header_stdbool_h=no
10110 fi
10111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10112 fi
10113 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10114 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10115    echo "$as_me:$LINENO: checking for _Bool" >&5
10116 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10117 if test "${ac_cv_type__Bool+set}" = set; then
10118   echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120   cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h.  */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h.  */
10126 $ac_includes_default
10127 int
10128 main ()
10129 {
10130 if ((_Bool *) 0)
10131   return 0;
10132 if (sizeof (_Bool))
10133   return 0;
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140   (eval $ac_compile) 2>conftest.er1
10141   ac_status=$?
10142   grep -v '^ *+' conftest.er1 >conftest.err
10143   rm -f conftest.er1
10144   cat conftest.err >&5
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); } &&
10147          { ac_try='test -z "$ac_c_werror_flag"
10148                          || test ! -s conftest.err'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; } &&
10154          { ac_try='test -s conftest.$ac_objext'
10155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156   (eval $ac_try) 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); }; }; then
10160   ac_cv_type__Bool=yes
10161 else
10162   echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165 ac_cv_type__Bool=no
10166 fi
10167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10168 fi
10169 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10170 echo "${ECHO_T}$ac_cv_type__Bool" >&6
10171 if test $ac_cv_type__Bool = yes; then
10172
10173 cat >>confdefs.h <<_ACEOF
10174 #define HAVE__BOOL 1
10175 _ACEOF
10176
10177
10178 fi
10179
10180    if test $ac_cv_header_stdbool_h = yes; then
10181
10182 cat >>confdefs.h <<\_ACEOF
10183 #define HAVE_STDBOOL_H 1
10184 _ACEOF
10185
10186    fi
10187
10188
10189
10190   # Define two additional variables used in the Makefile substitution.
10191
10192   if test "$ac_cv_header_stdbool_h" = yes; then
10193     STDBOOL_H=''
10194   else
10195     STDBOOL_H='stdbool.h'
10196   fi
10197
10198
10199   if test "$ac_cv_type__Bool" = yes; then
10200     HAVE__BOOL=1
10201   else
10202     HAVE__BOOL=0
10203   fi
10204
10205
10206
10207
10208
10209
10210
10211 for ac_header in $gl_header_list
10212 do
10213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10215   echo "$as_me:$LINENO: checking for $ac_header" >&5
10216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10218   echo $ECHO_N "(cached) $ECHO_C" >&6
10219 fi
10220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10222 else
10223   # Is the header compilable?
10224 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10226 cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232 $ac_includes_default
10233 #include <$ac_header>
10234 _ACEOF
10235 rm -f conftest.$ac_objext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10237   (eval $ac_compile) 2>conftest.er1
10238   ac_status=$?
10239   grep -v '^ *+' conftest.er1 >conftest.err
10240   rm -f conftest.er1
10241   cat conftest.err >&5
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); } &&
10244          { ac_try='test -z "$ac_c_werror_flag"
10245                          || test ! -s conftest.err'
10246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247   (eval $ac_try) 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); }; } &&
10251          { ac_try='test -s conftest.$ac_objext'
10252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253   (eval $ac_try) 2>&5
10254   ac_status=$?
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); }; }; then
10257   ac_header_compiler=yes
10258 else
10259   echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10261
10262 ac_header_compiler=no
10263 fi
10264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10266 echo "${ECHO_T}$ac_header_compiler" >&6
10267
10268 # Is the header present?
10269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10271 cat >conftest.$ac_ext <<_ACEOF
10272 /* confdefs.h.  */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h.  */
10277 #include <$ac_header>
10278 _ACEOF
10279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10281   ac_status=$?
10282   grep -v '^ *+' conftest.er1 >conftest.err
10283   rm -f conftest.er1
10284   cat conftest.err >&5
10285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286   (exit $ac_status); } >/dev/null; then
10287   if test -s conftest.err; then
10288     ac_cpp_err=$ac_c_preproc_warn_flag
10289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10290   else
10291     ac_cpp_err=
10292   fi
10293 else
10294   ac_cpp_err=yes
10295 fi
10296 if test -z "$ac_cpp_err"; then
10297   ac_header_preproc=yes
10298 else
10299   echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302   ac_header_preproc=no
10303 fi
10304 rm -f conftest.err conftest.$ac_ext
10305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10306 echo "${ECHO_T}$ac_header_preproc" >&6
10307
10308 # So?  What about this header?
10309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10310   yes:no: )
10311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10315     ac_header_preproc=yes
10316     ;;
10317   no:yes:* )
10318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10330     (
10331       cat <<\_ASBOX
10332 ## ------------------------------ ##
10333 ## Report this to bug-cvs@gnu.org ##
10334 ## ------------------------------ ##
10335 _ASBOX
10336     ) |
10337       sed "s/^/$as_me: WARNING:     /" >&2
10338     ;;
10339 esac
10340 echo "$as_me:$LINENO: checking for $ac_header" >&5
10341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10343   echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345   eval "$as_ac_Header=\$ac_header_preproc"
10346 fi
10347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10349
10350 fi
10351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10352   cat >>confdefs.h <<_ACEOF
10353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10354 _ACEOF
10355
10356 fi
10357
10358 done
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378       echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10379 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10380 if test "${ac_cv_have_decl_getenv+set}" = set; then
10381   echo $ECHO_N "(cached) $ECHO_C" >&6
10382 else
10383   cat >conftest.$ac_ext <<_ACEOF
10384 /* confdefs.h.  */
10385 _ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h.  */
10389 $ac_includes_default
10390 int
10391 main ()
10392 {
10393 #ifndef getenv
10394   char *p = (char *) getenv;
10395 #endif
10396
10397   ;
10398   return 0;
10399 }
10400 _ACEOF
10401 rm -f conftest.$ac_objext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10403   (eval $ac_compile) 2>conftest.er1
10404   ac_status=$?
10405   grep -v '^ *+' conftest.er1 >conftest.err
10406   rm -f conftest.er1
10407   cat conftest.err >&5
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); } &&
10410          { ac_try='test -z "$ac_c_werror_flag"
10411                          || test ! -s conftest.err'
10412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413   (eval $ac_try) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; } &&
10417          { ac_try='test -s conftest.$ac_objext'
10418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419   (eval $ac_try) 2>&5
10420   ac_status=$?
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); }; }; then
10423   ac_cv_have_decl_getenv=yes
10424 else
10425   echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10427
10428 ac_cv_have_decl_getenv=no
10429 fi
10430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10431 fi
10432 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10433 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10434 if test $ac_cv_have_decl_getenv = yes; then
10435
10436 cat >>confdefs.h <<_ACEOF
10437 #define HAVE_DECL_GETENV 1
10438 _ACEOF
10439
10440
10441 else
10442   cat >>confdefs.h <<_ACEOF
10443 #define HAVE_DECL_GETENV 0
10444 _ACEOF
10445
10446
10447 fi
10448
10449
10450
10451
10452   echo "$as_me:$LINENO: checking for inttypes.h" >&5
10453 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10454 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
10455   echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457   cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h.  */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h.  */
10463 #include <sys/types.h>
10464 #include <inttypes.h>
10465 int
10466 main ()
10467 {
10468 uintmax_t i = (uintmax_t) -1;
10469   ;
10470   return 0;
10471 }
10472 _ACEOF
10473 rm -f conftest.$ac_objext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10475   (eval $ac_compile) 2>conftest.er1
10476   ac_status=$?
10477   grep -v '^ *+' conftest.er1 >conftest.err
10478   rm -f conftest.er1
10479   cat conftest.err >&5
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); } &&
10482          { ac_try='test -z "$ac_c_werror_flag"
10483                          || test ! -s conftest.err'
10484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485   (eval $ac_try) 2>&5
10486   ac_status=$?
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); }; } &&
10489          { ac_try='test -s conftest.$ac_objext'
10490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491   (eval $ac_try) 2>&5
10492   ac_status=$?
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); }; }; then
10495   jm_ac_cv_header_inttypes_h=yes
10496 else
10497   echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500 jm_ac_cv_header_inttypes_h=no
10501 fi
10502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10503 fi
10504 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
10505 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
10506   if test $jm_ac_cv_header_inttypes_h = yes; then
10507
10508 cat >>confdefs.h <<_ACEOF
10509 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
10510 _ACEOF
10511
10512   fi
10513
10514
10515   echo "$as_me:$LINENO: checking for stdint.h" >&5
10516 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
10517 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520   cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h.  */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h.  */
10526 #include <sys/types.h>
10527 #include <stdint.h>
10528 int
10529 main ()
10530 {
10531 uintmax_t i = (uintmax_t) -1;
10532   ;
10533   return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538   (eval $ac_compile) 2>conftest.er1
10539   ac_status=$?
10540   grep -v '^ *+' conftest.er1 >conftest.err
10541   rm -f conftest.er1
10542   cat conftest.err >&5
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); } &&
10545          { ac_try='test -z "$ac_c_werror_flag"
10546                          || test ! -s conftest.err'
10547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548   (eval $ac_try) 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); }; } &&
10552          { ac_try='test -s conftest.$ac_objext'
10553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554   (eval $ac_try) 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); }; }; then
10558   jm_ac_cv_header_stdint_h=yes
10559 else
10560   echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10562
10563 jm_ac_cv_header_stdint_h=no
10564 fi
10565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10566 fi
10567 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
10568 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
10569   if test $jm_ac_cv_header_stdint_h = yes; then
10570
10571 cat >>confdefs.h <<_ACEOF
10572 #define HAVE_STDINT_H_WITH_UINTMAX 1
10573 _ACEOF
10574
10575   fi
10576
10577
10578   echo "$as_me:$LINENO: checking for unsigned long long" >&5
10579 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
10580 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10581   echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583   cat >conftest.$ac_ext <<_ACEOF
10584 /* confdefs.h.  */
10585 _ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h.  */
10589 unsigned long long ull = 1ULL; int i = 63;
10590 int
10591 main ()
10592 {
10593 unsigned long long ullmax = (unsigned long long) -1;
10594      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601   (eval $ac_link) 2>conftest.er1
10602   ac_status=$?
10603   grep -v '^ *+' conftest.er1 >conftest.err
10604   rm -f conftest.er1
10605   cat conftest.err >&5
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } &&
10608          { ac_try='test -z "$ac_c_werror_flag"
10609                          || test ! -s conftest.err'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; } &&
10615          { ac_try='test -s conftest$ac_exeext'
10616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617   (eval $ac_try) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); }; }; then
10621   ac_cv_type_unsigned_long_long=yes
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10625
10626 ac_cv_type_unsigned_long_long=no
10627 fi
10628 rm -f conftest.err conftest.$ac_objext \
10629       conftest$ac_exeext conftest.$ac_ext
10630 fi
10631 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10632 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
10633   if test $ac_cv_type_unsigned_long_long = yes; then
10634
10635 cat >>confdefs.h <<\_ACEOF
10636 #define HAVE_UNSIGNED_LONG_LONG 1
10637 _ACEOF
10638
10639   fi
10640
10641
10642
10643
10644   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
10645
10646     test $ac_cv_type_unsigned_long_long = yes \
10647       && ac_type='unsigned long long' \
10648       || ac_type='unsigned long'
10649
10650 cat >>confdefs.h <<_ACEOF
10651 #define uintmax_t $ac_type
10652 _ACEOF
10653
10654   else
10655
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_UINTMAX_T 1
10658 _ACEOF
10659
10660   fi
10661
10662
10663 for ac_func in mkstemp
10664 do
10665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10666 echo "$as_me:$LINENO: checking for $ac_func" >&5
10667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10668 if eval "test \"\${$as_ac_var+set}\" = set"; then
10669   echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671   cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h.  */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h.  */
10677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10679 #define $ac_func innocuous_$ac_func
10680
10681 /* System header to define __stub macros and hopefully few prototypes,
10682     which can conflict with char $ac_func (); below.
10683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10684     <limits.h> exists even on freestanding compilers.  */
10685
10686 #ifdef __STDC__
10687 # include <limits.h>
10688 #else
10689 # include <assert.h>
10690 #endif
10691
10692 #undef $ac_func
10693
10694 /* Override any gcc2 internal prototype to avoid an error.  */
10695 #ifdef __cplusplus
10696 extern "C"
10697 {
10698 #endif
10699 /* We use char because int might match the return type of a gcc2
10700    builtin and then its argument prototype would still apply.  */
10701 char $ac_func ();
10702 /* The GNU C library defines this for functions which it implements
10703     to always fail with ENOSYS.  Some functions are actually named
10704     something starting with __ and the normal name is an alias.  */
10705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10706 choke me
10707 #else
10708 char (*f) () = $ac_func;
10709 #endif
10710 #ifdef __cplusplus
10711 }
10712 #endif
10713
10714 int
10715 main ()
10716 {
10717 return f != $ac_func;
10718   ;
10719   return 0;
10720 }
10721 _ACEOF
10722 rm -f conftest.$ac_objext conftest$ac_exeext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10724   (eval $ac_link) 2>conftest.er1
10725   ac_status=$?
10726   grep -v '^ *+' conftest.er1 >conftest.err
10727   rm -f conftest.er1
10728   cat conftest.err >&5
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); } &&
10731          { ac_try='test -z "$ac_c_werror_flag"
10732                          || test ! -s conftest.err'
10733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734   (eval $ac_try) 2>&5
10735   ac_status=$?
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); }; } &&
10738          { ac_try='test -s conftest$ac_exeext'
10739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740   (eval $ac_try) 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); }; }; then
10744   eval "$as_ac_var=yes"
10745 else
10746   echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749 eval "$as_ac_var=no"
10750 fi
10751 rm -f conftest.err conftest.$ac_objext \
10752       conftest$ac_exeext conftest.$ac_ext
10753 fi
10754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10756 if test `eval echo '${'$as_ac_var'}'` = yes; then
10757   cat >>confdefs.h <<_ACEOF
10758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10759 _ACEOF
10760
10761 else
10762   case $LIBOBJS in
10763     "$ac_func.$ac_objext"   | \
10764   *" $ac_func.$ac_objext"   | \
10765     "$ac_func.$ac_objext "* | \
10766   *" $ac_func.$ac_objext "* ) ;;
10767   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
10768 esac
10769
10770 fi
10771 done
10772
10773
10774   if test $ac_cv_func_mkstemp = no; then
10775     utils_cv_func_mkstemp_limitations=yes
10776   else
10777     echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
10778 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
10779 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
10780   echo $ECHO_N "(cached) $ECHO_C" >&6
10781 else
10782
10783         if test "$cross_compiling" = yes; then
10784   utils_cv_func_mkstemp_limitations=yes
10785
10786 else
10787   cat >conftest.$ac_ext <<_ACEOF
10788 /* confdefs.h.  */
10789 _ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h.  */
10793
10794 #         include <stdlib.h>
10795           int main ()
10796           {
10797             int i;
10798             for (i = 0; i < 30; i++)
10799               {
10800                 char template[] = "conftestXXXXXX";
10801                 int fd = mkstemp (template);
10802                 if (fd == -1)
10803                   exit (1);
10804                 close (fd);
10805               }
10806             exit (0);
10807           }
10808
10809 _ACEOF
10810 rm -f conftest$ac_exeext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10812   (eval $ac_link) 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817   (eval $ac_try) 2>&5
10818   ac_status=$?
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); }; }; then
10821   utils_cv_func_mkstemp_limitations=no
10822 else
10823   echo "$as_me: program exited with status $ac_status" >&5
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10826
10827 ( exit $ac_status )
10828 utils_cv_func_mkstemp_limitations=yes
10829 fi
10830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10831 fi
10832
10833
10834 fi
10835 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
10836 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
10837   fi
10838
10839   if test $utils_cv_func_mkstemp_limitations = yes; then
10840     case $LIBOBJS in
10841     "mkstemp.$ac_objext"   | \
10842   *" mkstemp.$ac_objext"   | \
10843     "mkstemp.$ac_objext "* | \
10844   *" mkstemp.$ac_objext "* ) ;;
10845   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
10846 esac
10847
10848     case $LIBOBJS in
10849     "tempname.$ac_objext"   | \
10850   *" tempname.$ac_objext"   | \
10851     "tempname.$ac_objext "* | \
10852   *" tempname.$ac_objext "* ) ;;
10853   *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
10854 esac
10855
10856
10857 cat >>confdefs.h <<\_ACEOF
10858 #define mkstemp rpl_mkstemp
10859 _ACEOF
10860
10861
10862
10863
10864
10865
10866
10867   :
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880 for ac_header in stdint.h
10881 do
10882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10884   echo "$as_me:$LINENO: checking for $ac_header" >&5
10885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10887   echo $ECHO_N "(cached) $ECHO_C" >&6
10888 fi
10889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10891 else
10892   # Is the header compilable?
10893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10895 cat >conftest.$ac_ext <<_ACEOF
10896 /* confdefs.h.  */
10897 _ACEOF
10898 cat confdefs.h >>conftest.$ac_ext
10899 cat >>conftest.$ac_ext <<_ACEOF
10900 /* end confdefs.h.  */
10901 $ac_includes_default
10902 #include <$ac_header>
10903 _ACEOF
10904 rm -f conftest.$ac_objext
10905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10906   (eval $ac_compile) 2>conftest.er1
10907   ac_status=$?
10908   grep -v '^ *+' conftest.er1 >conftest.err
10909   rm -f conftest.er1
10910   cat conftest.err >&5
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } &&
10913          { ac_try='test -z "$ac_c_werror_flag"
10914                          || test ! -s conftest.err'
10915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10916   (eval $ac_try) 2>&5
10917   ac_status=$?
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); }; } &&
10920          { ac_try='test -s conftest.$ac_objext'
10921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922   (eval $ac_try) 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); }; }; then
10926   ac_header_compiler=yes
10927 else
10928   echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10930
10931 ac_header_compiler=no
10932 fi
10933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10935 echo "${ECHO_T}$ac_header_compiler" >&6
10936
10937 # Is the header present?
10938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10940 cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h.  */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h.  */
10946 #include <$ac_header>
10947 _ACEOF
10948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10950   ac_status=$?
10951   grep -v '^ *+' conftest.er1 >conftest.err
10952   rm -f conftest.er1
10953   cat conftest.err >&5
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); } >/dev/null; then
10956   if test -s conftest.err; then
10957     ac_cpp_err=$ac_c_preproc_warn_flag
10958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10959   else
10960     ac_cpp_err=
10961   fi
10962 else
10963   ac_cpp_err=yes
10964 fi
10965 if test -z "$ac_cpp_err"; then
10966   ac_header_preproc=yes
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971   ac_header_preproc=no
10972 fi
10973 rm -f conftest.err conftest.$ac_ext
10974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10975 echo "${ECHO_T}$ac_header_preproc" >&6
10976
10977 # So?  What about this header?
10978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10979   yes:no: )
10980     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10984     ac_header_preproc=yes
10985     ;;
10986   no:yes:* )
10987     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10989     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10990 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10991     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10993     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10994 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10997     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10999     (
11000       cat <<\_ASBOX
11001 ## ------------------------------ ##
11002 ## Report this to bug-cvs@gnu.org ##
11003 ## ------------------------------ ##
11004 _ASBOX
11005     ) |
11006       sed "s/^/$as_me: WARNING:     /" >&2
11007     ;;
11008 esac
11009 echo "$as_me:$LINENO: checking for $ac_header" >&5
11010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11012   echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014   eval "$as_ac_Header=\$ac_header_preproc"
11015 fi
11016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11018
11019 fi
11020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11021   cat >>confdefs.h <<_ACEOF
11022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11023 _ACEOF
11024
11025 fi
11026
11027 done
11028
11029
11030
11031 for ac_func in __secure_getenv gettimeofday
11032 do
11033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11034 echo "$as_me:$LINENO: checking for $ac_func" >&5
11035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11036 if eval "test \"\${$as_ac_var+set}\" = set"; then
11037   echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039   cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h.  */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h.  */
11045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11047 #define $ac_func innocuous_$ac_func
11048
11049 /* System header to define __stub macros and hopefully few prototypes,
11050     which can conflict with char $ac_func (); below.
11051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11052     <limits.h> exists even on freestanding compilers.  */
11053
11054 #ifdef __STDC__
11055 # include <limits.h>
11056 #else
11057 # include <assert.h>
11058 #endif
11059
11060 #undef $ac_func
11061
11062 /* Override any gcc2 internal prototype to avoid an error.  */
11063 #ifdef __cplusplus
11064 extern "C"
11065 {
11066 #endif
11067 /* We use char because int might match the return type of a gcc2
11068    builtin and then its argument prototype would still apply.  */
11069 char $ac_func ();
11070 /* The GNU C library defines this for functions which it implements
11071     to always fail with ENOSYS.  Some functions are actually named
11072     something starting with __ and the normal name is an alias.  */
11073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11074 choke me
11075 #else
11076 char (*f) () = $ac_func;
11077 #endif
11078 #ifdef __cplusplus
11079 }
11080 #endif
11081
11082 int
11083 main ()
11084 {
11085 return f != $ac_func;
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092   (eval $ac_link) 2>conftest.er1
11093   ac_status=$?
11094   grep -v '^ *+' conftest.er1 >conftest.err
11095   rm -f conftest.er1
11096   cat conftest.err >&5
11097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098   (exit $ac_status); } &&
11099          { ac_try='test -z "$ac_c_werror_flag"
11100                          || test ! -s conftest.err'
11101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102   (eval $ac_try) 2>&5
11103   ac_status=$?
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); }; } &&
11106          { ac_try='test -s conftest$ac_exeext'
11107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108   (eval $ac_try) 2>&5
11109   ac_status=$?
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); }; }; then
11112   eval "$as_ac_var=yes"
11113 else
11114   echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11116
11117 eval "$as_ac_var=no"
11118 fi
11119 rm -f conftest.err conftest.$ac_objext \
11120       conftest$ac_exeext conftest.$ac_ext
11121 fi
11122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11124 if test `eval echo '${'$as_ac_var'}'` = yes; then
11125   cat >>confdefs.h <<_ACEOF
11126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11127 _ACEOF
11128
11129 fi
11130 done
11131
11132
11133   :
11134
11135
11136
11137
11138
11139
11140
11141   fi
11142
11143 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
11144 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
11145 if test "${gl_cv_c_restrict+set}" = set; then
11146   echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148   gl_cv_c_restrict=no
11149    # Try the official restrict keyword, then gcc's __restrict, and
11150    # the less common variants.
11151    for ac_kw in restrict __restrict __restrict__ _Restrict; do
11152      cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h.  */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h.  */
11158 float * $ac_kw x;
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162   (eval $ac_compile) 2>conftest.er1
11163   ac_status=$?
11164   grep -v '^ *+' conftest.er1 >conftest.err
11165   rm -f conftest.er1
11166   cat conftest.err >&5
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); } &&
11169          { ac_try='test -z "$ac_c_werror_flag"
11170                          || test ! -s conftest.err'
11171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172   (eval $ac_try) 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); }; } &&
11176          { ac_try='test -s conftest.$ac_objext'
11177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178   (eval $ac_try) 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); }; }; then
11182   gl_cv_c_restrict=$ac_kw; break
11183 else
11184   echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11186
11187 fi
11188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11189    done
11190
11191 fi
11192 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
11193 echo "${ECHO_T}$gl_cv_c_restrict" >&6
11194  case $gl_cv_c_restrict in
11195    restrict) ;;
11196    no)
11197 cat >>confdefs.h <<\_ACEOF
11198 #define restrict
11199 _ACEOF
11200  ;;
11201    *)  cat >>confdefs.h <<_ACEOF
11202 #define restrict $gl_cv_c_restrict
11203 _ACEOF
11204  ;;
11205  esac
11206
11207
11208     echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
11209 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
11210 if test "${ac_cv_win_or_dos+set}" = set; then
11211   echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213
11214         cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h.  */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h.  */
11220
11221 int
11222 main ()
11223 {
11224 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
11225 neither MSDOS nor Windows
11226 #endif
11227   ;
11228   return 0;
11229 }
11230 _ACEOF
11231 rm -f conftest.$ac_objext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11233   (eval $ac_compile) 2>conftest.er1
11234   ac_status=$?
11235   grep -v '^ *+' conftest.er1 >conftest.err
11236   rm -f conftest.er1
11237   cat conftest.err >&5
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); } &&
11240          { ac_try='test -z "$ac_c_werror_flag"
11241                          || test ! -s conftest.err'
11242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243   (eval $ac_try) 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); }; } &&
11247          { ac_try='test -s conftest.$ac_objext'
11248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249   (eval $ac_try) 2>&5
11250   ac_status=$?
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); }; }; then
11253   ac_cv_win_or_dos=yes
11254 else
11255   echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 ac_cv_win_or_dos=no
11259 fi
11260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11261
11262 fi
11263 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
11264 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
11265
11266     if test x"$ac_cv_win_or_dos" = xyes; then
11267       ac_fs_accepts_drive_letter_prefix=1
11268       ac_fs_backslash_is_file_name_separator=1
11269     else
11270       ac_fs_accepts_drive_letter_prefix=0
11271       ac_fs_backslash_is_file_name_separator=0
11272     fi
11273
11274
11275
11276
11277
11278 cat >>confdefs.h <<_ACEOF
11279 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
11280 _ACEOF
11281
11282
11283
11284
11285
11286
11287 cat >>confdefs.h <<_ACEOF
11288 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
11289 _ACEOF
11290
11291
11292
11293
11294
11295
11296
11297     :
11298
11299 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11300 # for constant arguments.  Useless!
11301 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11302 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11303 if test "${ac_cv_working_alloca_h+set}" = set; then
11304   echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306   cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h.  */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h.  */
11312 #include <alloca.h>
11313 int
11314 main ()
11315 {
11316 char *p = (char *) alloca (2 * sizeof (int));
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11323   (eval $ac_link) 2>conftest.er1
11324   ac_status=$?
11325   grep -v '^ *+' conftest.er1 >conftest.err
11326   rm -f conftest.er1
11327   cat conftest.err >&5
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); } &&
11330          { ac_try='test -z "$ac_c_werror_flag"
11331                          || test ! -s conftest.err'
11332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333   (eval $ac_try) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; } &&
11337          { ac_try='test -s conftest$ac_exeext'
11338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339   (eval $ac_try) 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); }; }; then
11343   ac_cv_working_alloca_h=yes
11344 else
11345   echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348 ac_cv_working_alloca_h=no
11349 fi
11350 rm -f conftest.err conftest.$ac_objext \
11351       conftest$ac_exeext conftest.$ac_ext
11352 fi
11353 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11354 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11355 if test $ac_cv_working_alloca_h = yes; then
11356
11357 cat >>confdefs.h <<\_ACEOF
11358 #define HAVE_ALLOCA_H 1
11359 _ACEOF
11360
11361 fi
11362
11363 echo "$as_me:$LINENO: checking for alloca" >&5
11364 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11365 if test "${ac_cv_func_alloca_works+set}" = set; then
11366   echo $ECHO_N "(cached) $ECHO_C" >&6
11367 else
11368   cat >conftest.$ac_ext <<_ACEOF
11369 /* confdefs.h.  */
11370 _ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h.  */
11374 #ifdef __GNUC__
11375 # define alloca __builtin_alloca
11376 #else
11377 # ifdef _MSC_VER
11378 #  include <malloc.h>
11379 #  define alloca _alloca
11380 # else
11381 #  if HAVE_ALLOCA_H
11382 #   include <alloca.h>
11383 #  else
11384 #   ifdef _AIX
11385  #pragma alloca
11386 #   else
11387 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11388 char *alloca ();
11389 #    endif
11390 #   endif
11391 #  endif
11392 # endif
11393 #endif
11394
11395 int
11396 main ()
11397 {
11398 char *p = (char *) alloca (1);
11399   ;
11400   return 0;
11401 }
11402 _ACEOF
11403 rm -f conftest.$ac_objext conftest$ac_exeext
11404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11405   (eval $ac_link) 2>conftest.er1
11406   ac_status=$?
11407   grep -v '^ *+' conftest.er1 >conftest.err
11408   rm -f conftest.er1
11409   cat conftest.err >&5
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); } &&
11412          { ac_try='test -z "$ac_c_werror_flag"
11413                          || test ! -s conftest.err'
11414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415   (eval $ac_try) 2>&5
11416   ac_status=$?
11417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418   (exit $ac_status); }; } &&
11419          { ac_try='test -s conftest$ac_exeext'
11420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421   (eval $ac_try) 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; }; then
11425   ac_cv_func_alloca_works=yes
11426 else
11427   echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11429
11430 ac_cv_func_alloca_works=no
11431 fi
11432 rm -f conftest.err conftest.$ac_objext \
11433       conftest$ac_exeext conftest.$ac_ext
11434 fi
11435 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11436 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11437
11438 if test $ac_cv_func_alloca_works = yes; then
11439
11440 cat >>confdefs.h <<\_ACEOF
11441 #define HAVE_ALLOCA 1
11442 _ACEOF
11443
11444 else
11445   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11446 # that cause trouble.  Some versions do not even contain alloca or
11447 # contain a buggy version.  If you still want to use their alloca,
11448 # use ar to extract alloca.o from them instead of compiling alloca.c.
11449
11450 ALLOCA=alloca.$ac_objext
11451
11452 cat >>confdefs.h <<\_ACEOF
11453 #define C_ALLOCA 1
11454 _ACEOF
11455
11456
11457 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11458 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11459 if test "${ac_cv_os_cray+set}" = set; then
11460   echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462   cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h.  */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h.  */
11468 #if defined(CRAY) && ! defined(CRAY2)
11469 webecray
11470 #else
11471 wenotbecray
11472 #endif
11473
11474 _ACEOF
11475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11476   $EGREP "webecray" >/dev/null 2>&1; then
11477   ac_cv_os_cray=yes
11478 else
11479   ac_cv_os_cray=no
11480 fi
11481 rm -f conftest*
11482
11483 fi
11484 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11485 echo "${ECHO_T}$ac_cv_os_cray" >&6
11486 if test $ac_cv_os_cray = yes; then
11487   for ac_func in _getb67 GETB67 getb67; do
11488     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11489 echo "$as_me:$LINENO: checking for $ac_func" >&5
11490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11491 if eval "test \"\${$as_ac_var+set}\" = set"; then
11492   echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494   cat >conftest.$ac_ext <<_ACEOF
11495 /* confdefs.h.  */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h.  */
11500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11502 #define $ac_func innocuous_$ac_func
11503
11504 /* System header to define __stub macros and hopefully few prototypes,
11505     which can conflict with char $ac_func (); below.
11506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11507     <limits.h> exists even on freestanding compilers.  */
11508
11509 #ifdef __STDC__
11510 # include <limits.h>
11511 #else
11512 # include <assert.h>
11513 #endif
11514
11515 #undef $ac_func
11516
11517 /* Override any gcc2 internal prototype to avoid an error.  */
11518 #ifdef __cplusplus
11519 extern "C"
11520 {
11521 #endif
11522 /* We use char because int might match the return type of a gcc2
11523    builtin and then its argument prototype would still apply.  */
11524 char $ac_func ();
11525 /* The GNU C library defines this for functions which it implements
11526     to always fail with ENOSYS.  Some functions are actually named
11527     something starting with __ and the normal name is an alias.  */
11528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11529 choke me
11530 #else
11531 char (*f) () = $ac_func;
11532 #endif
11533 #ifdef __cplusplus
11534 }
11535 #endif
11536
11537 int
11538 main ()
11539 {
11540 return f != $ac_func;
11541   ;
11542   return 0;
11543 }
11544 _ACEOF
11545 rm -f conftest.$ac_objext conftest$ac_exeext
11546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11547   (eval $ac_link) 2>conftest.er1
11548   ac_status=$?
11549   grep -v '^ *+' conftest.er1 >conftest.err
11550   rm -f conftest.er1
11551   cat conftest.err >&5
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); } &&
11554          { ac_try='test -z "$ac_c_werror_flag"
11555                          || test ! -s conftest.err'
11556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557   (eval $ac_try) 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); }; } &&
11561          { ac_try='test -s conftest$ac_exeext'
11562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563   (eval $ac_try) 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; }; then
11567   eval "$as_ac_var=yes"
11568 else
11569   echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 eval "$as_ac_var=no"
11573 fi
11574 rm -f conftest.err conftest.$ac_objext \
11575       conftest$ac_exeext conftest.$ac_ext
11576 fi
11577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11579 if test `eval echo '${'$as_ac_var'}'` = yes; then
11580
11581 cat >>confdefs.h <<_ACEOF
11582 #define CRAY_STACKSEG_END $ac_func
11583 _ACEOF
11584
11585     break
11586 fi
11587
11588   done
11589 fi
11590
11591 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11592 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11593 if test "${ac_cv_c_stack_direction+set}" = set; then
11594   echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596   if test "$cross_compiling" = yes; then
11597   ac_cv_c_stack_direction=0
11598 else
11599   cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h.  */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h.  */
11605 int
11606 find_stack_direction ()
11607 {
11608   static char *addr = 0;
11609   auto char dummy;
11610   if (addr == 0)
11611     {
11612       addr = &dummy;
11613       return find_stack_direction ();
11614     }
11615   else
11616     return (&dummy > addr) ? 1 : -1;
11617 }
11618
11619 int
11620 main ()
11621 {
11622   exit (find_stack_direction () < 0);
11623 }
11624 _ACEOF
11625 rm -f conftest$ac_exeext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11627   (eval $ac_link) 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632   (eval $ac_try) 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); }; }; then
11636   ac_cv_c_stack_direction=1
11637 else
11638   echo "$as_me: program exited with status $ac_status" >&5
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642 ( exit $ac_status )
11643 ac_cv_c_stack_direction=-1
11644 fi
11645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11646 fi
11647 fi
11648 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11649 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11650
11651 cat >>confdefs.h <<_ACEOF
11652 #define STACK_DIRECTION $ac_cv_c_stack_direction
11653 _ACEOF
11654
11655
11656 fi
11657
11658
11659
11660
11661
11662
11663   if test $ac_cv_func_alloca_works = no; then
11664     :
11665   fi
11666
11667   # Define an additional variable used in the Makefile substitution.
11668
11669   cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h.  */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h.  */
11675
11676 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
11677   Need own alloca
11678 #endif
11679
11680 _ACEOF
11681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11682   $EGREP "Need own alloca" >/dev/null 2>&1; then
11683   ALLOCA_H=alloca.h
11684 else
11685   ALLOCA_H=
11686 fi
11687 rm -f conftest*
11688
11689
11690
11691
11692
11693 for ac_func in atexit
11694 do
11695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11696 echo "$as_me:$LINENO: checking for $ac_func" >&5
11697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11698 if eval "test \"\${$as_ac_var+set}\" = set"; then
11699   echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701   cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h.  */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h.  */
11707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11709 #define $ac_func innocuous_$ac_func
11710
11711 /* System header to define __stub macros and hopefully few prototypes,
11712     which can conflict with char $ac_func (); below.
11713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11714     <limits.h> exists even on freestanding compilers.  */
11715
11716 #ifdef __STDC__
11717 # include <limits.h>
11718 #else
11719 # include <assert.h>
11720 #endif
11721
11722 #undef $ac_func
11723
11724 /* Override any gcc2 internal prototype to avoid an error.  */
11725 #ifdef __cplusplus
11726 extern "C"
11727 {
11728 #endif
11729 /* We use char because int might match the return type of a gcc2
11730    builtin and then its argument prototype would still apply.  */
11731 char $ac_func ();
11732 /* The GNU C library defines this for functions which it implements
11733     to always fail with ENOSYS.  Some functions are actually named
11734     something starting with __ and the normal name is an alias.  */
11735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11736 choke me
11737 #else
11738 char (*f) () = $ac_func;
11739 #endif
11740 #ifdef __cplusplus
11741 }
11742 #endif
11743
11744 int
11745 main ()
11746 {
11747 return f != $ac_func;
11748   ;
11749   return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754   (eval $ac_link) 2>conftest.er1
11755   ac_status=$?
11756   grep -v '^ *+' conftest.er1 >conftest.err
11757   rm -f conftest.er1
11758   cat conftest.err >&5
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -z "$ac_c_werror_flag"
11762                          || test ! -s conftest.err'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; } &&
11768          { ac_try='test -s conftest$ac_exeext'
11769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770   (eval $ac_try) 2>&5
11771   ac_status=$?
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); }; }; then
11774   eval "$as_ac_var=yes"
11775 else
11776   echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11778
11779 eval "$as_ac_var=no"
11780 fi
11781 rm -f conftest.err conftest.$ac_objext \
11782       conftest$ac_exeext conftest.$ac_ext
11783 fi
11784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11786 if test `eval echo '${'$as_ac_var'}'` = yes; then
11787   cat >>confdefs.h <<_ACEOF
11788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11789 _ACEOF
11790
11791 else
11792   case $LIBOBJS in
11793     "$ac_func.$ac_objext"   | \
11794   *" $ac_func.$ac_objext"   | \
11795     "$ac_func.$ac_objext "* | \
11796   *" $ac_func.$ac_objext "* ) ;;
11797   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
11798 esac
11799
11800 fi
11801 done
11802
11803
11804   if test $ac_cv_func_atexit = no; then
11805
11806   :
11807
11808   fi
11809
11810 echo "$as_me:$LINENO: checking for mbstate_t" >&5
11811 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
11812 if test "${ac_cv_type_mbstate_t+set}" = set; then
11813   echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815   cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h.  */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h.  */
11821 $ac_includes_default
11822 #           include <wchar.h>
11823 int
11824 main ()
11825 {
11826 mbstate_t x; return sizeof x;
11827   ;
11828   return 0;
11829 }
11830 _ACEOF
11831 rm -f conftest.$ac_objext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11833   (eval $ac_compile) 2>conftest.er1
11834   ac_status=$?
11835   grep -v '^ *+' conftest.er1 >conftest.err
11836   rm -f conftest.er1
11837   cat conftest.err >&5
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); } &&
11840          { ac_try='test -z "$ac_c_werror_flag"
11841                          || test ! -s conftest.err'
11842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843   (eval $ac_try) 2>&5
11844   ac_status=$?
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); }; } &&
11847          { ac_try='test -s conftest.$ac_objext'
11848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849   (eval $ac_try) 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); }; }; then
11853   ac_cv_type_mbstate_t=yes
11854 else
11855   echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11857
11858 ac_cv_type_mbstate_t=no
11859 fi
11860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11861 fi
11862 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
11863 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
11864    if test $ac_cv_type_mbstate_t = yes; then
11865
11866 cat >>confdefs.h <<\_ACEOF
11867 #define HAVE_MBSTATE_T 1
11868 _ACEOF
11869
11870    else
11871
11872 cat >>confdefs.h <<\_ACEOF
11873 #define mbstate_t int
11874 _ACEOF
11875
11876    fi
11877
11878   FNMATCH_H=
11879   echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
11880 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
11881 if test "${ac_cv_func_fnmatch_posix+set}" = set; then
11882   echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884   # Some versions of Solaris, SCO, and the GNU C Library
11885    # have a broken or incompatible fnmatch.
11886    # So we run a test program.  If we are cross-compiling, take no chance.
11887    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
11888    if test "$cross_compiling" = yes; then
11889   ac_cv_func_fnmatch_posix=cross
11890 else
11891   cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h.  */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h.  */
11897
11898 #          include <stdlib.h>
11899 #          include <fnmatch.h>
11900 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
11901 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
11902
11903 int
11904 main ()
11905 {
11906 exit
11907            (!(y ("a*", "abc", 0)
11908               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
11909               && y ("a\\\\bc", "abc", 0)
11910               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
11911               && y ("*x", ".x", 0)
11912               && n ("*x", ".x", FNM_PERIOD)
11913               && 1));
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920   (eval $ac_link) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925   (eval $ac_try) 2>&5
11926   ac_status=$?
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); }; }; then
11929   ac_cv_func_fnmatch_posix=yes
11930 else
11931   echo "$as_me: program exited with status $ac_status" >&5
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935 ( exit $ac_status )
11936 ac_cv_func_fnmatch_posix=no
11937 fi
11938 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11939 fi
11940 fi
11941 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_posix" >&5
11942 echo "${ECHO_T}$ac_cv_func_fnmatch_posix" >&6
11943 if test $ac_cv_func_fnmatch_posix = yes; then
11944   rm -f lib/fnmatch.h
11945 else
11946   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11947 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11948 if test "${ac_cv_have_decl_getenv+set}" = set; then
11949   echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951   cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h.  */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h.  */
11957 $ac_includes_default
11958 int
11959 main ()
11960 {
11961 #ifndef getenv
11962   char *p = (char *) getenv;
11963 #endif
11964
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971   (eval $ac_compile) 2>conftest.er1
11972   ac_status=$?
11973   grep -v '^ *+' conftest.er1 >conftest.err
11974   rm -f conftest.er1
11975   cat conftest.err >&5
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } &&
11978          { ac_try='test -z "$ac_c_werror_flag"
11979                          || test ! -s conftest.err'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; } &&
11985          { ac_try='test -s conftest.$ac_objext'
11986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987   (eval $ac_try) 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   ac_cv_have_decl_getenv=yes
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 ac_cv_have_decl_getenv=no
11997 fi
11998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11999 fi
12000 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12001 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12002 if test $ac_cv_have_decl_getenv = yes; then
12003
12004 cat >>confdefs.h <<_ACEOF
12005 #define HAVE_DECL_GETENV 1
12006 _ACEOF
12007
12008
12009 else
12010   cat >>confdefs.h <<_ACEOF
12011 #define HAVE_DECL_GETENV 0
12012 _ACEOF
12013
12014
12015 fi
12016
12017
12018
12019
12020
12021
12022 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
12023 do
12024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12025 echo "$as_me:$LINENO: checking for $ac_func" >&5
12026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12027 if eval "test \"\${$as_ac_var+set}\" = set"; then
12028   echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030   cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h.  */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h.  */
12036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12038 #define $ac_func innocuous_$ac_func
12039
12040 /* System header to define __stub macros and hopefully few prototypes,
12041     which can conflict with char $ac_func (); below.
12042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12043     <limits.h> exists even on freestanding compilers.  */
12044
12045 #ifdef __STDC__
12046 # include <limits.h>
12047 #else
12048 # include <assert.h>
12049 #endif
12050
12051 #undef $ac_func
12052
12053 /* Override any gcc2 internal prototype to avoid an error.  */
12054 #ifdef __cplusplus
12055 extern "C"
12056 {
12057 #endif
12058 /* We use char because int might match the return type of a gcc2
12059    builtin and then its argument prototype would still apply.  */
12060 char $ac_func ();
12061 /* The GNU C library defines this for functions which it implements
12062     to always fail with ENOSYS.  Some functions are actually named
12063     something starting with __ and the normal name is an alias.  */
12064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12065 choke me
12066 #else
12067 char (*f) () = $ac_func;
12068 #endif
12069 #ifdef __cplusplus
12070 }
12071 #endif
12072
12073 int
12074 main ()
12075 {
12076 return f != $ac_func;
12077   ;
12078   return 0;
12079 }
12080 _ACEOF
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12083   (eval $ac_link) 2>conftest.er1
12084   ac_status=$?
12085   grep -v '^ *+' conftest.er1 >conftest.err
12086   rm -f conftest.er1
12087   cat conftest.err >&5
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); } &&
12090          { ac_try='test -z "$ac_c_werror_flag"
12091                          || test ! -s conftest.err'
12092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093   (eval $ac_try) 2>&5
12094   ac_status=$?
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); }; } &&
12097          { ac_try='test -s conftest$ac_exeext'
12098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099   (eval $ac_try) 2>&5
12100   ac_status=$?
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); }; }; then
12103   eval "$as_ac_var=yes"
12104 else
12105   echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108 eval "$as_ac_var=no"
12109 fi
12110 rm -f conftest.err conftest.$ac_objext \
12111       conftest$ac_exeext conftest.$ac_ext
12112 fi
12113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12115 if test `eval echo '${'$as_ac_var'}'` = yes; then
12116   cat >>confdefs.h <<_ACEOF
12117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12118 _ACEOF
12119
12120 fi
12121 done
12122
12123
12124
12125 for ac_header in wchar.h wctype.h
12126 do
12127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12129   echo "$as_me:$LINENO: checking for $ac_header" >&5
12130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12132   echo $ECHO_N "(cached) $ECHO_C" >&6
12133 fi
12134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12136 else
12137   # Is the header compilable?
12138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146 $ac_includes_default
12147 #include <$ac_header>
12148 _ACEOF
12149 rm -f conftest.$ac_objext
12150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12151   (eval $ac_compile) 2>conftest.er1
12152   ac_status=$?
12153   grep -v '^ *+' conftest.er1 >conftest.err
12154   rm -f conftest.er1
12155   cat conftest.err >&5
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); } &&
12158          { ac_try='test -z "$ac_c_werror_flag"
12159                          || test ! -s conftest.err'
12160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161   (eval $ac_try) 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; } &&
12165          { ac_try='test -s conftest.$ac_objext'
12166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167   (eval $ac_try) 2>&5
12168   ac_status=$?
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); }; }; then
12171   ac_header_compiler=yes
12172 else
12173   echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12175
12176 ac_header_compiler=no
12177 fi
12178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12180 echo "${ECHO_T}$ac_header_compiler" >&6
12181
12182 # Is the header present?
12183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12185 cat >conftest.$ac_ext <<_ACEOF
12186 /* confdefs.h.  */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h.  */
12191 #include <$ac_header>
12192 _ACEOF
12193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12195   ac_status=$?
12196   grep -v '^ *+' conftest.er1 >conftest.err
12197   rm -f conftest.er1
12198   cat conftest.err >&5
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); } >/dev/null; then
12201   if test -s conftest.err; then
12202     ac_cpp_err=$ac_c_preproc_warn_flag
12203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12204   else
12205     ac_cpp_err=
12206   fi
12207 else
12208   ac_cpp_err=yes
12209 fi
12210 if test -z "$ac_cpp_err"; then
12211   ac_header_preproc=yes
12212 else
12213   echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12215
12216   ac_header_preproc=no
12217 fi
12218 rm -f conftest.err conftest.$ac_ext
12219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12220 echo "${ECHO_T}$ac_header_preproc" >&6
12221
12222 # So?  What about this header?
12223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12224   yes:no: )
12225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12229     ac_header_preproc=yes
12230     ;;
12231   no:yes:* )
12232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12244     (
12245       cat <<\_ASBOX
12246 ## ------------------------------ ##
12247 ## Report this to bug-cvs@gnu.org ##
12248 ## ------------------------------ ##
12249 _ASBOX
12250     ) |
12251       sed "s/^/$as_me: WARNING:     /" >&2
12252     ;;
12253 esac
12254 echo "$as_me:$LINENO: checking for $ac_header" >&5
12255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12257   echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259   eval "$as_ac_Header=\$ac_header_preproc"
12260 fi
12261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12263
12264 fi
12265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12266   cat >>confdefs.h <<_ACEOF
12267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12268 _ACEOF
12269
12270 fi
12271
12272 done
12273
12274 case $LIBOBJS in
12275     "fnmatch.$ac_objext"   | \
12276   *" fnmatch.$ac_objext"   | \
12277     "fnmatch.$ac_objext "* | \
12278   *" fnmatch.$ac_objext "* ) ;;
12279   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
12280 esac
12281
12282 FNMATCH_H=fnmatch.h
12283
12284 fi
12285
12286
12287   if test $ac_cv_func_fnmatch_posix != yes; then
12288
12289 cat >>confdefs.h <<\_ACEOF
12290 #define fnmatch posix_fnmatch
12291 _ACEOF
12292
12293   fi
12294
12295
12296
12297
12298 for ac_func in gethostname
12299 do
12300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12301 echo "$as_me:$LINENO: checking for $ac_func" >&5
12302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12303 if eval "test \"\${$as_ac_var+set}\" = set"; then
12304   echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306   cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h.  */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h.  */
12312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12314 #define $ac_func innocuous_$ac_func
12315
12316 /* System header to define __stub macros and hopefully few prototypes,
12317     which can conflict with char $ac_func (); below.
12318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12319     <limits.h> exists even on freestanding compilers.  */
12320
12321 #ifdef __STDC__
12322 # include <limits.h>
12323 #else
12324 # include <assert.h>
12325 #endif
12326
12327 #undef $ac_func
12328
12329 /* Override any gcc2 internal prototype to avoid an error.  */
12330 #ifdef __cplusplus
12331 extern "C"
12332 {
12333 #endif
12334 /* We use char because int might match the return type of a gcc2
12335    builtin and then its argument prototype would still apply.  */
12336 char $ac_func ();
12337 /* The GNU C library defines this for functions which it implements
12338     to always fail with ENOSYS.  Some functions are actually named
12339     something starting with __ and the normal name is an alias.  */
12340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12341 choke me
12342 #else
12343 char (*f) () = $ac_func;
12344 #endif
12345 #ifdef __cplusplus
12346 }
12347 #endif
12348
12349 int
12350 main ()
12351 {
12352 return f != $ac_func;
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359   (eval $ac_link) 2>conftest.er1
12360   ac_status=$?
12361   grep -v '^ *+' conftest.er1 >conftest.err
12362   rm -f conftest.er1
12363   cat conftest.err >&5
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); } &&
12366          { ac_try='test -z "$ac_c_werror_flag"
12367                          || test ! -s conftest.err'
12368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369   (eval $ac_try) 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); }; } &&
12373          { ac_try='test -s conftest$ac_exeext'
12374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375   (eval $ac_try) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; }; then
12379   eval "$as_ac_var=yes"
12380 else
12381   echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384 eval "$as_ac_var=no"
12385 fi
12386 rm -f conftest.err conftest.$ac_objext \
12387       conftest$ac_exeext conftest.$ac_ext
12388 fi
12389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12391 if test `eval echo '${'$as_ac_var'}'` = yes; then
12392   cat >>confdefs.h <<_ACEOF
12393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12394 _ACEOF
12395
12396 else
12397   case $LIBOBJS in
12398     "$ac_func.$ac_objext"   | \
12399   *" $ac_func.$ac_objext"   | \
12400     "$ac_func.$ac_objext "* | \
12401   *" $ac_func.$ac_objext "* ) ;;
12402   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
12403 esac
12404
12405 fi
12406 done
12407
12408
12409   if test $ac_cv_func_gethostname = no; then
12410
12411
12412 for ac_func in uname
12413 do
12414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12415 echo "$as_me:$LINENO: checking for $ac_func" >&5
12416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12417 if eval "test \"\${$as_ac_var+set}\" = set"; then
12418   echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420   cat >conftest.$ac_ext <<_ACEOF
12421 /* confdefs.h.  */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h.  */
12426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12428 #define $ac_func innocuous_$ac_func
12429
12430 /* System header to define __stub macros and hopefully few prototypes,
12431     which can conflict with char $ac_func (); below.
12432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12433     <limits.h> exists even on freestanding compilers.  */
12434
12435 #ifdef __STDC__
12436 # include <limits.h>
12437 #else
12438 # include <assert.h>
12439 #endif
12440
12441 #undef $ac_func
12442
12443 /* Override any gcc2 internal prototype to avoid an error.  */
12444 #ifdef __cplusplus
12445 extern "C"
12446 {
12447 #endif
12448 /* We use char because int might match the return type of a gcc2
12449    builtin and then its argument prototype would still apply.  */
12450 char $ac_func ();
12451 /* The GNU C library defines this for functions which it implements
12452     to always fail with ENOSYS.  Some functions are actually named
12453     something starting with __ and the normal name is an alias.  */
12454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12455 choke me
12456 #else
12457 char (*f) () = $ac_func;
12458 #endif
12459 #ifdef __cplusplus
12460 }
12461 #endif
12462
12463 int
12464 main ()
12465 {
12466 return f != $ac_func;
12467   ;
12468   return 0;
12469 }
12470 _ACEOF
12471 rm -f conftest.$ac_objext conftest$ac_exeext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12473   (eval $ac_link) 2>conftest.er1
12474   ac_status=$?
12475   grep -v '^ *+' conftest.er1 >conftest.err
12476   rm -f conftest.er1
12477   cat conftest.err >&5
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); } &&
12480          { ac_try='test -z "$ac_c_werror_flag"
12481                          || test ! -s conftest.err'
12482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483   (eval $ac_try) 2>&5
12484   ac_status=$?
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); }; } &&
12487          { ac_try='test -s conftest$ac_exeext'
12488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489   (eval $ac_try) 2>&5
12490   ac_status=$?
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); }; }; then
12493   eval "$as_ac_var=yes"
12494 else
12495   echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12497
12498 eval "$as_ac_var=no"
12499 fi
12500 rm -f conftest.err conftest.$ac_objext \
12501       conftest$ac_exeext conftest.$ac_ext
12502 fi
12503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12505 if test `eval echo '${'$as_ac_var'}'` = yes; then
12506   cat >>confdefs.h <<_ACEOF
12507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12508 _ACEOF
12509
12510 fi
12511 done
12512
12513
12514   fi
12515
12516
12517       echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
12518 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
12519 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
12520   echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522   cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h.  */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h.  */
12528 $ac_includes_default
12529 int
12530 main ()
12531 {
12532 #ifndef clearerr_unlocked
12533   char *p = (char *) clearerr_unlocked;
12534 #endif
12535
12536   ;
12537   return 0;
12538 }
12539 _ACEOF
12540 rm -f conftest.$ac_objext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542   (eval $ac_compile) 2>conftest.er1
12543   ac_status=$?
12544   grep -v '^ *+' conftest.er1 >conftest.err
12545   rm -f conftest.er1
12546   cat conftest.err >&5
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); } &&
12549          { ac_try='test -z "$ac_c_werror_flag"
12550                          || test ! -s conftest.err'
12551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552   (eval $ac_try) 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; } &&
12556          { ac_try='test -s conftest.$ac_objext'
12557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558   (eval $ac_try) 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; }; then
12562   ac_cv_have_decl_clearerr_unlocked=yes
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_cv_have_decl_clearerr_unlocked=no
12568 fi
12569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12570 fi
12571 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
12572 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
12573 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
12574
12575 cat >>confdefs.h <<_ACEOF
12576 #define HAVE_DECL_CLEARERR_UNLOCKED 1
12577 _ACEOF
12578
12579
12580 else
12581   cat >>confdefs.h <<_ACEOF
12582 #define HAVE_DECL_CLEARERR_UNLOCKED 0
12583 _ACEOF
12584
12585
12586 fi
12587
12588
12589
12590
12591       echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12592 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
12593 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12594   echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596   cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602 $ac_includes_default
12603 int
12604 main ()
12605 {
12606 #ifndef feof_unlocked
12607   char *p = (char *) feof_unlocked;
12608 #endif
12609
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616   (eval $ac_compile) 2>conftest.er1
12617   ac_status=$?
12618   grep -v '^ *+' conftest.er1 >conftest.err
12619   rm -f conftest.er1
12620   cat conftest.err >&5
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); } &&
12623          { ac_try='test -z "$ac_c_werror_flag"
12624                          || test ! -s conftest.err'
12625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626   (eval $ac_try) 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; } &&
12630          { ac_try='test -s conftest.$ac_objext'
12631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632   (eval $ac_try) 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; }; then
12636   ac_cv_have_decl_feof_unlocked=yes
12637 else
12638   echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641 ac_cv_have_decl_feof_unlocked=no
12642 fi
12643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12644 fi
12645 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12646 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
12647 if test $ac_cv_have_decl_feof_unlocked = yes; then
12648
12649 cat >>confdefs.h <<_ACEOF
12650 #define HAVE_DECL_FEOF_UNLOCKED 1
12651 _ACEOF
12652
12653
12654 else
12655   cat >>confdefs.h <<_ACEOF
12656 #define HAVE_DECL_FEOF_UNLOCKED 0
12657 _ACEOF
12658
12659
12660 fi
12661
12662
12663
12664
12665       echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
12666 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
12667 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
12668   echo $ECHO_N "(cached) $ECHO_C" >&6
12669 else
12670   cat >conftest.$ac_ext <<_ACEOF
12671 /* confdefs.h.  */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h.  */
12676 $ac_includes_default
12677 int
12678 main ()
12679 {
12680 #ifndef ferror_unlocked
12681   char *p = (char *) ferror_unlocked;
12682 #endif
12683
12684   ;
12685   return 0;
12686 }
12687 _ACEOF
12688 rm -f conftest.$ac_objext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690   (eval $ac_compile) 2>conftest.er1
12691   ac_status=$?
12692   grep -v '^ *+' conftest.er1 >conftest.err
12693   rm -f conftest.er1
12694   cat conftest.err >&5
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); } &&
12697          { ac_try='test -z "$ac_c_werror_flag"
12698                          || test ! -s conftest.err'
12699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700   (eval $ac_try) 2>&5
12701   ac_status=$?
12702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); }; } &&
12704          { ac_try='test -s conftest.$ac_objext'
12705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706   (eval $ac_try) 2>&5
12707   ac_status=$?
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); }; }; then
12710   ac_cv_have_decl_ferror_unlocked=yes
12711 else
12712   echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12714
12715 ac_cv_have_decl_ferror_unlocked=no
12716 fi
12717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12718 fi
12719 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
12720 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
12721 if test $ac_cv_have_decl_ferror_unlocked = yes; then
12722
12723 cat >>confdefs.h <<_ACEOF
12724 #define HAVE_DECL_FERROR_UNLOCKED 1
12725 _ACEOF
12726
12727
12728 else
12729   cat >>confdefs.h <<_ACEOF
12730 #define HAVE_DECL_FERROR_UNLOCKED 0
12731 _ACEOF
12732
12733
12734 fi
12735
12736
12737
12738
12739       echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
12740 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
12741 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
12742   echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744   cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h.  */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h.  */
12750 $ac_includes_default
12751 int
12752 main ()
12753 {
12754 #ifndef fflush_unlocked
12755   char *p = (char *) fflush_unlocked;
12756 #endif
12757
12758   ;
12759   return 0;
12760 }
12761 _ACEOF
12762 rm -f conftest.$ac_objext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764   (eval $ac_compile) 2>conftest.er1
12765   ac_status=$?
12766   grep -v '^ *+' conftest.er1 >conftest.err
12767   rm -f conftest.er1
12768   cat conftest.err >&5
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); } &&
12771          { ac_try='test -z "$ac_c_werror_flag"
12772                          || test ! -s conftest.err'
12773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774   (eval $ac_try) 2>&5
12775   ac_status=$?
12776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777   (exit $ac_status); }; } &&
12778          { ac_try='test -s conftest.$ac_objext'
12779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780   (eval $ac_try) 2>&5
12781   ac_status=$?
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); }; }; then
12784   ac_cv_have_decl_fflush_unlocked=yes
12785 else
12786   echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12788
12789 ac_cv_have_decl_fflush_unlocked=no
12790 fi
12791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12792 fi
12793 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
12794 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
12795 if test $ac_cv_have_decl_fflush_unlocked = yes; then
12796
12797 cat >>confdefs.h <<_ACEOF
12798 #define HAVE_DECL_FFLUSH_UNLOCKED 1
12799 _ACEOF
12800
12801
12802 else
12803   cat >>confdefs.h <<_ACEOF
12804 #define HAVE_DECL_FFLUSH_UNLOCKED 0
12805 _ACEOF
12806
12807
12808 fi
12809
12810
12811
12812
12813       echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12814 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
12815 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12816   echo $ECHO_N "(cached) $ECHO_C" >&6
12817 else
12818   cat >conftest.$ac_ext <<_ACEOF
12819 /* confdefs.h.  */
12820 _ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h.  */
12824 $ac_includes_default
12825 int
12826 main ()
12827 {
12828 #ifndef fgets_unlocked
12829   char *p = (char *) fgets_unlocked;
12830 #endif
12831
12832   ;
12833   return 0;
12834 }
12835 _ACEOF
12836 rm -f conftest.$ac_objext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12838   (eval $ac_compile) 2>conftest.er1
12839   ac_status=$?
12840   grep -v '^ *+' conftest.er1 >conftest.err
12841   rm -f conftest.er1
12842   cat conftest.err >&5
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); } &&
12845          { ac_try='test -z "$ac_c_werror_flag"
12846                          || test ! -s conftest.err'
12847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848   (eval $ac_try) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); }; } &&
12852          { ac_try='test -s conftest.$ac_objext'
12853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854   (eval $ac_try) 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); }; }; then
12858   ac_cv_have_decl_fgets_unlocked=yes
12859 else
12860   echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 ac_cv_have_decl_fgets_unlocked=no
12864 fi
12865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12866 fi
12867 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12868 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
12869 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12870
12871 cat >>confdefs.h <<_ACEOF
12872 #define HAVE_DECL_FGETS_UNLOCKED 1
12873 _ACEOF
12874
12875
12876 else
12877   cat >>confdefs.h <<_ACEOF
12878 #define HAVE_DECL_FGETS_UNLOCKED 0
12879 _ACEOF
12880
12881
12882 fi
12883
12884
12885
12886
12887       echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
12888 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
12889 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
12890   echo $ECHO_N "(cached) $ECHO_C" >&6
12891 else
12892   cat >conftest.$ac_ext <<_ACEOF
12893 /* confdefs.h.  */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h.  */
12898 $ac_includes_default
12899 int
12900 main ()
12901 {
12902 #ifndef fputc_unlocked
12903   char *p = (char *) fputc_unlocked;
12904 #endif
12905
12906   ;
12907   return 0;
12908 }
12909 _ACEOF
12910 rm -f conftest.$ac_objext
12911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12912   (eval $ac_compile) 2>conftest.er1
12913   ac_status=$?
12914   grep -v '^ *+' conftest.er1 >conftest.err
12915   rm -f conftest.er1
12916   cat conftest.err >&5
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); } &&
12919          { ac_try='test -z "$ac_c_werror_flag"
12920                          || test ! -s conftest.err'
12921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922   (eval $ac_try) 2>&5
12923   ac_status=$?
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); }; } &&
12926          { ac_try='test -s conftest.$ac_objext'
12927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928   (eval $ac_try) 2>&5
12929   ac_status=$?
12930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); }; }; then
12932   ac_cv_have_decl_fputc_unlocked=yes
12933 else
12934   echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12936
12937 ac_cv_have_decl_fputc_unlocked=no
12938 fi
12939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12940 fi
12941 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
12942 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
12943 if test $ac_cv_have_decl_fputc_unlocked = yes; then
12944
12945 cat >>confdefs.h <<_ACEOF
12946 #define HAVE_DECL_FPUTC_UNLOCKED 1
12947 _ACEOF
12948
12949
12950 else
12951   cat >>confdefs.h <<_ACEOF
12952 #define HAVE_DECL_FPUTC_UNLOCKED 0
12953 _ACEOF
12954
12955
12956 fi
12957
12958
12959
12960
12961       echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
12962 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
12963 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
12964   echo $ECHO_N "(cached) $ECHO_C" >&6
12965 else
12966   cat >conftest.$ac_ext <<_ACEOF
12967 /* confdefs.h.  */
12968 _ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h.  */
12972 $ac_includes_default
12973 int
12974 main ()
12975 {
12976 #ifndef fputs_unlocked
12977   char *p = (char *) fputs_unlocked;
12978 #endif
12979
12980   ;
12981   return 0;
12982 }
12983 _ACEOF
12984 rm -f conftest.$ac_objext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986   (eval $ac_compile) 2>conftest.er1
12987   ac_status=$?
12988   grep -v '^ *+' conftest.er1 >conftest.err
12989   rm -f conftest.er1
12990   cat conftest.err >&5
12991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992   (exit $ac_status); } &&
12993          { ac_try='test -z "$ac_c_werror_flag"
12994                          || test ! -s conftest.err'
12995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996   (eval $ac_try) 2>&5
12997   ac_status=$?
12998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999   (exit $ac_status); }; } &&
13000          { ac_try='test -s conftest.$ac_objext'
13001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002   (eval $ac_try) 2>&5
13003   ac_status=$?
13004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); }; }; then
13006   ac_cv_have_decl_fputs_unlocked=yes
13007 else
13008   echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13010
13011 ac_cv_have_decl_fputs_unlocked=no
13012 fi
13013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13014 fi
13015 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
13016 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
13017 if test $ac_cv_have_decl_fputs_unlocked = yes; then
13018
13019 cat >>confdefs.h <<_ACEOF
13020 #define HAVE_DECL_FPUTS_UNLOCKED 1
13021 _ACEOF
13022
13023
13024 else
13025   cat >>confdefs.h <<_ACEOF
13026 #define HAVE_DECL_FPUTS_UNLOCKED 0
13027 _ACEOF
13028
13029
13030 fi
13031
13032
13033
13034
13035       echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
13036 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
13037 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
13038   echo $ECHO_N "(cached) $ECHO_C" >&6
13039 else
13040   cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h.  */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h.  */
13046 $ac_includes_default
13047 int
13048 main ()
13049 {
13050 #ifndef fread_unlocked
13051   char *p = (char *) fread_unlocked;
13052 #endif
13053
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 rm -f conftest.$ac_objext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13060   (eval $ac_compile) 2>conftest.er1
13061   ac_status=$?
13062   grep -v '^ *+' conftest.er1 >conftest.err
13063   rm -f conftest.er1
13064   cat conftest.err >&5
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); } &&
13067          { ac_try='test -z "$ac_c_werror_flag"
13068                          || test ! -s conftest.err'
13069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070   (eval $ac_try) 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); }; } &&
13074          { ac_try='test -s conftest.$ac_objext'
13075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076   (eval $ac_try) 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); }; }; then
13080   ac_cv_have_decl_fread_unlocked=yes
13081 else
13082   echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13084
13085 ac_cv_have_decl_fread_unlocked=no
13086 fi
13087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13088 fi
13089 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
13090 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
13091 if test $ac_cv_have_decl_fread_unlocked = yes; then
13092
13093 cat >>confdefs.h <<_ACEOF
13094 #define HAVE_DECL_FREAD_UNLOCKED 1
13095 _ACEOF
13096
13097
13098 else
13099   cat >>confdefs.h <<_ACEOF
13100 #define HAVE_DECL_FREAD_UNLOCKED 0
13101 _ACEOF
13102
13103
13104 fi
13105
13106
13107
13108
13109       echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
13110 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
13111 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
13112   echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114   cat >conftest.$ac_ext <<_ACEOF
13115 /* confdefs.h.  */
13116 _ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h.  */
13120 $ac_includes_default
13121 int
13122 main ()
13123 {
13124 #ifndef fwrite_unlocked
13125   char *p = (char *) fwrite_unlocked;
13126 #endif
13127
13128   ;
13129   return 0;
13130 }
13131 _ACEOF
13132 rm -f conftest.$ac_objext
13133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13134   (eval $ac_compile) 2>conftest.er1
13135   ac_status=$?
13136   grep -v '^ *+' conftest.er1 >conftest.err
13137   rm -f conftest.er1
13138   cat conftest.err >&5
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); } &&
13141          { ac_try='test -z "$ac_c_werror_flag"
13142                          || test ! -s conftest.err'
13143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144   (eval $ac_try) 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }; } &&
13148          { ac_try='test -s conftest.$ac_objext'
13149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150   (eval $ac_try) 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); }; }; then
13154   ac_cv_have_decl_fwrite_unlocked=yes
13155 else
13156   echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159 ac_cv_have_decl_fwrite_unlocked=no
13160 fi
13161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13162 fi
13163 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
13164 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
13165 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
13166
13167 cat >>confdefs.h <<_ACEOF
13168 #define HAVE_DECL_FWRITE_UNLOCKED 1
13169 _ACEOF
13170
13171
13172 else
13173   cat >>confdefs.h <<_ACEOF
13174 #define HAVE_DECL_FWRITE_UNLOCKED 0
13175 _ACEOF
13176
13177
13178 fi
13179
13180
13181
13182
13183       echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13184 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13185 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13186   echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188   cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13194 $ac_includes_default
13195 int
13196 main ()
13197 {
13198 #ifndef getc_unlocked
13199   char *p = (char *) getc_unlocked;
13200 #endif
13201
13202   ;
13203   return 0;
13204 }
13205 _ACEOF
13206 rm -f conftest.$ac_objext
13207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13208   (eval $ac_compile) 2>conftest.er1
13209   ac_status=$?
13210   grep -v '^ *+' conftest.er1 >conftest.err
13211   rm -f conftest.er1
13212   cat conftest.err >&5
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); } &&
13215          { ac_try='test -z "$ac_c_werror_flag"
13216                          || test ! -s conftest.err'
13217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218   (eval $ac_try) 2>&5
13219   ac_status=$?
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); }; } &&
13222          { ac_try='test -s conftest.$ac_objext'
13223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224   (eval $ac_try) 2>&5
13225   ac_status=$?
13226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227   (exit $ac_status); }; }; then
13228   ac_cv_have_decl_getc_unlocked=yes
13229 else
13230   echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13232
13233 ac_cv_have_decl_getc_unlocked=no
13234 fi
13235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13236 fi
13237 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13238 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13239 if test $ac_cv_have_decl_getc_unlocked = yes; then
13240
13241 cat >>confdefs.h <<_ACEOF
13242 #define HAVE_DECL_GETC_UNLOCKED 1
13243 _ACEOF
13244
13245
13246 else
13247   cat >>confdefs.h <<_ACEOF
13248 #define HAVE_DECL_GETC_UNLOCKED 0
13249 _ACEOF
13250
13251
13252 fi
13253
13254
13255
13256
13257       echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
13258 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
13259 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
13260   echo $ECHO_N "(cached) $ECHO_C" >&6
13261 else
13262   cat >conftest.$ac_ext <<_ACEOF
13263 /* confdefs.h.  */
13264 _ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h.  */
13268 $ac_includes_default
13269 int
13270 main ()
13271 {
13272 #ifndef getchar_unlocked
13273   char *p = (char *) getchar_unlocked;
13274 #endif
13275
13276   ;
13277   return 0;
13278 }
13279 _ACEOF
13280 rm -f conftest.$ac_objext
13281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13282   (eval $ac_compile) 2>conftest.er1
13283   ac_status=$?
13284   grep -v '^ *+' conftest.er1 >conftest.err
13285   rm -f conftest.er1
13286   cat conftest.err >&5
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); } &&
13289          { ac_try='test -z "$ac_c_werror_flag"
13290                          || test ! -s conftest.err'
13291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292   (eval $ac_try) 2>&5
13293   ac_status=$?
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); }; } &&
13296          { ac_try='test -s conftest.$ac_objext'
13297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298   (eval $ac_try) 2>&5
13299   ac_status=$?
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); }; }; then
13302   ac_cv_have_decl_getchar_unlocked=yes
13303 else
13304   echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13306
13307 ac_cv_have_decl_getchar_unlocked=no
13308 fi
13309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13310 fi
13311 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
13312 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
13313 if test $ac_cv_have_decl_getchar_unlocked = yes; then
13314
13315 cat >>confdefs.h <<_ACEOF
13316 #define HAVE_DECL_GETCHAR_UNLOCKED 1
13317 _ACEOF
13318
13319
13320 else
13321   cat >>confdefs.h <<_ACEOF
13322 #define HAVE_DECL_GETCHAR_UNLOCKED 0
13323 _ACEOF
13324
13325
13326 fi
13327
13328
13329
13330
13331       echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
13332 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
13333 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
13334   echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336   cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h.  */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h.  */
13342 $ac_includes_default
13343 int
13344 main ()
13345 {
13346 #ifndef putc_unlocked
13347   char *p = (char *) putc_unlocked;
13348 #endif
13349
13350   ;
13351   return 0;
13352 }
13353 _ACEOF
13354 rm -f conftest.$ac_objext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356   (eval $ac_compile) 2>conftest.er1
13357   ac_status=$?
13358   grep -v '^ *+' conftest.er1 >conftest.err
13359   rm -f conftest.er1
13360   cat conftest.err >&5
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); } &&
13363          { ac_try='test -z "$ac_c_werror_flag"
13364                          || test ! -s conftest.err'
13365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366   (eval $ac_try) 2>&5
13367   ac_status=$?
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); }; } &&
13370          { ac_try='test -s conftest.$ac_objext'
13371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372   (eval $ac_try) 2>&5
13373   ac_status=$?
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); }; }; then
13376   ac_cv_have_decl_putc_unlocked=yes
13377 else
13378   echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13380
13381 ac_cv_have_decl_putc_unlocked=no
13382 fi
13383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13384 fi
13385 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
13386 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
13387 if test $ac_cv_have_decl_putc_unlocked = yes; then
13388
13389 cat >>confdefs.h <<_ACEOF
13390 #define HAVE_DECL_PUTC_UNLOCKED 1
13391 _ACEOF
13392
13393
13394 else
13395   cat >>confdefs.h <<_ACEOF
13396 #define HAVE_DECL_PUTC_UNLOCKED 0
13397 _ACEOF
13398
13399
13400 fi
13401
13402
13403
13404
13405       echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
13406 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
13407 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410   cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h.  */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h.  */
13416 $ac_includes_default
13417 int
13418 main ()
13419 {
13420 #ifndef putchar_unlocked
13421   char *p = (char *) putchar_unlocked;
13422 #endif
13423
13424   ;
13425   return 0;
13426 }
13427 _ACEOF
13428 rm -f conftest.$ac_objext
13429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13430   (eval $ac_compile) 2>conftest.er1
13431   ac_status=$?
13432   grep -v '^ *+' conftest.er1 >conftest.err
13433   rm -f conftest.er1
13434   cat conftest.err >&5
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); } &&
13437          { ac_try='test -z "$ac_c_werror_flag"
13438                          || test ! -s conftest.err'
13439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440   (eval $ac_try) 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); }; } &&
13444          { ac_try='test -s conftest.$ac_objext'
13445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446   (eval $ac_try) 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; }; then
13450   ac_cv_have_decl_putchar_unlocked=yes
13451 else
13452   echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455 ac_cv_have_decl_putchar_unlocked=no
13456 fi
13457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13458 fi
13459 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
13460 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
13461 if test $ac_cv_have_decl_putchar_unlocked = yes; then
13462
13463 cat >>confdefs.h <<_ACEOF
13464 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
13465 _ACEOF
13466
13467
13468 else
13469   cat >>confdefs.h <<_ACEOF
13470 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
13471 _ACEOF
13472
13473
13474 fi
13475
13476
13477
13478
13479
13480
13481
13482   :
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530 for ac_func in $gl_func_list
13531 do
13532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13533 echo "$as_me:$LINENO: checking for $ac_func" >&5
13534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13535 if eval "test \"\${$as_ac_var+set}\" = set"; then
13536   echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538   cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h.  */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h.  */
13544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13546 #define $ac_func innocuous_$ac_func
13547
13548 /* System header to define __stub macros and hopefully few prototypes,
13549     which can conflict with char $ac_func (); below.
13550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13551     <limits.h> exists even on freestanding compilers.  */
13552
13553 #ifdef __STDC__
13554 # include <limits.h>
13555 #else
13556 # include <assert.h>
13557 #endif
13558
13559 #undef $ac_func
13560
13561 /* Override any gcc2 internal prototype to avoid an error.  */
13562 #ifdef __cplusplus
13563 extern "C"
13564 {
13565 #endif
13566 /* We use char because int might match the return type of a gcc2
13567    builtin and then its argument prototype would still apply.  */
13568 char $ac_func ();
13569 /* The GNU C library defines this for functions which it implements
13570     to always fail with ENOSYS.  Some functions are actually named
13571     something starting with __ and the normal name is an alias.  */
13572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13573 choke me
13574 #else
13575 char (*f) () = $ac_func;
13576 #endif
13577 #ifdef __cplusplus
13578 }
13579 #endif
13580
13581 int
13582 main ()
13583 {
13584 return f != $ac_func;
13585   ;
13586   return 0;
13587 }
13588 _ACEOF
13589 rm -f conftest.$ac_objext conftest$ac_exeext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13591   (eval $ac_link) 2>conftest.er1
13592   ac_status=$?
13593   grep -v '^ *+' conftest.er1 >conftest.err
13594   rm -f conftest.er1
13595   cat conftest.err >&5
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); } &&
13598          { ac_try='test -z "$ac_c_werror_flag"
13599                          || test ! -s conftest.err'
13600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601   (eval $ac_try) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; } &&
13605          { ac_try='test -s conftest$ac_exeext'
13606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607   (eval $ac_try) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); }; }; then
13611   eval "$as_ac_var=yes"
13612 else
13613   echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13615
13616 eval "$as_ac_var=no"
13617 fi
13618 rm -f conftest.err conftest.$ac_objext \
13619       conftest$ac_exeext conftest.$ac_ext
13620 fi
13621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13623 if test `eval echo '${'$as_ac_var'}'` = yes; then
13624   cat >>confdefs.h <<_ACEOF
13625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13626 _ACEOF
13627
13628 fi
13629 done
13630
13631
13632
13633
13634
13635
13636 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13637 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13638 if test "${ac_cv_struct_tm+set}" = set; then
13639   echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641   cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h.  */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h.  */
13647 #include <sys/types.h>
13648 #include <time.h>
13649
13650 int
13651 main ()
13652 {
13653 struct tm *tp; tp->tm_sec;
13654   ;
13655   return 0;
13656 }
13657 _ACEOF
13658 rm -f conftest.$ac_objext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660   (eval $ac_compile) 2>conftest.er1
13661   ac_status=$?
13662   grep -v '^ *+' conftest.er1 >conftest.err
13663   rm -f conftest.er1
13664   cat conftest.err >&5
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); } &&
13667          { ac_try='test -z "$ac_c_werror_flag"
13668                          || test ! -s conftest.err'
13669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670   (eval $ac_try) 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); }; } &&
13674          { ac_try='test -s conftest.$ac_objext'
13675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676   (eval $ac_try) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; }; then
13680   ac_cv_struct_tm=time.h
13681 else
13682   echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 ac_cv_struct_tm=sys/time.h
13686 fi
13687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13688 fi
13689 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13690 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13691 if test $ac_cv_struct_tm = sys/time.h; then
13692
13693 cat >>confdefs.h <<\_ACEOF
13694 #define TM_IN_SYS_TIME 1
13695 _ACEOF
13696
13697 fi
13698
13699
13700  echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
13701 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
13702 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
13703   echo $ECHO_N "(cached) $ECHO_C" >&6
13704 else
13705   cat >conftest.$ac_ext <<_ACEOF
13706 /* confdefs.h.  */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h.  */
13711 #include <time.h>
13712
13713 int
13714 main ()
13715 {
13716 static struct tm ac_aggr;
13717 if (ac_aggr.tm_gmtoff)
13718 return 0;
13719   ;
13720   return 0;
13721 }
13722 _ACEOF
13723 rm -f conftest.$ac_objext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13725   (eval $ac_compile) 2>conftest.er1
13726   ac_status=$?
13727   grep -v '^ *+' conftest.er1 >conftest.err
13728   rm -f conftest.er1
13729   cat conftest.err >&5
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); } &&
13732          { ac_try='test -z "$ac_c_werror_flag"
13733                          || test ! -s conftest.err'
13734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735   (eval $ac_try) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); }; } &&
13739          { ac_try='test -s conftest.$ac_objext'
13740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741   (eval $ac_try) 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; }; then
13745   ac_cv_member_struct_tm_tm_gmtoff=yes
13746 else
13747   echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13749
13750 cat >conftest.$ac_ext <<_ACEOF
13751 /* confdefs.h.  */
13752 _ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h.  */
13756 #include <time.h>
13757
13758 int
13759 main ()
13760 {
13761 static struct tm ac_aggr;
13762 if (sizeof ac_aggr.tm_gmtoff)
13763 return 0;
13764   ;
13765   return 0;
13766 }
13767 _ACEOF
13768 rm -f conftest.$ac_objext
13769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13770   (eval $ac_compile) 2>conftest.er1
13771   ac_status=$?
13772   grep -v '^ *+' conftest.er1 >conftest.err
13773   rm -f conftest.er1
13774   cat conftest.err >&5
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); } &&
13777          { ac_try='test -z "$ac_c_werror_flag"
13778                          || test ! -s conftest.err'
13779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780   (eval $ac_try) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; } &&
13784          { ac_try='test -s conftest.$ac_objext'
13785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786   (eval $ac_try) 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; }; then
13790   ac_cv_member_struct_tm_tm_gmtoff=yes
13791 else
13792   echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13794
13795 ac_cv_member_struct_tm_tm_gmtoff=no
13796 fi
13797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13798 fi
13799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13800 fi
13801 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
13802 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
13803 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
13804
13805 cat >>confdefs.h <<\_ACEOF
13806 #define HAVE_TM_GMTOFF 1
13807 _ACEOF
13808
13809 fi
13810
13811
13812
13813
13814   echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
13815 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
13816 if test "${gl_cv_func_tzset_clobber+set}" = set; then
13817   echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819
13820   if test "$cross_compiling" = yes; then
13821   gl_cv_func_tzset_clobber=yes
13822 else
13823   cat >conftest.$ac_ext <<_ACEOF
13824 /* confdefs.h.  */
13825 _ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h.  */
13829
13830 #if TIME_WITH_SYS_TIME
13831 # include <sys/time.h>
13832 # include <time.h>
13833 #else
13834 # if HAVE_SYS_TIME_H
13835 #  include <sys/time.h>
13836 # else
13837 #  include <time.h>
13838 # endif
13839 #endif
13840 #include <stdlib.h>
13841
13842 int
13843 main ()
13844 {
13845   time_t t1 = 853958121;
13846   struct tm *p, s;
13847   putenv ("TZ=GMT0");
13848   p = localtime (&t1);
13849   s = *p;
13850   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
13851   tzset ();
13852   exit (p->tm_year != s.tm_year
13853         || p->tm_mon != s.tm_mon
13854         || p->tm_mday != s.tm_mday
13855         || p->tm_hour != s.tm_hour
13856         || p->tm_min != s.tm_min
13857         || p->tm_sec != s.tm_sec);
13858 }
13859
13860 _ACEOF
13861 rm -f conftest$ac_exeext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13863   (eval $ac_link) 2>&5
13864   ac_status=$?
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868   (eval $ac_try) 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; }; then
13872   gl_cv_func_tzset_clobber=no
13873 else
13874   echo "$as_me: program exited with status $ac_status" >&5
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13877
13878 ( exit $ac_status )
13879 gl_cv_func_tzset_clobber=yes
13880 fi
13881 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13882 fi
13883 fi
13884 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
13885 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
13886
13887
13888 cat >>confdefs.h <<\_ACEOF
13889 #define HAVE_RUN_TZSET_TEST 1
13890 _ACEOF
13891
13892
13893   if test $gl_cv_func_tzset_clobber = yes; then
13894
13895   case $LIBOBJS in
13896     "gettimeofday.$ac_objext"   | \
13897   *" gettimeofday.$ac_objext"   | \
13898     "gettimeofday.$ac_objext "* | \
13899   *" gettimeofday.$ac_objext "* ) ;;
13900   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
13901 esac
13902
13903
13904 cat >>confdefs.h <<\_ACEOF
13905 #define gmtime rpl_gmtime
13906 _ACEOF
13907
13908
13909 cat >>confdefs.h <<\_ACEOF
13910 #define localtime rpl_localtime
13911 _ACEOF
13912
13913
13914
13915
13916 cat >>confdefs.h <<\_ACEOF
13917 #define tzset rpl_tzset
13918 _ACEOF
13919
13920
13921 cat >>confdefs.h <<\_ACEOF
13922 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
13923 _ACEOF
13924
13925   fi
13926
13927
13928
13929
13930 for ac_func in strftime
13931 do
13932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13933 echo "$as_me:$LINENO: checking for $ac_func" >&5
13934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13935 if eval "test \"\${$as_ac_var+set}\" = set"; then
13936   echo $ECHO_N "(cached) $ECHO_C" >&6
13937 else
13938   cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h.  */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h.  */
13944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13946 #define $ac_func innocuous_$ac_func
13947
13948 /* System header to define __stub macros and hopefully few prototypes,
13949     which can conflict with char $ac_func (); below.
13950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13951     <limits.h> exists even on freestanding compilers.  */
13952
13953 #ifdef __STDC__
13954 # include <limits.h>
13955 #else
13956 # include <assert.h>
13957 #endif
13958
13959 #undef $ac_func
13960
13961 /* Override any gcc2 internal prototype to avoid an error.  */
13962 #ifdef __cplusplus
13963 extern "C"
13964 {
13965 #endif
13966 /* We use char because int might match the return type of a gcc2
13967    builtin and then its argument prototype would still apply.  */
13968 char $ac_func ();
13969 /* The GNU C library defines this for functions which it implements
13970     to always fail with ENOSYS.  Some functions are actually named
13971     something starting with __ and the normal name is an alias.  */
13972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13973 choke me
13974 #else
13975 char (*f) () = $ac_func;
13976 #endif
13977 #ifdef __cplusplus
13978 }
13979 #endif
13980
13981 int
13982 main ()
13983 {
13984 return f != $ac_func;
13985   ;
13986   return 0;
13987 }
13988 _ACEOF
13989 rm -f conftest.$ac_objext conftest$ac_exeext
13990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13991   (eval $ac_link) 2>conftest.er1
13992   ac_status=$?
13993   grep -v '^ *+' conftest.er1 >conftest.err
13994   rm -f conftest.er1
13995   cat conftest.err >&5
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); } &&
13998          { ac_try='test -z "$ac_c_werror_flag"
13999                          || test ! -s conftest.err'
14000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001   (eval $ac_try) 2>&5
14002   ac_status=$?
14003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004   (exit $ac_status); }; } &&
14005          { ac_try='test -s conftest$ac_exeext'
14006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007   (eval $ac_try) 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); }; }; then
14011   eval "$as_ac_var=yes"
14012 else
14013   echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14015
14016 eval "$as_ac_var=no"
14017 fi
14018 rm -f conftest.err conftest.$ac_objext \
14019       conftest$ac_exeext conftest.$ac_ext
14020 fi
14021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14023 if test `eval echo '${'$as_ac_var'}'` = yes; then
14024   cat >>confdefs.h <<_ACEOF
14025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14026 _ACEOF
14027
14028 else
14029   # strftime is in -lintl on SCO UNIX.
14030 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14031 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14032 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035   ac_check_lib_save_LIBS=$LIBS
14036 LIBS="-lintl  $LIBS"
14037 cat >conftest.$ac_ext <<_ACEOF
14038 /* confdefs.h.  */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h.  */
14043
14044 /* Override any gcc2 internal prototype to avoid an error.  */
14045 #ifdef __cplusplus
14046 extern "C"
14047 #endif
14048 /* We use char because int might match the return type of a gcc2
14049    builtin and then its argument prototype would still apply.  */
14050 char strftime ();
14051 int
14052 main ()
14053 {
14054 strftime ();
14055   ;
14056   return 0;
14057 }
14058 _ACEOF
14059 rm -f conftest.$ac_objext conftest$ac_exeext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14061   (eval $ac_link) 2>conftest.er1
14062   ac_status=$?
14063   grep -v '^ *+' conftest.er1 >conftest.err
14064   rm -f conftest.er1
14065   cat conftest.err >&5
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); } &&
14068          { ac_try='test -z "$ac_c_werror_flag"
14069                          || test ! -s conftest.err'
14070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071   (eval $ac_try) 2>&5
14072   ac_status=$?
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); }; } &&
14075          { ac_try='test -s conftest$ac_exeext'
14076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077   (eval $ac_try) 2>&5
14078   ac_status=$?
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); }; }; then
14081   ac_cv_lib_intl_strftime=yes
14082 else
14083   echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14085
14086 ac_cv_lib_intl_strftime=no
14087 fi
14088 rm -f conftest.err conftest.$ac_objext \
14089       conftest$ac_exeext conftest.$ac_ext
14090 LIBS=$ac_check_lib_save_LIBS
14091 fi
14092 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14093 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14094 if test $ac_cv_lib_intl_strftime = yes; then
14095   cat >>confdefs.h <<\_ACEOF
14096 #define HAVE_STRFTIME 1
14097 _ACEOF
14098
14099 LIBS="-lintl $LIBS"
14100 fi
14101
14102 fi
14103 done
14104
14105
14106
14107   :
14108
14109
14110
14111
14112
14113
14114 for ac_func in tzset
14115 do
14116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14117 echo "$as_me:$LINENO: checking for $ac_func" >&5
14118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14119 if eval "test \"\${$as_ac_var+set}\" = set"; then
14120   echo $ECHO_N "(cached) $ECHO_C" >&6
14121 else
14122   cat >conftest.$ac_ext <<_ACEOF
14123 /* confdefs.h.  */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h.  */
14128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14130 #define $ac_func innocuous_$ac_func
14131
14132 /* System header to define __stub macros and hopefully few prototypes,
14133     which can conflict with char $ac_func (); below.
14134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14135     <limits.h> exists even on freestanding compilers.  */
14136
14137 #ifdef __STDC__
14138 # include <limits.h>
14139 #else
14140 # include <assert.h>
14141 #endif
14142
14143 #undef $ac_func
14144
14145 /* Override any gcc2 internal prototype to avoid an error.  */
14146 #ifdef __cplusplus
14147 extern "C"
14148 {
14149 #endif
14150 /* We use char because int might match the return type of a gcc2
14151    builtin and then its argument prototype would still apply.  */
14152 char $ac_func ();
14153 /* The GNU C library defines this for functions which it implements
14154     to always fail with ENOSYS.  Some functions are actually named
14155     something starting with __ and the normal name is an alias.  */
14156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14157 choke me
14158 #else
14159 char (*f) () = $ac_func;
14160 #endif
14161 #ifdef __cplusplus
14162 }
14163 #endif
14164
14165 int
14166 main ()
14167 {
14168 return f != $ac_func;
14169   ;
14170   return 0;
14171 }
14172 _ACEOF
14173 rm -f conftest.$ac_objext conftest$ac_exeext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14175   (eval $ac_link) 2>conftest.er1
14176   ac_status=$?
14177   grep -v '^ *+' conftest.er1 >conftest.err
14178   rm -f conftest.er1
14179   cat conftest.err >&5
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); } &&
14182          { ac_try='test -z "$ac_c_werror_flag"
14183                          || test ! -s conftest.err'
14184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185   (eval $ac_try) 2>&5
14186   ac_status=$?
14187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188   (exit $ac_status); }; } &&
14189          { ac_try='test -s conftest$ac_exeext'
14190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191   (eval $ac_try) 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); }; }; then
14195   eval "$as_ac_var=yes"
14196 else
14197   echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14199
14200 eval "$as_ac_var=no"
14201 fi
14202 rm -f conftest.err conftest.$ac_objext \
14203       conftest$ac_exeext conftest.$ac_ext
14204 fi
14205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14207 if test `eval echo '${'$as_ac_var'}'` = yes; then
14208   cat >>confdefs.h <<_ACEOF
14209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14210 _ACEOF
14211
14212 fi
14213 done
14214
14215
14216  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
14217  echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14218 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14219 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14220   echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222   cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h.  */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h.  */
14228 #include <sys/types.h>
14229 #include <$ac_cv_struct_tm>
14230
14231
14232 int
14233 main ()
14234 {
14235 static struct tm ac_aggr;
14236 if (ac_aggr.tm_zone)
14237 return 0;
14238   ;
14239   return 0;
14240 }
14241 _ACEOF
14242 rm -f conftest.$ac_objext
14243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14244   (eval $ac_compile) 2>conftest.er1
14245   ac_status=$?
14246   grep -v '^ *+' conftest.er1 >conftest.err
14247   rm -f conftest.er1
14248   cat conftest.err >&5
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); } &&
14251          { ac_try='test -z "$ac_c_werror_flag"
14252                          || test ! -s conftest.err'
14253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254   (eval $ac_try) 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; } &&
14258          { ac_try='test -s conftest.$ac_objext'
14259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260   (eval $ac_try) 2>&5
14261   ac_status=$?
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); }; }; then
14264   ac_cv_member_struct_tm_tm_zone=yes
14265 else
14266   echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269 cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h.  */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h.  */
14275 #include <sys/types.h>
14276 #include <$ac_cv_struct_tm>
14277
14278
14279 int
14280 main ()
14281 {
14282 static struct tm ac_aggr;
14283 if (sizeof ac_aggr.tm_zone)
14284 return 0;
14285   ;
14286   return 0;
14287 }
14288 _ACEOF
14289 rm -f conftest.$ac_objext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14291   (eval $ac_compile) 2>conftest.er1
14292   ac_status=$?
14293   grep -v '^ *+' conftest.er1 >conftest.err
14294   rm -f conftest.er1
14295   cat conftest.err >&5
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); } &&
14298          { ac_try='test -z "$ac_c_werror_flag"
14299                          || test ! -s conftest.err'
14300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301   (eval $ac_try) 2>&5
14302   ac_status=$?
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); }; } &&
14305          { ac_try='test -s conftest.$ac_objext'
14306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307   (eval $ac_try) 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); }; }; then
14311   ac_cv_member_struct_tm_tm_zone=yes
14312 else
14313   echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 ac_cv_member_struct_tm_tm_zone=no
14317 fi
14318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14319 fi
14320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14321 fi
14322 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14323 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14324 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14325
14326 cat >>confdefs.h <<_ACEOF
14327 #define HAVE_STRUCT_TM_TM_ZONE 1
14328 _ACEOF
14329
14330
14331 fi
14332
14333 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14334
14335 cat >>confdefs.h <<\_ACEOF
14336 #define HAVE_TM_ZONE 1
14337 _ACEOF
14338
14339 else
14340   echo "$as_me:$LINENO: checking for tzname" >&5
14341 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14342 if test "${ac_cv_var_tzname+set}" = set; then
14343   echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345   cat >conftest.$ac_ext <<_ACEOF
14346 /* confdefs.h.  */
14347 _ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h.  */
14351 #include <time.h>
14352 #ifndef tzname /* For SGI.  */
14353 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
14354 #endif
14355
14356 int
14357 main ()
14358 {
14359 atoi(*tzname);
14360   ;
14361   return 0;
14362 }
14363 _ACEOF
14364 rm -f conftest.$ac_objext conftest$ac_exeext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14366   (eval $ac_link) 2>conftest.er1
14367   ac_status=$?
14368   grep -v '^ *+' conftest.er1 >conftest.err
14369   rm -f conftest.er1
14370   cat conftest.err >&5
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } &&
14373          { ac_try='test -z "$ac_c_werror_flag"
14374                          || test ! -s conftest.err'
14375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376   (eval $ac_try) 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; } &&
14380          { ac_try='test -s conftest$ac_exeext'
14381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382   (eval $ac_try) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); }; }; then
14386   ac_cv_var_tzname=yes
14387 else
14388   echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14390
14391 ac_cv_var_tzname=no
14392 fi
14393 rm -f conftest.err conftest.$ac_objext \
14394       conftest$ac_exeext conftest.$ac_ext
14395 fi
14396 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14397 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14398   if test $ac_cv_var_tzname = yes; then
14399
14400 cat >>confdefs.h <<\_ACEOF
14401 #define HAVE_TZNAME 1
14402 _ACEOF
14403
14404   fi
14405 fi
14406
14407
14408
14409
14410 for ac_func in mblen mbrlen
14411 do
14412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14413 echo "$as_me:$LINENO: checking for $ac_func" >&5
14414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14415 if eval "test \"\${$as_ac_var+set}\" = set"; then
14416   echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418   cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h.  */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h.  */
14424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14426 #define $ac_func innocuous_$ac_func
14427
14428 /* System header to define __stub macros and hopefully few prototypes,
14429     which can conflict with char $ac_func (); below.
14430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14431     <limits.h> exists even on freestanding compilers.  */
14432
14433 #ifdef __STDC__
14434 # include <limits.h>
14435 #else
14436 # include <assert.h>
14437 #endif
14438
14439 #undef $ac_func
14440
14441 /* Override any gcc2 internal prototype to avoid an error.  */
14442 #ifdef __cplusplus
14443 extern "C"
14444 {
14445 #endif
14446 /* We use char because int might match the return type of a gcc2
14447    builtin and then its argument prototype would still apply.  */
14448 char $ac_func ();
14449 /* The GNU C library defines this for functions which it implements
14450     to always fail with ENOSYS.  Some functions are actually named
14451     something starting with __ and the normal name is an alias.  */
14452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14453 choke me
14454 #else
14455 char (*f) () = $ac_func;
14456 #endif
14457 #ifdef __cplusplus
14458 }
14459 #endif
14460
14461 int
14462 main ()
14463 {
14464 return f != $ac_func;
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest.$ac_objext conftest$ac_exeext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14471   (eval $ac_link) 2>conftest.er1
14472   ac_status=$?
14473   grep -v '^ *+' conftest.er1 >conftest.err
14474   rm -f conftest.er1
14475   cat conftest.err >&5
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); } &&
14478          { ac_try='test -z "$ac_c_werror_flag"
14479                          || test ! -s conftest.err'
14480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481   (eval $ac_try) 2>&5
14482   ac_status=$?
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); }; } &&
14485          { ac_try='test -s conftest$ac_exeext'
14486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487   (eval $ac_try) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; }; then
14491   eval "$as_ac_var=yes"
14492 else
14493   echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14495
14496 eval "$as_ac_var=no"
14497 fi
14498 rm -f conftest.err conftest.$ac_objext \
14499       conftest$ac_exeext conftest.$ac_ext
14500 fi
14501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14503 if test `eval echo '${'$as_ac_var'}'` = yes; then
14504   cat >>confdefs.h <<_ACEOF
14505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14506 _ACEOF
14507
14508 fi
14509 done
14510
14511  echo "$as_me:$LINENO: checking for mbstate_t" >&5
14512 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14513 if test "${ac_cv_type_mbstate_t+set}" = set; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516   cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h.  */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h.  */
14522 $ac_includes_default
14523 #           include <wchar.h>
14524 int
14525 main ()
14526 {
14527 mbstate_t x; return sizeof x;
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14534   (eval $ac_compile) 2>conftest.er1
14535   ac_status=$?
14536   grep -v '^ *+' conftest.er1 >conftest.err
14537   rm -f conftest.er1
14538   cat conftest.err >&5
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } &&
14541          { ac_try='test -z "$ac_c_werror_flag"
14542                          || test ! -s conftest.err'
14543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544   (eval $ac_try) 2>&5
14545   ac_status=$?
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); }; } &&
14548          { ac_try='test -s conftest.$ac_objext'
14549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550   (eval $ac_try) 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; }; then
14554   ac_cv_type_mbstate_t=yes
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559 ac_cv_type_mbstate_t=no
14560 fi
14561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14562 fi
14563 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14564 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
14565    if test $ac_cv_type_mbstate_t = yes; then
14566
14567 cat >>confdefs.h <<\_ACEOF
14568 #define HAVE_MBSTATE_T 1
14569 _ACEOF
14570
14571    else
14572
14573 cat >>confdefs.h <<\_ACEOF
14574 #define mbstate_t int
14575 _ACEOF
14576
14577    fi
14578
14579
14580
14581
14582
14583
14584   :
14585
14586
14587
14588
14589
14590
14591 cat >>confdefs.h <<\_ACEOF
14592 #define my_strftime nstrftime
14593 _ACEOF
14594
14595
14596
14597
14598 for ac_func in memmove
14599 do
14600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14601 echo "$as_me:$LINENO: checking for $ac_func" >&5
14602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14603 if eval "test \"\${$as_ac_var+set}\" = set"; then
14604   echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606   cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h.  */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h.  */
14612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14614 #define $ac_func innocuous_$ac_func
14615
14616 /* System header to define __stub macros and hopefully few prototypes,
14617     which can conflict with char $ac_func (); below.
14618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14619     <limits.h> exists even on freestanding compilers.  */
14620
14621 #ifdef __STDC__
14622 # include <limits.h>
14623 #else
14624 # include <assert.h>
14625 #endif
14626
14627 #undef $ac_func
14628
14629 /* Override any gcc2 internal prototype to avoid an error.  */
14630 #ifdef __cplusplus
14631 extern "C"
14632 {
14633 #endif
14634 /* We use char because int might match the return type of a gcc2
14635    builtin and then its argument prototype would still apply.  */
14636 char $ac_func ();
14637 /* The GNU C library defines this for functions which it implements
14638     to always fail with ENOSYS.  Some functions are actually named
14639     something starting with __ and the normal name is an alias.  */
14640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14641 choke me
14642 #else
14643 char (*f) () = $ac_func;
14644 #endif
14645 #ifdef __cplusplus
14646 }
14647 #endif
14648
14649 int
14650 main ()
14651 {
14652 return f != $ac_func;
14653   ;
14654   return 0;
14655 }
14656 _ACEOF
14657 rm -f conftest.$ac_objext conftest$ac_exeext
14658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14659   (eval $ac_link) 2>conftest.er1
14660   ac_status=$?
14661   grep -v '^ *+' conftest.er1 >conftest.err
14662   rm -f conftest.er1
14663   cat conftest.err >&5
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); } &&
14666          { ac_try='test -z "$ac_c_werror_flag"
14667                          || test ! -s conftest.err'
14668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669   (eval $ac_try) 2>&5
14670   ac_status=$?
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); }; } &&
14673          { ac_try='test -s conftest$ac_exeext'
14674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675   (eval $ac_try) 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; }; then
14679   eval "$as_ac_var=yes"
14680 else
14681   echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14683
14684 eval "$as_ac_var=no"
14685 fi
14686 rm -f conftest.err conftest.$ac_objext \
14687       conftest$ac_exeext conftest.$ac_ext
14688 fi
14689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14691 if test `eval echo '${'$as_ac_var'}'` = yes; then
14692   cat >>confdefs.h <<_ACEOF
14693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14694 _ACEOF
14695
14696 else
14697   case $LIBOBJS in
14698     "$ac_func.$ac_objext"   | \
14699   *" $ac_func.$ac_objext"   | \
14700     "$ac_func.$ac_objext "* | \
14701   *" $ac_func.$ac_objext "* ) ;;
14702   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14703 esac
14704
14705 fi
14706 done
14707
14708
14709   if test $ac_cv_func_memmove = no; then
14710
14711   :
14712
14713   fi
14714
14715
14716
14717
14718 for ac_header in stdlib.h sys/time.h unistd.h
14719 do
14720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722   echo "$as_me:$LINENO: checking for $ac_header" >&5
14723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14725   echo $ECHO_N "(cached) $ECHO_C" >&6
14726 fi
14727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14729 else
14730   # Is the header compilable?
14731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14733 cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h.  */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h.  */
14739 $ac_includes_default
14740 #include <$ac_header>
14741 _ACEOF
14742 rm -f conftest.$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744   (eval $ac_compile) 2>conftest.er1
14745   ac_status=$?
14746   grep -v '^ *+' conftest.er1 >conftest.err
14747   rm -f conftest.er1
14748   cat conftest.err >&5
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); } &&
14751          { ac_try='test -z "$ac_c_werror_flag"
14752                          || test ! -s conftest.err'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; } &&
14758          { ac_try='test -s conftest.$ac_objext'
14759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760   (eval $ac_try) 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); }; }; then
14764   ac_header_compiler=yes
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 ac_header_compiler=no
14770 fi
14771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14773 echo "${ECHO_T}$ac_header_compiler" >&6
14774
14775 # Is the header present?
14776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14778 cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h.  */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h.  */
14784 #include <$ac_header>
14785 _ACEOF
14786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14787   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14788   ac_status=$?
14789   grep -v '^ *+' conftest.er1 >conftest.err
14790   rm -f conftest.er1
14791   cat conftest.err >&5
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); } >/dev/null; then
14794   if test -s conftest.err; then
14795     ac_cpp_err=$ac_c_preproc_warn_flag
14796     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14797   else
14798     ac_cpp_err=
14799   fi
14800 else
14801   ac_cpp_err=yes
14802 fi
14803 if test -z "$ac_cpp_err"; then
14804   ac_header_preproc=yes
14805 else
14806   echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14808
14809   ac_header_preproc=no
14810 fi
14811 rm -f conftest.err conftest.$ac_ext
14812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14813 echo "${ECHO_T}$ac_header_preproc" >&6
14814
14815 # So?  What about this header?
14816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14817   yes:no: )
14818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14822     ac_header_preproc=yes
14823     ;;
14824   no:yes:* )
14825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14837     (
14838       cat <<\_ASBOX
14839 ## ------------------------------ ##
14840 ## Report this to bug-cvs@gnu.org ##
14841 ## ------------------------------ ##
14842 _ASBOX
14843     ) |
14844       sed "s/^/$as_me: WARNING:     /" >&2
14845     ;;
14846 esac
14847 echo "$as_me:$LINENO: checking for $ac_header" >&5
14848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14850   echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852   eval "$as_ac_Header=\$ac_header_preproc"
14853 fi
14854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14856
14857 fi
14858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14859   cat >>confdefs.h <<_ACEOF
14860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14861 _ACEOF
14862
14863 fi
14864
14865 done
14866
14867
14868 for ac_func in alarm
14869 do
14870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14871 echo "$as_me:$LINENO: checking for $ac_func" >&5
14872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14873 if eval "test \"\${$as_ac_var+set}\" = set"; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876   cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h.  */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h.  */
14882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14884 #define $ac_func innocuous_$ac_func
14885
14886 /* System header to define __stub macros and hopefully few prototypes,
14887     which can conflict with char $ac_func (); below.
14888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14889     <limits.h> exists even on freestanding compilers.  */
14890
14891 #ifdef __STDC__
14892 # include <limits.h>
14893 #else
14894 # include <assert.h>
14895 #endif
14896
14897 #undef $ac_func
14898
14899 /* Override any gcc2 internal prototype to avoid an error.  */
14900 #ifdef __cplusplus
14901 extern "C"
14902 {
14903 #endif
14904 /* We use char because int might match the return type of a gcc2
14905    builtin and then its argument prototype would still apply.  */
14906 char $ac_func ();
14907 /* The GNU C library defines this for functions which it implements
14908     to always fail with ENOSYS.  Some functions are actually named
14909     something starting with __ and the normal name is an alias.  */
14910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14911 choke me
14912 #else
14913 char (*f) () = $ac_func;
14914 #endif
14915 #ifdef __cplusplus
14916 }
14917 #endif
14918
14919 int
14920 main ()
14921 {
14922 return f != $ac_func;
14923   ;
14924   return 0;
14925 }
14926 _ACEOF
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14929   (eval $ac_link) 2>conftest.er1
14930   ac_status=$?
14931   grep -v '^ *+' conftest.er1 >conftest.err
14932   rm -f conftest.er1
14933   cat conftest.err >&5
14934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935   (exit $ac_status); } &&
14936          { ac_try='test -z "$ac_c_werror_flag"
14937                          || test ! -s conftest.err'
14938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939   (eval $ac_try) 2>&5
14940   ac_status=$?
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); }; } &&
14943          { ac_try='test -s conftest$ac_exeext'
14944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945   (eval $ac_try) 2>&5
14946   ac_status=$?
14947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948   (exit $ac_status); }; }; then
14949   eval "$as_ac_var=yes"
14950 else
14951   echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954 eval "$as_ac_var=no"
14955 fi
14956 rm -f conftest.err conftest.$ac_objext \
14957       conftest$ac_exeext conftest.$ac_ext
14958 fi
14959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14961 if test `eval echo '${'$as_ac_var'}'` = yes; then
14962   cat >>confdefs.h <<_ACEOF
14963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14964 _ACEOF
14965
14966 fi
14967 done
14968
14969 echo "$as_me:$LINENO: checking for working mktime" >&5
14970 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14971 if test "${ac_cv_func_working_mktime+set}" = set; then
14972   echo $ECHO_N "(cached) $ECHO_C" >&6
14973 else
14974   if test "$cross_compiling" = yes; then
14975   ac_cv_func_working_mktime=no
14976 else
14977   cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h.  */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h.  */
14983 /* Test program from Paul Eggert and Tony Leneis.  */
14984 #if TIME_WITH_SYS_TIME
14985 # include <sys/time.h>
14986 # include <time.h>
14987 #else
14988 # if HAVE_SYS_TIME_H
14989 #  include <sys/time.h>
14990 # else
14991 #  include <time.h>
14992 # endif
14993 #endif
14994
14995 #if HAVE_STDLIB_H
14996 # include <stdlib.h>
14997 #endif
14998
14999 #if HAVE_UNISTD_H
15000 # include <unistd.h>
15001 #endif
15002
15003 #if !HAVE_ALARM
15004 # define alarm(X) /* empty */
15005 #endif
15006
15007 /* Work around redefinition to rpl_putenv by other config tests.  */
15008 #undef putenv
15009
15010 static time_t time_t_max;
15011 static time_t time_t_min;
15012
15013 /* Values we'll use to set the TZ environment variable.  */
15014 static char *tz_strings[] = {
15015   (char *) 0, "TZ=GMT0", "TZ=JST-9",
15016   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15017 };
15018 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15019
15020 /* Fail if mktime fails to convert a date in the spring-forward gap.
15021    Based on a problem report from Andreas Jaeger.  */
15022 static void
15023 spring_forward_gap ()
15024 {
15025   /* glibc (up to about 1998-10-07) failed this test. */
15026   struct tm tm;
15027
15028   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15029      instead of "TZ=America/Vancouver" in order to detect the bug even
15030      on systems that don't support the Olson extension, or don't have the
15031      full zoneinfo tables installed.  */
15032   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15033
15034   tm.tm_year = 98;
15035   tm.tm_mon = 3;
15036   tm.tm_mday = 5;
15037   tm.tm_hour = 2;
15038   tm.tm_min = 0;
15039   tm.tm_sec = 0;
15040   tm.tm_isdst = -1;
15041   if (mktime (&tm) == (time_t)-1)
15042     exit (1);
15043 }
15044
15045 static void
15046 mktime_test1 (now)
15047      time_t now;
15048 {
15049   struct tm *lt;
15050   if ((lt = localtime (&now)) && mktime (lt) != now)
15051     exit (1);
15052 }
15053
15054 static void
15055 mktime_test (now)
15056      time_t now;
15057 {
15058   mktime_test1 (now);
15059   mktime_test1 ((time_t) (time_t_max - now));
15060   mktime_test1 ((time_t) (time_t_min + now));
15061 }
15062
15063 static void
15064 irix_6_4_bug ()
15065 {
15066   /* Based on code from Ariel Faigon.  */
15067   struct tm tm;
15068   tm.tm_year = 96;
15069   tm.tm_mon = 3;
15070   tm.tm_mday = 0;
15071   tm.tm_hour = 0;
15072   tm.tm_min = 0;
15073   tm.tm_sec = 0;
15074   tm.tm_isdst = -1;
15075   mktime (&tm);
15076   if (tm.tm_mon != 2 || tm.tm_mday != 31)
15077     exit (1);
15078 }
15079
15080 static void
15081 bigtime_test (j)
15082      int j;
15083 {
15084   struct tm tm;
15085   time_t now;
15086   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15087   now = mktime (&tm);
15088   if (now != (time_t) -1)
15089     {
15090       struct tm *lt = localtime (&now);
15091       if (! (lt
15092              && lt->tm_year == tm.tm_year
15093              && lt->tm_mon == tm.tm_mon
15094              && lt->tm_mday == tm.tm_mday
15095              && lt->tm_hour == tm.tm_hour
15096              && lt->tm_min == tm.tm_min
15097              && lt->tm_sec == tm.tm_sec
15098              && lt->tm_yday == tm.tm_yday
15099              && lt->tm_wday == tm.tm_wday
15100              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15101                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15102         exit (1);
15103     }
15104 }
15105
15106 int
15107 main ()
15108 {
15109   time_t t, delta;
15110   int i, j;
15111
15112   /* This test makes some buggy mktime implementations loop.
15113      Give up after 60 seconds; a mktime slower than that
15114      isn't worth using anyway.  */
15115   alarm (60);
15116
15117   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15118     continue;
15119   time_t_max--;
15120   if ((time_t) -1 < 0)
15121     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15122       continue;
15123   delta = time_t_max / 997; /* a suitable prime number */
15124   for (i = 0; i < N_STRINGS; i++)
15125     {
15126       if (tz_strings[i])
15127         putenv (tz_strings[i]);
15128
15129       for (t = 0; t <= time_t_max - delta; t += delta)
15130         mktime_test (t);
15131       mktime_test ((time_t) 1);
15132       mktime_test ((time_t) (60 * 60));
15133       mktime_test ((time_t) (60 * 60 * 24));
15134
15135       for (j = 1; 0 < j; j *= 2)
15136         bigtime_test (j);
15137       bigtime_test (j - 1);
15138     }
15139   irix_6_4_bug ();
15140   spring_forward_gap ();
15141   exit (0);
15142 }
15143 _ACEOF
15144 rm -f conftest$ac_exeext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15146   (eval $ac_link) 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151   (eval $ac_try) 2>&5
15152   ac_status=$?
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); }; }; then
15155   ac_cv_func_working_mktime=yes
15156 else
15157   echo "$as_me: program exited with status $ac_status" >&5
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15160
15161 ( exit $ac_status )
15162 ac_cv_func_working_mktime=no
15163 fi
15164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15165 fi
15166 fi
15167 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15168 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15169 if test $ac_cv_func_working_mktime = no; then
15170   case $LIBOBJS in
15171     "mktime.$ac_objext"   | \
15172   *" mktime.$ac_objext"   | \
15173     "mktime.$ac_objext "* | \
15174   *" mktime.$ac_objext "* ) ;;
15175   *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15176 esac
15177
15178 fi
15179
15180
15181
15182   if test $ac_cv_func_working_mktime = no; then
15183
15184 cat >>confdefs.h <<\_ACEOF
15185 #define mktime rpl_mktime
15186 _ACEOF
15187
15188     :
15189   fi
15190
15191
15192  nanosleep_save_libs=$LIBS
15193
15194  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
15195  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
15196  echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15197 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15198 if test "${ac_cv_search_nanosleep+set}" = set; then
15199   echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201   ac_func_search_save_LIBS=$LIBS
15202 ac_cv_search_nanosleep=no
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h.  */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h.  */
15209
15210 /* Override any gcc2 internal prototype to avoid an error.  */
15211 #ifdef __cplusplus
15212 extern "C"
15213 #endif
15214 /* We use char because int might match the return type of a gcc2
15215    builtin and then its argument prototype would still apply.  */
15216 char nanosleep ();
15217 int
15218 main ()
15219 {
15220 nanosleep ();
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 rm -f conftest.$ac_objext conftest$ac_exeext
15226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15227   (eval $ac_link) 2>conftest.er1
15228   ac_status=$?
15229   grep -v '^ *+' conftest.er1 >conftest.err
15230   rm -f conftest.er1
15231   cat conftest.err >&5
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); } &&
15234          { ac_try='test -z "$ac_c_werror_flag"
15235                          || test ! -s conftest.err'
15236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237   (eval $ac_try) 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); }; } &&
15241          { ac_try='test -s conftest$ac_exeext'
15242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243   (eval $ac_try) 2>&5
15244   ac_status=$?
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); }; }; then
15247   ac_cv_search_nanosleep="none required"
15248 else
15249   echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15251
15252 fi
15253 rm -f conftest.err conftest.$ac_objext \
15254       conftest$ac_exeext conftest.$ac_ext
15255 if test "$ac_cv_search_nanosleep" = no; then
15256   for ac_lib in rt posix4; do
15257     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15258     cat >conftest.$ac_ext <<_ACEOF
15259 /* confdefs.h.  */
15260 _ACEOF
15261 cat confdefs.h >>conftest.$ac_ext
15262 cat >>conftest.$ac_ext <<_ACEOF
15263 /* end confdefs.h.  */
15264
15265 /* Override any gcc2 internal prototype to avoid an error.  */
15266 #ifdef __cplusplus
15267 extern "C"
15268 #endif
15269 /* We use char because int might match the return type of a gcc2
15270    builtin and then its argument prototype would still apply.  */
15271 char nanosleep ();
15272 int
15273 main ()
15274 {
15275 nanosleep ();
15276   ;
15277   return 0;
15278 }
15279 _ACEOF
15280 rm -f conftest.$ac_objext conftest$ac_exeext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15282   (eval $ac_link) 2>conftest.er1
15283   ac_status=$?
15284   grep -v '^ *+' conftest.er1 >conftest.err
15285   rm -f conftest.er1
15286   cat conftest.err >&5
15287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288   (exit $ac_status); } &&
15289          { ac_try='test -z "$ac_c_werror_flag"
15290                          || test ! -s conftest.err'
15291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292   (eval $ac_try) 2>&5
15293   ac_status=$?
15294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295   (exit $ac_status); }; } &&
15296          { ac_try='test -s conftest$ac_exeext'
15297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298   (eval $ac_try) 2>&5
15299   ac_status=$?
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); }; }; then
15302   ac_cv_search_nanosleep="-l$ac_lib"
15303 break
15304 else
15305   echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15307
15308 fi
15309 rm -f conftest.err conftest.$ac_objext \
15310       conftest$ac_exeext conftest.$ac_ext
15311   done
15312 fi
15313 LIBS=$ac_func_search_save_LIBS
15314 fi
15315 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15316 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15317 if test "$ac_cv_search_nanosleep" != no; then
15318   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15319   test "$ac_cv_search_nanosleep" = "none required" ||
15320                  LIB_NANOSLEEP=$ac_cv_search_nanosleep
15321 fi
15322
15323
15324
15325  echo "$as_me:$LINENO: checking whether nanosleep works" >&5
15326 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
15327 if test "${jm_cv_func_nanosleep_works+set}" = set; then
15328   echo $ECHO_N "(cached) $ECHO_C" >&6
15329 else
15330
15331
15332
15333   :
15334
15335
15336
15337
15338
15339    if test "$cross_compiling" = yes; then
15340          jm_cv_func_nanosleep_works=no
15341 else
15342   cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h.  */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h.  */
15348
15349 #   if TIME_WITH_SYS_TIME
15350 #    include <sys/time.h>
15351 #    include <time.h>
15352 #   else
15353 #    if HAVE_SYS_TIME_H
15354 #     include <sys/time.h>
15355 #    else
15356 #     include <time.h>
15357 #    endif
15358 #   endif
15359
15360     int
15361     main ()
15362     {
15363       struct timespec ts_sleep, ts_remaining;
15364       ts_sleep.tv_sec = 0;
15365       ts_sleep.tv_nsec = 1;
15366       exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
15367     }
15368
15369 _ACEOF
15370 rm -f conftest$ac_exeext
15371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15372   (eval $ac_link) 2>&5
15373   ac_status=$?
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377   (eval $ac_try) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); }; }; then
15381   jm_cv_func_nanosleep_works=yes
15382 else
15383   echo "$as_me: program exited with status $ac_status" >&5
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15386
15387 ( exit $ac_status )
15388 jm_cv_func_nanosleep_works=no
15389 fi
15390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15391 fi
15392
15393 fi
15394 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
15395 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
15396   if test $jm_cv_func_nanosleep_works = no; then
15397     case $LIBOBJS in
15398     "nanosleep.$ac_objext"   | \
15399   *" nanosleep.$ac_objext"   | \
15400     "nanosleep.$ac_objext "* | \
15401   *" nanosleep.$ac_objext "* ) ;;
15402   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" ;;
15403 esac
15404
15405
15406 cat >>confdefs.h <<\_ACEOF
15407 #define nanosleep rpl_nanosleep
15408 _ACEOF
15409
15410
15411
15412   :
15413
15414
15415
15416
15417
15418
15419   fi
15420
15421  LIBS=$nanosleep_save_libs
15422
15423
15424
15425 for ac_func in strerror
15426 do
15427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15428 echo "$as_me:$LINENO: checking for $ac_func" >&5
15429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15430 if eval "test \"\${$as_ac_var+set}\" = set"; then
15431   echo $ECHO_N "(cached) $ECHO_C" >&6
15432 else
15433   cat >conftest.$ac_ext <<_ACEOF
15434 /* confdefs.h.  */
15435 _ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h.  */
15439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15441 #define $ac_func innocuous_$ac_func
15442
15443 /* System header to define __stub macros and hopefully few prototypes,
15444     which can conflict with char $ac_func (); below.
15445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15446     <limits.h> exists even on freestanding compilers.  */
15447
15448 #ifdef __STDC__
15449 # include <limits.h>
15450 #else
15451 # include <assert.h>
15452 #endif
15453
15454 #undef $ac_func
15455
15456 /* Override any gcc2 internal prototype to avoid an error.  */
15457 #ifdef __cplusplus
15458 extern "C"
15459 {
15460 #endif
15461 /* We use char because int might match the return type of a gcc2
15462    builtin and then its argument prototype would still apply.  */
15463 char $ac_func ();
15464 /* The GNU C library defines this for functions which it implements
15465     to always fail with ENOSYS.  Some functions are actually named
15466     something starting with __ and the normal name is an alias.  */
15467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15468 choke me
15469 #else
15470 char (*f) () = $ac_func;
15471 #endif
15472 #ifdef __cplusplus
15473 }
15474 #endif
15475
15476 int
15477 main ()
15478 {
15479 return f != $ac_func;
15480   ;
15481   return 0;
15482 }
15483 _ACEOF
15484 rm -f conftest.$ac_objext conftest$ac_exeext
15485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15486   (eval $ac_link) 2>conftest.er1
15487   ac_status=$?
15488   grep -v '^ *+' conftest.er1 >conftest.err
15489   rm -f conftest.er1
15490   cat conftest.err >&5
15491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492   (exit $ac_status); } &&
15493          { ac_try='test -z "$ac_c_werror_flag"
15494                          || test ! -s conftest.err'
15495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496   (eval $ac_try) 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; } &&
15500          { ac_try='test -s conftest$ac_exeext'
15501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502   (eval $ac_try) 2>&5
15503   ac_status=$?
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); }; }; then
15506   eval "$as_ac_var=yes"
15507 else
15508   echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15510
15511 eval "$as_ac_var=no"
15512 fi
15513 rm -f conftest.err conftest.$ac_objext \
15514       conftest$ac_exeext conftest.$ac_ext
15515 fi
15516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15518 if test `eval echo '${'$as_ac_var'}'` = yes; then
15519   cat >>confdefs.h <<_ACEOF
15520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15521 _ACEOF
15522
15523 else
15524   case $LIBOBJS in
15525     "$ac_func.$ac_objext"   | \
15526   *" $ac_func.$ac_objext"   | \
15527     "$ac_func.$ac_objext "* | \
15528   *" $ac_func.$ac_objext "* ) ;;
15529   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15530 esac
15531
15532 fi
15533 done
15534
15535
15536   if test $ac_cv_func_strerror = no; then
15537
15538   :
15539
15540   fi
15541
15542
15543
15544   echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
15545 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
15546 if test "${gl_cv_func_tzset_clobber+set}" = set; then
15547   echo $ECHO_N "(cached) $ECHO_C" >&6
15548 else
15549
15550   if test "$cross_compiling" = yes; then
15551   gl_cv_func_tzset_clobber=yes
15552 else
15553   cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559
15560 #if TIME_WITH_SYS_TIME
15561 # include <sys/time.h>
15562 # include <time.h>
15563 #else
15564 # if HAVE_SYS_TIME_H
15565 #  include <sys/time.h>
15566 # else
15567 #  include <time.h>
15568 # endif
15569 #endif
15570 #include <stdlib.h>
15571
15572 int
15573 main ()
15574 {
15575   time_t t1 = 853958121;
15576   struct tm *p, s;
15577   putenv ("TZ=GMT0");
15578   p = localtime (&t1);
15579   s = *p;
15580   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
15581   tzset ();
15582   exit (p->tm_year != s.tm_year
15583         || p->tm_mon != s.tm_mon
15584         || p->tm_mday != s.tm_mday
15585         || p->tm_hour != s.tm_hour
15586         || p->tm_min != s.tm_min
15587         || p->tm_sec != s.tm_sec);
15588 }
15589
15590 _ACEOF
15591 rm -f conftest$ac_exeext
15592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15593   (eval $ac_link) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598   (eval $ac_try) 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }; }; then
15602   gl_cv_func_tzset_clobber=no
15603 else
15604   echo "$as_me: program exited with status $ac_status" >&5
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15607
15608 ( exit $ac_status )
15609 gl_cv_func_tzset_clobber=yes
15610 fi
15611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15612 fi
15613 fi
15614 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
15615 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
15616
15617
15618 cat >>confdefs.h <<\_ACEOF
15619 #define HAVE_RUN_TZSET_TEST 1
15620 _ACEOF
15621
15622
15623   if test $gl_cv_func_tzset_clobber = yes; then
15624
15625   case $LIBOBJS in
15626     "gettimeofday.$ac_objext"   | \
15627   *" gettimeofday.$ac_objext"   | \
15628     "gettimeofday.$ac_objext "* | \
15629   *" gettimeofday.$ac_objext "* ) ;;
15630   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
15631 esac
15632
15633
15634 cat >>confdefs.h <<\_ACEOF
15635 #define gmtime rpl_gmtime
15636 _ACEOF
15637
15638
15639 cat >>confdefs.h <<\_ACEOF
15640 #define localtime rpl_localtime
15641 _ACEOF
15642
15643
15644
15645
15646 cat >>confdefs.h <<\_ACEOF
15647 #define tzset rpl_tzset
15648 _ACEOF
15649
15650
15651 cat >>confdefs.h <<\_ACEOF
15652 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
15653 _ACEOF
15654
15655   fi
15656
15657
15658   echo "$as_me:$LINENO: checking for signed" >&5
15659 echo $ECHO_N "checking for signed... $ECHO_C" >&6
15660 if test "${bh_cv_c_signed+set}" = set; then
15661   echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663   cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h.  */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h.  */
15669
15670 int
15671 main ()
15672 {
15673 signed char x;
15674   ;
15675   return 0;
15676 }
15677 _ACEOF
15678 rm -f conftest.$ac_objext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15680   (eval $ac_compile) 2>conftest.er1
15681   ac_status=$?
15682   grep -v '^ *+' conftest.er1 >conftest.err
15683   rm -f conftest.er1
15684   cat conftest.err >&5
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); } &&
15687          { ac_try='test -z "$ac_c_werror_flag"
15688                          || test ! -s conftest.err'
15689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690   (eval $ac_try) 2>&5
15691   ac_status=$?
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); }; } &&
15694          { ac_try='test -s conftest.$ac_objext'
15695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696   (eval $ac_try) 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); }; }; then
15700   bh_cv_c_signed=yes
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705 bh_cv_c_signed=no
15706 fi
15707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15708 fi
15709 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
15710 echo "${ECHO_T}$bh_cv_c_signed" >&6
15711   if test $bh_cv_c_signed = no; then
15712
15713 cat >>confdefs.h <<\_ACEOF
15714 #define signed
15715 _ACEOF
15716
15717   fi
15718
15719
15720   echo "$as_me:$LINENO: checking for long long" >&5
15721 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15722 if test "${ac_cv_type_long_long+set}" = set; then
15723   echo $ECHO_N "(cached) $ECHO_C" >&6
15724 else
15725   cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h.  */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h.  */
15731 long long ll = 1LL; int i = 63;
15732 int
15733 main ()
15734 {
15735 long long llmax = (long long) -1;
15736      return ll << i | ll >> i | llmax / ll | llmax % ll;
15737   ;
15738   return 0;
15739 }
15740 _ACEOF
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15743   (eval $ac_link) 2>conftest.er1
15744   ac_status=$?
15745   grep -v '^ *+' conftest.er1 >conftest.err
15746   rm -f conftest.er1
15747   cat conftest.err >&5
15748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749   (exit $ac_status); } &&
15750          { ac_try='test -z "$ac_c_werror_flag"
15751                          || test ! -s conftest.err'
15752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753   (eval $ac_try) 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); }; } &&
15757          { ac_try='test -s conftest$ac_exeext'
15758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759   (eval $ac_try) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; }; then
15763   ac_cv_type_long_long=yes
15764 else
15765   echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15767
15768 ac_cv_type_long_long=no
15769 fi
15770 rm -f conftest.err conftest.$ac_objext \
15771       conftest$ac_exeext conftest.$ac_ext
15772 fi
15773 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15774 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15775   if test $ac_cv_type_long_long = yes; then
15776
15777 cat >>confdefs.h <<\_ACEOF
15778 #define HAVE_LONG_LONG 1
15779 _ACEOF
15780
15781   fi
15782
15783
15784   echo "$as_me:$LINENO: checking for long double" >&5
15785 echo $ECHO_N "checking for long double... $ECHO_C" >&6
15786 if test "${gt_cv_c_long_double+set}" = set; then
15787   echo $ECHO_N "(cached) $ECHO_C" >&6
15788 else
15789   if test "$GCC" = yes; then
15790        gt_cv_c_long_double=yes
15791      else
15792        cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h.  */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h.  */
15798
15799          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
15800          long double foo = 0.0;
15801          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
15802          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
15803
15804 int
15805 main ()
15806 {
15807
15808   ;
15809   return 0;
15810 }
15811 _ACEOF
15812 rm -f conftest.$ac_objext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814   (eval $ac_compile) 2>conftest.er1
15815   ac_status=$?
15816   grep -v '^ *+' conftest.er1 >conftest.err
15817   rm -f conftest.er1
15818   cat conftest.err >&5
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); } &&
15821          { ac_try='test -z "$ac_c_werror_flag"
15822                          || test ! -s conftest.err'
15823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824   (eval $ac_try) 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); }; } &&
15828          { ac_try='test -s conftest.$ac_objext'
15829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830   (eval $ac_try) 2>&5
15831   ac_status=$?
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); }; }; then
15834   gt_cv_c_long_double=yes
15835 else
15836   echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15838
15839 gt_cv_c_long_double=no
15840 fi
15841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15842      fi
15843 fi
15844 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
15845 echo "${ECHO_T}$gt_cv_c_long_double" >&6
15846   if test $gt_cv_c_long_double = yes; then
15847
15848 cat >>confdefs.h <<\_ACEOF
15849 #define HAVE_LONG_DOUBLE 1
15850 _ACEOF
15851
15852   fi
15853
15854
15855   echo "$as_me:$LINENO: checking for wchar_t" >&5
15856 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
15857 if test "${gt_cv_c_wchar_t+set}" = set; then
15858   echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860   cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h.  */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h.  */
15866 #include <stddef.h>
15867        wchar_t foo = (wchar_t)'\0';
15868 int
15869 main ()
15870 {
15871
15872   ;
15873   return 0;
15874 }
15875 _ACEOF
15876 rm -f conftest.$ac_objext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15878   (eval $ac_compile) 2>conftest.er1
15879   ac_status=$?
15880   grep -v '^ *+' conftest.er1 >conftest.err
15881   rm -f conftest.er1
15882   cat conftest.err >&5
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); } &&
15885          { ac_try='test -z "$ac_c_werror_flag"
15886                          || test ! -s conftest.err'
15887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888   (eval $ac_try) 2>&5
15889   ac_status=$?
15890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); }; } &&
15892          { ac_try='test -s conftest.$ac_objext'
15893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894   (eval $ac_try) 2>&5
15895   ac_status=$?
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); }; }; then
15898   gt_cv_c_wchar_t=yes
15899 else
15900   echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15902
15903 gt_cv_c_wchar_t=no
15904 fi
15905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15906 fi
15907 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
15908 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
15909   if test $gt_cv_c_wchar_t = yes; then
15910
15911 cat >>confdefs.h <<\_ACEOF
15912 #define HAVE_WCHAR_T 1
15913 _ACEOF
15914
15915   fi
15916
15917
15918   echo "$as_me:$LINENO: checking for wint_t" >&5
15919 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
15920 if test "${gt_cv_c_wint_t+set}" = set; then
15921   echo $ECHO_N "(cached) $ECHO_C" >&6
15922 else
15923   cat >conftest.$ac_ext <<_ACEOF
15924 /* confdefs.h.  */
15925 _ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h.  */
15929 #include <wchar.h>
15930        wint_t foo = (wchar_t)'\0';
15931 int
15932 main ()
15933 {
15934
15935   ;
15936   return 0;
15937 }
15938 _ACEOF
15939 rm -f conftest.$ac_objext
15940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15941   (eval $ac_compile) 2>conftest.er1
15942   ac_status=$?
15943   grep -v '^ *+' conftest.er1 >conftest.err
15944   rm -f conftest.er1
15945   cat conftest.err >&5
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); } &&
15948          { ac_try='test -z "$ac_c_werror_flag"
15949                          || test ! -s conftest.err'
15950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951   (eval $ac_try) 2>&5
15952   ac_status=$?
15953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954   (exit $ac_status); }; } &&
15955          { ac_try='test -s conftest.$ac_objext'
15956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957   (eval $ac_try) 2>&5
15958   ac_status=$?
15959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960   (exit $ac_status); }; }; then
15961   gt_cv_c_wint_t=yes
15962 else
15963   echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15965
15966 gt_cv_c_wint_t=no
15967 fi
15968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15969 fi
15970 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
15971 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
15972   if test $gt_cv_c_wint_t = yes; then
15973
15974 cat >>confdefs.h <<\_ACEOF
15975 #define HAVE_WINT_T 1
15976 _ACEOF
15977
15978   fi
15979
15980 echo "$as_me:$LINENO: checking for size_t" >&5
15981 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15982 if test "${ac_cv_type_size_t+set}" = set; then
15983   echo $ECHO_N "(cached) $ECHO_C" >&6
15984 else
15985   cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h.  */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h.  */
15991 $ac_includes_default
15992 int
15993 main ()
15994 {
15995 if ((size_t *) 0)
15996   return 0;
15997 if (sizeof (size_t))
15998   return 0;
15999   ;
16000   return 0;
16001 }
16002 _ACEOF
16003 rm -f conftest.$ac_objext
16004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16005   (eval $ac_compile) 2>conftest.er1
16006   ac_status=$?
16007   grep -v '^ *+' conftest.er1 >conftest.err
16008   rm -f conftest.er1
16009   cat conftest.err >&5
16010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011   (exit $ac_status); } &&
16012          { ac_try='test -z "$ac_c_werror_flag"
16013                          || test ! -s conftest.err'
16014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015   (eval $ac_try) 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); }; } &&
16019          { ac_try='test -s conftest.$ac_objext'
16020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021   (eval $ac_try) 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; }; then
16025   ac_cv_type_size_t=yes
16026 else
16027   echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16029
16030 ac_cv_type_size_t=no
16031 fi
16032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16033 fi
16034 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16035 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16036 if test $ac_cv_type_size_t = yes; then
16037   :
16038 else
16039
16040 cat >>confdefs.h <<_ACEOF
16041 #define size_t unsigned
16042 _ACEOF
16043
16044 fi
16045
16046
16047
16048
16049   echo "$as_me:$LINENO: checking for intmax_t" >&5
16050 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
16051 if test "${gt_cv_c_intmax_t+set}" = set; then
16052   echo $ECHO_N "(cached) $ECHO_C" >&6
16053 else
16054   cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h.  */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h.  */
16060
16061 #include <stddef.h>
16062 #include <stdlib.h>
16063 #if HAVE_STDINT_H_WITH_UINTMAX
16064 #include <stdint.h>
16065 #endif
16066 #if HAVE_INTTYPES_H_WITH_UINTMAX
16067 #include <inttypes.h>
16068 #endif
16069
16070 int
16071 main ()
16072 {
16073 intmax_t x = -1;
16074   ;
16075   return 0;
16076 }
16077 _ACEOF
16078 rm -f conftest.$ac_objext
16079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16080   (eval $ac_compile) 2>conftest.er1
16081   ac_status=$?
16082   grep -v '^ *+' conftest.er1 >conftest.err
16083   rm -f conftest.er1
16084   cat conftest.err >&5
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); } &&
16087          { ac_try='test -z "$ac_c_werror_flag"
16088                          || test ! -s conftest.err'
16089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090   (eval $ac_try) 2>&5
16091   ac_status=$?
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); }; } &&
16094          { ac_try='test -s conftest.$ac_objext'
16095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096   (eval $ac_try) 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); }; }; then
16100   gt_cv_c_intmax_t=yes
16101 else
16102   echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105 gt_cv_c_intmax_t=no
16106 fi
16107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16108 fi
16109 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
16110 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
16111   if test $gt_cv_c_intmax_t = yes; then
16112
16113 cat >>confdefs.h <<\_ACEOF
16114 #define HAVE_INTMAX_T 1
16115 _ACEOF
16116
16117   else
16118
16119     test $ac_cv_type_long_long = yes \
16120       && ac_type='long long' \
16121       || ac_type='long'
16122
16123 cat >>confdefs.h <<_ACEOF
16124 #define intmax_t $ac_type
16125 _ACEOF
16126
16127   fi
16128
16129
16130
16131 for ac_func in vasnprintf
16132 do
16133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16134 echo "$as_me:$LINENO: checking for $ac_func" >&5
16135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16136 if eval "test \"\${$as_ac_var+set}\" = set"; then
16137   echo $ECHO_N "(cached) $ECHO_C" >&6
16138 else
16139   cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h.  */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h.  */
16145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16147 #define $ac_func innocuous_$ac_func
16148
16149 /* System header to define __stub macros and hopefully few prototypes,
16150     which can conflict with char $ac_func (); below.
16151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16152     <limits.h> exists even on freestanding compilers.  */
16153
16154 #ifdef __STDC__
16155 # include <limits.h>
16156 #else
16157 # include <assert.h>
16158 #endif
16159
16160 #undef $ac_func
16161
16162 /* Override any gcc2 internal prototype to avoid an error.  */
16163 #ifdef __cplusplus
16164 extern "C"
16165 {
16166 #endif
16167 /* We use char because int might match the return type of a gcc2
16168    builtin and then its argument prototype would still apply.  */
16169 char $ac_func ();
16170 /* The GNU C library defines this for functions which it implements
16171     to always fail with ENOSYS.  Some functions are actually named
16172     something starting with __ and the normal name is an alias.  */
16173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16174 choke me
16175 #else
16176 char (*f) () = $ac_func;
16177 #endif
16178 #ifdef __cplusplus
16179 }
16180 #endif
16181
16182 int
16183 main ()
16184 {
16185 return f != $ac_func;
16186   ;
16187   return 0;
16188 }
16189 _ACEOF
16190 rm -f conftest.$ac_objext conftest$ac_exeext
16191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16192   (eval $ac_link) 2>conftest.er1
16193   ac_status=$?
16194   grep -v '^ *+' conftest.er1 >conftest.err
16195   rm -f conftest.er1
16196   cat conftest.err >&5
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); } &&
16199          { ac_try='test -z "$ac_c_werror_flag"
16200                          || test ! -s conftest.err'
16201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202   (eval $ac_try) 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); }; } &&
16206          { ac_try='test -s conftest$ac_exeext'
16207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208   (eval $ac_try) 2>&5
16209   ac_status=$?
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); }; }; then
16212   eval "$as_ac_var=yes"
16213 else
16214   echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16216
16217 eval "$as_ac_var=no"
16218 fi
16219 rm -f conftest.err conftest.$ac_objext \
16220       conftest$ac_exeext conftest.$ac_ext
16221 fi
16222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16224 if test `eval echo '${'$as_ac_var'}'` = yes; then
16225   cat >>confdefs.h <<_ACEOF
16226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16227 _ACEOF
16228
16229 else
16230   case $LIBOBJS in
16231     "$ac_func.$ac_objext"   | \
16232   *" $ac_func.$ac_objext"   | \
16233     "$ac_func.$ac_objext "* | \
16234   *" $ac_func.$ac_objext "* ) ;;
16235   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
16236 esac
16237
16238 fi
16239 done
16240
16241
16242   if test $ac_cv_func_vasnprintf = no; then
16243     case $LIBOBJS in
16244     "printf-args.$ac_objext"   | \
16245   *" printf-args.$ac_objext"   | \
16246     "printf-args.$ac_objext "* | \
16247   *" printf-args.$ac_objext "* ) ;;
16248   *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" ;;
16249 esac
16250
16251     case $LIBOBJS in
16252     "printf-parse.$ac_objext"   | \
16253   *" printf-parse.$ac_objext"   | \
16254     "printf-parse.$ac_objext "* | \
16255   *" printf-parse.$ac_objext "* ) ;;
16256   *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" ;;
16257 esac
16258
16259     case $LIBOBJS in
16260     "asnprintf.$ac_objext"   | \
16261   *" asnprintf.$ac_objext"   | \
16262     "asnprintf.$ac_objext "* | \
16263   *" asnprintf.$ac_objext "* ) ;;
16264   *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
16265 esac
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
16281 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
16282 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
16283   echo $ECHO_N "(cached) $ECHO_C" >&6
16284 else
16285   cat >conftest.$ac_ext <<_ACEOF
16286 /* confdefs.h.  */
16287 _ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h.  */
16291 $ac_includes_default
16292 int
16293 main ()
16294 {
16295 if ((ptrdiff_t *) 0)
16296   return 0;
16297 if (sizeof (ptrdiff_t))
16298   return 0;
16299   ;
16300   return 0;
16301 }
16302 _ACEOF
16303 rm -f conftest.$ac_objext
16304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305   (eval $ac_compile) 2>conftest.er1
16306   ac_status=$?
16307   grep -v '^ *+' conftest.er1 >conftest.err
16308   rm -f conftest.er1
16309   cat conftest.err >&5
16310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311   (exit $ac_status); } &&
16312          { ac_try='test -z "$ac_c_werror_flag"
16313                          || test ! -s conftest.err'
16314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315   (eval $ac_try) 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); }; } &&
16319          { ac_try='test -s conftest.$ac_objext'
16320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321   (eval $ac_try) 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; }; then
16325   ac_cv_type_ptrdiff_t=yes
16326 else
16327   echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16329
16330 ac_cv_type_ptrdiff_t=no
16331 fi
16332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16333 fi
16334 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
16335 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
16336 if test $ac_cv_type_ptrdiff_t = yes; then
16337
16338 cat >>confdefs.h <<_ACEOF
16339 #define HAVE_PTRDIFF_T 1
16340 _ACEOF
16341
16342
16343 fi
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355 for ac_func in snprintf wcslen
16356 do
16357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16358 echo "$as_me:$LINENO: checking for $ac_func" >&5
16359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16360 if eval "test \"\${$as_ac_var+set}\" = set"; then
16361   echo $ECHO_N "(cached) $ECHO_C" >&6
16362 else
16363   cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h.  */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h.  */
16369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16371 #define $ac_func innocuous_$ac_func
16372
16373 /* System header to define __stub macros and hopefully few prototypes,
16374     which can conflict with char $ac_func (); below.
16375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16376     <limits.h> exists even on freestanding compilers.  */
16377
16378 #ifdef __STDC__
16379 # include <limits.h>
16380 #else
16381 # include <assert.h>
16382 #endif
16383
16384 #undef $ac_func
16385
16386 /* Override any gcc2 internal prototype to avoid an error.  */
16387 #ifdef __cplusplus
16388 extern "C"
16389 {
16390 #endif
16391 /* We use char because int might match the return type of a gcc2
16392    builtin and then its argument prototype would still apply.  */
16393 char $ac_func ();
16394 /* The GNU C library defines this for functions which it implements
16395     to always fail with ENOSYS.  Some functions are actually named
16396     something starting with __ and the normal name is an alias.  */
16397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16398 choke me
16399 #else
16400 char (*f) () = $ac_func;
16401 #endif
16402 #ifdef __cplusplus
16403 }
16404 #endif
16405
16406 int
16407 main ()
16408 {
16409 return f != $ac_func;
16410   ;
16411   return 0;
16412 }
16413 _ACEOF
16414 rm -f conftest.$ac_objext conftest$ac_exeext
16415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16416   (eval $ac_link) 2>conftest.er1
16417   ac_status=$?
16418   grep -v '^ *+' conftest.er1 >conftest.err
16419   rm -f conftest.er1
16420   cat conftest.err >&5
16421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422   (exit $ac_status); } &&
16423          { ac_try='test -z "$ac_c_werror_flag"
16424                          || test ! -s conftest.err'
16425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426   (eval $ac_try) 2>&5
16427   ac_status=$?
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); }; } &&
16430          { ac_try='test -s conftest$ac_exeext'
16431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432   (eval $ac_try) 2>&5
16433   ac_status=$?
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); }; }; then
16436   eval "$as_ac_var=yes"
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 eval "$as_ac_var=no"
16442 fi
16443 rm -f conftest.err conftest.$ac_objext \
16444       conftest$ac_exeext conftest.$ac_ext
16445 fi
16446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16448 if test `eval echo '${'$as_ac_var'}'` = yes; then
16449   cat >>confdefs.h <<_ACEOF
16450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16451 _ACEOF
16452
16453 fi
16454 done
16455
16456
16457
16458
16459   fi
16460
16461
16462
16463
16464   :
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475   :
16476
16477
16478
16479
16480
16481   echo "$as_me:$LINENO: checking for struct timespec" >&5
16482 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
16483 if test "${fu_cv_sys_struct_timespec+set}" = set; then
16484   echo $ECHO_N "(cached) $ECHO_C" >&6
16485 else
16486   cat >conftest.$ac_ext <<_ACEOF
16487 /* confdefs.h.  */
16488 _ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h.  */
16492
16493 #      if TIME_WITH_SYS_TIME
16494 #       include <sys/time.h>
16495 #       include <time.h>
16496 #      else
16497 #       if HAVE_SYS_TIME_H
16498 #        include <sys/time.h>
16499 #       else
16500 #        include <time.h>
16501 #       endif
16502 #      endif
16503
16504 int
16505 main ()
16506 {
16507 static struct timespec x; x.tv_sec = x.tv_nsec;
16508   ;
16509   return 0;
16510 }
16511 _ACEOF
16512 rm -f conftest.$ac_objext
16513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16514   (eval $ac_compile) 2>conftest.er1
16515   ac_status=$?
16516   grep -v '^ *+' conftest.er1 >conftest.err
16517   rm -f conftest.er1
16518   cat conftest.err >&5
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); } &&
16521          { ac_try='test -z "$ac_c_werror_flag"
16522                          || test ! -s conftest.err'
16523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524   (eval $ac_try) 2>&5
16525   ac_status=$?
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); }; } &&
16528          { ac_try='test -s conftest.$ac_objext'
16529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530   (eval $ac_try) 2>&5
16531   ac_status=$?
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); }; }; then
16534   fu_cv_sys_struct_timespec=yes
16535 else
16536   echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16538
16539 fu_cv_sys_struct_timespec=no
16540 fi
16541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16542
16543 fi
16544 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
16545 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
16546
16547   if test $fu_cv_sys_struct_timespec = yes; then
16548
16549 cat >>confdefs.h <<\_ACEOF
16550 #define HAVE_STRUCT_TIMESPEC 1
16551 _ACEOF
16552
16553   fi
16554
16555   echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
16556 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
16557 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
16558   echo $ECHO_N "(cached) $ECHO_C" >&6
16559 else
16560   ac_save_CPPFLAGS="$CPPFLAGS"
16561     ac_cv_struct_st_mtim_nsec=no
16562     # tv_nsec -- the usual case
16563     # _tv_nsec -- Solaris 2.6, if
16564     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
16565     #    && !defined __EXTENSIONS__)
16566     # st__tim.tv_nsec -- UnixWare 2.1.2
16567     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
16568       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
16569       cat >conftest.$ac_ext <<_ACEOF
16570 /* confdefs.h.  */
16571 _ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h.  */
16575 #include <sys/types.h>
16576 #include <sys/stat.h>
16577 int
16578 main ()
16579 {
16580 struct stat s; s.st_mtim.ST_MTIM_NSEC;
16581   ;
16582   return 0;
16583 }
16584 _ACEOF
16585 rm -f conftest.$ac_objext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16587   (eval $ac_compile) 2>conftest.er1
16588   ac_status=$?
16589   grep -v '^ *+' conftest.er1 >conftest.err
16590   rm -f conftest.er1
16591   cat conftest.err >&5
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); } &&
16594          { ac_try='test -z "$ac_c_werror_flag"
16595                          || test ! -s conftest.err'
16596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597   (eval $ac_try) 2>&5
16598   ac_status=$?
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); }; } &&
16601          { ac_try='test -s conftest.$ac_objext'
16602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603   (eval $ac_try) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; }; then
16607   ac_cv_struct_st_mtim_nsec=$ac_val; break
16608 else
16609   echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16611
16612 fi
16613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16614     done
16615     CPPFLAGS="$ac_save_CPPFLAGS"
16616 fi
16617 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
16618 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
16619
16620   if test $ac_cv_struct_st_mtim_nsec != no; then
16621
16622 cat >>confdefs.h <<_ACEOF
16623 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
16624 _ACEOF
16625
16626   fi
16627
16628
16629
16630
16631
16632   echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
16633 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
16634 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
16635   echo $ECHO_N "(cached) $ECHO_C" >&6
16636 else
16637   cat >conftest.$ac_ext <<_ACEOF
16638 /* confdefs.h.  */
16639 _ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h.  */
16643 #include <time.h>
16644
16645 int
16646 main ()
16647 {
16648 #ifndef nanosleep
16649   char *p = (char *) nanosleep;
16650 #endif
16651
16652   ;
16653   return 0;
16654 }
16655 _ACEOF
16656 rm -f conftest.$ac_objext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16658   (eval $ac_compile) 2>conftest.er1
16659   ac_status=$?
16660   grep -v '^ *+' conftest.er1 >conftest.err
16661   rm -f conftest.er1
16662   cat conftest.err >&5
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } &&
16665          { ac_try='test -z "$ac_c_werror_flag"
16666                          || test ! -s conftest.err'
16667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668   (eval $ac_try) 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; } &&
16672          { ac_try='test -s conftest.$ac_objext'
16673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674   (eval $ac_try) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); }; }; then
16678   ac_cv_have_decl_nanosleep=yes
16679 else
16680   echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16682
16683 ac_cv_have_decl_nanosleep=no
16684 fi
16685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16686 fi
16687 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
16688 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
16689 if test $ac_cv_have_decl_nanosleep = yes; then
16690
16691 cat >>confdefs.h <<_ACEOF
16692 #define HAVE_DECL_NANOSLEEP 1
16693 _ACEOF
16694
16695
16696 else
16697   cat >>confdefs.h <<_ACEOF
16698 #define HAVE_DECL_NANOSLEEP 0
16699 _ACEOF
16700
16701
16702 fi
16703
16704
16705
16706
16707   # getdate.y works with bison only.
16708
16709 YACC=${YACC-"${am_missing_run}bison -y"}
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721   # dnl Persuade glibc <time.h> to declare these functions.
16722
16723
16724   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
16725   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
16726
16727   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
16728   # programs in the package would end up linked with that potentially-shared
16729   # library, inducing unnecessary run-time overhead.
16730   fetish_saved_libs=$LIBS
16731     echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
16732 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
16733 if test "${ac_cv_search_clock_gettime+set}" = set; then
16734   echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16736   ac_func_search_save_LIBS=$LIBS
16737 ac_cv_search_clock_gettime=no
16738 cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h.  */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h.  */
16744
16745 /* Override any gcc2 internal prototype to avoid an error.  */
16746 #ifdef __cplusplus
16747 extern "C"
16748 #endif
16749 /* We use char because int might match the return type of a gcc2
16750    builtin and then its argument prototype would still apply.  */
16751 char clock_gettime ();
16752 int
16753 main ()
16754 {
16755 clock_gettime ();
16756   ;
16757   return 0;
16758 }
16759 _ACEOF
16760 rm -f conftest.$ac_objext conftest$ac_exeext
16761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16762   (eval $ac_link) 2>conftest.er1
16763   ac_status=$?
16764   grep -v '^ *+' conftest.er1 >conftest.err
16765   rm -f conftest.er1
16766   cat conftest.err >&5
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); } &&
16769          { ac_try='test -z "$ac_c_werror_flag"
16770                          || test ! -s conftest.err'
16771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772   (eval $ac_try) 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; } &&
16776          { ac_try='test -s conftest$ac_exeext'
16777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778   (eval $ac_try) 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; }; then
16782   ac_cv_search_clock_gettime="none required"
16783 else
16784   echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16786
16787 fi
16788 rm -f conftest.err conftest.$ac_objext \
16789       conftest$ac_exeext conftest.$ac_ext
16790 if test "$ac_cv_search_clock_gettime" = no; then
16791   for ac_lib in rt posix4; do
16792     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16793     cat >conftest.$ac_ext <<_ACEOF
16794 /* confdefs.h.  */
16795 _ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h.  */
16799
16800 /* Override any gcc2 internal prototype to avoid an error.  */
16801 #ifdef __cplusplus
16802 extern "C"
16803 #endif
16804 /* We use char because int might match the return type of a gcc2
16805    builtin and then its argument prototype would still apply.  */
16806 char clock_gettime ();
16807 int
16808 main ()
16809 {
16810 clock_gettime ();
16811   ;
16812   return 0;
16813 }
16814 _ACEOF
16815 rm -f conftest.$ac_objext conftest$ac_exeext
16816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16817   (eval $ac_link) 2>conftest.er1
16818   ac_status=$?
16819   grep -v '^ *+' conftest.er1 >conftest.err
16820   rm -f conftest.er1
16821   cat conftest.err >&5
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } &&
16824          { ac_try='test -z "$ac_c_werror_flag"
16825                          || test ! -s conftest.err'
16826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827   (eval $ac_try) 2>&5
16828   ac_status=$?
16829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); }; } &&
16831          { ac_try='test -s conftest$ac_exeext'
16832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833   (eval $ac_try) 2>&5
16834   ac_status=$?
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); }; }; then
16837   ac_cv_search_clock_gettime="-l$ac_lib"
16838 break
16839 else
16840   echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16842
16843 fi
16844 rm -f conftest.err conftest.$ac_objext \
16845       conftest$ac_exeext conftest.$ac_ext
16846   done
16847 fi
16848 LIBS=$ac_func_search_save_LIBS
16849 fi
16850 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
16851 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
16852 if test "$ac_cv_search_clock_gettime" != no; then
16853   test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
16854   test "$ac_cv_search_clock_gettime" = "none required" ||
16855                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
16856 fi
16857
16858
16859
16860
16861 for ac_func in clock_gettime clock_settime
16862 do
16863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16864 echo "$as_me:$LINENO: checking for $ac_func" >&5
16865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16866 if eval "test \"\${$as_ac_var+set}\" = set"; then
16867   echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869   cat >conftest.$ac_ext <<_ACEOF
16870 /* confdefs.h.  */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h.  */
16875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16877 #define $ac_func innocuous_$ac_func
16878
16879 /* System header to define __stub macros and hopefully few prototypes,
16880     which can conflict with char $ac_func (); below.
16881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16882     <limits.h> exists even on freestanding compilers.  */
16883
16884 #ifdef __STDC__
16885 # include <limits.h>
16886 #else
16887 # include <assert.h>
16888 #endif
16889
16890 #undef $ac_func
16891
16892 /* Override any gcc2 internal prototype to avoid an error.  */
16893 #ifdef __cplusplus
16894 extern "C"
16895 {
16896 #endif
16897 /* We use char because int might match the return type of a gcc2
16898    builtin and then its argument prototype would still apply.  */
16899 char $ac_func ();
16900 /* The GNU C library defines this for functions which it implements
16901     to always fail with ENOSYS.  Some functions are actually named
16902     something starting with __ and the normal name is an alias.  */
16903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16904 choke me
16905 #else
16906 char (*f) () = $ac_func;
16907 #endif
16908 #ifdef __cplusplus
16909 }
16910 #endif
16911
16912 int
16913 main ()
16914 {
16915 return f != $ac_func;
16916   ;
16917   return 0;
16918 }
16919 _ACEOF
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922   (eval $ac_link) 2>conftest.er1
16923   ac_status=$?
16924   grep -v '^ *+' conftest.er1 >conftest.err
16925   rm -f conftest.er1
16926   cat conftest.err >&5
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); } &&
16929          { ac_try='test -z "$ac_c_werror_flag"
16930                          || test ! -s conftest.err'
16931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932   (eval $ac_try) 2>&5
16933   ac_status=$?
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); }; } &&
16936          { ac_try='test -s conftest$ac_exeext'
16937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938   (eval $ac_try) 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }; }; then
16942   eval "$as_ac_var=yes"
16943 else
16944   echo "$as_me: failed program was:" >&5
16945 sed 's/^/| /' conftest.$ac_ext >&5
16946
16947 eval "$as_ac_var=no"
16948 fi
16949 rm -f conftest.err conftest.$ac_objext \
16950       conftest$ac_exeext conftest.$ac_ext
16951 fi
16952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16954 if test `eval echo '${'$as_ac_var'}'` = yes; then
16955   cat >>confdefs.h <<_ACEOF
16956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16957 _ACEOF
16958
16959 fi
16960 done
16961
16962   LIBS=$fetish_saved_libs
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972   :
16973
16974
16975
16976
16977
16978   echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16979 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16980 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16981   echo $ECHO_N "(cached) $ECHO_C" >&6
16982 else
16983   cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h.  */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h.  */
16989 #include <sys/types.h>
16990 #include <$ac_cv_struct_tm>
16991
16992
16993 int
16994 main ()
16995 {
16996 static struct tm ac_aggr;
16997 if (ac_aggr.tm_zone)
16998 return 0;
16999   ;
17000   return 0;
17001 }
17002 _ACEOF
17003 rm -f conftest.$ac_objext
17004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17005   (eval $ac_compile) 2>conftest.er1
17006   ac_status=$?
17007   grep -v '^ *+' conftest.er1 >conftest.err
17008   rm -f conftest.er1
17009   cat conftest.err >&5
17010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011   (exit $ac_status); } &&
17012          { ac_try='test -z "$ac_c_werror_flag"
17013                          || test ! -s conftest.err'
17014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015   (eval $ac_try) 2>&5
17016   ac_status=$?
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); }; } &&
17019          { ac_try='test -s conftest.$ac_objext'
17020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021   (eval $ac_try) 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); }; }; then
17025   ac_cv_member_struct_tm_tm_zone=yes
17026 else
17027   echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17029
17030 cat >conftest.$ac_ext <<_ACEOF
17031 /* confdefs.h.  */
17032 _ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h.  */
17036 #include <sys/types.h>
17037 #include <$ac_cv_struct_tm>
17038
17039
17040 int
17041 main ()
17042 {
17043 static struct tm ac_aggr;
17044 if (sizeof ac_aggr.tm_zone)
17045 return 0;
17046   ;
17047   return 0;
17048 }
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052   (eval $ac_compile) 2>conftest.er1
17053   ac_status=$?
17054   grep -v '^ *+' conftest.er1 >conftest.err
17055   rm -f conftest.er1
17056   cat conftest.err >&5
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); } &&
17059          { ac_try='test -z "$ac_c_werror_flag"
17060                          || test ! -s conftest.err'
17061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062   (eval $ac_try) 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); }; } &&
17066          { ac_try='test -s conftest.$ac_objext'
17067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068   (eval $ac_try) 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); }; }; then
17072   ac_cv_member_struct_tm_tm_zone=yes
17073 else
17074   echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17076
17077 ac_cv_member_struct_tm_tm_zone=no
17078 fi
17079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17080 fi
17081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17082 fi
17083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17084 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17085 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17086
17087 cat >>confdefs.h <<_ACEOF
17088 #define HAVE_STRUCT_TM_TM_ZONE 1
17089 _ACEOF
17090
17091
17092 fi
17093
17094 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17095
17096 cat >>confdefs.h <<\_ACEOF
17097 #define HAVE_TM_ZONE 1
17098 _ACEOF
17099
17100 else
17101   echo "$as_me:$LINENO: checking for tzname" >&5
17102 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
17103 if test "${ac_cv_var_tzname+set}" = set; then
17104   echo $ECHO_N "(cached) $ECHO_C" >&6
17105 else
17106   cat >conftest.$ac_ext <<_ACEOF
17107 /* confdefs.h.  */
17108 _ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h.  */
17112 #include <time.h>
17113 #ifndef tzname /* For SGI.  */
17114 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
17115 #endif
17116
17117 int
17118 main ()
17119 {
17120 atoi(*tzname);
17121   ;
17122   return 0;
17123 }
17124 _ACEOF
17125 rm -f conftest.$ac_objext conftest$ac_exeext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127   (eval $ac_link) 2>conftest.er1
17128   ac_status=$?
17129   grep -v '^ *+' conftest.er1 >conftest.err
17130   rm -f conftest.er1
17131   cat conftest.err >&5
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); } &&
17134          { ac_try='test -z "$ac_c_werror_flag"
17135                          || test ! -s conftest.err'
17136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137   (eval $ac_try) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); }; } &&
17141          { ac_try='test -s conftest$ac_exeext'
17142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143   (eval $ac_try) 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147   ac_cv_var_tzname=yes
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152 ac_cv_var_tzname=no
17153 fi
17154 rm -f conftest.err conftest.$ac_objext \
17155       conftest$ac_exeext conftest.$ac_ext
17156 fi
17157 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17158 echo "${ECHO_T}$ac_cv_var_tzname" >&6
17159   if test $ac_cv_var_tzname = yes; then
17160
17161 cat >>confdefs.h <<\_ACEOF
17162 #define HAVE_TZNAME 1
17163 _ACEOF
17164
17165   fi
17166 fi
17167
17168
17169
17170
17171
17172   # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
17173   # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
17174   case " $LIBOBJS " in
17175   *" getndelim2.$ac_objext "* ) ;;
17176   *) case $LIBOBJS in
17177     "getndelim2.$ac_objext"   | \
17178   *" getndelim2.$ac_objext"   | \
17179     "getndelim2.$ac_objext "* | \
17180   *" getndelim2.$ac_objext "* ) ;;
17181   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
17182 esac
17183 ;;
17184   esac
17185
17186
17187
17188
17189
17190
17191
17192     :
17193
17194
17195     :
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207   :
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222   :
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247     # Assume we'll default to using the included regex.c.
17248     ac_use_included_regex=yes
17249
17250     # However, if the system regex support is good enough that it passes the
17251     # the following run test, then default to *not* using the included regex.c.
17252     # If cross compiling, assume the test would fail and use the included
17253     # regex.c.  The first failing regular expression is from `Spencer ere
17254     # test #75' in grep-2.3.
17255     echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
17256 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
17257 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
17258   echo $ECHO_N "(cached) $ECHO_C" >&6
17259 else
17260   if test "$cross_compiling" = yes; then
17261                jm_cv_func_working_re_compile_pattern=no
17262 else
17263   cat >conftest.$ac_ext <<_ACEOF
17264 /* confdefs.h.  */
17265 _ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h.  */
17269 #include <stdio.h>
17270 #include <string.h>
17271 #include <regex.h>
17272           int
17273           main ()
17274           {
17275             static struct re_pattern_buffer regex;
17276             const char *s;
17277             struct re_registers regs;
17278             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
17279             memset (&regex, 0, sizeof (regex));
17280             s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
17281             /* This should fail with _Invalid character class name_ error.  */
17282             if (!s)
17283               exit (1);
17284
17285             /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
17286             memset (&regex, 0, sizeof (regex));
17287             s = re_compile_pattern ("{1", 2, &regex);
17288
17289             if (s)
17290               exit (1);
17291
17292             /* The following example is derived from a problem report
17293                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
17294             memset (&regex, 0, sizeof (regex));
17295             s = re_compile_pattern ("[an\371]*n", 7, &regex);
17296             if (s)
17297               exit (1);
17298
17299             /* This should match, but doesn't for e.g. glibc-2.2.1.  */
17300             if (re_match (&regex, "an", 2, 0, &regs) != 2)
17301               exit (1);
17302
17303             memset (&regex, 0, sizeof (regex));
17304             s = re_compile_pattern ("x", 1, &regex);
17305             if (s)
17306               exit (1);
17307
17308             /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
17309                work with a negative RANGE argument.  */
17310             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
17311               exit (1);
17312
17313             exit (0);
17314           }
17315
17316 _ACEOF
17317 rm -f conftest$ac_exeext
17318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17319   (eval $ac_link) 2>&5
17320   ac_status=$?
17321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324   (eval $ac_try) 2>&5
17325   ac_status=$?
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); }; }; then
17328   jm_cv_func_working_re_compile_pattern=yes
17329 else
17330   echo "$as_me: program exited with status $ac_status" >&5
17331 echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17333
17334 ( exit $ac_status )
17335 jm_cv_func_working_re_compile_pattern=no
17336 fi
17337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17338 fi
17339 fi
17340 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
17341 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
17342     if test $jm_cv_func_working_re_compile_pattern = yes; then
17343       ac_use_included_regex=no
17344     fi
17345
17346     test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
17347 echo "$as_me: error: missing argument" >&2;}
17348    { (exit 1); exit 1; }; }
17349
17350
17351
17352 # Check whether --with-included-regex or --without-included-regex was given.
17353 if test "${with_included_regex+set}" = set; then
17354   withval="$with_included_regex"
17355   jm_with_regex=$withval
17356 else
17357   jm_with_regex=$ac_use_included_regex
17358 fi;
17359         if test "$jm_with_regex" = yes; then
17360           case $LIBOBJS in
17361     "regex.$ac_objext"   | \
17362   *" regex.$ac_objext"   | \
17363     "regex.$ac_objext "* | \
17364   *" regex.$ac_objext "* ) ;;
17365   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
17366 esac
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376   :
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386   :
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396 for ac_func in btowc
17397 do
17398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17399 echo "$as_me:$LINENO: checking for $ac_func" >&5
17400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17401 if eval "test \"\${$as_ac_var+set}\" = set"; then
17402   echo $ECHO_N "(cached) $ECHO_C" >&6
17403 else
17404   cat >conftest.$ac_ext <<_ACEOF
17405 /* confdefs.h.  */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h.  */
17410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17412 #define $ac_func innocuous_$ac_func
17413
17414 /* System header to define __stub macros and hopefully few prototypes,
17415     which can conflict with char $ac_func (); below.
17416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17417     <limits.h> exists even on freestanding compilers.  */
17418
17419 #ifdef __STDC__
17420 # include <limits.h>
17421 #else
17422 # include <assert.h>
17423 #endif
17424
17425 #undef $ac_func
17426
17427 /* Override any gcc2 internal prototype to avoid an error.  */
17428 #ifdef __cplusplus
17429 extern "C"
17430 {
17431 #endif
17432 /* We use char because int might match the return type of a gcc2
17433    builtin and then its argument prototype would still apply.  */
17434 char $ac_func ();
17435 /* The GNU C library defines this for functions which it implements
17436     to always fail with ENOSYS.  Some functions are actually named
17437     something starting with __ and the normal name is an alias.  */
17438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17439 choke me
17440 #else
17441 char (*f) () = $ac_func;
17442 #endif
17443 #ifdef __cplusplus
17444 }
17445 #endif
17446
17447 int
17448 main ()
17449 {
17450 return f != $ac_func;
17451   ;
17452   return 0;
17453 }
17454 _ACEOF
17455 rm -f conftest.$ac_objext conftest$ac_exeext
17456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17457   (eval $ac_link) 2>conftest.er1
17458   ac_status=$?
17459   grep -v '^ *+' conftest.er1 >conftest.err
17460   rm -f conftest.er1
17461   cat conftest.err >&5
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); } &&
17464          { ac_try='test -z "$ac_c_werror_flag"
17465                          || test ! -s conftest.err'
17466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467   (eval $ac_try) 2>&5
17468   ac_status=$?
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); }; } &&
17471          { ac_try='test -s conftest$ac_exeext'
17472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473   (eval $ac_try) 2>&5
17474   ac_status=$?
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); }; }; then
17477   eval "$as_ac_var=yes"
17478 else
17479   echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17481
17482 eval "$as_ac_var=no"
17483 fi
17484 rm -f conftest.err conftest.$ac_objext \
17485       conftest$ac_exeext conftest.$ac_ext
17486 fi
17487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17489 if test `eval echo '${'$as_ac_var'}'` = yes; then
17490   cat >>confdefs.h <<_ACEOF
17491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17492 _ACEOF
17493
17494 fi
17495 done
17496
17497
17498         fi
17499
17500
17501
17502
17503
17504
17505
17506
17507   echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
17508 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6
17509 if test "${gl_cv_time_r_posix+set}" = set; then
17510   echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512   cat >conftest.$ac_ext <<_ACEOF
17513 /* confdefs.h.  */
17514 _ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h.  */
17518 #include <time.h>
17519 int
17520 main ()
17521 {
17522 /* We don't need to append 'restrict's to the argument types,
17523            even though the POSIX signature has the 'restrict's,
17524            since C99 says they can't affect type compatibility.  */
17525         struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17526   ;
17527   return 0;
17528 }
17529 _ACEOF
17530 rm -f conftest.$ac_objext
17531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17532   (eval $ac_compile) 2>conftest.er1
17533   ac_status=$?
17534   grep -v '^ *+' conftest.er1 >conftest.err
17535   rm -f conftest.er1
17536   cat conftest.err >&5
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); } &&
17539          { ac_try='test -z "$ac_c_werror_flag"
17540                          || test ! -s conftest.err'
17541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542   (eval $ac_try) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); }; } &&
17546          { ac_try='test -s conftest.$ac_objext'
17547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548   (eval $ac_try) 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); }; }; then
17552   gl_cv_time_r_posix=yes
17553 else
17554   echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557 gl_cv_time_r_posix=no
17558 fi
17559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17560 fi
17561 echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
17562 echo "${ECHO_T}$gl_cv_time_r_posix" >&6
17563   if test $gl_cv_time_r_posix = yes; then
17564
17565 cat >>confdefs.h <<\_ACEOF
17566 #define HAVE_TIME_R_POSIX 1
17567 _ACEOF
17568
17569   else
17570     case $LIBOBJS in
17571     "time_r.$ac_objext"   | \
17572   *" time_r.$ac_objext"   | \
17573     "time_r.$ac_objext "* | \
17574   *" time_r.$ac_objext "* ) ;;
17575   *) LIBOBJS="$LIBOBJS time_r.$ac_objext" ;;
17576 esac
17577
17578
17579   :
17580
17581   fi
17582
17583
17584
17585
17586   :
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597   :
17598
17599
17600
17601
17602
17603   echo "$as_me:$LINENO: checking for struct timespec" >&5
17604 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
17605 if test "${fu_cv_sys_struct_timespec+set}" = set; then
17606   echo $ECHO_N "(cached) $ECHO_C" >&6
17607 else
17608   cat >conftest.$ac_ext <<_ACEOF
17609 /* confdefs.h.  */
17610 _ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h.  */
17614
17615 #      if TIME_WITH_SYS_TIME
17616 #       include <sys/time.h>
17617 #       include <time.h>
17618 #      else
17619 #       if HAVE_SYS_TIME_H
17620 #        include <sys/time.h>
17621 #       else
17622 #        include <time.h>
17623 #       endif
17624 #      endif
17625
17626 int
17627 main ()
17628 {
17629 static struct timespec x; x.tv_sec = x.tv_nsec;
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 rm -f conftest.$ac_objext
17635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17636   (eval $ac_compile) 2>conftest.er1
17637   ac_status=$?
17638   grep -v '^ *+' conftest.er1 >conftest.err
17639   rm -f conftest.er1
17640   cat conftest.err >&5
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); } &&
17643          { ac_try='test -z "$ac_c_werror_flag"
17644                          || test ! -s conftest.err'
17645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646   (eval $ac_try) 2>&5
17647   ac_status=$?
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); }; } &&
17650          { ac_try='test -s conftest.$ac_objext'
17651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652   (eval $ac_try) 2>&5
17653   ac_status=$?
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); }; }; then
17656   fu_cv_sys_struct_timespec=yes
17657 else
17658   echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17660
17661 fu_cv_sys_struct_timespec=no
17662 fi
17663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17664
17665 fi
17666 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
17667 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
17668
17669   if test $fu_cv_sys_struct_timespec = yes; then
17670
17671 cat >>confdefs.h <<\_ACEOF
17672 #define HAVE_STRUCT_TIMESPEC 1
17673 _ACEOF
17674
17675   fi
17676
17677   echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
17678 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
17679 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
17680   echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682   ac_save_CPPFLAGS="$CPPFLAGS"
17683     ac_cv_struct_st_mtim_nsec=no
17684     # tv_nsec -- the usual case
17685     # _tv_nsec -- Solaris 2.6, if
17686     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
17687     #    && !defined __EXTENSIONS__)
17688     # st__tim.tv_nsec -- UnixWare 2.1.2
17689     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
17690       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
17691       cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h.  */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h.  */
17697 #include <sys/types.h>
17698 #include <sys/stat.h>
17699 int
17700 main ()
17701 {
17702 struct stat s; s.st_mtim.ST_MTIM_NSEC;
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext
17708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17709   (eval $ac_compile) 2>conftest.er1
17710   ac_status=$?
17711   grep -v '^ *+' conftest.er1 >conftest.err
17712   rm -f conftest.er1
17713   cat conftest.err >&5
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); } &&
17716          { ac_try='test -z "$ac_c_werror_flag"
17717                          || test ! -s conftest.err'
17718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719   (eval $ac_try) 2>&5
17720   ac_status=$?
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); }; } &&
17723          { ac_try='test -s conftest.$ac_objext'
17724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725   (eval $ac_try) 2>&5
17726   ac_status=$?
17727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728   (exit $ac_status); }; }; then
17729   ac_cv_struct_st_mtim_nsec=$ac_val; break
17730 else
17731   echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17733
17734 fi
17735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17736     done
17737     CPPFLAGS="$ac_save_CPPFLAGS"
17738 fi
17739 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
17740 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
17741
17742   if test $ac_cv_struct_st_mtim_nsec != no; then
17743
17744 cat >>confdefs.h <<_ACEOF
17745 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
17746 _ACEOF
17747
17748   fi
17749
17750
17751
17752
17753
17754   echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
17755 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
17756 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
17757   echo $ECHO_N "(cached) $ECHO_C" >&6
17758 else
17759   cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h.  */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h.  */
17765 #include <time.h>
17766
17767 int
17768 main ()
17769 {
17770 #ifndef nanosleep
17771   char *p = (char *) nanosleep;
17772 #endif
17773
17774   ;
17775   return 0;
17776 }
17777 _ACEOF
17778 rm -f conftest.$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780   (eval $ac_compile) 2>conftest.er1
17781   ac_status=$?
17782   grep -v '^ *+' conftest.er1 >conftest.err
17783   rm -f conftest.er1
17784   cat conftest.err >&5
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); } &&
17787          { ac_try='test -z "$ac_c_werror_flag"
17788                          || test ! -s conftest.err'
17789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790   (eval $ac_try) 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; } &&
17794          { ac_try='test -s conftest.$ac_objext'
17795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796   (eval $ac_try) 2>&5
17797   ac_status=$?
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); }; }; then
17800   ac_cv_have_decl_nanosleep=yes
17801 else
17802   echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17804
17805 ac_cv_have_decl_nanosleep=no
17806 fi
17807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17808 fi
17809 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
17810 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
17811 if test $ac_cv_have_decl_nanosleep = yes; then
17812
17813 cat >>confdefs.h <<_ACEOF
17814 #define HAVE_DECL_NANOSLEEP 1
17815 _ACEOF
17816
17817
17818 else
17819   cat >>confdefs.h <<_ACEOF
17820 #define HAVE_DECL_NANOSLEEP 0
17821 _ACEOF
17822
17823
17824 fi
17825
17826
17827
17828 echo "$as_me:$LINENO: checking for inline" >&5
17829 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17830 if test "${ac_cv_c_inline+set}" = set; then
17831   echo $ECHO_N "(cached) $ECHO_C" >&6
17832 else
17833   ac_cv_c_inline=no
17834 for ac_kw in inline __inline__ __inline; do
17835   cat >conftest.$ac_ext <<_ACEOF
17836 /* confdefs.h.  */
17837 _ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h.  */
17841 #ifndef __cplusplus
17842 typedef int foo_t;
17843 static $ac_kw foo_t static_foo () {return 0; }
17844 $ac_kw foo_t foo () {return 0; }
17845 #endif
17846
17847 _ACEOF
17848 rm -f conftest.$ac_objext
17849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17850   (eval $ac_compile) 2>conftest.er1
17851   ac_status=$?
17852   grep -v '^ *+' conftest.er1 >conftest.err
17853   rm -f conftest.er1
17854   cat conftest.err >&5
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); } &&
17857          { ac_try='test -z "$ac_c_werror_flag"
17858                          || test ! -s conftest.err'
17859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860   (eval $ac_try) 2>&5
17861   ac_status=$?
17862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863   (exit $ac_status); }; } &&
17864          { ac_try='test -s conftest.$ac_objext'
17865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866   (eval $ac_try) 2>&5
17867   ac_status=$?
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); }; }; then
17870   ac_cv_c_inline=$ac_kw; break
17871 else
17872   echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17874
17875 fi
17876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17877 done
17878
17879 fi
17880 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17881 echo "${ECHO_T}$ac_cv_c_inline" >&6
17882
17883
17884 case $ac_cv_c_inline in
17885   inline | yes) ;;
17886   *)
17887     case $ac_cv_c_inline in
17888       no) ac_val=;;
17889       *) ac_val=$ac_cv_c_inline;;
17890     esac
17891     cat >>confdefs.h <<_ACEOF
17892 #ifndef __cplusplus
17893 #define inline $ac_val
17894 #endif
17895 _ACEOF
17896     ;;
17897 esac
17898
17899
17900 for ac_header in stdlib.h
17901 do
17902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17904   echo "$as_me:$LINENO: checking for $ac_header" >&5
17905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17907   echo $ECHO_N "(cached) $ECHO_C" >&6
17908 fi
17909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17911 else
17912   # Is the header compilable?
17913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17915 cat >conftest.$ac_ext <<_ACEOF
17916 /* confdefs.h.  */
17917 _ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h.  */
17921 $ac_includes_default
17922 #include <$ac_header>
17923 _ACEOF
17924 rm -f conftest.$ac_objext
17925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17926   (eval $ac_compile) 2>conftest.er1
17927   ac_status=$?
17928   grep -v '^ *+' conftest.er1 >conftest.err
17929   rm -f conftest.er1
17930   cat conftest.err >&5
17931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932   (exit $ac_status); } &&
17933          { ac_try='test -z "$ac_c_werror_flag"
17934                          || test ! -s conftest.err'
17935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936   (eval $ac_try) 2>&5
17937   ac_status=$?
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); }; } &&
17940          { ac_try='test -s conftest.$ac_objext'
17941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942   (eval $ac_try) 2>&5
17943   ac_status=$?
17944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945   (exit $ac_status); }; }; then
17946   ac_header_compiler=yes
17947 else
17948   echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17950
17951 ac_header_compiler=no
17952 fi
17953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17955 echo "${ECHO_T}$ac_header_compiler" >&6
17956
17957 # Is the header present?
17958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17960 cat >conftest.$ac_ext <<_ACEOF
17961 /* confdefs.h.  */
17962 _ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h.  */
17966 #include <$ac_header>
17967 _ACEOF
17968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17970   ac_status=$?
17971   grep -v '^ *+' conftest.er1 >conftest.err
17972   rm -f conftest.er1
17973   cat conftest.err >&5
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); } >/dev/null; then
17976   if test -s conftest.err; then
17977     ac_cpp_err=$ac_c_preproc_warn_flag
17978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17979   else
17980     ac_cpp_err=
17981   fi
17982 else
17983   ac_cpp_err=yes
17984 fi
17985 if test -z "$ac_cpp_err"; then
17986   ac_header_preproc=yes
17987 else
17988   echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17990
17991   ac_header_preproc=no
17992 fi
17993 rm -f conftest.err conftest.$ac_ext
17994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17995 echo "${ECHO_T}$ac_header_preproc" >&6
17996
17997 # So?  What about this header?
17998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17999   yes:no: )
18000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18004     ac_header_preproc=yes
18005     ;;
18006   no:yes:* )
18007     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18009     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18010 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18011     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18013     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18014 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18017     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18019     (
18020       cat <<\_ASBOX
18021 ## ------------------------------ ##
18022 ## Report this to bug-cvs@gnu.org ##
18023 ## ------------------------------ ##
18024 _ASBOX
18025     ) |
18026       sed "s/^/$as_me: WARNING:     /" >&2
18027     ;;
18028 esac
18029 echo "$as_me:$LINENO: checking for $ac_header" >&5
18030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18032   echo $ECHO_N "(cached) $ECHO_C" >&6
18033 else
18034   eval "$as_ac_Header=\$ac_header_preproc"
18035 fi
18036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18038
18039 fi
18040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18041   cat >>confdefs.h <<_ACEOF
18042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18043 _ACEOF
18044
18045 fi
18046
18047 done
18048
18049 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
18050 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
18051 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
18052   echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054   if test "$cross_compiling" = yes; then
18055   ac_cv_func_malloc_0_nonnull=no
18056 else
18057   cat >conftest.$ac_ext <<_ACEOF
18058 /* confdefs.h.  */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h.  */
18063 #if STDC_HEADERS || HAVE_STDLIB_H
18064 # include <stdlib.h>
18065 #else
18066 char *malloc ();
18067 #endif
18068
18069 int
18070 main ()
18071 {
18072 exit (malloc (0) ? 0 : 1);
18073   ;
18074   return 0;
18075 }
18076 _ACEOF
18077 rm -f conftest$ac_exeext
18078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18079   (eval $ac_link) 2>&5
18080   ac_status=$?
18081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084   (eval $ac_try) 2>&5
18085   ac_status=$?
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); }; }; then
18088   ac_cv_func_malloc_0_nonnull=yes
18089 else
18090   echo "$as_me: program exited with status $ac_status" >&5
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18093
18094 ( exit $ac_status )
18095 ac_cv_func_malloc_0_nonnull=no
18096 fi
18097 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18098 fi
18099 fi
18100 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
18101 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
18102 if test $ac_cv_func_malloc_0_nonnull = yes; then
18103
18104 cat >>confdefs.h <<\_ACEOF
18105 #define HAVE_MALLOC 1
18106 _ACEOF
18107
18108 else
18109   cat >>confdefs.h <<\_ACEOF
18110 #define HAVE_MALLOC 0
18111 _ACEOF
18112
18113    case $LIBOBJS in
18114     "malloc.$ac_objext"   | \
18115   *" malloc.$ac_objext"   | \
18116     "malloc.$ac_objext "* | \
18117   *" malloc.$ac_objext "* ) ;;
18118   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
18119 esac
18120
18121
18122 cat >>confdefs.h <<\_ACEOF
18123 #define malloc rpl_malloc
18124 _ACEOF
18125
18126 fi
18127
18128
18129
18130
18131
18132     if test X"$ac_cv_func_malloc_0_nonnull" = Xno || test X"$ac_cv_func_malloc_works" = Xno; then
18133
18134   :
18135
18136   fi
18137
18138
18139 for ac_header in stdlib.h
18140 do
18141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18143   echo "$as_me:$LINENO: checking for $ac_header" >&5
18144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18146   echo $ECHO_N "(cached) $ECHO_C" >&6
18147 fi
18148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18150 else
18151   # Is the header compilable?
18152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18154 cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h.  */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h.  */
18160 $ac_includes_default
18161 #include <$ac_header>
18162 _ACEOF
18163 rm -f conftest.$ac_objext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18165   (eval $ac_compile) 2>conftest.er1
18166   ac_status=$?
18167   grep -v '^ *+' conftest.er1 >conftest.err
18168   rm -f conftest.er1
18169   cat conftest.err >&5
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); } &&
18172          { ac_try='test -z "$ac_c_werror_flag"
18173                          || test ! -s conftest.err'
18174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175   (eval $ac_try) 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); }; } &&
18179          { ac_try='test -s conftest.$ac_objext'
18180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181   (eval $ac_try) 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; }; then
18185   ac_header_compiler=yes
18186 else
18187   echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18189
18190 ac_header_compiler=no
18191 fi
18192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18194 echo "${ECHO_T}$ac_header_compiler" >&6
18195
18196 # Is the header present?
18197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18199 cat >conftest.$ac_ext <<_ACEOF
18200 /* confdefs.h.  */
18201 _ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h.  */
18205 #include <$ac_header>
18206 _ACEOF
18207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18209   ac_status=$?
18210   grep -v '^ *+' conftest.er1 >conftest.err
18211   rm -f conftest.er1
18212   cat conftest.err >&5
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); } >/dev/null; then
18215   if test -s conftest.err; then
18216     ac_cpp_err=$ac_c_preproc_warn_flag
18217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18218   else
18219     ac_cpp_err=
18220   fi
18221 else
18222   ac_cpp_err=yes
18223 fi
18224 if test -z "$ac_cpp_err"; then
18225   ac_header_preproc=yes
18226 else
18227   echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18229
18230   ac_header_preproc=no
18231 fi
18232 rm -f conftest.err conftest.$ac_ext
18233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18234 echo "${ECHO_T}$ac_header_preproc" >&6
18235
18236 # So?  What about this header?
18237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18238   yes:no: )
18239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18243     ac_header_preproc=yes
18244     ;;
18245   no:yes:* )
18246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18258     (
18259       cat <<\_ASBOX
18260 ## ------------------------------ ##
18261 ## Report this to bug-cvs@gnu.org ##
18262 ## ------------------------------ ##
18263 _ASBOX
18264     ) |
18265       sed "s/^/$as_me: WARNING:     /" >&2
18266     ;;
18267 esac
18268 echo "$as_me:$LINENO: checking for $ac_header" >&5
18269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18271   echo $ECHO_N "(cached) $ECHO_C" >&6
18272 else
18273   eval "$as_ac_Header=\$ac_header_preproc"
18274 fi
18275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18277
18278 fi
18279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18280   cat >>confdefs.h <<_ACEOF
18281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18282 _ACEOF
18283
18284 fi
18285
18286 done
18287
18288 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
18289 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
18290 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
18291   echo $ECHO_N "(cached) $ECHO_C" >&6
18292 else
18293   if test "$cross_compiling" = yes; then
18294   ac_cv_func_realloc_0_nonnull=no
18295 else
18296   cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h.  */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h.  */
18302 #if STDC_HEADERS || HAVE_STDLIB_H
18303 # include <stdlib.h>
18304 #else
18305 char *realloc ();
18306 #endif
18307
18308 int
18309 main ()
18310 {
18311 exit (realloc (0, 0) ? 0 : 1);
18312   ;
18313   return 0;
18314 }
18315 _ACEOF
18316 rm -f conftest$ac_exeext
18317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18318   (eval $ac_link) 2>&5
18319   ac_status=$?
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323   (eval $ac_try) 2>&5
18324   ac_status=$?
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); }; }; then
18327   ac_cv_func_realloc_0_nonnull=yes
18328 else
18329   echo "$as_me: program exited with status $ac_status" >&5
18330 echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18332
18333 ( exit $ac_status )
18334 ac_cv_func_realloc_0_nonnull=no
18335 fi
18336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18337 fi
18338 fi
18339 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
18340 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
18341 if test $ac_cv_func_realloc_0_nonnull = yes; then
18342
18343 cat >>confdefs.h <<\_ACEOF
18344 #define HAVE_REALLOC 1
18345 _ACEOF
18346
18347 else
18348   cat >>confdefs.h <<\_ACEOF
18349 #define HAVE_REALLOC 0
18350 _ACEOF
18351
18352    case $LIBOBJS in
18353     "realloc.$ac_objext"   | \
18354   *" realloc.$ac_objext"   | \
18355     "realloc.$ac_objext "* | \
18356   *" realloc.$ac_objext "* ) ;;
18357   *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
18358 esac
18359
18360
18361 cat >>confdefs.h <<\_ACEOF
18362 #define realloc rpl_realloc
18363 _ACEOF
18364
18365 fi
18366
18367
18368
18369
18370
18371     if test X"$ac_cv_func_realloc_0_nonnull" = Xno || test X"$ac_cv_func_realloc_works" = Xno; then
18372
18373   :
18374
18375   fi
18376
18377
18378
18379   :
18380
18381
18382
18383
18384
18385   :
18386
18387
18388   :
18389
18390
18391
18392
18393 for ac_header in stdint.h
18394 do
18395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18397   echo "$as_me:$LINENO: checking for $ac_header" >&5
18398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18400   echo $ECHO_N "(cached) $ECHO_C" >&6
18401 fi
18402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18404 else
18405   # Is the header compilable?
18406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18408 cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h.  */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h.  */
18414 $ac_includes_default
18415 #include <$ac_header>
18416 _ACEOF
18417 rm -f conftest.$ac_objext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18419   (eval $ac_compile) 2>conftest.er1
18420   ac_status=$?
18421   grep -v '^ *+' conftest.er1 >conftest.err
18422   rm -f conftest.er1
18423   cat conftest.err >&5
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); } &&
18426          { ac_try='test -z "$ac_c_werror_flag"
18427                          || test ! -s conftest.err'
18428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429   (eval $ac_try) 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); }; } &&
18433          { ac_try='test -s conftest.$ac_objext'
18434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435   (eval $ac_try) 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); }; }; then
18439   ac_header_compiler=yes
18440 else
18441   echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18443
18444 ac_header_compiler=no
18445 fi
18446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18448 echo "${ECHO_T}$ac_header_compiler" >&6
18449
18450 # Is the header present?
18451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18453 cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h.  */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h.  */
18459 #include <$ac_header>
18460 _ACEOF
18461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18463   ac_status=$?
18464   grep -v '^ *+' conftest.er1 >conftest.err
18465   rm -f conftest.er1
18466   cat conftest.err >&5
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); } >/dev/null; then
18469   if test -s conftest.err; then
18470     ac_cpp_err=$ac_c_preproc_warn_flag
18471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18472   else
18473     ac_cpp_err=
18474   fi
18475 else
18476   ac_cpp_err=yes
18477 fi
18478 if test -z "$ac_cpp_err"; then
18479   ac_header_preproc=yes
18480 else
18481   echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18483
18484   ac_header_preproc=no
18485 fi
18486 rm -f conftest.err conftest.$ac_ext
18487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18488 echo "${ECHO_T}$ac_header_preproc" >&6
18489
18490 # So?  What about this header?
18491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18492   yes:no: )
18493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18497     ac_header_preproc=yes
18498     ;;
18499   no:yes:* )
18500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18502     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18503 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18504     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18506     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18507 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18510     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18512     (
18513       cat <<\_ASBOX
18514 ## ------------------------------ ##
18515 ## Report this to bug-cvs@gnu.org ##
18516 ## ------------------------------ ##
18517 _ASBOX
18518     ) |
18519       sed "s/^/$as_me: WARNING:     /" >&2
18520     ;;
18521 esac
18522 echo "$as_me:$LINENO: checking for $ac_header" >&5
18523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18525   echo $ECHO_N "(cached) $ECHO_C" >&6
18526 else
18527   eval "$as_ac_Header=\$ac_header_preproc"
18528 fi
18529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18531
18532 fi
18533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18534   cat >>confdefs.h <<_ACEOF
18535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18536 _ACEOF
18537
18538 fi
18539
18540 done
18541
18542     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
18543 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
18544   result=
18545   cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h.  */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h.  */
18551
18552 #include <limits.h>
18553 #if HAVE_STDINT_H
18554 #include <stdint.h>
18555 #endif
18556 #ifdef SIZE_MAX
18557 Found it
18558 #endif
18559
18560 _ACEOF
18561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18562   $EGREP "Found it" >/dev/null 2>&1; then
18563   result=yes
18564 fi
18565 rm -f conftest*
18566
18567   if test -z "$result"; then
18568                     if test "$cross_compiling" = yes; then
18569   # Depending upon the size, compute the lo and hi bounds.
18570 cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h.  */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h.  */
18576 #include <stddef.h>
18577 int
18578 main ()
18579 {
18580 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
18581 test_array [0] = 0
18582
18583   ;
18584   return 0;
18585 }
18586 _ACEOF
18587 rm -f conftest.$ac_objext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18589   (eval $ac_compile) 2>conftest.er1
18590   ac_status=$?
18591   grep -v '^ *+' conftest.er1 >conftest.err
18592   rm -f conftest.er1
18593   cat conftest.err >&5
18594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595   (exit $ac_status); } &&
18596          { ac_try='test -z "$ac_c_werror_flag"
18597                          || test ! -s conftest.err'
18598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599   (eval $ac_try) 2>&5
18600   ac_status=$?
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); }; } &&
18603          { ac_try='test -s conftest.$ac_objext'
18604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605   (eval $ac_try) 2>&5
18606   ac_status=$?
18607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); }; }; then
18609   ac_lo=0 ac_mid=0
18610   while :; do
18611     cat >conftest.$ac_ext <<_ACEOF
18612 /* confdefs.h.  */
18613 _ACEOF
18614 cat confdefs.h >>conftest.$ac_ext
18615 cat >>conftest.$ac_ext <<_ACEOF
18616 /* end confdefs.h.  */
18617 #include <stddef.h>
18618 int
18619 main ()
18620 {
18621 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
18622 test_array [0] = 0
18623
18624   ;
18625   return 0;
18626 }
18627 _ACEOF
18628 rm -f conftest.$ac_objext
18629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18630   (eval $ac_compile) 2>conftest.er1
18631   ac_status=$?
18632   grep -v '^ *+' conftest.er1 >conftest.err
18633   rm -f conftest.er1
18634   cat conftest.err >&5
18635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636   (exit $ac_status); } &&
18637          { ac_try='test -z "$ac_c_werror_flag"
18638                          || test ! -s conftest.err'
18639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640   (eval $ac_try) 2>&5
18641   ac_status=$?
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); }; } &&
18644          { ac_try='test -s conftest.$ac_objext'
18645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646   (eval $ac_try) 2>&5
18647   ac_status=$?
18648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649   (exit $ac_status); }; }; then
18650   ac_hi=$ac_mid; break
18651 else
18652   echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18654
18655 ac_lo=`expr $ac_mid + 1`
18656                     if test $ac_lo -le $ac_mid; then
18657                       ac_lo= ac_hi=
18658                       break
18659                     fi
18660                     ac_mid=`expr 2 '*' $ac_mid + 1`
18661 fi
18662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18663   done
18664 else
18665   echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18667
18668 cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h.  */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h.  */
18674 #include <stddef.h>
18675 int
18676 main ()
18677 {
18678 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
18679 test_array [0] = 0
18680
18681   ;
18682   return 0;
18683 }
18684 _ACEOF
18685 rm -f conftest.$ac_objext
18686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18687   (eval $ac_compile) 2>conftest.er1
18688   ac_status=$?
18689   grep -v '^ *+' conftest.er1 >conftest.err
18690   rm -f conftest.er1
18691   cat conftest.err >&5
18692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693   (exit $ac_status); } &&
18694          { ac_try='test -z "$ac_c_werror_flag"
18695                          || test ! -s conftest.err'
18696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697   (eval $ac_try) 2>&5
18698   ac_status=$?
18699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700   (exit $ac_status); }; } &&
18701          { ac_try='test -s conftest.$ac_objext'
18702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703   (eval $ac_try) 2>&5
18704   ac_status=$?
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); }; }; then
18707   ac_hi=-1 ac_mid=-1
18708   while :; do
18709     cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h.  */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h.  */
18715 #include <stddef.h>
18716 int
18717 main ()
18718 {
18719 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
18720 test_array [0] = 0
18721
18722   ;
18723   return 0;
18724 }
18725 _ACEOF
18726 rm -f conftest.$ac_objext
18727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18728   (eval $ac_compile) 2>conftest.er1
18729   ac_status=$?
18730   grep -v '^ *+' conftest.er1 >conftest.err
18731   rm -f conftest.er1
18732   cat conftest.err >&5
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); } &&
18735          { ac_try='test -z "$ac_c_werror_flag"
18736                          || test ! -s conftest.err'
18737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738   (eval $ac_try) 2>&5
18739   ac_status=$?
18740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741   (exit $ac_status); }; } &&
18742          { ac_try='test -s conftest.$ac_objext'
18743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744   (eval $ac_try) 2>&5
18745   ac_status=$?
18746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747   (exit $ac_status); }; }; then
18748   ac_lo=$ac_mid; break
18749 else
18750   echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18752
18753 ac_hi=`expr '(' $ac_mid ')' - 1`
18754                        if test $ac_mid -le $ac_hi; then
18755                          ac_lo= ac_hi=
18756                          break
18757                        fi
18758                        ac_mid=`expr 2 '*' $ac_mid`
18759 fi
18760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18761   done
18762 else
18763   echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18765
18766 ac_lo= ac_hi=
18767 fi
18768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18769 fi
18770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18771 # Binary search between lo and hi bounds.
18772 while test "x$ac_lo" != "x$ac_hi"; do
18773   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18774   cat >conftest.$ac_ext <<_ACEOF
18775 /* confdefs.h.  */
18776 _ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h.  */
18780 #include <stddef.h>
18781 int
18782 main ()
18783 {
18784 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
18785 test_array [0] = 0
18786
18787   ;
18788   return 0;
18789 }
18790 _ACEOF
18791 rm -f conftest.$ac_objext
18792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18793   (eval $ac_compile) 2>conftest.er1
18794   ac_status=$?
18795   grep -v '^ *+' conftest.er1 >conftest.err
18796   rm -f conftest.er1
18797   cat conftest.err >&5
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); } &&
18800          { ac_try='test -z "$ac_c_werror_flag"
18801                          || test ! -s conftest.err'
18802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803   (eval $ac_try) 2>&5
18804   ac_status=$?
18805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806   (exit $ac_status); }; } &&
18807          { ac_try='test -s conftest.$ac_objext'
18808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809   (eval $ac_try) 2>&5
18810   ac_status=$?
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); }; }; then
18813   ac_hi=$ac_mid
18814 else
18815   echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18817
18818 ac_lo=`expr '(' $ac_mid ')' + 1`
18819 fi
18820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18821 done
18822 case $ac_lo in
18823 ?*) res_hi=$ac_lo;;
18824 '') result=? ;;
18825 esac
18826 else
18827   if test "$cross_compiling" = yes; then
18828   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18829 See \`config.log' for more details." >&5
18830 echo "$as_me: error: cannot run test program while cross compiling
18831 See \`config.log' for more details." >&2;}
18832    { (exit 1); exit 1; }; }
18833 else
18834   cat >conftest.$ac_ext <<_ACEOF
18835 /* confdefs.h.  */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h.  */
18840 #include <stddef.h>
18841 long longval () { return ~(size_t)0 / 10; }
18842 unsigned long ulongval () { return ~(size_t)0 / 10; }
18843 #include <stdio.h>
18844 #include <stdlib.h>
18845 int
18846 main ()
18847 {
18848
18849   FILE *f = fopen ("conftest.val", "w");
18850   if (! f)
18851     exit (1);
18852   if ((~(size_t)0 / 10) < 0)
18853     {
18854       long i = longval ();
18855       if (i != (~(size_t)0 / 10))
18856         exit (1);
18857       fprintf (f, "%ld\n", i);
18858     }
18859   else
18860     {
18861       unsigned long i = ulongval ();
18862       if (i != (~(size_t)0 / 10))
18863         exit (1);
18864       fprintf (f, "%lu\n", i);
18865     }
18866   exit (ferror (f) || fclose (f) != 0);
18867
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 rm -f conftest$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874   (eval $ac_link) 2>&5
18875   ac_status=$?
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879   (eval $ac_try) 2>&5
18880   ac_status=$?
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); }; }; then
18883   res_hi=`cat conftest.val`
18884 else
18885   echo "$as_me: program exited with status $ac_status" >&5
18886 echo "$as_me: failed program was:" >&5
18887 sed 's/^/| /' conftest.$ac_ext >&5
18888
18889 ( exit $ac_status )
18890 result=?
18891 fi
18892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18893 fi
18894 fi
18895 rm -f conftest.val
18896     if test "$cross_compiling" = yes; then
18897   # Depending upon the size, compute the lo and hi bounds.
18898 cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h.  */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h.  */
18904 #include <stddef.h>
18905 int
18906 main ()
18907 {
18908 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
18909 test_array [0] = 0
18910
18911   ;
18912   return 0;
18913 }
18914 _ACEOF
18915 rm -f conftest.$ac_objext
18916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18917   (eval $ac_compile) 2>conftest.er1
18918   ac_status=$?
18919   grep -v '^ *+' conftest.er1 >conftest.err
18920   rm -f conftest.er1
18921   cat conftest.err >&5
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); } &&
18924          { ac_try='test -z "$ac_c_werror_flag"
18925                          || test ! -s conftest.err'
18926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927   (eval $ac_try) 2>&5
18928   ac_status=$?
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); }; } &&
18931          { ac_try='test -s conftest.$ac_objext'
18932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933   (eval $ac_try) 2>&5
18934   ac_status=$?
18935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); }; }; then
18937   ac_lo=0 ac_mid=0
18938   while :; do
18939     cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h.  */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h.  */
18945 #include <stddef.h>
18946 int
18947 main ()
18948 {
18949 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
18950 test_array [0] = 0
18951
18952   ;
18953   return 0;
18954 }
18955 _ACEOF
18956 rm -f conftest.$ac_objext
18957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18958   (eval $ac_compile) 2>conftest.er1
18959   ac_status=$?
18960   grep -v '^ *+' conftest.er1 >conftest.err
18961   rm -f conftest.er1
18962   cat conftest.err >&5
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); } &&
18965          { ac_try='test -z "$ac_c_werror_flag"
18966                          || test ! -s conftest.err'
18967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968   (eval $ac_try) 2>&5
18969   ac_status=$?
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); }; } &&
18972          { ac_try='test -s conftest.$ac_objext'
18973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974   (eval $ac_try) 2>&5
18975   ac_status=$?
18976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977   (exit $ac_status); }; }; then
18978   ac_hi=$ac_mid; break
18979 else
18980   echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18982
18983 ac_lo=`expr $ac_mid + 1`
18984                     if test $ac_lo -le $ac_mid; then
18985                       ac_lo= ac_hi=
18986                       break
18987                     fi
18988                     ac_mid=`expr 2 '*' $ac_mid + 1`
18989 fi
18990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18991   done
18992 else
18993   echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18995
18996 cat >conftest.$ac_ext <<_ACEOF
18997 /* confdefs.h.  */
18998 _ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h.  */
19002 #include <stddef.h>
19003 int
19004 main ()
19005 {
19006 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
19007 test_array [0] = 0
19008
19009   ;
19010   return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest.$ac_objext
19014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19015   (eval $ac_compile) 2>conftest.er1
19016   ac_status=$?
19017   grep -v '^ *+' conftest.er1 >conftest.err
19018   rm -f conftest.er1
19019   cat conftest.err >&5
19020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021   (exit $ac_status); } &&
19022          { ac_try='test -z "$ac_c_werror_flag"
19023                          || test ! -s conftest.err'
19024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025   (eval $ac_try) 2>&5
19026   ac_status=$?
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); }; } &&
19029          { ac_try='test -s conftest.$ac_objext'
19030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031   (eval $ac_try) 2>&5
19032   ac_status=$?
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); }; }; then
19035   ac_hi=-1 ac_mid=-1
19036   while :; do
19037     cat >conftest.$ac_ext <<_ACEOF
19038 /* confdefs.h.  */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h.  */
19043 #include <stddef.h>
19044 int
19045 main ()
19046 {
19047 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
19048 test_array [0] = 0
19049
19050   ;
19051   return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056   (eval $ac_compile) 2>conftest.er1
19057   ac_status=$?
19058   grep -v '^ *+' conftest.er1 >conftest.err
19059   rm -f conftest.er1
19060   cat conftest.err >&5
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } &&
19063          { ac_try='test -z "$ac_c_werror_flag"
19064                          || test ! -s conftest.err'
19065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066   (eval $ac_try) 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); }; } &&
19070          { ac_try='test -s conftest.$ac_objext'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; }; then
19076   ac_lo=$ac_mid; break
19077 else
19078   echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081 ac_hi=`expr '(' $ac_mid ')' - 1`
19082                        if test $ac_mid -le $ac_hi; then
19083                          ac_lo= ac_hi=
19084                          break
19085                        fi
19086                        ac_mid=`expr 2 '*' $ac_mid`
19087 fi
19088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19089   done
19090 else
19091   echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19093
19094 ac_lo= ac_hi=
19095 fi
19096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19097 fi
19098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19099 # Binary search between lo and hi bounds.
19100 while test "x$ac_lo" != "x$ac_hi"; do
19101   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19102   cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h.  */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h.  */
19108 #include <stddef.h>
19109 int
19110 main ()
19111 {
19112 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
19113 test_array [0] = 0
19114
19115   ;
19116   return 0;
19117 }
19118 _ACEOF
19119 rm -f conftest.$ac_objext
19120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19121   (eval $ac_compile) 2>conftest.er1
19122   ac_status=$?
19123   grep -v '^ *+' conftest.er1 >conftest.err
19124   rm -f conftest.er1
19125   cat conftest.err >&5
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); } &&
19128          { ac_try='test -z "$ac_c_werror_flag"
19129                          || test ! -s conftest.err'
19130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131   (eval $ac_try) 2>&5
19132   ac_status=$?
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); }; } &&
19135          { ac_try='test -s conftest.$ac_objext'
19136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137   (eval $ac_try) 2>&5
19138   ac_status=$?
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); }; }; then
19141   ac_hi=$ac_mid
19142 else
19143   echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19145
19146 ac_lo=`expr '(' $ac_mid ')' + 1`
19147 fi
19148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19149 done
19150 case $ac_lo in
19151 ?*) res_lo=$ac_lo;;
19152 '') result=? ;;
19153 esac
19154 else
19155   if test "$cross_compiling" = yes; then
19156   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19157 See \`config.log' for more details." >&5
19158 echo "$as_me: error: cannot run test program while cross compiling
19159 See \`config.log' for more details." >&2;}
19160    { (exit 1); exit 1; }; }
19161 else
19162   cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h.  */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h.  */
19168 #include <stddef.h>
19169 long longval () { return ~(size_t)0 % 10; }
19170 unsigned long ulongval () { return ~(size_t)0 % 10; }
19171 #include <stdio.h>
19172 #include <stdlib.h>
19173 int
19174 main ()
19175 {
19176
19177   FILE *f = fopen ("conftest.val", "w");
19178   if (! f)
19179     exit (1);
19180   if ((~(size_t)0 % 10) < 0)
19181     {
19182       long i = longval ();
19183       if (i != (~(size_t)0 % 10))
19184         exit (1);
19185       fprintf (f, "%ld\n", i);
19186     }
19187   else
19188     {
19189       unsigned long i = ulongval ();
19190       if (i != (~(size_t)0 % 10))
19191         exit (1);
19192       fprintf (f, "%lu\n", i);
19193     }
19194   exit (ferror (f) || fclose (f) != 0);
19195
19196   ;
19197   return 0;
19198 }
19199 _ACEOF
19200 rm -f conftest$ac_exeext
19201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19202   (eval $ac_link) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207   (eval $ac_try) 2>&5
19208   ac_status=$?
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); }; }; then
19211   res_lo=`cat conftest.val`
19212 else
19213   echo "$as_me: program exited with status $ac_status" >&5
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19216
19217 ( exit $ac_status )
19218 result=?
19219 fi
19220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19221 fi
19222 fi
19223 rm -f conftest.val
19224     if test "$cross_compiling" = yes; then
19225   # Depending upon the size, compute the lo and hi bounds.
19226 cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h.  */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h.  */
19232 #include <stddef.h>
19233 int
19234 main ()
19235 {
19236 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
19237 test_array [0] = 0
19238
19239   ;
19240   return 0;
19241 }
19242 _ACEOF
19243 rm -f conftest.$ac_objext
19244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19245   (eval $ac_compile) 2>conftest.er1
19246   ac_status=$?
19247   grep -v '^ *+' conftest.er1 >conftest.err
19248   rm -f conftest.er1
19249   cat conftest.err >&5
19250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251   (exit $ac_status); } &&
19252          { ac_try='test -z "$ac_c_werror_flag"
19253                          || test ! -s conftest.err'
19254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255   (eval $ac_try) 2>&5
19256   ac_status=$?
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); }; } &&
19259          { ac_try='test -s conftest.$ac_objext'
19260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261   (eval $ac_try) 2>&5
19262   ac_status=$?
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); }; }; then
19265   ac_lo=0 ac_mid=0
19266   while :; do
19267     cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h.  */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h.  */
19273 #include <stddef.h>
19274 int
19275 main ()
19276 {
19277 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
19278 test_array [0] = 0
19279
19280   ;
19281   return 0;
19282 }
19283 _ACEOF
19284 rm -f conftest.$ac_objext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19286   (eval $ac_compile) 2>conftest.er1
19287   ac_status=$?
19288   grep -v '^ *+' conftest.er1 >conftest.err
19289   rm -f conftest.er1
19290   cat conftest.err >&5
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); } &&
19293          { ac_try='test -z "$ac_c_werror_flag"
19294                          || test ! -s conftest.err'
19295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296   (eval $ac_try) 2>&5
19297   ac_status=$?
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); }; } &&
19300          { ac_try='test -s conftest.$ac_objext'
19301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302   (eval $ac_try) 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; }; then
19306   ac_hi=$ac_mid; break
19307 else
19308   echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311 ac_lo=`expr $ac_mid + 1`
19312                     if test $ac_lo -le $ac_mid; then
19313                       ac_lo= ac_hi=
19314                       break
19315                     fi
19316                     ac_mid=`expr 2 '*' $ac_mid + 1`
19317 fi
19318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19319   done
19320 else
19321   echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h.  */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h.  */
19330 #include <stddef.h>
19331 int
19332 main ()
19333 {
19334 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
19335 test_array [0] = 0
19336
19337   ;
19338   return 0;
19339 }
19340 _ACEOF
19341 rm -f conftest.$ac_objext
19342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19343   (eval $ac_compile) 2>conftest.er1
19344   ac_status=$?
19345   grep -v '^ *+' conftest.er1 >conftest.err
19346   rm -f conftest.er1
19347   cat conftest.err >&5
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); } &&
19350          { ac_try='test -z "$ac_c_werror_flag"
19351                          || test ! -s conftest.err'
19352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353   (eval $ac_try) 2>&5
19354   ac_status=$?
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); }; } &&
19357          { ac_try='test -s conftest.$ac_objext'
19358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359   (eval $ac_try) 2>&5
19360   ac_status=$?
19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); }; }; then
19363   ac_hi=-1 ac_mid=-1
19364   while :; do
19365     cat >conftest.$ac_ext <<_ACEOF
19366 /* confdefs.h.  */
19367 _ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h.  */
19371 #include <stddef.h>
19372 int
19373 main ()
19374 {
19375 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
19376 test_array [0] = 0
19377
19378   ;
19379   return 0;
19380 }
19381 _ACEOF
19382 rm -f conftest.$ac_objext
19383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19384   (eval $ac_compile) 2>conftest.er1
19385   ac_status=$?
19386   grep -v '^ *+' conftest.er1 >conftest.err
19387   rm -f conftest.er1
19388   cat conftest.err >&5
19389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390   (exit $ac_status); } &&
19391          { ac_try='test -z "$ac_c_werror_flag"
19392                          || test ! -s conftest.err'
19393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394   (eval $ac_try) 2>&5
19395   ac_status=$?
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); }; } &&
19398          { ac_try='test -s conftest.$ac_objext'
19399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400   (eval $ac_try) 2>&5
19401   ac_status=$?
19402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); }; }; then
19404   ac_lo=$ac_mid; break
19405 else
19406   echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19408
19409 ac_hi=`expr '(' $ac_mid ')' - 1`
19410                        if test $ac_mid -le $ac_hi; then
19411                          ac_lo= ac_hi=
19412                          break
19413                        fi
19414                        ac_mid=`expr 2 '*' $ac_mid`
19415 fi
19416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19417   done
19418 else
19419   echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19421
19422 ac_lo= ac_hi=
19423 fi
19424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19425 fi
19426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19427 # Binary search between lo and hi bounds.
19428 while test "x$ac_lo" != "x$ac_hi"; do
19429   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19430   cat >conftest.$ac_ext <<_ACEOF
19431 /* confdefs.h.  */
19432 _ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h.  */
19436 #include <stddef.h>
19437 int
19438 main ()
19439 {
19440 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
19441 test_array [0] = 0
19442
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 rm -f conftest.$ac_objext
19448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19449   (eval $ac_compile) 2>conftest.er1
19450   ac_status=$?
19451   grep -v '^ *+' conftest.er1 >conftest.err
19452   rm -f conftest.er1
19453   cat conftest.err >&5
19454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); } &&
19456          { ac_try='test -z "$ac_c_werror_flag"
19457                          || test ! -s conftest.err'
19458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459   (eval $ac_try) 2>&5
19460   ac_status=$?
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }; } &&
19463          { ac_try='test -s conftest.$ac_objext'
19464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465   (eval $ac_try) 2>&5
19466   ac_status=$?
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); }; }; then
19469   ac_hi=$ac_mid
19470 else
19471   echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19473
19474 ac_lo=`expr '(' $ac_mid ')' + 1`
19475 fi
19476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19477 done
19478 case $ac_lo in
19479 ?*) fits_in_uint=$ac_lo;;
19480 '') result=? ;;
19481 esac
19482 else
19483   if test "$cross_compiling" = yes; then
19484   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19485 See \`config.log' for more details." >&5
19486 echo "$as_me: error: cannot run test program while cross compiling
19487 See \`config.log' for more details." >&2;}
19488    { (exit 1); exit 1; }; }
19489 else
19490   cat >conftest.$ac_ext <<_ACEOF
19491 /* confdefs.h.  */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h.  */
19496 #include <stddef.h>
19497 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
19498 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
19499 #include <stdio.h>
19500 #include <stdlib.h>
19501 int
19502 main ()
19503 {
19504
19505   FILE *f = fopen ("conftest.val", "w");
19506   if (! f)
19507     exit (1);
19508   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
19509     {
19510       long i = longval ();
19511       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
19512         exit (1);
19513       fprintf (f, "%ld\n", i);
19514     }
19515   else
19516     {
19517       unsigned long i = ulongval ();
19518       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
19519         exit (1);
19520       fprintf (f, "%lu\n", i);
19521     }
19522   exit (ferror (f) || fclose (f) != 0);
19523
19524   ;
19525   return 0;
19526 }
19527 _ACEOF
19528 rm -f conftest$ac_exeext
19529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19530   (eval $ac_link) 2>&5
19531   ac_status=$?
19532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535   (eval $ac_try) 2>&5
19536   ac_status=$?
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); }; }; then
19539   fits_in_uint=`cat conftest.val`
19540 else
19541   echo "$as_me: program exited with status $ac_status" >&5
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19544
19545 ( exit $ac_status )
19546 result=?
19547 fi
19548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19549 fi
19550 fi
19551 rm -f conftest.val
19552     if test "$fits_in_uint" = 1; then
19553                   cat >conftest.$ac_ext <<_ACEOF
19554 /* confdefs.h.  */
19555 _ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h.  */
19559 #include <stddef.h>
19560         extern size_t foo;
19561         extern unsigned long foo;
19562
19563 int
19564 main ()
19565 {
19566
19567   ;
19568   return 0;
19569 }
19570 _ACEOF
19571 rm -f conftest.$ac_objext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19573   (eval $ac_compile) 2>conftest.er1
19574   ac_status=$?
19575   grep -v '^ *+' conftest.er1 >conftest.err
19576   rm -f conftest.er1
19577   cat conftest.err >&5
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } &&
19580          { ac_try='test -z "$ac_c_werror_flag"
19581                          || test ! -s conftest.err'
19582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583   (eval $ac_try) 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; } &&
19587          { ac_try='test -s conftest.$ac_objext'
19588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589   (eval $ac_try) 2>&5
19590   ac_status=$?
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); }; }; then
19593   fits_in_uint=0
19594 else
19595   echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19597
19598 fi
19599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19600     fi
19601     if test -z "$result"; then
19602       if test "$fits_in_uint" = 1; then
19603         result="$res_hi$res_lo"U
19604       else
19605         result="$res_hi$res_lo"UL
19606       fi
19607     else
19608             result='~(size_t)0'
19609     fi
19610   fi
19611   echo "$as_me:$LINENO: result: $result" >&5
19612 echo "${ECHO_T}$result" >&6
19613   if test "$result" != yes; then
19614
19615 cat >>confdefs.h <<_ACEOF
19616 #define SIZE_MAX $result
19617 _ACEOF
19618
19619   fi
19620
19621
19622
19623
19624
19625 for ac_header in stdint.h
19626 do
19627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19629   echo "$as_me:$LINENO: checking for $ac_header" >&5
19630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19632   echo $ECHO_N "(cached) $ECHO_C" >&6
19633 fi
19634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19636 else
19637   # Is the header compilable?
19638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19640 cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h.  */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h.  */
19646 $ac_includes_default
19647 #include <$ac_header>
19648 _ACEOF
19649 rm -f conftest.$ac_objext
19650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19651   (eval $ac_compile) 2>conftest.er1
19652   ac_status=$?
19653   grep -v '^ *+' conftest.er1 >conftest.err
19654   rm -f conftest.er1
19655   cat conftest.err >&5
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); } &&
19658          { ac_try='test -z "$ac_c_werror_flag"
19659                          || test ! -s conftest.err'
19660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661   (eval $ac_try) 2>&5
19662   ac_status=$?
19663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664   (exit $ac_status); }; } &&
19665          { ac_try='test -s conftest.$ac_objext'
19666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667   (eval $ac_try) 2>&5
19668   ac_status=$?
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); }; }; then
19671   ac_header_compiler=yes
19672 else
19673   echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676 ac_header_compiler=no
19677 fi
19678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19680 echo "${ECHO_T}$ac_header_compiler" >&6
19681
19682 # Is the header present?
19683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19685 cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691 #include <$ac_header>
19692 _ACEOF
19693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19695   ac_status=$?
19696   grep -v '^ *+' conftest.er1 >conftest.err
19697   rm -f conftest.er1
19698   cat conftest.err >&5
19699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700   (exit $ac_status); } >/dev/null; then
19701   if test -s conftest.err; then
19702     ac_cpp_err=$ac_c_preproc_warn_flag
19703     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19704   else
19705     ac_cpp_err=
19706   fi
19707 else
19708   ac_cpp_err=yes
19709 fi
19710 if test -z "$ac_cpp_err"; then
19711   ac_header_preproc=yes
19712 else
19713   echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716   ac_header_preproc=no
19717 fi
19718 rm -f conftest.err conftest.$ac_ext
19719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19720 echo "${ECHO_T}$ac_header_preproc" >&6
19721
19722 # So?  What about this header?
19723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19724   yes:no: )
19725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19729     ac_header_preproc=yes
19730     ;;
19731   no:yes:* )
19732     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19734     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19735 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19736     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19738     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19739 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19742     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19744     (
19745       cat <<\_ASBOX
19746 ## ------------------------------ ##
19747 ## Report this to bug-cvs@gnu.org ##
19748 ## ------------------------------ ##
19749 _ASBOX
19750     ) |
19751       sed "s/^/$as_me: WARNING:     /" >&2
19752     ;;
19753 esac
19754 echo "$as_me:$LINENO: checking for $ac_header" >&5
19755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19757   echo $ECHO_N "(cached) $ECHO_C" >&6
19758 else
19759   eval "$as_ac_Header=\$ac_header_preproc"
19760 fi
19761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19763
19764 fi
19765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19766   cat >>confdefs.h <<_ACEOF
19767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19768 _ACEOF
19769
19770 fi
19771
19772 done
19773
19774
19775 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
19776 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
19777 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
19778   echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780   rm -f conftest.sym conftest.file
19781 echo >conftest.file
19782 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19783   if test "$cross_compiling" = yes; then
19784   ac_cv_func_lstat_dereferences_slashed_symlink=no
19785 else
19786   cat >conftest.$ac_ext <<_ACEOF
19787 /* confdefs.h.  */
19788 _ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h.  */
19792 $ac_includes_default
19793 int
19794 main ()
19795 {
19796 struct stat sbuf;
19797      /* Linux will dereference the symlink and fail.
19798         That is better in the sense that it means we will not
19799         have to compile and use the lstat wrapper.  */
19800      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
19801   ;
19802   return 0;
19803 }
19804 _ACEOF
19805 rm -f conftest$ac_exeext
19806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19807   (eval $ac_link) 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812   (eval $ac_try) 2>&5
19813   ac_status=$?
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); }; }; then
19816   ac_cv_func_lstat_dereferences_slashed_symlink=yes
19817 else
19818   echo "$as_me: program exited with status $ac_status" >&5
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822 ( exit $ac_status )
19823 ac_cv_func_lstat_dereferences_slashed_symlink=no
19824 fi
19825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19826 fi
19827 else
19828   # If the `ln -s' command failed, then we probably don't even
19829   # have an lstat function.
19830   ac_cv_func_lstat_dereferences_slashed_symlink=no
19831 fi
19832 rm -f conftest.sym conftest.file
19833
19834 fi
19835 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19836 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
19837
19838 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19839
19840 cat >>confdefs.h <<_ACEOF
19841 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19842 _ACEOF
19843
19844
19845 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
19846   case $LIBOBJS in
19847     "lstat.$ac_objext"   | \
19848   *" lstat.$ac_objext"   | \
19849     "lstat.$ac_objext "* | \
19850   *" lstat.$ac_objext "* ) ;;
19851   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
19852 esac
19853
19854 fi
19855
19856
19857
19858
19859
19860
19861
19862
19863       echo "$as_me:$LINENO: checking whether free is declared" >&5
19864 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
19865 if test "${ac_cv_have_decl_free+set}" = set; then
19866   echo $ECHO_N "(cached) $ECHO_C" >&6
19867 else
19868   cat >conftest.$ac_ext <<_ACEOF
19869 /* confdefs.h.  */
19870 _ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h.  */
19874 $ac_includes_default
19875 int
19876 main ()
19877 {
19878 #ifndef free
19879   char *p = (char *) free;
19880 #endif
19881
19882   ;
19883   return 0;
19884 }
19885 _ACEOF
19886 rm -f conftest.$ac_objext
19887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19888   (eval $ac_compile) 2>conftest.er1
19889   ac_status=$?
19890   grep -v '^ *+' conftest.er1 >conftest.err
19891   rm -f conftest.er1
19892   cat conftest.err >&5
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } &&
19895          { ac_try='test -z "$ac_c_werror_flag"
19896                          || test ! -s conftest.err'
19897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898   (eval $ac_try) 2>&5
19899   ac_status=$?
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); }; } &&
19902          { ac_try='test -s conftest.$ac_objext'
19903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904   (eval $ac_try) 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); }; }; then
19908   ac_cv_have_decl_free=yes
19909 else
19910   echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19912
19913 ac_cv_have_decl_free=no
19914 fi
19915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19916 fi
19917 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
19918 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
19919 if test $ac_cv_have_decl_free = yes; then
19920
19921 cat >>confdefs.h <<_ACEOF
19922 #define HAVE_DECL_FREE 1
19923 _ACEOF
19924
19925
19926 else
19927   cat >>confdefs.h <<_ACEOF
19928 #define HAVE_DECL_FREE 0
19929 _ACEOF
19930
19931
19932 fi
19933
19934
19935
19936
19937   echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
19938 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
19939 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942   if test "$cross_compiling" = yes; then
19943   ac_cv_func_lstat_empty_string_bug=yes
19944 else
19945   cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h.  */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h.  */
19951 $ac_includes_default
19952 int
19953 main ()
19954 {
19955 struct stat sbuf;
19956   exit (lstat ("", &sbuf) ? 1 : 0);
19957   ;
19958   return 0;
19959 }
19960 _ACEOF
19961 rm -f conftest$ac_exeext
19962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19963   (eval $ac_link) 2>&5
19964   ac_status=$?
19965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968   (eval $ac_try) 2>&5
19969   ac_status=$?
19970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971   (exit $ac_status); }; }; then
19972   ac_cv_func_lstat_empty_string_bug=yes
19973 else
19974   echo "$as_me: program exited with status $ac_status" >&5
19975 echo "$as_me: failed program was:" >&5
19976 sed 's/^/| /' conftest.$ac_ext >&5
19977
19978 ( exit $ac_status )
19979 ac_cv_func_lstat_empty_string_bug=no
19980 fi
19981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19982 fi
19983 fi
19984 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
19985 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
19986 if test $ac_cv_func_lstat_empty_string_bug = yes; then
19987   case $LIBOBJS in
19988     "lstat.$ac_objext"   | \
19989   *" lstat.$ac_objext"   | \
19990     "lstat.$ac_objext "* | \
19991   *" lstat.$ac_objext "* ) ;;
19992   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
19993 esac
19994
19995
19996 cat >>confdefs.h <<_ACEOF
19997 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
19998 _ACEOF
19999
20000 fi
20001
20002           if test $ac_cv_func_lstat_empty_string_bug = yes ||
20003      test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
20004
20005
20006
20007   :
20008
20009
20010
20011
20012
20013
20014   :
20015
20016
20017
20018
20019
20020
20021   fi
20022
20023
20024
20025     if test X"$ac_cv_func_malloc_0_nonnull" = Xno || test X"$ac_cv_func_malloc_works" = Xno; then
20026
20027   :
20028
20029   fi
20030
20031
20032
20033     if test X"$ac_cv_func_realloc_0_nonnull" = Xno || test X"$ac_cv_func_realloc_works" = Xno; then
20034
20035   :
20036
20037   fi
20038
20039
20040   echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
20041 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
20042 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
20043   echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045   if test "$cross_compiling" = yes; then
20046   ac_cv_func_stat_empty_string_bug=yes
20047 else
20048   cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h.  */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h.  */
20054 $ac_includes_default
20055 int
20056 main ()
20057 {
20058 struct stat sbuf;
20059   exit (stat ("", &sbuf) ? 1 : 0);
20060   ;
20061   return 0;
20062 }
20063 _ACEOF
20064 rm -f conftest$ac_exeext
20065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20066   (eval $ac_link) 2>&5
20067   ac_status=$?
20068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071   (eval $ac_try) 2>&5
20072   ac_status=$?
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); }; }; then
20075   ac_cv_func_stat_empty_string_bug=yes
20076 else
20077   echo "$as_me: program exited with status $ac_status" >&5
20078 echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20080
20081 ( exit $ac_status )
20082 ac_cv_func_stat_empty_string_bug=no
20083 fi
20084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20085 fi
20086 fi
20087 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
20088 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
20089 if test $ac_cv_func_stat_empty_string_bug = yes; then
20090   case $LIBOBJS in
20091     "stat.$ac_objext"   | \
20092   *" stat.$ac_objext"   | \
20093     "stat.$ac_objext "* | \
20094   *" stat.$ac_objext "* ) ;;
20095   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
20096 esac
20097
20098
20099 cat >>confdefs.h <<_ACEOF
20100 #define HAVE_STAT_EMPTY_STRING_BUG 1
20101 _ACEOF
20102
20103 fi
20104
20105     if test $ac_cv_func_stat_empty_string_bug = yes; then
20106
20107   :
20108
20109   fi
20110
20111
20112
20113
20114
20115   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
20116
20117     test $ac_cv_type_long_long = yes \
20118       && ac_type='long long' \
20119       || ac_type='long'
20120
20121 cat >>confdefs.h <<_ACEOF
20122 #define intmax_t $ac_type
20123 _ACEOF
20124
20125   else
20126
20127 cat >>confdefs.h <<\_ACEOF
20128 #define HAVE_INTMAX_T 1
20129 _ACEOF
20130
20131   fi
20132
20133
20134
20135
20136
20137
20138
20139
20140     case $LIBOBJS in
20141     "getpass.$ac_objext"   | \
20142   *" getpass.$ac_objext"   | \
20143     "getpass.$ac_objext "* | \
20144   *" getpass.$ac_objext "* ) ;;
20145   *) LIBOBJS="$LIBOBJS getpass.$ac_objext" ;;
20146 esac
20147
20148
20149   :
20150
20151
20152 cat >>confdefs.h <<\_ACEOF
20153 #define getpass gnu_getpass
20154 _ACEOF
20155
20156
20157
20158 cat >>confdefs.h <<\_ACEOF
20159 #define getpass cvs_getpass
20160 _ACEOF
20161
20162
20163 #
20164 # End GNULIB stuff.
20165 #
20166
20167
20168
20169 # Check for function existance.
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197 for ac_func in \
20198         fchdir \
20199         fchmod \
20200         fsync \
20201         ftime \
20202         geteuid \
20203         getgroups \
20204         getpagesize \
20205         gettimeofday \
20206         initgroups \
20207         login \
20208         logout \
20209         mknod \
20210         putenv \
20211         readlink \
20212         regcomp \
20213         regerror \
20214         regexec \
20215         regfree \
20216         sigaction \
20217         sigblock \
20218         sigprocmask \
20219         sigsetmask \
20220         sigvec \
20221         timezone \
20222         tzset \
20223         vprintf \
20224         wait3 \
20225
20226 do
20227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20228 echo "$as_me:$LINENO: checking for $ac_func" >&5
20229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20230 if eval "test \"\${$as_ac_var+set}\" = set"; then
20231   echo $ECHO_N "(cached) $ECHO_C" >&6
20232 else
20233   cat >conftest.$ac_ext <<_ACEOF
20234 /* confdefs.h.  */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h.  */
20239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20241 #define $ac_func innocuous_$ac_func
20242
20243 /* System header to define __stub macros and hopefully few prototypes,
20244     which can conflict with char $ac_func (); below.
20245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20246     <limits.h> exists even on freestanding compilers.  */
20247
20248 #ifdef __STDC__
20249 # include <limits.h>
20250 #else
20251 # include <assert.h>
20252 #endif
20253
20254 #undef $ac_func
20255
20256 /* Override any gcc2 internal prototype to avoid an error.  */
20257 #ifdef __cplusplus
20258 extern "C"
20259 {
20260 #endif
20261 /* We use char because int might match the return type of a gcc2
20262    builtin and then its argument prototype would still apply.  */
20263 char $ac_func ();
20264 /* The GNU C library defines this for functions which it implements
20265     to always fail with ENOSYS.  Some functions are actually named
20266     something starting with __ and the normal name is an alias.  */
20267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20268 choke me
20269 #else
20270 char (*f) () = $ac_func;
20271 #endif
20272 #ifdef __cplusplus
20273 }
20274 #endif
20275
20276 int
20277 main ()
20278 {
20279 return f != $ac_func;
20280   ;
20281   return 0;
20282 }
20283 _ACEOF
20284 rm -f conftest.$ac_objext conftest$ac_exeext
20285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20286   (eval $ac_link) 2>conftest.er1
20287   ac_status=$?
20288   grep -v '^ *+' conftest.er1 >conftest.err
20289   rm -f conftest.er1
20290   cat conftest.err >&5
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); } &&
20293          { ac_try='test -z "$ac_c_werror_flag"
20294                          || test ! -s conftest.err'
20295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296   (eval $ac_try) 2>&5
20297   ac_status=$?
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); }; } &&
20300          { ac_try='test -s conftest$ac_exeext'
20301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302   (eval $ac_try) 2>&5
20303   ac_status=$?
20304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305   (exit $ac_status); }; }; then
20306   eval "$as_ac_var=yes"
20307 else
20308   echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20310
20311 eval "$as_ac_var=no"
20312 fi
20313 rm -f conftest.err conftest.$ac_objext \
20314       conftest$ac_exeext conftest.$ac_ext
20315 fi
20316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20318 if test `eval echo '${'$as_ac_var'}'` = yes; then
20319   cat >>confdefs.h <<_ACEOF
20320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20321 _ACEOF
20322
20323 fi
20324 done
20325
20326 HAVE_PUTENV=$ac_cv_func_putenv
20327
20328
20329 if test $cross_compiling = yes ; then
20330
20331 cat >>confdefs.h <<\_ACEOF
20332 #define CROSS_COMPILING 1
20333 _ACEOF
20334
20335 else
20336         echo "$as_me:$LINENO: checking for char" >&5
20337 echo $ECHO_N "checking for char... $ECHO_C" >&6
20338 if test "${ac_cv_type_char+set}" = set; then
20339   echo $ECHO_N "(cached) $ECHO_C" >&6
20340 else
20341   cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h.  */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h.  */
20347 $ac_includes_default
20348 int
20349 main ()
20350 {
20351 if ((char *) 0)
20352   return 0;
20353 if (sizeof (char))
20354   return 0;
20355   ;
20356   return 0;
20357 }
20358 _ACEOF
20359 rm -f conftest.$ac_objext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361   (eval $ac_compile) 2>conftest.er1
20362   ac_status=$?
20363   grep -v '^ *+' conftest.er1 >conftest.err
20364   rm -f conftest.er1
20365   cat conftest.err >&5
20366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); } &&
20368          { ac_try='test -z "$ac_c_werror_flag"
20369                          || test ! -s conftest.err'
20370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371   (eval $ac_try) 2>&5
20372   ac_status=$?
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); }; } &&
20375          { ac_try='test -s conftest.$ac_objext'
20376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377   (eval $ac_try) 2>&5
20378   ac_status=$?
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); }; }; then
20381   ac_cv_type_char=yes
20382 else
20383   echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20385
20386 ac_cv_type_char=no
20387 fi
20388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20389 fi
20390 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
20391 echo "${ECHO_T}$ac_cv_type_char" >&6
20392
20393 echo "$as_me:$LINENO: checking size of char" >&5
20394 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20395 if test "${ac_cv_sizeof_char+set}" = set; then
20396   echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398   if test "$ac_cv_type_char" = yes; then
20399   # The cast to unsigned long works around a bug in the HP C Compiler
20400   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20401   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20402   # This bug is HP SR number 8606223364.
20403   if test "$cross_compiling" = yes; then
20404   # Depending upon the size, compute the lo and hi bounds.
20405 cat >conftest.$ac_ext <<_ACEOF
20406 /* confdefs.h.  */
20407 _ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h.  */
20411 $ac_includes_default
20412 int
20413 main ()
20414 {
20415 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
20416 test_array [0] = 0
20417
20418   ;
20419   return 0;
20420 }
20421 _ACEOF
20422 rm -f conftest.$ac_objext
20423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20424   (eval $ac_compile) 2>conftest.er1
20425   ac_status=$?
20426   grep -v '^ *+' conftest.er1 >conftest.err
20427   rm -f conftest.er1
20428   cat conftest.err >&5
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); } &&
20431          { ac_try='test -z "$ac_c_werror_flag"
20432                          || test ! -s conftest.err'
20433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434   (eval $ac_try) 2>&5
20435   ac_status=$?
20436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437   (exit $ac_status); }; } &&
20438          { ac_try='test -s conftest.$ac_objext'
20439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440   (eval $ac_try) 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); }; }; then
20444   ac_lo=0 ac_mid=0
20445   while :; do
20446     cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452 $ac_includes_default
20453 int
20454 main ()
20455 {
20456 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20457 test_array [0] = 0
20458
20459   ;
20460   return 0;
20461 }
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20465   (eval $ac_compile) 2>conftest.er1
20466   ac_status=$?
20467   grep -v '^ *+' conftest.er1 >conftest.err
20468   rm -f conftest.er1
20469   cat conftest.err >&5
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); } &&
20472          { ac_try='test -z "$ac_c_werror_flag"
20473                          || test ! -s conftest.err'
20474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475   (eval $ac_try) 2>&5
20476   ac_status=$?
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); }; } &&
20479          { ac_try='test -s conftest.$ac_objext'
20480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481   (eval $ac_try) 2>&5
20482   ac_status=$?
20483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484   (exit $ac_status); }; }; then
20485   ac_hi=$ac_mid; break
20486 else
20487   echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490 ac_lo=`expr $ac_mid + 1`
20491                     if test $ac_lo -le $ac_mid; then
20492                       ac_lo= ac_hi=
20493                       break
20494                     fi
20495                     ac_mid=`expr 2 '*' $ac_mid + 1`
20496 fi
20497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20498   done
20499 else
20500   echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h.  */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h.  */
20509 $ac_includes_default
20510 int
20511 main ()
20512 {
20513 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
20514 test_array [0] = 0
20515
20516   ;
20517   return 0;
20518 }
20519 _ACEOF
20520 rm -f conftest.$ac_objext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20522   (eval $ac_compile) 2>conftest.er1
20523   ac_status=$?
20524   grep -v '^ *+' conftest.er1 >conftest.err
20525   rm -f conftest.er1
20526   cat conftest.err >&5
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); } &&
20529          { ac_try='test -z "$ac_c_werror_flag"
20530                          || test ! -s conftest.err'
20531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532   (eval $ac_try) 2>&5
20533   ac_status=$?
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); }; } &&
20536          { ac_try='test -s conftest.$ac_objext'
20537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538   (eval $ac_try) 2>&5
20539   ac_status=$?
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); }; }; then
20542   ac_hi=-1 ac_mid=-1
20543   while :; do
20544     cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h.  */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h.  */
20550 $ac_includes_default
20551 int
20552 main ()
20553 {
20554 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
20555 test_array [0] = 0
20556
20557   ;
20558   return 0;
20559 }
20560 _ACEOF
20561 rm -f conftest.$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563   (eval $ac_compile) 2>conftest.er1
20564   ac_status=$?
20565   grep -v '^ *+' conftest.er1 >conftest.err
20566   rm -f conftest.er1
20567   cat conftest.err >&5
20568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569   (exit $ac_status); } &&
20570          { ac_try='test -z "$ac_c_werror_flag"
20571                          || test ! -s conftest.err'
20572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573   (eval $ac_try) 2>&5
20574   ac_status=$?
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); }; } &&
20577          { ac_try='test -s conftest.$ac_objext'
20578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579   (eval $ac_try) 2>&5
20580   ac_status=$?
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); }; }; then
20583   ac_lo=$ac_mid; break
20584 else
20585   echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588 ac_hi=`expr '(' $ac_mid ')' - 1`
20589                        if test $ac_mid -le $ac_hi; then
20590                          ac_lo= ac_hi=
20591                          break
20592                        fi
20593                        ac_mid=`expr 2 '*' $ac_mid`
20594 fi
20595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20596   done
20597 else
20598   echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20600
20601 ac_lo= ac_hi=
20602 fi
20603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20604 fi
20605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20606 # Binary search between lo and hi bounds.
20607 while test "x$ac_lo" != "x$ac_hi"; do
20608   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20609   cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h.  */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h.  */
20615 $ac_includes_default
20616 int
20617 main ()
20618 {
20619 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20620 test_array [0] = 0
20621
20622   ;
20623   return 0;
20624 }
20625 _ACEOF
20626 rm -f conftest.$ac_objext
20627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20628   (eval $ac_compile) 2>conftest.er1
20629   ac_status=$?
20630   grep -v '^ *+' conftest.er1 >conftest.err
20631   rm -f conftest.er1
20632   cat conftest.err >&5
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); } &&
20635          { ac_try='test -z "$ac_c_werror_flag"
20636                          || test ! -s conftest.err'
20637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638   (eval $ac_try) 2>&5
20639   ac_status=$?
20640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641   (exit $ac_status); }; } &&
20642          { ac_try='test -s conftest.$ac_objext'
20643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644   (eval $ac_try) 2>&5
20645   ac_status=$?
20646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647   (exit $ac_status); }; }; then
20648   ac_hi=$ac_mid
20649 else
20650   echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20652
20653 ac_lo=`expr '(' $ac_mid ')' + 1`
20654 fi
20655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20656 done
20657 case $ac_lo in
20658 ?*) ac_cv_sizeof_char=$ac_lo;;
20659 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20660 See \`config.log' for more details." >&5
20661 echo "$as_me: error: cannot compute sizeof (char), 77
20662 See \`config.log' for more details." >&2;}
20663    { (exit 1); exit 1; }; } ;;
20664 esac
20665 else
20666   if test "$cross_compiling" = yes; then
20667   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20668 See \`config.log' for more details." >&5
20669 echo "$as_me: error: cannot run test program while cross compiling
20670 See \`config.log' for more details." >&2;}
20671    { (exit 1); exit 1; }; }
20672 else
20673   cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h.  */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h.  */
20679 $ac_includes_default
20680 long longval () { return (long) (sizeof (char)); }
20681 unsigned long ulongval () { return (long) (sizeof (char)); }
20682 #include <stdio.h>
20683 #include <stdlib.h>
20684 int
20685 main ()
20686 {
20687
20688   FILE *f = fopen ("conftest.val", "w");
20689   if (! f)
20690     exit (1);
20691   if (((long) (sizeof (char))) < 0)
20692     {
20693       long i = longval ();
20694       if (i != ((long) (sizeof (char))))
20695         exit (1);
20696       fprintf (f, "%ld\n", i);
20697     }
20698   else
20699     {
20700       unsigned long i = ulongval ();
20701       if (i != ((long) (sizeof (char))))
20702         exit (1);
20703       fprintf (f, "%lu\n", i);
20704     }
20705   exit (ferror (f) || fclose (f) != 0);
20706
20707   ;
20708   return 0;
20709 }
20710 _ACEOF
20711 rm -f conftest$ac_exeext
20712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20713   (eval $ac_link) 2>&5
20714   ac_status=$?
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718   (eval $ac_try) 2>&5
20719   ac_status=$?
20720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721   (exit $ac_status); }; }; then
20722   ac_cv_sizeof_char=`cat conftest.val`
20723 else
20724   echo "$as_me: program exited with status $ac_status" >&5
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20727
20728 ( exit $ac_status )
20729 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20730 See \`config.log' for more details." >&5
20731 echo "$as_me: error: cannot compute sizeof (char), 77
20732 See \`config.log' for more details." >&2;}
20733    { (exit 1); exit 1; }; }
20734 fi
20735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20736 fi
20737 fi
20738 rm -f conftest.val
20739 else
20740   ac_cv_sizeof_char=0
20741 fi
20742 fi
20743 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20744 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
20745 cat >>confdefs.h <<_ACEOF
20746 #define SIZEOF_CHAR $ac_cv_sizeof_char
20747 _ACEOF
20748
20749
20750         echo "$as_me:$LINENO: checking for uniquely sized char" >&5
20751 echo $ECHO_N "checking for uniquely sized char... $ECHO_C" >&6
20752 if test "${ccvs_cv_unique_int_type_char+set}" = set; then
20753   echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755   if set |grep ^ccvs_cv_unique_int_type_ \
20756                         |grep "($ac_cv_sizeof_char)" >/dev/null ; then
20757                         ccvs_cv_unique_int_type_char=no
20758                 else
20759                         ccvs_cv_unique_int_type_char=yes\($ac_cv_sizeof_char\)
20760                 fi
20761 fi
20762 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_char" >&5
20763 echo "${ECHO_T}$ccvs_cv_unique_int_type_char" >&6
20764         if test $ccvs_cv_unique_int_type_char != no ; then
20765
20766 cat >>confdefs.h <<\_ACEOF
20767 #define UNIQUE_INT_TYPE_CHAR 1
20768 _ACEOF
20769
20770         fi
20771         echo "$as_me:$LINENO: checking for short" >&5
20772 echo $ECHO_N "checking for short... $ECHO_C" >&6
20773 if test "${ac_cv_type_short+set}" = set; then
20774   echo $ECHO_N "(cached) $ECHO_C" >&6
20775 else
20776   cat >conftest.$ac_ext <<_ACEOF
20777 /* confdefs.h.  */
20778 _ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h.  */
20782 $ac_includes_default
20783 int
20784 main ()
20785 {
20786 if ((short *) 0)
20787   return 0;
20788 if (sizeof (short))
20789   return 0;
20790   ;
20791   return 0;
20792 }
20793 _ACEOF
20794 rm -f conftest.$ac_objext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20796   (eval $ac_compile) 2>conftest.er1
20797   ac_status=$?
20798   grep -v '^ *+' conftest.er1 >conftest.err
20799   rm -f conftest.er1
20800   cat conftest.err >&5
20801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802   (exit $ac_status); } &&
20803          { ac_try='test -z "$ac_c_werror_flag"
20804                          || test ! -s conftest.err'
20805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806   (eval $ac_try) 2>&5
20807   ac_status=$?
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; } &&
20810          { ac_try='test -s conftest.$ac_objext'
20811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812   (eval $ac_try) 2>&5
20813   ac_status=$?
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); }; }; then
20816   ac_cv_type_short=yes
20817 else
20818   echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20820
20821 ac_cv_type_short=no
20822 fi
20823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20824 fi
20825 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20826 echo "${ECHO_T}$ac_cv_type_short" >&6
20827
20828 echo "$as_me:$LINENO: checking size of short" >&5
20829 echo $ECHO_N "checking size of short... $ECHO_C" >&6
20830 if test "${ac_cv_sizeof_short+set}" = set; then
20831   echo $ECHO_N "(cached) $ECHO_C" >&6
20832 else
20833   if test "$ac_cv_type_short" = yes; then
20834   # The cast to unsigned long works around a bug in the HP C Compiler
20835   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20836   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20837   # This bug is HP SR number 8606223364.
20838   if test "$cross_compiling" = yes; then
20839   # Depending upon the size, compute the lo and hi bounds.
20840 cat >conftest.$ac_ext <<_ACEOF
20841 /* confdefs.h.  */
20842 _ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h.  */
20846 $ac_includes_default
20847 int
20848 main ()
20849 {
20850 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
20851 test_array [0] = 0
20852
20853   ;
20854   return 0;
20855 }
20856 _ACEOF
20857 rm -f conftest.$ac_objext
20858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20859   (eval $ac_compile) 2>conftest.er1
20860   ac_status=$?
20861   grep -v '^ *+' conftest.er1 >conftest.err
20862   rm -f conftest.er1
20863   cat conftest.err >&5
20864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865   (exit $ac_status); } &&
20866          { ac_try='test -z "$ac_c_werror_flag"
20867                          || test ! -s conftest.err'
20868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869   (eval $ac_try) 2>&5
20870   ac_status=$?
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); }; } &&
20873          { ac_try='test -s conftest.$ac_objext'
20874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875   (eval $ac_try) 2>&5
20876   ac_status=$?
20877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878   (exit $ac_status); }; }; then
20879   ac_lo=0 ac_mid=0
20880   while :; do
20881     cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h.  */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h.  */
20887 $ac_includes_default
20888 int
20889 main ()
20890 {
20891 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
20892 test_array [0] = 0
20893
20894   ;
20895   return 0;
20896 }
20897 _ACEOF
20898 rm -f conftest.$ac_objext
20899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20900   (eval $ac_compile) 2>conftest.er1
20901   ac_status=$?
20902   grep -v '^ *+' conftest.er1 >conftest.err
20903   rm -f conftest.er1
20904   cat conftest.err >&5
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); } &&
20907          { ac_try='test -z "$ac_c_werror_flag"
20908                          || test ! -s conftest.err'
20909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910   (eval $ac_try) 2>&5
20911   ac_status=$?
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); }; } &&
20914          { ac_try='test -s conftest.$ac_objext'
20915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916   (eval $ac_try) 2>&5
20917   ac_status=$?
20918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919   (exit $ac_status); }; }; then
20920   ac_hi=$ac_mid; break
20921 else
20922   echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20924
20925 ac_lo=`expr $ac_mid + 1`
20926                     if test $ac_lo -le $ac_mid; then
20927                       ac_lo= ac_hi=
20928                       break
20929                     fi
20930                     ac_mid=`expr 2 '*' $ac_mid + 1`
20931 fi
20932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20933   done
20934 else
20935   echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20937
20938 cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944 $ac_includes_default
20945 int
20946 main ()
20947 {
20948 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
20949 test_array [0] = 0
20950
20951   ;
20952   return 0;
20953 }
20954 _ACEOF
20955 rm -f conftest.$ac_objext
20956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20957   (eval $ac_compile) 2>conftest.er1
20958   ac_status=$?
20959   grep -v '^ *+' conftest.er1 >conftest.err
20960   rm -f conftest.er1
20961   cat conftest.err >&5
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); } &&
20964          { ac_try='test -z "$ac_c_werror_flag"
20965                          || test ! -s conftest.err'
20966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967   (eval $ac_try) 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); }; } &&
20971          { ac_try='test -s conftest.$ac_objext'
20972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20973   (eval $ac_try) 2>&5
20974   ac_status=$?
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); }; }; then
20977   ac_hi=-1 ac_mid=-1
20978   while :; do
20979     cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h.  */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h.  */
20985 $ac_includes_default
20986 int
20987 main ()
20988 {
20989 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
20990 test_array [0] = 0
20991
20992   ;
20993   return 0;
20994 }
20995 _ACEOF
20996 rm -f conftest.$ac_objext
20997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20998   (eval $ac_compile) 2>conftest.er1
20999   ac_status=$?
21000   grep -v '^ *+' conftest.er1 >conftest.err
21001   rm -f conftest.er1
21002   cat conftest.err >&5
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); } &&
21005          { ac_try='test -z "$ac_c_werror_flag"
21006                          || test ! -s conftest.err'
21007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008   (eval $ac_try) 2>&5
21009   ac_status=$?
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); }; } &&
21012          { ac_try='test -s conftest.$ac_objext'
21013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014   (eval $ac_try) 2>&5
21015   ac_status=$?
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); }; }; then
21018   ac_lo=$ac_mid; break
21019 else
21020   echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21022
21023 ac_hi=`expr '(' $ac_mid ')' - 1`
21024                        if test $ac_mid -le $ac_hi; then
21025                          ac_lo= ac_hi=
21026                          break
21027                        fi
21028                        ac_mid=`expr 2 '*' $ac_mid`
21029 fi
21030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21031   done
21032 else
21033   echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21035
21036 ac_lo= ac_hi=
21037 fi
21038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21039 fi
21040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21041 # Binary search between lo and hi bounds.
21042 while test "x$ac_lo" != "x$ac_hi"; do
21043   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21044   cat >conftest.$ac_ext <<_ACEOF
21045 /* confdefs.h.  */
21046 _ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h.  */
21050 $ac_includes_default
21051 int
21052 main ()
21053 {
21054 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
21055 test_array [0] = 0
21056
21057   ;
21058   return 0;
21059 }
21060 _ACEOF
21061 rm -f conftest.$ac_objext
21062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21063   (eval $ac_compile) 2>conftest.er1
21064   ac_status=$?
21065   grep -v '^ *+' conftest.er1 >conftest.err
21066   rm -f conftest.er1
21067   cat conftest.err >&5
21068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069   (exit $ac_status); } &&
21070          { ac_try='test -z "$ac_c_werror_flag"
21071                          || test ! -s conftest.err'
21072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073   (eval $ac_try) 2>&5
21074   ac_status=$?
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); }; } &&
21077          { ac_try='test -s conftest.$ac_objext'
21078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079   (eval $ac_try) 2>&5
21080   ac_status=$?
21081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082   (exit $ac_status); }; }; then
21083   ac_hi=$ac_mid
21084 else
21085   echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21087
21088 ac_lo=`expr '(' $ac_mid ')' + 1`
21089 fi
21090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21091 done
21092 case $ac_lo in
21093 ?*) ac_cv_sizeof_short=$ac_lo;;
21094 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
21095 See \`config.log' for more details." >&5
21096 echo "$as_me: error: cannot compute sizeof (short), 77
21097 See \`config.log' for more details." >&2;}
21098    { (exit 1); exit 1; }; } ;;
21099 esac
21100 else
21101   if test "$cross_compiling" = yes; then
21102   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21103 See \`config.log' for more details." >&5
21104 echo "$as_me: error: cannot run test program while cross compiling
21105 See \`config.log' for more details." >&2;}
21106    { (exit 1); exit 1; }; }
21107 else
21108   cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h.  */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h.  */
21114 $ac_includes_default
21115 long longval () { return (long) (sizeof (short)); }
21116 unsigned long ulongval () { return (long) (sizeof (short)); }
21117 #include <stdio.h>
21118 #include <stdlib.h>
21119 int
21120 main ()
21121 {
21122
21123   FILE *f = fopen ("conftest.val", "w");
21124   if (! f)
21125     exit (1);
21126   if (((long) (sizeof (short))) < 0)
21127     {
21128       long i = longval ();
21129       if (i != ((long) (sizeof (short))))
21130         exit (1);
21131       fprintf (f, "%ld\n", i);
21132     }
21133   else
21134     {
21135       unsigned long i = ulongval ();
21136       if (i != ((long) (sizeof (short))))
21137         exit (1);
21138       fprintf (f, "%lu\n", i);
21139     }
21140   exit (ferror (f) || fclose (f) != 0);
21141
21142   ;
21143   return 0;
21144 }
21145 _ACEOF
21146 rm -f conftest$ac_exeext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21148   (eval $ac_link) 2>&5
21149   ac_status=$?
21150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153   (eval $ac_try) 2>&5
21154   ac_status=$?
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); }; }; then
21157   ac_cv_sizeof_short=`cat conftest.val`
21158 else
21159   echo "$as_me: program exited with status $ac_status" >&5
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21162
21163 ( exit $ac_status )
21164 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
21165 See \`config.log' for more details." >&5
21166 echo "$as_me: error: cannot compute sizeof (short), 77
21167 See \`config.log' for more details." >&2;}
21168    { (exit 1); exit 1; }; }
21169 fi
21170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21171 fi
21172 fi
21173 rm -f conftest.val
21174 else
21175   ac_cv_sizeof_short=0
21176 fi
21177 fi
21178 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21179 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
21180 cat >>confdefs.h <<_ACEOF
21181 #define SIZEOF_SHORT $ac_cv_sizeof_short
21182 _ACEOF
21183
21184
21185         echo "$as_me:$LINENO: checking for uniquely sized short" >&5
21186 echo $ECHO_N "checking for uniquely sized short... $ECHO_C" >&6
21187 if test "${ccvs_cv_unique_int_type_short+set}" = set; then
21188   echo $ECHO_N "(cached) $ECHO_C" >&6
21189 else
21190   if set |grep ^ccvs_cv_unique_int_type_ \
21191                         |grep "($ac_cv_sizeof_short)" >/dev/null ; then
21192                         ccvs_cv_unique_int_type_short=no
21193                 else
21194                         ccvs_cv_unique_int_type_short=yes\($ac_cv_sizeof_short\)
21195                 fi
21196 fi
21197 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_short" >&5
21198 echo "${ECHO_T}$ccvs_cv_unique_int_type_short" >&6
21199         if test $ccvs_cv_unique_int_type_short != no ; then
21200
21201 cat >>confdefs.h <<\_ACEOF
21202 #define UNIQUE_INT_TYPE_SHORT 1
21203 _ACEOF
21204
21205         fi
21206         echo "$as_me:$LINENO: checking for int" >&5
21207 echo $ECHO_N "checking for int... $ECHO_C" >&6
21208 if test "${ac_cv_type_int+set}" = set; then
21209   echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211   cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h.  */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h.  */
21217 $ac_includes_default
21218 int
21219 main ()
21220 {
21221 if ((int *) 0)
21222   return 0;
21223 if (sizeof (int))
21224   return 0;
21225   ;
21226   return 0;
21227 }
21228 _ACEOF
21229 rm -f conftest.$ac_objext
21230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21231   (eval $ac_compile) 2>conftest.er1
21232   ac_status=$?
21233   grep -v '^ *+' conftest.er1 >conftest.err
21234   rm -f conftest.er1
21235   cat conftest.err >&5
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); } &&
21238          { ac_try='test -z "$ac_c_werror_flag"
21239                          || test ! -s conftest.err'
21240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241   (eval $ac_try) 2>&5
21242   ac_status=$?
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); }; } &&
21245          { ac_try='test -s conftest.$ac_objext'
21246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247   (eval $ac_try) 2>&5
21248   ac_status=$?
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); }; }; then
21251   ac_cv_type_int=yes
21252 else
21253   echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21255
21256 ac_cv_type_int=no
21257 fi
21258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21259 fi
21260 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21261 echo "${ECHO_T}$ac_cv_type_int" >&6
21262
21263 echo "$as_me:$LINENO: checking size of int" >&5
21264 echo $ECHO_N "checking size of int... $ECHO_C" >&6
21265 if test "${ac_cv_sizeof_int+set}" = set; then
21266   echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268   if test "$ac_cv_type_int" = yes; then
21269   # The cast to unsigned long works around a bug in the HP C Compiler
21270   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21271   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21272   # This bug is HP SR number 8606223364.
21273   if test "$cross_compiling" = yes; then
21274   # Depending upon the size, compute the lo and hi bounds.
21275 cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281 $ac_includes_default
21282 int
21283 main ()
21284 {
21285 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
21286 test_array [0] = 0
21287
21288   ;
21289   return 0;
21290 }
21291 _ACEOF
21292 rm -f conftest.$ac_objext
21293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21294   (eval $ac_compile) 2>conftest.er1
21295   ac_status=$?
21296   grep -v '^ *+' conftest.er1 >conftest.err
21297   rm -f conftest.er1
21298   cat conftest.err >&5
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); } &&
21301          { ac_try='test -z "$ac_c_werror_flag"
21302                          || test ! -s conftest.err'
21303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304   (eval $ac_try) 2>&5
21305   ac_status=$?
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); }; } &&
21308          { ac_try='test -s conftest.$ac_objext'
21309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310   (eval $ac_try) 2>&5
21311   ac_status=$?
21312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313   (exit $ac_status); }; }; then
21314   ac_lo=0 ac_mid=0
21315   while :; do
21316     cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322 $ac_includes_default
21323 int
21324 main ()
21325 {
21326 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
21327 test_array [0] = 0
21328
21329   ;
21330   return 0;
21331 }
21332 _ACEOF
21333 rm -f conftest.$ac_objext
21334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21335   (eval $ac_compile) 2>conftest.er1
21336   ac_status=$?
21337   grep -v '^ *+' conftest.er1 >conftest.err
21338   rm -f conftest.er1
21339   cat conftest.err >&5
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); } &&
21342          { ac_try='test -z "$ac_c_werror_flag"
21343                          || test ! -s conftest.err'
21344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345   (eval $ac_try) 2>&5
21346   ac_status=$?
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); }; } &&
21349          { ac_try='test -s conftest.$ac_objext'
21350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351   (eval $ac_try) 2>&5
21352   ac_status=$?
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); }; }; then
21355   ac_hi=$ac_mid; break
21356 else
21357   echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21359
21360 ac_lo=`expr $ac_mid + 1`
21361                     if test $ac_lo -le $ac_mid; then
21362                       ac_lo= ac_hi=
21363                       break
21364                     fi
21365                     ac_mid=`expr 2 '*' $ac_mid + 1`
21366 fi
21367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21368   done
21369 else
21370   echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21372
21373 cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h.  */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h.  */
21379 $ac_includes_default
21380 int
21381 main ()
21382 {
21383 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
21384 test_array [0] = 0
21385
21386   ;
21387   return 0;
21388 }
21389 _ACEOF
21390 rm -f conftest.$ac_objext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21392   (eval $ac_compile) 2>conftest.er1
21393   ac_status=$?
21394   grep -v '^ *+' conftest.er1 >conftest.err
21395   rm -f conftest.er1
21396   cat conftest.err >&5
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); } &&
21399          { ac_try='test -z "$ac_c_werror_flag"
21400                          || test ! -s conftest.err'
21401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402   (eval $ac_try) 2>&5
21403   ac_status=$?
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); }; } &&
21406          { ac_try='test -s conftest.$ac_objext'
21407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408   (eval $ac_try) 2>&5
21409   ac_status=$?
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); }; }; then
21412   ac_hi=-1 ac_mid=-1
21413   while :; do
21414     cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h.  */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h.  */
21420 $ac_includes_default
21421 int
21422 main ()
21423 {
21424 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
21425 test_array [0] = 0
21426
21427   ;
21428   return 0;
21429 }
21430 _ACEOF
21431 rm -f conftest.$ac_objext
21432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21433   (eval $ac_compile) 2>conftest.er1
21434   ac_status=$?
21435   grep -v '^ *+' conftest.er1 >conftest.err
21436   rm -f conftest.er1
21437   cat conftest.err >&5
21438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439   (exit $ac_status); } &&
21440          { ac_try='test -z "$ac_c_werror_flag"
21441                          || test ! -s conftest.err'
21442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443   (eval $ac_try) 2>&5
21444   ac_status=$?
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); }; } &&
21447          { ac_try='test -s conftest.$ac_objext'
21448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449   (eval $ac_try) 2>&5
21450   ac_status=$?
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); }; }; then
21453   ac_lo=$ac_mid; break
21454 else
21455   echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458 ac_hi=`expr '(' $ac_mid ')' - 1`
21459                        if test $ac_mid -le $ac_hi; then
21460                          ac_lo= ac_hi=
21461                          break
21462                        fi
21463                        ac_mid=`expr 2 '*' $ac_mid`
21464 fi
21465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21466   done
21467 else
21468   echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471 ac_lo= ac_hi=
21472 fi
21473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21474 fi
21475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21476 # Binary search between lo and hi bounds.
21477 while test "x$ac_lo" != "x$ac_hi"; do
21478   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21479   cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h.  */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h.  */
21485 $ac_includes_default
21486 int
21487 main ()
21488 {
21489 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
21490 test_array [0] = 0
21491
21492   ;
21493   return 0;
21494 }
21495 _ACEOF
21496 rm -f conftest.$ac_objext
21497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21498   (eval $ac_compile) 2>conftest.er1
21499   ac_status=$?
21500   grep -v '^ *+' conftest.er1 >conftest.err
21501   rm -f conftest.er1
21502   cat conftest.err >&5
21503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504   (exit $ac_status); } &&
21505          { ac_try='test -z "$ac_c_werror_flag"
21506                          || test ! -s conftest.err'
21507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508   (eval $ac_try) 2>&5
21509   ac_status=$?
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); }; } &&
21512          { ac_try='test -s conftest.$ac_objext'
21513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514   (eval $ac_try) 2>&5
21515   ac_status=$?
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); }; }; then
21518   ac_hi=$ac_mid
21519 else
21520   echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21522
21523 ac_lo=`expr '(' $ac_mid ')' + 1`
21524 fi
21525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21526 done
21527 case $ac_lo in
21528 ?*) ac_cv_sizeof_int=$ac_lo;;
21529 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
21530 See \`config.log' for more details." >&5
21531 echo "$as_me: error: cannot compute sizeof (int), 77
21532 See \`config.log' for more details." >&2;}
21533    { (exit 1); exit 1; }; } ;;
21534 esac
21535 else
21536   if test "$cross_compiling" = yes; then
21537   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21538 See \`config.log' for more details." >&5
21539 echo "$as_me: error: cannot run test program while cross compiling
21540 See \`config.log' for more details." >&2;}
21541    { (exit 1); exit 1; }; }
21542 else
21543   cat >conftest.$ac_ext <<_ACEOF
21544 /* confdefs.h.  */
21545 _ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h.  */
21549 $ac_includes_default
21550 long longval () { return (long) (sizeof (int)); }
21551 unsigned long ulongval () { return (long) (sizeof (int)); }
21552 #include <stdio.h>
21553 #include <stdlib.h>
21554 int
21555 main ()
21556 {
21557
21558   FILE *f = fopen ("conftest.val", "w");
21559   if (! f)
21560     exit (1);
21561   if (((long) (sizeof (int))) < 0)
21562     {
21563       long i = longval ();
21564       if (i != ((long) (sizeof (int))))
21565         exit (1);
21566       fprintf (f, "%ld\n", i);
21567     }
21568   else
21569     {
21570       unsigned long i = ulongval ();
21571       if (i != ((long) (sizeof (int))))
21572         exit (1);
21573       fprintf (f, "%lu\n", i);
21574     }
21575   exit (ferror (f) || fclose (f) != 0);
21576
21577   ;
21578   return 0;
21579 }
21580 _ACEOF
21581 rm -f conftest$ac_exeext
21582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21583   (eval $ac_link) 2>&5
21584   ac_status=$?
21585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588   (eval $ac_try) 2>&5
21589   ac_status=$?
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); }; }; then
21592   ac_cv_sizeof_int=`cat conftest.val`
21593 else
21594   echo "$as_me: program exited with status $ac_status" >&5
21595 echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21597
21598 ( exit $ac_status )
21599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
21600 See \`config.log' for more details." >&5
21601 echo "$as_me: error: cannot compute sizeof (int), 77
21602 See \`config.log' for more details." >&2;}
21603    { (exit 1); exit 1; }; }
21604 fi
21605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21606 fi
21607 fi
21608 rm -f conftest.val
21609 else
21610   ac_cv_sizeof_int=0
21611 fi
21612 fi
21613 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21614 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
21615 cat >>confdefs.h <<_ACEOF
21616 #define SIZEOF_INT $ac_cv_sizeof_int
21617 _ACEOF
21618
21619
21620         echo "$as_me:$LINENO: checking for uniquely sized int" >&5
21621 echo $ECHO_N "checking for uniquely sized int... $ECHO_C" >&6
21622 if test "${ccvs_cv_unique_int_type_int+set}" = set; then
21623   echo $ECHO_N "(cached) $ECHO_C" >&6
21624 else
21625   if set |grep ^ccvs_cv_unique_int_type_ \
21626                         |grep "($ac_cv_sizeof_int)" >/dev/null ; then
21627                         ccvs_cv_unique_int_type_int=no
21628                 else
21629                         ccvs_cv_unique_int_type_int=yes\($ac_cv_sizeof_int\)
21630                 fi
21631 fi
21632 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_int" >&5
21633 echo "${ECHO_T}$ccvs_cv_unique_int_type_int" >&6
21634         if test $ccvs_cv_unique_int_type_int != no ; then
21635
21636 cat >>confdefs.h <<\_ACEOF
21637 #define UNIQUE_INT_TYPE_INT 1
21638 _ACEOF
21639
21640         fi
21641         echo "$as_me:$LINENO: checking for long" >&5
21642 echo $ECHO_N "checking for long... $ECHO_C" >&6
21643 if test "${ac_cv_type_long+set}" = set; then
21644   echo $ECHO_N "(cached) $ECHO_C" >&6
21645 else
21646   cat >conftest.$ac_ext <<_ACEOF
21647 /* confdefs.h.  */
21648 _ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h.  */
21652 $ac_includes_default
21653 int
21654 main ()
21655 {
21656 if ((long *) 0)
21657   return 0;
21658 if (sizeof (long))
21659   return 0;
21660   ;
21661   return 0;
21662 }
21663 _ACEOF
21664 rm -f conftest.$ac_objext
21665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21666   (eval $ac_compile) 2>conftest.er1
21667   ac_status=$?
21668   grep -v '^ *+' conftest.er1 >conftest.err
21669   rm -f conftest.er1
21670   cat conftest.err >&5
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); } &&
21673          { ac_try='test -z "$ac_c_werror_flag"
21674                          || test ! -s conftest.err'
21675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676   (eval $ac_try) 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); }; } &&
21680          { ac_try='test -s conftest.$ac_objext'
21681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682   (eval $ac_try) 2>&5
21683   ac_status=$?
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); }; }; then
21686   ac_cv_type_long=yes
21687 else
21688   echo "$as_me: failed program was:" >&5
21689 sed 's/^/| /' conftest.$ac_ext >&5
21690
21691 ac_cv_type_long=no
21692 fi
21693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21694 fi
21695 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21696 echo "${ECHO_T}$ac_cv_type_long" >&6
21697
21698 echo "$as_me:$LINENO: checking size of long" >&5
21699 echo $ECHO_N "checking size of long... $ECHO_C" >&6
21700 if test "${ac_cv_sizeof_long+set}" = set; then
21701   echo $ECHO_N "(cached) $ECHO_C" >&6
21702 else
21703   if test "$ac_cv_type_long" = yes; then
21704   # The cast to unsigned long works around a bug in the HP C Compiler
21705   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21706   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21707   # This bug is HP SR number 8606223364.
21708   if test "$cross_compiling" = yes; then
21709   # Depending upon the size, compute the lo and hi bounds.
21710 cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h.  */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h.  */
21716 $ac_includes_default
21717 int
21718 main ()
21719 {
21720 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
21721 test_array [0] = 0
21722
21723   ;
21724   return 0;
21725 }
21726 _ACEOF
21727 rm -f conftest.$ac_objext
21728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21729   (eval $ac_compile) 2>conftest.er1
21730   ac_status=$?
21731   grep -v '^ *+' conftest.er1 >conftest.err
21732   rm -f conftest.er1
21733   cat conftest.err >&5
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); } &&
21736          { ac_try='test -z "$ac_c_werror_flag"
21737                          || test ! -s conftest.err'
21738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739   (eval $ac_try) 2>&5
21740   ac_status=$?
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); }; } &&
21743          { ac_try='test -s conftest.$ac_objext'
21744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745   (eval $ac_try) 2>&5
21746   ac_status=$?
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); }; }; then
21749   ac_lo=0 ac_mid=0
21750   while :; do
21751     cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h.  */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h.  */
21757 $ac_includes_default
21758 int
21759 main ()
21760 {
21761 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21762 test_array [0] = 0
21763
21764   ;
21765   return 0;
21766 }
21767 _ACEOF
21768 rm -f conftest.$ac_objext
21769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21770   (eval $ac_compile) 2>conftest.er1
21771   ac_status=$?
21772   grep -v '^ *+' conftest.er1 >conftest.err
21773   rm -f conftest.er1
21774   cat conftest.err >&5
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } &&
21777          { ac_try='test -z "$ac_c_werror_flag"
21778                          || test ! -s conftest.err'
21779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780   (eval $ac_try) 2>&5
21781   ac_status=$?
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); }; } &&
21784          { ac_try='test -s conftest.$ac_objext'
21785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786   (eval $ac_try) 2>&5
21787   ac_status=$?
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); }; }; then
21790   ac_hi=$ac_mid; break
21791 else
21792   echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21794
21795 ac_lo=`expr $ac_mid + 1`
21796                     if test $ac_lo -le $ac_mid; then
21797                       ac_lo= ac_hi=
21798                       break
21799                     fi
21800                     ac_mid=`expr 2 '*' $ac_mid + 1`
21801 fi
21802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21803   done
21804 else
21805   echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21807
21808 cat >conftest.$ac_ext <<_ACEOF
21809 /* confdefs.h.  */
21810 _ACEOF
21811 cat confdefs.h >>conftest.$ac_ext
21812 cat >>conftest.$ac_ext <<_ACEOF
21813 /* end confdefs.h.  */
21814 $ac_includes_default
21815 int
21816 main ()
21817 {
21818 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
21819 test_array [0] = 0
21820
21821   ;
21822   return 0;
21823 }
21824 _ACEOF
21825 rm -f conftest.$ac_objext
21826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21827   (eval $ac_compile) 2>conftest.er1
21828   ac_status=$?
21829   grep -v '^ *+' conftest.er1 >conftest.err
21830   rm -f conftest.er1
21831   cat conftest.err >&5
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); } &&
21834          { ac_try='test -z "$ac_c_werror_flag"
21835                          || test ! -s conftest.err'
21836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837   (eval $ac_try) 2>&5
21838   ac_status=$?
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); }; } &&
21841          { ac_try='test -s conftest.$ac_objext'
21842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843   (eval $ac_try) 2>&5
21844   ac_status=$?
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); }; }; then
21847   ac_hi=-1 ac_mid=-1
21848   while :; do
21849     cat >conftest.$ac_ext <<_ACEOF
21850 /* confdefs.h.  */
21851 _ACEOF
21852 cat confdefs.h >>conftest.$ac_ext
21853 cat >>conftest.$ac_ext <<_ACEOF
21854 /* end confdefs.h.  */
21855 $ac_includes_default
21856 int
21857 main ()
21858 {
21859 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
21860 test_array [0] = 0
21861
21862   ;
21863   return 0;
21864 }
21865 _ACEOF
21866 rm -f conftest.$ac_objext
21867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21868   (eval $ac_compile) 2>conftest.er1
21869   ac_status=$?
21870   grep -v '^ *+' conftest.er1 >conftest.err
21871   rm -f conftest.er1
21872   cat conftest.err >&5
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); } &&
21875          { ac_try='test -z "$ac_c_werror_flag"
21876                          || test ! -s conftest.err'
21877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878   (eval $ac_try) 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; } &&
21882          { ac_try='test -s conftest.$ac_objext'
21883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884   (eval $ac_try) 2>&5
21885   ac_status=$?
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); }; }; then
21888   ac_lo=$ac_mid; break
21889 else
21890   echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21892
21893 ac_hi=`expr '(' $ac_mid ')' - 1`
21894                        if test $ac_mid -le $ac_hi; then
21895                          ac_lo= ac_hi=
21896                          break
21897                        fi
21898                        ac_mid=`expr 2 '*' $ac_mid`
21899 fi
21900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21901   done
21902 else
21903   echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21905
21906 ac_lo= ac_hi=
21907 fi
21908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21909 fi
21910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21911 # Binary search between lo and hi bounds.
21912 while test "x$ac_lo" != "x$ac_hi"; do
21913   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21914   cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h.  */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h.  */
21920 $ac_includes_default
21921 int
21922 main ()
21923 {
21924 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21925 test_array [0] = 0
21926
21927   ;
21928   return 0;
21929 }
21930 _ACEOF
21931 rm -f conftest.$ac_objext
21932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21933   (eval $ac_compile) 2>conftest.er1
21934   ac_status=$?
21935   grep -v '^ *+' conftest.er1 >conftest.err
21936   rm -f conftest.er1
21937   cat conftest.err >&5
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); } &&
21940          { ac_try='test -z "$ac_c_werror_flag"
21941                          || test ! -s conftest.err'
21942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943   (eval $ac_try) 2>&5
21944   ac_status=$?
21945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946   (exit $ac_status); }; } &&
21947          { ac_try='test -s conftest.$ac_objext'
21948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949   (eval $ac_try) 2>&5
21950   ac_status=$?
21951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952   (exit $ac_status); }; }; then
21953   ac_hi=$ac_mid
21954 else
21955   echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21957
21958 ac_lo=`expr '(' $ac_mid ')' + 1`
21959 fi
21960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21961 done
21962 case $ac_lo in
21963 ?*) ac_cv_sizeof_long=$ac_lo;;
21964 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
21965 See \`config.log' for more details." >&5
21966 echo "$as_me: error: cannot compute sizeof (long), 77
21967 See \`config.log' for more details." >&2;}
21968    { (exit 1); exit 1; }; } ;;
21969 esac
21970 else
21971   if test "$cross_compiling" = yes; then
21972   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21973 See \`config.log' for more details." >&5
21974 echo "$as_me: error: cannot run test program while cross compiling
21975 See \`config.log' for more details." >&2;}
21976    { (exit 1); exit 1; }; }
21977 else
21978   cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h.  */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h.  */
21984 $ac_includes_default
21985 long longval () { return (long) (sizeof (long)); }
21986 unsigned long ulongval () { return (long) (sizeof (long)); }
21987 #include <stdio.h>
21988 #include <stdlib.h>
21989 int
21990 main ()
21991 {
21992
21993   FILE *f = fopen ("conftest.val", "w");
21994   if (! f)
21995     exit (1);
21996   if (((long) (sizeof (long))) < 0)
21997     {
21998       long i = longval ();
21999       if (i != ((long) (sizeof (long))))
22000         exit (1);
22001       fprintf (f, "%ld\n", i);
22002     }
22003   else
22004     {
22005       unsigned long i = ulongval ();
22006       if (i != ((long) (sizeof (long))))
22007         exit (1);
22008       fprintf (f, "%lu\n", i);
22009     }
22010   exit (ferror (f) || fclose (f) != 0);
22011
22012   ;
22013   return 0;
22014 }
22015 _ACEOF
22016 rm -f conftest$ac_exeext
22017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22018   (eval $ac_link) 2>&5
22019   ac_status=$?
22020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023   (eval $ac_try) 2>&5
22024   ac_status=$?
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); }; }; then
22027   ac_cv_sizeof_long=`cat conftest.val`
22028 else
22029   echo "$as_me: program exited with status $ac_status" >&5
22030 echo "$as_me: failed program was:" >&5
22031 sed 's/^/| /' conftest.$ac_ext >&5
22032
22033 ( exit $ac_status )
22034 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
22035 See \`config.log' for more details." >&5
22036 echo "$as_me: error: cannot compute sizeof (long), 77
22037 See \`config.log' for more details." >&2;}
22038    { (exit 1); exit 1; }; }
22039 fi
22040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22041 fi
22042 fi
22043 rm -f conftest.val
22044 else
22045   ac_cv_sizeof_long=0
22046 fi
22047 fi
22048 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22049 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
22050 cat >>confdefs.h <<_ACEOF
22051 #define SIZEOF_LONG $ac_cv_sizeof_long
22052 _ACEOF
22053
22054
22055         echo "$as_me:$LINENO: checking for uniquely sized long" >&5
22056 echo $ECHO_N "checking for uniquely sized long... $ECHO_C" >&6
22057 if test "${ccvs_cv_unique_int_type_long+set}" = set; then
22058   echo $ECHO_N "(cached) $ECHO_C" >&6
22059 else
22060   if set |grep ^ccvs_cv_unique_int_type_ \
22061                         |grep "($ac_cv_sizeof_long)" >/dev/null ; then
22062                         ccvs_cv_unique_int_type_long=no
22063                 else
22064                         ccvs_cv_unique_int_type_long=yes\($ac_cv_sizeof_long\)
22065                 fi
22066 fi
22067 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long" >&5
22068 echo "${ECHO_T}$ccvs_cv_unique_int_type_long" >&6
22069         if test $ccvs_cv_unique_int_type_long != no ; then
22070
22071 cat >>confdefs.h <<\_ACEOF
22072 #define UNIQUE_INT_TYPE_LONG 1
22073 _ACEOF
22074
22075         fi
22076         if test $ac_cv_type_long_long != no; then
22077                 echo "$as_me:$LINENO: checking for long long" >&5
22078 echo $ECHO_N "checking for long long... $ECHO_C" >&6
22079 if test "${ac_cv_type_long_long+set}" = set; then
22080   echo $ECHO_N "(cached) $ECHO_C" >&6
22081 else
22082   cat >conftest.$ac_ext <<_ACEOF
22083 /* confdefs.h.  */
22084 _ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h.  */
22088 $ac_includes_default
22089 int
22090 main ()
22091 {
22092 if ((long long *) 0)
22093   return 0;
22094 if (sizeof (long long))
22095   return 0;
22096   ;
22097   return 0;
22098 }
22099 _ACEOF
22100 rm -f conftest.$ac_objext
22101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22102   (eval $ac_compile) 2>conftest.er1
22103   ac_status=$?
22104   grep -v '^ *+' conftest.er1 >conftest.err
22105   rm -f conftest.er1
22106   cat conftest.err >&5
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); } &&
22109          { ac_try='test -z "$ac_c_werror_flag"
22110                          || test ! -s conftest.err'
22111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112   (eval $ac_try) 2>&5
22113   ac_status=$?
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); }; } &&
22116          { ac_try='test -s conftest.$ac_objext'
22117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118   (eval $ac_try) 2>&5
22119   ac_status=$?
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); }; }; then
22122   ac_cv_type_long_long=yes
22123 else
22124   echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126
22127 ac_cv_type_long_long=no
22128 fi
22129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22130 fi
22131 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22132 echo "${ECHO_T}$ac_cv_type_long_long" >&6
22133
22134 echo "$as_me:$LINENO: checking size of long long" >&5
22135 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
22136 if test "${ac_cv_sizeof_long_long+set}" = set; then
22137   echo $ECHO_N "(cached) $ECHO_C" >&6
22138 else
22139   if test "$ac_cv_type_long_long" = yes; then
22140   # The cast to unsigned long works around a bug in the HP C Compiler
22141   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22142   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22143   # This bug is HP SR number 8606223364.
22144   if test "$cross_compiling" = yes; then
22145   # Depending upon the size, compute the lo and hi bounds.
22146 cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h.  */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h.  */
22152 $ac_includes_default
22153 int
22154 main ()
22155 {
22156 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
22157 test_array [0] = 0
22158
22159   ;
22160   return 0;
22161 }
22162 _ACEOF
22163 rm -f conftest.$ac_objext
22164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22165   (eval $ac_compile) 2>conftest.er1
22166   ac_status=$?
22167   grep -v '^ *+' conftest.er1 >conftest.err
22168   rm -f conftest.er1
22169   cat conftest.err >&5
22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); } &&
22172          { ac_try='test -z "$ac_c_werror_flag"
22173                          || test ! -s conftest.err'
22174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22175   (eval $ac_try) 2>&5
22176   ac_status=$?
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); }; } &&
22179          { ac_try='test -s conftest.$ac_objext'
22180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181   (eval $ac_try) 2>&5
22182   ac_status=$?
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); }; }; then
22185   ac_lo=0 ac_mid=0
22186   while :; do
22187     cat >conftest.$ac_ext <<_ACEOF
22188 /* confdefs.h.  */
22189 _ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h.  */
22193 $ac_includes_default
22194 int
22195 main ()
22196 {
22197 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
22198 test_array [0] = 0
22199
22200   ;
22201   return 0;
22202 }
22203 _ACEOF
22204 rm -f conftest.$ac_objext
22205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22206   (eval $ac_compile) 2>conftest.er1
22207   ac_status=$?
22208   grep -v '^ *+' conftest.er1 >conftest.err
22209   rm -f conftest.er1
22210   cat conftest.err >&5
22211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212   (exit $ac_status); } &&
22213          { ac_try='test -z "$ac_c_werror_flag"
22214                          || test ! -s conftest.err'
22215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216   (eval $ac_try) 2>&5
22217   ac_status=$?
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); }; } &&
22220          { ac_try='test -s conftest.$ac_objext'
22221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222   (eval $ac_try) 2>&5
22223   ac_status=$?
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); }; }; then
22226   ac_hi=$ac_mid; break
22227 else
22228   echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22230
22231 ac_lo=`expr $ac_mid + 1`
22232                     if test $ac_lo -le $ac_mid; then
22233                       ac_lo= ac_hi=
22234                       break
22235                     fi
22236                     ac_mid=`expr 2 '*' $ac_mid + 1`
22237 fi
22238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22239   done
22240 else
22241   echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22243
22244 cat >conftest.$ac_ext <<_ACEOF
22245 /* confdefs.h.  */
22246 _ACEOF
22247 cat confdefs.h >>conftest.$ac_ext
22248 cat >>conftest.$ac_ext <<_ACEOF
22249 /* end confdefs.h.  */
22250 $ac_includes_default
22251 int
22252 main ()
22253 {
22254 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
22255 test_array [0] = 0
22256
22257   ;
22258   return 0;
22259 }
22260 _ACEOF
22261 rm -f conftest.$ac_objext
22262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22263   (eval $ac_compile) 2>conftest.er1
22264   ac_status=$?
22265   grep -v '^ *+' conftest.er1 >conftest.err
22266   rm -f conftest.er1
22267   cat conftest.err >&5
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); } &&
22270          { ac_try='test -z "$ac_c_werror_flag"
22271                          || test ! -s conftest.err'
22272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22273   (eval $ac_try) 2>&5
22274   ac_status=$?
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); }; } &&
22277          { ac_try='test -s conftest.$ac_objext'
22278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279   (eval $ac_try) 2>&5
22280   ac_status=$?
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); }; }; then
22283   ac_hi=-1 ac_mid=-1
22284   while :; do
22285     cat >conftest.$ac_ext <<_ACEOF
22286 /* confdefs.h.  */
22287 _ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h.  */
22291 $ac_includes_default
22292 int
22293 main ()
22294 {
22295 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
22296 test_array [0] = 0
22297
22298   ;
22299   return 0;
22300 }
22301 _ACEOF
22302 rm -f conftest.$ac_objext
22303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22304   (eval $ac_compile) 2>conftest.er1
22305   ac_status=$?
22306   grep -v '^ *+' conftest.er1 >conftest.err
22307   rm -f conftest.er1
22308   cat conftest.err >&5
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); } &&
22311          { ac_try='test -z "$ac_c_werror_flag"
22312                          || test ! -s conftest.err'
22313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314   (eval $ac_try) 2>&5
22315   ac_status=$?
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); }; } &&
22318          { ac_try='test -s conftest.$ac_objext'
22319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320   (eval $ac_try) 2>&5
22321   ac_status=$?
22322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323   (exit $ac_status); }; }; then
22324   ac_lo=$ac_mid; break
22325 else
22326   echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328
22329 ac_hi=`expr '(' $ac_mid ')' - 1`
22330                        if test $ac_mid -le $ac_hi; then
22331                          ac_lo= ac_hi=
22332                          break
22333                        fi
22334                        ac_mid=`expr 2 '*' $ac_mid`
22335 fi
22336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22337   done
22338 else
22339   echo "$as_me: failed program was:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22341
22342 ac_lo= ac_hi=
22343 fi
22344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22345 fi
22346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22347 # Binary search between lo and hi bounds.
22348 while test "x$ac_lo" != "x$ac_hi"; do
22349   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22350   cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h.  */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h.  */
22356 $ac_includes_default
22357 int
22358 main ()
22359 {
22360 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
22361 test_array [0] = 0
22362
22363   ;
22364   return 0;
22365 }
22366 _ACEOF
22367 rm -f conftest.$ac_objext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22369   (eval $ac_compile) 2>conftest.er1
22370   ac_status=$?
22371   grep -v '^ *+' conftest.er1 >conftest.err
22372   rm -f conftest.er1
22373   cat conftest.err >&5
22374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375   (exit $ac_status); } &&
22376          { ac_try='test -z "$ac_c_werror_flag"
22377                          || test ! -s conftest.err'
22378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379   (eval $ac_try) 2>&5
22380   ac_status=$?
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); }; } &&
22383          { ac_try='test -s conftest.$ac_objext'
22384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385   (eval $ac_try) 2>&5
22386   ac_status=$?
22387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388   (exit $ac_status); }; }; then
22389   ac_hi=$ac_mid
22390 else
22391   echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22393
22394 ac_lo=`expr '(' $ac_mid ')' + 1`
22395 fi
22396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22397 done
22398 case $ac_lo in
22399 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22400 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22401 See \`config.log' for more details." >&5
22402 echo "$as_me: error: cannot compute sizeof (long long), 77
22403 See \`config.log' for more details." >&2;}
22404    { (exit 1); exit 1; }; } ;;
22405 esac
22406 else
22407   if test "$cross_compiling" = yes; then
22408   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22409 See \`config.log' for more details." >&5
22410 echo "$as_me: error: cannot run test program while cross compiling
22411 See \`config.log' for more details." >&2;}
22412    { (exit 1); exit 1; }; }
22413 else
22414   cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h.  */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h.  */
22420 $ac_includes_default
22421 long longval () { return (long) (sizeof (long long)); }
22422 unsigned long ulongval () { return (long) (sizeof (long long)); }
22423 #include <stdio.h>
22424 #include <stdlib.h>
22425 int
22426 main ()
22427 {
22428
22429   FILE *f = fopen ("conftest.val", "w");
22430   if (! f)
22431     exit (1);
22432   if (((long) (sizeof (long long))) < 0)
22433     {
22434       long i = longval ();
22435       if (i != ((long) (sizeof (long long))))
22436         exit (1);
22437       fprintf (f, "%ld\n", i);
22438     }
22439   else
22440     {
22441       unsigned long i = ulongval ();
22442       if (i != ((long) (sizeof (long long))))
22443         exit (1);
22444       fprintf (f, "%lu\n", i);
22445     }
22446   exit (ferror (f) || fclose (f) != 0);
22447
22448   ;
22449   return 0;
22450 }
22451 _ACEOF
22452 rm -f conftest$ac_exeext
22453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22454   (eval $ac_link) 2>&5
22455   ac_status=$?
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459   (eval $ac_try) 2>&5
22460   ac_status=$?
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); }; }; then
22463   ac_cv_sizeof_long_long=`cat conftest.val`
22464 else
22465   echo "$as_me: program exited with status $ac_status" >&5
22466 echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22468
22469 ( exit $ac_status )
22470 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22471 See \`config.log' for more details." >&5
22472 echo "$as_me: error: cannot compute sizeof (long long), 77
22473 See \`config.log' for more details." >&2;}
22474    { (exit 1); exit 1; }; }
22475 fi
22476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22477 fi
22478 fi
22479 rm -f conftest.val
22480 else
22481   ac_cv_sizeof_long_long=0
22482 fi
22483 fi
22484 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22485 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
22486 cat >>confdefs.h <<_ACEOF
22487 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22488 _ACEOF
22489
22490
22491                 echo "$as_me:$LINENO: checking for uniquely sized long long" >&5
22492 echo $ECHO_N "checking for uniquely sized long long... $ECHO_C" >&6
22493 if test "${ccvs_cv_unique_int_type_long_long+set}" = set; then
22494   echo $ECHO_N "(cached) $ECHO_C" >&6
22495 else
22496   if set |grep ^ccvs_cv_unique_int_type_ \
22497                                 |grep "($ac_cv_sizeof_long_long)" >/dev/null ; then
22498                                 ccvs_cv_unique_int_type_long_long=no
22499                         else
22500                                 ccvs_cv_unique_int_type_long_long=yes\($ac_cv_sizeof_long_long\)
22501                         fi
22502 fi
22503 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long_long" >&5
22504 echo "${ECHO_T}$ccvs_cv_unique_int_type_long_long" >&6
22505                 if test $ccvs_cv_unique_int_type_long_long != no ; then
22506
22507 cat >>confdefs.h <<\_ACEOF
22508 #define UNIQUE_INT_TYPE_LONG_LONG 1
22509 _ACEOF
22510
22511                 fi
22512         fi
22513         echo "$as_me:$LINENO: checking for size_t" >&5
22514 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22515 if test "${ac_cv_type_size_t+set}" = set; then
22516   echo $ECHO_N "(cached) $ECHO_C" >&6
22517 else
22518   cat >conftest.$ac_ext <<_ACEOF
22519 /* confdefs.h.  */
22520 _ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h.  */
22524 $ac_includes_default
22525 int
22526 main ()
22527 {
22528 if ((size_t *) 0)
22529   return 0;
22530 if (sizeof (size_t))
22531   return 0;
22532   ;
22533   return 0;
22534 }
22535 _ACEOF
22536 rm -f conftest.$ac_objext
22537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22538   (eval $ac_compile) 2>conftest.er1
22539   ac_status=$?
22540   grep -v '^ *+' conftest.er1 >conftest.err
22541   rm -f conftest.er1
22542   cat conftest.err >&5
22543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544   (exit $ac_status); } &&
22545          { ac_try='test -z "$ac_c_werror_flag"
22546                          || test ! -s conftest.err'
22547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548   (eval $ac_try) 2>&5
22549   ac_status=$?
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); }; } &&
22552          { ac_try='test -s conftest.$ac_objext'
22553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554   (eval $ac_try) 2>&5
22555   ac_status=$?
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); }; }; then
22558   ac_cv_type_size_t=yes
22559 else
22560   echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22562
22563 ac_cv_type_size_t=no
22564 fi
22565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22566 fi
22567 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22568 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22569
22570 echo "$as_me:$LINENO: checking size of size_t" >&5
22571 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
22572 if test "${ac_cv_sizeof_size_t+set}" = set; then
22573   echo $ECHO_N "(cached) $ECHO_C" >&6
22574 else
22575   if test "$ac_cv_type_size_t" = yes; then
22576   # The cast to unsigned long works around a bug in the HP C Compiler
22577   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22578   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22579   # This bug is HP SR number 8606223364.
22580   if test "$cross_compiling" = yes; then
22581   # Depending upon the size, compute the lo and hi bounds.
22582 cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h.  */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h.  */
22588 $ac_includes_default
22589 int
22590 main ()
22591 {
22592 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
22593 test_array [0] = 0
22594
22595   ;
22596   return 0;
22597 }
22598 _ACEOF
22599 rm -f conftest.$ac_objext
22600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22601   (eval $ac_compile) 2>conftest.er1
22602   ac_status=$?
22603   grep -v '^ *+' conftest.er1 >conftest.err
22604   rm -f conftest.er1
22605   cat conftest.err >&5
22606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607   (exit $ac_status); } &&
22608          { ac_try='test -z "$ac_c_werror_flag"
22609                          || test ! -s conftest.err'
22610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611   (eval $ac_try) 2>&5
22612   ac_status=$?
22613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614   (exit $ac_status); }; } &&
22615          { ac_try='test -s conftest.$ac_objext'
22616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22617   (eval $ac_try) 2>&5
22618   ac_status=$?
22619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620   (exit $ac_status); }; }; then
22621   ac_lo=0 ac_mid=0
22622   while :; do
22623     cat >conftest.$ac_ext <<_ACEOF
22624 /* confdefs.h.  */
22625 _ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h.  */
22629 $ac_includes_default
22630 int
22631 main ()
22632 {
22633 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
22634 test_array [0] = 0
22635
22636   ;
22637   return 0;
22638 }
22639 _ACEOF
22640 rm -f conftest.$ac_objext
22641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22642   (eval $ac_compile) 2>conftest.er1
22643   ac_status=$?
22644   grep -v '^ *+' conftest.er1 >conftest.err
22645   rm -f conftest.er1
22646   cat conftest.err >&5
22647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648   (exit $ac_status); } &&
22649          { ac_try='test -z "$ac_c_werror_flag"
22650                          || test ! -s conftest.err'
22651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22652   (eval $ac_try) 2>&5
22653   ac_status=$?
22654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655   (exit $ac_status); }; } &&
22656          { ac_try='test -s conftest.$ac_objext'
22657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22658   (eval $ac_try) 2>&5
22659   ac_status=$?
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); }; }; then
22662   ac_hi=$ac_mid; break
22663 else
22664   echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22666
22667 ac_lo=`expr $ac_mid + 1`
22668                     if test $ac_lo -le $ac_mid; then
22669                       ac_lo= ac_hi=
22670                       break
22671                     fi
22672                     ac_mid=`expr 2 '*' $ac_mid + 1`
22673 fi
22674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22675   done
22676 else
22677   echo "$as_me: failed program was:" >&5
22678 sed 's/^/| /' conftest.$ac_ext >&5
22679
22680 cat >conftest.$ac_ext <<_ACEOF
22681 /* confdefs.h.  */
22682 _ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h.  */
22686 $ac_includes_default
22687 int
22688 main ()
22689 {
22690 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
22691 test_array [0] = 0
22692
22693   ;
22694   return 0;
22695 }
22696 _ACEOF
22697 rm -f conftest.$ac_objext
22698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22699   (eval $ac_compile) 2>conftest.er1
22700   ac_status=$?
22701   grep -v '^ *+' conftest.er1 >conftest.err
22702   rm -f conftest.er1
22703   cat conftest.err >&5
22704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705   (exit $ac_status); } &&
22706          { ac_try='test -z "$ac_c_werror_flag"
22707                          || test ! -s conftest.err'
22708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709   (eval $ac_try) 2>&5
22710   ac_status=$?
22711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712   (exit $ac_status); }; } &&
22713          { ac_try='test -s conftest.$ac_objext'
22714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22715   (eval $ac_try) 2>&5
22716   ac_status=$?
22717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718   (exit $ac_status); }; }; then
22719   ac_hi=-1 ac_mid=-1
22720   while :; do
22721     cat >conftest.$ac_ext <<_ACEOF
22722 /* confdefs.h.  */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h.  */
22727 $ac_includes_default
22728 int
22729 main ()
22730 {
22731 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
22732 test_array [0] = 0
22733
22734   ;
22735   return 0;
22736 }
22737 _ACEOF
22738 rm -f conftest.$ac_objext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22740   (eval $ac_compile) 2>conftest.er1
22741   ac_status=$?
22742   grep -v '^ *+' conftest.er1 >conftest.err
22743   rm -f conftest.er1
22744   cat conftest.err >&5
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); } &&
22747          { ac_try='test -z "$ac_c_werror_flag"
22748                          || test ! -s conftest.err'
22749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750   (eval $ac_try) 2>&5
22751   ac_status=$?
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); }; } &&
22754          { ac_try='test -s conftest.$ac_objext'
22755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756   (eval $ac_try) 2>&5
22757   ac_status=$?
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); }; }; then
22760   ac_lo=$ac_mid; break
22761 else
22762   echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22764
22765 ac_hi=`expr '(' $ac_mid ')' - 1`
22766                        if test $ac_mid -le $ac_hi; then
22767                          ac_lo= ac_hi=
22768                          break
22769                        fi
22770                        ac_mid=`expr 2 '*' $ac_mid`
22771 fi
22772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22773   done
22774 else
22775   echo "$as_me: failed program was:" >&5
22776 sed 's/^/| /' conftest.$ac_ext >&5
22777
22778 ac_lo= ac_hi=
22779 fi
22780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22781 fi
22782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22783 # Binary search between lo and hi bounds.
22784 while test "x$ac_lo" != "x$ac_hi"; do
22785   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22786   cat >conftest.$ac_ext <<_ACEOF
22787 /* confdefs.h.  */
22788 _ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h.  */
22792 $ac_includes_default
22793 int
22794 main ()
22795 {
22796 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
22797 test_array [0] = 0
22798
22799   ;
22800   return 0;
22801 }
22802 _ACEOF
22803 rm -f conftest.$ac_objext
22804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22805   (eval $ac_compile) 2>conftest.er1
22806   ac_status=$?
22807   grep -v '^ *+' conftest.er1 >conftest.err
22808   rm -f conftest.er1
22809   cat conftest.err >&5
22810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811   (exit $ac_status); } &&
22812          { ac_try='test -z "$ac_c_werror_flag"
22813                          || test ! -s conftest.err'
22814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815   (eval $ac_try) 2>&5
22816   ac_status=$?
22817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818   (exit $ac_status); }; } &&
22819          { ac_try='test -s conftest.$ac_objext'
22820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821   (eval $ac_try) 2>&5
22822   ac_status=$?
22823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824   (exit $ac_status); }; }; then
22825   ac_hi=$ac_mid
22826 else
22827   echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22829
22830 ac_lo=`expr '(' $ac_mid ')' + 1`
22831 fi
22832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22833 done
22834 case $ac_lo in
22835 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22836 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
22837 See \`config.log' for more details." >&5
22838 echo "$as_me: error: cannot compute sizeof (size_t), 77
22839 See \`config.log' for more details." >&2;}
22840    { (exit 1); exit 1; }; } ;;
22841 esac
22842 else
22843   if test "$cross_compiling" = yes; then
22844   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22845 See \`config.log' for more details." >&5
22846 echo "$as_me: error: cannot run test program while cross compiling
22847 See \`config.log' for more details." >&2;}
22848    { (exit 1); exit 1; }; }
22849 else
22850   cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h.  */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h.  */
22856 $ac_includes_default
22857 long longval () { return (long) (sizeof (size_t)); }
22858 unsigned long ulongval () { return (long) (sizeof (size_t)); }
22859 #include <stdio.h>
22860 #include <stdlib.h>
22861 int
22862 main ()
22863 {
22864
22865   FILE *f = fopen ("conftest.val", "w");
22866   if (! f)
22867     exit (1);
22868   if (((long) (sizeof (size_t))) < 0)
22869     {
22870       long i = longval ();
22871       if (i != ((long) (sizeof (size_t))))
22872         exit (1);
22873       fprintf (f, "%ld\n", i);
22874     }
22875   else
22876     {
22877       unsigned long i = ulongval ();
22878       if (i != ((long) (sizeof (size_t))))
22879         exit (1);
22880       fprintf (f, "%lu\n", i);
22881     }
22882   exit (ferror (f) || fclose (f) != 0);
22883
22884   ;
22885   return 0;
22886 }
22887 _ACEOF
22888 rm -f conftest$ac_exeext
22889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22890   (eval $ac_link) 2>&5
22891   ac_status=$?
22892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22895   (eval $ac_try) 2>&5
22896   ac_status=$?
22897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898   (exit $ac_status); }; }; then
22899   ac_cv_sizeof_size_t=`cat conftest.val`
22900 else
22901   echo "$as_me: program exited with status $ac_status" >&5
22902 echo "$as_me: failed program was:" >&5
22903 sed 's/^/| /' conftest.$ac_ext >&5
22904
22905 ( exit $ac_status )
22906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
22907 See \`config.log' for more details." >&5
22908 echo "$as_me: error: cannot compute sizeof (size_t), 77
22909 See \`config.log' for more details." >&2;}
22910    { (exit 1); exit 1; }; }
22911 fi
22912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22913 fi
22914 fi
22915 rm -f conftest.val
22916 else
22917   ac_cv_sizeof_size_t=0
22918 fi
22919 fi
22920 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22921 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
22922 cat >>confdefs.h <<_ACEOF
22923 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22924 _ACEOF
22925
22926
22927         echo "$as_me:$LINENO: checking for uniquely sized size_t" >&5
22928 echo $ECHO_N "checking for uniquely sized size_t... $ECHO_C" >&6
22929 if test "${ccvs_cv_unique_int_type_size_t+set}" = set; then
22930   echo $ECHO_N "(cached) $ECHO_C" >&6
22931 else
22932   if set |grep ^ccvs_cv_unique_int_type_ \
22933                         |grep "($ac_cv_sizeof_size_t)" >/dev/null ; then
22934                         ccvs_cv_unique_int_type_size_t=no
22935                 else
22936                         ccvs_cv_unique_int_type_size_t=yes\($ac_cv_sizeof_size_t\)
22937                 fi
22938 fi
22939 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_size_t" >&5
22940 echo "${ECHO_T}$ccvs_cv_unique_int_type_size_t" >&6
22941         if test $ccvs_cv_unique_int_type_size_t != no ; then
22942
22943 cat >>confdefs.h <<\_ACEOF
22944 #define UNIQUE_INT_TYPE_SIZE_T 1
22945 _ACEOF
22946
22947         fi
22948         echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22949 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22950 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22951   echo $ECHO_N "(cached) $ECHO_C" >&6
22952 else
22953   cat >conftest.$ac_ext <<_ACEOF
22954 /* confdefs.h.  */
22955 _ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h.  */
22959 $ac_includes_default
22960 int
22961 main ()
22962 {
22963 if ((ptrdiff_t *) 0)
22964   return 0;
22965 if (sizeof (ptrdiff_t))
22966   return 0;
22967   ;
22968   return 0;
22969 }
22970 _ACEOF
22971 rm -f conftest.$ac_objext
22972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22973   (eval $ac_compile) 2>conftest.er1
22974   ac_status=$?
22975   grep -v '^ *+' conftest.er1 >conftest.err
22976   rm -f conftest.er1
22977   cat conftest.err >&5
22978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979   (exit $ac_status); } &&
22980          { ac_try='test -z "$ac_c_werror_flag"
22981                          || test ! -s conftest.err'
22982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983   (eval $ac_try) 2>&5
22984   ac_status=$?
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); }; } &&
22987          { ac_try='test -s conftest.$ac_objext'
22988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989   (eval $ac_try) 2>&5
22990   ac_status=$?
22991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992   (exit $ac_status); }; }; then
22993   ac_cv_type_ptrdiff_t=yes
22994 else
22995   echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22997
22998 ac_cv_type_ptrdiff_t=no
22999 fi
23000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23001 fi
23002 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
23003 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
23004
23005 echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
23006 echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6
23007 if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
23008   echo $ECHO_N "(cached) $ECHO_C" >&6
23009 else
23010   if test "$ac_cv_type_ptrdiff_t" = yes; then
23011   # The cast to unsigned long works around a bug in the HP C Compiler
23012   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23013   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23014   # This bug is HP SR number 8606223364.
23015   if test "$cross_compiling" = yes; then
23016   # Depending upon the size, compute the lo and hi bounds.
23017 cat >conftest.$ac_ext <<_ACEOF
23018 /* confdefs.h.  */
23019 _ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h.  */
23023 $ac_includes_default
23024 int
23025 main ()
23026 {
23027 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= 0)];
23028 test_array [0] = 0
23029
23030   ;
23031   return 0;
23032 }
23033 _ACEOF
23034 rm -f conftest.$ac_objext
23035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23036   (eval $ac_compile) 2>conftest.er1
23037   ac_status=$?
23038   grep -v '^ *+' conftest.er1 >conftest.err
23039   rm -f conftest.er1
23040   cat conftest.err >&5
23041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042   (exit $ac_status); } &&
23043          { ac_try='test -z "$ac_c_werror_flag"
23044                          || test ! -s conftest.err'
23045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23046   (eval $ac_try) 2>&5
23047   ac_status=$?
23048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049   (exit $ac_status); }; } &&
23050          { ac_try='test -s conftest.$ac_objext'
23051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23052   (eval $ac_try) 2>&5
23053   ac_status=$?
23054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055   (exit $ac_status); }; }; then
23056   ac_lo=0 ac_mid=0
23057   while :; do
23058     cat >conftest.$ac_ext <<_ACEOF
23059 /* confdefs.h.  */
23060 _ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h.  */
23064 $ac_includes_default
23065 int
23066 main ()
23067 {
23068 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
23069 test_array [0] = 0
23070
23071   ;
23072   return 0;
23073 }
23074 _ACEOF
23075 rm -f conftest.$ac_objext
23076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23077   (eval $ac_compile) 2>conftest.er1
23078   ac_status=$?
23079   grep -v '^ *+' conftest.er1 >conftest.err
23080   rm -f conftest.er1
23081   cat conftest.err >&5
23082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083   (exit $ac_status); } &&
23084          { ac_try='test -z "$ac_c_werror_flag"
23085                          || test ! -s conftest.err'
23086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087   (eval $ac_try) 2>&5
23088   ac_status=$?
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); }; } &&
23091          { ac_try='test -s conftest.$ac_objext'
23092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23093   (eval $ac_try) 2>&5
23094   ac_status=$?
23095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096   (exit $ac_status); }; }; then
23097   ac_hi=$ac_mid; break
23098 else
23099   echo "$as_me: failed program was:" >&5
23100 sed 's/^/| /' conftest.$ac_ext >&5
23101
23102 ac_lo=`expr $ac_mid + 1`
23103                     if test $ac_lo -le $ac_mid; then
23104                       ac_lo= ac_hi=
23105                       break
23106                     fi
23107                     ac_mid=`expr 2 '*' $ac_mid + 1`
23108 fi
23109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23110   done
23111 else
23112   echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23114
23115 cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h.  */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h.  */
23121 $ac_includes_default
23122 int
23123 main ()
23124 {
23125 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) < 0)];
23126 test_array [0] = 0
23127
23128   ;
23129   return 0;
23130 }
23131 _ACEOF
23132 rm -f conftest.$ac_objext
23133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23134   (eval $ac_compile) 2>conftest.er1
23135   ac_status=$?
23136   grep -v '^ *+' conftest.er1 >conftest.err
23137   rm -f conftest.er1
23138   cat conftest.err >&5
23139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140   (exit $ac_status); } &&
23141          { ac_try='test -z "$ac_c_werror_flag"
23142                          || test ! -s conftest.err'
23143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144   (eval $ac_try) 2>&5
23145   ac_status=$?
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); }; } &&
23148          { ac_try='test -s conftest.$ac_objext'
23149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150   (eval $ac_try) 2>&5
23151   ac_status=$?
23152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153   (exit $ac_status); }; }; then
23154   ac_hi=-1 ac_mid=-1
23155   while :; do
23156     cat >conftest.$ac_ext <<_ACEOF
23157 /* confdefs.h.  */
23158 _ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h.  */
23162 $ac_includes_default
23163 int
23164 main ()
23165 {
23166 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= $ac_mid)];
23167 test_array [0] = 0
23168
23169   ;
23170   return 0;
23171 }
23172 _ACEOF
23173 rm -f conftest.$ac_objext
23174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23175   (eval $ac_compile) 2>conftest.er1
23176   ac_status=$?
23177   grep -v '^ *+' conftest.er1 >conftest.err
23178   rm -f conftest.er1
23179   cat conftest.err >&5
23180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181   (exit $ac_status); } &&
23182          { ac_try='test -z "$ac_c_werror_flag"
23183                          || test ! -s conftest.err'
23184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185   (eval $ac_try) 2>&5
23186   ac_status=$?
23187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188   (exit $ac_status); }; } &&
23189          { ac_try='test -s conftest.$ac_objext'
23190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191   (eval $ac_try) 2>&5
23192   ac_status=$?
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); }; }; then
23195   ac_lo=$ac_mid; break
23196 else
23197   echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23199
23200 ac_hi=`expr '(' $ac_mid ')' - 1`
23201                        if test $ac_mid -le $ac_hi; then
23202                          ac_lo= ac_hi=
23203                          break
23204                        fi
23205                        ac_mid=`expr 2 '*' $ac_mid`
23206 fi
23207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23208   done
23209 else
23210   echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23212
23213 ac_lo= ac_hi=
23214 fi
23215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23216 fi
23217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23218 # Binary search between lo and hi bounds.
23219 while test "x$ac_lo" != "x$ac_hi"; do
23220   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23221   cat >conftest.$ac_ext <<_ACEOF
23222 /* confdefs.h.  */
23223 _ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h.  */
23227 $ac_includes_default
23228 int
23229 main ()
23230 {
23231 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
23232 test_array [0] = 0
23233
23234   ;
23235   return 0;
23236 }
23237 _ACEOF
23238 rm -f conftest.$ac_objext
23239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23240   (eval $ac_compile) 2>conftest.er1
23241   ac_status=$?
23242   grep -v '^ *+' conftest.er1 >conftest.err
23243   rm -f conftest.er1
23244   cat conftest.err >&5
23245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246   (exit $ac_status); } &&
23247          { ac_try='test -z "$ac_c_werror_flag"
23248                          || test ! -s conftest.err'
23249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23250   (eval $ac_try) 2>&5
23251   ac_status=$?
23252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253   (exit $ac_status); }; } &&
23254          { ac_try='test -s conftest.$ac_objext'
23255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256   (eval $ac_try) 2>&5
23257   ac_status=$?
23258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259   (exit $ac_status); }; }; then
23260   ac_hi=$ac_mid
23261 else
23262   echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23264
23265 ac_lo=`expr '(' $ac_mid ')' + 1`
23266 fi
23267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23268 done
23269 case $ac_lo in
23270 ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
23271 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
23272 See \`config.log' for more details." >&5
23273 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
23274 See \`config.log' for more details." >&2;}
23275    { (exit 1); exit 1; }; } ;;
23276 esac
23277 else
23278   if test "$cross_compiling" = yes; then
23279   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23280 See \`config.log' for more details." >&5
23281 echo "$as_me: error: cannot run test program while cross compiling
23282 See \`config.log' for more details." >&2;}
23283    { (exit 1); exit 1; }; }
23284 else
23285   cat >conftest.$ac_ext <<_ACEOF
23286 /* confdefs.h.  */
23287 _ACEOF
23288 cat confdefs.h >>conftest.$ac_ext
23289 cat >>conftest.$ac_ext <<_ACEOF
23290 /* end confdefs.h.  */
23291 $ac_includes_default
23292 long longval () { return (long) (sizeof (ptrdiff_t)); }
23293 unsigned long ulongval () { return (long) (sizeof (ptrdiff_t)); }
23294 #include <stdio.h>
23295 #include <stdlib.h>
23296 int
23297 main ()
23298 {
23299
23300   FILE *f = fopen ("conftest.val", "w");
23301   if (! f)
23302     exit (1);
23303   if (((long) (sizeof (ptrdiff_t))) < 0)
23304     {
23305       long i = longval ();
23306       if (i != ((long) (sizeof (ptrdiff_t))))
23307         exit (1);
23308       fprintf (f, "%ld\n", i);
23309     }
23310   else
23311     {
23312       unsigned long i = ulongval ();
23313       if (i != ((long) (sizeof (ptrdiff_t))))
23314         exit (1);
23315       fprintf (f, "%lu\n", i);
23316     }
23317   exit (ferror (f) || fclose (f) != 0);
23318
23319   ;
23320   return 0;
23321 }
23322 _ACEOF
23323 rm -f conftest$ac_exeext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23325   (eval $ac_link) 2>&5
23326   ac_status=$?
23327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330   (eval $ac_try) 2>&5
23331   ac_status=$?
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); }; }; then
23334   ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
23335 else
23336   echo "$as_me: program exited with status $ac_status" >&5
23337 echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23339
23340 ( exit $ac_status )
23341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
23342 See \`config.log' for more details." >&5
23343 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
23344 See \`config.log' for more details." >&2;}
23345    { (exit 1); exit 1; }; }
23346 fi
23347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23348 fi
23349 fi
23350 rm -f conftest.val
23351 else
23352   ac_cv_sizeof_ptrdiff_t=0
23353 fi
23354 fi
23355 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
23356 echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6
23357 cat >>confdefs.h <<_ACEOF
23358 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
23359 _ACEOF
23360
23361
23362         echo "$as_me:$LINENO: checking for uniquely sized ptrdiff_t" >&5
23363 echo $ECHO_N "checking for uniquely sized ptrdiff_t... $ECHO_C" >&6
23364 if test "${ccvs_cv_unique_int_type_ptrdiff_t+set}" = set; then
23365   echo $ECHO_N "(cached) $ECHO_C" >&6
23366 else
23367   if set |grep ^ccvs_cv_unique_int_type_ \
23368                         |grep "($ac_cv_sizeof_ptrdiff_t)" >/dev/null ; then
23369                         ccvs_cv_unique_int_type_ptrdiff_t=no
23370                 else
23371                         ccvs_cv_unique_int_type_ptrdiff_t=yes\($ac_cv_sizeof_ptrdiff_t\)
23372                 fi
23373 fi
23374 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_ptrdiff_t" >&5
23375 echo "${ECHO_T}$ccvs_cv_unique_int_type_ptrdiff_t" >&6
23376         if test $ccvs_cv_unique_int_type_ptrdiff_t != no ; then
23377
23378 cat >>confdefs.h <<\_ACEOF
23379 #define UNIQUE_INT_TYPE_PTRDIFF_T 1
23380 _ACEOF
23381
23382         fi
23383         if test $gt_cv_c_wint_t != no; then
23384                 echo "$as_me:$LINENO: checking for wint_t" >&5
23385 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
23386 if test "${ac_cv_type_wint_t+set}" = set; then
23387   echo $ECHO_N "(cached) $ECHO_C" >&6
23388 else
23389   cat >conftest.$ac_ext <<_ACEOF
23390 /* confdefs.h.  */
23391 _ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h.  */
23395 #include <stdio.h>
23396 #include <wchar.h>
23397
23398
23399 int
23400 main ()
23401 {
23402 if ((wint_t *) 0)
23403   return 0;
23404 if (sizeof (wint_t))
23405   return 0;
23406   ;
23407   return 0;
23408 }
23409 _ACEOF
23410 rm -f conftest.$ac_objext
23411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23412   (eval $ac_compile) 2>conftest.er1
23413   ac_status=$?
23414   grep -v '^ *+' conftest.er1 >conftest.err
23415   rm -f conftest.er1
23416   cat conftest.err >&5
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); } &&
23419          { ac_try='test -z "$ac_c_werror_flag"
23420                          || test ! -s conftest.err'
23421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422   (eval $ac_try) 2>&5
23423   ac_status=$?
23424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); }; } &&
23426          { ac_try='test -s conftest.$ac_objext'
23427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428   (eval $ac_try) 2>&5
23429   ac_status=$?
23430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431   (exit $ac_status); }; }; then
23432   ac_cv_type_wint_t=yes
23433 else
23434   echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23436
23437 ac_cv_type_wint_t=no
23438 fi
23439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23440 fi
23441 echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
23442 echo "${ECHO_T}$ac_cv_type_wint_t" >&6
23443
23444 echo "$as_me:$LINENO: checking size of wint_t" >&5
23445 echo $ECHO_N "checking size of wint_t... $ECHO_C" >&6
23446 if test "${ac_cv_sizeof_wint_t+set}" = set; then
23447   echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449   if test "$ac_cv_type_wint_t" = yes; then
23450   # The cast to unsigned long works around a bug in the HP C Compiler
23451   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23452   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23453   # This bug is HP SR number 8606223364.
23454   if test "$cross_compiling" = yes; then
23455   # Depending upon the size, compute the lo and hi bounds.
23456 cat >conftest.$ac_ext <<_ACEOF
23457 /* confdefs.h.  */
23458 _ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h.  */
23462 #include <stdio.h>
23463 #include <wchar.h>
23464
23465
23466 int
23467 main ()
23468 {
23469 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) >= 0)];
23470 test_array [0] = 0
23471
23472   ;
23473   return 0;
23474 }
23475 _ACEOF
23476 rm -f conftest.$ac_objext
23477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23478   (eval $ac_compile) 2>conftest.er1
23479   ac_status=$?
23480   grep -v '^ *+' conftest.er1 >conftest.err
23481   rm -f conftest.er1
23482   cat conftest.err >&5
23483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484   (exit $ac_status); } &&
23485          { ac_try='test -z "$ac_c_werror_flag"
23486                          || test ! -s conftest.err'
23487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488   (eval $ac_try) 2>&5
23489   ac_status=$?
23490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); }; } &&
23492          { ac_try='test -s conftest.$ac_objext'
23493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494   (eval $ac_try) 2>&5
23495   ac_status=$?
23496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497   (exit $ac_status); }; }; then
23498   ac_lo=0 ac_mid=0
23499   while :; do
23500     cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h.  */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h.  */
23506 #include <stdio.h>
23507 #include <wchar.h>
23508
23509
23510 int
23511 main ()
23512 {
23513 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) <= $ac_mid)];
23514 test_array [0] = 0
23515
23516   ;
23517   return 0;
23518 }
23519 _ACEOF
23520 rm -f conftest.$ac_objext
23521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23522   (eval $ac_compile) 2>conftest.er1
23523   ac_status=$?
23524   grep -v '^ *+' conftest.er1 >conftest.err
23525   rm -f conftest.er1
23526   cat conftest.err >&5
23527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528   (exit $ac_status); } &&
23529          { ac_try='test -z "$ac_c_werror_flag"
23530                          || test ! -s conftest.err'
23531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23532   (eval $ac_try) 2>&5
23533   ac_status=$?
23534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535   (exit $ac_status); }; } &&
23536          { ac_try='test -s conftest.$ac_objext'
23537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538   (eval $ac_try) 2>&5
23539   ac_status=$?
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); }; }; then
23542   ac_hi=$ac_mid; break
23543 else
23544   echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23546
23547 ac_lo=`expr $ac_mid + 1`
23548                     if test $ac_lo -le $ac_mid; then
23549                       ac_lo= ac_hi=
23550                       break
23551                     fi
23552                     ac_mid=`expr 2 '*' $ac_mid + 1`
23553 fi
23554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23555   done
23556 else
23557   echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23559
23560 cat >conftest.$ac_ext <<_ACEOF
23561 /* confdefs.h.  */
23562 _ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h.  */
23566 #include <stdio.h>
23567 #include <wchar.h>
23568
23569
23570 int
23571 main ()
23572 {
23573 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) < 0)];
23574 test_array [0] = 0
23575
23576   ;
23577   return 0;
23578 }
23579 _ACEOF
23580 rm -f conftest.$ac_objext
23581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23582   (eval $ac_compile) 2>conftest.er1
23583   ac_status=$?
23584   grep -v '^ *+' conftest.er1 >conftest.err
23585   rm -f conftest.er1
23586   cat conftest.err >&5
23587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588   (exit $ac_status); } &&
23589          { ac_try='test -z "$ac_c_werror_flag"
23590                          || test ! -s conftest.err'
23591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592   (eval $ac_try) 2>&5
23593   ac_status=$?
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); }; } &&
23596          { ac_try='test -s conftest.$ac_objext'
23597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598   (eval $ac_try) 2>&5
23599   ac_status=$?
23600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601   (exit $ac_status); }; }; then
23602   ac_hi=-1 ac_mid=-1
23603   while :; do
23604     cat >conftest.$ac_ext <<_ACEOF
23605 /* confdefs.h.  */
23606 _ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h.  */
23610 #include <stdio.h>
23611 #include <wchar.h>
23612
23613
23614 int
23615 main ()
23616 {
23617 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) >= $ac_mid)];
23618 test_array [0] = 0
23619
23620   ;
23621   return 0;
23622 }
23623 _ACEOF
23624 rm -f conftest.$ac_objext
23625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23626   (eval $ac_compile) 2>conftest.er1
23627   ac_status=$?
23628   grep -v '^ *+' conftest.er1 >conftest.err
23629   rm -f conftest.er1
23630   cat conftest.err >&5
23631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632   (exit $ac_status); } &&
23633          { ac_try='test -z "$ac_c_werror_flag"
23634                          || test ! -s conftest.err'
23635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636   (eval $ac_try) 2>&5
23637   ac_status=$?
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); }; } &&
23640          { ac_try='test -s conftest.$ac_objext'
23641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642   (eval $ac_try) 2>&5
23643   ac_status=$?
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); }; }; then
23646   ac_lo=$ac_mid; break
23647 else
23648   echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23650
23651 ac_hi=`expr '(' $ac_mid ')' - 1`
23652                        if test $ac_mid -le $ac_hi; then
23653                          ac_lo= ac_hi=
23654                          break
23655                        fi
23656                        ac_mid=`expr 2 '*' $ac_mid`
23657 fi
23658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23659   done
23660 else
23661   echo "$as_me: failed program was:" >&5
23662 sed 's/^/| /' conftest.$ac_ext >&5
23663
23664 ac_lo= ac_hi=
23665 fi
23666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23667 fi
23668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23669 # Binary search between lo and hi bounds.
23670 while test "x$ac_lo" != "x$ac_hi"; do
23671   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23672   cat >conftest.$ac_ext <<_ACEOF
23673 /* confdefs.h.  */
23674 _ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h.  */
23678 #include <stdio.h>
23679 #include <wchar.h>
23680
23681
23682 int
23683 main ()
23684 {
23685 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) <= $ac_mid)];
23686 test_array [0] = 0
23687
23688   ;
23689   return 0;
23690 }
23691 _ACEOF
23692 rm -f conftest.$ac_objext
23693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23694   (eval $ac_compile) 2>conftest.er1
23695   ac_status=$?
23696   grep -v '^ *+' conftest.er1 >conftest.err
23697   rm -f conftest.er1
23698   cat conftest.err >&5
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); } &&
23701          { ac_try='test -z "$ac_c_werror_flag"
23702                          || test ! -s conftest.err'
23703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23704   (eval $ac_try) 2>&5
23705   ac_status=$?
23706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707   (exit $ac_status); }; } &&
23708          { ac_try='test -s conftest.$ac_objext'
23709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23710   (eval $ac_try) 2>&5
23711   ac_status=$?
23712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713   (exit $ac_status); }; }; then
23714   ac_hi=$ac_mid
23715 else
23716   echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23718
23719 ac_lo=`expr '(' $ac_mid ')' + 1`
23720 fi
23721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23722 done
23723 case $ac_lo in
23724 ?*) ac_cv_sizeof_wint_t=$ac_lo;;
23725 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t), 77
23726 See \`config.log' for more details." >&5
23727 echo "$as_me: error: cannot compute sizeof (wint_t), 77
23728 See \`config.log' for more details." >&2;}
23729    { (exit 1); exit 1; }; } ;;
23730 esac
23731 else
23732   if test "$cross_compiling" = yes; then
23733   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23734 See \`config.log' for more details." >&5
23735 echo "$as_me: error: cannot run test program while cross compiling
23736 See \`config.log' for more details." >&2;}
23737    { (exit 1); exit 1; }; }
23738 else
23739   cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h.  */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h.  */
23745 #include <stdio.h>
23746 #include <wchar.h>
23747
23748
23749 long longval () { return (long) (sizeof (wint_t)); }
23750 unsigned long ulongval () { return (long) (sizeof (wint_t)); }
23751 #include <stdio.h>
23752 #include <stdlib.h>
23753 int
23754 main ()
23755 {
23756
23757   FILE *f = fopen ("conftest.val", "w");
23758   if (! f)
23759     exit (1);
23760   if (((long) (sizeof (wint_t))) < 0)
23761     {
23762       long i = longval ();
23763       if (i != ((long) (sizeof (wint_t))))
23764         exit (1);
23765       fprintf (f, "%ld\n", i);
23766     }
23767   else
23768     {
23769       unsigned long i = ulongval ();
23770       if (i != ((long) (sizeof (wint_t))))
23771         exit (1);
23772       fprintf (f, "%lu\n", i);
23773     }
23774   exit (ferror (f) || fclose (f) != 0);
23775
23776   ;
23777   return 0;
23778 }
23779 _ACEOF
23780 rm -f conftest$ac_exeext
23781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23782   (eval $ac_link) 2>&5
23783   ac_status=$?
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787   (eval $ac_try) 2>&5
23788   ac_status=$?
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); }; }; then
23791   ac_cv_sizeof_wint_t=`cat conftest.val`
23792 else
23793   echo "$as_me: program exited with status $ac_status" >&5
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23796
23797 ( exit $ac_status )
23798 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t), 77
23799 See \`config.log' for more details." >&5
23800 echo "$as_me: error: cannot compute sizeof (wint_t), 77
23801 See \`config.log' for more details." >&2;}
23802    { (exit 1); exit 1; }; }
23803 fi
23804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23805 fi
23806 fi
23807 rm -f conftest.val
23808 else
23809   ac_cv_sizeof_wint_t=0
23810 fi
23811 fi
23812 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wint_t" >&5
23813 echo "${ECHO_T}$ac_cv_sizeof_wint_t" >&6
23814 cat >>confdefs.h <<_ACEOF
23815 #define SIZEOF_WINT_T $ac_cv_sizeof_wint_t
23816 _ACEOF
23817
23818
23819                 echo "$as_me:$LINENO: checking for uniquely sized wint_t" >&5
23820 echo $ECHO_N "checking for uniquely sized wint_t... $ECHO_C" >&6
23821 if test "${ccvs_cv_unique_int_type_wint_t+set}" = set; then
23822   echo $ECHO_N "(cached) $ECHO_C" >&6
23823 else
23824   if set |grep ^ccvs_cv_unique_int_type_ \
23825                                 |grep "($ac_cv_sizeof_wint_t)" >/dev/null ; then
23826                                 ccvs_cv_unique_int_type_wint_t=no
23827                         else
23828                                 ccvs_cv_unique_int_type_wint_t=yes\($ac_cv_sizeof_wint_t\)
23829                         fi
23830 fi
23831 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_wint_t" >&5
23832 echo "${ECHO_T}$ccvs_cv_unique_int_type_wint_t" >&6
23833                 if test $ccvs_cv_unique_int_type_wint_t != no ; then
23834
23835 cat >>confdefs.h <<\_ACEOF
23836 #define UNIQUE_INT_TYPE_WINT_T 1
23837 _ACEOF
23838
23839                 fi
23840         fi
23841         if test $gt_cv_c_intmax_t != no; then
23842                 echo "$as_me:$LINENO: checking for intmax_t" >&5
23843 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23844 if test "${ac_cv_type_intmax_t+set}" = set; then
23845   echo $ECHO_N "(cached) $ECHO_C" >&6
23846 else
23847   cat >conftest.$ac_ext <<_ACEOF
23848 /* confdefs.h.  */
23849 _ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h.  */
23853 #include <stdio.h>
23854 #ifdef HAVE_INTTYPES_H
23855 #include <inttypes.h>
23856 #else
23857 #ifdef HAVE_STDINT_H
23858 #include <stdint.h>
23859 #endif
23860 #endif
23861
23862
23863 int
23864 main ()
23865 {
23866 if ((intmax_t *) 0)
23867   return 0;
23868 if (sizeof (intmax_t))
23869   return 0;
23870   ;
23871   return 0;
23872 }
23873 _ACEOF
23874 rm -f conftest.$ac_objext
23875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23876   (eval $ac_compile) 2>conftest.er1
23877   ac_status=$?
23878   grep -v '^ *+' conftest.er1 >conftest.err
23879   rm -f conftest.er1
23880   cat conftest.err >&5
23881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882   (exit $ac_status); } &&
23883          { ac_try='test -z "$ac_c_werror_flag"
23884                          || test ! -s conftest.err'
23885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23886   (eval $ac_try) 2>&5
23887   ac_status=$?
23888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889   (exit $ac_status); }; } &&
23890          { ac_try='test -s conftest.$ac_objext'
23891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892   (eval $ac_try) 2>&5
23893   ac_status=$?
23894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); }; }; then
23896   ac_cv_type_intmax_t=yes
23897 else
23898   echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23900
23901 ac_cv_type_intmax_t=no
23902 fi
23903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23904 fi
23905 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
23906 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
23907
23908 echo "$as_me:$LINENO: checking size of intmax_t" >&5
23909 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
23910 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
23911   echo $ECHO_N "(cached) $ECHO_C" >&6
23912 else
23913   if test "$ac_cv_type_intmax_t" = yes; then
23914   # The cast to unsigned long works around a bug in the HP C Compiler
23915   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23916   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23917   # This bug is HP SR number 8606223364.
23918   if test "$cross_compiling" = yes; then
23919   # Depending upon the size, compute the lo and hi bounds.
23920 cat >conftest.$ac_ext <<_ACEOF
23921 /* confdefs.h.  */
23922 _ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h.  */
23926 #include <stdio.h>
23927 #ifdef HAVE_INTTYPES_H
23928 #include <inttypes.h>
23929 #else
23930 #ifdef HAVE_STDINT_H
23931 #include <stdint.h>
23932 #endif
23933 #endif
23934
23935
23936 int
23937 main ()
23938 {
23939 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
23940 test_array [0] = 0
23941
23942   ;
23943   return 0;
23944 }
23945 _ACEOF
23946 rm -f conftest.$ac_objext
23947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23948   (eval $ac_compile) 2>conftest.er1
23949   ac_status=$?
23950   grep -v '^ *+' conftest.er1 >conftest.err
23951   rm -f conftest.er1
23952   cat conftest.err >&5
23953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954   (exit $ac_status); } &&
23955          { ac_try='test -z "$ac_c_werror_flag"
23956                          || test ! -s conftest.err'
23957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23958   (eval $ac_try) 2>&5
23959   ac_status=$?
23960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961   (exit $ac_status); }; } &&
23962          { ac_try='test -s conftest.$ac_objext'
23963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964   (eval $ac_try) 2>&5
23965   ac_status=$?
23966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967   (exit $ac_status); }; }; then
23968   ac_lo=0 ac_mid=0
23969   while :; do
23970     cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h.  */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h.  */
23976 #include <stdio.h>
23977 #ifdef HAVE_INTTYPES_H
23978 #include <inttypes.h>
23979 #else
23980 #ifdef HAVE_STDINT_H
23981 #include <stdint.h>
23982 #endif
23983 #endif
23984
23985
23986 int
23987 main ()
23988 {
23989 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
23990 test_array [0] = 0
23991
23992   ;
23993   return 0;
23994 }
23995 _ACEOF
23996 rm -f conftest.$ac_objext
23997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23998   (eval $ac_compile) 2>conftest.er1
23999   ac_status=$?
24000   grep -v '^ *+' conftest.er1 >conftest.err
24001   rm -f conftest.er1
24002   cat conftest.err >&5
24003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004   (exit $ac_status); } &&
24005          { ac_try='test -z "$ac_c_werror_flag"
24006                          || test ! -s conftest.err'
24007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008   (eval $ac_try) 2>&5
24009   ac_status=$?
24010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011   (exit $ac_status); }; } &&
24012          { ac_try='test -s conftest.$ac_objext'
24013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014   (eval $ac_try) 2>&5
24015   ac_status=$?
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); }; }; then
24018   ac_hi=$ac_mid; break
24019 else
24020   echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24022
24023 ac_lo=`expr $ac_mid + 1`
24024                     if test $ac_lo -le $ac_mid; then
24025                       ac_lo= ac_hi=
24026                       break
24027                     fi
24028                     ac_mid=`expr 2 '*' $ac_mid + 1`
24029 fi
24030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24031   done
24032 else
24033   echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24035
24036 cat >conftest.$ac_ext <<_ACEOF
24037 /* confdefs.h.  */
24038 _ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h.  */
24042 #include <stdio.h>
24043 #ifdef HAVE_INTTYPES_H
24044 #include <inttypes.h>
24045 #else
24046 #ifdef HAVE_STDINT_H
24047 #include <stdint.h>
24048 #endif
24049 #endif
24050
24051
24052 int
24053 main ()
24054 {
24055 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
24056 test_array [0] = 0
24057
24058   ;
24059   return 0;
24060 }
24061 _ACEOF
24062 rm -f conftest.$ac_objext
24063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24064   (eval $ac_compile) 2>conftest.er1
24065   ac_status=$?
24066   grep -v '^ *+' conftest.er1 >conftest.err
24067   rm -f conftest.er1
24068   cat conftest.err >&5
24069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070   (exit $ac_status); } &&
24071          { ac_try='test -z "$ac_c_werror_flag"
24072                          || test ! -s conftest.err'
24073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074   (eval $ac_try) 2>&5
24075   ac_status=$?
24076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077   (exit $ac_status); }; } &&
24078          { ac_try='test -s conftest.$ac_objext'
24079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080   (eval $ac_try) 2>&5
24081   ac_status=$?
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); }; }; then
24084   ac_hi=-1 ac_mid=-1
24085   while :; do
24086     cat >conftest.$ac_ext <<_ACEOF
24087 /* confdefs.h.  */
24088 _ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h.  */
24092 #include <stdio.h>
24093 #ifdef HAVE_INTTYPES_H
24094 #include <inttypes.h>
24095 #else
24096 #ifdef HAVE_STDINT_H
24097 #include <stdint.h>
24098 #endif
24099 #endif
24100
24101
24102 int
24103 main ()
24104 {
24105 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
24106 test_array [0] = 0
24107
24108   ;
24109   return 0;
24110 }
24111 _ACEOF
24112 rm -f conftest.$ac_objext
24113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24114   (eval $ac_compile) 2>conftest.er1
24115   ac_status=$?
24116   grep -v '^ *+' conftest.er1 >conftest.err
24117   rm -f conftest.er1
24118   cat conftest.err >&5
24119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120   (exit $ac_status); } &&
24121          { ac_try='test -z "$ac_c_werror_flag"
24122                          || test ! -s conftest.err'
24123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124   (eval $ac_try) 2>&5
24125   ac_status=$?
24126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127   (exit $ac_status); }; } &&
24128          { ac_try='test -s conftest.$ac_objext'
24129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130   (eval $ac_try) 2>&5
24131   ac_status=$?
24132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133   (exit $ac_status); }; }; then
24134   ac_lo=$ac_mid; break
24135 else
24136   echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139 ac_hi=`expr '(' $ac_mid ')' - 1`
24140                        if test $ac_mid -le $ac_hi; then
24141                          ac_lo= ac_hi=
24142                          break
24143                        fi
24144                        ac_mid=`expr 2 '*' $ac_mid`
24145 fi
24146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24147   done
24148 else
24149   echo "$as_me: failed program was:" >&5
24150 sed 's/^/| /' conftest.$ac_ext >&5
24151
24152 ac_lo= ac_hi=
24153 fi
24154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24155 fi
24156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24157 # Binary search between lo and hi bounds.
24158 while test "x$ac_lo" != "x$ac_hi"; do
24159   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24160   cat >conftest.$ac_ext <<_ACEOF
24161 /* confdefs.h.  */
24162 _ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h.  */
24166 #include <stdio.h>
24167 #ifdef HAVE_INTTYPES_H
24168 #include <inttypes.h>
24169 #else
24170 #ifdef HAVE_STDINT_H
24171 #include <stdint.h>
24172 #endif
24173 #endif
24174
24175
24176 int
24177 main ()
24178 {
24179 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
24180 test_array [0] = 0
24181
24182   ;
24183   return 0;
24184 }
24185 _ACEOF
24186 rm -f conftest.$ac_objext
24187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24188   (eval $ac_compile) 2>conftest.er1
24189   ac_status=$?
24190   grep -v '^ *+' conftest.er1 >conftest.err
24191   rm -f conftest.er1
24192   cat conftest.err >&5
24193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194   (exit $ac_status); } &&
24195          { ac_try='test -z "$ac_c_werror_flag"
24196                          || test ! -s conftest.err'
24197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198   (eval $ac_try) 2>&5
24199   ac_status=$?
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); }; } &&
24202          { ac_try='test -s conftest.$ac_objext'
24203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24204   (eval $ac_try) 2>&5
24205   ac_status=$?
24206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207   (exit $ac_status); }; }; then
24208   ac_hi=$ac_mid
24209 else
24210   echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24212
24213 ac_lo=`expr '(' $ac_mid ')' + 1`
24214 fi
24215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24216 done
24217 case $ac_lo in
24218 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
24219 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
24220 See \`config.log' for more details." >&5
24221 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
24222 See \`config.log' for more details." >&2;}
24223    { (exit 1); exit 1; }; } ;;
24224 esac
24225 else
24226   if test "$cross_compiling" = yes; then
24227   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24228 See \`config.log' for more details." >&5
24229 echo "$as_me: error: cannot run test program while cross compiling
24230 See \`config.log' for more details." >&2;}
24231    { (exit 1); exit 1; }; }
24232 else
24233   cat >conftest.$ac_ext <<_ACEOF
24234 /* confdefs.h.  */
24235 _ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h.  */
24239 #include <stdio.h>
24240 #ifdef HAVE_INTTYPES_H
24241 #include <inttypes.h>
24242 #else
24243 #ifdef HAVE_STDINT_H
24244 #include <stdint.h>
24245 #endif
24246 #endif
24247
24248
24249 long longval () { return (long) (sizeof (intmax_t)); }
24250 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
24251 #include <stdio.h>
24252 #include <stdlib.h>
24253 int
24254 main ()
24255 {
24256
24257   FILE *f = fopen ("conftest.val", "w");
24258   if (! f)
24259     exit (1);
24260   if (((long) (sizeof (intmax_t))) < 0)
24261     {
24262       long i = longval ();
24263       if (i != ((long) (sizeof (intmax_t))))
24264         exit (1);
24265       fprintf (f, "%ld\n", i);
24266     }
24267   else
24268     {
24269       unsigned long i = ulongval ();
24270       if (i != ((long) (sizeof (intmax_t))))
24271         exit (1);
24272       fprintf (f, "%lu\n", i);
24273     }
24274   exit (ferror (f) || fclose (f) != 0);
24275
24276   ;
24277   return 0;
24278 }
24279 _ACEOF
24280 rm -f conftest$ac_exeext
24281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24282   (eval $ac_link) 2>&5
24283   ac_status=$?
24284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24287   (eval $ac_try) 2>&5
24288   ac_status=$?
24289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290   (exit $ac_status); }; }; then
24291   ac_cv_sizeof_intmax_t=`cat conftest.val`
24292 else
24293   echo "$as_me: program exited with status $ac_status" >&5
24294 echo "$as_me: failed program was:" >&5
24295 sed 's/^/| /' conftest.$ac_ext >&5
24296
24297 ( exit $ac_status )
24298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
24299 See \`config.log' for more details." >&5
24300 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
24301 See \`config.log' for more details." >&2;}
24302    { (exit 1); exit 1; }; }
24303 fi
24304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24305 fi
24306 fi
24307 rm -f conftest.val
24308 else
24309   ac_cv_sizeof_intmax_t=0
24310 fi
24311 fi
24312 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
24313 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
24314 cat >>confdefs.h <<_ACEOF
24315 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
24316 _ACEOF
24317
24318
24319                 echo "$as_me:$LINENO: checking for uniquely sized intmax_t" >&5
24320 echo $ECHO_N "checking for uniquely sized intmax_t... $ECHO_C" >&6
24321 if test "${ccvs_cv_unique_int_type_intmax_t+set}" = set; then
24322   echo $ECHO_N "(cached) $ECHO_C" >&6
24323 else
24324   if set |grep ^ccvs_cv_unique_int_type_ \
24325                                 |grep "($ac_cv_sizeof_intmax_t)" >/dev/null ; then
24326                                 ccvs_cv_unique_int_type_intmax_t=no
24327                         else
24328                                 ccvs_cv_unique_int_type_intmax_t=yes\($ac_cv_sizeof_intmax_t\)
24329                         fi
24330 fi
24331 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_intmax_t" >&5
24332 echo "${ECHO_T}$ccvs_cv_unique_int_type_intmax_t" >&6
24333                 if test $ccvs_cv_unique_int_type_intmax_t != no ; then
24334
24335 cat >>confdefs.h <<\_ACEOF
24336 #define UNIQUE_INT_TYPE_INTMAX_T 1
24337 _ACEOF
24338
24339                 fi
24340         fi
24341
24342                                 echo "$as_me:$LINENO: checking for float" >&5
24343 echo $ECHO_N "checking for float... $ECHO_C" >&6
24344 if test "${ac_cv_type_float+set}" = set; then
24345   echo $ECHO_N "(cached) $ECHO_C" >&6
24346 else
24347   cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h.  */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h.  */
24353 $ac_includes_default
24354 int
24355 main ()
24356 {
24357 if ((float *) 0)
24358   return 0;
24359 if (sizeof (float))
24360   return 0;
24361   ;
24362   return 0;
24363 }
24364 _ACEOF
24365 rm -f conftest.$ac_objext
24366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24367   (eval $ac_compile) 2>conftest.er1
24368   ac_status=$?
24369   grep -v '^ *+' conftest.er1 >conftest.err
24370   rm -f conftest.er1
24371   cat conftest.err >&5
24372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373   (exit $ac_status); } &&
24374          { ac_try='test -z "$ac_c_werror_flag"
24375                          || test ! -s conftest.err'
24376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377   (eval $ac_try) 2>&5
24378   ac_status=$?
24379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380   (exit $ac_status); }; } &&
24381          { ac_try='test -s conftest.$ac_objext'
24382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24383   (eval $ac_try) 2>&5
24384   ac_status=$?
24385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386   (exit $ac_status); }; }; then
24387   ac_cv_type_float=yes
24388 else
24389   echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24391
24392 ac_cv_type_float=no
24393 fi
24394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24395 fi
24396 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
24397 echo "${ECHO_T}$ac_cv_type_float" >&6
24398
24399 echo "$as_me:$LINENO: checking size of float" >&5
24400 echo $ECHO_N "checking size of float... $ECHO_C" >&6
24401 if test "${ac_cv_sizeof_float+set}" = set; then
24402   echo $ECHO_N "(cached) $ECHO_C" >&6
24403 else
24404   if test "$ac_cv_type_float" = yes; then
24405   # The cast to unsigned long works around a bug in the HP C Compiler
24406   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24407   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24408   # This bug is HP SR number 8606223364.
24409   if test "$cross_compiling" = yes; then
24410   # Depending upon the size, compute the lo and hi bounds.
24411 cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h.  */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h.  */
24417 $ac_includes_default
24418 int
24419 main ()
24420 {
24421 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
24422 test_array [0] = 0
24423
24424   ;
24425   return 0;
24426 }
24427 _ACEOF
24428 rm -f conftest.$ac_objext
24429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24430   (eval $ac_compile) 2>conftest.er1
24431   ac_status=$?
24432   grep -v '^ *+' conftest.er1 >conftest.err
24433   rm -f conftest.er1
24434   cat conftest.err >&5
24435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436   (exit $ac_status); } &&
24437          { ac_try='test -z "$ac_c_werror_flag"
24438                          || test ! -s conftest.err'
24439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24440   (eval $ac_try) 2>&5
24441   ac_status=$?
24442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443   (exit $ac_status); }; } &&
24444          { ac_try='test -s conftest.$ac_objext'
24445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24446   (eval $ac_try) 2>&5
24447   ac_status=$?
24448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449   (exit $ac_status); }; }; then
24450   ac_lo=0 ac_mid=0
24451   while :; do
24452     cat >conftest.$ac_ext <<_ACEOF
24453 /* confdefs.h.  */
24454 _ACEOF
24455 cat confdefs.h >>conftest.$ac_ext
24456 cat >>conftest.$ac_ext <<_ACEOF
24457 /* end confdefs.h.  */
24458 $ac_includes_default
24459 int
24460 main ()
24461 {
24462 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
24463 test_array [0] = 0
24464
24465   ;
24466   return 0;
24467 }
24468 _ACEOF
24469 rm -f conftest.$ac_objext
24470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24471   (eval $ac_compile) 2>conftest.er1
24472   ac_status=$?
24473   grep -v '^ *+' conftest.er1 >conftest.err
24474   rm -f conftest.er1
24475   cat conftest.err >&5
24476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477   (exit $ac_status); } &&
24478          { ac_try='test -z "$ac_c_werror_flag"
24479                          || test ! -s conftest.err'
24480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24481   (eval $ac_try) 2>&5
24482   ac_status=$?
24483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484   (exit $ac_status); }; } &&
24485          { ac_try='test -s conftest.$ac_objext'
24486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24487   (eval $ac_try) 2>&5
24488   ac_status=$?
24489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490   (exit $ac_status); }; }; then
24491   ac_hi=$ac_mid; break
24492 else
24493   echo "$as_me: failed program was:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24495
24496 ac_lo=`expr $ac_mid + 1`
24497                     if test $ac_lo -le $ac_mid; then
24498                       ac_lo= ac_hi=
24499                       break
24500                     fi
24501                     ac_mid=`expr 2 '*' $ac_mid + 1`
24502 fi
24503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24504   done
24505 else
24506   echo "$as_me: failed program was:" >&5
24507 sed 's/^/| /' conftest.$ac_ext >&5
24508
24509 cat >conftest.$ac_ext <<_ACEOF
24510 /* confdefs.h.  */
24511 _ACEOF
24512 cat confdefs.h >>conftest.$ac_ext
24513 cat >>conftest.$ac_ext <<_ACEOF
24514 /* end confdefs.h.  */
24515 $ac_includes_default
24516 int
24517 main ()
24518 {
24519 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
24520 test_array [0] = 0
24521
24522   ;
24523   return 0;
24524 }
24525 _ACEOF
24526 rm -f conftest.$ac_objext
24527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24528   (eval $ac_compile) 2>conftest.er1
24529   ac_status=$?
24530   grep -v '^ *+' conftest.er1 >conftest.err
24531   rm -f conftest.er1
24532   cat conftest.err >&5
24533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534   (exit $ac_status); } &&
24535          { ac_try='test -z "$ac_c_werror_flag"
24536                          || test ! -s conftest.err'
24537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538   (eval $ac_try) 2>&5
24539   ac_status=$?
24540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541   (exit $ac_status); }; } &&
24542          { ac_try='test -s conftest.$ac_objext'
24543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24544   (eval $ac_try) 2>&5
24545   ac_status=$?
24546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547   (exit $ac_status); }; }; then
24548   ac_hi=-1 ac_mid=-1
24549   while :; do
24550     cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h.  */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h.  */
24556 $ac_includes_default
24557 int
24558 main ()
24559 {
24560 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
24561 test_array [0] = 0
24562
24563   ;
24564   return 0;
24565 }
24566 _ACEOF
24567 rm -f conftest.$ac_objext
24568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24569   (eval $ac_compile) 2>conftest.er1
24570   ac_status=$?
24571   grep -v '^ *+' conftest.er1 >conftest.err
24572   rm -f conftest.er1
24573   cat conftest.err >&5
24574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575   (exit $ac_status); } &&
24576          { ac_try='test -z "$ac_c_werror_flag"
24577                          || test ! -s conftest.err'
24578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24579   (eval $ac_try) 2>&5
24580   ac_status=$?
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); }; } &&
24583          { ac_try='test -s conftest.$ac_objext'
24584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585   (eval $ac_try) 2>&5
24586   ac_status=$?
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); }; }; then
24589   ac_lo=$ac_mid; break
24590 else
24591   echo "$as_me: failed program was:" >&5
24592 sed 's/^/| /' conftest.$ac_ext >&5
24593
24594 ac_hi=`expr '(' $ac_mid ')' - 1`
24595                        if test $ac_mid -le $ac_hi; then
24596                          ac_lo= ac_hi=
24597                          break
24598                        fi
24599                        ac_mid=`expr 2 '*' $ac_mid`
24600 fi
24601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24602   done
24603 else
24604   echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24606
24607 ac_lo= ac_hi=
24608 fi
24609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24610 fi
24611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24612 # Binary search between lo and hi bounds.
24613 while test "x$ac_lo" != "x$ac_hi"; do
24614   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24615   cat >conftest.$ac_ext <<_ACEOF
24616 /* confdefs.h.  */
24617 _ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h.  */
24621 $ac_includes_default
24622 int
24623 main ()
24624 {
24625 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
24626 test_array [0] = 0
24627
24628   ;
24629   return 0;
24630 }
24631 _ACEOF
24632 rm -f conftest.$ac_objext
24633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24634   (eval $ac_compile) 2>conftest.er1
24635   ac_status=$?
24636   grep -v '^ *+' conftest.er1 >conftest.err
24637   rm -f conftest.er1
24638   cat conftest.err >&5
24639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640   (exit $ac_status); } &&
24641          { ac_try='test -z "$ac_c_werror_flag"
24642                          || test ! -s conftest.err'
24643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24644   (eval $ac_try) 2>&5
24645   ac_status=$?
24646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647   (exit $ac_status); }; } &&
24648          { ac_try='test -s conftest.$ac_objext'
24649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24650   (eval $ac_try) 2>&5
24651   ac_status=$?
24652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653   (exit $ac_status); }; }; then
24654   ac_hi=$ac_mid
24655 else
24656   echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24658
24659 ac_lo=`expr '(' $ac_mid ')' + 1`
24660 fi
24661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24662 done
24663 case $ac_lo in
24664 ?*) ac_cv_sizeof_float=$ac_lo;;
24665 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
24666 See \`config.log' for more details." >&5
24667 echo "$as_me: error: cannot compute sizeof (float), 77
24668 See \`config.log' for more details." >&2;}
24669    { (exit 1); exit 1; }; } ;;
24670 esac
24671 else
24672   if test "$cross_compiling" = yes; then
24673   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24674 See \`config.log' for more details." >&5
24675 echo "$as_me: error: cannot run test program while cross compiling
24676 See \`config.log' for more details." >&2;}
24677    { (exit 1); exit 1; }; }
24678 else
24679   cat >conftest.$ac_ext <<_ACEOF
24680 /* confdefs.h.  */
24681 _ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h.  */
24685 $ac_includes_default
24686 long longval () { return (long) (sizeof (float)); }
24687 unsigned long ulongval () { return (long) (sizeof (float)); }
24688 #include <stdio.h>
24689 #include <stdlib.h>
24690 int
24691 main ()
24692 {
24693
24694   FILE *f = fopen ("conftest.val", "w");
24695   if (! f)
24696     exit (1);
24697   if (((long) (sizeof (float))) < 0)
24698     {
24699       long i = longval ();
24700       if (i != ((long) (sizeof (float))))
24701         exit (1);
24702       fprintf (f, "%ld\n", i);
24703     }
24704   else
24705     {
24706       unsigned long i = ulongval ();
24707       if (i != ((long) (sizeof (float))))
24708         exit (1);
24709       fprintf (f, "%lu\n", i);
24710     }
24711   exit (ferror (f) || fclose (f) != 0);
24712
24713   ;
24714   return 0;
24715 }
24716 _ACEOF
24717 rm -f conftest$ac_exeext
24718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24719   (eval $ac_link) 2>&5
24720   ac_status=$?
24721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724   (eval $ac_try) 2>&5
24725   ac_status=$?
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); }; }; then
24728   ac_cv_sizeof_float=`cat conftest.val`
24729 else
24730   echo "$as_me: program exited with status $ac_status" >&5
24731 echo "$as_me: failed program was:" >&5
24732 sed 's/^/| /' conftest.$ac_ext >&5
24733
24734 ( exit $ac_status )
24735 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
24736 See \`config.log' for more details." >&5
24737 echo "$as_me: error: cannot compute sizeof (float), 77
24738 See \`config.log' for more details." >&2;}
24739    { (exit 1); exit 1; }; }
24740 fi
24741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24742 fi
24743 fi
24744 rm -f conftest.val
24745 else
24746   ac_cv_sizeof_float=0
24747 fi
24748 fi
24749 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
24750 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
24751 cat >>confdefs.h <<_ACEOF
24752 #define SIZEOF_FLOAT $ac_cv_sizeof_float
24753 _ACEOF
24754
24755
24756         echo "$as_me:$LINENO: checking for uniquely sized float" >&5
24757 echo $ECHO_N "checking for uniquely sized float... $ECHO_C" >&6
24758 if test "${ccvs_cv_unique_float_type_float+set}" = set; then
24759   echo $ECHO_N "(cached) $ECHO_C" >&6
24760 else
24761   if set |grep ^ccvs_cv_unique_float_type_ \
24762                         |grep "($ac_cv_sizeof_float)" >/dev/null ; then
24763                         ccvs_cv_unique_float_type_float=no
24764                 else
24765                         ccvs_cv_unique_float_type_float=yes\($ac_cv_sizeof_float\)
24766                 fi
24767 fi
24768 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_float" >&5
24769 echo "${ECHO_T}$ccvs_cv_unique_float_type_float" >&6
24770         if test $ccvs_cv_unique_float_type_float != no ; then
24771
24772 cat >>confdefs.h <<\_ACEOF
24773 #define UNIQUE_FLOAT_TYPE_FLOAT 1
24774 _ACEOF
24775
24776         fi
24777         echo "$as_me:$LINENO: checking for double" >&5
24778 echo $ECHO_N "checking for double... $ECHO_C" >&6
24779 if test "${ac_cv_type_double+set}" = set; then
24780   echo $ECHO_N "(cached) $ECHO_C" >&6
24781 else
24782   cat >conftest.$ac_ext <<_ACEOF
24783 /* confdefs.h.  */
24784 _ACEOF
24785 cat confdefs.h >>conftest.$ac_ext
24786 cat >>conftest.$ac_ext <<_ACEOF
24787 /* end confdefs.h.  */
24788 $ac_includes_default
24789 int
24790 main ()
24791 {
24792 if ((double *) 0)
24793   return 0;
24794 if (sizeof (double))
24795   return 0;
24796   ;
24797   return 0;
24798 }
24799 _ACEOF
24800 rm -f conftest.$ac_objext
24801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24802   (eval $ac_compile) 2>conftest.er1
24803   ac_status=$?
24804   grep -v '^ *+' conftest.er1 >conftest.err
24805   rm -f conftest.er1
24806   cat conftest.err >&5
24807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808   (exit $ac_status); } &&
24809          { ac_try='test -z "$ac_c_werror_flag"
24810                          || test ! -s conftest.err'
24811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812   (eval $ac_try) 2>&5
24813   ac_status=$?
24814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815   (exit $ac_status); }; } &&
24816          { ac_try='test -s conftest.$ac_objext'
24817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818   (eval $ac_try) 2>&5
24819   ac_status=$?
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); }; }; then
24822   ac_cv_type_double=yes
24823 else
24824   echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24826
24827 ac_cv_type_double=no
24828 fi
24829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24830 fi
24831 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
24832 echo "${ECHO_T}$ac_cv_type_double" >&6
24833
24834 echo "$as_me:$LINENO: checking size of double" >&5
24835 echo $ECHO_N "checking size of double... $ECHO_C" >&6
24836 if test "${ac_cv_sizeof_double+set}" = set; then
24837   echo $ECHO_N "(cached) $ECHO_C" >&6
24838 else
24839   if test "$ac_cv_type_double" = yes; then
24840   # The cast to unsigned long works around a bug in the HP C Compiler
24841   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24842   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24843   # This bug is HP SR number 8606223364.
24844   if test "$cross_compiling" = yes; then
24845   # Depending upon the size, compute the lo and hi bounds.
24846 cat >conftest.$ac_ext <<_ACEOF
24847 /* confdefs.h.  */
24848 _ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h.  */
24852 $ac_includes_default
24853 int
24854 main ()
24855 {
24856 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
24857 test_array [0] = 0
24858
24859   ;
24860   return 0;
24861 }
24862 _ACEOF
24863 rm -f conftest.$ac_objext
24864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24865   (eval $ac_compile) 2>conftest.er1
24866   ac_status=$?
24867   grep -v '^ *+' conftest.er1 >conftest.err
24868   rm -f conftest.er1
24869   cat conftest.err >&5
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); } &&
24872          { ac_try='test -z "$ac_c_werror_flag"
24873                          || test ! -s conftest.err'
24874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875   (eval $ac_try) 2>&5
24876   ac_status=$?
24877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878   (exit $ac_status); }; } &&
24879          { ac_try='test -s conftest.$ac_objext'
24880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881   (eval $ac_try) 2>&5
24882   ac_status=$?
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); }; }; then
24885   ac_lo=0 ac_mid=0
24886   while :; do
24887     cat >conftest.$ac_ext <<_ACEOF
24888 /* confdefs.h.  */
24889 _ACEOF
24890 cat confdefs.h >>conftest.$ac_ext
24891 cat >>conftest.$ac_ext <<_ACEOF
24892 /* end confdefs.h.  */
24893 $ac_includes_default
24894 int
24895 main ()
24896 {
24897 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
24898 test_array [0] = 0
24899
24900   ;
24901   return 0;
24902 }
24903 _ACEOF
24904 rm -f conftest.$ac_objext
24905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24906   (eval $ac_compile) 2>conftest.er1
24907   ac_status=$?
24908   grep -v '^ *+' conftest.er1 >conftest.err
24909   rm -f conftest.er1
24910   cat conftest.err >&5
24911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912   (exit $ac_status); } &&
24913          { ac_try='test -z "$ac_c_werror_flag"
24914                          || test ! -s conftest.err'
24915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916   (eval $ac_try) 2>&5
24917   ac_status=$?
24918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919   (exit $ac_status); }; } &&
24920          { ac_try='test -s conftest.$ac_objext'
24921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922   (eval $ac_try) 2>&5
24923   ac_status=$?
24924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925   (exit $ac_status); }; }; then
24926   ac_hi=$ac_mid; break
24927 else
24928   echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24930
24931 ac_lo=`expr $ac_mid + 1`
24932                     if test $ac_lo -le $ac_mid; then
24933                       ac_lo= ac_hi=
24934                       break
24935                     fi
24936                     ac_mid=`expr 2 '*' $ac_mid + 1`
24937 fi
24938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24939   done
24940 else
24941   echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944 cat >conftest.$ac_ext <<_ACEOF
24945 /* confdefs.h.  */
24946 _ACEOF
24947 cat confdefs.h >>conftest.$ac_ext
24948 cat >>conftest.$ac_ext <<_ACEOF
24949 /* end confdefs.h.  */
24950 $ac_includes_default
24951 int
24952 main ()
24953 {
24954 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
24955 test_array [0] = 0
24956
24957   ;
24958   return 0;
24959 }
24960 _ACEOF
24961 rm -f conftest.$ac_objext
24962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24963   (eval $ac_compile) 2>conftest.er1
24964   ac_status=$?
24965   grep -v '^ *+' conftest.er1 >conftest.err
24966   rm -f conftest.er1
24967   cat conftest.err >&5
24968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969   (exit $ac_status); } &&
24970          { ac_try='test -z "$ac_c_werror_flag"
24971                          || test ! -s conftest.err'
24972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24973   (eval $ac_try) 2>&5
24974   ac_status=$?
24975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976   (exit $ac_status); }; } &&
24977          { ac_try='test -s conftest.$ac_objext'
24978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24979   (eval $ac_try) 2>&5
24980   ac_status=$?
24981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982   (exit $ac_status); }; }; then
24983   ac_hi=-1 ac_mid=-1
24984   while :; do
24985     cat >conftest.$ac_ext <<_ACEOF
24986 /* confdefs.h.  */
24987 _ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h.  */
24991 $ac_includes_default
24992 int
24993 main ()
24994 {
24995 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
24996 test_array [0] = 0
24997
24998   ;
24999   return 0;
25000 }
25001 _ACEOF
25002 rm -f conftest.$ac_objext
25003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25004   (eval $ac_compile) 2>conftest.er1
25005   ac_status=$?
25006   grep -v '^ *+' conftest.er1 >conftest.err
25007   rm -f conftest.er1
25008   cat conftest.err >&5
25009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010   (exit $ac_status); } &&
25011          { ac_try='test -z "$ac_c_werror_flag"
25012                          || test ! -s conftest.err'
25013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014   (eval $ac_try) 2>&5
25015   ac_status=$?
25016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017   (exit $ac_status); }; } &&
25018          { ac_try='test -s conftest.$ac_objext'
25019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020   (eval $ac_try) 2>&5
25021   ac_status=$?
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); }; }; then
25024   ac_lo=$ac_mid; break
25025 else
25026   echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25028
25029 ac_hi=`expr '(' $ac_mid ')' - 1`
25030                        if test $ac_mid -le $ac_hi; then
25031                          ac_lo= ac_hi=
25032                          break
25033                        fi
25034                        ac_mid=`expr 2 '*' $ac_mid`
25035 fi
25036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25037   done
25038 else
25039   echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25041
25042 ac_lo= ac_hi=
25043 fi
25044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25045 fi
25046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25047 # Binary search between lo and hi bounds.
25048 while test "x$ac_lo" != "x$ac_hi"; do
25049   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25050   cat >conftest.$ac_ext <<_ACEOF
25051 /* confdefs.h.  */
25052 _ACEOF
25053 cat confdefs.h >>conftest.$ac_ext
25054 cat >>conftest.$ac_ext <<_ACEOF
25055 /* end confdefs.h.  */
25056 $ac_includes_default
25057 int
25058 main ()
25059 {
25060 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
25061 test_array [0] = 0
25062
25063   ;
25064   return 0;
25065 }
25066 _ACEOF
25067 rm -f conftest.$ac_objext
25068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25069   (eval $ac_compile) 2>conftest.er1
25070   ac_status=$?
25071   grep -v '^ *+' conftest.er1 >conftest.err
25072   rm -f conftest.er1
25073   cat conftest.err >&5
25074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075   (exit $ac_status); } &&
25076          { ac_try='test -z "$ac_c_werror_flag"
25077                          || test ! -s conftest.err'
25078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25079   (eval $ac_try) 2>&5
25080   ac_status=$?
25081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082   (exit $ac_status); }; } &&
25083          { ac_try='test -s conftest.$ac_objext'
25084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25085   (eval $ac_try) 2>&5
25086   ac_status=$?
25087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088   (exit $ac_status); }; }; then
25089   ac_hi=$ac_mid
25090 else
25091   echo "$as_me: failed program was:" >&5
25092 sed 's/^/| /' conftest.$ac_ext >&5
25093
25094 ac_lo=`expr '(' $ac_mid ')' + 1`
25095 fi
25096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25097 done
25098 case $ac_lo in
25099 ?*) ac_cv_sizeof_double=$ac_lo;;
25100 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
25101 See \`config.log' for more details." >&5
25102 echo "$as_me: error: cannot compute sizeof (double), 77
25103 See \`config.log' for more details." >&2;}
25104    { (exit 1); exit 1; }; } ;;
25105 esac
25106 else
25107   if test "$cross_compiling" = yes; then
25108   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25109 See \`config.log' for more details." >&5
25110 echo "$as_me: error: cannot run test program while cross compiling
25111 See \`config.log' for more details." >&2;}
25112    { (exit 1); exit 1; }; }
25113 else
25114   cat >conftest.$ac_ext <<_ACEOF
25115 /* confdefs.h.  */
25116 _ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h.  */
25120 $ac_includes_default
25121 long longval () { return (long) (sizeof (double)); }
25122 unsigned long ulongval () { return (long) (sizeof (double)); }
25123 #include <stdio.h>
25124 #include <stdlib.h>
25125 int
25126 main ()
25127 {
25128
25129   FILE *f = fopen ("conftest.val", "w");
25130   if (! f)
25131     exit (1);
25132   if (((long) (sizeof (double))) < 0)
25133     {
25134       long i = longval ();
25135       if (i != ((long) (sizeof (double))))
25136         exit (1);
25137       fprintf (f, "%ld\n", i);
25138     }
25139   else
25140     {
25141       unsigned long i = ulongval ();
25142       if (i != ((long) (sizeof (double))))
25143         exit (1);
25144       fprintf (f, "%lu\n", i);
25145     }
25146   exit (ferror (f) || fclose (f) != 0);
25147
25148   ;
25149   return 0;
25150 }
25151 _ACEOF
25152 rm -f conftest$ac_exeext
25153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25154   (eval $ac_link) 2>&5
25155   ac_status=$?
25156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159   (eval $ac_try) 2>&5
25160   ac_status=$?
25161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162   (exit $ac_status); }; }; then
25163   ac_cv_sizeof_double=`cat conftest.val`
25164 else
25165   echo "$as_me: program exited with status $ac_status" >&5
25166 echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25168
25169 ( exit $ac_status )
25170 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
25171 See \`config.log' for more details." >&5
25172 echo "$as_me: error: cannot compute sizeof (double), 77
25173 See \`config.log' for more details." >&2;}
25174    { (exit 1); exit 1; }; }
25175 fi
25176 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25177 fi
25178 fi
25179 rm -f conftest.val
25180 else
25181   ac_cv_sizeof_double=0
25182 fi
25183 fi
25184 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
25185 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
25186 cat >>confdefs.h <<_ACEOF
25187 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
25188 _ACEOF
25189
25190
25191         echo "$as_me:$LINENO: checking for uniquely sized double" >&5
25192 echo $ECHO_N "checking for uniquely sized double... $ECHO_C" >&6
25193 if test "${ccvs_cv_unique_float_type_double+set}" = set; then
25194   echo $ECHO_N "(cached) $ECHO_C" >&6
25195 else
25196   if set |grep ^ccvs_cv_unique_float_type_ \
25197                         |grep "($ac_cv_sizeof_double)" >/dev/null ; then
25198                         ccvs_cv_unique_float_type_double=no
25199                 else
25200                         ccvs_cv_unique_float_type_double=yes\($ac_cv_sizeof_double\)
25201                 fi
25202 fi
25203 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_double" >&5
25204 echo "${ECHO_T}$ccvs_cv_unique_float_type_double" >&6
25205         if test $ccvs_cv_unique_float_type_double != no ; then
25206
25207 cat >>confdefs.h <<\_ACEOF
25208 #define UNIQUE_FLOAT_TYPE_DOUBLE 1
25209 _ACEOF
25210
25211         fi
25212         if test $gt_cv_c_long_double != no; then
25213                 echo "$as_me:$LINENO: checking for long double" >&5
25214 echo $ECHO_N "checking for long double... $ECHO_C" >&6
25215 if test "${ac_cv_type_long_double+set}" = set; then
25216   echo $ECHO_N "(cached) $ECHO_C" >&6
25217 else
25218   cat >conftest.$ac_ext <<_ACEOF
25219 /* confdefs.h.  */
25220 _ACEOF
25221 cat confdefs.h >>conftest.$ac_ext
25222 cat >>conftest.$ac_ext <<_ACEOF
25223 /* end confdefs.h.  */
25224 $ac_includes_default
25225 int
25226 main ()
25227 {
25228 if ((long double *) 0)
25229   return 0;
25230 if (sizeof (long double))
25231   return 0;
25232   ;
25233   return 0;
25234 }
25235 _ACEOF
25236 rm -f conftest.$ac_objext
25237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25238   (eval $ac_compile) 2>conftest.er1
25239   ac_status=$?
25240   grep -v '^ *+' conftest.er1 >conftest.err
25241   rm -f conftest.er1
25242   cat conftest.err >&5
25243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244   (exit $ac_status); } &&
25245          { ac_try='test -z "$ac_c_werror_flag"
25246                          || test ! -s conftest.err'
25247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248   (eval $ac_try) 2>&5
25249   ac_status=$?
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); }; } &&
25252          { ac_try='test -s conftest.$ac_objext'
25253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25254   (eval $ac_try) 2>&5
25255   ac_status=$?
25256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257   (exit $ac_status); }; }; then
25258   ac_cv_type_long_double=yes
25259 else
25260   echo "$as_me: failed program was:" >&5
25261 sed 's/^/| /' conftest.$ac_ext >&5
25262
25263 ac_cv_type_long_double=no
25264 fi
25265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25266 fi
25267 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
25268 echo "${ECHO_T}$ac_cv_type_long_double" >&6
25269
25270 echo "$as_me:$LINENO: checking size of long double" >&5
25271 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
25272 if test "${ac_cv_sizeof_long_double+set}" = set; then
25273   echo $ECHO_N "(cached) $ECHO_C" >&6
25274 else
25275   if test "$ac_cv_type_long_double" = yes; then
25276   # The cast to unsigned long works around a bug in the HP C Compiler
25277   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25278   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25279   # This bug is HP SR number 8606223364.
25280   if test "$cross_compiling" = yes; then
25281   # Depending upon the size, compute the lo and hi bounds.
25282 cat >conftest.$ac_ext <<_ACEOF
25283 /* confdefs.h.  */
25284 _ACEOF
25285 cat confdefs.h >>conftest.$ac_ext
25286 cat >>conftest.$ac_ext <<_ACEOF
25287 /* end confdefs.h.  */
25288 $ac_includes_default
25289 int
25290 main ()
25291 {
25292 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
25293 test_array [0] = 0
25294
25295   ;
25296   return 0;
25297 }
25298 _ACEOF
25299 rm -f conftest.$ac_objext
25300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25301   (eval $ac_compile) 2>conftest.er1
25302   ac_status=$?
25303   grep -v '^ *+' conftest.er1 >conftest.err
25304   rm -f conftest.er1
25305   cat conftest.err >&5
25306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307   (exit $ac_status); } &&
25308          { ac_try='test -z "$ac_c_werror_flag"
25309                          || test ! -s conftest.err'
25310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25311   (eval $ac_try) 2>&5
25312   ac_status=$?
25313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314   (exit $ac_status); }; } &&
25315          { ac_try='test -s conftest.$ac_objext'
25316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25317   (eval $ac_try) 2>&5
25318   ac_status=$?
25319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320   (exit $ac_status); }; }; then
25321   ac_lo=0 ac_mid=0
25322   while :; do
25323     cat >conftest.$ac_ext <<_ACEOF
25324 /* confdefs.h.  */
25325 _ACEOF
25326 cat confdefs.h >>conftest.$ac_ext
25327 cat >>conftest.$ac_ext <<_ACEOF
25328 /* end confdefs.h.  */
25329 $ac_includes_default
25330 int
25331 main ()
25332 {
25333 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
25334 test_array [0] = 0
25335
25336   ;
25337   return 0;
25338 }
25339 _ACEOF
25340 rm -f conftest.$ac_objext
25341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25342   (eval $ac_compile) 2>conftest.er1
25343   ac_status=$?
25344   grep -v '^ *+' conftest.er1 >conftest.err
25345   rm -f conftest.er1
25346   cat conftest.err >&5
25347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348   (exit $ac_status); } &&
25349          { ac_try='test -z "$ac_c_werror_flag"
25350                          || test ! -s conftest.err'
25351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352   (eval $ac_try) 2>&5
25353   ac_status=$?
25354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355   (exit $ac_status); }; } &&
25356          { ac_try='test -s conftest.$ac_objext'
25357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358   (eval $ac_try) 2>&5
25359   ac_status=$?
25360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361   (exit $ac_status); }; }; then
25362   ac_hi=$ac_mid; break
25363 else
25364   echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25366
25367 ac_lo=`expr $ac_mid + 1`
25368                     if test $ac_lo -le $ac_mid; then
25369                       ac_lo= ac_hi=
25370                       break
25371                     fi
25372                     ac_mid=`expr 2 '*' $ac_mid + 1`
25373 fi
25374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25375   done
25376 else
25377   echo "$as_me: failed program was:" >&5
25378 sed 's/^/| /' conftest.$ac_ext >&5
25379
25380 cat >conftest.$ac_ext <<_ACEOF
25381 /* confdefs.h.  */
25382 _ACEOF
25383 cat confdefs.h >>conftest.$ac_ext
25384 cat >>conftest.$ac_ext <<_ACEOF
25385 /* end confdefs.h.  */
25386 $ac_includes_default
25387 int
25388 main ()
25389 {
25390 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
25391 test_array [0] = 0
25392
25393   ;
25394   return 0;
25395 }
25396 _ACEOF
25397 rm -f conftest.$ac_objext
25398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25399   (eval $ac_compile) 2>conftest.er1
25400   ac_status=$?
25401   grep -v '^ *+' conftest.er1 >conftest.err
25402   rm -f conftest.er1
25403   cat conftest.err >&5
25404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405   (exit $ac_status); } &&
25406          { ac_try='test -z "$ac_c_werror_flag"
25407                          || test ! -s conftest.err'
25408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409   (eval $ac_try) 2>&5
25410   ac_status=$?
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); }; } &&
25413          { ac_try='test -s conftest.$ac_objext'
25414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415   (eval $ac_try) 2>&5
25416   ac_status=$?
25417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418   (exit $ac_status); }; }; then
25419   ac_hi=-1 ac_mid=-1
25420   while :; do
25421     cat >conftest.$ac_ext <<_ACEOF
25422 /* confdefs.h.  */
25423 _ACEOF
25424 cat confdefs.h >>conftest.$ac_ext
25425 cat >>conftest.$ac_ext <<_ACEOF
25426 /* end confdefs.h.  */
25427 $ac_includes_default
25428 int
25429 main ()
25430 {
25431 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
25432 test_array [0] = 0
25433
25434   ;
25435   return 0;
25436 }
25437 _ACEOF
25438 rm -f conftest.$ac_objext
25439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25440   (eval $ac_compile) 2>conftest.er1
25441   ac_status=$?
25442   grep -v '^ *+' conftest.er1 >conftest.err
25443   rm -f conftest.er1
25444   cat conftest.err >&5
25445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446   (exit $ac_status); } &&
25447          { ac_try='test -z "$ac_c_werror_flag"
25448                          || test ! -s conftest.err'
25449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25450   (eval $ac_try) 2>&5
25451   ac_status=$?
25452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453   (exit $ac_status); }; } &&
25454          { ac_try='test -s conftest.$ac_objext'
25455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25456   (eval $ac_try) 2>&5
25457   ac_status=$?
25458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459   (exit $ac_status); }; }; then
25460   ac_lo=$ac_mid; break
25461 else
25462   echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25464
25465 ac_hi=`expr '(' $ac_mid ')' - 1`
25466                        if test $ac_mid -le $ac_hi; then
25467                          ac_lo= ac_hi=
25468                          break
25469                        fi
25470                        ac_mid=`expr 2 '*' $ac_mid`
25471 fi
25472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25473   done
25474 else
25475   echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25477
25478 ac_lo= ac_hi=
25479 fi
25480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25481 fi
25482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25483 # Binary search between lo and hi bounds.
25484 while test "x$ac_lo" != "x$ac_hi"; do
25485   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25486   cat >conftest.$ac_ext <<_ACEOF
25487 /* confdefs.h.  */
25488 _ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h.  */
25492 $ac_includes_default
25493 int
25494 main ()
25495 {
25496 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
25497 test_array [0] = 0
25498
25499   ;
25500   return 0;
25501 }
25502 _ACEOF
25503 rm -f conftest.$ac_objext
25504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25505   (eval $ac_compile) 2>conftest.er1
25506   ac_status=$?
25507   grep -v '^ *+' conftest.er1 >conftest.err
25508   rm -f conftest.er1
25509   cat conftest.err >&5
25510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511   (exit $ac_status); } &&
25512          { ac_try='test -z "$ac_c_werror_flag"
25513                          || test ! -s conftest.err'
25514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25515   (eval $ac_try) 2>&5
25516   ac_status=$?
25517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518   (exit $ac_status); }; } &&
25519          { ac_try='test -s conftest.$ac_objext'
25520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521   (eval $ac_try) 2>&5
25522   ac_status=$?
25523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524   (exit $ac_status); }; }; then
25525   ac_hi=$ac_mid
25526 else
25527   echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25529
25530 ac_lo=`expr '(' $ac_mid ')' + 1`
25531 fi
25532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25533 done
25534 case $ac_lo in
25535 ?*) ac_cv_sizeof_long_double=$ac_lo;;
25536 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
25537 See \`config.log' for more details." >&5
25538 echo "$as_me: error: cannot compute sizeof (long double), 77
25539 See \`config.log' for more details." >&2;}
25540    { (exit 1); exit 1; }; } ;;
25541 esac
25542 else
25543   if test "$cross_compiling" = yes; then
25544   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25545 See \`config.log' for more details." >&5
25546 echo "$as_me: error: cannot run test program while cross compiling
25547 See \`config.log' for more details." >&2;}
25548    { (exit 1); exit 1; }; }
25549 else
25550   cat >conftest.$ac_ext <<_ACEOF
25551 /* confdefs.h.  */
25552 _ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h.  */
25556 $ac_includes_default
25557 long longval () { return (long) (sizeof (long double)); }
25558 unsigned long ulongval () { return (long) (sizeof (long double)); }
25559 #include <stdio.h>
25560 #include <stdlib.h>
25561 int
25562 main ()
25563 {
25564
25565   FILE *f = fopen ("conftest.val", "w");
25566   if (! f)
25567     exit (1);
25568   if (((long) (sizeof (long double))) < 0)
25569     {
25570       long i = longval ();
25571       if (i != ((long) (sizeof (long double))))
25572         exit (1);
25573       fprintf (f, "%ld\n", i);
25574     }
25575   else
25576     {
25577       unsigned long i = ulongval ();
25578       if (i != ((long) (sizeof (long double))))
25579         exit (1);
25580       fprintf (f, "%lu\n", i);
25581     }
25582   exit (ferror (f) || fclose (f) != 0);
25583
25584   ;
25585   return 0;
25586 }
25587 _ACEOF
25588 rm -f conftest$ac_exeext
25589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25590   (eval $ac_link) 2>&5
25591   ac_status=$?
25592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25595   (eval $ac_try) 2>&5
25596   ac_status=$?
25597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598   (exit $ac_status); }; }; then
25599   ac_cv_sizeof_long_double=`cat conftest.val`
25600 else
25601   echo "$as_me: program exited with status $ac_status" >&5
25602 echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25604
25605 ( exit $ac_status )
25606 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
25607 See \`config.log' for more details." >&5
25608 echo "$as_me: error: cannot compute sizeof (long double), 77
25609 See \`config.log' for more details." >&2;}
25610    { (exit 1); exit 1; }; }
25611 fi
25612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25613 fi
25614 fi
25615 rm -f conftest.val
25616 else
25617   ac_cv_sizeof_long_double=0
25618 fi
25619 fi
25620 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
25621 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
25622 cat >>confdefs.h <<_ACEOF
25623 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
25624 _ACEOF
25625
25626
25627                 echo "$as_me:$LINENO: checking for uniquely sized long double" >&5
25628 echo $ECHO_N "checking for uniquely sized long double... $ECHO_C" >&6
25629 if test "${ccvs_cv_unique_float_type_long_double+set}" = set; then
25630   echo $ECHO_N "(cached) $ECHO_C" >&6
25631 else
25632   if set |grep ^ccvs_cv_unique_float_type_ \
25633                                 |grep "($ac_cv_sizeof_long_double)" >/dev/null ; then
25634                                 ccvs_cv_unique_float_type_long_double=no
25635                         else
25636                                 ccvs_cv_unique_float_type_long_double=yes\($ac_cv_sizeof_long_double\)
25637                         fi
25638 fi
25639 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_long_double" >&5
25640 echo "${ECHO_T}$ccvs_cv_unique_float_type_long_double" >&6
25641                 if test $ccvs_cv_unique_float_type_long_double != no ; then
25642
25643 cat >>confdefs.h <<\_ACEOF
25644 #define UNIQUE_FLOAT_TYPE_LONG_DOUBLE 1
25645 _ACEOF
25646
25647                 fi
25648         fi
25649 fi
25650
25651
25652 cat >>confdefs.h <<\_ACEOF
25653 #define HAVE_STRCHR 1
25654 _ACEOF
25655
25656
25657 cat >>confdefs.h <<\_ACEOF
25658 #define HAVE_MEMCHR 1
25659 _ACEOF
25660
25661
25662
25663 cat >>confdefs.h <<\_ACEOF
25664 #define REGEX_MALLOC 1
25665 _ACEOF
25666
25667
25668 cat >>confdefs.h <<\_ACEOF
25669 #define _REGEX_RE_COMP 1
25670 _ACEOF
25671
25672
25673
25674 for ac_header in unistd.h vfork.h
25675 do
25676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25678   echo "$as_me:$LINENO: checking for $ac_header" >&5
25679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25681   echo $ECHO_N "(cached) $ECHO_C" >&6
25682 fi
25683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25685 else
25686   # Is the header compilable?
25687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25689 cat >conftest.$ac_ext <<_ACEOF
25690 /* confdefs.h.  */
25691 _ACEOF
25692 cat confdefs.h >>conftest.$ac_ext
25693 cat >>conftest.$ac_ext <<_ACEOF
25694 /* end confdefs.h.  */
25695 $ac_includes_default
25696 #include <$ac_header>
25697 _ACEOF
25698 rm -f conftest.$ac_objext
25699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25700   (eval $ac_compile) 2>conftest.er1
25701   ac_status=$?
25702   grep -v '^ *+' conftest.er1 >conftest.err
25703   rm -f conftest.er1
25704   cat conftest.err >&5
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); } &&
25707          { ac_try='test -z "$ac_c_werror_flag"
25708                          || test ! -s conftest.err'
25709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25710   (eval $ac_try) 2>&5
25711   ac_status=$?
25712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713   (exit $ac_status); }; } &&
25714          { ac_try='test -s conftest.$ac_objext'
25715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716   (eval $ac_try) 2>&5
25717   ac_status=$?
25718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719   (exit $ac_status); }; }; then
25720   ac_header_compiler=yes
25721 else
25722   echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25724
25725 ac_header_compiler=no
25726 fi
25727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25729 echo "${ECHO_T}$ac_header_compiler" >&6
25730
25731 # Is the header present?
25732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25734 cat >conftest.$ac_ext <<_ACEOF
25735 /* confdefs.h.  */
25736 _ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h.  */
25740 #include <$ac_header>
25741 _ACEOF
25742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25743   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25744   ac_status=$?
25745   grep -v '^ *+' conftest.er1 >conftest.err
25746   rm -f conftest.er1
25747   cat conftest.err >&5
25748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749   (exit $ac_status); } >/dev/null; then
25750   if test -s conftest.err; then
25751     ac_cpp_err=$ac_c_preproc_warn_flag
25752     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25753   else
25754     ac_cpp_err=
25755   fi
25756 else
25757   ac_cpp_err=yes
25758 fi
25759 if test -z "$ac_cpp_err"; then
25760   ac_header_preproc=yes
25761 else
25762   echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25764
25765   ac_header_preproc=no
25766 fi
25767 rm -f conftest.err conftest.$ac_ext
25768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769 echo "${ECHO_T}$ac_header_preproc" >&6
25770
25771 # So?  What about this header?
25772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25773   yes:no: )
25774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25778     ac_header_preproc=yes
25779     ;;
25780   no:yes:* )
25781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25793     (
25794       cat <<\_ASBOX
25795 ## ------------------------------ ##
25796 ## Report this to bug-cvs@gnu.org ##
25797 ## ------------------------------ ##
25798 _ASBOX
25799     ) |
25800       sed "s/^/$as_me: WARNING:     /" >&2
25801     ;;
25802 esac
25803 echo "$as_me:$LINENO: checking for $ac_header" >&5
25804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25806   echo $ECHO_N "(cached) $ECHO_C" >&6
25807 else
25808   eval "$as_ac_Header=\$ac_header_preproc"
25809 fi
25810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25812
25813 fi
25814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25815   cat >>confdefs.h <<_ACEOF
25816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25817 _ACEOF
25818
25819 fi
25820
25821 done
25822
25823
25824
25825 for ac_func in fork vfork
25826 do
25827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25828 echo "$as_me:$LINENO: checking for $ac_func" >&5
25829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25830 if eval "test \"\${$as_ac_var+set}\" = set"; then
25831   echo $ECHO_N "(cached) $ECHO_C" >&6
25832 else
25833   cat >conftest.$ac_ext <<_ACEOF
25834 /* confdefs.h.  */
25835 _ACEOF
25836 cat confdefs.h >>conftest.$ac_ext
25837 cat >>conftest.$ac_ext <<_ACEOF
25838 /* end confdefs.h.  */
25839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25841 #define $ac_func innocuous_$ac_func
25842
25843 /* System header to define __stub macros and hopefully few prototypes,
25844     which can conflict with char $ac_func (); below.
25845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25846     <limits.h> exists even on freestanding compilers.  */
25847
25848 #ifdef __STDC__
25849 # include <limits.h>
25850 #else
25851 # include <assert.h>
25852 #endif
25853
25854 #undef $ac_func
25855
25856 /* Override any gcc2 internal prototype to avoid an error.  */
25857 #ifdef __cplusplus
25858 extern "C"
25859 {
25860 #endif
25861 /* We use char because int might match the return type of a gcc2
25862    builtin and then its argument prototype would still apply.  */
25863 char $ac_func ();
25864 /* The GNU C library defines this for functions which it implements
25865     to always fail with ENOSYS.  Some functions are actually named
25866     something starting with __ and the normal name is an alias.  */
25867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25868 choke me
25869 #else
25870 char (*f) () = $ac_func;
25871 #endif
25872 #ifdef __cplusplus
25873 }
25874 #endif
25875
25876 int
25877 main ()
25878 {
25879 return f != $ac_func;
25880   ;
25881   return 0;
25882 }
25883 _ACEOF
25884 rm -f conftest.$ac_objext conftest$ac_exeext
25885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25886   (eval $ac_link) 2>conftest.er1
25887   ac_status=$?
25888   grep -v '^ *+' conftest.er1 >conftest.err
25889   rm -f conftest.er1
25890   cat conftest.err >&5
25891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892   (exit $ac_status); } &&
25893          { ac_try='test -z "$ac_c_werror_flag"
25894                          || test ! -s conftest.err'
25895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896   (eval $ac_try) 2>&5
25897   ac_status=$?
25898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899   (exit $ac_status); }; } &&
25900          { ac_try='test -s conftest$ac_exeext'
25901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25902   (eval $ac_try) 2>&5
25903   ac_status=$?
25904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905   (exit $ac_status); }; }; then
25906   eval "$as_ac_var=yes"
25907 else
25908   echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.$ac_ext >&5
25910
25911 eval "$as_ac_var=no"
25912 fi
25913 rm -f conftest.err conftest.$ac_objext \
25914       conftest$ac_exeext conftest.$ac_ext
25915 fi
25916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25918 if test `eval echo '${'$as_ac_var'}'` = yes; then
25919   cat >>confdefs.h <<_ACEOF
25920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25921 _ACEOF
25922
25923 fi
25924 done
25925
25926 if test "x$ac_cv_func_fork" = xyes; then
25927   echo "$as_me:$LINENO: checking for working fork" >&5
25928 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
25929 if test "${ac_cv_func_fork_works+set}" = set; then
25930   echo $ECHO_N "(cached) $ECHO_C" >&6
25931 else
25932   if test "$cross_compiling" = yes; then
25933   ac_cv_func_fork_works=cross
25934 else
25935   cat >conftest.$ac_ext <<_ACEOF
25936 /* By Ruediger Kuhlmann. */
25937       #include <sys/types.h>
25938       #if HAVE_UNISTD_H
25939       # include <unistd.h>
25940       #endif
25941       /* Some systems only have a dummy stub for fork() */
25942       int main ()
25943       {
25944         if (fork() < 0)
25945           exit (1);
25946         exit (0);
25947       }
25948 _ACEOF
25949 rm -f conftest$ac_exeext
25950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25951   (eval $ac_link) 2>&5
25952   ac_status=$?
25953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25956   (eval $ac_try) 2>&5
25957   ac_status=$?
25958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959   (exit $ac_status); }; }; then
25960   ac_cv_func_fork_works=yes
25961 else
25962   echo "$as_me: program exited with status $ac_status" >&5
25963 echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25965
25966 ( exit $ac_status )
25967 ac_cv_func_fork_works=no
25968 fi
25969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25970 fi
25971 fi
25972 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25973 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
25974
25975 else
25976   ac_cv_func_fork_works=$ac_cv_func_fork
25977 fi
25978 if test "x$ac_cv_func_fork_works" = xcross; then
25979   case $host in
25980     *-*-amigaos* | *-*-msdosdjgpp*)
25981       # Override, as these systems have only a dummy fork() stub
25982       ac_cv_func_fork_works=no
25983       ;;
25984     *)
25985       ac_cv_func_fork_works=yes
25986       ;;
25987   esac
25988   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25989 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25990 fi
25991 ac_cv_func_vfork_works=$ac_cv_func_vfork
25992 if test "x$ac_cv_func_vfork" = xyes; then
25993   echo "$as_me:$LINENO: checking for working vfork" >&5
25994 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
25995 if test "${ac_cv_func_vfork_works+set}" = set; then
25996   echo $ECHO_N "(cached) $ECHO_C" >&6
25997 else
25998   if test "$cross_compiling" = yes; then
25999   ac_cv_func_vfork_works=cross
26000 else
26001   cat >conftest.$ac_ext <<_ACEOF
26002 /* confdefs.h.  */
26003 _ACEOF
26004 cat confdefs.h >>conftest.$ac_ext
26005 cat >>conftest.$ac_ext <<_ACEOF
26006 /* end confdefs.h.  */
26007 /* Thanks to Paul Eggert for this test.  */
26008 #include <stdio.h>
26009 #include <stdlib.h>
26010 #include <sys/types.h>
26011 #include <sys/stat.h>
26012 #include <sys/wait.h>
26013 #if HAVE_UNISTD_H
26014 # include <unistd.h>
26015 #endif
26016 #if HAVE_VFORK_H
26017 # include <vfork.h>
26018 #endif
26019 /* On some sparc systems, changes by the child to local and incoming
26020    argument registers are propagated back to the parent.  The compiler
26021    is told about this with #include <vfork.h>, but some compilers
26022    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
26023    static variable whose address is put into a register that is
26024    clobbered by the vfork.  */
26025 static void
26026 #ifdef __cplusplus
26027 sparc_address_test (int arg)
26028 # else
26029 sparc_address_test (arg) int arg;
26030 #endif
26031 {
26032   static pid_t child;
26033   if (!child) {
26034     child = vfork ();
26035     if (child < 0) {
26036       perror ("vfork");
26037       _exit(2);
26038     }
26039     if (!child) {
26040       arg = getpid();
26041       write(-1, "", 0);
26042       _exit (arg);
26043     }
26044   }
26045 }
26046
26047 int
26048 main ()
26049 {
26050   pid_t parent = getpid ();
26051   pid_t child;
26052
26053   sparc_address_test (0);
26054
26055   child = vfork ();
26056
26057   if (child == 0) {
26058     /* Here is another test for sparc vfork register problems.  This
26059        test uses lots of local variables, at least as many local
26060        variables as main has allocated so far including compiler
26061        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
26062        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
26063        reuse the register of parent for one of the local variables,
26064        since it will think that parent can't possibly be used any more
26065        in this routine.  Assigning to the local variable will thus
26066        munge parent in the parent process.  */
26067     pid_t
26068       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
26069       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
26070     /* Convince the compiler that p..p7 are live; otherwise, it might
26071        use the same hardware register for all 8 local variables.  */
26072     if (p != p1 || p != p2 || p != p3 || p != p4
26073         || p != p5 || p != p6 || p != p7)
26074       _exit(1);
26075
26076     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26077        from child file descriptors.  If the child closes a descriptor
26078        before it execs or exits, this munges the parent's descriptor
26079        as well.  Test for this by closing stdout in the child.  */
26080     _exit(close(fileno(stdout)) != 0);
26081   } else {
26082     int status;
26083     struct stat st;
26084
26085     while (wait(&status) != child)
26086       ;
26087     exit(
26088          /* Was there some problem with vforking?  */
26089          child < 0
26090
26091          /* Did the child fail?  (This shouldn't happen.)  */
26092          || status
26093
26094          /* Did the vfork/compiler bug occur?  */
26095          || parent != getpid()
26096
26097          /* Did the file descriptor bug occur?  */
26098          || fstat(fileno(stdout), &st) != 0
26099          );
26100   }
26101 }
26102 _ACEOF
26103 rm -f conftest$ac_exeext
26104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26105   (eval $ac_link) 2>&5
26106   ac_status=$?
26107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26110   (eval $ac_try) 2>&5
26111   ac_status=$?
26112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113   (exit $ac_status); }; }; then
26114   ac_cv_func_vfork_works=yes
26115 else
26116   echo "$as_me: program exited with status $ac_status" >&5
26117 echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26119
26120 ( exit $ac_status )
26121 ac_cv_func_vfork_works=no
26122 fi
26123 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26124 fi
26125 fi
26126 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26127 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
26128
26129 fi;
26130 if test "x$ac_cv_func_fork_works" = xcross; then
26131   ac_cv_func_vfork_works=$ac_cv_func_vfork
26132   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26133 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26134 fi
26135
26136 if test "x$ac_cv_func_vfork_works" = xyes; then
26137
26138 cat >>confdefs.h <<\_ACEOF
26139 #define HAVE_WORKING_VFORK 1
26140 _ACEOF
26141
26142 else
26143
26144 cat >>confdefs.h <<\_ACEOF
26145 #define vfork fork
26146 _ACEOF
26147
26148 fi
26149 if test "x$ac_cv_func_fork_works" = xyes; then
26150
26151 cat >>confdefs.h <<\_ACEOF
26152 #define HAVE_WORKING_FORK 1
26153 _ACEOF
26154
26155 fi
26156
26157 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
26158 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
26159 if test "${ac_cv_func_closedir_void+set}" = set; then
26160   echo $ECHO_N "(cached) $ECHO_C" >&6
26161 else
26162   if test "$cross_compiling" = yes; then
26163   ac_cv_func_closedir_void=yes
26164 else
26165   cat >conftest.$ac_ext <<_ACEOF
26166 /* confdefs.h.  */
26167 _ACEOF
26168 cat confdefs.h >>conftest.$ac_ext
26169 cat >>conftest.$ac_ext <<_ACEOF
26170 /* end confdefs.h.  */
26171 $ac_includes_default
26172 #include <$ac_header_dirent>
26173 #ifndef __cplusplus
26174 int closedir ();
26175 #endif
26176
26177 int
26178 main ()
26179 {
26180 exit (closedir (opendir (".")) != 0);
26181   ;
26182   return 0;
26183 }
26184 _ACEOF
26185 rm -f conftest$ac_exeext
26186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26187   (eval $ac_link) 2>&5
26188   ac_status=$?
26189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192   (eval $ac_try) 2>&5
26193   ac_status=$?
26194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195   (exit $ac_status); }; }; then
26196   ac_cv_func_closedir_void=no
26197 else
26198   echo "$as_me: program exited with status $ac_status" >&5
26199 echo "$as_me: failed program was:" >&5
26200 sed 's/^/| /' conftest.$ac_ext >&5
26201
26202 ( exit $ac_status )
26203 ac_cv_func_closedir_void=yes
26204 fi
26205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26206 fi
26207 fi
26208 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
26209 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
26210 if test $ac_cv_func_closedir_void = yes; then
26211
26212 cat >>confdefs.h <<\_ACEOF
26213 #define CLOSEDIR_VOID 1
26214 _ACEOF
26215
26216 fi
26217
26218
26219 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
26220 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
26221 if test "${ac_cv_search_getspnam+set}" = set; then
26222   echo $ECHO_N "(cached) $ECHO_C" >&6
26223 else
26224   ac_func_search_save_LIBS=$LIBS
26225 ac_cv_search_getspnam=no
26226 cat >conftest.$ac_ext <<_ACEOF
26227 /* confdefs.h.  */
26228 _ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h.  */
26232
26233 /* Override any gcc2 internal prototype to avoid an error.  */
26234 #ifdef __cplusplus
26235 extern "C"
26236 #endif
26237 /* We use char because int might match the return type of a gcc2
26238    builtin and then its argument prototype would still apply.  */
26239 char getspnam ();
26240 int
26241 main ()
26242 {
26243 getspnam ();
26244   ;
26245   return 0;
26246 }
26247 _ACEOF
26248 rm -f conftest.$ac_objext conftest$ac_exeext
26249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26250   (eval $ac_link) 2>conftest.er1
26251   ac_status=$?
26252   grep -v '^ *+' conftest.er1 >conftest.err
26253   rm -f conftest.er1
26254   cat conftest.err >&5
26255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256   (exit $ac_status); } &&
26257          { ac_try='test -z "$ac_c_werror_flag"
26258                          || test ! -s conftest.err'
26259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260   (eval $ac_try) 2>&5
26261   ac_status=$?
26262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263   (exit $ac_status); }; } &&
26264          { ac_try='test -s conftest$ac_exeext'
26265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266   (eval $ac_try) 2>&5
26267   ac_status=$?
26268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269   (exit $ac_status); }; }; then
26270   ac_cv_search_getspnam="none required"
26271 else
26272   echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26274
26275 fi
26276 rm -f conftest.err conftest.$ac_objext \
26277       conftest$ac_exeext conftest.$ac_ext
26278 if test "$ac_cv_search_getspnam" = no; then
26279   for ac_lib in sec gen; do
26280     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26281     cat >conftest.$ac_ext <<_ACEOF
26282 /* confdefs.h.  */
26283 _ACEOF
26284 cat confdefs.h >>conftest.$ac_ext
26285 cat >>conftest.$ac_ext <<_ACEOF
26286 /* end confdefs.h.  */
26287
26288 /* Override any gcc2 internal prototype to avoid an error.  */
26289 #ifdef __cplusplus
26290 extern "C"
26291 #endif
26292 /* We use char because int might match the return type of a gcc2
26293    builtin and then its argument prototype would still apply.  */
26294 char getspnam ();
26295 int
26296 main ()
26297 {
26298 getspnam ();
26299   ;
26300   return 0;
26301 }
26302 _ACEOF
26303 rm -f conftest.$ac_objext conftest$ac_exeext
26304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26305   (eval $ac_link) 2>conftest.er1
26306   ac_status=$?
26307   grep -v '^ *+' conftest.er1 >conftest.err
26308   rm -f conftest.er1
26309   cat conftest.err >&5
26310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311   (exit $ac_status); } &&
26312          { ac_try='test -z "$ac_c_werror_flag"
26313                          || test ! -s conftest.err'
26314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26315   (eval $ac_try) 2>&5
26316   ac_status=$?
26317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318   (exit $ac_status); }; } &&
26319          { ac_try='test -s conftest$ac_exeext'
26320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321   (eval $ac_try) 2>&5
26322   ac_status=$?
26323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324   (exit $ac_status); }; }; then
26325   ac_cv_search_getspnam="-l$ac_lib"
26326 break
26327 else
26328   echo "$as_me: failed program was:" >&5
26329 sed 's/^/| /' conftest.$ac_ext >&5
26330
26331 fi
26332 rm -f conftest.err conftest.$ac_objext \
26333       conftest$ac_exeext conftest.$ac_ext
26334   done
26335 fi
26336 LIBS=$ac_func_search_save_LIBS
26337 fi
26338 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
26339 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
26340 if test "$ac_cv_search_getspnam" != no; then
26341   test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
26342
26343 cat >>confdefs.h <<\_ACEOF
26344 #define HAVE_GETSPNAM 1
26345 _ACEOF
26346
26347 fi
26348
26349
26350 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
26351 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
26352 if test "${ac_cv_func_utime_null+set}" = set; then
26353   echo $ECHO_N "(cached) $ECHO_C" >&6
26354 else
26355   rm -f conftest.data; >conftest.data
26356 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
26357 if test "$cross_compiling" = yes; then
26358   ac_cv_func_utime_null=no
26359 else
26360   cat >conftest.$ac_ext <<_ACEOF
26361 /* confdefs.h.  */
26362 _ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h.  */
26366 $ac_includes_default
26367 int
26368 main ()
26369 {
26370 struct stat s, t;
26371   exit (!(stat ("conftest.data", &s) == 0
26372           && utime ("conftest.data", (long *)0) == 0
26373           && stat ("conftest.data", &t) == 0
26374           && t.st_mtime >= s.st_mtime
26375           && t.st_mtime - s.st_mtime < 120));
26376   ;
26377   return 0;
26378 }
26379 _ACEOF
26380 rm -f conftest$ac_exeext
26381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26382   (eval $ac_link) 2>&5
26383   ac_status=$?
26384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387   (eval $ac_try) 2>&5
26388   ac_status=$?
26389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390   (exit $ac_status); }; }; then
26391   ac_cv_func_utime_null=yes
26392 else
26393   echo "$as_me: program exited with status $ac_status" >&5
26394 echo "$as_me: failed program was:" >&5
26395 sed 's/^/| /' conftest.$ac_ext >&5
26396
26397 ( exit $ac_status )
26398 ac_cv_func_utime_null=no
26399 fi
26400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26401 fi
26402 rm -f core *.core
26403 fi
26404 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
26405 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
26406 if test $ac_cv_func_utime_null = yes; then
26407
26408 cat >>confdefs.h <<\_ACEOF
26409 #define HAVE_UTIME_NULL 1
26410 _ACEOF
26411
26412 fi
26413 rm -f conftest.data
26414
26415 echo "$as_me:$LINENO: checking for long file names" >&5
26416 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
26417 if test "${ac_cv_sys_long_file_names+set}" = set; then
26418   echo $ECHO_N "(cached) $ECHO_C" >&6
26419 else
26420   ac_cv_sys_long_file_names=yes
26421 # Test for long file names in all the places we know might matter:
26422 #      .                the current directory, where building will happen
26423 #      $prefix/lib      where we will be installing things
26424 #      $exec_prefix/lib likewise
26425 # eval it to expand exec_prefix.
26426 #      $TMPDIR          if set, where it might want to write temporary files
26427 # if $TMPDIR is not set:
26428 #      /tmp             where it might want to write temporary files
26429 #      /var/tmp         likewise
26430 #      /usr/tmp         likewise
26431 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
26432   ac_tmpdirs=$TMPDIR
26433 else
26434   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
26435 fi
26436 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
26437   test -d $ac_dir || continue
26438   test -w $ac_dir || continue # It is less confusing to not echo anything here.
26439   ac_xdir=$ac_dir/cf$$
26440   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
26441   ac_tf1=$ac_xdir/conftest9012345
26442   ac_tf2=$ac_xdir/conftest9012346
26443   (echo 1 >$ac_tf1) 2>/dev/null
26444   (echo 2 >$ac_tf2) 2>/dev/null
26445   ac_val=`cat $ac_tf1 2>/dev/null`
26446   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
26447     ac_cv_sys_long_file_names=no
26448     rm -rf $ac_xdir 2>/dev/null
26449     break
26450   fi
26451   rm -rf $ac_xdir 2>/dev/null
26452 done
26453 fi
26454 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
26455 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
26456 if test $ac_cv_sys_long_file_names = yes; then
26457
26458 cat >>confdefs.h <<\_ACEOF
26459 #define HAVE_LONG_FILE_NAMES 1
26460 _ACEOF
26461
26462 fi
26463
26464
26465
26466
26467 for ac_header in stdlib.h unistd.h
26468 do
26469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26471   echo "$as_me:$LINENO: checking for $ac_header" >&5
26472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26474   echo $ECHO_N "(cached) $ECHO_C" >&6
26475 fi
26476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26478 else
26479   # Is the header compilable?
26480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26482 cat >conftest.$ac_ext <<_ACEOF
26483 /* confdefs.h.  */
26484 _ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h.  */
26488 $ac_includes_default
26489 #include <$ac_header>
26490 _ACEOF
26491 rm -f conftest.$ac_objext
26492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26493   (eval $ac_compile) 2>conftest.er1
26494   ac_status=$?
26495   grep -v '^ *+' conftest.er1 >conftest.err
26496   rm -f conftest.er1
26497   cat conftest.err >&5
26498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499   (exit $ac_status); } &&
26500          { ac_try='test -z "$ac_c_werror_flag"
26501                          || test ! -s conftest.err'
26502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26503   (eval $ac_try) 2>&5
26504   ac_status=$?
26505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506   (exit $ac_status); }; } &&
26507          { ac_try='test -s conftest.$ac_objext'
26508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509   (eval $ac_try) 2>&5
26510   ac_status=$?
26511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512   (exit $ac_status); }; }; then
26513   ac_header_compiler=yes
26514 else
26515   echo "$as_me: failed program was:" >&5
26516 sed 's/^/| /' conftest.$ac_ext >&5
26517
26518 ac_header_compiler=no
26519 fi
26520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26522 echo "${ECHO_T}$ac_header_compiler" >&6
26523
26524 # Is the header present?
26525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26527 cat >conftest.$ac_ext <<_ACEOF
26528 /* confdefs.h.  */
26529 _ACEOF
26530 cat confdefs.h >>conftest.$ac_ext
26531 cat >>conftest.$ac_ext <<_ACEOF
26532 /* end confdefs.h.  */
26533 #include <$ac_header>
26534 _ACEOF
26535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26537   ac_status=$?
26538   grep -v '^ *+' conftest.er1 >conftest.err
26539   rm -f conftest.er1
26540   cat conftest.err >&5
26541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542   (exit $ac_status); } >/dev/null; then
26543   if test -s conftest.err; then
26544     ac_cpp_err=$ac_c_preproc_warn_flag
26545     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26546   else
26547     ac_cpp_err=
26548   fi
26549 else
26550   ac_cpp_err=yes
26551 fi
26552 if test -z "$ac_cpp_err"; then
26553   ac_header_preproc=yes
26554 else
26555   echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26557
26558   ac_header_preproc=no
26559 fi
26560 rm -f conftest.err conftest.$ac_ext
26561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26562 echo "${ECHO_T}$ac_header_preproc" >&6
26563
26564 # So?  What about this header?
26565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26566   yes:no: )
26567     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26571     ac_header_preproc=yes
26572     ;;
26573   no:yes:* )
26574     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26576     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26577 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26578     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26580     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26581 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26584     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26586     (
26587       cat <<\_ASBOX
26588 ## ------------------------------ ##
26589 ## Report this to bug-cvs@gnu.org ##
26590 ## ------------------------------ ##
26591 _ASBOX
26592     ) |
26593       sed "s/^/$as_me: WARNING:     /" >&2
26594     ;;
26595 esac
26596 echo "$as_me:$LINENO: checking for $ac_header" >&5
26597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26599   echo $ECHO_N "(cached) $ECHO_C" >&6
26600 else
26601   eval "$as_ac_Header=\$ac_header_preproc"
26602 fi
26603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26605
26606 fi
26607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26608   cat >>confdefs.h <<_ACEOF
26609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26610 _ACEOF
26611
26612 fi
26613
26614 done
26615
26616
26617 for ac_func in getpagesize
26618 do
26619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26620 echo "$as_me:$LINENO: checking for $ac_func" >&5
26621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26622 if eval "test \"\${$as_ac_var+set}\" = set"; then
26623   echo $ECHO_N "(cached) $ECHO_C" >&6
26624 else
26625   cat >conftest.$ac_ext <<_ACEOF
26626 /* confdefs.h.  */
26627 _ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h.  */
26631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26633 #define $ac_func innocuous_$ac_func
26634
26635 /* System header to define __stub macros and hopefully few prototypes,
26636     which can conflict with char $ac_func (); below.
26637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26638     <limits.h> exists even on freestanding compilers.  */
26639
26640 #ifdef __STDC__
26641 # include <limits.h>
26642 #else
26643 # include <assert.h>
26644 #endif
26645
26646 #undef $ac_func
26647
26648 /* Override any gcc2 internal prototype to avoid an error.  */
26649 #ifdef __cplusplus
26650 extern "C"
26651 {
26652 #endif
26653 /* We use char because int might match the return type of a gcc2
26654    builtin and then its argument prototype would still apply.  */
26655 char $ac_func ();
26656 /* The GNU C library defines this for functions which it implements
26657     to always fail with ENOSYS.  Some functions are actually named
26658     something starting with __ and the normal name is an alias.  */
26659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26660 choke me
26661 #else
26662 char (*f) () = $ac_func;
26663 #endif
26664 #ifdef __cplusplus
26665 }
26666 #endif
26667
26668 int
26669 main ()
26670 {
26671 return f != $ac_func;
26672   ;
26673   return 0;
26674 }
26675 _ACEOF
26676 rm -f conftest.$ac_objext conftest$ac_exeext
26677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26678   (eval $ac_link) 2>conftest.er1
26679   ac_status=$?
26680   grep -v '^ *+' conftest.er1 >conftest.err
26681   rm -f conftest.er1
26682   cat conftest.err >&5
26683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684   (exit $ac_status); } &&
26685          { ac_try='test -z "$ac_c_werror_flag"
26686                          || test ! -s conftest.err'
26687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26688   (eval $ac_try) 2>&5
26689   ac_status=$?
26690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691   (exit $ac_status); }; } &&
26692          { ac_try='test -s conftest$ac_exeext'
26693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694   (eval $ac_try) 2>&5
26695   ac_status=$?
26696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697   (exit $ac_status); }; }; then
26698   eval "$as_ac_var=yes"
26699 else
26700   echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26702
26703 eval "$as_ac_var=no"
26704 fi
26705 rm -f conftest.err conftest.$ac_objext \
26706       conftest$ac_exeext conftest.$ac_ext
26707 fi
26708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26710 if test `eval echo '${'$as_ac_var'}'` = yes; then
26711   cat >>confdefs.h <<_ACEOF
26712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26713 _ACEOF
26714
26715 fi
26716 done
26717
26718 echo "$as_me:$LINENO: checking for working mmap" >&5
26719 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
26720 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
26721   echo $ECHO_N "(cached) $ECHO_C" >&6
26722 else
26723   if test "$cross_compiling" = yes; then
26724   ac_cv_func_mmap_fixed_mapped=no
26725 else
26726   cat >conftest.$ac_ext <<_ACEOF
26727 /* confdefs.h.  */
26728 _ACEOF
26729 cat confdefs.h >>conftest.$ac_ext
26730 cat >>conftest.$ac_ext <<_ACEOF
26731 /* end confdefs.h.  */
26732 $ac_includes_default
26733 /* malloc might have been renamed as rpl_malloc. */
26734 #undef malloc
26735
26736 /* Thanks to Mike Haertel and Jim Avera for this test.
26737    Here is a matrix of mmap possibilities:
26738         mmap private not fixed
26739         mmap private fixed at somewhere currently unmapped
26740         mmap private fixed at somewhere already mapped
26741         mmap shared not fixed
26742         mmap shared fixed at somewhere currently unmapped
26743         mmap shared fixed at somewhere already mapped
26744    For private mappings, we should verify that changes cannot be read()
26745    back from the file, nor mmap's back from the file at a different
26746    address.  (There have been systems where private was not correctly
26747    implemented like the infamous i386 svr4.0, and systems where the
26748    VM page cache was not coherent with the file system buffer cache
26749    like early versions of FreeBSD and possibly contemporary NetBSD.)
26750    For shared mappings, we should conversely verify that changes get
26751    propagated back to all the places they're supposed to be.
26752
26753    Grep wants private fixed already mapped.
26754    The main things grep needs to know about mmap are:
26755    * does it exist and is it safe to write into the mmap'd area
26756    * how to use it (BSD variants)  */
26757
26758 #include <fcntl.h>
26759 #include <sys/mman.h>
26760
26761 #if !STDC_HEADERS && !HAVE_STDLIB_H
26762 char *malloc ();
26763 #endif
26764
26765 /* This mess was copied from the GNU getpagesize.h.  */
26766 #if !HAVE_GETPAGESIZE
26767 /* Assume that all systems that can run configure have sys/param.h.  */
26768 # if !HAVE_SYS_PARAM_H
26769 #  define HAVE_SYS_PARAM_H 1
26770 # endif
26771
26772 # ifdef _SC_PAGESIZE
26773 #  define getpagesize() sysconf(_SC_PAGESIZE)
26774 # else /* no _SC_PAGESIZE */
26775 #  if HAVE_SYS_PARAM_H
26776 #   include <sys/param.h>
26777 #   ifdef EXEC_PAGESIZE
26778 #    define getpagesize() EXEC_PAGESIZE
26779 #   else /* no EXEC_PAGESIZE */
26780 #    ifdef NBPG
26781 #     define getpagesize() NBPG * CLSIZE
26782 #     ifndef CLSIZE
26783 #      define CLSIZE 1
26784 #     endif /* no CLSIZE */
26785 #    else /* no NBPG */
26786 #     ifdef NBPC
26787 #      define getpagesize() NBPC
26788 #     else /* no NBPC */
26789 #      ifdef PAGESIZE
26790 #       define getpagesize() PAGESIZE
26791 #      endif /* PAGESIZE */
26792 #     endif /* no NBPC */
26793 #    endif /* no NBPG */
26794 #   endif /* no EXEC_PAGESIZE */
26795 #  else /* no HAVE_SYS_PARAM_H */
26796 #   define getpagesize() 8192   /* punt totally */
26797 #  endif /* no HAVE_SYS_PARAM_H */
26798 # endif /* no _SC_PAGESIZE */
26799
26800 #endif /* no HAVE_GETPAGESIZE */
26801
26802 int
26803 main ()
26804 {
26805   char *data, *data2, *data3;
26806   int i, pagesize;
26807   int fd;
26808
26809   pagesize = getpagesize ();
26810
26811   /* First, make a file with some known garbage in it. */
26812   data = (char *) malloc (pagesize);
26813   if (!data)
26814     exit (1);
26815   for (i = 0; i < pagesize; ++i)
26816     *(data + i) = rand ();
26817   umask (0);
26818   fd = creat ("conftest.mmap", 0600);
26819   if (fd < 0)
26820     exit (1);
26821   if (write (fd, data, pagesize) != pagesize)
26822     exit (1);
26823   close (fd);
26824
26825   /* Next, try to mmap the file at a fixed address which already has
26826      something else allocated at it.  If we can, also make sure that
26827      we see the same garbage.  */
26828   fd = open ("conftest.mmap", O_RDWR);
26829   if (fd < 0)
26830     exit (1);
26831   data2 = (char *) malloc (2 * pagesize);
26832   if (!data2)
26833     exit (1);
26834   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
26835   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
26836                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
26837     exit (1);
26838   for (i = 0; i < pagesize; ++i)
26839     if (*(data + i) != *(data2 + i))
26840       exit (1);
26841
26842   /* Finally, make sure that changes to the mapped area do not
26843      percolate back to the file as seen by read().  (This is a bug on
26844      some variants of i386 svr4.0.)  */
26845   for (i = 0; i < pagesize; ++i)
26846     *(data2 + i) = *(data2 + i) + 1;
26847   data3 = (char *) malloc (pagesize);
26848   if (!data3)
26849     exit (1);
26850   if (read (fd, data3, pagesize) != pagesize)
26851     exit (1);
26852   for (i = 0; i < pagesize; ++i)
26853     if (*(data + i) != *(data3 + i))
26854       exit (1);
26855   close (fd);
26856   exit (0);
26857 }
26858 _ACEOF
26859 rm -f conftest$ac_exeext
26860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26861   (eval $ac_link) 2>&5
26862   ac_status=$?
26863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26866   (eval $ac_try) 2>&5
26867   ac_status=$?
26868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869   (exit $ac_status); }; }; then
26870   ac_cv_func_mmap_fixed_mapped=yes
26871 else
26872   echo "$as_me: program exited with status $ac_status" >&5
26873 echo "$as_me: failed program was:" >&5
26874 sed 's/^/| /' conftest.$ac_ext >&5
26875
26876 ( exit $ac_status )
26877 ac_cv_func_mmap_fixed_mapped=no
26878 fi
26879 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26880 fi
26881 fi
26882 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
26883 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
26884 if test $ac_cv_func_mmap_fixed_mapped = yes; then
26885
26886 cat >>confdefs.h <<\_ACEOF
26887 #define HAVE_MMAP 1
26888 _ACEOF
26889
26890 fi
26891 rm -f conftest.mmap
26892
26893
26894 echo "$as_me:$LINENO: checking whether printf supports %p" >&5
26895 echo $ECHO_N "checking whether printf supports %p... $ECHO_C" >&6
26896 if test "${cvs_cv_func_printf_ptr+set}" = set; then
26897   echo $ECHO_N "(cached) $ECHO_C" >&6
26898 else
26899   if test "$cross_compiling" = yes; then
26900   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26901 See \`config.log' for more details." >&5
26902 echo "$as_me: error: cannot run test program while cross compiling
26903 See \`config.log' for more details." >&2;}
26904    { (exit 1); exit 1; }; }
26905 else
26906   cat >conftest.$ac_ext <<_ACEOF
26907 /* confdefs.h.  */
26908 _ACEOF
26909 cat confdefs.h >>conftest.$ac_ext
26910 cat >>conftest.$ac_ext <<_ACEOF
26911 /* end confdefs.h.  */
26912 #include <stdio.h>
26913 /* If printf supports %p, exit 0. */
26914 int
26915 main ()
26916 {
26917   void *p1, *p2;
26918   char buf[256];
26919   p1 = &p1; p2 = &p2;
26920   sprintf(buf, "%p", p1);
26921   exit(sscanf(buf, "%p", &p2) != 1 || p2 != p1);
26922 }
26923 _ACEOF
26924 rm -f conftest$ac_exeext
26925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26926   (eval $ac_link) 2>&5
26927   ac_status=$?
26928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931   (eval $ac_try) 2>&5
26932   ac_status=$?
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); }; }; then
26935   cvs_cv_func_printf_ptr=yes
26936 else
26937   echo "$as_me: program exited with status $ac_status" >&5
26938 echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26940
26941 ( exit $ac_status )
26942 cvs_cv_func_printf_ptr=no
26943 fi
26944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26945 fi
26946 rm -f core core.* *.core
26947 fi
26948 echo "$as_me:$LINENO: result: $cvs_cv_func_printf_ptr" >&5
26949 echo "${ECHO_T}$cvs_cv_func_printf_ptr" >&6
26950 if test $cvs_cv_func_printf_ptr = yes; then
26951
26952 cat >>confdefs.h <<\_ACEOF
26953 #define HAVE_PRINTF_PTR 1
26954 _ACEOF
26955
26956 fi
26957
26958
26959 # Try to find connect and gethostbyname.
26960
26961 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
26962 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
26963 if test "${ac_cv_lib_nsl_main+set}" = set; then
26964   echo $ECHO_N "(cached) $ECHO_C" >&6
26965 else
26966   ac_check_lib_save_LIBS=$LIBS
26967 LIBS="-lnsl  $LIBS"
26968 cat >conftest.$ac_ext <<_ACEOF
26969 /* confdefs.h.  */
26970 _ACEOF
26971 cat confdefs.h >>conftest.$ac_ext
26972 cat >>conftest.$ac_ext <<_ACEOF
26973 /* end confdefs.h.  */
26974
26975
26976 int
26977 main ()
26978 {
26979 main ();
26980   ;
26981   return 0;
26982 }
26983 _ACEOF
26984 rm -f conftest.$ac_objext conftest$ac_exeext
26985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26986   (eval $ac_link) 2>conftest.er1
26987   ac_status=$?
26988   grep -v '^ *+' conftest.er1 >conftest.err
26989   rm -f conftest.er1
26990   cat conftest.err >&5
26991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992   (exit $ac_status); } &&
26993          { ac_try='test -z "$ac_c_werror_flag"
26994                          || test ! -s conftest.err'
26995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26996   (eval $ac_try) 2>&5
26997   ac_status=$?
26998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999   (exit $ac_status); }; } &&
27000          { ac_try='test -s conftest$ac_exeext'
27001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27002   (eval $ac_try) 2>&5
27003   ac_status=$?
27004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005   (exit $ac_status); }; }; then
27006   ac_cv_lib_nsl_main=yes
27007 else
27008   echo "$as_me: failed program was:" >&5
27009 sed 's/^/| /' conftest.$ac_ext >&5
27010
27011 ac_cv_lib_nsl_main=no
27012 fi
27013 rm -f conftest.err conftest.$ac_objext \
27014       conftest$ac_exeext conftest.$ac_ext
27015 LIBS=$ac_check_lib_save_LIBS
27016 fi
27017 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
27018 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
27019 if test $ac_cv_lib_nsl_main = yes; then
27020   cat >>confdefs.h <<_ACEOF
27021 #define HAVE_LIBNSL 1
27022 _ACEOF
27023
27024   LIBS="-lnsl $LIBS"
27025
27026 fi
27027
27028 echo "$as_me:$LINENO: checking for library containing connect" >&5
27029 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
27030 if test "${ac_cv_search_connect+set}" = set; then
27031   echo $ECHO_N "(cached) $ECHO_C" >&6
27032 else
27033   ac_func_search_save_LIBS=$LIBS
27034 ac_cv_search_connect=no
27035 cat >conftest.$ac_ext <<_ACEOF
27036 /* confdefs.h.  */
27037 _ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h.  */
27041
27042 /* Override any gcc2 internal prototype to avoid an error.  */
27043 #ifdef __cplusplus
27044 extern "C"
27045 #endif
27046 /* We use char because int might match the return type of a gcc2
27047    builtin and then its argument prototype would still apply.  */
27048 char connect ();
27049 int
27050 main ()
27051 {
27052 connect ();
27053   ;
27054   return 0;
27055 }
27056 _ACEOF
27057 rm -f conftest.$ac_objext conftest$ac_exeext
27058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27059   (eval $ac_link) 2>conftest.er1
27060   ac_status=$?
27061   grep -v '^ *+' conftest.er1 >conftest.err
27062   rm -f conftest.er1
27063   cat conftest.err >&5
27064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065   (exit $ac_status); } &&
27066          { ac_try='test -z "$ac_c_werror_flag"
27067                          || test ! -s conftest.err'
27068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27069   (eval $ac_try) 2>&5
27070   ac_status=$?
27071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072   (exit $ac_status); }; } &&
27073          { ac_try='test -s conftest$ac_exeext'
27074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27075   (eval $ac_try) 2>&5
27076   ac_status=$?
27077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078   (exit $ac_status); }; }; then
27079   ac_cv_search_connect="none required"
27080 else
27081   echo "$as_me: failed program was:" >&5
27082 sed 's/^/| /' conftest.$ac_ext >&5
27083
27084 fi
27085 rm -f conftest.err conftest.$ac_objext \
27086       conftest$ac_exeext conftest.$ac_ext
27087 if test "$ac_cv_search_connect" = no; then
27088   for ac_lib in xnet socket inet; do
27089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27090     cat >conftest.$ac_ext <<_ACEOF
27091 /* confdefs.h.  */
27092 _ACEOF
27093 cat confdefs.h >>conftest.$ac_ext
27094 cat >>conftest.$ac_ext <<_ACEOF
27095 /* end confdefs.h.  */
27096
27097 /* Override any gcc2 internal prototype to avoid an error.  */
27098 #ifdef __cplusplus
27099 extern "C"
27100 #endif
27101 /* We use char because int might match the return type of a gcc2
27102    builtin and then its argument prototype would still apply.  */
27103 char connect ();
27104 int
27105 main ()
27106 {
27107 connect ();
27108   ;
27109   return 0;
27110 }
27111 _ACEOF
27112 rm -f conftest.$ac_objext conftest$ac_exeext
27113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27114   (eval $ac_link) 2>conftest.er1
27115   ac_status=$?
27116   grep -v '^ *+' conftest.er1 >conftest.err
27117   rm -f conftest.er1
27118   cat conftest.err >&5
27119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120   (exit $ac_status); } &&
27121          { ac_try='test -z "$ac_c_werror_flag"
27122                          || test ! -s conftest.err'
27123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27124   (eval $ac_try) 2>&5
27125   ac_status=$?
27126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127   (exit $ac_status); }; } &&
27128          { ac_try='test -s conftest$ac_exeext'
27129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130   (eval $ac_try) 2>&5
27131   ac_status=$?
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); }; }; then
27134   ac_cv_search_connect="-l$ac_lib"
27135 break
27136 else
27137   echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27139
27140 fi
27141 rm -f conftest.err conftest.$ac_objext \
27142       conftest$ac_exeext conftest.$ac_ext
27143   done
27144 fi
27145 LIBS=$ac_func_search_save_LIBS
27146 fi
27147 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
27148 echo "${ECHO_T}$ac_cv_search_connect" >&6
27149 if test "$ac_cv_search_connect" != no; then
27150   test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
27151
27152 cat >>confdefs.h <<\_ACEOF
27153 #define HAVE_CONNECT 1
27154 _ACEOF
27155
27156 fi
27157
27158 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
27159 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
27160 if test "${ac_cv_search_gethostbyname+set}" = set; then
27161   echo $ECHO_N "(cached) $ECHO_C" >&6
27162 else
27163   ac_func_search_save_LIBS=$LIBS
27164 ac_cv_search_gethostbyname=no
27165 cat >conftest.$ac_ext <<_ACEOF
27166 /* confdefs.h.  */
27167 _ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h.  */
27171
27172 /* Override any gcc2 internal prototype to avoid an error.  */
27173 #ifdef __cplusplus
27174 extern "C"
27175 #endif
27176 /* We use char because int might match the return type of a gcc2
27177    builtin and then its argument prototype would still apply.  */
27178 char gethostbyname ();
27179 int
27180 main ()
27181 {
27182 gethostbyname ();
27183   ;
27184   return 0;
27185 }
27186 _ACEOF
27187 rm -f conftest.$ac_objext conftest$ac_exeext
27188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27189   (eval $ac_link) 2>conftest.er1
27190   ac_status=$?
27191   grep -v '^ *+' conftest.er1 >conftest.err
27192   rm -f conftest.er1
27193   cat conftest.err >&5
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); } &&
27196          { ac_try='test -z "$ac_c_werror_flag"
27197                          || test ! -s conftest.err'
27198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199   (eval $ac_try) 2>&5
27200   ac_status=$?
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); }; } &&
27203          { ac_try='test -s conftest$ac_exeext'
27204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205   (eval $ac_try) 2>&5
27206   ac_status=$?
27207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208   (exit $ac_status); }; }; then
27209   ac_cv_search_gethostbyname="none required"
27210 else
27211   echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27213
27214 fi
27215 rm -f conftest.err conftest.$ac_objext \
27216       conftest$ac_exeext conftest.$ac_ext
27217 if test "$ac_cv_search_gethostbyname" = no; then
27218   for ac_lib in netinet; do
27219     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27220     cat >conftest.$ac_ext <<_ACEOF
27221 /* confdefs.h.  */
27222 _ACEOF
27223 cat confdefs.h >>conftest.$ac_ext
27224 cat >>conftest.$ac_ext <<_ACEOF
27225 /* end confdefs.h.  */
27226
27227 /* Override any gcc2 internal prototype to avoid an error.  */
27228 #ifdef __cplusplus
27229 extern "C"
27230 #endif
27231 /* We use char because int might match the return type of a gcc2
27232    builtin and then its argument prototype would still apply.  */
27233 char gethostbyname ();
27234 int
27235 main ()
27236 {
27237 gethostbyname ();
27238   ;
27239   return 0;
27240 }
27241 _ACEOF
27242 rm -f conftest.$ac_objext conftest$ac_exeext
27243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27244   (eval $ac_link) 2>conftest.er1
27245   ac_status=$?
27246   grep -v '^ *+' conftest.er1 >conftest.err
27247   rm -f conftest.er1
27248   cat conftest.err >&5
27249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); } &&
27251          { ac_try='test -z "$ac_c_werror_flag"
27252                          || test ! -s conftest.err'
27253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254   (eval $ac_try) 2>&5
27255   ac_status=$?
27256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); }; } &&
27258          { ac_try='test -s conftest$ac_exeext'
27259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260   (eval $ac_try) 2>&5
27261   ac_status=$?
27262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263   (exit $ac_status); }; }; then
27264   ac_cv_search_gethostbyname="-l$ac_lib"
27265 break
27266 else
27267   echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27269
27270 fi
27271 rm -f conftest.err conftest.$ac_objext \
27272       conftest$ac_exeext conftest.$ac_ext
27273   done
27274 fi
27275 LIBS=$ac_func_search_save_LIBS
27276 fi
27277 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
27278 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
27279 if test "$ac_cv_search_gethostbyname" != no; then
27280   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
27281
27282 fi
27283
27284
27285
27286
27287
27288
27289
27290 KRB4=/usr/kerberos
27291
27292
27293 # Check whether --with-krb4 or --without-krb4 was given.
27294 if test "${with_krb4+set}" = set; then
27295   withval="$with_krb4"
27296   KRB4=$with_krb4
27297 fi; echo "$as_me:$LINENO: checking for KRB4 in $KRB4" >&5
27298 echo $ECHO_N "checking for KRB4 in $KRB4... $ECHO_C" >&6
27299 echo "$as_me:$LINENO: result: " >&5
27300 echo "${ECHO_T}" >&6
27301
27302
27303 krb_h=
27304 echo "$as_me:$LINENO: checking for krb.h" >&5
27305 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
27306 if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
27307    hold_cflags=$CFLAGS
27308    CFLAGS="$CFLAGS -I$KRB4/include"
27309    cat >conftest.$ac_ext <<_ACEOF
27310 /* confdefs.h.  */
27311 _ACEOF
27312 cat confdefs.h >>conftest.$ac_ext
27313 cat >>conftest.$ac_ext <<_ACEOF
27314 /* end confdefs.h.  */
27315 #include <krb.h>
27316 int
27317 main ()
27318 {
27319 int i;
27320   ;
27321   return 0;
27322 }
27323 _ACEOF
27324 rm -f conftest.$ac_objext conftest$ac_exeext
27325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27326   (eval $ac_link) 2>conftest.er1
27327   ac_status=$?
27328   grep -v '^ *+' conftest.er1 >conftest.err
27329   rm -f conftest.er1
27330   cat conftest.err >&5
27331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332   (exit $ac_status); } &&
27333          { ac_try='test -z "$ac_c_werror_flag"
27334                          || test ! -s conftest.err'
27335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27336   (eval $ac_try) 2>&5
27337   ac_status=$?
27338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339   (exit $ac_status); }; } &&
27340          { ac_try='test -s conftest$ac_exeext'
27341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27342   (eval $ac_try) 2>&5
27343   ac_status=$?
27344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345   (exit $ac_status); }; }; then
27346   krb_h=yes krb_incdir=$KRB4/include
27347 else
27348   echo "$as_me: failed program was:" >&5
27349 sed 's/^/| /' conftest.$ac_ext >&5
27350
27351 CFLAGS=$hold_cflags
27352            cat >conftest.$ac_ext <<_ACEOF
27353 /* confdefs.h.  */
27354 _ACEOF
27355 cat confdefs.h >>conftest.$ac_ext
27356 cat >>conftest.$ac_ext <<_ACEOF
27357 /* end confdefs.h.  */
27358 #include <krb.h>
27359 int
27360 main ()
27361 {
27362 int i;
27363   ;
27364   return 0;
27365 }
27366 _ACEOF
27367 rm -f conftest.$ac_objext conftest$ac_exeext
27368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27369   (eval $ac_link) 2>conftest.er1
27370   ac_status=$?
27371   grep -v '^ *+' conftest.er1 >conftest.err
27372   rm -f conftest.er1
27373   cat conftest.err >&5
27374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375   (exit $ac_status); } &&
27376          { ac_try='test -z "$ac_c_werror_flag"
27377                          || test ! -s conftest.err'
27378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27379   (eval $ac_try) 2>&5
27380   ac_status=$?
27381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382   (exit $ac_status); }; } &&
27383          { ac_try='test -s conftest$ac_exeext'
27384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27385   (eval $ac_try) 2>&5
27386   ac_status=$?
27387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388   (exit $ac_status); }; }; then
27389   krb_h=yes krb_incdir=
27390 else
27391   echo "$as_me: failed program was:" >&5
27392 sed 's/^/| /' conftest.$ac_ext >&5
27393
27394 fi
27395 rm -f conftest.err conftest.$ac_objext \
27396       conftest$ac_exeext conftest.$ac_ext
27397 fi
27398 rm -f conftest.err conftest.$ac_objext \
27399       conftest$ac_exeext conftest.$ac_ext
27400    CFLAGS=$hold_cflags
27401 else
27402    cat >conftest.$ac_ext <<_ACEOF
27403 /* confdefs.h.  */
27404 _ACEOF
27405 cat confdefs.h >>conftest.$ac_ext
27406 cat >>conftest.$ac_ext <<_ACEOF
27407 /* end confdefs.h.  */
27408 #include <krb.h>
27409 int
27410 main ()
27411 {
27412 int i;
27413   ;
27414   return 0;
27415 }
27416 _ACEOF
27417 rm -f conftest.$ac_objext conftest$ac_exeext
27418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27419   (eval $ac_link) 2>conftest.er1
27420   ac_status=$?
27421   grep -v '^ *+' conftest.er1 >conftest.err
27422   rm -f conftest.er1
27423   cat conftest.err >&5
27424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425   (exit $ac_status); } &&
27426          { ac_try='test -z "$ac_c_werror_flag"
27427                          || test ! -s conftest.err'
27428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27429   (eval $ac_try) 2>&5
27430   ac_status=$?
27431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432   (exit $ac_status); }; } &&
27433          { ac_try='test -s conftest$ac_exeext'
27434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435   (eval $ac_try) 2>&5
27436   ac_status=$?
27437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438   (exit $ac_status); }; }; then
27439   krb_h=yes krb_incdir=
27440 else
27441   echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27443
27444 fi
27445 rm -f conftest.err conftest.$ac_objext \
27446       conftest$ac_exeext conftest.$ac_ext
27447 fi
27448 if test -z "$krb_h"; then
27449   cat >conftest.$ac_ext <<_ACEOF
27450 /* confdefs.h.  */
27451 _ACEOF
27452 cat confdefs.h >>conftest.$ac_ext
27453 cat >>conftest.$ac_ext <<_ACEOF
27454 /* end confdefs.h.  */
27455 #include <krb.h>
27456 int
27457 main ()
27458 {
27459 int i;
27460   ;
27461   return 0;
27462 }
27463 _ACEOF
27464 rm -f conftest.$ac_objext conftest$ac_exeext
27465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27466   (eval $ac_link) 2>conftest.er1
27467   ac_status=$?
27468   grep -v '^ *+' conftest.er1 >conftest.err
27469   rm -f conftest.er1
27470   cat conftest.err >&5
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); } &&
27473          { ac_try='test -z "$ac_c_werror_flag"
27474                          || test ! -s conftest.err'
27475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27476   (eval $ac_try) 2>&5
27477   ac_status=$?
27478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479   (exit $ac_status); }; } &&
27480          { ac_try='test -s conftest$ac_exeext'
27481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27482   (eval $ac_try) 2>&5
27483   ac_status=$?
27484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485   (exit $ac_status); }; }; then
27486   krb_h=yes krb_incdir=
27487 else
27488   echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27490
27491 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
27492        hold_cflags=$CFLAGS
27493        CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
27494        cat >conftest.$ac_ext <<_ACEOF
27495 /* confdefs.h.  */
27496 _ACEOF
27497 cat confdefs.h >>conftest.$ac_ext
27498 cat >>conftest.$ac_ext <<_ACEOF
27499 /* end confdefs.h.  */
27500 #include <krb.h>
27501 int
27502 main ()
27503 {
27504 int i;
27505   ;
27506   return 0;
27507 }
27508 _ACEOF
27509 rm -f conftest.$ac_objext conftest$ac_exeext
27510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27511   (eval $ac_link) 2>conftest.er1
27512   ac_status=$?
27513   grep -v '^ *+' conftest.er1 >conftest.err
27514   rm -f conftest.er1
27515   cat conftest.err >&5
27516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517   (exit $ac_status); } &&
27518          { ac_try='test -z "$ac_c_werror_flag"
27519                          || test ! -s conftest.err'
27520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521   (eval $ac_try) 2>&5
27522   ac_status=$?
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); }; } &&
27525          { ac_try='test -s conftest$ac_exeext'
27526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527   (eval $ac_try) 2>&5
27528   ac_status=$?
27529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530   (exit $ac_status); }; }; then
27531   krb_h=yes krb_incdir=$KRB4/include/kerberosIV
27532 else
27533   echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27535
27536 fi
27537 rm -f conftest.err conftest.$ac_objext \
27538       conftest$ac_exeext conftest.$ac_ext
27539        CFLAGS=$hold_cflags
27540      fi
27541 fi
27542 rm -f conftest.err conftest.$ac_objext \
27543       conftest$ac_exeext conftest.$ac_ext
27544 fi
27545 echo "$as_me:$LINENO: result: $krb_h" >&5
27546 echo "${ECHO_T}$krb_h" >&6
27547
27548 if test -n "$krb_h"; then
27549   krb_lib=
27550   if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
27551        hold_ldflags=$LDFLAGS
27552        LDFLAGS="-L${KRB4}/lib $LDFLAGS"
27553        echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
27554 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
27555 if test "${ac_cv_lib_krb_printf+set}" = set; then
27556   echo $ECHO_N "(cached) $ECHO_C" >&6
27557 else
27558   ac_check_lib_save_LIBS=$LIBS
27559 LIBS="-lkrb  $LIBS"
27560 cat >conftest.$ac_ext <<_ACEOF
27561 /* confdefs.h.  */
27562 _ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h.  */
27566
27567 /* Override any gcc2 internal prototype to avoid an error.  */
27568 #ifdef __cplusplus
27569 extern "C"
27570 #endif
27571 /* We use char because int might match the return type of a gcc2
27572    builtin and then its argument prototype would still apply.  */
27573 char printf ();
27574 int
27575 main ()
27576 {
27577 printf ();
27578   ;
27579   return 0;
27580 }
27581 _ACEOF
27582 rm -f conftest.$ac_objext conftest$ac_exeext
27583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27584   (eval $ac_link) 2>conftest.er1
27585   ac_status=$?
27586   grep -v '^ *+' conftest.er1 >conftest.err
27587   rm -f conftest.er1
27588   cat conftest.err >&5
27589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590   (exit $ac_status); } &&
27591          { ac_try='test -z "$ac_c_werror_flag"
27592                          || test ! -s conftest.err'
27593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27594   (eval $ac_try) 2>&5
27595   ac_status=$?
27596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597   (exit $ac_status); }; } &&
27598          { ac_try='test -s conftest$ac_exeext'
27599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27600   (eval $ac_try) 2>&5
27601   ac_status=$?
27602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603   (exit $ac_status); }; }; then
27604   ac_cv_lib_krb_printf=yes
27605 else
27606   echo "$as_me: failed program was:" >&5
27607 sed 's/^/| /' conftest.$ac_ext >&5
27608
27609 ac_cv_lib_krb_printf=no
27610 fi
27611 rm -f conftest.err conftest.$ac_objext \
27612       conftest$ac_exeext conftest.$ac_ext
27613 LIBS=$ac_check_lib_save_LIBS
27614 fi
27615 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
27616 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
27617 if test $ac_cv_lib_krb_printf = yes; then
27618   krb_lib=yes krb_libdir=${KRB4}/lib
27619 else
27620   LDFLAGS=$hold_ldflags
27621             # Using open here instead of printf so we don't
27622             # get confused by the cached value for printf from above.
27623             echo "$as_me:$LINENO: checking for open in -lkrb" >&5
27624 echo $ECHO_N "checking for open in -lkrb... $ECHO_C" >&6
27625 if test "${ac_cv_lib_krb_open+set}" = set; then
27626   echo $ECHO_N "(cached) $ECHO_C" >&6
27627 else
27628   ac_check_lib_save_LIBS=$LIBS
27629 LIBS="-lkrb  $LIBS"
27630 cat >conftest.$ac_ext <<_ACEOF
27631 /* confdefs.h.  */
27632 _ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h.  */
27636
27637 /* Override any gcc2 internal prototype to avoid an error.  */
27638 #ifdef __cplusplus
27639 extern "C"
27640 #endif
27641 /* We use char because int might match the return type of a gcc2
27642    builtin and then its argument prototype would still apply.  */
27643 char open ();
27644 int
27645 main ()
27646 {
27647 open ();
27648   ;
27649   return 0;
27650 }
27651 _ACEOF
27652 rm -f conftest.$ac_objext conftest$ac_exeext
27653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27654   (eval $ac_link) 2>conftest.er1
27655   ac_status=$?
27656   grep -v '^ *+' conftest.er1 >conftest.err
27657   rm -f conftest.er1
27658   cat conftest.err >&5
27659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660   (exit $ac_status); } &&
27661          { ac_try='test -z "$ac_c_werror_flag"
27662                          || test ! -s conftest.err'
27663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664   (eval $ac_try) 2>&5
27665   ac_status=$?
27666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); }; } &&
27668          { ac_try='test -s conftest$ac_exeext'
27669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27670   (eval $ac_try) 2>&5
27671   ac_status=$?
27672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673   (exit $ac_status); }; }; then
27674   ac_cv_lib_krb_open=yes
27675 else
27676   echo "$as_me: failed program was:" >&5
27677 sed 's/^/| /' conftest.$ac_ext >&5
27678
27679 ac_cv_lib_krb_open=no
27680 fi
27681 rm -f conftest.err conftest.$ac_objext \
27682       conftest$ac_exeext conftest.$ac_ext
27683 LIBS=$ac_check_lib_save_LIBS
27684 fi
27685 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_open" >&5
27686 echo "${ECHO_T}$ac_cv_lib_krb_open" >&6
27687 if test $ac_cv_lib_krb_open = yes; then
27688   krb_lib=yes krb_libdir=
27689 fi
27690
27691 fi
27692
27693        LDFLAGS=$hold_ldflags
27694   else
27695        echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
27696 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
27697 if test "${ac_cv_lib_krb_printf+set}" = set; then
27698   echo $ECHO_N "(cached) $ECHO_C" >&6
27699 else
27700   ac_check_lib_save_LIBS=$LIBS
27701 LIBS="-lkrb  $LIBS"
27702 cat >conftest.$ac_ext <<_ACEOF
27703 /* confdefs.h.  */
27704 _ACEOF
27705 cat confdefs.h >>conftest.$ac_ext
27706 cat >>conftest.$ac_ext <<_ACEOF
27707 /* end confdefs.h.  */
27708
27709 /* Override any gcc2 internal prototype to avoid an error.  */
27710 #ifdef __cplusplus
27711 extern "C"
27712 #endif
27713 /* We use char because int might match the return type of a gcc2
27714    builtin and then its argument prototype would still apply.  */
27715 char printf ();
27716 int
27717 main ()
27718 {
27719 printf ();
27720   ;
27721   return 0;
27722 }
27723 _ACEOF
27724 rm -f conftest.$ac_objext conftest$ac_exeext
27725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27726   (eval $ac_link) 2>conftest.er1
27727   ac_status=$?
27728   grep -v '^ *+' conftest.er1 >conftest.err
27729   rm -f conftest.er1
27730   cat conftest.err >&5
27731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732   (exit $ac_status); } &&
27733          { ac_try='test -z "$ac_c_werror_flag"
27734                          || test ! -s conftest.err'
27735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27736   (eval $ac_try) 2>&5
27737   ac_status=$?
27738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739   (exit $ac_status); }; } &&
27740          { ac_try='test -s conftest$ac_exeext'
27741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27742   (eval $ac_try) 2>&5
27743   ac_status=$?
27744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745   (exit $ac_status); }; }; then
27746   ac_cv_lib_krb_printf=yes
27747 else
27748   echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27750
27751 ac_cv_lib_krb_printf=no
27752 fi
27753 rm -f conftest.err conftest.$ac_objext \
27754       conftest$ac_exeext conftest.$ac_ext
27755 LIBS=$ac_check_lib_save_LIBS
27756 fi
27757 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
27758 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
27759 if test $ac_cv_lib_krb_printf = yes; then
27760   krb_lib=yes krb_libdir=
27761 fi
27762
27763        echo "$as_me:$LINENO: checking for krb_recvauth" >&5
27764 echo $ECHO_N "checking for krb_recvauth... $ECHO_C" >&6
27765 if test "${ac_cv_func_krb_recvauth+set}" = set; then
27766   echo $ECHO_N "(cached) $ECHO_C" >&6
27767 else
27768   cat >conftest.$ac_ext <<_ACEOF
27769 /* confdefs.h.  */
27770 _ACEOF
27771 cat confdefs.h >>conftest.$ac_ext
27772 cat >>conftest.$ac_ext <<_ACEOF
27773 /* end confdefs.h.  */
27774 /* Define krb_recvauth to an innocuous variant, in case <limits.h> declares krb_recvauth.
27775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27776 #define krb_recvauth innocuous_krb_recvauth
27777
27778 /* System header to define __stub macros and hopefully few prototypes,
27779     which can conflict with char krb_recvauth (); below.
27780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27781     <limits.h> exists even on freestanding compilers.  */
27782
27783 #ifdef __STDC__
27784 # include <limits.h>
27785 #else
27786 # include <assert.h>
27787 #endif
27788
27789 #undef krb_recvauth
27790
27791 /* Override any gcc2 internal prototype to avoid an error.  */
27792 #ifdef __cplusplus
27793 extern "C"
27794 {
27795 #endif
27796 /* We use char because int might match the return type of a gcc2
27797    builtin and then its argument prototype would still apply.  */
27798 char krb_recvauth ();
27799 /* The GNU C library defines this for functions which it implements
27800     to always fail with ENOSYS.  Some functions are actually named
27801     something starting with __ and the normal name is an alias.  */
27802 #if defined (__stub_krb_recvauth) || defined (__stub___krb_recvauth)
27803 choke me
27804 #else
27805 char (*f) () = krb_recvauth;
27806 #endif
27807 #ifdef __cplusplus
27808 }
27809 #endif
27810
27811 int
27812 main ()
27813 {
27814 return f != krb_recvauth;
27815   ;
27816   return 0;
27817 }
27818 _ACEOF
27819 rm -f conftest.$ac_objext conftest$ac_exeext
27820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27821   (eval $ac_link) 2>conftest.er1
27822   ac_status=$?
27823   grep -v '^ *+' conftest.er1 >conftest.err
27824   rm -f conftest.er1
27825   cat conftest.err >&5
27826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827   (exit $ac_status); } &&
27828          { ac_try='test -z "$ac_c_werror_flag"
27829                          || test ! -s conftest.err'
27830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27831   (eval $ac_try) 2>&5
27832   ac_status=$?
27833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834   (exit $ac_status); }; } &&
27835          { ac_try='test -s conftest$ac_exeext'
27836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27837   (eval $ac_try) 2>&5
27838   ac_status=$?
27839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840   (exit $ac_status); }; }; then
27841   ac_cv_func_krb_recvauth=yes
27842 else
27843   echo "$as_me: failed program was:" >&5
27844 sed 's/^/| /' conftest.$ac_ext >&5
27845
27846 ac_cv_func_krb_recvauth=no
27847 fi
27848 rm -f conftest.err conftest.$ac_objext \
27849       conftest$ac_exeext conftest.$ac_ext
27850 fi
27851 echo "$as_me:$LINENO: result: $ac_cv_func_krb_recvauth" >&5
27852 echo "${ECHO_T}$ac_cv_func_krb_recvauth" >&6
27853 if test $ac_cv_func_krb_recvauth = yes; then
27854   krb_lib=yes krb_libdir=
27855 fi
27856
27857   fi
27858   if test -n "$krb_lib"; then
27859
27860 cat >>confdefs.h <<\_ACEOF
27861 #define HAVE_KERBEROS 1
27862 _ACEOF
27863
27864     cvs_client_objects="$cvs_client_objects kerberos4-client.o"
27865     test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
27866     # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
27867     # -ldes in the command line.  Don't do it permanently so that we honor
27868     # the user's setting for LDFLAGS
27869     hold_ldflags=$LDFLAGS
27870     test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
27871     echo "$as_me:$LINENO: checking for printf in -ldes" >&5
27872 echo $ECHO_N "checking for printf in -ldes... $ECHO_C" >&6
27873 if test "${ac_cv_lib_des_printf+set}" = set; then
27874   echo $ECHO_N "(cached) $ECHO_C" >&6
27875 else
27876   ac_check_lib_save_LIBS=$LIBS
27877 LIBS="-ldes  $LIBS"
27878 cat >conftest.$ac_ext <<_ACEOF
27879 /* confdefs.h.  */
27880 _ACEOF
27881 cat confdefs.h >>conftest.$ac_ext
27882 cat >>conftest.$ac_ext <<_ACEOF
27883 /* end confdefs.h.  */
27884
27885 /* Override any gcc2 internal prototype to avoid an error.  */
27886 #ifdef __cplusplus
27887 extern "C"
27888 #endif
27889 /* We use char because int might match the return type of a gcc2
27890    builtin and then its argument prototype would still apply.  */
27891 char printf ();
27892 int
27893 main ()
27894 {
27895 printf ();
27896   ;
27897   return 0;
27898 }
27899 _ACEOF
27900 rm -f conftest.$ac_objext conftest$ac_exeext
27901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27902   (eval $ac_link) 2>conftest.er1
27903   ac_status=$?
27904   grep -v '^ *+' conftest.er1 >conftest.err
27905   rm -f conftest.er1
27906   cat conftest.err >&5
27907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908   (exit $ac_status); } &&
27909          { ac_try='test -z "$ac_c_werror_flag"
27910                          || test ! -s conftest.err'
27911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912   (eval $ac_try) 2>&5
27913   ac_status=$?
27914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915   (exit $ac_status); }; } &&
27916          { ac_try='test -s conftest$ac_exeext'
27917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27918   (eval $ac_try) 2>&5
27919   ac_status=$?
27920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921   (exit $ac_status); }; }; then
27922   ac_cv_lib_des_printf=yes
27923 else
27924   echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27926
27927 ac_cv_lib_des_printf=no
27928 fi
27929 rm -f conftest.err conftest.$ac_objext \
27930       conftest$ac_exeext conftest.$ac_ext
27931 LIBS=$ac_check_lib_save_LIBS
27932 fi
27933 echo "$as_me:$LINENO: result: $ac_cv_lib_des_printf" >&5
27934 echo "${ECHO_T}$ac_cv_lib_des_printf" >&6
27935 if test $ac_cv_lib_des_printf = yes; then
27936   LIBS="${LIBS} -ldes"
27937 fi
27938
27939
27940 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb" >&5
27941 echo $ECHO_N "checking for krb_recvauth in -lkrb... $ECHO_C" >&6
27942 if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then
27943   echo $ECHO_N "(cached) $ECHO_C" >&6
27944 else
27945   ac_check_lib_save_LIBS=$LIBS
27946 LIBS="-lkrb  $LIBS"
27947 cat >conftest.$ac_ext <<_ACEOF
27948 /* confdefs.h.  */
27949 _ACEOF
27950 cat confdefs.h >>conftest.$ac_ext
27951 cat >>conftest.$ac_ext <<_ACEOF
27952 /* end confdefs.h.  */
27953
27954 /* Override any gcc2 internal prototype to avoid an error.  */
27955 #ifdef __cplusplus
27956 extern "C"
27957 #endif
27958 /* We use char because int might match the return type of a gcc2
27959    builtin and then its argument prototype would still apply.  */
27960 char krb_recvauth ();
27961 int
27962 main ()
27963 {
27964 krb_recvauth ();
27965   ;
27966   return 0;
27967 }
27968 _ACEOF
27969 rm -f conftest.$ac_objext conftest$ac_exeext
27970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27971   (eval $ac_link) 2>conftest.er1
27972   ac_status=$?
27973   grep -v '^ *+' conftest.er1 >conftest.err
27974   rm -f conftest.er1
27975   cat conftest.err >&5
27976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977   (exit $ac_status); } &&
27978          { ac_try='test -z "$ac_c_werror_flag"
27979                          || test ! -s conftest.err'
27980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27981   (eval $ac_try) 2>&5
27982   ac_status=$?
27983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984   (exit $ac_status); }; } &&
27985          { ac_try='test -s conftest$ac_exeext'
27986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987   (eval $ac_try) 2>&5
27988   ac_status=$?
27989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990   (exit $ac_status); }; }; then
27991   ac_cv_lib_krb_krb_recvauth=yes
27992 else
27993   echo "$as_me: failed program was:" >&5
27994 sed 's/^/| /' conftest.$ac_ext >&5
27995
27996 ac_cv_lib_krb_krb_recvauth=no
27997 fi
27998 rm -f conftest.err conftest.$ac_objext \
27999       conftest$ac_exeext conftest.$ac_ext
28000 LIBS=$ac_check_lib_save_LIBS
28001 fi
28002 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_recvauth" >&5
28003 echo "${ECHO_T}$ac_cv_lib_krb_krb_recvauth" >&6
28004 if test $ac_cv_lib_krb_krb_recvauth = yes; then
28005   cat >>confdefs.h <<_ACEOF
28006 #define HAVE_LIBKRB 1
28007 _ACEOF
28008
28009   LIBS="-lkrb $LIBS"
28010
28011 fi
28012
28013
28014 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb4" >&5
28015 echo $ECHO_N "checking for krb_recvauth in -lkrb4... $ECHO_C" >&6
28016 if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then
28017   echo $ECHO_N "(cached) $ECHO_C" >&6
28018 else
28019   ac_check_lib_save_LIBS=$LIBS
28020 LIBS="-lkrb4  $LIBS"
28021 cat >conftest.$ac_ext <<_ACEOF
28022 /* confdefs.h.  */
28023 _ACEOF
28024 cat confdefs.h >>conftest.$ac_ext
28025 cat >>conftest.$ac_ext <<_ACEOF
28026 /* end confdefs.h.  */
28027
28028 /* Override any gcc2 internal prototype to avoid an error.  */
28029 #ifdef __cplusplus
28030 extern "C"
28031 #endif
28032 /* We use char because int might match the return type of a gcc2
28033    builtin and then its argument prototype would still apply.  */
28034 char krb_recvauth ();
28035 int
28036 main ()
28037 {
28038 krb_recvauth ();
28039   ;
28040   return 0;
28041 }
28042 _ACEOF
28043 rm -f conftest.$ac_objext conftest$ac_exeext
28044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28045   (eval $ac_link) 2>conftest.er1
28046   ac_status=$?
28047   grep -v '^ *+' conftest.er1 >conftest.err
28048   rm -f conftest.er1
28049   cat conftest.err >&5
28050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051   (exit $ac_status); } &&
28052          { ac_try='test -z "$ac_c_werror_flag"
28053                          || test ! -s conftest.err'
28054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055   (eval $ac_try) 2>&5
28056   ac_status=$?
28057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058   (exit $ac_status); }; } &&
28059          { ac_try='test -s conftest$ac_exeext'
28060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061   (eval $ac_try) 2>&5
28062   ac_status=$?
28063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064   (exit $ac_status); }; }; then
28065   ac_cv_lib_krb4_krb_recvauth=yes
28066 else
28067   echo "$as_me: failed program was:" >&5
28068 sed 's/^/| /' conftest.$ac_ext >&5
28069
28070 ac_cv_lib_krb4_krb_recvauth=no
28071 fi
28072 rm -f conftest.err conftest.$ac_objext \
28073       conftest$ac_exeext conftest.$ac_ext
28074 LIBS=$ac_check_lib_save_LIBS
28075 fi
28076 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_recvauth" >&5
28077 echo "${ECHO_T}$ac_cv_lib_krb4_krb_recvauth" >&6
28078 if test $ac_cv_lib_krb4_krb_recvauth = yes; then
28079   cat >>confdefs.h <<_ACEOF
28080 #define HAVE_LIBKRB4 1
28081 _ACEOF
28082
28083   LIBS="-lkrb4 $LIBS"
28084
28085 fi
28086
28087     LDFLAGS=$hold_ldflags
28088     if test -n "$krb_incdir"; then
28089       CPPFLAGS="$CPPFLAGS -I$krb_incdir"
28090     fi
28091   fi
28092 fi
28093
28094 for ac_func in krb_get_err_text
28095 do
28096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28097 echo "$as_me:$LINENO: checking for $ac_func" >&5
28098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28099 if eval "test \"\${$as_ac_var+set}\" = set"; then
28100   echo $ECHO_N "(cached) $ECHO_C" >&6
28101 else
28102   cat >conftest.$ac_ext <<_ACEOF
28103 /* confdefs.h.  */
28104 _ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h.  */
28108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28110 #define $ac_func innocuous_$ac_func
28111
28112 /* System header to define __stub macros and hopefully few prototypes,
28113     which can conflict with char $ac_func (); below.
28114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28115     <limits.h> exists even on freestanding compilers.  */
28116
28117 #ifdef __STDC__
28118 # include <limits.h>
28119 #else
28120 # include <assert.h>
28121 #endif
28122
28123 #undef $ac_func
28124
28125 /* Override any gcc2 internal prototype to avoid an error.  */
28126 #ifdef __cplusplus
28127 extern "C"
28128 {
28129 #endif
28130 /* We use char because int might match the return type of a gcc2
28131    builtin and then its argument prototype would still apply.  */
28132 char $ac_func ();
28133 /* The GNU C library defines this for functions which it implements
28134     to always fail with ENOSYS.  Some functions are actually named
28135     something starting with __ and the normal name is an alias.  */
28136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28137 choke me
28138 #else
28139 char (*f) () = $ac_func;
28140 #endif
28141 #ifdef __cplusplus
28142 }
28143 #endif
28144
28145 int
28146 main ()
28147 {
28148 return f != $ac_func;
28149   ;
28150   return 0;
28151 }
28152 _ACEOF
28153 rm -f conftest.$ac_objext conftest$ac_exeext
28154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28155   (eval $ac_link) 2>conftest.er1
28156   ac_status=$?
28157   grep -v '^ *+' conftest.er1 >conftest.err
28158   rm -f conftest.er1
28159   cat conftest.err >&5
28160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161   (exit $ac_status); } &&
28162          { ac_try='test -z "$ac_c_werror_flag"
28163                          || test ! -s conftest.err'
28164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28165   (eval $ac_try) 2>&5
28166   ac_status=$?
28167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168   (exit $ac_status); }; } &&
28169          { ac_try='test -s conftest$ac_exeext'
28170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28171   (eval $ac_try) 2>&5
28172   ac_status=$?
28173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174   (exit $ac_status); }; }; then
28175   eval "$as_ac_var=yes"
28176 else
28177   echo "$as_me: failed program was:" >&5
28178 sed 's/^/| /' conftest.$ac_ext >&5
28179
28180 eval "$as_ac_var=no"
28181 fi
28182 rm -f conftest.err conftest.$ac_objext \
28183       conftest$ac_exeext conftest.$ac_ext
28184 fi
28185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28187 if test `eval echo '${'$as_ac_var'}'` = yes; then
28188   cat >>confdefs.h <<_ACEOF
28189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28190 _ACEOF
28191
28192 fi
28193 done
28194
28195
28196
28197
28198 #
28199 # Use --with-gssapi[=DIR] to enable GSSAPI support.
28200 #
28201 # defaults to enabled with DIR in default list below
28202 #
28203 # Search for /SUNHEA/ and read the comments about this default below.
28204 #
28205
28206 # Check whether --with-gssapi or --without-gssapi was given.
28207 if test "${with_gssapi+set}" = set; then
28208   withval="$with_gssapi"
28209
28210 else
28211   with_gssapi=yes
28212 fi;
28213 #
28214 # Try to locate a GSSAPI installation if no location was specified, assuming
28215 # GSSAPI was enabled (the default).
28216 #
28217 if test -n "$acx_gssapi_cv_gssapi"; then
28218   # Granted, this is a slightly ugly way to print this info, but the
28219   # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
28220   # AC_CACHE_CHECK worse
28221   echo "$as_me:$LINENO: checking for GSSAPI" >&5
28222 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
28223 else :; fi
28224 if test "${acx_gssapi_cv_gssapi+set}" = set; then
28225   echo $ECHO_N "(cached) $ECHO_C" >&6
28226 else
28227
28228 if test x$with_gssapi = xyes; then
28229   # --with but no location specified
28230   # assume a gssapi.h or gssapi/gssapi.h locates our install.
28231   #
28232   # This isn't always strictly true.  For instance Solaris 7's SUNHEA (header)
28233   # package installs gssapi.h whether or not the necessary libraries are
28234   # installed.  I'm still not sure whether to consider this a bug.  The long
28235   # way around is to not consider GSSPAI installed unless gss_import_name is
28236   # found, but that brings up a lot of other hassles, like continuing to let
28237   # gcc & ld generate the error messages when the user uses --with-gssapi=dir
28238   # as a debugging aid.  The short way around is to disable GSSAPI by default,
28239   # but I think Sun users have been faced with this for awhile and I haven't
28240   # heard many complaints.
28241   acx_gssapi_save_CPPFLAGS=$CPPFLAGS
28242   for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
28243     if test x$acx_gssapi_cv_gssapi = xno; then
28244       break
28245     fi
28246     if test x$acx_gssapi_cv_gssapi = xyes; then
28247       echo "$as_me:$LINENO: checking for GSSAPI" >&5
28248 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
28249       echo "$as_me:$LINENO: result: " >&5
28250 echo "${ECHO_T}" >&6
28251     else
28252       CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
28253       echo "$as_me:$LINENO: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
28254 echo $ECHO_N "checking for GSSAPI in $acx_gssapi_cv_gssapi... $ECHO_C" >&6
28255       echo "$as_me:$LINENO: result: " >&5
28256 echo "${ECHO_T}" >&6
28257     fi
28258     unset ac_cv_header_gssapi_h
28259     unset ac_cv_header_gssapi_gssapi_h
28260     unset ac_cv_header_krb5_h
28261
28262
28263
28264 for ac_header in gssapi.h gssapi/gssapi.h krb5.h
28265 do
28266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28268   echo "$as_me:$LINENO: checking for $ac_header" >&5
28269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28271   echo $ECHO_N "(cached) $ECHO_C" >&6
28272 fi
28273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28275 else
28276   # Is the header compilable?
28277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28279 cat >conftest.$ac_ext <<_ACEOF
28280 /* confdefs.h.  */
28281 _ACEOF
28282 cat confdefs.h >>conftest.$ac_ext
28283 cat >>conftest.$ac_ext <<_ACEOF
28284 /* end confdefs.h.  */
28285 $ac_includes_default
28286 #include <$ac_header>
28287 _ACEOF
28288 rm -f conftest.$ac_objext
28289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28290   (eval $ac_compile) 2>conftest.er1
28291   ac_status=$?
28292   grep -v '^ *+' conftest.er1 >conftest.err
28293   rm -f conftest.er1
28294   cat conftest.err >&5
28295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296   (exit $ac_status); } &&
28297          { ac_try='test -z "$ac_c_werror_flag"
28298                          || test ! -s conftest.err'
28299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28300   (eval $ac_try) 2>&5
28301   ac_status=$?
28302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303   (exit $ac_status); }; } &&
28304          { ac_try='test -s conftest.$ac_objext'
28305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306   (eval $ac_try) 2>&5
28307   ac_status=$?
28308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309   (exit $ac_status); }; }; then
28310   ac_header_compiler=yes
28311 else
28312   echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28314
28315 ac_header_compiler=no
28316 fi
28317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28319 echo "${ECHO_T}$ac_header_compiler" >&6
28320
28321 # Is the header present?
28322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28324 cat >conftest.$ac_ext <<_ACEOF
28325 /* confdefs.h.  */
28326 _ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h.  */
28330 #include <$ac_header>
28331 _ACEOF
28332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28334   ac_status=$?
28335   grep -v '^ *+' conftest.er1 >conftest.err
28336   rm -f conftest.er1
28337   cat conftest.err >&5
28338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339   (exit $ac_status); } >/dev/null; then
28340   if test -s conftest.err; then
28341     ac_cpp_err=$ac_c_preproc_warn_flag
28342     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28343   else
28344     ac_cpp_err=
28345   fi
28346 else
28347   ac_cpp_err=yes
28348 fi
28349 if test -z "$ac_cpp_err"; then
28350   ac_header_preproc=yes
28351 else
28352   echo "$as_me: failed program was:" >&5
28353 sed 's/^/| /' conftest.$ac_ext >&5
28354
28355   ac_header_preproc=no
28356 fi
28357 rm -f conftest.err conftest.$ac_ext
28358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28359 echo "${ECHO_T}$ac_header_preproc" >&6
28360
28361 # So?  What about this header?
28362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28363   yes:no: )
28364     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28368     ac_header_preproc=yes
28369     ;;
28370   no:yes:* )
28371     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28373     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28374 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28375     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28377     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28378 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28381     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28383     (
28384       cat <<\_ASBOX
28385 ## ------------------------------ ##
28386 ## Report this to bug-cvs@gnu.org ##
28387 ## ------------------------------ ##
28388 _ASBOX
28389     ) |
28390       sed "s/^/$as_me: WARNING:     /" >&2
28391     ;;
28392 esac
28393 echo "$as_me:$LINENO: checking for $ac_header" >&5
28394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28396   echo $ECHO_N "(cached) $ECHO_C" >&6
28397 else
28398   eval "$as_ac_Header=\$ac_header_preproc"
28399 fi
28400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28402
28403 fi
28404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28405   cat >>confdefs.h <<_ACEOF
28406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28407 _ACEOF
28408
28409 fi
28410
28411 done
28412
28413     if (test "$ac_cv_header_gssapi_h" = yes ||
28414           test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
28415         test "$ac_cv_header_krb5_h" = yes; then
28416       break
28417     fi
28418   done
28419   CPPFLAGS=$acx_gssapi_save_CPPFLAGS
28420 else
28421   acx_gssapi_cv_gssapi=$with_gssapi
28422 fi
28423 echo "$as_me:$LINENO: checking for GSSAPI" >&5
28424 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
28425
28426 fi
28427 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gssapi" >&5
28428 echo "${ECHO_T}$acx_gssapi_cv_gssapi" >&6
28429
28430 #
28431 # Set up GSSAPI includes for later use.  We don't bother to check for
28432 # $acx_gssapi_cv_gssapi=no here since that will be caught later.
28433 #
28434 if test x$acx_gssapi_cv_gssapi = xyes; then
28435   # no special includes necessary
28436   GSSAPI_INCLUDES=""
28437 else
28438   # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
28439   GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
28440 fi
28441
28442 #
28443 # Get the rest of the information CVS needs to compile with GSSAPI support
28444 #
28445 if test x$acx_gssapi_cv_gssapi != xno; then
28446   # define HAVE_GSSAPI and set up the includes
28447
28448 cat >>confdefs.h <<\_ACEOF
28449 #define HAVE_GSSAPI
28450 _ACEOF
28451
28452   CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
28453
28454   cvs_client_objects="$cvs_client_objects gssapi-client.o"
28455
28456   # locate any other headers
28457
28458
28459
28460
28461 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
28462 do
28463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28465   echo "$as_me:$LINENO: checking for $ac_header" >&5
28466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28468   echo $ECHO_N "(cached) $ECHO_C" >&6
28469 fi
28470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28472 else
28473   # Is the header compilable?
28474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28476 cat >conftest.$ac_ext <<_ACEOF
28477 /* confdefs.h.  */
28478 _ACEOF
28479 cat confdefs.h >>conftest.$ac_ext
28480 cat >>conftest.$ac_ext <<_ACEOF
28481 /* end confdefs.h.  */
28482 $ac_includes_default
28483 #include <$ac_header>
28484 _ACEOF
28485 rm -f conftest.$ac_objext
28486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28487   (eval $ac_compile) 2>conftest.er1
28488   ac_status=$?
28489   grep -v '^ *+' conftest.er1 >conftest.err
28490   rm -f conftest.er1
28491   cat conftest.err >&5
28492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493   (exit $ac_status); } &&
28494          { ac_try='test -z "$ac_c_werror_flag"
28495                          || test ! -s conftest.err'
28496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28497   (eval $ac_try) 2>&5
28498   ac_status=$?
28499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500   (exit $ac_status); }; } &&
28501          { ac_try='test -s conftest.$ac_objext'
28502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28503   (eval $ac_try) 2>&5
28504   ac_status=$?
28505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506   (exit $ac_status); }; }; then
28507   ac_header_compiler=yes
28508 else
28509   echo "$as_me: failed program was:" >&5
28510 sed 's/^/| /' conftest.$ac_ext >&5
28511
28512 ac_header_compiler=no
28513 fi
28514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28516 echo "${ECHO_T}$ac_header_compiler" >&6
28517
28518 # Is the header present?
28519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28521 cat >conftest.$ac_ext <<_ACEOF
28522 /* confdefs.h.  */
28523 _ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h.  */
28527 #include <$ac_header>
28528 _ACEOF
28529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28530   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28531   ac_status=$?
28532   grep -v '^ *+' conftest.er1 >conftest.err
28533   rm -f conftest.er1
28534   cat conftest.err >&5
28535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536   (exit $ac_status); } >/dev/null; then
28537   if test -s conftest.err; then
28538     ac_cpp_err=$ac_c_preproc_warn_flag
28539     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28540   else
28541     ac_cpp_err=
28542   fi
28543 else
28544   ac_cpp_err=yes
28545 fi
28546 if test -z "$ac_cpp_err"; then
28547   ac_header_preproc=yes
28548 else
28549   echo "$as_me: failed program was:" >&5
28550 sed 's/^/| /' conftest.$ac_ext >&5
28551
28552   ac_header_preproc=no
28553 fi
28554 rm -f conftest.err conftest.$ac_ext
28555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28556 echo "${ECHO_T}$ac_header_preproc" >&6
28557
28558 # So?  What about this header?
28559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28560   yes:no: )
28561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28565     ac_header_preproc=yes
28566     ;;
28567   no:yes:* )
28568     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28570     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28571 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28572     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28574     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28575 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28578     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28580     (
28581       cat <<\_ASBOX
28582 ## ------------------------------ ##
28583 ## Report this to bug-cvs@gnu.org ##
28584 ## ------------------------------ ##
28585 _ASBOX
28586     ) |
28587       sed "s/^/$as_me: WARNING:     /" >&2
28588     ;;
28589 esac
28590 echo "$as_me:$LINENO: checking for $ac_header" >&5
28591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28593   echo $ECHO_N "(cached) $ECHO_C" >&6
28594 else
28595   eval "$as_ac_Header=\$ac_header_preproc"
28596 fi
28597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28599
28600 fi
28601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28602   cat >>confdefs.h <<_ACEOF
28603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28604 _ACEOF
28605
28606 fi
28607
28608 done
28609
28610   # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
28611   echo "$as_me:$LINENO: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
28612 echo $ECHO_N "checking for GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6
28613 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then
28614   echo $ECHO_N "(cached) $ECHO_C" >&6
28615 else
28616
28617     acx_gssapi_cv_gss_c_nt_hostbased_service=no
28618     if test "$ac_cv_header_gssapi_h" = "yes"; then
28619       cat >conftest.$ac_ext <<_ACEOF
28620 /* confdefs.h.  */
28621 _ACEOF
28622 cat confdefs.h >>conftest.$ac_ext
28623 cat >>conftest.$ac_ext <<_ACEOF
28624 /* end confdefs.h.  */
28625 #include <gssapi.h>
28626
28627 _ACEOF
28628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28629   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
28630   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
28631 else
28632
28633         cat >conftest.$ac_ext <<_ACEOF
28634 /* confdefs.h.  */
28635 _ACEOF
28636 cat confdefs.h >>conftest.$ac_ext
28637 cat >>conftest.$ac_ext <<_ACEOF
28638 /* end confdefs.h.  */
28639 #include <gssapi.h>
28640
28641 _ACEOF
28642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28643   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
28644   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
28645 fi
28646 rm -f conftest*
28647
28648
28649 fi
28650 rm -f conftest*
28651
28652     fi
28653     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
28654        test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
28655       cat >conftest.$ac_ext <<_ACEOF
28656 /* confdefs.h.  */
28657 _ACEOF
28658 cat confdefs.h >>conftest.$ac_ext
28659 cat >>conftest.$ac_ext <<_ACEOF
28660 /* end confdefs.h.  */
28661 #include <gssapi/gssapi.h>
28662
28663 _ACEOF
28664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28665   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
28666   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
28667 else
28668
28669         cat >conftest.$ac_ext <<_ACEOF
28670 /* confdefs.h.  */
28671 _ACEOF
28672 cat confdefs.h >>conftest.$ac_ext
28673 cat >>conftest.$ac_ext <<_ACEOF
28674 /* end confdefs.h.  */
28675 #include <gssapi/gssapi.h>
28676
28677 _ACEOF
28678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28679   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
28680   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
28681 fi
28682 rm -f conftest*
28683
28684
28685 fi
28686 rm -f conftest*
28687
28688     else :; fi
28689     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
28690        test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
28691       cat >conftest.$ac_ext <<_ACEOF
28692 /* confdefs.h.  */
28693 _ACEOF
28694 cat confdefs.h >>conftest.$ac_ext
28695 cat >>conftest.$ac_ext <<_ACEOF
28696 /* end confdefs.h.  */
28697 #include <gssapi/gssapi_generic.h>
28698
28699 _ACEOF
28700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28701   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
28702   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
28703 else
28704
28705         cat >conftest.$ac_ext <<_ACEOF
28706 /* confdefs.h.  */
28707 _ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h.  */
28711 #include <gssapi/gssapi_generic.h>
28712
28713 _ACEOF
28714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28715   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
28716   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
28717 fi
28718 rm -f conftest*
28719
28720
28721 fi
28722 rm -f conftest*
28723
28724     else :; fi
28725
28726 fi
28727 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
28728 echo "${ECHO_T}$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6
28729   if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
28730      test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
28731     # don't define for yes since that means it already means something and
28732     # don't define for no since we'd rather the compiler catch the error
28733     # It's debatable whether we'd prefer that the compiler catch the error
28734     #  - it seems our estranged developer is more likely to be familiar with
28735     #    the intricacies of the compiler than with those of autoconf, but by
28736     #    the same token, maybe we'd rather alert them to the fact that most
28737     #    of the support they need to fix the problem is installed if they can
28738     #    simply locate the appropriate symbol.
28739
28740 cat >>confdefs.h <<_ACEOF
28741 #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
28742 _ACEOF
28743
28744   else :; fi
28745
28746   # Expect the libs to be installed parallel to the headers
28747   #
28748   # We could try once with and once without, but I'm not sure it's worth the
28749   # trouble.
28750   if test x$acx_gssapi_cv_gssapi != xyes; then
28751     if test -z "$LIBS"; then
28752       LIBS="-L$acx_gssapi_cv_gssapi/lib"
28753     else
28754       LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
28755     fi
28756   else :; fi
28757
28758       #
28759   # Some of the order below is particular due to library dependencies
28760   #
28761
28762   #
28763   # des                 Heimdal K 0.3d, but Heimdal seems to be set up such
28764   #                     that it could have been installed from elsewhere.
28765   #
28766   echo "$as_me:$LINENO: checking for library containing des_set_odd_parity" >&5
28767 echo $ECHO_N "checking for library containing des_set_odd_parity... $ECHO_C" >&6
28768 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
28769   echo $ECHO_N "(cached) $ECHO_C" >&6
28770 else
28771   ac_func_search_save_LIBS=$LIBS
28772 ac_cv_search_des_set_odd_parity=no
28773 cat >conftest.$ac_ext <<_ACEOF
28774 /* confdefs.h.  */
28775 _ACEOF
28776 cat confdefs.h >>conftest.$ac_ext
28777 cat >>conftest.$ac_ext <<_ACEOF
28778 /* end confdefs.h.  */
28779
28780 /* Override any gcc2 internal prototype to avoid an error.  */
28781 #ifdef __cplusplus
28782 extern "C"
28783 #endif
28784 /* We use char because int might match the return type of a gcc2
28785    builtin and then its argument prototype would still apply.  */
28786 char des_set_odd_parity ();
28787 int
28788 main ()
28789 {
28790 des_set_odd_parity ();
28791   ;
28792   return 0;
28793 }
28794 _ACEOF
28795 rm -f conftest.$ac_objext conftest$ac_exeext
28796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28797   (eval $ac_link) 2>conftest.er1
28798   ac_status=$?
28799   grep -v '^ *+' conftest.er1 >conftest.err
28800   rm -f conftest.er1
28801   cat conftest.err >&5
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); } &&
28804          { ac_try='test -z "$ac_c_werror_flag"
28805                          || test ! -s conftest.err'
28806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28807   (eval $ac_try) 2>&5
28808   ac_status=$?
28809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810   (exit $ac_status); }; } &&
28811          { ac_try='test -s conftest$ac_exeext'
28812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28813   (eval $ac_try) 2>&5
28814   ac_status=$?
28815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816   (exit $ac_status); }; }; then
28817   ac_cv_search_des_set_odd_parity="none required"
28818 else
28819   echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28821
28822 fi
28823 rm -f conftest.err conftest.$ac_objext \
28824       conftest$ac_exeext conftest.$ac_ext
28825 if test "$ac_cv_search_des_set_odd_parity" = no; then
28826   for ac_lib in des; do
28827     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28828     cat >conftest.$ac_ext <<_ACEOF
28829 /* confdefs.h.  */
28830 _ACEOF
28831 cat confdefs.h >>conftest.$ac_ext
28832 cat >>conftest.$ac_ext <<_ACEOF
28833 /* end confdefs.h.  */
28834
28835 /* Override any gcc2 internal prototype to avoid an error.  */
28836 #ifdef __cplusplus
28837 extern "C"
28838 #endif
28839 /* We use char because int might match the return type of a gcc2
28840    builtin and then its argument prototype would still apply.  */
28841 char des_set_odd_parity ();
28842 int
28843 main ()
28844 {
28845 des_set_odd_parity ();
28846   ;
28847   return 0;
28848 }
28849 _ACEOF
28850 rm -f conftest.$ac_objext conftest$ac_exeext
28851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28852   (eval $ac_link) 2>conftest.er1
28853   ac_status=$?
28854   grep -v '^ *+' conftest.er1 >conftest.err
28855   rm -f conftest.er1
28856   cat conftest.err >&5
28857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858   (exit $ac_status); } &&
28859          { ac_try='test -z "$ac_c_werror_flag"
28860                          || test ! -s conftest.err'
28861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28862   (eval $ac_try) 2>&5
28863   ac_status=$?
28864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865   (exit $ac_status); }; } &&
28866          { ac_try='test -s conftest$ac_exeext'
28867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28868   (eval $ac_try) 2>&5
28869   ac_status=$?
28870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871   (exit $ac_status); }; }; then
28872   ac_cv_search_des_set_odd_parity="-l$ac_lib"
28873 break
28874 else
28875   echo "$as_me: failed program was:" >&5
28876 sed 's/^/| /' conftest.$ac_ext >&5
28877
28878 fi
28879 rm -f conftest.err conftest.$ac_objext \
28880       conftest$ac_exeext conftest.$ac_ext
28881   done
28882 fi
28883 LIBS=$ac_func_search_save_LIBS
28884 fi
28885 echo "$as_me:$LINENO: result: $ac_cv_search_des_set_odd_parity" >&5
28886 echo "${ECHO_T}$ac_cv_search_des_set_odd_parity" >&6
28887 if test "$ac_cv_search_des_set_odd_parity" != no; then
28888   test "$ac_cv_search_des_set_odd_parity" = "none required" || LIBS="$ac_cv_search_des_set_odd_parity $LIBS"
28889
28890 fi
28891
28892
28893   #
28894   # com_err             Heimdal K 0.3d
28895   #
28896   # com_err             MIT K5 v1.2.2-beta1
28897   #
28898   echo "$as_me:$LINENO: checking for library containing com_err" >&5
28899 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
28900 if test "${ac_cv_search_com_err+set}" = set; then
28901   echo $ECHO_N "(cached) $ECHO_C" >&6
28902 else
28903   ac_func_search_save_LIBS=$LIBS
28904 ac_cv_search_com_err=no
28905 cat >conftest.$ac_ext <<_ACEOF
28906 /* confdefs.h.  */
28907 _ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h.  */
28911
28912 /* Override any gcc2 internal prototype to avoid an error.  */
28913 #ifdef __cplusplus
28914 extern "C"
28915 #endif
28916 /* We use char because int might match the return type of a gcc2
28917    builtin and then its argument prototype would still apply.  */
28918 char com_err ();
28919 int
28920 main ()
28921 {
28922 com_err ();
28923   ;
28924   return 0;
28925 }
28926 _ACEOF
28927 rm -f conftest.$ac_objext conftest$ac_exeext
28928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28929   (eval $ac_link) 2>conftest.er1
28930   ac_status=$?
28931   grep -v '^ *+' conftest.er1 >conftest.err
28932   rm -f conftest.er1
28933   cat conftest.err >&5
28934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935   (exit $ac_status); } &&
28936          { ac_try='test -z "$ac_c_werror_flag"
28937                          || test ! -s conftest.err'
28938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28939   (eval $ac_try) 2>&5
28940   ac_status=$?
28941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942   (exit $ac_status); }; } &&
28943          { ac_try='test -s conftest$ac_exeext'
28944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28945   (eval $ac_try) 2>&5
28946   ac_status=$?
28947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948   (exit $ac_status); }; }; then
28949   ac_cv_search_com_err="none required"
28950 else
28951   echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28953
28954 fi
28955 rm -f conftest.err conftest.$ac_objext \
28956       conftest$ac_exeext conftest.$ac_ext
28957 if test "$ac_cv_search_com_err" = no; then
28958   for ac_lib in com_err; do
28959     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28960     cat >conftest.$ac_ext <<_ACEOF
28961 /* confdefs.h.  */
28962 _ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h.  */
28966
28967 /* Override any gcc2 internal prototype to avoid an error.  */
28968 #ifdef __cplusplus
28969 extern "C"
28970 #endif
28971 /* We use char because int might match the return type of a gcc2
28972    builtin and then its argument prototype would still apply.  */
28973 char com_err ();
28974 int
28975 main ()
28976 {
28977 com_err ();
28978   ;
28979   return 0;
28980 }
28981 _ACEOF
28982 rm -f conftest.$ac_objext conftest$ac_exeext
28983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28984   (eval $ac_link) 2>conftest.er1
28985   ac_status=$?
28986   grep -v '^ *+' conftest.er1 >conftest.err
28987   rm -f conftest.er1
28988   cat conftest.err >&5
28989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990   (exit $ac_status); } &&
28991          { ac_try='test -z "$ac_c_werror_flag"
28992                          || test ! -s conftest.err'
28993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28994   (eval $ac_try) 2>&5
28995   ac_status=$?
28996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997   (exit $ac_status); }; } &&
28998          { ac_try='test -s conftest$ac_exeext'
28999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29000   (eval $ac_try) 2>&5
29001   ac_status=$?
29002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003   (exit $ac_status); }; }; then
29004   ac_cv_search_com_err="-l$ac_lib"
29005 break
29006 else
29007   echo "$as_me: failed program was:" >&5
29008 sed 's/^/| /' conftest.$ac_ext >&5
29009
29010 fi
29011 rm -f conftest.err conftest.$ac_objext \
29012       conftest$ac_exeext conftest.$ac_ext
29013   done
29014 fi
29015 LIBS=$ac_func_search_save_LIBS
29016 fi
29017 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
29018 echo "${ECHO_T}$ac_cv_search_com_err" >&6
29019 if test "$ac_cv_search_com_err" != no; then
29020   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
29021
29022 fi
29023
29024
29025   #
29026   # asn1                Heimdal K 0.3d          -lcom_err
29027   #
29028   echo "$as_me:$LINENO: checking for library containing initialize_asn1_error_table_r" >&5
29029 echo $ECHO_N "checking for library containing initialize_asn1_error_table_r... $ECHO_C" >&6
29030 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
29031   echo $ECHO_N "(cached) $ECHO_C" >&6
29032 else
29033   ac_func_search_save_LIBS=$LIBS
29034 ac_cv_search_initialize_asn1_error_table_r=no
29035 cat >conftest.$ac_ext <<_ACEOF
29036 /* confdefs.h.  */
29037 _ACEOF
29038 cat confdefs.h >>conftest.$ac_ext
29039 cat >>conftest.$ac_ext <<_ACEOF
29040 /* end confdefs.h.  */
29041
29042 /* Override any gcc2 internal prototype to avoid an error.  */
29043 #ifdef __cplusplus
29044 extern "C"
29045 #endif
29046 /* We use char because int might match the return type of a gcc2
29047    builtin and then its argument prototype would still apply.  */
29048 char initialize_asn1_error_table_r ();
29049 int
29050 main ()
29051 {
29052 initialize_asn1_error_table_r ();
29053   ;
29054   return 0;
29055 }
29056 _ACEOF
29057 rm -f conftest.$ac_objext conftest$ac_exeext
29058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29059   (eval $ac_link) 2>conftest.er1
29060   ac_status=$?
29061   grep -v '^ *+' conftest.er1 >conftest.err
29062   rm -f conftest.er1
29063   cat conftest.err >&5
29064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065   (exit $ac_status); } &&
29066          { ac_try='test -z "$ac_c_werror_flag"
29067                          || test ! -s conftest.err'
29068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29069   (eval $ac_try) 2>&5
29070   ac_status=$?
29071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072   (exit $ac_status); }; } &&
29073          { ac_try='test -s conftest$ac_exeext'
29074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075   (eval $ac_try) 2>&5
29076   ac_status=$?
29077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078   (exit $ac_status); }; }; then
29079   ac_cv_search_initialize_asn1_error_table_r="none required"
29080 else
29081   echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29083
29084 fi
29085 rm -f conftest.err conftest.$ac_objext \
29086       conftest$ac_exeext conftest.$ac_ext
29087 if test "$ac_cv_search_initialize_asn1_error_table_r" = no; then
29088   for ac_lib in asn1; do
29089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29090     cat >conftest.$ac_ext <<_ACEOF
29091 /* confdefs.h.  */
29092 _ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h.  */
29096
29097 /* Override any gcc2 internal prototype to avoid an error.  */
29098 #ifdef __cplusplus
29099 extern "C"
29100 #endif
29101 /* We use char because int might match the return type of a gcc2
29102    builtin and then its argument prototype would still apply.  */
29103 char initialize_asn1_error_table_r ();
29104 int
29105 main ()
29106 {
29107 initialize_asn1_error_table_r ();
29108   ;
29109   return 0;
29110 }
29111 _ACEOF
29112 rm -f conftest.$ac_objext conftest$ac_exeext
29113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29114   (eval $ac_link) 2>conftest.er1
29115   ac_status=$?
29116   grep -v '^ *+' conftest.er1 >conftest.err
29117   rm -f conftest.er1
29118   cat conftest.err >&5
29119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120   (exit $ac_status); } &&
29121          { ac_try='test -z "$ac_c_werror_flag"
29122                          || test ! -s conftest.err'
29123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29124   (eval $ac_try) 2>&5
29125   ac_status=$?
29126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127   (exit $ac_status); }; } &&
29128          { ac_try='test -s conftest$ac_exeext'
29129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29130   (eval $ac_try) 2>&5
29131   ac_status=$?
29132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133   (exit $ac_status); }; }; then
29134   ac_cv_search_initialize_asn1_error_table_r="-l$ac_lib"
29135 break
29136 else
29137   echo "$as_me: failed program was:" >&5
29138 sed 's/^/| /' conftest.$ac_ext >&5
29139
29140 fi
29141 rm -f conftest.err conftest.$ac_objext \
29142       conftest$ac_exeext conftest.$ac_ext
29143   done
29144 fi
29145 LIBS=$ac_func_search_save_LIBS
29146 fi
29147 echo "$as_me:$LINENO: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
29148 echo "${ECHO_T}$ac_cv_search_initialize_asn1_error_table_r" >&6
29149 if test "$ac_cv_search_initialize_asn1_error_table_r" != no; then
29150   test "$ac_cv_search_initialize_asn1_error_table_r" = "none required" || LIBS="$ac_cv_search_initialize_asn1_error_table_r $LIBS"
29151
29152 fi
29153
29154
29155   #
29156   # resolv              required, but not installed by Heimdal K 0.3d
29157   #
29158   # resolv              MIT K5 1.2.2-beta1
29159   #                     Linux 2.2.17
29160   #
29161   echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
29162 echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
29163 if test "${ac_cv_search___dn_expand+set}" = set; then
29164   echo $ECHO_N "(cached) $ECHO_C" >&6
29165 else
29166   ac_func_search_save_LIBS=$LIBS
29167 ac_cv_search___dn_expand=no
29168 cat >conftest.$ac_ext <<_ACEOF
29169 /* confdefs.h.  */
29170 _ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h.  */
29174
29175 /* Override any gcc2 internal prototype to avoid an error.  */
29176 #ifdef __cplusplus
29177 extern "C"
29178 #endif
29179 /* We use char because int might match the return type of a gcc2
29180    builtin and then its argument prototype would still apply.  */
29181 char __dn_expand ();
29182 int
29183 main ()
29184 {
29185 __dn_expand ();
29186   ;
29187   return 0;
29188 }
29189 _ACEOF
29190 rm -f conftest.$ac_objext conftest$ac_exeext
29191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29192   (eval $ac_link) 2>conftest.er1
29193   ac_status=$?
29194   grep -v '^ *+' conftest.er1 >conftest.err
29195   rm -f conftest.er1
29196   cat conftest.err >&5
29197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198   (exit $ac_status); } &&
29199          { ac_try='test -z "$ac_c_werror_flag"
29200                          || test ! -s conftest.err'
29201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202   (eval $ac_try) 2>&5
29203   ac_status=$?
29204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205   (exit $ac_status); }; } &&
29206          { ac_try='test -s conftest$ac_exeext'
29207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208   (eval $ac_try) 2>&5
29209   ac_status=$?
29210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211   (exit $ac_status); }; }; then
29212   ac_cv_search___dn_expand="none required"
29213 else
29214   echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29216
29217 fi
29218 rm -f conftest.err conftest.$ac_objext \
29219       conftest$ac_exeext conftest.$ac_ext
29220 if test "$ac_cv_search___dn_expand" = no; then
29221   for ac_lib in resolv; do
29222     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29223     cat >conftest.$ac_ext <<_ACEOF
29224 /* confdefs.h.  */
29225 _ACEOF
29226 cat confdefs.h >>conftest.$ac_ext
29227 cat >>conftest.$ac_ext <<_ACEOF
29228 /* end confdefs.h.  */
29229
29230 /* Override any gcc2 internal prototype to avoid an error.  */
29231 #ifdef __cplusplus
29232 extern "C"
29233 #endif
29234 /* We use char because int might match the return type of a gcc2
29235    builtin and then its argument prototype would still apply.  */
29236 char __dn_expand ();
29237 int
29238 main ()
29239 {
29240 __dn_expand ();
29241   ;
29242   return 0;
29243 }
29244 _ACEOF
29245 rm -f conftest.$ac_objext conftest$ac_exeext
29246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29247   (eval $ac_link) 2>conftest.er1
29248   ac_status=$?
29249   grep -v '^ *+' conftest.er1 >conftest.err
29250   rm -f conftest.er1
29251   cat conftest.err >&5
29252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253   (exit $ac_status); } &&
29254          { ac_try='test -z "$ac_c_werror_flag"
29255                          || test ! -s conftest.err'
29256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29257   (eval $ac_try) 2>&5
29258   ac_status=$?
29259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260   (exit $ac_status); }; } &&
29261          { ac_try='test -s conftest$ac_exeext'
29262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263   (eval $ac_try) 2>&5
29264   ac_status=$?
29265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266   (exit $ac_status); }; }; then
29267   ac_cv_search___dn_expand="-l$ac_lib"
29268 break
29269 else
29270   echo "$as_me: failed program was:" >&5
29271 sed 's/^/| /' conftest.$ac_ext >&5
29272
29273 fi
29274 rm -f conftest.err conftest.$ac_objext \
29275       conftest$ac_exeext conftest.$ac_ext
29276   done
29277 fi
29278 LIBS=$ac_func_search_save_LIBS
29279 fi
29280 echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
29281 echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
29282 if test "$ac_cv_search___dn_expand" != no; then
29283   test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
29284
29285 fi
29286
29287
29288   #
29289   # crypt              Needed by roken under FreeBSD 4.6.
29290   #
29291   echo "$as_me:$LINENO: checking for library containing crypt" >&5
29292 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
29293 if test "${ac_cv_search_crypt+set}" = set; then
29294   echo $ECHO_N "(cached) $ECHO_C" >&6
29295 else
29296   ac_func_search_save_LIBS=$LIBS
29297 ac_cv_search_crypt=no
29298 cat >conftest.$ac_ext <<_ACEOF
29299 /* confdefs.h.  */
29300 _ACEOF
29301 cat confdefs.h >>conftest.$ac_ext
29302 cat >>conftest.$ac_ext <<_ACEOF
29303 /* end confdefs.h.  */
29304
29305 /* Override any gcc2 internal prototype to avoid an error.  */
29306 #ifdef __cplusplus
29307 extern "C"
29308 #endif
29309 /* We use char because int might match the return type of a gcc2
29310    builtin and then its argument prototype would still apply.  */
29311 char crypt ();
29312 int
29313 main ()
29314 {
29315 crypt ();
29316   ;
29317   return 0;
29318 }
29319 _ACEOF
29320 rm -f conftest.$ac_objext conftest$ac_exeext
29321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29322   (eval $ac_link) 2>conftest.er1
29323   ac_status=$?
29324   grep -v '^ *+' conftest.er1 >conftest.err
29325   rm -f conftest.er1
29326   cat conftest.err >&5
29327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328   (exit $ac_status); } &&
29329          { ac_try='test -z "$ac_c_werror_flag"
29330                          || test ! -s conftest.err'
29331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29332   (eval $ac_try) 2>&5
29333   ac_status=$?
29334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335   (exit $ac_status); }; } &&
29336          { ac_try='test -s conftest$ac_exeext'
29337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338   (eval $ac_try) 2>&5
29339   ac_status=$?
29340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341   (exit $ac_status); }; }; then
29342   ac_cv_search_crypt="none required"
29343 else
29344   echo "$as_me: failed program was:" >&5
29345 sed 's/^/| /' conftest.$ac_ext >&5
29346
29347 fi
29348 rm -f conftest.err conftest.$ac_objext \
29349       conftest$ac_exeext conftest.$ac_ext
29350 if test "$ac_cv_search_crypt" = no; then
29351   for ac_lib in crypt; do
29352     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29353     cat >conftest.$ac_ext <<_ACEOF
29354 /* confdefs.h.  */
29355 _ACEOF
29356 cat confdefs.h >>conftest.$ac_ext
29357 cat >>conftest.$ac_ext <<_ACEOF
29358 /* end confdefs.h.  */
29359
29360 /* Override any gcc2 internal prototype to avoid an error.  */
29361 #ifdef __cplusplus
29362 extern "C"
29363 #endif
29364 /* We use char because int might match the return type of a gcc2
29365    builtin and then its argument prototype would still apply.  */
29366 char crypt ();
29367 int
29368 main ()
29369 {
29370 crypt ();
29371   ;
29372   return 0;
29373 }
29374 _ACEOF
29375 rm -f conftest.$ac_objext conftest$ac_exeext
29376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29377   (eval $ac_link) 2>conftest.er1
29378   ac_status=$?
29379   grep -v '^ *+' conftest.er1 >conftest.err
29380   rm -f conftest.er1
29381   cat conftest.err >&5
29382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383   (exit $ac_status); } &&
29384          { ac_try='test -z "$ac_c_werror_flag"
29385                          || test ! -s conftest.err'
29386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387   (eval $ac_try) 2>&5
29388   ac_status=$?
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); }; } &&
29391          { ac_try='test -s conftest$ac_exeext'
29392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29393   (eval $ac_try) 2>&5
29394   ac_status=$?
29395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396   (exit $ac_status); }; }; then
29397   ac_cv_search_crypt="-l$ac_lib"
29398 break
29399 else
29400   echo "$as_me: failed program was:" >&5
29401 sed 's/^/| /' conftest.$ac_ext >&5
29402
29403 fi
29404 rm -f conftest.err conftest.$ac_objext \
29405       conftest$ac_exeext conftest.$ac_ext
29406   done
29407 fi
29408 LIBS=$ac_func_search_save_LIBS
29409 fi
29410 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
29411 echo "${ECHO_T}$ac_cv_search_crypt" >&6
29412 if test "$ac_cv_search_crypt" != no; then
29413   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
29414
29415 fi
29416
29417
29418   #
29419   # roken               Heimdal K 0.3d          -lresolv
29420   # roken               FreeBSD 4.6             -lcrypt
29421   #
29422   echo "$as_me:$LINENO: checking for library containing roken_gethostbyaddr" >&5
29423 echo $ECHO_N "checking for library containing roken_gethostbyaddr... $ECHO_C" >&6
29424 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
29425   echo $ECHO_N "(cached) $ECHO_C" >&6
29426 else
29427   ac_func_search_save_LIBS=$LIBS
29428 ac_cv_search_roken_gethostbyaddr=no
29429 cat >conftest.$ac_ext <<_ACEOF
29430 /* confdefs.h.  */
29431 _ACEOF
29432 cat confdefs.h >>conftest.$ac_ext
29433 cat >>conftest.$ac_ext <<_ACEOF
29434 /* end confdefs.h.  */
29435
29436 /* Override any gcc2 internal prototype to avoid an error.  */
29437 #ifdef __cplusplus
29438 extern "C"
29439 #endif
29440 /* We use char because int might match the return type of a gcc2
29441    builtin and then its argument prototype would still apply.  */
29442 char roken_gethostbyaddr ();
29443 int
29444 main ()
29445 {
29446 roken_gethostbyaddr ();
29447   ;
29448   return 0;
29449 }
29450 _ACEOF
29451 rm -f conftest.$ac_objext conftest$ac_exeext
29452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29453   (eval $ac_link) 2>conftest.er1
29454   ac_status=$?
29455   grep -v '^ *+' conftest.er1 >conftest.err
29456   rm -f conftest.er1
29457   cat conftest.err >&5
29458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459   (exit $ac_status); } &&
29460          { ac_try='test -z "$ac_c_werror_flag"
29461                          || test ! -s conftest.err'
29462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29463   (eval $ac_try) 2>&5
29464   ac_status=$?
29465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466   (exit $ac_status); }; } &&
29467          { ac_try='test -s conftest$ac_exeext'
29468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29469   (eval $ac_try) 2>&5
29470   ac_status=$?
29471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472   (exit $ac_status); }; }; then
29473   ac_cv_search_roken_gethostbyaddr="none required"
29474 else
29475   echo "$as_me: failed program was:" >&5
29476 sed 's/^/| /' conftest.$ac_ext >&5
29477
29478 fi
29479 rm -f conftest.err conftest.$ac_objext \
29480       conftest$ac_exeext conftest.$ac_ext
29481 if test "$ac_cv_search_roken_gethostbyaddr" = no; then
29482   for ac_lib in roken; do
29483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29484     cat >conftest.$ac_ext <<_ACEOF
29485 /* confdefs.h.  */
29486 _ACEOF
29487 cat confdefs.h >>conftest.$ac_ext
29488 cat >>conftest.$ac_ext <<_ACEOF
29489 /* end confdefs.h.  */
29490
29491 /* Override any gcc2 internal prototype to avoid an error.  */
29492 #ifdef __cplusplus
29493 extern "C"
29494 #endif
29495 /* We use char because int might match the return type of a gcc2
29496    builtin and then its argument prototype would still apply.  */
29497 char roken_gethostbyaddr ();
29498 int
29499 main ()
29500 {
29501 roken_gethostbyaddr ();
29502   ;
29503   return 0;
29504 }
29505 _ACEOF
29506 rm -f conftest.$ac_objext conftest$ac_exeext
29507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29508   (eval $ac_link) 2>conftest.er1
29509   ac_status=$?
29510   grep -v '^ *+' conftest.er1 >conftest.err
29511   rm -f conftest.er1
29512   cat conftest.err >&5
29513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514   (exit $ac_status); } &&
29515          { ac_try='test -z "$ac_c_werror_flag"
29516                          || test ! -s conftest.err'
29517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29518   (eval $ac_try) 2>&5
29519   ac_status=$?
29520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521   (exit $ac_status); }; } &&
29522          { ac_try='test -s conftest$ac_exeext'
29523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29524   (eval $ac_try) 2>&5
29525   ac_status=$?
29526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527   (exit $ac_status); }; }; then
29528   ac_cv_search_roken_gethostbyaddr="-l$ac_lib"
29529 break
29530 else
29531   echo "$as_me: failed program was:" >&5
29532 sed 's/^/| /' conftest.$ac_ext >&5
29533
29534 fi
29535 rm -f conftest.err conftest.$ac_objext \
29536       conftest$ac_exeext conftest.$ac_ext
29537   done
29538 fi
29539 LIBS=$ac_func_search_save_LIBS
29540 fi
29541 echo "$as_me:$LINENO: result: $ac_cv_search_roken_gethostbyaddr" >&5
29542 echo "${ECHO_T}$ac_cv_search_roken_gethostbyaddr" >&6
29543 if test "$ac_cv_search_roken_gethostbyaddr" != no; then
29544   test "$ac_cv_search_roken_gethostbyaddr" = "none required" || LIBS="$ac_cv_search_roken_gethostbyaddr $LIBS"
29545
29546 fi
29547
29548
29549   #
29550   # k5crypto            MIT K5 v1.2.2-beta1
29551   #
29552   echo "$as_me:$LINENO: checking for library containing valid_enctype" >&5
29553 echo $ECHO_N "checking for library containing valid_enctype... $ECHO_C" >&6
29554 if test "${ac_cv_search_valid_enctype+set}" = set; then
29555   echo $ECHO_N "(cached) $ECHO_C" >&6
29556 else
29557   ac_func_search_save_LIBS=$LIBS
29558 ac_cv_search_valid_enctype=no
29559 cat >conftest.$ac_ext <<_ACEOF
29560 /* confdefs.h.  */
29561 _ACEOF
29562 cat confdefs.h >>conftest.$ac_ext
29563 cat >>conftest.$ac_ext <<_ACEOF
29564 /* end confdefs.h.  */
29565
29566 /* Override any gcc2 internal prototype to avoid an error.  */
29567 #ifdef __cplusplus
29568 extern "C"
29569 #endif
29570 /* We use char because int might match the return type of a gcc2
29571    builtin and then its argument prototype would still apply.  */
29572 char valid_enctype ();
29573 int
29574 main ()
29575 {
29576 valid_enctype ();
29577   ;
29578   return 0;
29579 }
29580 _ACEOF
29581 rm -f conftest.$ac_objext conftest$ac_exeext
29582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29583   (eval $ac_link) 2>conftest.er1
29584   ac_status=$?
29585   grep -v '^ *+' conftest.er1 >conftest.err
29586   rm -f conftest.er1
29587   cat conftest.err >&5
29588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589   (exit $ac_status); } &&
29590          { ac_try='test -z "$ac_c_werror_flag"
29591                          || test ! -s conftest.err'
29592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29593   (eval $ac_try) 2>&5
29594   ac_status=$?
29595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596   (exit $ac_status); }; } &&
29597          { ac_try='test -s conftest$ac_exeext'
29598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599   (eval $ac_try) 2>&5
29600   ac_status=$?
29601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602   (exit $ac_status); }; }; then
29603   ac_cv_search_valid_enctype="none required"
29604 else
29605   echo "$as_me: failed program was:" >&5
29606 sed 's/^/| /' conftest.$ac_ext >&5
29607
29608 fi
29609 rm -f conftest.err conftest.$ac_objext \
29610       conftest$ac_exeext conftest.$ac_ext
29611 if test "$ac_cv_search_valid_enctype" = no; then
29612   for ac_lib in k5crypto; do
29613     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29614     cat >conftest.$ac_ext <<_ACEOF
29615 /* confdefs.h.  */
29616 _ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h.  */
29620
29621 /* Override any gcc2 internal prototype to avoid an error.  */
29622 #ifdef __cplusplus
29623 extern "C"
29624 #endif
29625 /* We use char because int might match the return type of a gcc2
29626    builtin and then its argument prototype would still apply.  */
29627 char valid_enctype ();
29628 int
29629 main ()
29630 {
29631 valid_enctype ();
29632   ;
29633   return 0;
29634 }
29635 _ACEOF
29636 rm -f conftest.$ac_objext conftest$ac_exeext
29637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29638   (eval $ac_link) 2>conftest.er1
29639   ac_status=$?
29640   grep -v '^ *+' conftest.er1 >conftest.err
29641   rm -f conftest.er1
29642   cat conftest.err >&5
29643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644   (exit $ac_status); } &&
29645          { ac_try='test -z "$ac_c_werror_flag"
29646                          || test ! -s conftest.err'
29647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29648   (eval $ac_try) 2>&5
29649   ac_status=$?
29650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); }; } &&
29652          { ac_try='test -s conftest$ac_exeext'
29653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654   (eval $ac_try) 2>&5
29655   ac_status=$?
29656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657   (exit $ac_status); }; }; then
29658   ac_cv_search_valid_enctype="-l$ac_lib"
29659 break
29660 else
29661   echo "$as_me: failed program was:" >&5
29662 sed 's/^/| /' conftest.$ac_ext >&5
29663
29664 fi
29665 rm -f conftest.err conftest.$ac_objext \
29666       conftest$ac_exeext conftest.$ac_ext
29667   done
29668 fi
29669 LIBS=$ac_func_search_save_LIBS
29670 fi
29671 echo "$as_me:$LINENO: result: $ac_cv_search_valid_enctype" >&5
29672 echo "${ECHO_T}$ac_cv_search_valid_enctype" >&6
29673 if test "$ac_cv_search_valid_enctype" != no; then
29674   test "$ac_cv_search_valid_enctype" = "none required" || LIBS="$ac_cv_search_valid_enctype $LIBS"
29675
29676 fi
29677
29678
29679   #
29680   # gen                 ? ? ?                   Needed on Irix 5.3 with some
29681   #                     Irix 5.3                version of Kerberos.  I'm not
29682   #                                             sure which since Irix didn't
29683   #                                             get any testing this time
29684   #                                             around.  Original comment:
29685   #
29686   # This is necessary on Irix 5.3, in order to link against libkrb5 --
29687   # there, an_to_ln.o refers to things defined only in -lgen.
29688   #
29689   echo "$as_me:$LINENO: checking for library containing compile" >&5
29690 echo $ECHO_N "checking for library containing compile... $ECHO_C" >&6
29691 if test "${ac_cv_search_compile+set}" = set; then
29692   echo $ECHO_N "(cached) $ECHO_C" >&6
29693 else
29694   ac_func_search_save_LIBS=$LIBS
29695 ac_cv_search_compile=no
29696 cat >conftest.$ac_ext <<_ACEOF
29697 /* confdefs.h.  */
29698 _ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h.  */
29702
29703 /* Override any gcc2 internal prototype to avoid an error.  */
29704 #ifdef __cplusplus
29705 extern "C"
29706 #endif
29707 /* We use char because int might match the return type of a gcc2
29708    builtin and then its argument prototype would still apply.  */
29709 char compile ();
29710 int
29711 main ()
29712 {
29713 compile ();
29714   ;
29715   return 0;
29716 }
29717 _ACEOF
29718 rm -f conftest.$ac_objext conftest$ac_exeext
29719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29720   (eval $ac_link) 2>conftest.er1
29721   ac_status=$?
29722   grep -v '^ *+' conftest.er1 >conftest.err
29723   rm -f conftest.er1
29724   cat conftest.err >&5
29725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726   (exit $ac_status); } &&
29727          { ac_try='test -z "$ac_c_werror_flag"
29728                          || test ! -s conftest.err'
29729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730   (eval $ac_try) 2>&5
29731   ac_status=$?
29732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733   (exit $ac_status); }; } &&
29734          { ac_try='test -s conftest$ac_exeext'
29735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29736   (eval $ac_try) 2>&5
29737   ac_status=$?
29738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739   (exit $ac_status); }; }; then
29740   ac_cv_search_compile="none required"
29741 else
29742   echo "$as_me: failed program was:" >&5
29743 sed 's/^/| /' conftest.$ac_ext >&5
29744
29745 fi
29746 rm -f conftest.err conftest.$ac_objext \
29747       conftest$ac_exeext conftest.$ac_ext
29748 if test "$ac_cv_search_compile" = no; then
29749   for ac_lib in gen; do
29750     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29751     cat >conftest.$ac_ext <<_ACEOF
29752 /* confdefs.h.  */
29753 _ACEOF
29754 cat confdefs.h >>conftest.$ac_ext
29755 cat >>conftest.$ac_ext <<_ACEOF
29756 /* end confdefs.h.  */
29757
29758 /* Override any gcc2 internal prototype to avoid an error.  */
29759 #ifdef __cplusplus
29760 extern "C"
29761 #endif
29762 /* We use char because int might match the return type of a gcc2
29763    builtin and then its argument prototype would still apply.  */
29764 char compile ();
29765 int
29766 main ()
29767 {
29768 compile ();
29769   ;
29770   return 0;
29771 }
29772 _ACEOF
29773 rm -f conftest.$ac_objext conftest$ac_exeext
29774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29775   (eval $ac_link) 2>conftest.er1
29776   ac_status=$?
29777   grep -v '^ *+' conftest.er1 >conftest.err
29778   rm -f conftest.er1
29779   cat conftest.err >&5
29780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781   (exit $ac_status); } &&
29782          { ac_try='test -z "$ac_c_werror_flag"
29783                          || test ! -s conftest.err'
29784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29785   (eval $ac_try) 2>&5
29786   ac_status=$?
29787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788   (exit $ac_status); }; } &&
29789          { ac_try='test -s conftest$ac_exeext'
29790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29791   (eval $ac_try) 2>&5
29792   ac_status=$?
29793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794   (exit $ac_status); }; }; then
29795   ac_cv_search_compile="-l$ac_lib"
29796 break
29797 else
29798   echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29800
29801 fi
29802 rm -f conftest.err conftest.$ac_objext \
29803       conftest$ac_exeext conftest.$ac_ext
29804   done
29805 fi
29806 LIBS=$ac_func_search_save_LIBS
29807 fi
29808 echo "$as_me:$LINENO: result: $ac_cv_search_compile" >&5
29809 echo "${ECHO_T}$ac_cv_search_compile" >&6
29810 if test "$ac_cv_search_compile" != no; then
29811   test "$ac_cv_search_compile" = "none required" || LIBS="$ac_cv_search_compile $LIBS"
29812
29813 fi
29814
29815
29816   #
29817   # krb5                ? ? ?                   -lgen -l???
29818   #                     Irix 5.3
29819   #
29820   # krb5                MIT K5 v1.1.1
29821   #
29822   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err
29823   #                     Linux 2.2.17
29824   #
29825   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err -lresolv
29826   #
29827   # krb5                Heimdal K 0.3d          -lasn1 -lroken -ldes
29828   #
29829   echo "$as_me:$LINENO: checking for library containing krb5_free_context" >&5
29830 echo $ECHO_N "checking for library containing krb5_free_context... $ECHO_C" >&6
29831 if test "${ac_cv_search_krb5_free_context+set}" = set; then
29832   echo $ECHO_N "(cached) $ECHO_C" >&6
29833 else
29834   ac_func_search_save_LIBS=$LIBS
29835 ac_cv_search_krb5_free_context=no
29836 cat >conftest.$ac_ext <<_ACEOF
29837 /* confdefs.h.  */
29838 _ACEOF
29839 cat confdefs.h >>conftest.$ac_ext
29840 cat >>conftest.$ac_ext <<_ACEOF
29841 /* end confdefs.h.  */
29842
29843 /* Override any gcc2 internal prototype to avoid an error.  */
29844 #ifdef __cplusplus
29845 extern "C"
29846 #endif
29847 /* We use char because int might match the return type of a gcc2
29848    builtin and then its argument prototype would still apply.  */
29849 char krb5_free_context ();
29850 int
29851 main ()
29852 {
29853 krb5_free_context ();
29854   ;
29855   return 0;
29856 }
29857 _ACEOF
29858 rm -f conftest.$ac_objext conftest$ac_exeext
29859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29860   (eval $ac_link) 2>conftest.er1
29861   ac_status=$?
29862   grep -v '^ *+' conftest.er1 >conftest.err
29863   rm -f conftest.er1
29864   cat conftest.err >&5
29865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866   (exit $ac_status); } &&
29867          { ac_try='test -z "$ac_c_werror_flag"
29868                          || test ! -s conftest.err'
29869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870   (eval $ac_try) 2>&5
29871   ac_status=$?
29872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873   (exit $ac_status); }; } &&
29874          { ac_try='test -s conftest$ac_exeext'
29875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876   (eval $ac_try) 2>&5
29877   ac_status=$?
29878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879   (exit $ac_status); }; }; then
29880   ac_cv_search_krb5_free_context="none required"
29881 else
29882   echo "$as_me: failed program was:" >&5
29883 sed 's/^/| /' conftest.$ac_ext >&5
29884
29885 fi
29886 rm -f conftest.err conftest.$ac_objext \
29887       conftest$ac_exeext conftest.$ac_ext
29888 if test "$ac_cv_search_krb5_free_context" = no; then
29889   for ac_lib in krb5; do
29890     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29891     cat >conftest.$ac_ext <<_ACEOF
29892 /* confdefs.h.  */
29893 _ACEOF
29894 cat confdefs.h >>conftest.$ac_ext
29895 cat >>conftest.$ac_ext <<_ACEOF
29896 /* end confdefs.h.  */
29897
29898 /* Override any gcc2 internal prototype to avoid an error.  */
29899 #ifdef __cplusplus
29900 extern "C"
29901 #endif
29902 /* We use char because int might match the return type of a gcc2
29903    builtin and then its argument prototype would still apply.  */
29904 char krb5_free_context ();
29905 int
29906 main ()
29907 {
29908 krb5_free_context ();
29909   ;
29910   return 0;
29911 }
29912 _ACEOF
29913 rm -f conftest.$ac_objext conftest$ac_exeext
29914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29915   (eval $ac_link) 2>conftest.er1
29916   ac_status=$?
29917   grep -v '^ *+' conftest.er1 >conftest.err
29918   rm -f conftest.er1
29919   cat conftest.err >&5
29920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921   (exit $ac_status); } &&
29922          { ac_try='test -z "$ac_c_werror_flag"
29923                          || test ! -s conftest.err'
29924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925   (eval $ac_try) 2>&5
29926   ac_status=$?
29927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928   (exit $ac_status); }; } &&
29929          { ac_try='test -s conftest$ac_exeext'
29930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29931   (eval $ac_try) 2>&5
29932   ac_status=$?
29933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934   (exit $ac_status); }; }; then
29935   ac_cv_search_krb5_free_context="-l$ac_lib"
29936 break
29937 else
29938   echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29940
29941 fi
29942 rm -f conftest.err conftest.$ac_objext \
29943       conftest$ac_exeext conftest.$ac_ext
29944   done
29945 fi
29946 LIBS=$ac_func_search_save_LIBS
29947 fi
29948 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_free_context" >&5
29949 echo "${ECHO_T}$ac_cv_search_krb5_free_context" >&6
29950 if test "$ac_cv_search_krb5_free_context" != no; then
29951   test "$ac_cv_search_krb5_free_context" = "none required" || LIBS="$ac_cv_search_krb5_free_context $LIBS"
29952
29953 fi
29954
29955
29956   #
29957   # gssapi_krb5         Only lib needed with MIT K5 v1.2.1, so find it first in
29958   #                     order to prefer MIT Kerberos.  If both MIT & Heimdal
29959   #                     Kerberos are installed and in the path, this will leave
29960   #                     some of the libraries above in LIBS unnecessarily, but
29961   #                     noone would ever do that, right?
29962   #
29963   # gssapi_krb5         MIT K5 v1.2.2-beta1     -lkrb5
29964   #
29965   # gssapi              Heimdal K 0.3d          -lkrb5
29966   #
29967   echo "$as_me:$LINENO: checking for library containing gss_import_name" >&5
29968 echo $ECHO_N "checking for library containing gss_import_name... $ECHO_C" >&6
29969 if test "${ac_cv_search_gss_import_name+set}" = set; then
29970   echo $ECHO_N "(cached) $ECHO_C" >&6
29971 else
29972   ac_func_search_save_LIBS=$LIBS
29973 ac_cv_search_gss_import_name=no
29974 cat >conftest.$ac_ext <<_ACEOF
29975 /* confdefs.h.  */
29976 _ACEOF
29977 cat confdefs.h >>conftest.$ac_ext
29978 cat >>conftest.$ac_ext <<_ACEOF
29979 /* end confdefs.h.  */
29980
29981 /* Override any gcc2 internal prototype to avoid an error.  */
29982 #ifdef __cplusplus
29983 extern "C"
29984 #endif
29985 /* We use char because int might match the return type of a gcc2
29986    builtin and then its argument prototype would still apply.  */
29987 char gss_import_name ();
29988 int
29989 main ()
29990 {
29991 gss_import_name ();
29992   ;
29993   return 0;
29994 }
29995 _ACEOF
29996 rm -f conftest.$ac_objext conftest$ac_exeext
29997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29998   (eval $ac_link) 2>conftest.er1
29999   ac_status=$?
30000   grep -v '^ *+' conftest.er1 >conftest.err
30001   rm -f conftest.er1
30002   cat conftest.err >&5
30003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004   (exit $ac_status); } &&
30005          { ac_try='test -z "$ac_c_werror_flag"
30006                          || test ! -s conftest.err'
30007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30008   (eval $ac_try) 2>&5
30009   ac_status=$?
30010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011   (exit $ac_status); }; } &&
30012          { ac_try='test -s conftest$ac_exeext'
30013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30014   (eval $ac_try) 2>&5
30015   ac_status=$?
30016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30017   (exit $ac_status); }; }; then
30018   ac_cv_search_gss_import_name="none required"
30019 else
30020   echo "$as_me: failed program was:" >&5
30021 sed 's/^/| /' conftest.$ac_ext >&5
30022
30023 fi
30024 rm -f conftest.err conftest.$ac_objext \
30025       conftest$ac_exeext conftest.$ac_ext
30026 if test "$ac_cv_search_gss_import_name" = no; then
30027   for ac_lib in gssapi_krb5 gssapi; do
30028     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30029     cat >conftest.$ac_ext <<_ACEOF
30030 /* confdefs.h.  */
30031 _ACEOF
30032 cat confdefs.h >>conftest.$ac_ext
30033 cat >>conftest.$ac_ext <<_ACEOF
30034 /* end confdefs.h.  */
30035
30036 /* Override any gcc2 internal prototype to avoid an error.  */
30037 #ifdef __cplusplus
30038 extern "C"
30039 #endif
30040 /* We use char because int might match the return type of a gcc2
30041    builtin and then its argument prototype would still apply.  */
30042 char gss_import_name ();
30043 int
30044 main ()
30045 {
30046 gss_import_name ();
30047   ;
30048   return 0;
30049 }
30050 _ACEOF
30051 rm -f conftest.$ac_objext conftest$ac_exeext
30052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30053   (eval $ac_link) 2>conftest.er1
30054   ac_status=$?
30055   grep -v '^ *+' conftest.er1 >conftest.err
30056   rm -f conftest.er1
30057   cat conftest.err >&5
30058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059   (exit $ac_status); } &&
30060          { ac_try='test -z "$ac_c_werror_flag"
30061                          || test ! -s conftest.err'
30062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30063   (eval $ac_try) 2>&5
30064   ac_status=$?
30065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066   (exit $ac_status); }; } &&
30067          { ac_try='test -s conftest$ac_exeext'
30068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30069   (eval $ac_try) 2>&5
30070   ac_status=$?
30071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072   (exit $ac_status); }; }; then
30073   ac_cv_search_gss_import_name="-l$ac_lib"
30074 break
30075 else
30076   echo "$as_me: failed program was:" >&5
30077 sed 's/^/| /' conftest.$ac_ext >&5
30078
30079 fi
30080 rm -f conftest.err conftest.$ac_objext \
30081       conftest$ac_exeext conftest.$ac_ext
30082   done
30083 fi
30084 LIBS=$ac_func_search_save_LIBS
30085 fi
30086 echo "$as_me:$LINENO: result: $ac_cv_search_gss_import_name" >&5
30087 echo "${ECHO_T}$ac_cv_search_gss_import_name" >&6
30088 if test "$ac_cv_search_gss_import_name" != no; then
30089   test "$ac_cv_search_gss_import_name" = "none required" || LIBS="$ac_cv_search_gss_import_name $LIBS"
30090
30091 fi
30092
30093 fi
30094
30095
30096
30097 #
30098 # Use --with-zlib to build with a zlib other than the version distributed
30099 # with CVS.
30100 #
30101 # defaults to the included snapshot of zlib
30102 #
30103
30104 # Check whether --with-external-zlib or --without-external-zlib was given.
30105 if test "${with_external_zlib+set}" = set; then
30106   withval="$with_external_zlib"
30107   with_external_zlib=$withval
30108 else
30109   with_external_zlib=no
30110 fi;
30111
30112 #
30113 # Try to locate a ZLIB installation if no location was specified, assuming
30114 # external ZLIB was enabled.
30115 #
30116 if test -n "$acx_zlib_cv_external_zlib"; then
30117   # Granted, this is a slightly ugly way to print this info, but the
30118   # AC_CHECK_HEADER used in the search for a ZLIB installation makes using
30119   # AC_CACHE_CHECK worse
30120   echo "$as_me:$LINENO: checking for external ZLIB" >&5
30121 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
30122 else :; fi
30123 if test "${acx_zlib_cv_external_zlib+set}" = set; then
30124   echo $ECHO_N "(cached) $ECHO_C" >&6
30125 else
30126
30127   #
30128   # --with but no location specified
30129   # assume zlib.h locates our install.
30130   #
30131   acx_zlib_save_CPPFLAGS=$CPPFLAGS
30132   for acx_zlib_cv_external_zlib in yes /usr/local no; do
30133     if test x$acx_zlib_cv_external_zlib = xno; then
30134       break
30135     fi
30136     if test x$acx_zlib_cv_external_zlib = xyes; then
30137       echo "$as_me:$LINENO: checking for external ZLIB" >&5
30138 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
30139       echo "$as_me:$LINENO: result: " >&5
30140 echo "${ECHO_T}" >&6
30141     else
30142       CPPFLAGS="$acx_zlib_save_CPPFLAGS -I$acx_zlib_cv_external_zlib/include"
30143       echo "$as_me:$LINENO: checking for external ZLIB in $acx_zlib_cv_external_zlib" >&5
30144 echo $ECHO_N "checking for external ZLIB in $acx_zlib_cv_external_zlib... $ECHO_C" >&6
30145       echo "$as_me:$LINENO: result: " >&5
30146 echo "${ECHO_T}" >&6
30147     fi
30148     unset ac_cv_header_zlib_h
30149
30150 for ac_header in zlib.h
30151 do
30152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30154   echo "$as_me:$LINENO: checking for $ac_header" >&5
30155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30157   echo $ECHO_N "(cached) $ECHO_C" >&6
30158 fi
30159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30161 else
30162   # Is the header compilable?
30163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30165 cat >conftest.$ac_ext <<_ACEOF
30166 /* confdefs.h.  */
30167 _ACEOF
30168 cat confdefs.h >>conftest.$ac_ext
30169 cat >>conftest.$ac_ext <<_ACEOF
30170 /* end confdefs.h.  */
30171 $ac_includes_default
30172 #include <$ac_header>
30173 _ACEOF
30174 rm -f conftest.$ac_objext
30175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30176   (eval $ac_compile) 2>conftest.er1
30177   ac_status=$?
30178   grep -v '^ *+' conftest.er1 >conftest.err
30179   rm -f conftest.er1
30180   cat conftest.err >&5
30181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182   (exit $ac_status); } &&
30183          { ac_try='test -z "$ac_c_werror_flag"
30184                          || test ! -s conftest.err'
30185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30186   (eval $ac_try) 2>&5
30187   ac_status=$?
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); }; } &&
30190          { ac_try='test -s conftest.$ac_objext'
30191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30192   (eval $ac_try) 2>&5
30193   ac_status=$?
30194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195   (exit $ac_status); }; }; then
30196   ac_header_compiler=yes
30197 else
30198   echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30200
30201 ac_header_compiler=no
30202 fi
30203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30205 echo "${ECHO_T}$ac_header_compiler" >&6
30206
30207 # Is the header present?
30208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30210 cat >conftest.$ac_ext <<_ACEOF
30211 /* confdefs.h.  */
30212 _ACEOF
30213 cat confdefs.h >>conftest.$ac_ext
30214 cat >>conftest.$ac_ext <<_ACEOF
30215 /* end confdefs.h.  */
30216 #include <$ac_header>
30217 _ACEOF
30218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30220   ac_status=$?
30221   grep -v '^ *+' conftest.er1 >conftest.err
30222   rm -f conftest.er1
30223   cat conftest.err >&5
30224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225   (exit $ac_status); } >/dev/null; then
30226   if test -s conftest.err; then
30227     ac_cpp_err=$ac_c_preproc_warn_flag
30228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30229   else
30230     ac_cpp_err=
30231   fi
30232 else
30233   ac_cpp_err=yes
30234 fi
30235 if test -z "$ac_cpp_err"; then
30236   ac_header_preproc=yes
30237 else
30238   echo "$as_me: failed program was:" >&5
30239 sed 's/^/| /' conftest.$ac_ext >&5
30240
30241   ac_header_preproc=no
30242 fi
30243 rm -f conftest.err conftest.$ac_ext
30244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30245 echo "${ECHO_T}$ac_header_preproc" >&6
30246
30247 # So?  What about this header?
30248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30249   yes:no: )
30250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30254     ac_header_preproc=yes
30255     ;;
30256   no:yes:* )
30257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30269     (
30270       cat <<\_ASBOX
30271 ## ------------------------------ ##
30272 ## Report this to bug-cvs@gnu.org ##
30273 ## ------------------------------ ##
30274 _ASBOX
30275     ) |
30276       sed "s/^/$as_me: WARNING:     /" >&2
30277     ;;
30278 esac
30279 echo "$as_me:$LINENO: checking for $ac_header" >&5
30280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30282   echo $ECHO_N "(cached) $ECHO_C" >&6
30283 else
30284   eval "$as_ac_Header=\$ac_header_preproc"
30285 fi
30286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30288
30289 fi
30290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30291   cat >>confdefs.h <<_ACEOF
30292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30293 _ACEOF
30294
30295 fi
30296
30297 done
30298
30299     if test "$ac_cv_header_zlib_h" = yes; then
30300       break
30301     fi
30302   done
30303   CPPFLAGS=$acx_zlib_save_CPPFLAGS
30304 echo "$as_me:$LINENO: checking for external ZLIB" >&5
30305 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
30306
30307 fi
30308 echo "$as_me:$LINENO: result: $acx_zlib_cv_external_zlib" >&5
30309 echo "${ECHO_T}$acx_zlib_cv_external_zlib" >&6
30310
30311
30312 #
30313 # Output a pretty message naming our selected ZLIB "external" or "package"
30314 # so that any warnings printed by the version check make more sense.
30315 #
30316 echo "$as_me:$LINENO: checking selected ZLIB" >&5
30317 echo $ECHO_N "checking selected ZLIB... $ECHO_C" >&6
30318 if test "x$with_external_zlib" = xno; then
30319   echo "$as_me:$LINENO: result: package" >&5
30320 echo "${ECHO_T}package" >&6
30321 else
30322   echo "$as_me:$LINENO: result: external" >&5
30323 echo "${ECHO_T}external" >&6
30324 fi
30325
30326
30327 #
30328 # Verify that the ZLIB we aren't using isn't newer than the one we are.
30329 #
30330 if test "x$acx_zlib_cv_external_zlib" != xno; then
30331   LOCAL_ZLIB_VERSION=`sed -n '/^#define ZLIB_VERSION ".*"$/{
30332                               s/^#define ZLIB_VERSION "\(.*\)"$/\1/;
30333                               p;}' <$srcdir/zlib/zlib.h 2>&5`
30334   cat >conftest.$ac_ext <<_ACEOF
30335 /* confdefs.h.  */
30336 _ACEOF
30337 cat confdefs.h >>conftest.$ac_ext
30338 cat >>conftest.$ac_ext <<_ACEOF
30339 /* end confdefs.h.  */
30340 #include <zlib.h>
30341
30342 _ACEOF
30343 ac_extract_cpp_result=`(eval "$ac_cpp -dM conftest.$ac_ext") 2>&5 |
30344   sed -n "/^#define ZLIB_VERSION /{
30345             s/^#define ZLIB_VERSION //;
30346             s/^ *//;
30347             s/ *\$//;
30348             p;}" 2>&5`
30349 if test -n "$ac_extract_cpp_result"; then
30350   ZLIB_VERSION=$ac_extract_cpp_result
30351 fi
30352 rm -f conftest*
30353
30354   ZLIB_VERSION=`echo "$ZLIB_VERSION" |sed 's/"//g'`
30355   if test "x$LOCAL_ZLIB_VERSION" = "x$ZLIB_VERSION"; then
30356   # the strings are equal.  run ACTION-IF-EQUAL and bail
30357   :
30358 else
30359   # first unletter the versions
30360   # this only works for a single trailing letter
30361     asx_version_1=`echo "$LOCAL_ZLIB_VERSION" |
30362                  sed 's/\(abcedfghi\)/.\1/;
30363                       s/\(jklmnopqrs\)/.1\1/;
30364                       s/\(tuvwxyz\)/.2\1/;
30365                       y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
30366   asx_version_2=`echo "$ZLIB_VERSION" |
30367                  sed 's/\(abcedfghi\)/.\1/;
30368                       s/\(jklmnopqrs\)/.1\1/;
30369                       s/\(tuvwxyz\)/.2\1/;
30370                       y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
30371   asx_count=1
30372   asx_save_IFS=$IFS
30373   IFS=.
30374   asx_retval=-1
30375   for vsub1 in $asx_version_1; do
30376     vsub2=`echo "$asx_version_2" |awk -F. "{print \\\$$asx_count}"`
30377     if test -z "$vsub2" || test $vsub1 -gt $vsub2; then
30378       asx_retval=1
30379       break
30380     elif test $vsub1 -lt $vsub2; then
30381       break
30382     fi
30383     asx_count=`expr $asx_count + 1`
30384   done
30385   IFS=$asx_save_IFS
30386   if test $asx_retval -eq -1; then
30387     if test "x$with_external_zlib" = xno; then
30388        { echo "$as_me:$LINENO: WARNING: Found external ZLIB with a more recent version than the
30389            package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION).  configure with the
30390            --with-external-zlib option to select the more recent version." >&5
30391 echo "$as_me: WARNING: Found external ZLIB with a more recent version than the
30392            package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION).  configure with the
30393            --with-external-zlib option to select the more recent version." >&2;}
30394      fi
30395   else
30396 if test "x$with_external_zlib" != xno; then
30397        { echo "$as_me:$LINENO: WARNING: Package ZLIB is more recent than requested external version
30398            ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION).  configure with the --without-external-zlib
30399            option to select the more recent version." >&5
30400 echo "$as_me: WARNING: Package ZLIB is more recent than requested external version
30401            ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION).  configure with the --without-external-zlib
30402            option to select the more recent version." >&2;}
30403      fi
30404   fi
30405
30406 fi
30407
30408 fi
30409
30410
30411 # Now set with_external_zlib to our discovered value or the user specified
30412 # value, as appropriate.
30413 if test x$with_external_zlib = xyes; then
30414   with_external_zlib=$acx_zlib_cv_external_zlib
30415 fi
30416 # $with_external_zlib could still be "no"
30417
30418
30419 #
30420 # Set up ZLIB includes for later use.
30421 #
30422 if test x$with_external_zlib != xyes \
30423    && test x$with_external_zlib != no; then
30424   if test -z "$CPPFLAGS"; then
30425     CPPFLAGS="-I$with_external_zlib/include"
30426   else
30427     CPPFLAGS="$CPPFLAGS -I$with_external_zlib/include"
30428   fi
30429   if test -z "$LDFLAGS"; then
30430     LDFLAGS="-L$with_external_zlib/lib"
30431   else
30432     LDFLAGS="$LDFLAGS -L$with_external_zlib/lib"
30433   fi
30434 fi
30435
30436 ZLIB_CPPFLAGS=
30437 ZLIB_LIBS=
30438 ZLIB_SUBDIRS=
30439 if test x$with_external_zlib = xno; then
30440   # We need ZLIB_CPPFLAGS so that later executions of cpp from configure
30441   # don't try to interpret $(top_srcdir)
30442   ZLIB_CPPFLAGS='-I$(top_srcdir)/zlib'
30443   ZLIB_LIBS='$(top_builddir)/zlib/libz.a'
30444   # ZLIB_SUBDIRS is only used in the top level Makefiles.
30445   ZLIB_SUBDIRS=zlib
30446 else
30447   # We know what to do now, so set up the CPPFLAGS, LDFLAGS, and LIBS for later
30448   # use.
30449   if test -z "$LIBS"; then
30450     LIBS=-lz
30451   else
30452     LIBS="$LIBS -lz"
30453   fi
30454
30455   #
30456   # Verify external installed zlib works
30457   #
30458   # Ideally, we would also check that the version is newer
30459   #
30460   echo "$as_me:$LINENO: checking that ZLIB library works" >&5
30461 echo $ECHO_N "checking that ZLIB library works... $ECHO_C" >&6
30462   cat >conftest.$ac_ext <<_ACEOF
30463 /* confdefs.h.  */
30464 _ACEOF
30465 cat confdefs.h >>conftest.$ac_ext
30466 cat >>conftest.$ac_ext <<_ACEOF
30467 /* end confdefs.h.  */
30468 #include <zlib.h>
30469 int
30470 main ()
30471 {
30472 int i = Z_OK; const char *version = zlibVersion();
30473   ;
30474   return 0;
30475 }
30476 _ACEOF
30477 rm -f conftest.$ac_objext conftest$ac_exeext
30478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30479   (eval $ac_link) 2>conftest.er1
30480   ac_status=$?
30481   grep -v '^ *+' conftest.er1 >conftest.err
30482   rm -f conftest.er1
30483   cat conftest.err >&5
30484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485   (exit $ac_status); } &&
30486          { ac_try='test -z "$ac_c_werror_flag"
30487                          || test ! -s conftest.err'
30488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30489   (eval $ac_try) 2>&5
30490   ac_status=$?
30491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492   (exit $ac_status); }; } &&
30493          { ac_try='test -s conftest$ac_exeext'
30494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30495   (eval $ac_try) 2>&5
30496   ac_status=$?
30497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498   (exit $ac_status); }; }; then
30499   echo "$as_me:$LINENO: result: yes" >&5
30500 echo "${ECHO_T}yes" >&6
30501 else
30502   echo "$as_me: failed program was:" >&5
30503 sed 's/^/| /' conftest.$ac_ext >&5
30504
30505 echo "$as_me:$LINENO: result: no" >&5
30506 echo "${ECHO_T}no" >&6
30507                { { echo "$as_me:$LINENO: error: ZLIB failed to link" >&5
30508 echo "$as_me: error: ZLIB failed to link" >&2;}
30509    { (exit 1); exit 1; }; }
30510 fi
30511 rm -f conftest.err conftest.$ac_objext \
30512       conftest$ac_exeext conftest.$ac_ext
30513 fi
30514
30515
30516
30517
30518 # What remote shell transport should our client cvs default to using?
30519
30520 # Check whether --with-rsh or --without-rsh was given.
30521 if test "${with_rsh+set}" = set; then
30522   withval="$with_rsh"
30523
30524 else
30525   with_rsh="rsh ssh"
30526 fi;
30527
30528 if test no = "$with_rsh"; then
30529   { echo "$as_me:$LINENO: WARNING: Failed to find usable remote shell. Using 'rsh'." >&5
30530 echo "$as_me: WARNING: Failed to find usable remote shell. Using 'rsh'." >&2;}
30531   with_rsh=rsh
30532 elif test yes = "$with_rsh"; then
30533   # Make --with-rsh mean the same thing as --with-rsh=rsh
30534   with_rsh=rsh
30535 fi
30536
30537 if echo $with_rsh |grep ^/ >/dev/null; then
30538   # If $with_rsh is an absolute path, issue a warning if the executable
30539   # doesn't exist or isn't usable, but then trust the user and use it
30540   # regardless
30541   with_default_rsh=$with_rsh
30542   echo "$as_me:$LINENO: checking for a remote shell" >&5
30543 echo $ECHO_N "checking for a remote shell... $ECHO_C" >&6
30544   if ! test -f $with_rsh \
30545       || ! test -x $with_rsh; then
30546     # warn the user that they may encounter problems
30547     { echo "$as_me:$LINENO: WARNING: $with_rsh is not a path to an executable file" >&5
30548 echo "$as_me: WARNING: $with_rsh is not a path to an executable file" >&2;}
30549   fi
30550 else
30551   # Search for a remote shell
30552   for ac_prog in $with_rsh
30553 do
30554   # Extract the first word of "$ac_prog", so it can be a program name with args.
30555 set dummy $ac_prog; ac_word=$2
30556 echo "$as_me:$LINENO: checking for $ac_word" >&5
30557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30558 if test "${ac_cv_prog_with_default_rsh+set}" = set; then
30559   echo $ECHO_N "(cached) $ECHO_C" >&6
30560 else
30561   if test -n "$with_default_rsh"; then
30562   ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test.
30563 else
30564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30565 for as_dir in $PATH
30566 do
30567   IFS=$as_save_IFS
30568   test -z "$as_dir" && as_dir=.
30569   for ac_exec_ext in '' $ac_executable_extensions; do
30570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30571     ac_cv_prog_with_default_rsh="$ac_prog"
30572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30573     break 2
30574   fi
30575 done
30576 done
30577
30578 fi
30579 fi
30580 with_default_rsh=$ac_cv_prog_with_default_rsh
30581 if test -n "$with_default_rsh"; then
30582   echo "$as_me:$LINENO: result: $with_default_rsh" >&5
30583 echo "${ECHO_T}$with_default_rsh" >&6
30584 else
30585   echo "$as_me:$LINENO: result: no" >&5
30586 echo "${ECHO_T}no" >&6
30587 fi
30588
30589   test -n "$with_default_rsh" && break
30590 done
30591 test -n "$with_default_rsh" || with_default_rsh=""rsh""
30592
30593 fi
30594
30595
30596 cat >>confdefs.h <<_ACEOF
30597 #define RSH_DFLT "$with_default_rsh"
30598 _ACEOF
30599
30600 RSH_DFLT=$with_default_rsh
30601
30602
30603
30604
30605
30606 # Let the confiscator request a specific editor
30607
30608 # Check whether --with-editor or --without-editor was given.
30609 if test "${with_editor+set}" = set; then
30610   withval="$with_editor"
30611
30612 else
30613   with_editor=yes
30614 fi;
30615
30616 # If --with-editor was supplied with an argument, let it override $EDITOR from
30617 # the user's environment.  We need to unset EDITOR here because AC_CHECK_PROGS
30618 # will let the value of EDITOR ride when it is set rather than searching.  We
30619 # ignore the --without-editor case since it will be caught below.
30620 if test -n "$EDITOR" && test yes != $with_editor; then
30621   $as_unset EDITOR || test "${EDITOR+set}" != set || { EDITOR=; export EDITOR; }
30622 fi
30623
30624 # Set the default when --with-editor wasn't supplied or when it was supplied
30625 # without an argument.
30626 if test yes = $with_editor; then
30627   with_editor="vim vi emacs nano pico edit"
30628 fi
30629
30630 if echo $with_editor |grep ^/ >/dev/null; then
30631   # If $with_editor is an absolute path, issue a warning if the executable
30632   # doesn't exist or isn't usable, but then trust the user and use it
30633   # regardless
30634   EDITOR=$with_editor
30635   echo "$as_me:$LINENO: checking for an editor" >&5
30636 echo $ECHO_N "checking for an editor... $ECHO_C" >&6
30637   echo "$as_me:$LINENO: result: $EDITOR" >&5
30638 echo "${ECHO_T}$EDITOR" >&6
30639   if ! test -f $with_editor \
30640       || ! test -x $with_editor; then
30641     # warn the user that they may encounter problems
30642     { echo "$as_me:$LINENO: WARNING: \`$with_editor' is not a path to an executable file" >&5
30643 echo "$as_me: WARNING: \`$with_editor' is not a path to an executable file" >&2;}
30644   fi
30645 elif test no != "${with_editor}"; then
30646   # Search for an editor
30647   for ac_prog in $with_editor
30648 do
30649   # Extract the first word of "$ac_prog", so it can be a program name with args.
30650 set dummy $ac_prog; ac_word=$2
30651 echo "$as_me:$LINENO: checking for $ac_word" >&5
30652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30653 if test "${ac_cv_prog_EDITOR+set}" = set; then
30654   echo $ECHO_N "(cached) $ECHO_C" >&6
30655 else
30656   if test -n "$EDITOR"; then
30657   ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
30658 else
30659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30660 for as_dir in $PATH
30661 do
30662   IFS=$as_save_IFS
30663   test -z "$as_dir" && as_dir=.
30664   for ac_exec_ext in '' $ac_executable_extensions; do
30665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30666     ac_cv_prog_EDITOR="$ac_prog"
30667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30668     break 2
30669   fi
30670 done
30671 done
30672
30673 fi
30674 fi
30675 EDITOR=$ac_cv_prog_EDITOR
30676 if test -n "$EDITOR"; then
30677   echo "$as_me:$LINENO: result: $EDITOR" >&5
30678 echo "${ECHO_T}$EDITOR" >&6
30679 else
30680   echo "$as_me:$LINENO: result: no" >&5
30681 echo "${ECHO_T}no" >&6
30682 fi
30683
30684   test -n "$EDITOR" && break
30685 done
30686 test -n "$EDITOR" || EDITOR="no"
30687
30688     if test no = "${EDITOR}"; then
30689       { { echo "$as_me:$LINENO: error:
30690     Failed to find a text file editor.  CVS cannot be compiled
30691     without a default log message editor.  Searched for
30692     \`$with_editor'.  Try \`configure --with-editor'." >&5
30693 echo "$as_me: error:
30694     Failed to find a text file editor.  CVS cannot be compiled
30695     without a default log message editor.  Searched for
30696     \`$with_editor'.  Try \`configure --with-editor'." >&2;}
30697    { (exit 1); exit 1; }; }
30698     fi
30699 else
30700   { { echo "$as_me:$LINENO: error:
30701     CVS cannot be compiled without a default log message editor.
30702     Try \`configure --with-editor'." >&5
30703 echo "$as_me: error:
30704     CVS cannot be compiled without a default log message editor.
30705     Try \`configure --with-editor'." >&2;}
30706    { (exit 1); exit 1; }; }
30707 fi
30708
30709
30710 cat >>confdefs.h <<_ACEOF
30711 #define EDITOR_DFLT "$EDITOR"
30712 _ACEOF
30713
30714
30715
30716
30717
30718
30719 # Check whether --with-hardcoded-pam-service-name or --without-hardcoded-pam-service-name was given.
30720 if test "${with_hardcoded_pam_service_name+set}" = set; then
30721   withval="$with_hardcoded_pam_service_name"
30722
30723 else
30724   with_hardcoded_pam_service_name=cvs
30725 fi;
30726
30727 if test "x$with_hardcoded_pam_service_name" = xno ||
30728    test "x$with_hardcoded_pam_service_name" = xprogram_name; then
30729
30730 cat >>confdefs.h <<\_ACEOF
30731 #define PAM_SERVICE_NAME program_name
30732 _ACEOF
30733
30734 else
30735   if test x"$with_hardcoded_pam_service_name" = xyes; then
30736     with_hardcoded_pam_service_name=cvs
30737   fi
30738   cat >>confdefs.h <<_ACEOF
30739 #define PAM_SERVICE_NAME "$with_hardcoded_pam_service_name"
30740 _ACEOF
30741
30742 fi
30743
30744
30745
30746
30747 # Check whether --with-tmpdir or --without-tmpdir was given.
30748 if test "${with_tmpdir+set}" = set; then
30749   withval="$with_tmpdir"
30750
30751 fi;
30752
30753 echo "$as_me:$LINENO: checking for temporary directory" >&5
30754 echo $ECHO_N "checking for temporary directory... $ECHO_C" >&6
30755 if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
30756   for with_tmpdir in /tmp /var/tmp no; do
30757     if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
30758         && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
30759       break
30760     fi
30761   done
30762   if test no = "$with_tmpdir"; then
30763     { echo "$as_me:$LINENO: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&5
30764 echo "$as_me: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&2;}
30765     with_tmpdir=/tmp
30766   fi
30767   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
30768 echo "${ECHO_T}$with_tmpdir" >&6
30769 elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
30770   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
30771 echo "${ECHO_T}$with_tmpdir" >&6
30772   { { echo "$as_me:$LINENO: error: --with-tmpdir requires an absolute path." >&5
30773 echo "$as_me: error: --with-tmpdir requires an absolute path." >&2;}
30774    { (exit 1); exit 1; }; }
30775 elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
30776         || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
30777   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
30778 echo "${ECHO_T}$with_tmpdir" >&6
30779   { echo "$as_me:$LINENO: WARNING: User supplied temporary directory ('$with_tmpdir') does not
30780      exist or lacks sufficient permissions for read/write." >&5
30781 echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not
30782      exist or lacks sufficient permissions for read/write." >&2;}
30783 fi
30784
30785
30786 cat >>confdefs.h <<_ACEOF
30787 #define TMPDIR_DFLT "$with_tmpdir"
30788 _ACEOF
30789
30790
30791
30792
30793
30794
30795 # Check whether --with-umask or --without-umask was given.
30796 if test "${with_umask+set}" = set; then
30797   withval="$with_umask"
30798
30799 fi;
30800
30801 if test -z "$with_umask" || test yes = "$with_umask"; then
30802   with_umask=002
30803 elif test no = "$with_umask"; then
30804   with_umask=000
30805 fi
30806
30807
30808 cat >>confdefs.h <<_ACEOF
30809 #define UMASK_DFLT $with_umask
30810 _ACEOF
30811
30812
30813
30814
30815 # Check whether --with-cvs-admin-group or --without-cvs-admin-group was given.
30816 if test "${with_cvs_admin_group+set}" = set; then
30817   withval="$with_cvs_admin_group"
30818
30819 else
30820   with_cvs_admin_group=cvsadmin
30821 fi;
30822
30823 if test yes = "$with_cvs_admin_group"; then
30824   with_cvs_admin_group=cvsadmin
30825 fi
30826 if test no != "$with_cvs_admin_group"; then
30827
30828 cat >>confdefs.h <<_ACEOF
30829 #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
30830 _ACEOF
30831
30832 fi
30833
30834
30835 # Check whether --enable-cvs-ndbm or --disable-cvs-ndbm was given.
30836 if test "${enable_cvs_ndbm+set}" = set; then
30837   enableval="$enable_cvs_ndbm"
30838
30839 else
30840   enable_cvs_ndbm=yes
30841 fi;
30842 if test no != "$enable_cvs_ndbm"; then
30843
30844 cat >>confdefs.h <<\_ACEOF
30845 #define MY_NDBM 1
30846 _ACEOF
30847
30848 fi
30849
30850
30851
30852
30853
30854
30855
30856
30857
30858 # Check for options requesting client and server feature. If none are
30859 # given and we have connect(), we want the full client & server arrangement.
30860 # Check whether --enable-client or --disable-client was given.
30861 if test "${enable_client+set}" = set; then
30862   enableval="$enable_client"
30863
30864 else
30865   if test "$ac_cv_search_connect" != no; then
30866     enable_client=yes
30867   fi
30868 fi;
30869 if test no != "$enable_client"; then
30870
30871 cat >>confdefs.h <<\_ACEOF
30872 #define CLIENT_SUPPORT 1
30873 _ACEOF
30874
30875 fi
30876
30877
30878
30879 # Check whether --enable-password-authenticated-client or --disable-password-authenticated-client was given.
30880 if test "${enable_password_authenticated_client+set}" = set; then
30881   enableval="$enable_password_authenticated_client"
30882
30883 fi;
30884
30885 if test no != "$enable_password_authenticated_client"; then
30886   if test no != "$enable_client"; then
30887
30888 cat >>confdefs.h <<\_ACEOF
30889 #define AUTH_CLIENT_SUPPORT 1
30890 _ACEOF
30891
30892   else
30893     { echo "$as_me:$LINENO: WARNING: --enable-password-authenticated-client is meaningless with
30894        the CVS client disabled (--disable-client)" >&5
30895 echo "$as_me: WARNING: --enable-password-authenticated-client is meaningless with
30896        the CVS client disabled (--disable-client)" >&2;}
30897   fi
30898 fi
30899
30900
30901
30902
30903 # Check whether --enable-server or --disable-server was given.
30904 if test "${enable_server+set}" = set; then
30905   enableval="$enable_server"
30906
30907 else
30908   if test "$ac_cv_search_connect" != no; then
30909      enable_server=yes
30910    fi
30911 fi;
30912
30913 if test no != "$enable_server"; then
30914
30915 cat >>confdefs.h <<\_ACEOF
30916 #define SERVER_SUPPORT 1
30917 _ACEOF
30918
30919
30920             echo "$as_me:$LINENO: checking for library containing crypt" >&5
30921 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
30922 if test "${ac_cv_search_crypt+set}" = set; then
30923   echo $ECHO_N "(cached) $ECHO_C" >&6
30924 else
30925   ac_func_search_save_LIBS=$LIBS
30926 ac_cv_search_crypt=no
30927 cat >conftest.$ac_ext <<_ACEOF
30928 /* confdefs.h.  */
30929 _ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h.  */
30933
30934 /* Override any gcc2 internal prototype to avoid an error.  */
30935 #ifdef __cplusplus
30936 extern "C"
30937 #endif
30938 /* We use char because int might match the return type of a gcc2
30939    builtin and then its argument prototype would still apply.  */
30940 char crypt ();
30941 int
30942 main ()
30943 {
30944 crypt ();
30945   ;
30946   return 0;
30947 }
30948 _ACEOF
30949 rm -f conftest.$ac_objext conftest$ac_exeext
30950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30951   (eval $ac_link) 2>conftest.er1
30952   ac_status=$?
30953   grep -v '^ *+' conftest.er1 >conftest.err
30954   rm -f conftest.er1
30955   cat conftest.err >&5
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); } &&
30958          { ac_try='test -z "$ac_c_werror_flag"
30959                          || test ! -s conftest.err'
30960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30961   (eval $ac_try) 2>&5
30962   ac_status=$?
30963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964   (exit $ac_status); }; } &&
30965          { ac_try='test -s conftest$ac_exeext'
30966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30967   (eval $ac_try) 2>&5
30968   ac_status=$?
30969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970   (exit $ac_status); }; }; then
30971   ac_cv_search_crypt="none required"
30972 else
30973   echo "$as_me: failed program was:" >&5
30974 sed 's/^/| /' conftest.$ac_ext >&5
30975
30976 fi
30977 rm -f conftest.err conftest.$ac_objext \
30978       conftest$ac_exeext conftest.$ac_ext
30979 if test "$ac_cv_search_crypt" = no; then
30980   for ac_lib in crypt; do
30981     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30982     cat >conftest.$ac_ext <<_ACEOF
30983 /* confdefs.h.  */
30984 _ACEOF
30985 cat confdefs.h >>conftest.$ac_ext
30986 cat >>conftest.$ac_ext <<_ACEOF
30987 /* end confdefs.h.  */
30988
30989 /* Override any gcc2 internal prototype to avoid an error.  */
30990 #ifdef __cplusplus
30991 extern "C"
30992 #endif
30993 /* We use char because int might match the return type of a gcc2
30994    builtin and then its argument prototype would still apply.  */
30995 char crypt ();
30996 int
30997 main ()
30998 {
30999 crypt ();
31000   ;
31001   return 0;
31002 }
31003 _ACEOF
31004 rm -f conftest.$ac_objext conftest$ac_exeext
31005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31006   (eval $ac_link) 2>conftest.er1
31007   ac_status=$?
31008   grep -v '^ *+' conftest.er1 >conftest.err
31009   rm -f conftest.er1
31010   cat conftest.err >&5
31011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012   (exit $ac_status); } &&
31013          { ac_try='test -z "$ac_c_werror_flag"
31014                          || test ! -s conftest.err'
31015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31016   (eval $ac_try) 2>&5
31017   ac_status=$?
31018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019   (exit $ac_status); }; } &&
31020          { ac_try='test -s conftest$ac_exeext'
31021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31022   (eval $ac_try) 2>&5
31023   ac_status=$?
31024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025   (exit $ac_status); }; }; then
31026   ac_cv_search_crypt="-l$ac_lib"
31027 break
31028 else
31029   echo "$as_me: failed program was:" >&5
31030 sed 's/^/| /' conftest.$ac_ext >&5
31031
31032 fi
31033 rm -f conftest.err conftest.$ac_objext \
31034       conftest$ac_exeext conftest.$ac_ext
31035   done
31036 fi
31037 LIBS=$ac_func_search_save_LIBS
31038 fi
31039 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
31040 echo "${ECHO_T}$ac_cv_search_crypt" >&6
31041 if test "$ac_cv_search_crypt" != no; then
31042   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
31043
31044 cat >>confdefs.h <<\_ACEOF
31045 #define HAVE_CRYPT 1
31046 _ACEOF
31047
31048
31049 cat >>confdefs.h <<\_ACEOF
31050 #define AUTH_SERVER_SUPPORT 1
31051 _ACEOF
31052
31053 fi
31054
31055           # Check whether --enable-server-flow-control or --disable-server-flow-control was given.
31056 if test "${enable_server_flow_control+set}" = set; then
31057   enableval="$enable_server_flow_control"
31058   if test yes = $enable_server_flow_control; then
31059        enable_server_flow_control=1M,2M
31060      fi
31061 else
31062   enable_server_flow_control=1M,2M
31063 fi;
31064   if test no != $enable_server_flow_control; then
31065     ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
31066     ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
31067     ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
31068     ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
31069     test "" != "$ccvs_lwm" || ccvs_lwm_E="?"
31070     case $ccvs_lwm_E in
31071         G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
31072         M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
31073         k) ccvs_lwm="$ccvs_lwm * 1024";;
31074         b | '') ;;
31075         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
31076                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
31077 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
31078                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
31079    { (exit 1); exit 1; }; }
31080       esac
31081     ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
31082     ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
31083     test "" != "$ccvs_hwm" || ccvs_hwm_E="?"
31084     case $ccvs_hwm_E in
31085         G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
31086         M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
31087         k) ccvs_hwm="$ccvs_hwm * 1024";;
31088         b | '') ccvs_hwm="$ccvs_hwm";;
31089         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
31090                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
31091 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
31092                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
31093    { (exit 1); exit 1; }; }
31094       esac
31095
31096
31097 cat >>confdefs.h <<\_ACEOF
31098 #define SERVER_FLOWCONTROL 1
31099 _ACEOF
31100
31101
31102 cat >>confdefs.h <<_ACEOF
31103 #define SERVER_LO_WATER ($ccvs_lwm)
31104 _ACEOF
31105
31106
31107 cat >>confdefs.h <<_ACEOF
31108 #define SERVER_HI_WATER ($ccvs_hwm)
31109 _ACEOF
31110
31111   fi # enable_server_flow_control
31112 fi # enable_server
31113
31114
31115
31116
31117 # Check whether --enable-pam or --disable-pam was given.
31118 if test "${enable_pam+set}" = set; then
31119   enableval="$enable_pam"
31120
31121 else
31122   enable_pam=no
31123
31124 fi;
31125
31126 if test yes = $enable_pam; then
31127   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
31128   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
31129 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
31130 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
31131   echo $ECHO_N "(cached) $ECHO_C" >&6
31132 fi
31133 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
31134 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
31135 else
31136   # Is the header compilable?
31137 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
31138 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
31139 cat >conftest.$ac_ext <<_ACEOF
31140 /* confdefs.h.  */
31141 _ACEOF
31142 cat confdefs.h >>conftest.$ac_ext
31143 cat >>conftest.$ac_ext <<_ACEOF
31144 /* end confdefs.h.  */
31145 $ac_includes_default
31146 #include <security/pam_appl.h>
31147 _ACEOF
31148 rm -f conftest.$ac_objext
31149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31150   (eval $ac_compile) 2>conftest.er1
31151   ac_status=$?
31152   grep -v '^ *+' conftest.er1 >conftest.err
31153   rm -f conftest.er1
31154   cat conftest.err >&5
31155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156   (exit $ac_status); } &&
31157          { ac_try='test -z "$ac_c_werror_flag"
31158                          || test ! -s conftest.err'
31159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31160   (eval $ac_try) 2>&5
31161   ac_status=$?
31162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163   (exit $ac_status); }; } &&
31164          { ac_try='test -s conftest.$ac_objext'
31165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31166   (eval $ac_try) 2>&5
31167   ac_status=$?
31168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169   (exit $ac_status); }; }; then
31170   ac_header_compiler=yes
31171 else
31172   echo "$as_me: failed program was:" >&5
31173 sed 's/^/| /' conftest.$ac_ext >&5
31174
31175 ac_header_compiler=no
31176 fi
31177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31179 echo "${ECHO_T}$ac_header_compiler" >&6
31180
31181 # Is the header present?
31182 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
31183 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
31184 cat >conftest.$ac_ext <<_ACEOF
31185 /* confdefs.h.  */
31186 _ACEOF
31187 cat confdefs.h >>conftest.$ac_ext
31188 cat >>conftest.$ac_ext <<_ACEOF
31189 /* end confdefs.h.  */
31190 #include <security/pam_appl.h>
31191 _ACEOF
31192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31194   ac_status=$?
31195   grep -v '^ *+' conftest.er1 >conftest.err
31196   rm -f conftest.er1
31197   cat conftest.err >&5
31198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199   (exit $ac_status); } >/dev/null; then
31200   if test -s conftest.err; then
31201     ac_cpp_err=$ac_c_preproc_warn_flag
31202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31203   else
31204     ac_cpp_err=
31205   fi
31206 else
31207   ac_cpp_err=yes
31208 fi
31209 if test -z "$ac_cpp_err"; then
31210   ac_header_preproc=yes
31211 else
31212   echo "$as_me: failed program was:" >&5
31213 sed 's/^/| /' conftest.$ac_ext >&5
31214
31215   ac_header_preproc=no
31216 fi
31217 rm -f conftest.err conftest.$ac_ext
31218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31219 echo "${ECHO_T}$ac_header_preproc" >&6
31220
31221 # So?  What about this header?
31222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31223   yes:no: )
31224     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31225 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31226     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
31227 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
31228     ac_header_preproc=yes
31229     ;;
31230   no:yes:* )
31231     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
31232 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
31233     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&5
31234 echo "$as_me: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&2;}
31235     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
31236 echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
31237     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&5
31238 echo "$as_me: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31239     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
31240 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
31241     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
31242 echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
31243     (
31244       cat <<\_ASBOX
31245 ## ------------------------------ ##
31246 ## Report this to bug-cvs@gnu.org ##
31247 ## ------------------------------ ##
31248 _ASBOX
31249     ) |
31250       sed "s/^/$as_me: WARNING:     /" >&2
31251     ;;
31252 esac
31253 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
31254 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
31255 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
31256   echo $ECHO_N "(cached) $ECHO_C" >&6
31257 else
31258   ac_cv_header_security_pam_appl_h=$ac_header_preproc
31259 fi
31260 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
31261 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
31262
31263 fi
31264 if test $ac_cv_header_security_pam_appl_h = yes; then
31265
31266 cat >>confdefs.h <<\_ACEOF
31267 #define HAVE_PAM 1
31268 _ACEOF
31269
31270     echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
31271 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
31272 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
31273   echo $ECHO_N "(cached) $ECHO_C" >&6
31274 else
31275   ac_check_lib_save_LIBS=$LIBS
31276 LIBS="-lpam  $LIBS"
31277 cat >conftest.$ac_ext <<_ACEOF
31278 /* confdefs.h.  */
31279 _ACEOF
31280 cat confdefs.h >>conftest.$ac_ext
31281 cat >>conftest.$ac_ext <<_ACEOF
31282 /* end confdefs.h.  */
31283
31284 /* Override any gcc2 internal prototype to avoid an error.  */
31285 #ifdef __cplusplus
31286 extern "C"
31287 #endif
31288 /* We use char because int might match the return type of a gcc2
31289    builtin and then its argument prototype would still apply.  */
31290 char pam_start ();
31291 int
31292 main ()
31293 {
31294 pam_start ();
31295   ;
31296   return 0;
31297 }
31298 _ACEOF
31299 rm -f conftest.$ac_objext conftest$ac_exeext
31300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31301   (eval $ac_link) 2>conftest.er1
31302   ac_status=$?
31303   grep -v '^ *+' conftest.er1 >conftest.err
31304   rm -f conftest.er1
31305   cat conftest.err >&5
31306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307   (exit $ac_status); } &&
31308          { ac_try='test -z "$ac_c_werror_flag"
31309                          || test ! -s conftest.err'
31310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31311   (eval $ac_try) 2>&5
31312   ac_status=$?
31313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314   (exit $ac_status); }; } &&
31315          { ac_try='test -s conftest$ac_exeext'
31316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31317   (eval $ac_try) 2>&5
31318   ac_status=$?
31319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320   (exit $ac_status); }; }; then
31321   ac_cv_lib_pam_pam_start=yes
31322 else
31323   echo "$as_me: failed program was:" >&5
31324 sed 's/^/| /' conftest.$ac_ext >&5
31325
31326 ac_cv_lib_pam_pam_start=no
31327 fi
31328 rm -f conftest.err conftest.$ac_objext \
31329       conftest$ac_exeext conftest.$ac_ext
31330 LIBS=$ac_check_lib_save_LIBS
31331 fi
31332 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
31333 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
31334 if test $ac_cv_lib_pam_pam_start = yes; then
31335   LIBS="${LIBS} -lpam"
31336 else
31337   { { echo "$as_me:$LINENO: error: Could not find PAM libraries but the headers exist.
31338       Give the --disable-pam option to compile without PAM support (or fix
31339       your broken configuration)" >&5
31340 echo "$as_me: error: Could not find PAM libraries but the headers exist.
31341       Give the --disable-pam option to compile without PAM support (or fix
31342       your broken configuration)" >&2;}
31343    { (exit 1); exit 1; }; }
31344
31345 fi
31346
31347 else
31348   { { echo "$as_me:$LINENO: error: Could not find PAM headers" >&5
31349 echo "$as_me: error: Could not find PAM headers" >&2;}
31350    { (exit 1); exit 1; }; }
31351
31352 fi
31353
31354
31355 fi
31356
31357
31358
31359
31360 # Check whether --enable-case-sensitivity or --disable-case-sensitivity was given.
31361 if test "${enable_case_sensitivity+set}" = set; then
31362   enableval="$enable_case_sensitivity"
31363   case "$enable_case_sensitivity" in
31364        yes | no | auto) ;;
31365        *)
31366           { { echo "$as_me:$LINENO: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." >&5
31367 echo "$as_me: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." >&2;}
31368    { (exit 1); exit 1; }; }
31369           ;;
31370      esac
31371 else
31372   enable_case_sensitivity=auto
31373 fi;
31374
31375 acx_forced=' (forced)'
31376 echo "$as_me:$LINENO: checking for a case sensitive file system" >&5
31377 echo $ECHO_N "checking for a case sensitive file system... $ECHO_C" >&6
31378 if test $enable_case_sensitivity = auto; then
31379         if test "${acx_cv_case_sensitive+set}" = set; then
31380   echo $ECHO_N "(cached) $ECHO_C" >&6
31381 else
31382    rm -f ac_TEST_filenames_CASE_sensitive
31383     echo foo >ac_test_filenames_case_sensitive
31384     if test -f ac_TEST_filenames_CASE_sensitive; then
31385       acx_cv_case_sensitive=no
31386     else
31387       acx_cv_case_sensitive=yes
31388     fi
31389     rm ac_test_filenames_case_sensitive
31390
31391 fi
31392
31393   enable_case_sensitivity=$acx_cv_case_sensitive
31394   acx_forced=
31395 fi
31396 echo "$as_me:$LINENO: result: $enable_case_sensitivity$acx_forced" >&5
31397 echo "${ECHO_T}$enable_case_sensitivity$acx_forced" >&6
31398 if test $enable_case_sensitivity = no; then
31399
31400 cat >>confdefs.h <<\_ACEOF
31401 #define FILENAMES_CASE_INSENSITIVE 1
31402 _ACEOF
31403
31404       case $LIBOBJS in
31405     "fncase.$ac_objext"   | \
31406   *" fncase.$ac_objext"   | \
31407     "fncase.$ac_objext "* | \
31408   *" fncase.$ac_objext "* ) ;;
31409   *) LIBOBJS="$LIBOBJS fncase.$ac_objext" ;;
31410 esac
31411
31412 fi
31413
31414
31415
31416
31417 # Check whether --enable-encryption or --disable-encryption was given.
31418 if test "${enable_encryption+set}" = set; then
31419   enableval="$enable_encryption"
31420
31421 else
31422   enable_encryption=no
31423 fi;
31424 if test "$enable_encryption" = yes; then
31425   if test no != "$with_client" || test no != "$with_server"; then
31426
31427 cat >>confdefs.h <<\_ACEOF
31428 #define ENCRYPTION 1
31429 _ACEOF
31430
31431   else
31432     { echo "$as_me:$LINENO: WARNING: --enable-encryption is meaningless when neither the CVS client
31433        nor the CVS server is enabled (--disable-client and --disable-server)." >&5
31434 echo "$as_me: WARNING: --enable-encryption is meaningless when neither the CVS client
31435        nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
31436   fi
31437 fi
31438
31439
31440
31441
31442 # Check whether --enable-force-editor or --disable-force-editor was given.
31443 if test "${enable_force_editor+set}" = set; then
31444   enableval="$enable_force_editor"
31445
31446 else
31447   enable_force_editor=no
31448 fi;
31449
31450 if test yes = "$enable_force_editor"; then
31451
31452 cat >>confdefs.h <<\_ACEOF
31453 #define FORCE_USE_EDITOR 1
31454 _ACEOF
31455
31456 fi
31457
31458
31459
31460
31461 # Check for options requesting client and server feature. If none are
31462 # given and we have connect(), we want the full client & server arrangement.
31463 # Check whether --enable-lock-compatibility or --disable-lock-compatibility was given.
31464 if test "${enable_lock_compatibility+set}" = set; then
31465   enableval="$enable_lock_compatibility"
31466
31467 else
31468   enable_lock_compatibility=yes
31469 fi;
31470
31471 if test x$enable_lock_compatibility = xyes; then
31472
31473 cat >>confdefs.h <<\_ACEOF
31474 #define LOCK_COMPATIBILITY 1
31475 _ACEOF
31476
31477 fi
31478
31479
31480
31481
31482 # Check whether --enable-rootcommit or --disable-rootcommit was given.
31483 if test "${enable_rootcommit+set}" = set; then
31484   enableval="$enable_rootcommit"
31485
31486 else
31487   enable_rootcommit=no
31488 fi;
31489 if test "$enable_rootcommit" = no; then
31490
31491 cat >>confdefs.h <<\_ACEOF
31492 #define CVS_BADROOT 1
31493 _ACEOF
31494
31495 fi
31496
31497
31498 # Check whether --enable-old-info-support or --disable-old-info-support was given.
31499 if test "${enable_old_info_support+set}" = set; then
31500   enableval="$enable_old_info_support"
31501
31502 else
31503   enable_old_info_format_support=yes
31504 fi;
31505 if test "$enable_old_info_format_support" = yes; then
31506
31507 cat >>confdefs.h <<\_ACEOF
31508 #define SUPPORT_OLD_INFO_FMT_STRINGS 1
31509 _ACEOF
31510
31511 fi
31512
31513
31514
31515
31516
31517
31518
31519
31520 echo "$as_me:$LINENO: checking for cygwin32" >&5
31521 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6
31522 if test "${ccvs_cv_sys_cygwin32+set}" = set; then
31523   echo $ECHO_N "(cached) $ECHO_C" >&6
31524 else
31525   cat >conftest.$ac_ext <<_ACEOF
31526 /* confdefs.h.  */
31527 _ACEOF
31528 cat confdefs.h >>conftest.$ac_ext
31529 cat >>conftest.$ac_ext <<_ACEOF
31530 /* end confdefs.h.  */
31531
31532 int
31533 main ()
31534 {
31535 return __CYGWIN32__;
31536   ;
31537   return 0;
31538 }
31539 _ACEOF
31540 rm -f conftest.$ac_objext
31541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31542   (eval $ac_compile) 2>conftest.er1
31543   ac_status=$?
31544   grep -v '^ *+' conftest.er1 >conftest.err
31545   rm -f conftest.er1
31546   cat conftest.err >&5
31547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548   (exit $ac_status); } &&
31549          { ac_try='test -z "$ac_c_werror_flag"
31550                          || test ! -s conftest.err'
31551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31552   (eval $ac_try) 2>&5
31553   ac_status=$?
31554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555   (exit $ac_status); }; } &&
31556          { ac_try='test -s conftest.$ac_objext'
31557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31558   (eval $ac_try) 2>&5
31559   ac_status=$?
31560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561   (exit $ac_status); }; }; then
31562   ccvs_cv_sys_cygwin32=yes
31563 else
31564   echo "$as_me: failed program was:" >&5
31565 sed 's/^/| /' conftest.$ac_ext >&5
31566
31567 ccvs_cv_sys_cygwin32=no
31568 fi
31569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31570 fi
31571 echo "$as_me:$LINENO: result: $ccvs_cv_sys_cygwin32" >&5
31572 echo "${ECHO_T}$ccvs_cv_sys_cygwin32" >&6
31573 if test $ccvs_cv_sys_cygwin32 = yes; then
31574   LIBS="$LIBS -ladvapi32"
31575
31576
31577 cat >>confdefs.h <<\_ACEOF
31578 #define UTIME_EXPECTS_WRITABLE 1
31579 _ACEOF
31580
31581
31582
31583 cat >>confdefs.h <<\_ACEOF
31584 #define USE_SETMODE_STDOUT 1
31585 _ACEOF
31586
31587
31588 cat >>confdefs.h <<\_ACEOF
31589 #define HAVE_SETMODE 1
31590 _ACEOF
31591
31592 fi
31593
31594           ac_config_files="$ac_config_files contrib/validate_repo"
31595
31596           ac_config_files="$ac_config_files contrib/clmerge"
31597
31598           ac_config_files="$ac_config_files contrib/cln_hist"
31599
31600           ac_config_files="$ac_config_files contrib/commit_prep"
31601
31602           ac_config_files="$ac_config_files contrib/cvs_acls"
31603
31604           ac_config_files="$ac_config_files contrib/log"
31605
31606           ac_config_files="$ac_config_files contrib/log_accum"
31607
31608           ac_config_files="$ac_config_files contrib/mfpipe"
31609
31610           ac_config_files="$ac_config_files contrib/pvcs2rcs"
31611
31612           ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh"
31613
31614           ac_config_files="$ac_config_files contrib/rcslock"
31615
31616           ac_config_files="$ac_config_files contrib/sccs2rcs"
31617
31618           ac_config_files="$ac_config_files doc/mkman"
31619
31620           ac_config_files="$ac_config_files src/cvsbug"
31621
31622           ac_config_files="$ac_config_files windows-NT/fix-msvc-mak:windows-NT/plhead.pl:windows-NT/fix-msvc-mak.pl"
31623
31624           ac_config_files="$ac_config_files windows-NT/mkconfig:windows-NT/plhead.pl:windows-NT/mkconfig.pl"
31625
31626
31627                                                                                                                                                                           ac_config_files="$ac_config_files Makefile contrib/Makefile cvs.spec diff/Makefile doc/Makefile emx/Makefile lib/Makefile m4/Makefile man/Makefile os2/Makefile src/Makefile src/sanity.config.sh tools/Makefile vms/Makefile windows-NT/Makefile windows-NT/SCC/Makefile zlib/Makefile"
31628
31629
31630 cat >confcache <<\_ACEOF
31631 # This file is a shell script that caches the results of configure
31632 # tests run on this system so they can be shared between configure
31633 # scripts and configure runs, see configure's option --config-cache.
31634 # It is not useful on other systems.  If it contains results you don't
31635 # want to keep, you may remove or edit it.
31636 #
31637 # config.status only pays attention to the cache file if you give it
31638 # the --recheck option to rerun configure.
31639 #
31640 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31641 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31642 # following values.
31643
31644 _ACEOF
31645
31646 # The following way of writing the cache mishandles newlines in values,
31647 # but we know of no workaround that is simple, portable, and efficient.
31648 # So, don't put newlines in cache variables' values.
31649 # Ultrix sh set writes to stderr and can't be redirected directly,
31650 # and sets the high bit in the cache file unless we assign to the vars.
31651 {
31652   (set) 2>&1 |
31653     case `(ac_space=' '; set | grep ac_space) 2>&1` in
31654     *ac_space=\ *)
31655       # `set' does not quote correctly, so add quotes (double-quote
31656       # substitution turns \\\\ into \\, and sed turns \\ into \).
31657       sed -n \
31658         "s/'/'\\\\''/g;
31659           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31660       ;;
31661     *)
31662       # `set' quotes correctly as required by POSIX, so do not add quotes.
31663       sed -n \
31664         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31665       ;;
31666     esac;
31667 } |
31668   sed '
31669      t clear
31670      : clear
31671      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31672      t end
31673      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31674      : end' >>confcache
31675 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31676   if test -w $cache_file; then
31677     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31678     cat confcache >$cache_file
31679   else
31680     echo "not updating unwritable cache $cache_file"
31681   fi
31682 fi
31683 rm -f confcache
31684
31685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31686 # Let make expand exec_prefix.
31687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31688
31689 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31690 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31691 # trailing colons and then remove the whole line if VPATH becomes empty
31692 # (actually we leave an empty line to preserve line numbers).
31693 if test "x$srcdir" = x.; then
31694   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31695 s/:*\$(srcdir):*/:/;
31696 s/:*\${srcdir}:*/:/;
31697 s/:*@srcdir@:*/:/;
31698 s/^\([^=]*=[     ]*\):*/\1/;
31699 s/:*$//;
31700 s/^[^=]*=[       ]*$//;
31701 }'
31702 fi
31703
31704 DEFS=-DHAVE_CONFIG_H
31705
31706 ac_libobjs=
31707 ac_ltlibobjs=
31708 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31709   # 1. Remove the extension, and $U if already installed.
31710   ac_i=`echo "$ac_i" |
31711          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31712   # 2. Add them.
31713   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31714   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31715 done
31716 LIBOBJS=$ac_libobjs
31717
31718 LTLIBOBJS=$ac_ltlibobjs
31719
31720
31721 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31722   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
31723 Usually this means the macro was only invoked conditionally." >&5
31724 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
31725 Usually this means the macro was only invoked conditionally." >&2;}
31726    { (exit 1); exit 1; }; }
31727 fi
31728 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31729   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31730 Usually this means the macro was only invoked conditionally." >&5
31731 echo "$as_me: error: conditional \"AMDEP\" was never defined.
31732 Usually this means the macro was only invoked conditionally." >&2;}
31733    { (exit 1); exit 1; }; }
31734 fi
31735 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31736   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31737 Usually this means the macro was only invoked conditionally." >&5
31738 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31739 Usually this means the macro was only invoked conditionally." >&2;}
31740    { (exit 1); exit 1; }; }
31741 fi
31742 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31743   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31744 Usually this means the macro was only invoked conditionally." >&5
31745 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31746 Usually this means the macro was only invoked conditionally." >&2;}
31747    { (exit 1); exit 1; }; }
31748 fi
31749 if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
31750   { { echo "$as_me:$LINENO: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
31751 Usually this means the macro was only invoked conditionally." >&5
31752 echo "$as_me: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
31753 Usually this means the macro was only invoked conditionally." >&2;}
31754    { (exit 1); exit 1; }; }
31755 fi
31756
31757 : ${CONFIG_STATUS=./config.status}
31758 ac_clean_files_save=$ac_clean_files
31759 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31760 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31761 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31762 cat >$CONFIG_STATUS <<_ACEOF
31763 #! $SHELL
31764 # Generated by $as_me.
31765 # Run this file to recreate the current configuration.
31766 # Compiler output produced by configure, useful for debugging
31767 # configure, is in config.log if it exists.
31768
31769 debug=false
31770 ac_cs_recheck=false
31771 ac_cs_silent=false
31772 SHELL=\${CONFIG_SHELL-$SHELL}
31773 _ACEOF
31774
31775 cat >>$CONFIG_STATUS <<\_ACEOF
31776 ## --------------------- ##
31777 ## M4sh Initialization.  ##
31778 ## --------------------- ##
31779
31780 # Be Bourne compatible
31781 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31782   emulate sh
31783   NULLCMD=:
31784   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31785   # is contrary to our usage.  Disable this feature.
31786   alias -g '${1+"$@"}'='"$@"'
31787 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31788   set -o posix
31789 fi
31790 DUALCASE=1; export DUALCASE # for MKS sh
31791
31792 # Support unset when possible.
31793 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31794   as_unset=unset
31795 else
31796   as_unset=false
31797 fi
31798
31799
31800 # Work around bugs in pre-3.0 UWIN ksh.
31801 $as_unset ENV MAIL MAILPATH
31802 PS1='$ '
31803 PS2='> '
31804 PS4='+ '
31805
31806 # NLS nuisances.
31807 for as_var in \
31808   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31809   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31810   LC_TELEPHONE LC_TIME
31811 do
31812   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31813     eval $as_var=C; export $as_var
31814   else
31815     $as_unset $as_var
31816   fi
31817 done
31818
31819 # Required to use basename.
31820 if expr a : '\(a\)' >/dev/null 2>&1; then
31821   as_expr=expr
31822 else
31823   as_expr=false
31824 fi
31825
31826 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31827   as_basename=basename
31828 else
31829   as_basename=false
31830 fi
31831
31832
31833 # Name of the executable.
31834 as_me=`$as_basename "$0" ||
31835 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31836          X"$0" : 'X\(//\)$' \| \
31837          X"$0" : 'X\(/\)$' \| \
31838          .     : '\(.\)' 2>/dev/null ||
31839 echo X/"$0" |
31840     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31841           /^X\/\(\/\/\)$/{ s//\1/; q; }
31842           /^X\/\(\/\).*/{ s//\1/; q; }
31843           s/.*/./; q'`
31844
31845
31846 # PATH needs CR, and LINENO needs CR and PATH.
31847 # Avoid depending upon Character Ranges.
31848 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31849 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31850 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31851 as_cr_digits='0123456789'
31852 as_cr_alnum=$as_cr_Letters$as_cr_digits
31853
31854 # The user is always right.
31855 if test "${PATH_SEPARATOR+set}" != set; then
31856   echo "#! /bin/sh" >conf$$.sh
31857   echo  "exit 0"   >>conf$$.sh
31858   chmod +x conf$$.sh
31859   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31860     PATH_SEPARATOR=';'
31861   else
31862     PATH_SEPARATOR=:
31863   fi
31864   rm -f conf$$.sh
31865 fi
31866
31867
31868   as_lineno_1=$LINENO
31869   as_lineno_2=$LINENO
31870   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31871   test "x$as_lineno_1" != "x$as_lineno_2" &&
31872   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31873   # Find who we are.  Look in the path if we contain no path at all
31874   # relative or not.
31875   case $0 in
31876     *[\\/]* ) as_myself=$0 ;;
31877     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31878 for as_dir in $PATH
31879 do
31880   IFS=$as_save_IFS
31881   test -z "$as_dir" && as_dir=.
31882   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31883 done
31884
31885        ;;
31886   esac
31887   # We did not find ourselves, most probably we were run as `sh COMMAND'
31888   # in which case we are not to be found in the path.
31889   if test "x$as_myself" = x; then
31890     as_myself=$0
31891   fi
31892   if test ! -f "$as_myself"; then
31893     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31894 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31895    { (exit 1); exit 1; }; }
31896   fi
31897   case $CONFIG_SHELL in
31898   '')
31899     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31900 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31901 do
31902   IFS=$as_save_IFS
31903   test -z "$as_dir" && as_dir=.
31904   for as_base in sh bash ksh sh5; do
31905          case $as_dir in
31906          /*)
31907            if ("$as_dir/$as_base" -c '
31908   as_lineno_1=$LINENO
31909   as_lineno_2=$LINENO
31910   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31911   test "x$as_lineno_1" != "x$as_lineno_2" &&
31912   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31913              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31914              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31915              CONFIG_SHELL=$as_dir/$as_base
31916              export CONFIG_SHELL
31917              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31918            fi;;
31919          esac
31920        done
31921 done
31922 ;;
31923   esac
31924
31925   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31926   # uniformly replaced by the line number.  The first 'sed' inserts a
31927   # line-number line before each line; the second 'sed' does the real
31928   # work.  The second script uses 'N' to pair each line-number line
31929   # with the numbered line, and appends trailing '-' during
31930   # substitution so that $LINENO is not a special case at line end.
31931   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31932   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31933   sed '=' <$as_myself |
31934     sed '
31935       N
31936       s,$,-,
31937       : loop
31938       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31939       t loop
31940       s,-$,,
31941       s,^['$as_cr_digits']*\n,,
31942     ' >$as_me.lineno &&
31943   chmod +x $as_me.lineno ||
31944     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31945 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31946    { (exit 1); exit 1; }; }
31947
31948   # Don't try to exec as it changes $[0], causing all sort of problems
31949   # (the dirname of $[0] is not the place where we might find the
31950   # original and so on.  Autoconf is especially sensible to this).
31951   . ./$as_me.lineno
31952   # Exit status is that of the last command.
31953   exit
31954 }
31955
31956
31957 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31958   *c*,-n*) ECHO_N= ECHO_C='
31959 ' ECHO_T='      ' ;;
31960   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31961   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31962 esac
31963
31964 if expr a : '\(a\)' >/dev/null 2>&1; then
31965   as_expr=expr
31966 else
31967   as_expr=false
31968 fi
31969
31970 rm -f conf$$ conf$$.exe conf$$.file
31971 echo >conf$$.file
31972 if ln -s conf$$.file conf$$ 2>/dev/null; then
31973   # We could just check for DJGPP; but this test a) works b) is more generic
31974   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31975   if test -f conf$$.exe; then
31976     # Don't use ln at all; we don't have any links
31977     as_ln_s='cp -p'
31978   else
31979     as_ln_s='ln -s'
31980   fi
31981 elif ln conf$$.file conf$$ 2>/dev/null; then
31982   as_ln_s=ln
31983 else
31984   as_ln_s='cp -p'
31985 fi
31986 rm -f conf$$ conf$$.exe conf$$.file
31987
31988 if mkdir -p . 2>/dev/null; then
31989   as_mkdir_p=:
31990 else
31991   test -d ./-p && rmdir ./-p
31992   as_mkdir_p=false
31993 fi
31994
31995 as_executable_p="test -f"
31996
31997 # Sed expression to map a string onto a valid CPP name.
31998 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31999
32000 # Sed expression to map a string onto a valid variable name.
32001 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32002
32003
32004 # IFS
32005 # We need space, tab and new line, in precisely that order.
32006 as_nl='
32007 '
32008 IFS="   $as_nl"
32009
32010 # CDPATH.
32011 $as_unset CDPATH
32012
32013 exec 6>&1
32014
32015 # Open the log real soon, to keep \$[0] and so on meaningful, and to
32016 # report actual input values of CONFIG_FILES etc. instead of their
32017 # values after options handling.  Logging --version etc. is OK.
32018 exec 5>>config.log
32019 {
32020   echo
32021   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32022 ## Running $as_me. ##
32023 _ASBOX
32024 } >&5
32025 cat >&5 <<_CSEOF
32026
32027 This file was extended by Concurrent Versions System (CVS) $as_me 1.12.9, which was
32028 generated by GNU Autoconf 2.58.  Invocation command line was
32029
32030   CONFIG_FILES    = $CONFIG_FILES
32031   CONFIG_HEADERS  = $CONFIG_HEADERS
32032   CONFIG_LINKS    = $CONFIG_LINKS
32033   CONFIG_COMMANDS = $CONFIG_COMMANDS
32034   $ $0 $@
32035
32036 _CSEOF
32037 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
32038 echo >&5
32039 _ACEOF
32040
32041 # Files that config.status was made for.
32042 if test -n "$ac_config_files"; then
32043   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
32044 fi
32045
32046 if test -n "$ac_config_headers"; then
32047   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
32048 fi
32049
32050 if test -n "$ac_config_links"; then
32051   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
32052 fi
32053
32054 if test -n "$ac_config_commands"; then
32055   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
32056 fi
32057
32058 cat >>$CONFIG_STATUS <<\_ACEOF
32059
32060 ac_cs_usage="\
32061 \`$as_me' instantiates files from templates according to the
32062 current configuration.
32063
32064 Usage: $0 [OPTIONS] [FILE]...
32065
32066   -h, --help       print this help, then exit
32067   -V, --version    print version number, then exit
32068   -q, --quiet      do not print progress messages
32069   -d, --debug      don't remove temporary files
32070       --recheck    update $as_me by reconfiguring in the same conditions
32071   --file=FILE[:TEMPLATE]
32072                    instantiate the configuration file FILE
32073   --header=FILE[:TEMPLATE]
32074                    instantiate the configuration header FILE
32075
32076 Configuration files:
32077 $config_files
32078
32079 Configuration headers:
32080 $config_headers
32081
32082 Configuration commands:
32083 $config_commands
32084
32085 Report bugs to <bug-autoconf@gnu.org>."
32086 _ACEOF
32087
32088 cat >>$CONFIG_STATUS <<_ACEOF
32089 ac_cs_version="\\
32090 Concurrent Versions System (CVS) config.status 1.12.9
32091 configured by $0, generated by GNU Autoconf 2.58,
32092   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
32093
32094 Copyright (C) 2003 Free Software Foundation, Inc.
32095 This config.status script is free software; the Free Software Foundation
32096 gives unlimited permission to copy, distribute and modify it."
32097 srcdir=$srcdir
32098 INSTALL="$INSTALL"
32099 _ACEOF
32100
32101 cat >>$CONFIG_STATUS <<\_ACEOF
32102 # If no file are specified by the user, then we need to provide default
32103 # value.  By we need to know if files were specified by the user.
32104 ac_need_defaults=:
32105 while test $# != 0
32106 do
32107   case $1 in
32108   --*=*)
32109     ac_option=`expr "x$1" : 'x\([^=]*\)='`
32110     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
32111     ac_shift=:
32112     ;;
32113   -*)
32114     ac_option=$1
32115     ac_optarg=$2
32116     ac_shift=shift
32117     ;;
32118   *) # This is not an option, so the user has probably given explicit
32119      # arguments.
32120      ac_option=$1
32121      ac_need_defaults=false;;
32122   esac
32123
32124   case $ac_option in
32125   # Handling of the options.
32126 _ACEOF
32127 cat >>$CONFIG_STATUS <<\_ACEOF
32128   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32129     ac_cs_recheck=: ;;
32130   --version | --vers* | -V )
32131     echo "$ac_cs_version"; exit 0 ;;
32132   --he | --h)
32133     # Conflict between --help and --header
32134     { { echo "$as_me:$LINENO: error: ambiguous option: $1
32135 Try \`$0 --help' for more information." >&5
32136 echo "$as_me: error: ambiguous option: $1
32137 Try \`$0 --help' for more information." >&2;}
32138    { (exit 1); exit 1; }; };;
32139   --help | --hel | -h )
32140     echo "$ac_cs_usage"; exit 0 ;;
32141   --debug | --d* | -d )
32142     debug=: ;;
32143   --file | --fil | --fi | --f )
32144     $ac_shift
32145     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32146     ac_need_defaults=false;;
32147   --header | --heade | --head | --hea )
32148     $ac_shift
32149     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32150     ac_need_defaults=false;;
32151   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32152   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32153     ac_cs_silent=: ;;
32154
32155   # This is an error.
32156   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
32157 Try \`$0 --help' for more information." >&5
32158 echo "$as_me: error: unrecognized option: $1
32159 Try \`$0 --help' for more information." >&2;}
32160    { (exit 1); exit 1; }; } ;;
32161
32162   *) ac_config_targets="$ac_config_targets $1" ;;
32163
32164   esac
32165   shift
32166 done
32167
32168 ac_configure_extra_args=
32169
32170 if $ac_cs_silent; then
32171   exec 6>/dev/null
32172   ac_configure_extra_args="$ac_configure_extra_args --silent"
32173 fi
32174
32175 _ACEOF
32176 cat >>$CONFIG_STATUS <<_ACEOF
32177 if \$ac_cs_recheck; then
32178   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32179   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32180 fi
32181
32182 _ACEOF
32183
32184 cat >>$CONFIG_STATUS <<_ACEOF
32185 #
32186 # INIT-COMMANDS section.
32187 #
32188
32189 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32190 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32191     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
32192     # from automake.
32193     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32194     # Capture the value of LINGUAS because we need it to compute CATALOGS.
32195     LINGUAS="${LINGUAS-%UNSET%}"
32196
32197
32198 _ACEOF
32199
32200
32201
32202 cat >>$CONFIG_STATUS <<\_ACEOF
32203 for ac_config_target in $ac_config_targets
32204 do
32205   case "$ac_config_target" in
32206   # Handling of arguments.
32207   "contrib/validate_repo" ) CONFIG_FILES="$CONFIG_FILES contrib/validate_repo" ;;
32208   "contrib/clmerge" ) CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;;
32209   "contrib/cln_hist" ) CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;;
32210   "contrib/commit_prep" ) CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;;
32211   "contrib/cvs_acls" ) CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;;
32212   "contrib/log" ) CONFIG_FILES="$CONFIG_FILES contrib/log" ;;
32213   "contrib/log_accum" ) CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;;
32214   "contrib/mfpipe" ) CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;;
32215   "contrib/pvcs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;;
32216   "contrib/rcs2log" ) CONFIG_FILES="$CONFIG_FILES contrib/rcs2log:contrib/rcs2log.sh" ;;
32217   "contrib/rcslock" ) CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;;
32218   "contrib/sccs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;;
32219   "doc/mkman" ) CONFIG_FILES="$CONFIG_FILES doc/mkman" ;;
32220   "src/cvsbug" ) CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;;
32221   "windows-NT/fix-msvc-mak" ) CONFIG_FILES="$CONFIG_FILES windows-NT/fix-msvc-mak:windows-NT/plhead.pl:windows-NT/fix-msvc-mak.pl" ;;
32222   "windows-NT/mkconfig" ) CONFIG_FILES="$CONFIG_FILES windows-NT/mkconfig:windows-NT/plhead.pl:windows-NT/mkconfig.pl" ;;
32223   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32224   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
32225   "cvs.spec" ) CONFIG_FILES="$CONFIG_FILES cvs.spec" ;;
32226   "diff/Makefile" ) CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
32227   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32228   "emx/Makefile" ) CONFIG_FILES="$CONFIG_FILES emx/Makefile" ;;
32229   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
32230   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
32231   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
32232   "os2/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/Makefile" ;;
32233   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32234   "src/sanity.config.sh" ) CONFIG_FILES="$CONFIG_FILES src/sanity.config.sh" ;;
32235   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
32236   "vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES vms/Makefile" ;;
32237   "windows-NT/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/Makefile" ;;
32238   "windows-NT/SCC/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/SCC/Makefile" ;;
32239   "zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
32240   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32241   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32242   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32243   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32244 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32245    { (exit 1); exit 1; }; };;
32246   esac
32247 done
32248
32249 # If the user did not use the arguments to specify the items to instantiate,
32250 # then the envvar interface is used.  Set only those that are not.
32251 # We use the long form for the default assignment because of an extremely
32252 # bizarre bug on SunOS 4.1.3.
32253 if $ac_need_defaults; then
32254   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32255   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32256   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32257 fi
32258
32259 # Have a temporary directory for convenience.  Make it in the build tree
32260 # simply because there is no reason to put it here, and in addition,
32261 # creating and moving files from /tmp can sometimes cause problems.
32262 # Create a temporary directory, and hook for its removal unless debugging.
32263 $debug ||
32264 {
32265   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
32266   trap '{ (exit 1); exit 1; }' 1 2 13 15
32267 }
32268
32269 # Create a (secure) tmp directory for tmp files.
32270
32271 {
32272   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
32273   test -n "$tmp" && test -d "$tmp"
32274 }  ||
32275 {
32276   tmp=./confstat$$-$RANDOM
32277   (umask 077 && mkdir $tmp)
32278 } ||
32279 {
32280    echo "$me: cannot create a temporary directory in ." >&2
32281    { (exit 1); exit 1; }
32282 }
32283
32284 _ACEOF
32285
32286 cat >>$CONFIG_STATUS <<_ACEOF
32287
32288 #
32289 # CONFIG_FILES section.
32290 #
32291
32292 # No need to generate the scripts if there are no CONFIG_FILES.
32293 # This happens for instance when ./config.status config.h
32294 if test -n "\$CONFIG_FILES"; then
32295   # Protect against being on the right side of a sed subst in config.status.
32296   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32297    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32298 s,@SHELL@,$SHELL,;t t
32299 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32300 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32301 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32302 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32303 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32304 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32305 s,@exec_prefix@,$exec_prefix,;t t
32306 s,@prefix@,$prefix,;t t
32307 s,@program_transform_name@,$program_transform_name,;t t
32308 s,@bindir@,$bindir,;t t
32309 s,@sbindir@,$sbindir,;t t
32310 s,@libexecdir@,$libexecdir,;t t
32311 s,@datadir@,$datadir,;t t
32312 s,@sysconfdir@,$sysconfdir,;t t
32313 s,@sharedstatedir@,$sharedstatedir,;t t
32314 s,@localstatedir@,$localstatedir,;t t
32315 s,@libdir@,$libdir,;t t
32316 s,@includedir@,$includedir,;t t
32317 s,@oldincludedir@,$oldincludedir,;t t
32318 s,@infodir@,$infodir,;t t
32319 s,@mandir@,$mandir,;t t
32320 s,@build_alias@,$build_alias,;t t
32321 s,@host_alias@,$host_alias,;t t
32322 s,@target_alias@,$target_alias,;t t
32323 s,@DEFS@,$DEFS,;t t
32324 s,@ECHO_C@,$ECHO_C,;t t
32325 s,@ECHO_N@,$ECHO_N,;t t
32326 s,@ECHO_T@,$ECHO_T,;t t
32327 s,@LIBS@,$LIBS,;t t
32328 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32329 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32330 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32331 s,@CYGPATH_W@,$CYGPATH_W,;t t
32332 s,@PACKAGE@,$PACKAGE,;t t
32333 s,@VERSION@,$VERSION,;t t
32334 s,@ACLOCAL@,$ACLOCAL,;t t
32335 s,@AUTOCONF@,$AUTOCONF,;t t
32336 s,@AUTOMAKE@,$AUTOMAKE,;t t
32337 s,@AUTOHEADER@,$AUTOHEADER,;t t
32338 s,@MAKEINFO@,$MAKEINFO,;t t
32339 s,@AMTAR@,$AMTAR,;t t
32340 s,@install_sh@,$install_sh,;t t
32341 s,@STRIP@,$STRIP,;t t
32342 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32343 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
32344 s,@AWK@,$AWK,;t t
32345 s,@SET_MAKE@,$SET_MAKE,;t t
32346 s,@am__leading_dot@,$am__leading_dot,;t t
32347 s,@ac_prefix_program@,$ac_prefix_program,;t t
32348 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
32349 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
32350 s,@MAINT@,$MAINT,;t t
32351 s,@CC@,$CC,;t t
32352 s,@CFLAGS@,$CFLAGS,;t t
32353 s,@LDFLAGS@,$LDFLAGS,;t t
32354 s,@CPPFLAGS@,$CPPFLAGS,;t t
32355 s,@ac_ct_CC@,$ac_ct_CC,;t t
32356 s,@EXEEXT@,$EXEEXT,;t t
32357 s,@OBJEXT@,$OBJEXT,;t t
32358 s,@DEPDIR@,$DEPDIR,;t t
32359 s,@am__include@,$am__include,;t t
32360 s,@am__quote@,$am__quote,;t t
32361 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
32362 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
32363 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
32364 s,@CCDEPMODE@,$CCDEPMODE,;t t
32365 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
32366 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
32367 s,@CPP@,$CPP,;t t
32368 s,@EGREP@,$EGREP,;t t
32369 s,@RANLIB@,$RANLIB,;t t
32370 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32371 s,@LN_S@,$LN_S,;t t
32372 s,@PERL@,$PERL,;t t
32373 s,@CSH@,$CSH,;t t
32374 s,@MKTEMP@,$MKTEMP,;t t
32375 s,@SENDMAIL@,$SENDMAIL,;t t
32376 s,@PR@,$PR,;t t
32377 s,@ROFF@,$ROFF,;t t
32378 s,@PS2PDF@,$PS2PDF,;t t
32379 s,@TEXI2DVI@,$TEXI2DVI,;t t
32380 s,@MAKE_TARGETS_IN_VPATH_TRUE@,$MAKE_TARGETS_IN_VPATH_TRUE,;t t
32381 s,@MAKE_TARGETS_IN_VPATH_FALSE@,$MAKE_TARGETS_IN_VPATH_FALSE,;t t
32382 s,@LIBOBJS@,$LIBOBJS,;t t
32383 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
32384 s,@USE_NLS@,$USE_NLS,;t t
32385 s,@MSGFMT@,$MSGFMT,;t t
32386 s,@GMSGFMT@,$GMSGFMT,;t t
32387 s,@XGETTEXT@,$XGETTEXT,;t t
32388 s,@MSGMERGE@,$MSGMERGE,;t t
32389 s,@build@,$build,;t t
32390 s,@build_cpu@,$build_cpu,;t t
32391 s,@build_vendor@,$build_vendor,;t t
32392 s,@build_os@,$build_os,;t t
32393 s,@host@,$host,;t t
32394 s,@host_cpu@,$host_cpu,;t t
32395 s,@host_vendor@,$host_vendor,;t t
32396 s,@host_os@,$host_os,;t t
32397 s,@LIBICONV@,$LIBICONV,;t t
32398 s,@LTLIBICONV@,$LTLIBICONV,;t t
32399 s,@INTLLIBS@,$INTLLIBS,;t t
32400 s,@LIBINTL@,$LIBINTL,;t t
32401 s,@LTLIBINTL@,$LTLIBINTL,;t t
32402 s,@POSUB@,$POSUB,;t t
32403 s,@STDBOOL_H@,$STDBOOL_H,;t t
32404 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
32405 s,@ALLOCA@,$ALLOCA,;t t
32406 s,@ALLOCA_H@,$ALLOCA_H,;t t
32407 s,@FNMATCH_H@,$FNMATCH_H,;t t
32408 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
32409 s,@YACC@,$YACC,;t t
32410 s,@YFLAGS@,$YFLAGS,;t t
32411 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
32412 s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
32413 s,@cvs_client_objects@,$cvs_client_objects,;t t
32414 s,@KRB4@,$KRB4,;t t
32415 s,@ZLIB_SUBDIRS@,$ZLIB_SUBDIRS,;t t
32416 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
32417 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
32418 s,@with_default_rsh@,$with_default_rsh,;t t
32419 s,@RSH_DFLT@,$RSH_DFLT,;t t
32420 s,@EDITOR@,$EDITOR,;t t
32421 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
32422 /@MKTEMP_SH_FUNCTION@/r $MKTEMP_SH_FUNCTION
32423 s,@MKTEMP_SH_FUNCTION@,,;t t
32424 CEOF
32425
32426 _ACEOF
32427
32428   cat >>$CONFIG_STATUS <<\_ACEOF
32429   # Split the substitutions into bite-sized pieces for seds with
32430   # small command number limits, like on Digital OSF/1 and HP-UX.
32431   ac_max_sed_lines=48
32432   ac_sed_frag=1 # Number of current file.
32433   ac_beg=1 # First line for current file.
32434   ac_end=$ac_max_sed_lines # Line after last line for current file.
32435   ac_more_lines=:
32436   ac_sed_cmds=
32437   while $ac_more_lines; do
32438     if test $ac_beg -gt 1; then
32439       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32440     else
32441       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32442     fi
32443     if test ! -s $tmp/subs.frag; then
32444       ac_more_lines=false
32445     else
32446       # The purpose of the label and of the branching condition is to
32447       # speed up the sed processing (if there are no `@' at all, there
32448       # is no need to browse any of the substitutions).
32449       # These are the two extra sed commands mentioned above.
32450       (echo ':t
32451   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32452       if test -z "$ac_sed_cmds"; then
32453         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32454       else
32455         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32456       fi
32457       ac_sed_frag=`expr $ac_sed_frag + 1`
32458       ac_beg=$ac_end
32459       ac_end=`expr $ac_end + $ac_max_sed_lines`
32460     fi
32461   done
32462   if test -z "$ac_sed_cmds"; then
32463     ac_sed_cmds=cat
32464   fi
32465 fi # test -n "$CONFIG_FILES"
32466
32467 _ACEOF
32468 cat >>$CONFIG_STATUS <<\_ACEOF
32469 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32470   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32471   case $ac_file in
32472   - | *:- | *:-:* ) # input from stdin
32473         cat >$tmp/stdin
32474         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32475         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32476   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32477         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32478   * )   ac_file_in=$ac_file.in ;;
32479   esac
32480
32481   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32482   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32484          X"$ac_file" : 'X\(//\)[^/]' \| \
32485          X"$ac_file" : 'X\(//\)$' \| \
32486          X"$ac_file" : 'X\(/\)' \| \
32487          .     : '\(.\)' 2>/dev/null ||
32488 echo X"$ac_file" |
32489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32490           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32491           /^X\(\/\/\)$/{ s//\1/; q; }
32492           /^X\(\/\).*/{ s//\1/; q; }
32493           s/.*/./; q'`
32494   { if $as_mkdir_p; then
32495     mkdir -p "$ac_dir"
32496   else
32497     as_dir="$ac_dir"
32498     as_dirs=
32499     while test ! -d "$as_dir"; do
32500       as_dirs="$as_dir $as_dirs"
32501       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32503          X"$as_dir" : 'X\(//\)[^/]' \| \
32504          X"$as_dir" : 'X\(//\)$' \| \
32505          X"$as_dir" : 'X\(/\)' \| \
32506          .     : '\(.\)' 2>/dev/null ||
32507 echo X"$as_dir" |
32508     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32509           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32510           /^X\(\/\/\)$/{ s//\1/; q; }
32511           /^X\(\/\).*/{ s//\1/; q; }
32512           s/.*/./; q'`
32513     done
32514     test ! -n "$as_dirs" || mkdir $as_dirs
32515   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32516 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32517    { (exit 1); exit 1; }; }; }
32518
32519   ac_builddir=.
32520
32521 if test "$ac_dir" != .; then
32522   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32523   # A "../" for each directory in $ac_dir_suffix.
32524   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32525 else
32526   ac_dir_suffix= ac_top_builddir=
32527 fi
32528
32529 case $srcdir in
32530   .)  # No --srcdir option.  We are building in place.
32531     ac_srcdir=.
32532     if test -z "$ac_top_builddir"; then
32533        ac_top_srcdir=.
32534     else
32535        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32536     fi ;;
32537   [\\/]* | ?:[\\/]* )  # Absolute path.
32538     ac_srcdir=$srcdir$ac_dir_suffix;
32539     ac_top_srcdir=$srcdir ;;
32540   *) # Relative path.
32541     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32542     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32543 esac
32544 case "$ac_dir" in
32545 .) ac_abs_builddir=$ac_builddir;;
32546 *)
32547   case $ac_builddir in
32548   .) ac_abs_builddir="$ac_dir";;
32549   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
32550   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
32551   esac;;
32552 esac
32553 case "$ac_dir" in
32554 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32555 *)
32556   case ${ac_top_builddir}. in
32557   .) ac_abs_top_builddir="$ac_dir";;
32558   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32559   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
32560   esac;;
32561 esac
32562 case "$ac_dir" in
32563 .) ac_abs_srcdir=$ac_srcdir;;
32564 *)
32565   case $ac_srcdir in
32566   .) ac_abs_srcdir="$ac_dir";;
32567   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32568   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
32569   esac;;
32570 esac
32571 case "$ac_dir" in
32572 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32573 *)
32574   case $ac_top_srcdir in
32575   .) ac_abs_top_srcdir="$ac_dir";;
32576   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32577   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
32578   esac;;
32579 esac
32580
32581
32582   case $INSTALL in
32583   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32584   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32585   esac
32586
32587   if test x"$ac_file" != x-; then
32588     { echo "$as_me:$LINENO: creating $ac_file" >&5
32589 echo "$as_me: creating $ac_file" >&6;}
32590     rm -f "$ac_file"
32591   fi
32592   # Let's still pretend it is `configure' which instantiates (i.e., don't
32593   # use $as_me), people would be surprised to read:
32594   #    /* config.h.  Generated by config.status.  */
32595   if test x"$ac_file" = x-; then
32596     configure_input=
32597   else
32598     configure_input="$ac_file.  "
32599   fi
32600   configure_input=$configure_input"Generated from `echo $ac_file_in |
32601                                      sed 's,.*/,,'` by configure."
32602
32603   # First look for the input files in the build tree, otherwise in the
32604   # src tree.
32605   ac_file_inputs=`IFS=:
32606     for f in $ac_file_in; do
32607       case $f in
32608       -) echo $tmp/stdin ;;
32609       [\\/$]*)
32610          # Absolute (can't be DOS-style, as IFS=:)
32611          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32612 echo "$as_me: error: cannot find input file: $f" >&2;}
32613    { (exit 1); exit 1; }; }
32614          echo "$f";;
32615       *) # Relative
32616          if test -f "$f"; then
32617            # Build tree
32618            echo "$f"
32619          elif test -f "$srcdir/$f"; then
32620            # Source tree
32621            echo "$srcdir/$f"
32622          else
32623            # /dev/null tree
32624            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32625 echo "$as_me: error: cannot find input file: $f" >&2;}
32626    { (exit 1); exit 1; }; }
32627          fi;;
32628       esac
32629     done` || { (exit 1); exit 1; }
32630 _ACEOF
32631 cat >>$CONFIG_STATUS <<_ACEOF
32632   sed "$ac_vpsub
32633 $extrasub
32634 _ACEOF
32635 cat >>$CONFIG_STATUS <<\_ACEOF
32636 :t
32637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32638 s,@configure_input@,$configure_input,;t t
32639 s,@srcdir@,$ac_srcdir,;t t
32640 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32641 s,@top_srcdir@,$ac_top_srcdir,;t t
32642 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32643 s,@builddir@,$ac_builddir,;t t
32644 s,@abs_builddir@,$ac_abs_builddir,;t t
32645 s,@top_builddir@,$ac_top_builddir,;t t
32646 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32647 s,@INSTALL@,$ac_INSTALL,;t t
32648 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32649   rm -f $tmp/stdin
32650   if test x"$ac_file" != x-; then
32651     mv $tmp/out $ac_file
32652   else
32653     cat $tmp/out
32654     rm -f $tmp/out
32655   fi
32656
32657   # Run the commands associated with the file.
32658   case $ac_file in
32659     contrib/validate_repo ) chmod +x contrib/validate_repo ;;
32660     contrib/clmerge ) chmod +x contrib/clmerge ;;
32661     contrib/cln_hist ) chmod +x contrib/cln_hist ;;
32662     contrib/commit_prep ) chmod +x contrib/commit_prep ;;
32663     contrib/cvs_acls ) chmod +x contrib/cvs_acls ;;
32664     contrib/log ) chmod +x contrib/log ;;
32665     contrib/log_accum ) chmod +x contrib/log_accum ;;
32666     contrib/mfpipe ) chmod +x contrib/mfpipe ;;
32667     contrib/pvcs2rcs ) chmod +x contrib/pvcs2rcs ;;
32668     contrib/rcs2log ) chmod +x contrib/rcs2log ;;
32669     contrib/rcslock ) chmod +x contrib/rcslock ;;
32670     contrib/sccs2rcs ) chmod +x contrib/sccs2rcs ;;
32671     doc/mkman ) chmod +x doc/mkman ;;
32672     src/cvsbug ) chmod +x src/cvsbug ;;
32673     windows-NT/fix-msvc-mak ) chmod +x windows-NT/fix-msvc-mak ;;
32674     windows-NT/mkconfig ) chmod +x windows-NT/mkconfig ;;
32675   esac
32676 done
32677 _ACEOF
32678 cat >>$CONFIG_STATUS <<\_ACEOF
32679
32680 #
32681 # CONFIG_HEADER section.
32682 #
32683
32684 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32685 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32686 #
32687 # ac_d sets the value in "#define NAME VALUE" lines.
32688 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
32689 ac_dB='[         ].*$,\1#\2'
32690 ac_dC=' '
32691 ac_dD=',;t'
32692 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32693 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
32694 ac_uB='$,\1#\2define\3'
32695 ac_uC=' '
32696 ac_uD=',;t'
32697
32698 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32699   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32700   case $ac_file in
32701   - | *:- | *:-:* ) # input from stdin
32702         cat >$tmp/stdin
32703         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32704         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32705   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32706         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32707   * )   ac_file_in=$ac_file.in ;;
32708   esac
32709
32710   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32711 echo "$as_me: creating $ac_file" >&6;}
32712
32713   # First look for the input files in the build tree, otherwise in the
32714   # src tree.
32715   ac_file_inputs=`IFS=:
32716     for f in $ac_file_in; do
32717       case $f in
32718       -) echo $tmp/stdin ;;
32719       [\\/$]*)
32720          # Absolute (can't be DOS-style, as IFS=:)
32721          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32722 echo "$as_me: error: cannot find input file: $f" >&2;}
32723    { (exit 1); exit 1; }; }
32724          # Do quote $f, to prevent DOS paths from being IFS'd.
32725          echo "$f";;
32726       *) # Relative
32727          if test -f "$f"; then
32728            # Build tree
32729            echo "$f"
32730          elif test -f "$srcdir/$f"; then
32731            # Source tree
32732            echo "$srcdir/$f"
32733          else
32734            # /dev/null tree
32735            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32736 echo "$as_me: error: cannot find input file: $f" >&2;}
32737    { (exit 1); exit 1; }; }
32738          fi;;
32739       esac
32740     done` || { (exit 1); exit 1; }
32741   # Remove the trailing spaces.
32742   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
32743
32744 _ACEOF
32745
32746 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32747 # `conftest.undefs', that substitutes the proper values into
32748 # config.h.in to produce config.h.  The first handles `#define'
32749 # templates, and the second `#undef' templates.
32750 # And first: Protect against being on the right side of a sed subst in
32751 # config.status.  Protect against being in an unquoted here document
32752 # in config.status.
32753 rm -f conftest.defines conftest.undefs
32754 # Using a here document instead of a string reduces the quoting nightmare.
32755 # Putting comments in sed scripts is not portable.
32756 #
32757 # `end' is used to avoid that the second main sed command (meant for
32758 # 0-ary CPP macros) applies to n-ary macro definitions.
32759 # See the Autoconf documentation for `clear'.
32760 cat >confdef2sed.sed <<\_ACEOF
32761 s/[\\&,]/\\&/g
32762 s,[\\$`],\\&,g
32763 t clear
32764 : clear
32765 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32766 t end
32767 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32768 : end
32769 _ACEOF
32770 # If some macros were called several times there might be several times
32771 # the same #defines, which is useless.  Nevertheless, we may not want to
32772 # sort them, since we want the *last* AC-DEFINE to be honored.
32773 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32774 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32775 rm -f confdef2sed.sed
32776
32777 # This sed command replaces #undef with comments.  This is necessary, for
32778 # example, in the case of _POSIX_SOURCE, which is predefined and required
32779 # on some systems where configure will not decide to define it.
32780 cat >>conftest.undefs <<\_ACEOF
32781 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32782 _ACEOF
32783
32784 # Break up conftest.defines because some shells have a limit on the size
32785 # of here documents, and old seds have small limits too (100 cmds).
32786 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32787 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32788 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32789 echo '  :' >>$CONFIG_STATUS
32790 rm -f conftest.tail
32791 while grep . conftest.defines >/dev/null
32792 do
32793   # Write a limited-size here document to $tmp/defines.sed.
32794   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32795   # Speed up: don't consider the non `#define' lines.
32796   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
32797   # Work around the forget-to-reset-the-flag bug.
32798   echo 't clr' >>$CONFIG_STATUS
32799   echo ': clr' >>$CONFIG_STATUS
32800   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32801   echo 'CEOF
32802   sed -f $tmp/defines.sed $tmp/in >$tmp/out
32803   rm -f $tmp/in
32804   mv $tmp/out $tmp/in
32805 ' >>$CONFIG_STATUS
32806   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32807   rm -f conftest.defines
32808   mv conftest.tail conftest.defines
32809 done
32810 rm -f conftest.defines
32811 echo '  fi # grep' >>$CONFIG_STATUS
32812 echo >>$CONFIG_STATUS
32813
32814 # Break up conftest.undefs because some shells have a limit on the size
32815 # of here documents, and old seds have small limits too (100 cmds).
32816 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32817 rm -f conftest.tail
32818 while grep . conftest.undefs >/dev/null
32819 do
32820   # Write a limited-size here document to $tmp/undefs.sed.
32821   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32822   # Speed up: don't consider the non `#undef'
32823   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
32824   # Work around the forget-to-reset-the-flag bug.
32825   echo 't clr' >>$CONFIG_STATUS
32826   echo ': clr' >>$CONFIG_STATUS
32827   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32828   echo 'CEOF
32829   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32830   rm -f $tmp/in
32831   mv $tmp/out $tmp/in
32832 ' >>$CONFIG_STATUS
32833   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32834   rm -f conftest.undefs
32835   mv conftest.tail conftest.undefs
32836 done
32837 rm -f conftest.undefs
32838
32839 cat >>$CONFIG_STATUS <<\_ACEOF
32840   # Let's still pretend it is `configure' which instantiates (i.e., don't
32841   # use $as_me), people would be surprised to read:
32842   #    /* config.h.  Generated by config.status.  */
32843   if test x"$ac_file" = x-; then
32844     echo "/* Generated by configure.  */" >$tmp/config.h
32845   else
32846     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32847   fi
32848   cat $tmp/in >>$tmp/config.h
32849   rm -f $tmp/in
32850   if test x"$ac_file" != x-; then
32851     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32852       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32853 echo "$as_me: $ac_file is unchanged" >&6;}
32854     else
32855       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32857          X"$ac_file" : 'X\(//\)[^/]' \| \
32858          X"$ac_file" : 'X\(//\)$' \| \
32859          X"$ac_file" : 'X\(/\)' \| \
32860          .     : '\(.\)' 2>/dev/null ||
32861 echo X"$ac_file" |
32862     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32863           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32864           /^X\(\/\/\)$/{ s//\1/; q; }
32865           /^X\(\/\).*/{ s//\1/; q; }
32866           s/.*/./; q'`
32867       { if $as_mkdir_p; then
32868     mkdir -p "$ac_dir"
32869   else
32870     as_dir="$ac_dir"
32871     as_dirs=
32872     while test ! -d "$as_dir"; do
32873       as_dirs="$as_dir $as_dirs"
32874       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32876          X"$as_dir" : 'X\(//\)[^/]' \| \
32877          X"$as_dir" : 'X\(//\)$' \| \
32878          X"$as_dir" : 'X\(/\)' \| \
32879          .     : '\(.\)' 2>/dev/null ||
32880 echo X"$as_dir" |
32881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32882           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32883           /^X\(\/\/\)$/{ s//\1/; q; }
32884           /^X\(\/\).*/{ s//\1/; q; }
32885           s/.*/./; q'`
32886     done
32887     test ! -n "$as_dirs" || mkdir $as_dirs
32888   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32889 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32890    { (exit 1); exit 1; }; }; }
32891
32892       rm -f $ac_file
32893       mv $tmp/config.h $ac_file
32894     fi
32895   else
32896     cat $tmp/config.h
32897     rm -f $tmp/config.h
32898   fi
32899 # Compute $ac_file's index in $config_headers.
32900 _am_stamp_count=1
32901 for _am_header in $config_headers :; do
32902   case $_am_header in
32903     $ac_file | $ac_file:* )
32904       break ;;
32905     * )
32906       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32907   esac
32908 done
32909 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
32910 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32911          X$ac_file : 'X\(//\)[^/]' \| \
32912          X$ac_file : 'X\(//\)$' \| \
32913          X$ac_file : 'X\(/\)' \| \
32914          .     : '\(.\)' 2>/dev/null ||
32915 echo X$ac_file |
32916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32917           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32918           /^X\(\/\/\)$/{ s//\1/; q; }
32919           /^X\(\/\).*/{ s//\1/; q; }
32920           s/.*/./; q'`/stamp-h$_am_stamp_count
32921 done
32922 _ACEOF
32923 cat >>$CONFIG_STATUS <<\_ACEOF
32924
32925 #
32926 # CONFIG_COMMANDS section.
32927 #
32928 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32929   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32930   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32931   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32932 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32933          X"$ac_dest" : 'X\(//\)[^/]' \| \
32934          X"$ac_dest" : 'X\(//\)$' \| \
32935          X"$ac_dest" : 'X\(/\)' \| \
32936          .     : '\(.\)' 2>/dev/null ||
32937 echo X"$ac_dest" |
32938     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32939           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32940           /^X\(\/\/\)$/{ s//\1/; q; }
32941           /^X\(\/\).*/{ s//\1/; q; }
32942           s/.*/./; q'`
32943   { if $as_mkdir_p; then
32944     mkdir -p "$ac_dir"
32945   else
32946     as_dir="$ac_dir"
32947     as_dirs=
32948     while test ! -d "$as_dir"; do
32949       as_dirs="$as_dir $as_dirs"
32950       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32952          X"$as_dir" : 'X\(//\)[^/]' \| \
32953          X"$as_dir" : 'X\(//\)$' \| \
32954          X"$as_dir" : 'X\(/\)' \| \
32955          .     : '\(.\)' 2>/dev/null ||
32956 echo X"$as_dir" |
32957     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32958           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32959           /^X\(\/\/\)$/{ s//\1/; q; }
32960           /^X\(\/\).*/{ s//\1/; q; }
32961           s/.*/./; q'`
32962     done
32963     test ! -n "$as_dirs" || mkdir $as_dirs
32964   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32965 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32966    { (exit 1); exit 1; }; }; }
32967
32968   ac_builddir=.
32969
32970 if test "$ac_dir" != .; then
32971   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32972   # A "../" for each directory in $ac_dir_suffix.
32973   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32974 else
32975   ac_dir_suffix= ac_top_builddir=
32976 fi
32977
32978 case $srcdir in
32979   .)  # No --srcdir option.  We are building in place.
32980     ac_srcdir=.
32981     if test -z "$ac_top_builddir"; then
32982        ac_top_srcdir=.
32983     else
32984        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32985     fi ;;
32986   [\\/]* | ?:[\\/]* )  # Absolute path.
32987     ac_srcdir=$srcdir$ac_dir_suffix;
32988     ac_top_srcdir=$srcdir ;;
32989   *) # Relative path.
32990     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32991     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32992 esac
32993 case "$ac_dir" in
32994 .) ac_abs_builddir=$ac_builddir;;
32995 *)
32996   case $ac_builddir in
32997   .) ac_abs_builddir="$ac_dir";;
32998   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
32999   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
33000   esac;;
33001 esac
33002 case "$ac_dir" in
33003 .) ac_abs_top_builddir=${ac_top_builddir}.;;
33004 *)
33005   case ${ac_top_builddir}. in
33006   .) ac_abs_top_builddir="$ac_dir";;
33007   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33008   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
33009   esac;;
33010 esac
33011 case "$ac_dir" in
33012 .) ac_abs_srcdir=$ac_srcdir;;
33013 *)
33014   case $ac_srcdir in
33015   .) ac_abs_srcdir="$ac_dir";;
33016   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33017   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
33018   esac;;
33019 esac
33020 case "$ac_dir" in
33021 .) ac_abs_top_srcdir=$ac_top_srcdir;;
33022 *)
33023   case $ac_top_srcdir in
33024   .) ac_abs_top_srcdir="$ac_dir";;
33025   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33026   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
33027   esac;;
33028 esac
33029
33030
33031   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
33032 echo "$as_me: executing $ac_dest commands" >&6;}
33033   case $ac_dest in
33034     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33035   # Strip MF so we end up with the name of the file.
33036   mf=`echo "$mf" | sed -e 's/:.*$//'`
33037   # Check whether this is an Automake generated Makefile or not.
33038   # We used to match only the files named `Makefile.in', but
33039   # some people rename them; so instead we look at the file content.
33040   # Grep'ing the first line is not enough: some people post-process
33041   # each Makefile.in and add a new line on top of each file to say so.
33042   # So let's grep whole file.
33043   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
33044     dirpart=`(dirname "$mf") 2>/dev/null ||
33045 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33046          X"$mf" : 'X\(//\)[^/]' \| \
33047          X"$mf" : 'X\(//\)$' \| \
33048          X"$mf" : 'X\(/\)' \| \
33049          .     : '\(.\)' 2>/dev/null ||
33050 echo X"$mf" |
33051     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33052           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33053           /^X\(\/\/\)$/{ s//\1/; q; }
33054           /^X\(\/\).*/{ s//\1/; q; }
33055           s/.*/./; q'`
33056   else
33057     continue
33058   fi
33059   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
33060   # Extract the definition of DEP_FILES from the Makefile without
33061   # running `make'.
33062   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
33063   test -z "$DEPDIR" && continue
33064   # When using ansi2knr, U may be empty or an underscore; expand it
33065   U=`sed -n -e '/^U = / s///p' < "$mf"`
33066   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
33067   # We invoke sed twice because it is the simplest approach to
33068   # changing $(DEPDIR) to its actual value in the expansion.
33069   for file in `sed -n -e '
33070     /^DEP_FILES = .*\\\\$/ {
33071       s/^DEP_FILES = //
33072       :loop
33073         s/\\\\$//
33074         p
33075         n
33076         /\\\\$/ b loop
33077       p
33078     }
33079     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
33080        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33081     # Make sure the directory exists.
33082     test -f "$dirpart/$file" && continue
33083     fdir=`(dirname "$file") 2>/dev/null ||
33084 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33085          X"$file" : 'X\(//\)[^/]' \| \
33086          X"$file" : 'X\(//\)$' \| \
33087          X"$file" : 'X\(/\)' \| \
33088          .     : '\(.\)' 2>/dev/null ||
33089 echo X"$file" |
33090     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33091           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33092           /^X\(\/\/\)$/{ s//\1/; q; }
33093           /^X\(\/\).*/{ s//\1/; q; }
33094           s/.*/./; q'`
33095     { if $as_mkdir_p; then
33096     mkdir -p $dirpart/$fdir
33097   else
33098     as_dir=$dirpart/$fdir
33099     as_dirs=
33100     while test ! -d "$as_dir"; do
33101       as_dirs="$as_dir $as_dirs"
33102       as_dir=`(dirname "$as_dir") 2>/dev/null ||
33103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33104          X"$as_dir" : 'X\(//\)[^/]' \| \
33105          X"$as_dir" : 'X\(//\)$' \| \
33106          X"$as_dir" : 'X\(/\)' \| \
33107          .     : '\(.\)' 2>/dev/null ||
33108 echo X"$as_dir" |
33109     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33110           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33111           /^X\(\/\/\)$/{ s//\1/; q; }
33112           /^X\(\/\).*/{ s//\1/; q; }
33113           s/.*/./; q'`
33114     done
33115     test ! -n "$as_dirs" || mkdir $as_dirs
33116   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
33117 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
33118    { (exit 1); exit 1; }; }; }
33119
33120     # echo "creating $dirpart/$file"
33121     echo '# dummy' > "$dirpart/$file"
33122   done
33123 done
33124  ;;
33125     default-1 )
33126     for ac_file in $CONFIG_FILES; do
33127       # Support "outfile[:infile[:infile...]]"
33128       case "$ac_file" in
33129         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33130       esac
33131       # PO directories have a Makefile.in generated from Makefile.in.in.
33132       case "$ac_file" in */Makefile.in)
33133         # Adjust a relative srcdir.
33134         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33135         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33136         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33137         # In autoconf-2.13 it is called $ac_given_srcdir.
33138         # In autoconf-2.50 it is called $srcdir.
33139         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33140         case "$ac_given_srcdir" in
33141           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33142           /*) top_srcdir="$ac_given_srcdir" ;;
33143           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33144         esac
33145         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33146           rm -f "$ac_dir/POTFILES"
33147           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33148           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33149           POMAKEFILEDEPS="POTFILES.in"
33150           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
33151           # on $ac_dir but don't depend on user-specified configuration
33152           # parameters.
33153           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33154             # The LINGUAS file contains the set of available languages.
33155             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33156               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33157             fi
33158             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33159             # Hide the ALL_LINGUAS assigment from automake.
33160             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33161             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33162           else
33163             # The set of available languages was given in configure.in.
33164             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33165           fi
33166           case "$ac_given_srcdir" in
33167             .) srcdirpre= ;;
33168             *) srcdirpre='$(srcdir)/' ;;
33169           esac
33170           POFILES=
33171           GMOFILES=
33172           UPDATEPOFILES=
33173           DUMMYPOFILES=
33174           for lang in $ALL_LINGUAS; do
33175             POFILES="$POFILES $srcdirpre$lang.po"
33176             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33177             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33178             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33179           done
33180           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33181           # environment variable.
33182           INST_LINGUAS=
33183           if test -n "$ALL_LINGUAS"; then
33184             for presentlang in $ALL_LINGUAS; do
33185               useit=no
33186               if test "%UNSET%" != "$LINGUAS"; then
33187                 desiredlanguages="$LINGUAS"
33188               else
33189                 desiredlanguages="$ALL_LINGUAS"
33190               fi
33191               for desiredlang in $desiredlanguages; do
33192                 # Use the presentlang catalog if desiredlang is
33193                 #   a. equal to presentlang, or
33194                 #   b. a variant of presentlang (because in this case,
33195                 #      presentlang can be used as a fallback for messages
33196                 #      which are not translated in the desiredlang catalog).
33197                 case "$desiredlang" in
33198                   "$presentlang"*) useit=yes;;
33199                 esac
33200               done
33201               if test $useit = yes; then
33202                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33203               fi
33204             done
33205           fi
33206           CATALOGS=
33207           if test -n "$INST_LINGUAS"; then
33208             for lang in $INST_LINGUAS; do
33209               CATALOGS="$CATALOGS $lang.gmo"
33210             done
33211           fi
33212           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33213           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
33214           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33215             if test -f "$f"; then
33216               case "$f" in
33217                 *.orig | *.bak | *~) ;;
33218                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33219               esac
33220             fi
33221           done
33222         fi
33223         ;;
33224       esac
33225     done ;;
33226   esac
33227 done
33228 _ACEOF
33229
33230 cat >>$CONFIG_STATUS <<\_ACEOF
33231
33232 { (exit 0); exit 0; }
33233 _ACEOF
33234 chmod +x $CONFIG_STATUS
33235 ac_clean_files=$ac_clean_files_save
33236
33237
33238 # configure is writing to config.log, and then calls config.status.
33239 # config.status does its own redirection, appending to config.log.
33240 # Unfortunately, on DOS this fails, as config.log is still kept open
33241 # by configure, so config.status won't be able to write to it; its
33242 # output is simply discarded.  So we exec the FD to /dev/null,
33243 # effectively closing config.log, so it can be properly (re)opened and
33244 # appended to by config.status.  When coming back to configure, we
33245 # need to make the FD available again.
33246 if test "$no_create" != yes; then
33247   ac_cs_success=:
33248   ac_config_status_args=
33249   test "$silent" = yes &&
33250     ac_config_status_args="$ac_config_status_args --quiet"
33251   exec 5>/dev/null
33252   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33253   exec 5>>config.log
33254   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33255   # would make configure fail if this is the last instruction.
33256   $ac_cs_success || { (exit 1); exit 1; }
33257 fi
33258
33259
33260
33261
33262 # Report the state of this version of CVS if this is from dev.
33263