Add CVS 1.12.11.
[dragonfly.git] / contrib / cvs-1.12.11 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Concurrent Versions System (CVS) 1.12.11.
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, 2004
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.11'
287 PACKAGE_STRING='Concurrent Versions System (CVS) 1.12.11'
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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar ac_prefix_program MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB LN_S PERL CSH MKTEMP SENDMAIL PR ROFF PS2PDF TEXI2DVI MAKE_TARGETS_IN_VPATH_TRUE MAKE_TARGETS_IN_VPATH_FALSE LIBOBJS ALLOCA ALLOCA_H FNMATCH_H STDBOOL_H HAVE__BOOL YACC YFLAGS LIB_CLOCK_GETTIME GETOPT_H LIB_NANOSLEEP HAVE_LONG_64BIT HAVE_LONGLONG_64BIT STDINT_H EOVERFLOW 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 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.11 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.11:";;
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 build
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-proxy          Include code for running as a transparent proxy
908                           server. Disabling this may produce a slight
909                           performance gain on some systems, at the expense of
910                           write proxy support. (default)
911   --enable-pam            Use to enable system authentication with PAM instead
912                           of using the simple getpwnam interface. This allows
913                           authentication (in theory) with any PAM module, e.g.
914                           on systems with shadow passwords or via LDAP
915   --enable-case-sensitivity
916                           Force CVS to expect a case sensitive file system.
917                           Enabling this on a case insensitive system should
918                           have little effect on the server or client
919                           operation, though client users may ocassionally be
920                           suprised that the CVS server appears to be case
921                           sensitive. Disabling this for a case sensitive
922                           server disables server support for case insensitive
923                           clients, which can confuse all users of case
924                           insensitive clients contacting the server. Disabling
925                           this for a case sensitive client will cause the
926                           client to ask servers to behave case insensitively,
927                           which could cause confusion for users, but also
928                           probably no real harm. (default autoselects based on
929                           the case sensitivity of the file system containing
930                           the current working directory)
931   --enable-encryption     Enable encryption support (disabled by default)
932   --enable-force-editor   When committing or importing files, you must enter a
933                           log message. Normally, you can do this either via
934                           the -m flag on the command line, the -F flag on the
935                           command line, or an editor will be started for you.
936                           If you like to use logging templates (the rcsinfo
937                           file within the $CVSROOT/CVSROOT directory), you
938                           might want to force people to use the editor even if
939                           they specify a message with -m or -F.
940                           --enable-force-editor will cause the -m or -F
941                           message to be appended to the temp file when the
942                           editor is started. (disabled by default)
943   --enable-lock-compatibility
944                           Include locking code which prevents versions of CVS
945                           earlier than 1.12.4 directly accessing the same
946                           repositiory as this executable from ignoring this
947                           executable's promotable read locks. If only CVS
948                           versions 1.12.4 and later will be accessing your
949                           repository directly (as a server or locally), you
950                           can safely disable this option in return for fewer
951                           disk accesses and a small speed increase. Disabling
952                           this option when versions of CVS earlier than 1,12,4
953                           _will_ be accessing your repository, however, is
954                           *VERY* *VERY* *VERY* dangerous and could result in
955                           data loss. (enabled by default)
956   --enable-rootcommit     Allow the root user to commit files (disabled by
957                           default)
958   --enable-old-info-format-support
959                           Enable support for the pre 1.12.1 *info scripting
960                           hook format strings. Disable this option for a
961                           smaller executable once your scripting hooks have
962                           been updated to use the new *info format strings
963                           (default).
964
965 Optional Packages:
966   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
967   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
968   --without-included-regex don't compile regex; this is the default on
969                           systems with version 2 of the GNU C library
970                           (use with caution on other system)
971   --with-gnu-ld           assume the C compiler uses GNU ld default=no
972   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
973   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
974   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
975   --without-libintl-prefix     don't search for libintl in includedir and libdir
976   --with-krb4             Kerberos 4 directory (default /usr/kerberos)
977   --with-gssapi           GSSAPI directory (default autoselects)
978   --with-external-zlib    Use the specified ZLIB library (defaults to the
979                           version distributed with the CVS source)
980   --with-rsh              The default remote shell CVS will use for :ext:
981                           transport (default rsh)
982   --with-editor           The default text editor CVS should use for log
983                           messages (default autoselects)
984   --with-hardcoded-pam-service-name
985                           Use this to hard code a service name for PAM CVS
986                           authentication. The special name, `program_name',
987                           will cause CVS to use whatever name it was invoked
988                           as as the service name. (defaults to `cvs')
989   --with-tmpdir           The temporary directory CVS should use as a default
990                           (default autoselects)
991   --with-umask            Set the umask CVS will use by default in the
992                           repository (default 002)
993   --with-cvs-admin-group=GROUP
994                           The CVS admin command is restricted to the members
995                           of this group. If this group does not exist, all
996                           users are allowed to run CVS admin. To disable the
997                           CVS admin command for all users, create an empty
998                           group by specifying the --with-cvs-admin-group=
999                           option. To disable access control for CVS admin, run
1000                           configure with the --without-cvs-admin-group option.
1001                           (default 'cvsadmin')
1002
1003 Some influential environment variables:
1004   CC          C compiler command
1005   CFLAGS      C compiler flags
1006   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1007               nonstandard directory <lib dir>
1008   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1009               headers in a nonstandard directory <include dir>
1010   CPP         C preprocessor
1011   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1012               `bison -y'. Values other than `bison -y' will most likely break
1013               on most systems.
1014   YFLAGS      YFLAGS contains the list arguments that will be passed by
1015               default to Bison. This script will default YFLAGS to the empty
1016               string to avoid a default value of `-d' given by some make
1017               applications.
1018   EDITOR      The text editor CVS will use by default for log messages.
1019
1020 Use these variables to override the choices made by `configure' or to help
1021 it to find libraries and programs with nonstandard names/locations.
1022
1023 Report bugs to <bug-cvs@gnu.org>.
1024 _ACEOF
1025 fi
1026
1027 if test "$ac_init_help" = "recursive"; then
1028   # If there are subdirs, report their specific --help.
1029   ac_popdir=`pwd`
1030   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1031     test -d $ac_dir || continue
1032     ac_builddir=.
1033
1034 if test "$ac_dir" != .; then
1035   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1036   # A "../" for each directory in $ac_dir_suffix.
1037   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1038 else
1039   ac_dir_suffix= ac_top_builddir=
1040 fi
1041
1042 case $srcdir in
1043   .)  # No --srcdir option.  We are building in place.
1044     ac_srcdir=.
1045     if test -z "$ac_top_builddir"; then
1046        ac_top_srcdir=.
1047     else
1048        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1049     fi ;;
1050   [\\/]* | ?:[\\/]* )  # Absolute path.
1051     ac_srcdir=$srcdir$ac_dir_suffix;
1052     ac_top_srcdir=$srcdir ;;
1053   *) # Relative path.
1054     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1055     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1056 esac
1057
1058 # Do not use `cd foo && pwd` to compute absolute paths, because
1059 # the directories may not exist.
1060 case `pwd` in
1061 .) ac_abs_builddir="$ac_dir";;
1062 *)
1063   case "$ac_dir" in
1064   .) ac_abs_builddir=`pwd`;;
1065   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1066   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1067   esac;;
1068 esac
1069 case $ac_abs_builddir in
1070 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1071 *)
1072   case ${ac_top_builddir}. in
1073   .) ac_abs_top_builddir=$ac_abs_builddir;;
1074   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1075   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1076   esac;;
1077 esac
1078 case $ac_abs_builddir in
1079 .) ac_abs_srcdir=$ac_srcdir;;
1080 *)
1081   case $ac_srcdir in
1082   .) ac_abs_srcdir=$ac_abs_builddir;;
1083   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1084   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1085   esac;;
1086 esac
1087 case $ac_abs_builddir in
1088 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1089 *)
1090   case $ac_top_srcdir in
1091   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1092   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1093   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1094   esac;;
1095 esac
1096
1097     cd $ac_dir
1098     # Check for guested configure; otherwise get Cygnus style configure.
1099     if test -f $ac_srcdir/configure.gnu; then
1100       echo
1101       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1102     elif test -f $ac_srcdir/configure; then
1103       echo
1104       $SHELL $ac_srcdir/configure  --help=recursive
1105     elif test -f $ac_srcdir/configure.ac ||
1106            test -f $ac_srcdir/configure.in; then
1107       echo
1108       $ac_configure --help
1109     else
1110       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1111     fi
1112     cd $ac_popdir
1113   done
1114 fi
1115
1116 test -n "$ac_init_help" && exit 0
1117 if $ac_init_version; then
1118   cat <<\_ACEOF
1119 Concurrent Versions System (CVS) configure 1.12.11
1120 generated by GNU Autoconf 2.59
1121
1122 Copyright (C) 2003 Free Software Foundation, Inc.
1123 This configure script is free software; the Free Software Foundation
1124 gives unlimited permission to copy, distribute and modify it.
1125
1126 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
1127               1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
1128               Free Software Foundation, Inc.
1129
1130 This program is free software; you can redistribute it and/or modify
1131 it under the terms of the GNU General Public License as published by
1132 the Free Software Foundation; either version 2, or (at your option)
1133 any later version.
1134
1135 This program is distributed in the hope that it will be useful,
1136 but WITHOUT ANY WARRANTY; without even the implied warranty of
1137 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1138 GNU General Public License for more details.
1139 _ACEOF
1140   exit 0
1141 fi
1142 exec 5>config.log
1143 cat >&5 <<_ACEOF
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1146
1147 It was created by Concurrent Versions System (CVS) $as_me 1.12.11, which was
1148 generated by GNU Autoconf 2.59.  Invocation command line was
1149
1150   $ $0 $@
1151
1152 _ACEOF
1153 {
1154 cat <<_ASUNAME
1155 ## --------- ##
1156 ## Platform. ##
1157 ## --------- ##
1158
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1167
1168 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1169 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1172 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1173 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1174 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1175
1176 _ASUNAME
1177
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179 for as_dir in $PATH
1180 do
1181   IFS=$as_save_IFS
1182   test -z "$as_dir" && as_dir=.
1183   echo "PATH: $as_dir"
1184 done
1185
1186 } >&5
1187
1188 cat >&5 <<_ACEOF
1189
1190
1191 ## ----------- ##
1192 ## Core tests. ##
1193 ## ----------- ##
1194
1195 _ACEOF
1196
1197
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1203 ac_configure_args=
1204 ac_configure_args0=
1205 ac_configure_args1=
1206 ac_sep=
1207 ac_must_keep_next=false
1208 for ac_pass in 1 2
1209 do
1210   for ac_arg
1211   do
1212     case $ac_arg in
1213     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215     | -silent | --silent | --silen | --sile | --sil)
1216       continue ;;
1217     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219     esac
1220     case $ac_pass in
1221     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222     2)
1223       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224       if test $ac_must_keep_next = true; then
1225         ac_must_keep_next=false # Got value, back to normal.
1226       else
1227         case $ac_arg in
1228           *=* | --config-cache | -C | -disable-* | --disable-* \
1229           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231           | -with-* | --with-* | -without-* | --without-* | --x)
1232             case "$ac_configure_args0 " in
1233               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234             esac
1235             ;;
1236           -* ) ac_must_keep_next=true ;;
1237         esac
1238       fi
1239       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240       # Get rid of the leading space.
1241       ac_sep=" "
1242       ;;
1243     esac
1244   done
1245 done
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log.  We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255   # Save into config.log some information that might help in debugging.
1256   {
1257     echo
1258
1259     cat <<\_ASBOX
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1263 _ASBOX
1264     echo
1265     # The following way of writing the cache mishandles newlines in values,
1266 {
1267   (set) 2>&1 |
1268     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269     *ac_space=\ *)
1270       sed -n \
1271         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273       ;;
1274     *)
1275       sed -n \
1276         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277       ;;
1278     esac;
1279 }
1280     echo
1281
1282     cat <<\_ASBOX
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1286 _ASBOX
1287     echo
1288     for ac_var in $ac_subst_vars
1289     do
1290       eval ac_val=$`echo $ac_var`
1291       echo "$ac_var='"'"'$ac_val'"'"'"
1292     done | sort
1293     echo
1294
1295     if test -n "$ac_subst_files"; then
1296       cat <<\_ASBOX
1297 ## ------------- ##
1298 ## Output files. ##
1299 ## ------------- ##
1300 _ASBOX
1301       echo
1302       for ac_var in $ac_subst_files
1303       do
1304         eval ac_val=$`echo $ac_var`
1305         echo "$ac_var='"'"'$ac_val'"'"'"
1306       done | sort
1307       echo
1308     fi
1309
1310     if test -s confdefs.h; then
1311       cat <<\_ASBOX
1312 ## ----------- ##
1313 ## confdefs.h. ##
1314 ## ----------- ##
1315 _ASBOX
1316       echo
1317       sed "/^$/d" confdefs.h | sort
1318       echo
1319     fi
1320     test "$ac_signal" != 0 &&
1321       echo "$as_me: caught signal $ac_signal"
1322     echo "$as_me: exit $exit_status"
1323   } >&5
1324   rm -f core *.core &&
1325   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326     exit $exit_status
1327      ' 0
1328 for ac_signal in 1 2 13 15; do
1329   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330 done
1331 ac_signal=0
1332
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336 echo >confdefs.h
1337
1338 # Predefined preprocessor variables.
1339
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1342 _ACEOF
1343
1344
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347 _ACEOF
1348
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362 _ACEOF
1363
1364
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368   if test "x$prefix" != xNONE; then
1369     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370   else
1371     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372   fi
1373 fi
1374 for ac_site_file in $CONFIG_SITE; do
1375   if test -r "$ac_site_file"; then
1376     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378     sed 's/^/| /' "$ac_site_file" >&5
1379     . "$ac_site_file"
1380   fi
1381 done
1382
1383 if test -r "$cache_file"; then
1384   # Some versions of bash will fail to source /dev/null (special
1385   # files actually), so we avoid doing that.
1386   if test -f "$cache_file"; then
1387     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1389     case $cache_file in
1390       [\\/]* | ?:[\\/]* ) . $cache_file;;
1391       *)                      . ./$cache_file;;
1392     esac
1393   fi
1394 else
1395   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1397   >$cache_file
1398 fi
1399
1400 # Check that the precious variables saved in the cache have kept the same
1401 # value.
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406   eval ac_new_set=\$ac_env_${ac_var}_set
1407   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408   eval ac_new_val="\$ac_env_${ac_var}_value"
1409   case $ac_old_set,$ac_new_set in
1410     set,)
1411       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413       ac_cache_corrupted=: ;;
1414     ,set)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,);;
1419     *)
1420       if test "x$ac_old_val" != "x$ac_new_val"; then
1421         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1424 echo "$as_me:   former value:  $ac_old_val" >&2;}
1425         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1426 echo "$as_me:   current value: $ac_new_val" >&2;}
1427         ac_cache_corrupted=:
1428       fi;;
1429   esac
1430   # Pass precious variables to config.status.
1431   if test "$ac_new_set" = set; then
1432     case $ac_new_val in
1433     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435     *) ac_arg=$ac_var=$ac_new_val ;;
1436     esac
1437     case " $ac_configure_args " in
1438       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1439       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440     esac
1441   fi
1442 done
1443 if $ac_cache_corrupted; then
1444   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448    { (exit 1); exit 1; }; }
1449 fi
1450
1451 ac_ext=c
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458 gl_header_list="$gl_header_list sys/time.h"
1459 gl_func_list="$gl_func_list isascii"
1460 gl_header_list="$gl_header_list sys/param.h"
1461 gl_header_list="$gl_header_list unistd.h"
1462 gl_header_list="$gl_header_list stdio_ext.h"
1463 gl_func_list="$gl_func_list gettimeofday"
1464 gl_header_list="$gl_header_list fcntl.h"
1465 gl_header_list="$gl_header_list wchar.h"
1466 gl_header_list="$gl_header_list wctype.h"
1467 gl_func_list="$gl_func_list mempcpy"
1468 gl_func_list="$gl_func_list mblen"
1469 gl_func_list="$gl_func_list mbrlen"
1470 gl_func_list="$gl_func_list tzset"
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497 am__api_version="1.9"
1498 ac_aux_dir=
1499 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1500   if test -f $ac_dir/install-sh; then
1501     ac_aux_dir=$ac_dir
1502     ac_install_sh="$ac_aux_dir/install-sh -c"
1503     break
1504   elif test -f $ac_dir/install.sh; then
1505     ac_aux_dir=$ac_dir
1506     ac_install_sh="$ac_aux_dir/install.sh -c"
1507     break
1508   elif test -f $ac_dir/shtool; then
1509     ac_aux_dir=$ac_dir
1510     ac_install_sh="$ac_aux_dir/shtool install -c"
1511     break
1512   fi
1513 done
1514 if test -z "$ac_aux_dir"; then
1515   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1516 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1517    { (exit 1); exit 1; }; }
1518 fi
1519 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1520 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1521 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1522
1523 # Find a good install program.  We prefer a C program (faster),
1524 # so one script is as good as another.  But avoid the broken or
1525 # incompatible versions:
1526 # SysV /etc/install, /usr/sbin/install
1527 # SunOS /usr/etc/install
1528 # IRIX /sbin/install
1529 # AIX /bin/install
1530 # AmigaOS /C/install, which installs bootblocks on floppy discs
1531 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1534 # OS/2's system install, which has a completely different semantic
1535 # ./install, which can be erroneously created by make from ./install.sh.
1536 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1537 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1538 if test -z "$INSTALL"; then
1539 if test "${ac_cv_path_install+set}" = set; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 for as_dir in $PATH
1544 do
1545   IFS=$as_save_IFS
1546   test -z "$as_dir" && as_dir=.
1547   # Account for people who put trailing slashes in PATH elements.
1548 case $as_dir/ in
1549   ./ | .// | /cC/* | \
1550   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1551   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1552   /usr/ucb/* ) ;;
1553   *)
1554     # OSF1 and SCO ODT 3.0 have their own names for install.
1555     # Don't use installbsd from OSF since it installs stuff as root
1556     # by default.
1557     for ac_prog in ginstall scoinst install; do
1558       for ac_exec_ext in '' $ac_executable_extensions; do
1559         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1560           if test $ac_prog = install &&
1561             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1562             # AIX install.  It has an incompatible calling convention.
1563             :
1564           elif test $ac_prog = install &&
1565             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1566             # program-specific install script used by HP pwplus--don't use.
1567             :
1568           else
1569             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1570             break 3
1571           fi
1572         fi
1573       done
1574     done
1575     ;;
1576 esac
1577 done
1578
1579
1580 fi
1581   if test "${ac_cv_path_install+set}" = set; then
1582     INSTALL=$ac_cv_path_install
1583   else
1584     # As a last resort, use the slow shell script.  We don't cache a
1585     # path for INSTALL within a source directory, because that will
1586     # break other packages using the cache if that directory is
1587     # removed, or if the path is relative.
1588     INSTALL=$ac_install_sh
1589   fi
1590 fi
1591 echo "$as_me:$LINENO: result: $INSTALL" >&5
1592 echo "${ECHO_T}$INSTALL" >&6
1593
1594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1595 # It thinks the first close brace ends the variable substitution.
1596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1597
1598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1599
1600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1601
1602 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1603 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1604 # Just in case
1605 sleep 1
1606 echo timestamp > conftest.file
1607 # Do `set' in a subshell so we don't clobber the current shell's
1608 # arguments.  Must try -L first in case configure is actually a
1609 # symlink; some systems play weird games with the mod time of symlinks
1610 # (eg FreeBSD returns the mod time of the symlink's containing
1611 # directory).
1612 if (
1613    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1614    if test "$*" = "X"; then
1615       # -L didn't work.
1616       set X `ls -t $srcdir/configure conftest.file`
1617    fi
1618    rm -f conftest.file
1619    if test "$*" != "X $srcdir/configure conftest.file" \
1620       && test "$*" != "X conftest.file $srcdir/configure"; then
1621
1622       # If neither matched, then we have a broken ls.  This can happen
1623       # if, for instance, CONFIG_SHELL is bash and it inherits a
1624       # broken ls alias from the environment.  This has actually
1625       # happened.  Such a system could not be considered "sane".
1626       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1627 alias in your environment" >&5
1628 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1629 alias in your environment" >&2;}
1630    { (exit 1); exit 1; }; }
1631    fi
1632
1633    test "$2" = conftest.file
1634    )
1635 then
1636    # Ok.
1637    :
1638 else
1639    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1640 Check your system clock" >&5
1641 echo "$as_me: error: newly created file is older than distributed files!
1642 Check your system clock" >&2;}
1643    { (exit 1); exit 1; }; }
1644 fi
1645 echo "$as_me:$LINENO: result: yes" >&5
1646 echo "${ECHO_T}yes" >&6
1647 test "$program_prefix" != NONE &&
1648   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1649 # Use a double $ so make ignores it.
1650 test "$program_suffix" != NONE &&
1651   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1652 # Double any \ or $.  echo might interpret backslashes.
1653 # By default was `s,x,x', remove it if useless.
1654 cat <<\_ACEOF >conftest.sed
1655 s/[\\$]/&&/g;s/;s,x,x,$//
1656 _ACEOF
1657 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1658 rm conftest.sed
1659
1660 # expand $ac_aux_dir to an absolute path
1661 am_aux_dir=`cd $ac_aux_dir && pwd`
1662
1663 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1664 # Use eval to expand $SHELL
1665 if eval "$MISSING --run true"; then
1666   am_missing_run="$MISSING --run "
1667 else
1668   am_missing_run=
1669   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1670 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1671 fi
1672
1673 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1674   # We used to keeping the `.' as first argument, in order to
1675   # allow $(mkdir_p) to be used without argument.  As in
1676   #   $(mkdir_p) $(somedir)
1677   # where $(somedir) is conditionally defined.  However this is wrong
1678   # for two reasons:
1679   #  1. if the package is installed by a user who cannot write `.'
1680   #     make install will fail,
1681   #  2. the above comment should most certainly read
1682   #     $(mkdir_p) $(DESTDIR)$(somedir)
1683   #     so it does not work when $(somedir) is undefined and
1684   #     $(DESTDIR) is not.
1685   #  To support the latter case, we have to write
1686   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1687   #  so the `.' trick is pointless.
1688   mkdir_p='mkdir -p --'
1689 else
1690   # On NextStep and OpenStep, the `mkdir' command does not
1691   # recognize any option.  It will interpret all options as
1692   # directories to create, and then abort because `.' already
1693   # exists.
1694   for d in ./-p ./--version;
1695   do
1696     test -d $d && rmdir $d
1697   done
1698   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1699   if test -f "$ac_aux_dir/mkinstalldirs"; then
1700     mkdir_p='$(mkinstalldirs)'
1701   else
1702     mkdir_p='$(install_sh) -d'
1703   fi
1704 fi
1705
1706 for ac_prog in gawk mawk nawk awk
1707 do
1708   # Extract the first word of "$ac_prog", so it can be a program name with args.
1709 set dummy $ac_prog; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_AWK+set}" = set; then
1713   echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715   if test -n "$AWK"; then
1716   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1717 else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   for ac_exec_ext in '' $ac_executable_extensions; do
1724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725     ac_cv_prog_AWK="$ac_prog"
1726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727     break 2
1728   fi
1729 done
1730 done
1731
1732 fi
1733 fi
1734 AWK=$ac_cv_prog_AWK
1735 if test -n "$AWK"; then
1736   echo "$as_me:$LINENO: result: $AWK" >&5
1737 echo "${ECHO_T}$AWK" >&6
1738 else
1739   echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 fi
1742
1743   test -n "$AWK" && break
1744 done
1745
1746 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1747 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1749 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1750   echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752   cat >conftest.make <<\_ACEOF
1753 all:
1754         @echo 'ac_maketemp="$(MAKE)"'
1755 _ACEOF
1756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1757 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1758 if test -n "$ac_maketemp"; then
1759   eval ac_cv_prog_make_${ac_make}_set=yes
1760 else
1761   eval ac_cv_prog_make_${ac_make}_set=no
1762 fi
1763 rm -f conftest.make
1764 fi
1765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1766   echo "$as_me:$LINENO: result: yes" >&5
1767 echo "${ECHO_T}yes" >&6
1768   SET_MAKE=
1769 else
1770   echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1772   SET_MAKE="MAKE=${MAKE-make}"
1773 fi
1774
1775 rm -rf .tst 2>/dev/null
1776 mkdir .tst 2>/dev/null
1777 if test -d .tst; then
1778   am__leading_dot=.
1779 else
1780   am__leading_dot=_
1781 fi
1782 rmdir .tst 2>/dev/null
1783
1784 # test to see if srcdir already configured
1785 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1786    test -f $srcdir/config.status; then
1787   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1788 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1789    { (exit 1); exit 1; }; }
1790 fi
1791
1792 # test whether we have cygpath
1793 if test -z "$CYGPATH_W"; then
1794   if (cygpath --version) >/dev/null 2>/dev/null; then
1795     CYGPATH_W='cygpath -w'
1796   else
1797     CYGPATH_W=echo
1798   fi
1799 fi
1800
1801
1802 # Define the identity of the package.
1803  PACKAGE='cvs'
1804  VERSION='1.12.11'
1805
1806
1807 # Some tools Automake needs.
1808
1809 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1810
1811
1812 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1813
1814
1815 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1816
1817
1818 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1819
1820
1821 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1822
1823 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1824
1825 # Installed binaries are usually stripped using `strip' when the user
1826 # run `make install-strip'.  However `strip' might not be the right
1827 # tool to use in cross-compilation environments, therefore Automake
1828 # will honor the `STRIP' environment variable to overrule this program.
1829 if test "$cross_compiling" != no; then
1830   if test -n "$ac_tool_prefix"; then
1831   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1832 set dummy ${ac_tool_prefix}strip; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_STRIP+set}" = set; then
1836   echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838   if test -n "$STRIP"; then
1839   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1843 do
1844   IFS=$as_save_IFS
1845   test -z "$as_dir" && as_dir=.
1846   for ac_exec_ext in '' $ac_executable_extensions; do
1847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850     break 2
1851   fi
1852 done
1853 done
1854
1855 fi
1856 fi
1857 STRIP=$ac_cv_prog_STRIP
1858 if test -n "$STRIP"; then
1859   echo "$as_me:$LINENO: result: $STRIP" >&5
1860 echo "${ECHO_T}$STRIP" >&6
1861 else
1862   echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1864 fi
1865
1866 fi
1867 if test -z "$ac_cv_prog_STRIP"; then
1868   ac_ct_STRIP=$STRIP
1869   # Extract the first word of "strip", so it can be a program name with args.
1870 set dummy strip; ac_word=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1874   echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876   if test -n "$ac_ct_STRIP"; then
1877   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1878 else
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884   for ac_exec_ext in '' $ac_executable_extensions; do
1885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886     ac_cv_prog_ac_ct_STRIP="strip"
1887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888     break 2
1889   fi
1890 done
1891 done
1892
1893   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1894 fi
1895 fi
1896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1897 if test -n "$ac_ct_STRIP"; then
1898   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1899 echo "${ECHO_T}$ac_ct_STRIP" >&6
1900 else
1901   echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1903 fi
1904
1905   STRIP=$ac_ct_STRIP
1906 else
1907   STRIP="$ac_cv_prog_STRIP"
1908 fi
1909
1910 fi
1911 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1912
1913 # We need awk for the "check" target.  The system "awk" is bad on
1914 # some platforms.
1915 # Always define AMTAR for backward compatibility.
1916
1917 AMTAR=${AMTAR-"${am_missing_run}tar"}
1918
1919 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1920
1921
1922
1923
1924
1925
1926
1927 if test "x$prefix" = xNONE; then
1928   echo $ECHO_N "checking for prefix by $ECHO_C" >&6
1929   # Extract the first word of "cvs", so it can be a program name with args.
1930 set dummy cvs; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   case $ac_prefix_program in
1937   [\\/]* | ?:[\\/]*)
1938   ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
1939   ;;
1940   *)
1941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1943 do
1944   IFS=$as_save_IFS
1945   test -z "$as_dir" && as_dir=.
1946   for ac_exec_ext in '' $ac_executable_extensions; do
1947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948     ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
1949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950     break 2
1951   fi
1952 done
1953 done
1954
1955   ;;
1956 esac
1957 fi
1958 ac_prefix_program=$ac_cv_path_ac_prefix_program
1959
1960 if test -n "$ac_prefix_program"; then
1961   echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
1962 echo "${ECHO_T}$ac_prefix_program" >&6
1963 else
1964   echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1966 fi
1967
1968   if test -n "$ac_prefix_program"; then
1969     prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
1970 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1971          X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
1972          X"$ac_prefix_program" : 'X\(//\)$' \| \
1973          X"$ac_prefix_program" : 'X\(/\)' \| \
1974          .     : '\(.\)' 2>/dev/null ||
1975 echo X"$ac_prefix_program" |
1976     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1977           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1978           /^X\(\/\/\)$/{ s//\1/; q; }
1979           /^X\(\/\).*/{ s//\1/; q; }
1980           s/.*/./; q'`
1981     prefix=`(dirname "$prefix") 2>/dev/null ||
1982 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1983          X"$prefix" : 'X\(//\)[^/]' \| \
1984          X"$prefix" : 'X\(//\)$' \| \
1985          X"$prefix" : 'X\(/\)' \| \
1986          .     : '\(.\)' 2>/dev/null ||
1987 echo X"$prefix" |
1988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1989           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1990           /^X\(\/\/\)$/{ s//\1/; q; }
1991           /^X\(\/\).*/{ s//\1/; q; }
1992           s/.*/./; q'`
1993   fi
1994 fi
1995
1996           ac_config_headers="$ac_config_headers config.h"
1997
1998 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1999 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2000     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2001 if test "${enable_maintainer_mode+set}" = set; then
2002   enableval="$enable_maintainer_mode"
2003   USE_MAINTAINER_MODE=$enableval
2004 else
2005   USE_MAINTAINER_MODE=no
2006 fi;
2007   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2008 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2009
2010
2011 if test $USE_MAINTAINER_MODE = yes; then
2012   MAINTAINER_MODE_TRUE=
2013   MAINTAINER_MODE_FALSE='#'
2014 else
2015   MAINTAINER_MODE_TRUE='#'
2016   MAINTAINER_MODE_FALSE=
2017 fi
2018
2019   MAINT=$MAINTAINER_MODE_TRUE
2020
2021
2022
2023 DEPDIR="${am__leading_dot}deps"
2024
2025           ac_config_commands="$ac_config_commands depfiles"
2026
2027
2028 am_make=${MAKE-make}
2029 cat > confinc << 'END'
2030 am__doit:
2031         @echo done
2032 .PHONY: am__doit
2033 END
2034 # If we don't find an include directive, just comment out the code.
2035 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2036 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2037 am__include="#"
2038 am__quote=
2039 _am_result=none
2040 # First try GNU make style include.
2041 echo "include confinc" > confmf
2042 # We grep out `Entering directory' and `Leaving directory'
2043 # messages which can occur if `w' ends up in MAKEFLAGS.
2044 # In particular we don't look at `^make:' because GNU make might
2045 # be invoked under some other name (usually "gmake"), in which
2046 # case it prints its new name instead of `make'.
2047 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2048    am__include=include
2049    am__quote=
2050    _am_result=GNU
2051 fi
2052 # Now try BSD make style include.
2053 if test "$am__include" = "#"; then
2054    echo '.include "confinc"' > confmf
2055    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2056       am__include=.include
2057       am__quote="\""
2058       _am_result=BSD
2059    fi
2060 fi
2061
2062
2063 echo "$as_me:$LINENO: result: $_am_result" >&5
2064 echo "${ECHO_T}$_am_result" >&6
2065 rm -f confinc confmf
2066
2067 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2068 if test "${enable_dependency_tracking+set}" = set; then
2069   enableval="$enable_dependency_tracking"
2070
2071 fi;
2072 if test "x$enable_dependency_tracking" != xno; then
2073   am_depcomp="$ac_aux_dir/depcomp"
2074   AMDEPBACKSLASH='\'
2075 fi
2076
2077
2078 if test "x$enable_dependency_tracking" != xno; then
2079   AMDEP_TRUE=
2080   AMDEP_FALSE='#'
2081 else
2082   AMDEP_TRUE='#'
2083   AMDEP_FALSE=
2084 fi
2085
2086
2087
2088 ac_ext=c
2089 ac_cpp='$CPP $CPPFLAGS'
2090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093 if test -n "$ac_tool_prefix"; then
2094   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2095 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_CC+set}" = set; then
2099   echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101   if test -n "$CC"; then
2102   ac_cv_prog_CC="$CC" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107   IFS=$as_save_IFS
2108   test -z "$as_dir" && as_dir=.
2109   for ac_exec_ext in '' $ac_executable_extensions; do
2110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113     break 2
2114   fi
2115 done
2116 done
2117
2118 fi
2119 fi
2120 CC=$ac_cv_prog_CC
2121 if test -n "$CC"; then
2122   echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6
2124 else
2125   echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2127 fi
2128
2129 fi
2130 if test -z "$ac_cv_prog_CC"; then
2131   ac_ct_CC=$CC
2132   # Extract the first word of "gcc", so it can be a program name with args.
2133 set dummy gcc; ac_word=$2
2134 echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2137   echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139   if test -n "$ac_ct_CC"; then
2140   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145   IFS=$as_save_IFS
2146   test -z "$as_dir" && as_dir=.
2147   for ac_exec_ext in '' $ac_executable_extensions; do
2148   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2149     ac_cv_prog_ac_ct_CC="gcc"
2150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151     break 2
2152   fi
2153 done
2154 done
2155
2156 fi
2157 fi
2158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2159 if test -n "$ac_ct_CC"; then
2160   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2161 echo "${ECHO_T}$ac_ct_CC" >&6
2162 else
2163   echo "$as_me:$LINENO: result: no" >&5
2164 echo "${ECHO_T}no" >&6
2165 fi
2166
2167   CC=$ac_ct_CC
2168 else
2169   CC="$ac_cv_prog_CC"
2170 fi
2171
2172 if test -z "$CC"; then
2173   if test -n "$ac_tool_prefix"; then
2174   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2175 set dummy ${ac_tool_prefix}cc; ac_word=$2
2176 echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_CC+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   if test -n "$CC"; then
2182   ac_cv_prog_CC="$CC" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187   IFS=$as_save_IFS
2188   test -z "$as_dir" && as_dir=.
2189   for ac_exec_ext in '' $ac_executable_extensions; do
2190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191     ac_cv_prog_CC="${ac_tool_prefix}cc"
2192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193     break 2
2194   fi
2195 done
2196 done
2197
2198 fi
2199 fi
2200 CC=$ac_cv_prog_CC
2201 if test -n "$CC"; then
2202   echo "$as_me:$LINENO: result: $CC" >&5
2203 echo "${ECHO_T}$CC" >&6
2204 else
2205   echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6
2207 fi
2208
2209 fi
2210 if test -z "$ac_cv_prog_CC"; then
2211   ac_ct_CC=$CC
2212   # Extract the first word of "cc", so it can be a program name with args.
2213 set dummy cc; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2217   echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219   if test -n "$ac_ct_CC"; then
2220   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225   IFS=$as_save_IFS
2226   test -z "$as_dir" && as_dir=.
2227   for ac_exec_ext in '' $ac_executable_extensions; do
2228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229     ac_cv_prog_ac_ct_CC="cc"
2230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231     break 2
2232   fi
2233 done
2234 done
2235
2236 fi
2237 fi
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6
2242 else
2243   echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2245 fi
2246
2247   CC=$ac_ct_CC
2248 else
2249   CC="$ac_cv_prog_CC"
2250 fi
2251
2252 fi
2253 if test -z "$CC"; then
2254   # Extract the first word of "cc", so it can be a program name with args.
2255 set dummy cc; ac_word=$2
2256 echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258 if test "${ac_cv_prog_CC+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   if test -n "$CC"; then
2262   ac_cv_prog_CC="$CC" # Let the user override the test.
2263 else
2264   ac_prog_rejected=no
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268   IFS=$as_save_IFS
2269   test -z "$as_dir" && as_dir=.
2270   for ac_exec_ext in '' $ac_executable_extensions; do
2271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2273        ac_prog_rejected=yes
2274        continue
2275      fi
2276     ac_cv_prog_CC="cc"
2277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278     break 2
2279   fi
2280 done
2281 done
2282
2283 if test $ac_prog_rejected = yes; then
2284   # We found a bogon in the path, so make sure we never use it.
2285   set dummy $ac_cv_prog_CC
2286   shift
2287   if test $# != 0; then
2288     # We chose a different compiler from the bogus one.
2289     # However, it has the same basename, so the bogon will be chosen
2290     # first if we set CC to just the basename; use the full file name.
2291     shift
2292     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2293   fi
2294 fi
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 fi
2307 if test -z "$CC"; then
2308   if test -n "$ac_tool_prefix"; then
2309   for ac_prog in cl
2310   do
2311     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2313 echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315 if test "${ac_cv_prog_CC+set}" = set; then
2316   echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318   if test -n "$CC"; then
2319   ac_cv_prog_CC="$CC" # Let the user override the test.
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2323 do
2324   IFS=$as_save_IFS
2325   test -z "$as_dir" && as_dir=.
2326   for ac_exec_ext in '' $ac_executable_extensions; do
2327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2328     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330     break 2
2331   fi
2332 done
2333 done
2334
2335 fi
2336 fi
2337 CC=$ac_cv_prog_CC
2338 if test -n "$CC"; then
2339   echo "$as_me:$LINENO: result: $CC" >&5
2340 echo "${ECHO_T}$CC" >&6
2341 else
2342   echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6
2344 fi
2345
2346     test -n "$CC" && break
2347   done
2348 fi
2349 if test -z "$CC"; then
2350   ac_ct_CC=$CC
2351   for ac_prog in cl
2352 do
2353   # Extract the first word of "$ac_prog", so it can be a program name with args.
2354 set dummy $ac_prog; ac_word=$2
2355 echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   if test -n "$ac_ct_CC"; then
2361   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370     ac_cv_prog_ac_ct_CC="$ac_prog"
2371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372     break 2
2373   fi
2374 done
2375 done
2376
2377 fi
2378 fi
2379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2380 if test -n "$ac_ct_CC"; then
2381   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2382 echo "${ECHO_T}$ac_ct_CC" >&6
2383 else
2384   echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2386 fi
2387
2388   test -n "$ac_ct_CC" && break
2389 done
2390
2391   CC=$ac_ct_CC
2392 fi
2393
2394 fi
2395
2396
2397 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&5
2399 echo "$as_me: error: no acceptable C compiler found in \$PATH
2400 See \`config.log' for more details." >&2;}
2401    { (exit 1); exit 1; }; }
2402
2403 # Provide some information about the compiler.
2404 echo "$as_me:$LINENO:" \
2405      "checking for C compiler version" >&5
2406 ac_compiler=`set X $ac_compile; echo $2`
2407 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2408   (eval $ac_compiler --version </dev/null >&5) 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }
2412 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2413   (eval $ac_compiler -v </dev/null >&5) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }
2417 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2418   (eval $ac_compiler -V </dev/null >&5) 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }
2422
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h.  */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h.  */
2429
2430 int
2431 main ()
2432 {
2433
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 ac_clean_files_save=$ac_clean_files
2439 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2440 # Try to create an executable without -o first, disregard a.out.
2441 # It will help us diagnose broken compilers, and finding out an intuition
2442 # of exeext.
2443 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2444 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2445 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2447   (eval $ac_link_default) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; then
2451   # Find the output, starting from the most likely.  This scheme is
2452 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2453 # resort.
2454
2455 # Be careful to initialize this variable, since it used to be cached.
2456 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2457 ac_cv_exeext=
2458 # b.out is created by i960 compilers.
2459 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2460 do
2461   test -f "$ac_file" || continue
2462   case $ac_file in
2463     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2464         ;;
2465     conftest.$ac_ext )
2466         # This is the source file.
2467         ;;
2468     [ab].out )
2469         # We found the default executable, but exeext='' is most
2470         # certainly right.
2471         break;;
2472     *.* )
2473         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474         # FIXME: I believe we export ac_cv_exeext for Libtool,
2475         # but it would be cool to find out if it's true.  Does anybody
2476         # maintain Libtool? --akim.
2477         export ac_cv_exeext
2478         break;;
2479     * )
2480         break;;
2481   esac
2482 done
2483 else
2484   echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2488 See \`config.log' for more details." >&5
2489 echo "$as_me: error: C compiler cannot create executables
2490 See \`config.log' for more details." >&2;}
2491    { (exit 77); exit 77; }; }
2492 fi
2493
2494 ac_exeext=$ac_cv_exeext
2495 echo "$as_me:$LINENO: result: $ac_file" >&5
2496 echo "${ECHO_T}$ac_file" >&6
2497
2498 # Check the compiler produces executables we can run.  If not, either
2499 # the compiler is broken, or we cross compile.
2500 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2501 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2502 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2503 # If not cross compiling, check that we can run a simple program.
2504 if test "$cross_compiling" != yes; then
2505   if { ac_try='./$ac_file'
2506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507   (eval $ac_try) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; }; then
2511     cross_compiling=no
2512   else
2513     if test "$cross_compiling" = maybe; then
2514         cross_compiling=yes
2515     else
2516         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2517 If you meant to cross compile, use \`--host'.
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: cannot run C compiled programs.
2520 If you meant to cross compile, use \`--host'.
2521 See \`config.log' for more details." >&2;}
2522    { (exit 1); exit 1; }; }
2523     fi
2524   fi
2525 fi
2526 echo "$as_me:$LINENO: result: yes" >&5
2527 echo "${ECHO_T}yes" >&6
2528
2529 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2530 ac_clean_files=$ac_clean_files_save
2531 # Check the compiler produces executables we can run.  If not, either
2532 # the compiler is broken, or we cross compile.
2533 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2534 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2535 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2536 echo "${ECHO_T}$cross_compiling" >&6
2537
2538 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2539 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2541   (eval $ac_link) 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; then
2545   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2546 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2547 # work properly (i.e., refer to `conftest.exe'), while it won't with
2548 # `rm'.
2549 for ac_file in conftest.exe conftest conftest.*; do
2550   test -f "$ac_file" || continue
2551   case $ac_file in
2552     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2553     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2554           export ac_cv_exeext
2555           break;;
2556     * ) break;;
2557   esac
2558 done
2559 else
2560   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2563 See \`config.log' for more details." >&2;}
2564    { (exit 1); exit 1; }; }
2565 fi
2566
2567 rm -f conftest$ac_cv_exeext
2568 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2569 echo "${ECHO_T}$ac_cv_exeext" >&6
2570
2571 rm -f conftest.$ac_ext
2572 EXEEXT=$ac_cv_exeext
2573 ac_exeext=$EXEEXT
2574 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2575 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2576 if test "${ac_cv_objext+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h.  */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h.  */
2585
2586 int
2587 main ()
2588 {
2589
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.o conftest.obj
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596   (eval $ac_compile) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; then
2600   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2601   case $ac_file in
2602     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2603     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2604        break;;
2605   esac
2606 done
2607 else
2608   echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2612 See \`config.log' for more details." >&5
2613 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2614 See \`config.log' for more details." >&2;}
2615    { (exit 1); exit 1; }; }
2616 fi
2617
2618 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2619 fi
2620 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2621 echo "${ECHO_T}$ac_cv_objext" >&6
2622 OBJEXT=$ac_cv_objext
2623 ac_objext=$OBJEXT
2624 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2625 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2626 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2627   echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629   cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635
2636 int
2637 main ()
2638 {
2639 #ifndef __GNUC__
2640        choke me
2641 #endif
2642
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649   (eval $ac_compile) 2>conftest.er1
2650   ac_status=$?
2651   grep -v '^ *+' conftest.er1 >conftest.err
2652   rm -f conftest.er1
2653   cat conftest.err >&5
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); } &&
2656          { ac_try='test -z "$ac_c_werror_flag"
2657                          || test ! -s conftest.err'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; } &&
2663          { ac_try='test -s conftest.$ac_objext'
2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665   (eval $ac_try) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; }; then
2669   ac_compiler_gnu=yes
2670 else
2671   echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674 ac_compiler_gnu=no
2675 fi
2676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2678
2679 fi
2680 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2681 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2682 GCC=`test $ac_compiler_gnu = yes && echo yes`
2683 ac_test_CFLAGS=${CFLAGS+set}
2684 ac_save_CFLAGS=$CFLAGS
2685 CFLAGS="-g"
2686 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2687 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2688 if test "${ac_cv_prog_cc_g+set}" = set; then
2689   echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691   cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h.  */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h.  */
2697
2698 int
2699 main ()
2700 {
2701
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708   (eval $ac_compile) 2>conftest.er1
2709   ac_status=$?
2710   grep -v '^ *+' conftest.er1 >conftest.err
2711   rm -f conftest.er1
2712   cat conftest.err >&5
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          { ac_try='test -z "$ac_c_werror_flag"
2716                          || test ! -s conftest.err'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; } &&
2722          { ac_try='test -s conftest.$ac_objext'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728   ac_cv_prog_cc_g=yes
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733 ac_cv_prog_cc_g=no
2734 fi
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 fi
2737 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2738 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2739 if test "$ac_test_CFLAGS" = set; then
2740   CFLAGS=$ac_save_CFLAGS
2741 elif test $ac_cv_prog_cc_g = yes; then
2742   if test "$GCC" = yes; then
2743     CFLAGS="-g -O2"
2744   else
2745     CFLAGS="-g"
2746   fi
2747 else
2748   if test "$GCC" = yes; then
2749     CFLAGS="-O2"
2750   else
2751     CFLAGS=
2752   fi
2753 fi
2754 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2755 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2756 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   ac_cv_prog_cc_stdc=no
2760 ac_save_CC=$CC
2761 cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h.  */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h.  */
2767 #include <stdarg.h>
2768 #include <stdio.h>
2769 #include <sys/types.h>
2770 #include <sys/stat.h>
2771 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2772 struct buf { int x; };
2773 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2774 static char *e (p, i)
2775      char **p;
2776      int i;
2777 {
2778   return p[i];
2779 }
2780 static char *f (char * (*g) (char **, int), char **p, ...)
2781 {
2782   char *s;
2783   va_list v;
2784   va_start (v,p);
2785   s = g (p, va_arg (v,int));
2786   va_end (v);
2787   return s;
2788 }
2789
2790 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2791    function prototypes and stuff, but not '\xHH' hex character constants.
2792    These don't provoke an error unfortunately, instead are silently treated
2793    as 'x'.  The following induces an error, until -std1 is added to get
2794    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2795    array size at least.  It's necessary to write '\x00'==0 to get something
2796    that's true only with -std1.  */
2797 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2798
2799 int test (int i, double x);
2800 struct s1 {int (*f) (int a);};
2801 struct s2 {int (*f) (double a);};
2802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2803 int argc;
2804 char **argv;
2805 int
2806 main ()
2807 {
2808 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2809   ;
2810   return 0;
2811 }
2812 _ACEOF
2813 # Don't try gcc -ansi; that turns off useful extensions and
2814 # breaks some systems' header files.
2815 # AIX                   -qlanglvl=ansi
2816 # Ultrix and OSF/1      -std1
2817 # HP-UX 10.20 and later -Ae
2818 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2819 # SVR4                  -Xc -D__EXTENSIONS__
2820 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2821 do
2822   CC="$ac_save_CC $ac_arg"
2823   rm -f conftest.$ac_objext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825   (eval $ac_compile) 2>conftest.er1
2826   ac_status=$?
2827   grep -v '^ *+' conftest.er1 >conftest.err
2828   rm -f conftest.er1
2829   cat conftest.err >&5
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); } &&
2832          { ac_try='test -z "$ac_c_werror_flag"
2833                          || test ! -s conftest.err'
2834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835   (eval $ac_try) 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; } &&
2839          { ac_try='test -s conftest.$ac_objext'
2840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841   (eval $ac_try) 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); }; }; then
2845   ac_cv_prog_cc_stdc=$ac_arg
2846 break
2847 else
2848   echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2850
2851 fi
2852 rm -f conftest.err conftest.$ac_objext
2853 done
2854 rm -f conftest.$ac_ext conftest.$ac_objext
2855 CC=$ac_save_CC
2856
2857 fi
2858
2859 case "x$ac_cv_prog_cc_stdc" in
2860   x|xno)
2861     echo "$as_me:$LINENO: result: none needed" >&5
2862 echo "${ECHO_T}none needed" >&6 ;;
2863   *)
2864     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2865 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2866     CC="$CC $ac_cv_prog_cc_stdc" ;;
2867 esac
2868
2869 # Some people use a C++ compiler to compile C.  Since we use `exit',
2870 # in C++ we need to declare it.  In case someone uses the same compiler
2871 # for both compiling C and C++ we need to have the C++ compiler decide
2872 # the declaration of exit, since it's the most demanding environment.
2873 cat >conftest.$ac_ext <<_ACEOF
2874 #ifndef __cplusplus
2875   choke me
2876 #endif
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880   (eval $ac_compile) 2>conftest.er1
2881   ac_status=$?
2882   grep -v '^ *+' conftest.er1 >conftest.err
2883   rm -f conftest.er1
2884   cat conftest.err >&5
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); } &&
2887          { ac_try='test -z "$ac_c_werror_flag"
2888                          || test ! -s conftest.err'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; } &&
2894          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2900   for ac_declaration in \
2901    '' \
2902    'extern "C" void std::exit (int) throw (); using std::exit;' \
2903    'extern "C" void std::exit (int); using std::exit;' \
2904    'extern "C" void exit (int) throw ();' \
2905    'extern "C" void exit (int);' \
2906    'void exit (int);'
2907 do
2908   cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h.  */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h.  */
2914 $ac_declaration
2915 #include <stdlib.h>
2916 int
2917 main ()
2918 {
2919 exit (42);
2920   ;
2921   return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926   (eval $ac_compile) 2>conftest.er1
2927   ac_status=$?
2928   grep -v '^ *+' conftest.er1 >conftest.err
2929   rm -f conftest.er1
2930   cat conftest.err >&5
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); } &&
2933          { ac_try='test -z "$ac_c_werror_flag"
2934                          || test ! -s conftest.err'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; } &&
2940          { ac_try='test -s conftest.$ac_objext'
2941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942   (eval $ac_try) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; }; then
2946   :
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 continue
2952 fi
2953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954   cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h.  */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h.  */
2960 $ac_declaration
2961 int
2962 main ()
2963 {
2964 exit (42);
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2971   (eval $ac_compile) 2>conftest.er1
2972   ac_status=$?
2973   grep -v '^ *+' conftest.er1 >conftest.err
2974   rm -f conftest.er1
2975   cat conftest.err >&5
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); } &&
2978          { ac_try='test -z "$ac_c_werror_flag"
2979                          || test ! -s conftest.err'
2980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981   (eval $ac_try) 2>&5
2982   ac_status=$?
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); }; } &&
2985          { ac_try='test -s conftest.$ac_objext'
2986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987   (eval $ac_try) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; }; then
2991   break
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996 fi
2997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2998 done
2999 rm -f conftest*
3000 if test -n "$ac_declaration"; then
3001   echo '#ifdef __cplusplus' >>confdefs.h
3002   echo $ac_declaration      >>confdefs.h
3003   echo '#endif'             >>confdefs.h
3004 fi
3005
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010 fi
3011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017
3018 depcc="$CC"   am_compiler_list=
3019
3020 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3021 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3022 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3023   echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3026   # We make a subdir and do the tests there.  Otherwise we can end up
3027   # making bogus files that we don't know about and never remove.  For
3028   # instance it was reported that on HP-UX the gcc test will end up
3029   # making a dummy file named `D' -- because `-MD' means `put the output
3030   # in D'.
3031   mkdir conftest.dir
3032   # Copy depcomp to subdir because otherwise we won't find it if we're
3033   # using a relative directory.
3034   cp "$am_depcomp" conftest.dir
3035   cd conftest.dir
3036   # We will build objects and dependencies in a subdirectory because
3037   # it helps to detect inapplicable dependency modes.  For instance
3038   # both Tru64's cc and ICC support -MD to output dependencies as a
3039   # side effect of compilation, but ICC will put the dependencies in
3040   # the current directory while Tru64 will put them in the object
3041   # directory.
3042   mkdir sub
3043
3044   am_cv_CC_dependencies_compiler_type=none
3045   if test "$am_compiler_list" = ""; then
3046      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3047   fi
3048   for depmode in $am_compiler_list; do
3049     # Setup a source with many dependencies, because some compilers
3050     # like to wrap large dependency lists on column 80 (with \), and
3051     # we should not choose a depcomp mode which is confused by this.
3052     #
3053     # We need to recreate these files for each test, as the compiler may
3054     # overwrite some of them when testing with obscure command lines.
3055     # This happens at least with the AIX C compiler.
3056     : > sub/conftest.c
3057     for i in 1 2 3 4 5 6; do
3058       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3059       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3060       # Solaris 8's {/usr,}/bin/sh.
3061       touch sub/conftst$i.h
3062     done
3063     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3064
3065     case $depmode in
3066     nosideeffect)
3067       # after this tag, mechanisms are not by side-effect, so they'll
3068       # only be used when explicitly requested
3069       if test "x$enable_dependency_tracking" = xyes; then
3070         continue
3071       else
3072         break
3073       fi
3074       ;;
3075     none) break ;;
3076     esac
3077     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3078     # mode.  It turns out that the SunPro C++ compiler does not properly
3079     # handle `-M -o', and we need to detect this.
3080     if depmode=$depmode \
3081        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3082        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3083        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3084          >/dev/null 2>conftest.err &&
3085        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3086        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3087        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3088       # icc doesn't choke on unknown options, it will just issue warnings
3089       # or remarks (even with -Werror).  So we grep stderr for any message
3090       # that says an option was ignored or not supported.
3091       # When given -MP, icc 7.0 and 7.1 complain thusly:
3092       #   icc: Command line warning: ignoring option '-M'; no argument required
3093       # The diagnosis changed in icc 8.0:
3094       #   icc: Command line remark: option '-MP' not supported
3095       if (grep 'ignoring option' conftest.err ||
3096           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3097         am_cv_CC_dependencies_compiler_type=$depmode
3098         break
3099       fi
3100     fi
3101   done
3102
3103   cd ..
3104   rm -rf conftest.dir
3105 else
3106   am_cv_CC_dependencies_compiler_type=none
3107 fi
3108
3109 fi
3110 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3111 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3112 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3113
3114
3115
3116 if
3117   test "x$enable_dependency_tracking" != xno \
3118   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3119   am__fastdepCC_TRUE=
3120   am__fastdepCC_FALSE='#'
3121 else
3122   am__fastdepCC_TRUE='#'
3123   am__fastdepCC_FALSE=
3124 fi
3125
3126
3127
3128 ac_ext=c
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3134 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3135 # On Suns, sometimes $CPP names a directory.
3136 if test -n "$CPP" && test -d "$CPP"; then
3137   CPP=
3138 fi
3139 if test -z "$CPP"; then
3140   if test "${ac_cv_prog_CPP+set}" = set; then
3141   echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143       # Double quotes because CPP needs to be expanded
3144     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3145     do
3146       ac_preproc_ok=false
3147 for ac_c_preproc_warn_flag in '' yes
3148 do
3149   # Use a header file that comes with gcc, so configuring glibc
3150   # with a fresh cross-compiler works.
3151   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3152   # <limits.h> exists even on freestanding compilers.
3153   # On the NeXT, cc -E runs the code through the compiler's parser,
3154   # not just through cpp. "Syntax error" is here to catch this case.
3155   cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161 #ifdef __STDC__
3162 # include <limits.h>
3163 #else
3164 # include <assert.h>
3165 #endif
3166                      Syntax error
3167 _ACEOF
3168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3170   ac_status=$?
3171   grep -v '^ *+' conftest.er1 >conftest.err
3172   rm -f conftest.er1
3173   cat conftest.err >&5
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); } >/dev/null; then
3176   if test -s conftest.err; then
3177     ac_cpp_err=$ac_c_preproc_warn_flag
3178     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3179   else
3180     ac_cpp_err=
3181   fi
3182 else
3183   ac_cpp_err=yes
3184 fi
3185 if test -z "$ac_cpp_err"; then
3186   :
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191   # Broken: fails on valid input.
3192 continue
3193 fi
3194 rm -f conftest.err conftest.$ac_ext
3195
3196   # OK, works on sane cases.  Now check whether non-existent headers
3197   # can be detected and how.
3198   cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h.  */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h.  */
3204 #include <ac_nonexistent.h>
3205 _ACEOF
3206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3208   ac_status=$?
3209   grep -v '^ *+' conftest.er1 >conftest.err
3210   rm -f conftest.er1
3211   cat conftest.err >&5
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); } >/dev/null; then
3214   if test -s conftest.err; then
3215     ac_cpp_err=$ac_c_preproc_warn_flag
3216     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3217   else
3218     ac_cpp_err=
3219   fi
3220 else
3221   ac_cpp_err=yes
3222 fi
3223 if test -z "$ac_cpp_err"; then
3224   # Broken: success on invalid input.
3225 continue
3226 else
3227   echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230   # Passes both tests.
3231 ac_preproc_ok=:
3232 break
3233 fi
3234 rm -f conftest.err conftest.$ac_ext
3235
3236 done
3237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3238 rm -f conftest.err conftest.$ac_ext
3239 if $ac_preproc_ok; then
3240   break
3241 fi
3242
3243     done
3244     ac_cv_prog_CPP=$CPP
3245
3246 fi
3247   CPP=$ac_cv_prog_CPP
3248 else
3249   ac_cv_prog_CPP=$CPP
3250 fi
3251 echo "$as_me:$LINENO: result: $CPP" >&5
3252 echo "${ECHO_T}$CPP" >&6
3253 ac_preproc_ok=false
3254 for ac_c_preproc_warn_flag in '' yes
3255 do
3256   # Use a header file that comes with gcc, so configuring glibc
3257   # with a fresh cross-compiler works.
3258   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3259   # <limits.h> exists even on freestanding compilers.
3260   # On the NeXT, cc -E runs the code through the compiler's parser,
3261   # not just through cpp. "Syntax error" is here to catch this case.
3262   cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h.  */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h.  */
3268 #ifdef __STDC__
3269 # include <limits.h>
3270 #else
3271 # include <assert.h>
3272 #endif
3273                      Syntax error
3274 _ACEOF
3275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3277   ac_status=$?
3278   grep -v '^ *+' conftest.er1 >conftest.err
3279   rm -f conftest.er1
3280   cat conftest.err >&5
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); } >/dev/null; then
3283   if test -s conftest.err; then
3284     ac_cpp_err=$ac_c_preproc_warn_flag
3285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3286   else
3287     ac_cpp_err=
3288   fi
3289 else
3290   ac_cpp_err=yes
3291 fi
3292 if test -z "$ac_cpp_err"; then
3293   :
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298   # Broken: fails on valid input.
3299 continue
3300 fi
3301 rm -f conftest.err conftest.$ac_ext
3302
3303   # OK, works on sane cases.  Now check whether non-existent headers
3304   # can be detected and how.
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <ac_nonexistent.h>
3312 _ACEOF
3313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } >/dev/null; then
3321   if test -s conftest.err; then
3322     ac_cpp_err=$ac_c_preproc_warn_flag
3323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3324   else
3325     ac_cpp_err=
3326   fi
3327 else
3328   ac_cpp_err=yes
3329 fi
3330 if test -z "$ac_cpp_err"; then
3331   # Broken: success on invalid input.
3332 continue
3333 else
3334   echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337   # Passes both tests.
3338 ac_preproc_ok=:
3339 break
3340 fi
3341 rm -f conftest.err conftest.$ac_ext
3342
3343 done
3344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345 rm -f conftest.err conftest.$ac_ext
3346 if $ac_preproc_ok; then
3347   :
3348 else
3349   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3350 See \`config.log' for more details." >&5
3351 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3352 See \`config.log' for more details." >&2;}
3353    { (exit 1); exit 1; }; }
3354 fi
3355
3356 ac_ext=c
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361
3362
3363 echo "$as_me:$LINENO: checking for egrep" >&5
3364 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3365 if test "${ac_cv_prog_egrep+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3369     then ac_cv_prog_egrep='grep -E'
3370     else ac_cv_prog_egrep='egrep'
3371     fi
3372 fi
3373 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3374 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3375  EGREP=$ac_cv_prog_egrep
3376
3377
3378
3379 echo "$as_me:$LINENO: checking for AIX" >&5
3380 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387 #ifdef _AIX
3388   yes
3389 #endif
3390
3391 _ACEOF
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393   $EGREP "yes" >/dev/null 2>&1; then
3394   echo "$as_me:$LINENO: result: yes" >&5
3395 echo "${ECHO_T}yes" >&6
3396 cat >>confdefs.h <<\_ACEOF
3397 #define _ALL_SOURCE 1
3398 _ACEOF
3399
3400 else
3401   echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6
3403 fi
3404 rm -f conftest*
3405
3406
3407 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3408 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3409 if test "${ac_cv_header_stdc+set}" = set; then
3410   echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412   cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 #include <stdlib.h>
3419 #include <stdarg.h>
3420 #include <string.h>
3421 #include <float.h>
3422
3423 int
3424 main ()
3425 {
3426
3427   ;
3428   return 0;
3429 }
3430 _ACEOF
3431 rm -f conftest.$ac_objext
3432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3433   (eval $ac_compile) 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } &&
3440          { ac_try='test -z "$ac_c_werror_flag"
3441                          || test ! -s conftest.err'
3442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443   (eval $ac_try) 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); }; } &&
3447          { ac_try='test -s conftest.$ac_objext'
3448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449   (eval $ac_try) 2>&5
3450   ac_status=$?
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); }; }; then
3453   ac_cv_header_stdc=yes
3454 else
3455   echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458 ac_cv_header_stdc=no
3459 fi
3460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3461
3462 if test $ac_cv_header_stdc = yes; then
3463   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3464   cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h.  */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h.  */
3470 #include <string.h>
3471
3472 _ACEOF
3473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3474   $EGREP "memchr" >/dev/null 2>&1; then
3475   :
3476 else
3477   ac_cv_header_stdc=no
3478 fi
3479 rm -f conftest*
3480
3481 fi
3482
3483 if test $ac_cv_header_stdc = yes; then
3484   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3485   cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491 #include <stdlib.h>
3492
3493 _ACEOF
3494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3495   $EGREP "free" >/dev/null 2>&1; then
3496   :
3497 else
3498   ac_cv_header_stdc=no
3499 fi
3500 rm -f conftest*
3501
3502 fi
3503
3504 if test $ac_cv_header_stdc = yes; then
3505   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3506   if test "$cross_compiling" = yes; then
3507   :
3508 else
3509   cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h.  */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h.  */
3515 #include <ctype.h>
3516 #if ((' ' & 0x0FF) == 0x020)
3517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3519 #else
3520 # define ISLOWER(c) \
3521                    (('a' <= (c) && (c) <= 'i') \
3522                      || ('j' <= (c) && (c) <= 'r') \
3523                      || ('s' <= (c) && (c) <= 'z'))
3524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3525 #endif
3526
3527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3528 int
3529 main ()
3530 {
3531   int i;
3532   for (i = 0; i < 256; i++)
3533     if (XOR (islower (i), ISLOWER (i))
3534         || toupper (i) != TOUPPER (i))
3535       exit(2);
3536   exit (0);
3537 }
3538 _ACEOF
3539 rm -f conftest$ac_exeext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3541   (eval $ac_link) 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546   (eval $ac_try) 2>&5
3547   ac_status=$?
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); }; }; then
3550   :
3551 else
3552   echo "$as_me: program exited with status $ac_status" >&5
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 ( exit $ac_status )
3557 ac_cv_header_stdc=no
3558 fi
3559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3560 fi
3561 fi
3562 fi
3563 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3564 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3565 if test $ac_cv_header_stdc = yes; then
3566
3567 cat >>confdefs.h <<\_ACEOF
3568 #define STDC_HEADERS 1
3569 _ACEOF
3570
3571 fi
3572
3573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3584                   inttypes.h stdint.h unistd.h
3585 do
3586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3587 echo "$as_me:$LINENO: checking for $ac_header" >&5
3588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592   cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h.  */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h.  */
3598 $ac_includes_default
3599
3600 #include <$ac_header>
3601 _ACEOF
3602 rm -f conftest.$ac_objext
3603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604   (eval $ac_compile) 2>conftest.er1
3605   ac_status=$?
3606   grep -v '^ *+' conftest.er1 >conftest.err
3607   rm -f conftest.er1
3608   cat conftest.err >&5
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); } &&
3611          { ac_try='test -z "$ac_c_werror_flag"
3612                          || test ! -s conftest.err'
3613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614   (eval $ac_try) 2>&5
3615   ac_status=$?
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); }; } &&
3618          { ac_try='test -s conftest.$ac_objext'
3619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620   (eval $ac_try) 2>&5
3621   ac_status=$?
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); }; }; then
3624   eval "$as_ac_Header=yes"
3625 else
3626   echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629 eval "$as_ac_Header=no"
3630 fi
3631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632 fi
3633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3636   cat >>confdefs.h <<_ACEOF
3637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3638 _ACEOF
3639
3640 fi
3641
3642 done
3643
3644
3645 if test "${ac_cv_header_minix_config_h+set}" = set; then
3646   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3647 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3648 if test "${ac_cv_header_minix_config_h+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 fi
3651 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3652 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3653 else
3654   # Is the header compilable?
3655 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3656 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3657 cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h.  */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h.  */
3663 $ac_includes_default
3664 #include <minix/config.h>
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668   (eval $ac_compile) 2>conftest.er1
3669   ac_status=$?
3670   grep -v '^ *+' conftest.er1 >conftest.err
3671   rm -f conftest.er1
3672   cat conftest.err >&5
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } &&
3675          { ac_try='test -z "$ac_c_werror_flag"
3676                          || test ! -s conftest.err'
3677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678   (eval $ac_try) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; } &&
3682          { ac_try='test -s conftest.$ac_objext'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; }; then
3688   ac_header_compiler=yes
3689 else
3690   echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 ac_header_compiler=no
3694 fi
3695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3697 echo "${ECHO_T}$ac_header_compiler" >&6
3698
3699 # Is the header present?
3700 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3701 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3702 cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h.  */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h.  */
3708 #include <minix/config.h>
3709 _ACEOF
3710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712   ac_status=$?
3713   grep -v '^ *+' conftest.er1 >conftest.err
3714   rm -f conftest.er1
3715   cat conftest.err >&5
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } >/dev/null; then
3718   if test -s conftest.err; then
3719     ac_cpp_err=$ac_c_preproc_warn_flag
3720     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3721   else
3722     ac_cpp_err=
3723   fi
3724 else
3725   ac_cpp_err=yes
3726 fi
3727 if test -z "$ac_cpp_err"; then
3728   ac_header_preproc=yes
3729 else
3730   echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733   ac_header_preproc=no
3734 fi
3735 rm -f conftest.err conftest.$ac_ext
3736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3737 echo "${ECHO_T}$ac_header_preproc" >&6
3738
3739 # So?  What about this header?
3740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3741   yes:no: )
3742     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3743 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3744     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3745 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3746     ac_header_preproc=yes
3747     ;;
3748   no:yes:* )
3749     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3750 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3751     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3752 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3753     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3754 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3755     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3756 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3757     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3758 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3759     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3760 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3761     (
3762       cat <<\_ASBOX
3763 ## ------------------------------ ##
3764 ## Report this to bug-cvs@gnu.org ##
3765 ## ------------------------------ ##
3766 _ASBOX
3767     ) |
3768       sed "s/^/$as_me: WARNING:     /" >&2
3769     ;;
3770 esac
3771 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3772 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3773 if test "${ac_cv_header_minix_config_h+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   ac_cv_header_minix_config_h=$ac_header_preproc
3777 fi
3778 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3779 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3780
3781 fi
3782 if test $ac_cv_header_minix_config_h = yes; then
3783   MINIX=yes
3784 else
3785   MINIX=
3786 fi
3787
3788
3789 if test "$MINIX" = yes; then
3790
3791 cat >>confdefs.h <<\_ACEOF
3792 #define _POSIX_SOURCE 1
3793 _ACEOF
3794
3795
3796 cat >>confdefs.h <<\_ACEOF
3797 #define _POSIX_1_SOURCE 2
3798 _ACEOF
3799
3800
3801 cat >>confdefs.h <<\_ACEOF
3802 #define _MINIX 1
3803 _ACEOF
3804
3805 fi
3806
3807
3808
3809 cat >>confdefs.h <<\_ACEOF
3810 #define _GNU_SOURCE 1
3811 _ACEOF
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824   cat >>confdefs.h <<\_ACEOF
3825 #define __EXTENSIONS__ 1
3826 _ACEOF
3827
3828
3829
3830
3831 ac_ext=c
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 if test -n "$ac_tool_prefix"; then
3837   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3839 echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841 if test "${ac_cv_prog_CC+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   if test -n "$CC"; then
3845   ac_cv_prog_CC="$CC" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3849 do
3850   IFS=$as_save_IFS
3851   test -z "$as_dir" && as_dir=.
3852   for ac_exec_ext in '' $ac_executable_extensions; do
3853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856     break 2
3857   fi
3858 done
3859 done
3860
3861 fi
3862 fi
3863 CC=$ac_cv_prog_CC
3864 if test -n "$CC"; then
3865   echo "$as_me:$LINENO: result: $CC" >&5
3866 echo "${ECHO_T}$CC" >&6
3867 else
3868   echo "$as_me:$LINENO: result: no" >&5
3869 echo "${ECHO_T}no" >&6
3870 fi
3871
3872 fi
3873 if test -z "$ac_cv_prog_CC"; then
3874   ac_ct_CC=$CC
3875   # Extract the first word of "gcc", so it can be a program name with args.
3876 set dummy gcc; ac_word=$2
3877 echo "$as_me:$LINENO: checking for $ac_word" >&5
3878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   if test -n "$ac_ct_CC"; then
3883   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888   IFS=$as_save_IFS
3889   test -z "$as_dir" && as_dir=.
3890   for ac_exec_ext in '' $ac_executable_extensions; do
3891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892     ac_cv_prog_ac_ct_CC="gcc"
3893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894     break 2
3895   fi
3896 done
3897 done
3898
3899 fi
3900 fi
3901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3902 if test -n "$ac_ct_CC"; then
3903   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3904 echo "${ECHO_T}$ac_ct_CC" >&6
3905 else
3906   echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3908 fi
3909
3910   CC=$ac_ct_CC
3911 else
3912   CC="$ac_cv_prog_CC"
3913 fi
3914
3915 if test -z "$CC"; then
3916   if test -n "$ac_tool_prefix"; then
3917   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3918 set dummy ${ac_tool_prefix}cc; ac_word=$2
3919 echo "$as_me:$LINENO: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_prog_CC+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924   if test -n "$CC"; then
3925   ac_cv_prog_CC="$CC" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930   IFS=$as_save_IFS
3931   test -z "$as_dir" && as_dir=.
3932   for ac_exec_ext in '' $ac_executable_extensions; do
3933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934     ac_cv_prog_CC="${ac_tool_prefix}cc"
3935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936     break 2
3937   fi
3938 done
3939 done
3940
3941 fi
3942 fi
3943 CC=$ac_cv_prog_CC
3944 if test -n "$CC"; then
3945   echo "$as_me:$LINENO: result: $CC" >&5
3946 echo "${ECHO_T}$CC" >&6
3947 else
3948   echo "$as_me:$LINENO: result: no" >&5
3949 echo "${ECHO_T}no" >&6
3950 fi
3951
3952 fi
3953 if test -z "$ac_cv_prog_CC"; then
3954   ac_ct_CC=$CC
3955   # Extract the first word of "cc", so it can be a program name with args.
3956 set dummy cc; ac_word=$2
3957 echo "$as_me:$LINENO: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   if test -n "$ac_ct_CC"; then
3963   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968   IFS=$as_save_IFS
3969   test -z "$as_dir" && as_dir=.
3970   for ac_exec_ext in '' $ac_executable_extensions; do
3971   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972     ac_cv_prog_ac_ct_CC="cc"
3973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3974     break 2
3975   fi
3976 done
3977 done
3978
3979 fi
3980 fi
3981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3982 if test -n "$ac_ct_CC"; then
3983   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3984 echo "${ECHO_T}$ac_ct_CC" >&6
3985 else
3986   echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3988 fi
3989
3990   CC=$ac_ct_CC
3991 else
3992   CC="$ac_cv_prog_CC"
3993 fi
3994
3995 fi
3996 if test -z "$CC"; then
3997   # Extract the first word of "cc", so it can be a program name with args.
3998 set dummy cc; ac_word=$2
3999 echo "$as_me:$LINENO: checking for $ac_word" >&5
4000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4001 if test "${ac_cv_prog_CC+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   if test -n "$CC"; then
4005   ac_cv_prog_CC="$CC" # Let the user override the test.
4006 else
4007   ac_prog_rejected=no
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4010 do
4011   IFS=$as_save_IFS
4012   test -z "$as_dir" && as_dir=.
4013   for ac_exec_ext in '' $ac_executable_extensions; do
4014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4016        ac_prog_rejected=yes
4017        continue
4018      fi
4019     ac_cv_prog_CC="cc"
4020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024 done
4025
4026 if test $ac_prog_rejected = yes; then
4027   # We found a bogon in the path, so make sure we never use it.
4028   set dummy $ac_cv_prog_CC
4029   shift
4030   if test $# != 0; then
4031     # We chose a different compiler from the bogus one.
4032     # However, it has the same basename, so the bogon will be chosen
4033     # first if we set CC to just the basename; use the full file name.
4034     shift
4035     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4036   fi
4037 fi
4038 fi
4039 fi
4040 CC=$ac_cv_prog_CC
4041 if test -n "$CC"; then
4042   echo "$as_me:$LINENO: result: $CC" >&5
4043 echo "${ECHO_T}$CC" >&6
4044 else
4045   echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4047 fi
4048
4049 fi
4050 if test -z "$CC"; then
4051   if test -n "$ac_tool_prefix"; then
4052   for ac_prog in cl
4053   do
4054     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4056 echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4058 if test "${ac_cv_prog_CC+set}" = set; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061   if test -n "$CC"; then
4062   ac_cv_prog_CC="$CC" # Let the user override the test.
4063 else
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067   IFS=$as_save_IFS
4068   test -z "$as_dir" && as_dir=.
4069   for ac_exec_ext in '' $ac_executable_extensions; do
4070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4071     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4073     break 2
4074   fi
4075 done
4076 done
4077
4078 fi
4079 fi
4080 CC=$ac_cv_prog_CC
4081 if test -n "$CC"; then
4082   echo "$as_me:$LINENO: result: $CC" >&5
4083 echo "${ECHO_T}$CC" >&6
4084 else
4085   echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4087 fi
4088
4089     test -n "$CC" && break
4090   done
4091 fi
4092 if test -z "$CC"; then
4093   ac_ct_CC=$CC
4094   for ac_prog in cl
4095 do
4096   # Extract the first word of "$ac_prog", so it can be a program name with args.
4097 set dummy $ac_prog; ac_word=$2
4098 echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   if test -n "$ac_ct_CC"; then
4104   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109   IFS=$as_save_IFS
4110   test -z "$as_dir" && as_dir=.
4111   for ac_exec_ext in '' $ac_executable_extensions; do
4112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113     ac_cv_prog_ac_ct_CC="$ac_prog"
4114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4115     break 2
4116   fi
4117 done
4118 done
4119
4120 fi
4121 fi
4122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4123 if test -n "$ac_ct_CC"; then
4124   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4125 echo "${ECHO_T}$ac_ct_CC" >&6
4126 else
4127   echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6
4129 fi
4130
4131   test -n "$ac_ct_CC" && break
4132 done
4133
4134   CC=$ac_ct_CC
4135 fi
4136
4137 fi
4138
4139
4140 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4141 See \`config.log' for more details." >&5
4142 echo "$as_me: error: no acceptable C compiler found in \$PATH
4143 See \`config.log' for more details." >&2;}
4144    { (exit 1); exit 1; }; }
4145
4146 # Provide some information about the compiler.
4147 echo "$as_me:$LINENO:" \
4148      "checking for C compiler version" >&5
4149 ac_compiler=`set X $ac_compile; echo $2`
4150 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4151   (eval $ac_compiler --version </dev/null >&5) 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }
4155 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4156   (eval $ac_compiler -v </dev/null >&5) 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }
4160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4161   (eval $ac_compiler -V </dev/null >&5) 2>&5
4162   ac_status=$?
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); }
4165
4166 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4167 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4168 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177
4178 int
4179 main ()
4180 {
4181 #ifndef __GNUC__
4182        choke me
4183 #endif
4184
4185   ;
4186   return 0;
4187 }
4188 _ACEOF
4189 rm -f conftest.$ac_objext
4190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191   (eval $ac_compile) 2>conftest.er1
4192   ac_status=$?
4193   grep -v '^ *+' conftest.er1 >conftest.err
4194   rm -f conftest.er1
4195   cat conftest.err >&5
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); } &&
4198          { ac_try='test -z "$ac_c_werror_flag"
4199                          || test ! -s conftest.err'
4200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201   (eval $ac_try) 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); }; } &&
4205          { ac_try='test -s conftest.$ac_objext'
4206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207   (eval $ac_try) 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); }; }; then
4211   ac_compiler_gnu=yes
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216 ac_compiler_gnu=no
4217 fi
4218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4220
4221 fi
4222 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4223 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4224 GCC=`test $ac_compiler_gnu = yes && echo yes`
4225 ac_test_CFLAGS=${CFLAGS+set}
4226 ac_save_CFLAGS=$CFLAGS
4227 CFLAGS="-g"
4228 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4229 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4230 if test "${ac_cv_prog_cc_g+set}" = set; then
4231   echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233   cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h.  */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h.  */
4239
4240 int
4241 main ()
4242 {
4243
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250   (eval $ac_compile) 2>conftest.er1
4251   ac_status=$?
4252   grep -v '^ *+' conftest.er1 >conftest.err
4253   rm -f conftest.er1
4254   cat conftest.err >&5
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } &&
4257          { ac_try='test -z "$ac_c_werror_flag"
4258                          || test ! -s conftest.err'
4259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260   (eval $ac_try) 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; } &&
4264          { ac_try='test -s conftest.$ac_objext'
4265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266   (eval $ac_try) 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }; }; then
4270   ac_cv_prog_cc_g=yes
4271 else
4272   echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275 ac_cv_prog_cc_g=no
4276 fi
4277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4278 fi
4279 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4280 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4281 if test "$ac_test_CFLAGS" = set; then
4282   CFLAGS=$ac_save_CFLAGS
4283 elif test $ac_cv_prog_cc_g = yes; then
4284   if test "$GCC" = yes; then
4285     CFLAGS="-g -O2"
4286   else
4287     CFLAGS="-g"
4288   fi
4289 else
4290   if test "$GCC" = yes; then
4291     CFLAGS="-O2"
4292   else
4293     CFLAGS=
4294   fi
4295 fi
4296 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4297 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4298 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   ac_cv_prog_cc_stdc=no
4302 ac_save_CC=$CC
4303 cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h.  */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h.  */
4309 #include <stdarg.h>
4310 #include <stdio.h>
4311 #include <sys/types.h>
4312 #include <sys/stat.h>
4313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4314 struct buf { int x; };
4315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4316 static char *e (p, i)
4317      char **p;
4318      int i;
4319 {
4320   return p[i];
4321 }
4322 static char *f (char * (*g) (char **, int), char **p, ...)
4323 {
4324   char *s;
4325   va_list v;
4326   va_start (v,p);
4327   s = g (p, va_arg (v,int));
4328   va_end (v);
4329   return s;
4330 }
4331
4332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4333    function prototypes and stuff, but not '\xHH' hex character constants.
4334    These don't provoke an error unfortunately, instead are silently treated
4335    as 'x'.  The following induces an error, until -std1 is added to get
4336    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4337    array size at least.  It's necessary to write '\x00'==0 to get something
4338    that's true only with -std1.  */
4339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4340
4341 int test (int i, double x);
4342 struct s1 {int (*f) (int a);};
4343 struct s2 {int (*f) (double a);};
4344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4345 int argc;
4346 char **argv;
4347 int
4348 main ()
4349 {
4350 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 # Don't try gcc -ansi; that turns off useful extensions and
4356 # breaks some systems' header files.
4357 # AIX                   -qlanglvl=ansi
4358 # Ultrix and OSF/1      -std1
4359 # HP-UX 10.20 and later -Ae
4360 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4361 # SVR4                  -Xc -D__EXTENSIONS__
4362 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4363 do
4364   CC="$ac_save_CC $ac_arg"
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   ac_cv_prog_cc_stdc=$ac_arg
4388 break
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 fi
4394 rm -f conftest.err conftest.$ac_objext
4395 done
4396 rm -f conftest.$ac_ext conftest.$ac_objext
4397 CC=$ac_save_CC
4398
4399 fi
4400
4401 case "x$ac_cv_prog_cc_stdc" in
4402   x|xno)
4403     echo "$as_me:$LINENO: result: none needed" >&5
4404 echo "${ECHO_T}none needed" >&6 ;;
4405   *)
4406     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4407 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4408     CC="$CC $ac_cv_prog_cc_stdc" ;;
4409 esac
4410
4411 # Some people use a C++ compiler to compile C.  Since we use `exit',
4412 # in C++ we need to declare it.  In case someone uses the same compiler
4413 # for both compiling C and C++ we need to have the C++ compiler decide
4414 # the declaration of exit, since it's the most demanding environment.
4415 cat >conftest.$ac_ext <<_ACEOF
4416 #ifndef __cplusplus
4417   choke me
4418 #endif
4419 _ACEOF
4420 rm -f conftest.$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422   (eval $ac_compile) 2>conftest.er1
4423   ac_status=$?
4424   grep -v '^ *+' conftest.er1 >conftest.err
4425   rm -f conftest.er1
4426   cat conftest.err >&5
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); } &&
4429          { ac_try='test -z "$ac_c_werror_flag"
4430                          || test ! -s conftest.err'
4431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432   (eval $ac_try) 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); }; } &&
4436          { ac_try='test -s conftest.$ac_objext'
4437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438   (eval $ac_try) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; }; then
4442   for ac_declaration in \
4443    '' \
4444    'extern "C" void std::exit (int) throw (); using std::exit;' \
4445    'extern "C" void std::exit (int); using std::exit;' \
4446    'extern "C" void exit (int) throw ();' \
4447    'extern "C" void exit (int);' \
4448    'void exit (int);'
4449 do
4450   cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 $ac_declaration
4457 #include <stdlib.h>
4458 int
4459 main ()
4460 {
4461 exit (42);
4462   ;
4463   return 0;
4464 }
4465 _ACEOF
4466 rm -f conftest.$ac_objext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468   (eval $ac_compile) 2>conftest.er1
4469   ac_status=$?
4470   grep -v '^ *+' conftest.er1 >conftest.err
4471   rm -f conftest.er1
4472   cat conftest.err >&5
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); } &&
4475          { ac_try='test -z "$ac_c_werror_flag"
4476                          || test ! -s conftest.err'
4477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478   (eval $ac_try) 2>&5
4479   ac_status=$?
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); }; } &&
4482          { ac_try='test -s conftest.$ac_objext'
4483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484   (eval $ac_try) 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); }; }; then
4488   :
4489 else
4490   echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493 continue
4494 fi
4495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4496   cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h.  */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h.  */
4502 $ac_declaration
4503 int
4504 main ()
4505 {
4506 exit (42);
4507   ;
4508   return 0;
4509 }
4510 _ACEOF
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513   (eval $ac_compile) 2>conftest.er1
4514   ac_status=$?
4515   grep -v '^ *+' conftest.er1 >conftest.err
4516   rm -f conftest.er1
4517   cat conftest.err >&5
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); } &&
4520          { ac_try='test -z "$ac_c_werror_flag"
4521                          || test ! -s conftest.err'
4522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523   (eval $ac_try) 2>&5
4524   ac_status=$?
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); }; } &&
4527          { ac_try='test -s conftest.$ac_objext'
4528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529   (eval $ac_try) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; }; then
4533   break
4534 else
4535   echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538 fi
4539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4540 done
4541 rm -f conftest*
4542 if test -n "$ac_declaration"; then
4543   echo '#ifdef __cplusplus' >>confdefs.h
4544   echo $ac_declaration      >>confdefs.h
4545   echo '#endif'             >>confdefs.h
4546 fi
4547
4548 else
4549   echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 fi
4553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559
4560 depcc="$CC"   am_compiler_list=
4561
4562 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4563 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4564 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4565   echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4568   # We make a subdir and do the tests there.  Otherwise we can end up
4569   # making bogus files that we don't know about and never remove.  For
4570   # instance it was reported that on HP-UX the gcc test will end up
4571   # making a dummy file named `D' -- because `-MD' means `put the output
4572   # in D'.
4573   mkdir conftest.dir
4574   # Copy depcomp to subdir because otherwise we won't find it if we're
4575   # using a relative directory.
4576   cp "$am_depcomp" conftest.dir
4577   cd conftest.dir
4578   # We will build objects and dependencies in a subdirectory because
4579   # it helps to detect inapplicable dependency modes.  For instance
4580   # both Tru64's cc and ICC support -MD to output dependencies as a
4581   # side effect of compilation, but ICC will put the dependencies in
4582   # the current directory while Tru64 will put them in the object
4583   # directory.
4584   mkdir sub
4585
4586   am_cv_CC_dependencies_compiler_type=none
4587   if test "$am_compiler_list" = ""; then
4588      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4589   fi
4590   for depmode in $am_compiler_list; do
4591     # Setup a source with many dependencies, because some compilers
4592     # like to wrap large dependency lists on column 80 (with \), and
4593     # we should not choose a depcomp mode which is confused by this.
4594     #
4595     # We need to recreate these files for each test, as the compiler may
4596     # overwrite some of them when testing with obscure command lines.
4597     # This happens at least with the AIX C compiler.
4598     : > sub/conftest.c
4599     for i in 1 2 3 4 5 6; do
4600       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4601       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4602       # Solaris 8's {/usr,}/bin/sh.
4603       touch sub/conftst$i.h
4604     done
4605     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4606
4607     case $depmode in
4608     nosideeffect)
4609       # after this tag, mechanisms are not by side-effect, so they'll
4610       # only be used when explicitly requested
4611       if test "x$enable_dependency_tracking" = xyes; then
4612         continue
4613       else
4614         break
4615       fi
4616       ;;
4617     none) break ;;
4618     esac
4619     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4620     # mode.  It turns out that the SunPro C++ compiler does not properly
4621     # handle `-M -o', and we need to detect this.
4622     if depmode=$depmode \
4623        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4624        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4625        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4626          >/dev/null 2>conftest.err &&
4627        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4628        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4629        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4630       # icc doesn't choke on unknown options, it will just issue warnings
4631       # or remarks (even with -Werror).  So we grep stderr for any message
4632       # that says an option was ignored or not supported.
4633       # When given -MP, icc 7.0 and 7.1 complain thusly:
4634       #   icc: Command line warning: ignoring option '-M'; no argument required
4635       # The diagnosis changed in icc 8.0:
4636       #   icc: Command line remark: option '-MP' not supported
4637       if (grep 'ignoring option' conftest.err ||
4638           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4639         am_cv_CC_dependencies_compiler_type=$depmode
4640         break
4641       fi
4642     fi
4643   done
4644
4645   cd ..
4646   rm -rf conftest.dir
4647 else
4648   am_cv_CC_dependencies_compiler_type=none
4649 fi
4650
4651 fi
4652 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4653 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4654 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4655
4656
4657
4658 if
4659   test "x$enable_dependency_tracking" != xno \
4660   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4661   am__fastdepCC_TRUE=
4662   am__fastdepCC_FALSE='#'
4663 else
4664   am__fastdepCC_TRUE='#'
4665   am__fastdepCC_FALSE=
4666 fi
4667
4668
4669 if test "x$CC" != xcc; then
4670   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4671 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4672 else
4673   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4674 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4675 fi
4676 set dummy $CC; ac_cc=`echo $2 |
4677                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4678 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h.  */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h.  */
4687
4688 int
4689 main ()
4690 {
4691
4692   ;
4693   return 0;
4694 }
4695 _ACEOF
4696 # Make sure it works both with $CC and with simple cc.
4697 # We do the test twice because some compilers refuse to overwrite an
4698 # existing .o file with -o, though they will create one.
4699 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4700 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701   (eval $ac_try) 2>&5
4702   ac_status=$?
4703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704   (exit $ac_status); } &&
4705    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706   (eval $ac_try) 2>&5
4707   ac_status=$?
4708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); };
4710 then
4711   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4712   if test "x$CC" != xcc; then
4713     # Test first that cc exists at all.
4714     if { ac_try='cc -c conftest.$ac_ext >&5'
4715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716   (eval $ac_try) 2>&5
4717   ac_status=$?
4718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719   (exit $ac_status); }; }; then
4720       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4721       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722   (eval $ac_try) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); } &&
4726          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727   (eval $ac_try) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); };
4731       then
4732         # cc works too.
4733         :
4734       else
4735         # cc exists but doesn't like -o.
4736         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4737       fi
4738     fi
4739   fi
4740 else
4741   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4742 fi
4743 rm -f conftest*
4744
4745 fi
4746 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4747   echo "$as_me:$LINENO: result: yes" >&5
4748 echo "${ECHO_T}yes" >&6
4749 else
4750   echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6
4752
4753 cat >>confdefs.h <<\_ACEOF
4754 #define NO_MINUS_C_MINUS_O 1
4755 _ACEOF
4756
4757 fi
4758
4759 # FIXME: we rely on the cache variable name because
4760 # there is no other way.
4761 set dummy $CC
4762 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4763 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4764    # Losing compiler, so override with the script.
4765    # FIXME: It is wrong to rewrite CC.
4766    # But if we don't then we get into trouble of one sort or another.
4767    # A longer-term fix would be to have automake use am__CC in this case,
4768    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4769    CC="$am_aux_dir/compile $CC"
4770 fi
4771
4772
4773 # Find the posix library needed on INTERACTIVE UNIX (ISC)
4774 echo "$as_me:$LINENO: checking for library containing strerror" >&5
4775 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4776 if test "${ac_cv_search_strerror+set}" = set; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779   ac_func_search_save_LIBS=$LIBS
4780 ac_cv_search_strerror=no
4781 cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787
4788 /* Override any gcc2 internal prototype to avoid an error.  */
4789 #ifdef __cplusplus
4790 extern "C"
4791 #endif
4792 /* We use char because int might match the return type of a gcc2
4793    builtin and then its argument prototype would still apply.  */
4794 char strerror ();
4795 int
4796 main ()
4797 {
4798 strerror ();
4799   ;
4800   return 0;
4801 }
4802 _ACEOF
4803 rm -f conftest.$ac_objext conftest$ac_exeext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4805   (eval $ac_link) 2>conftest.er1
4806   ac_status=$?
4807   grep -v '^ *+' conftest.er1 >conftest.err
4808   rm -f conftest.er1
4809   cat conftest.err >&5
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); } &&
4812          { ac_try='test -z "$ac_c_werror_flag"
4813                          || test ! -s conftest.err'
4814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815   (eval $ac_try) 2>&5
4816   ac_status=$?
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); }; } &&
4819          { ac_try='test -s conftest$ac_exeext'
4820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821   (eval $ac_try) 2>&5
4822   ac_status=$?
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); }; }; then
4825   ac_cv_search_strerror="none required"
4826 else
4827   echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 fi
4831 rm -f conftest.err conftest.$ac_objext \
4832       conftest$ac_exeext conftest.$ac_ext
4833 if test "$ac_cv_search_strerror" = no; then
4834   for ac_lib in cposix; do
4835     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4836     cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h.  */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h.  */
4842
4843 /* Override any gcc2 internal prototype to avoid an error.  */
4844 #ifdef __cplusplus
4845 extern "C"
4846 #endif
4847 /* We use char because int might match the return type of a gcc2
4848    builtin and then its argument prototype would still apply.  */
4849 char strerror ();
4850 int
4851 main ()
4852 {
4853 strerror ();
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 rm -f conftest.$ac_objext conftest$ac_exeext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4860   (eval $ac_link) 2>conftest.er1
4861   ac_status=$?
4862   grep -v '^ *+' conftest.er1 >conftest.err
4863   rm -f conftest.er1
4864   cat conftest.err >&5
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); } &&
4867          { ac_try='test -z "$ac_c_werror_flag"
4868                          || test ! -s conftest.err'
4869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870   (eval $ac_try) 2>&5
4871   ac_status=$?
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); }; } &&
4874          { ac_try='test -s conftest$ac_exeext'
4875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876   (eval $ac_try) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); }; }; then
4880   ac_cv_search_strerror="-l$ac_lib"
4881 break
4882 else
4883   echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 fi
4887 rm -f conftest.err conftest.$ac_objext \
4888       conftest$ac_exeext conftest.$ac_ext
4889   done
4890 fi
4891 LIBS=$ac_func_search_save_LIBS
4892 fi
4893 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4894 echo "${ECHO_T}$ac_cv_search_strerror" >&6
4895 if test "$ac_cv_search_strerror" != no; then
4896   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4897
4898 fi
4899
4900
4901
4902 if test -n "$ac_tool_prefix"; then
4903   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4905 echo "$as_me:$LINENO: checking for $ac_word" >&5
4906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4907 if test "${ac_cv_prog_RANLIB+set}" = set; then
4908   echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910   if test -n "$RANLIB"; then
4911   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918   for ac_exec_ext in '' $ac_executable_extensions; do
4919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922     break 2
4923   fi
4924 done
4925 done
4926
4927 fi
4928 fi
4929 RANLIB=$ac_cv_prog_RANLIB
4930 if test -n "$RANLIB"; then
4931   echo "$as_me:$LINENO: result: $RANLIB" >&5
4932 echo "${ECHO_T}$RANLIB" >&6
4933 else
4934   echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4936 fi
4937
4938 fi
4939 if test -z "$ac_cv_prog_RANLIB"; then
4940   ac_ct_RANLIB=$RANLIB
4941   # Extract the first word of "ranlib", so it can be a program name with args.
4942 set dummy ranlib; ac_word=$2
4943 echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948   if test -n "$ac_ct_RANLIB"; then
4949   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956   for ac_exec_ext in '' $ac_executable_extensions; do
4957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958     ac_cv_prog_ac_ct_RANLIB="ranlib"
4959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963 done
4964
4965   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4966 fi
4967 fi
4968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4969 if test -n "$ac_ct_RANLIB"; then
4970   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4971 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4972 else
4973   echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4975 fi
4976
4977   RANLIB=$ac_ct_RANLIB
4978 else
4979   RANLIB="$ac_cv_prog_RANLIB"
4980 fi
4981
4982 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4983 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4984 LN_S=$as_ln_s
4985 if test "$LN_S" = "ln -s"; then
4986   echo "$as_me:$LINENO: result: yes" >&5
4987 echo "${ECHO_T}yes" >&6
4988 else
4989   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4990 echo "${ECHO_T}no, using $LN_S" >&6
4991 fi
4992
4993 # Check whether --enable-largefile or --disable-largefile was given.
4994 if test "${enable_largefile+set}" = set; then
4995   enableval="$enable_largefile"
4996
4997 fi;
4998 if test "$enable_largefile" != no; then
4999
5000   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5001 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5002 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5003   echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005   ac_cv_sys_largefile_CC=no
5006      if test "$GCC" != yes; then
5007        ac_save_CC=$CC
5008        while :; do
5009          # IRIX 6.2 and later do not support large files by default,
5010          # so use the C compiler's -n32 option if that helps.
5011          cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017 #include <sys/types.h>
5018  /* Check that off_t can represent 2**63 - 1 correctly.
5019     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5020     since some C++ compilers masquerading as C compilers
5021     incorrectly reject 9223372036854775807.  */
5022 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5023   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5024                        && LARGE_OFF_T % 2147483647 == 1)
5025                       ? 1 : -1];
5026 int
5027 main ()
5028 {
5029
5030   ;
5031   return 0;
5032 }
5033 _ACEOF
5034          rm -f conftest.$ac_objext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036   (eval $ac_compile) 2>conftest.er1
5037   ac_status=$?
5038   grep -v '^ *+' conftest.er1 >conftest.err
5039   rm -f conftest.er1
5040   cat conftest.err >&5
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } &&
5043          { ac_try='test -z "$ac_c_werror_flag"
5044                          || test ! -s conftest.err'
5045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046   (eval $ac_try) 2>&5
5047   ac_status=$?
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); }; } &&
5050          { ac_try='test -s conftest.$ac_objext'
5051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052   (eval $ac_try) 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); }; }; then
5056   break
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 fi
5062 rm -f conftest.err conftest.$ac_objext
5063          CC="$CC -n32"
5064          rm -f conftest.$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066   (eval $ac_compile) 2>conftest.er1
5067   ac_status=$?
5068   grep -v '^ *+' conftest.er1 >conftest.err
5069   rm -f conftest.er1
5070   cat conftest.err >&5
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); } &&
5073          { ac_try='test -z "$ac_c_werror_flag"
5074                          || test ! -s conftest.err'
5075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076   (eval $ac_try) 2>&5
5077   ac_status=$?
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); }; } &&
5080          { ac_try='test -s conftest.$ac_objext'
5081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082   (eval $ac_try) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); }; }; then
5086   ac_cv_sys_largefile_CC=' -n32'; break
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 fi
5092 rm -f conftest.err conftest.$ac_objext
5093          break
5094        done
5095        CC=$ac_save_CC
5096        rm -f conftest.$ac_ext
5097     fi
5098 fi
5099 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5100 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5101   if test "$ac_cv_sys_largefile_CC" != no; then
5102     CC=$CC$ac_cv_sys_largefile_CC
5103   fi
5104
5105   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5106 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5107 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   while :; do
5111   ac_cv_sys_file_offset_bits=no
5112   cat >conftest.$ac_ext <<_ACEOF
5113 /* confdefs.h.  */
5114 _ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h.  */
5118 #include <sys/types.h>
5119  /* Check that off_t can represent 2**63 - 1 correctly.
5120     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5121     since some C++ compilers masquerading as C compilers
5122     incorrectly reject 9223372036854775807.  */
5123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5124   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5125                        && LARGE_OFF_T % 2147483647 == 1)
5126                       ? 1 : -1];
5127 int
5128 main ()
5129 {
5130
5131   ;
5132   return 0;
5133 }
5134 _ACEOF
5135 rm -f conftest.$ac_objext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137   (eval $ac_compile) 2>conftest.er1
5138   ac_status=$?
5139   grep -v '^ *+' conftest.er1 >conftest.err
5140   rm -f conftest.er1
5141   cat conftest.err >&5
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); } &&
5144          { ac_try='test -z "$ac_c_werror_flag"
5145                          || test ! -s conftest.err'
5146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147   (eval $ac_try) 2>&5
5148   ac_status=$?
5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150   (exit $ac_status); }; } &&
5151          { ac_try='test -s conftest.$ac_objext'
5152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153   (eval $ac_try) 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }; }; then
5157   break
5158 else
5159   echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5161
5162 fi
5163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5164   cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h.  */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h.  */
5170 #define _FILE_OFFSET_BITS 64
5171 #include <sys/types.h>
5172  /* Check that off_t can represent 2**63 - 1 correctly.
5173     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5174     since some C++ compilers masquerading as C compilers
5175     incorrectly reject 9223372036854775807.  */
5176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5177   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5178                        && LARGE_OFF_T % 2147483647 == 1)
5179                       ? 1 : -1];
5180 int
5181 main ()
5182 {
5183
5184   ;
5185   return 0;
5186 }
5187 _ACEOF
5188 rm -f conftest.$ac_objext
5189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5190   (eval $ac_compile) 2>conftest.er1
5191   ac_status=$?
5192   grep -v '^ *+' conftest.er1 >conftest.err
5193   rm -f conftest.er1
5194   cat conftest.err >&5
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } &&
5197          { ac_try='test -z "$ac_c_werror_flag"
5198                          || test ! -s conftest.err'
5199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200   (eval $ac_try) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); }; } &&
5204          { ac_try='test -s conftest.$ac_objext'
5205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206   (eval $ac_try) 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; }; then
5210   ac_cv_sys_file_offset_bits=64; break
5211 else
5212   echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 fi
5216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5217   break
5218 done
5219 fi
5220 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5221 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5222 if test "$ac_cv_sys_file_offset_bits" != no; then
5223
5224 cat >>confdefs.h <<_ACEOF
5225 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5226 _ACEOF
5227
5228 fi
5229 rm -f conftest*
5230   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5231 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5232 if test "${ac_cv_sys_large_files+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235   while :; do
5236   ac_cv_sys_large_files=no
5237   cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h.  */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h.  */
5243 #include <sys/types.h>
5244  /* Check that off_t can represent 2**63 - 1 correctly.
5245     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5246     since some C++ compilers masquerading as C compilers
5247     incorrectly reject 9223372036854775807.  */
5248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5249   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250                        && LARGE_OFF_T % 2147483647 == 1)
5251                       ? 1 : -1];
5252 int
5253 main ()
5254 {
5255
5256   ;
5257   return 0;
5258 }
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262   (eval $ac_compile) 2>conftest.er1
5263   ac_status=$?
5264   grep -v '^ *+' conftest.er1 >conftest.err
5265   rm -f conftest.er1
5266   cat conftest.err >&5
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } &&
5269          { ac_try='test -z "$ac_c_werror_flag"
5270                          || test ! -s conftest.err'
5271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272   (eval $ac_try) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }; } &&
5276          { ac_try='test -s conftest.$ac_objext'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; }; then
5282   break
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 fi
5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289   cat >conftest.$ac_ext <<_ACEOF
5290 /* confdefs.h.  */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h.  */
5295 #define _LARGE_FILES 1
5296 #include <sys/types.h>
5297  /* Check that off_t can represent 2**63 - 1 correctly.
5298     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5299     since some C++ compilers masquerading as C compilers
5300     incorrectly reject 9223372036854775807.  */
5301 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5302   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5303                        && LARGE_OFF_T % 2147483647 == 1)
5304                       ? 1 : -1];
5305 int
5306 main ()
5307 {
5308
5309   ;
5310   return 0;
5311 }
5312 _ACEOF
5313 rm -f conftest.$ac_objext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5315   (eval $ac_compile) 2>conftest.er1
5316   ac_status=$?
5317   grep -v '^ *+' conftest.er1 >conftest.err
5318   rm -f conftest.er1
5319   cat conftest.err >&5
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); } &&
5322          { ac_try='test -z "$ac_c_werror_flag"
5323                          || test ! -s conftest.err'
5324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325   (eval $ac_try) 2>&5
5326   ac_status=$?
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); }; } &&
5329          { ac_try='test -s conftest.$ac_objext'
5330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331   (eval $ac_try) 2>&5
5332   ac_status=$?
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); }; }; then
5335   ac_cv_sys_large_files=1; break
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340 fi
5341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5342   break
5343 done
5344 fi
5345 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5346 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5347 if test "$ac_cv_sys_large_files" != no; then
5348
5349 cat >>confdefs.h <<_ACEOF
5350 #define _LARGE_FILES $ac_cv_sys_large_files
5351 _ACEOF
5352
5353 fi
5354 rm -f conftest*
5355 fi
5356
5357
5358
5359 # Extract the first word of "perl", so it can be a program name with args.
5360 set dummy perl; ac_word=$2
5361 echo "$as_me:$LINENO: checking for $ac_word" >&5
5362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5363 if test "${ac_cv_path_PERL+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   case $PERL in
5367   [\\/]* | ?:[\\/]*)
5368   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5369   ;;
5370   *)
5371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374   IFS=$as_save_IFS
5375   test -z "$as_dir" && as_dir=.
5376   for ac_exec_ext in '' $ac_executable_extensions; do
5377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380     break 2
5381   fi
5382 done
5383 done
5384
5385   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5386   ;;
5387 esac
5388 fi
5389 PERL=$ac_cv_path_PERL
5390
5391 if test -n "$PERL"; then
5392   echo "$as_me:$LINENO: result: $PERL" >&5
5393 echo "${ECHO_T}$PERL" >&6
5394 else
5395   echo "$as_me:$LINENO: result: no" >&5
5396 echo "${ECHO_T}no" >&6
5397 fi
5398
5399 # Extract the first word of "csh", so it can be a program name with args.
5400 set dummy csh; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_path_CSH+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   case $CSH in
5407   [\\/]* | ?:[\\/]*)
5408   ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
5409   ;;
5410   *)
5411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416   for ac_exec_ext in '' $ac_executable_extensions; do
5417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418     ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
5419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423 done
5424
5425   test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
5426   ;;
5427 esac
5428 fi
5429 CSH=$ac_cv_path_CSH
5430
5431 if test -n "$CSH"; then
5432   echo "$as_me:$LINENO: result: $CSH" >&5
5433 echo "${ECHO_T}$CSH" >&6
5434 else
5435   echo "$as_me:$LINENO: result: no" >&5
5436 echo "${ECHO_T}no" >&6
5437 fi
5438
5439 # for contrib/rcs2log.sh & src/cvsbug.in.
5440 # Extract the first word of "mktemp", so it can be a program name with args.
5441 set dummy mktemp; ac_word=$2
5442 echo "$as_me:$LINENO: checking for $ac_word" >&5
5443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5444 if test "${ac_cv_path_MKTEMP+set}" = set; then
5445   echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447   case $MKTEMP in
5448   [\\/]* | ?:[\\/]*)
5449   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5450   ;;
5451   *)
5452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5454 do
5455   IFS=$as_save_IFS
5456   test -z "$as_dir" && as_dir=.
5457   for ac_exec_ext in '' $ac_executable_extensions; do
5458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5461     break 2
5462   fi
5463 done
5464 done
5465
5466   test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp"
5467   ;;
5468 esac
5469 fi
5470 MKTEMP=$ac_cv_path_MKTEMP
5471
5472 if test -n "$MKTEMP"; then
5473   echo "$as_me:$LINENO: result: $MKTEMP" >&5
5474 echo "${ECHO_T}$MKTEMP" >&6
5475 else
5476   echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6
5478 fi
5479
5480 if test x"$MKTEMP" = xmktemp; then
5481         MKTEMP_SH_FUNCTION=$srcdir/mktemp.sh
5482 else
5483         MKTEMP_SH_FUNCTION=/dev/null
5484 fi
5485
5486 # for src/cvsbug.in
5487 # Extract the first word of "sendmail", so it can be a program name with args.
5488 set dummy sendmail; ac_word=$2
5489 echo "$as_me:$LINENO: checking for $ac_word" >&5
5490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5491 if test "${ac_cv_path_SENDMAIL+set}" = set; then
5492   echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494   case $SENDMAIL in
5495   [\\/]* | ?:[\\/]*)
5496   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
5497   ;;
5498   *)
5499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 as_dummy="$PATH:/usr/sbin:/usr/lib"
5501 for as_dir in $as_dummy
5502 do
5503   IFS=$as_save_IFS
5504   test -z "$as_dir" && as_dir=.
5505   for ac_exec_ext in '' $ac_executable_extensions; do
5506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
5508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509     break 2
5510   fi
5511 done
5512 done
5513
5514   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no"
5515   ;;
5516 esac
5517 fi
5518 SENDMAIL=$ac_cv_path_SENDMAIL
5519
5520 if test -n "$SENDMAIL"; then
5521   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
5522 echo "${ECHO_T}$SENDMAIL" >&6
5523 else
5524   echo "$as_me:$LINENO: result: no" >&5
5525 echo "${ECHO_T}no" >&6
5526 fi
5527
5528 # For diff/util.c
5529 # Extract the first word of "pr", so it can be a program name with args.
5530 set dummy pr; ac_word=$2
5531 echo "$as_me:$LINENO: checking for $ac_word" >&5
5532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5533 if test "${ac_cv_path_PR+set}" = set; then
5534   echo $ECHO_N "(cached) $ECHO_C" >&6
5535 else
5536   case $PR in
5537   [\\/]* | ?:[\\/]*)
5538   ac_cv_path_PR="$PR" # Let the user override the test with a path.
5539   ;;
5540   *)
5541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544   IFS=$as_save_IFS
5545   test -z "$as_dir" && as_dir=.
5546   for ac_exec_ext in '' $ac_executable_extensions; do
5547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548     ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext"
5549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550     break 2
5551   fi
5552 done
5553 done
5554
5555   test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
5556   ;;
5557 esac
5558 fi
5559 PR=$ac_cv_path_PR
5560
5561 if test -n "$PR"; then
5562   echo "$as_me:$LINENO: result: $PR" >&5
5563 echo "${ECHO_T}$PR" >&6
5564 else
5565   echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5567 fi
5568
5569 if test x"$PR" != xno; then
5570
5571 cat >>confdefs.h <<_ACEOF
5572 #define PR_PROGRAM "$PR"
5573 _ACEOF
5574
5575 fi
5576
5577 missing_dir=`cd $ac_aux_dir && pwd`
5578 glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
5579 for ac_prog in groff roff
5580 do
5581   # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5585 if test "${ac_cv_path_ROFF+set}" = set; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   case $ROFF in
5589   [\\/]* | ?:[\\/]*)
5590   ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path.
5591   ;;
5592   *)
5593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $glocs
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598   for ac_exec_ext in '' $ac_executable_extensions; do
5599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600     ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext"
5601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602     break 2
5603   fi
5604 done
5605 done
5606
5607   ;;
5608 esac
5609 fi
5610 ROFF=$ac_cv_path_ROFF
5611
5612 if test -n "$ROFF"; then
5613   echo "$as_me:$LINENO: result: $ROFF" >&5
5614 echo "${ECHO_T}$ROFF" >&6
5615 else
5616   echo "$as_me:$LINENO: result: no" >&5
5617 echo "${ECHO_T}no" >&6
5618 fi
5619
5620   test -n "$ROFF" && break
5621 done
5622 test -n "$ROFF" || ROFF="$missing_dir/missing roff"
5623
5624 # Extract the first word of "ps2pdf", so it can be a program name with args.
5625 set dummy ps2pdf; ac_word=$2
5626 echo "$as_me:$LINENO: checking for $ac_word" >&5
5627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5628 if test "${ac_cv_path_PS2PDF+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   case $PS2PDF in
5632   [\\/]* | ?:[\\/]*)
5633   ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
5634   ;;
5635   *)
5636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5638 do
5639   IFS=$as_save_IFS
5640   test -z "$as_dir" && as_dir=.
5641   for ac_exec_ext in '' $ac_executable_extensions; do
5642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643     ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
5644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5645     break 2
5646   fi
5647 done
5648 done
5649
5650   test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
5651   ;;
5652 esac
5653 fi
5654 PS2PDF=$ac_cv_path_PS2PDF
5655
5656 if test -n "$PS2PDF"; then
5657   echo "$as_me:$LINENO: result: $PS2PDF" >&5
5658 echo "${ECHO_T}$PS2PDF" >&6
5659 else
5660   echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6
5662 fi
5663
5664 # Extract the first word of "texi2dvi", so it can be a program name with args.
5665 set dummy texi2dvi; ac_word=$2
5666 echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668 if test "${ac_cv_path_TEXI2DVI+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   case $TEXI2DVI in
5672   [\\/]* | ?:[\\/]*)
5673   ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
5674   ;;
5675   *)
5676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681   for ac_exec_ext in '' $ac_executable_extensions; do
5682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683     ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
5684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688 done
5689
5690   test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
5691   ;;
5692 esac
5693 fi
5694 TEXI2DVI=$ac_cv_path_TEXI2DVI
5695
5696 if test -n "$TEXI2DVI"; then
5697   echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
5698 echo "${ECHO_T}$TEXI2DVI" >&6
5699 else
5700   echo "$as_me:$LINENO: result: no" >&5
5701 echo "${ECHO_T}no" >&6
5702 fi
5703
5704
5705 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
5706 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
5707 if test "${ac_cv_sys_interpreter+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   echo '#! /bin/cat
5711 exit 69
5712 ' >conftest
5713 chmod u+x conftest
5714 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
5715 if test $? -ne 69; then
5716    ac_cv_sys_interpreter=yes
5717 else
5718    ac_cv_sys_interpreter=no
5719 fi
5720 rm -f conftest
5721 fi
5722 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
5723 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
5724 interpval=$ac_cv_sys_interpreter
5725
5726 if test X"$ac_cv_sys_interpreter" != X"yes" ; then
5727   # silly trick to avoid problems in AC macros...
5728   ac_msg='perl scripts using #! may not be invoked properly'
5729   { echo "$as_me:$LINENO: WARNING: $ac_msg" >&5
5730 echo "$as_me: WARNING: $ac_msg" >&2;}
5731 fi
5732
5733 # BSD's logo is a devil for a reason, hey?
5734 echo "$as_me:$LINENO: checking for BSD VPATH bug in make" >&5
5735 echo $ECHO_N "checking for BSD VPATH bug in make... $ECHO_C" >&6
5736 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   if test ! -d ac_test_dir ; then
5740         { ac_try='mkdir ac_test_dir'
5741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742   (eval $ac_try) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; }
5746 fi
5747 cat >conftestmake <<EOF
5748 VPATH = ac_test_dir
5749 ac_test_target: ac_test_dep
5750         echo BSD VPATH bug present >&2
5751 ac_test_dep: ac_test_dep_dep
5752 EOF
5753 touch ac_test_dir/ac_test_dep_dep
5754 touch ac_test_dir/ac_test_dep
5755 touch ac_test_target
5756 # Don't know why, but the following test doesn't work under FreeBSD 4.2
5757 # without this sleep command
5758 sleep 1
5759 if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
5760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761   (eval $ac_try) 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); }; } ; then
5765         ccvs_cv_bsd_make_vpath_bug=yes
5766 else
5767         ccvs_cv_bsd_make_vpath_bug=no
5768 fi
5769 { ac_try='rm -rf ac_test_dir ac_test_target conftestmake'
5770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771   (eval $ac_try) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; }
5775 fi
5776 echo "$as_me:$LINENO: result: $ccvs_cv_bsd_make_vpath_bug" >&5
5777 echo "${ECHO_T}$ccvs_cv_bsd_make_vpath_bug" >&6
5778 # We also don't need to worry about the bug when $srcdir = $builddir
5779
5780
5781 if \
5782                 test $ccvs_cv_bsd_make_vpath_bug = no \
5783                 || test $srcdir = .; then
5784   MAKE_TARGETS_IN_VPATH_TRUE=
5785   MAKE_TARGETS_IN_VPATH_FALSE='#'
5786 else
5787   MAKE_TARGETS_IN_VPATH_TRUE='#'
5788   MAKE_TARGETS_IN_VPATH_FALSE=
5789 fi
5790
5791
5792
5793
5794
5795
5796
5797 ac_header_dirent=no
5798 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5799   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5800 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5801 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811 #include <sys/types.h>
5812 #include <$ac_hdr>
5813
5814 int
5815 main ()
5816 {
5817 if ((DIR *) 0)
5818 return 0;
5819   ;
5820   return 0;
5821 }
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825   (eval $ac_compile) 2>conftest.er1
5826   ac_status=$?
5827   grep -v '^ *+' conftest.er1 >conftest.err
5828   rm -f conftest.er1
5829   cat conftest.err >&5
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); } &&
5832          { ac_try='test -z "$ac_c_werror_flag"
5833                          || test ! -s conftest.err'
5834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835   (eval $ac_try) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; } &&
5839          { ac_try='test -s conftest.$ac_objext'
5840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841   (eval $ac_try) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); }; }; then
5845   eval "$as_ac_Header=yes"
5846 else
5847   echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850 eval "$as_ac_Header=no"
5851 fi
5852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5853 fi
5854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5857   cat >>confdefs.h <<_ACEOF
5858 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5859 _ACEOF
5860
5861 ac_header_dirent=$ac_hdr; break
5862 fi
5863
5864 done
5865 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5866 if test $ac_header_dirent = dirent.h; then
5867   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5868 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5869 if test "${ac_cv_search_opendir+set}" = set; then
5870   echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872   ac_func_search_save_LIBS=$LIBS
5873 ac_cv_search_opendir=no
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h.  */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h.  */
5880
5881 /* Override any gcc2 internal prototype to avoid an error.  */
5882 #ifdef __cplusplus
5883 extern "C"
5884 #endif
5885 /* We use char because int might match the return type of a gcc2
5886    builtin and then its argument prototype would still apply.  */
5887 char opendir ();
5888 int
5889 main ()
5890 {
5891 opendir ();
5892   ;
5893   return 0;
5894 }
5895 _ACEOF
5896 rm -f conftest.$ac_objext conftest$ac_exeext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5898   (eval $ac_link) 2>conftest.er1
5899   ac_status=$?
5900   grep -v '^ *+' conftest.er1 >conftest.err
5901   rm -f conftest.er1
5902   cat conftest.err >&5
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); } &&
5905          { ac_try='test -z "$ac_c_werror_flag"
5906                          || test ! -s conftest.err'
5907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908   (eval $ac_try) 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); }; } &&
5912          { ac_try='test -s conftest$ac_exeext'
5913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914   (eval $ac_try) 2>&5
5915   ac_status=$?
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); }; }; then
5918   ac_cv_search_opendir="none required"
5919 else
5920   echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 fi
5924 rm -f conftest.err conftest.$ac_objext \
5925       conftest$ac_exeext conftest.$ac_ext
5926 if test "$ac_cv_search_opendir" = no; then
5927   for ac_lib in dir; do
5928     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5929     cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h.  */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h.  */
5935
5936 /* Override any gcc2 internal prototype to avoid an error.  */
5937 #ifdef __cplusplus
5938 extern "C"
5939 #endif
5940 /* We use char because int might match the return type of a gcc2
5941    builtin and then its argument prototype would still apply.  */
5942 char opendir ();
5943 int
5944 main ()
5945 {
5946 opendir ();
5947   ;
5948   return 0;
5949 }
5950 _ACEOF
5951 rm -f conftest.$ac_objext conftest$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953   (eval $ac_link) 2>conftest.er1
5954   ac_status=$?
5955   grep -v '^ *+' conftest.er1 >conftest.err
5956   rm -f conftest.er1
5957   cat conftest.err >&5
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); } &&
5960          { ac_try='test -z "$ac_c_werror_flag"
5961                          || test ! -s conftest.err'
5962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963   (eval $ac_try) 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); }; } &&
5967          { ac_try='test -s conftest$ac_exeext'
5968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969   (eval $ac_try) 2>&5
5970   ac_status=$?
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); }; }; then
5973   ac_cv_search_opendir="-l$ac_lib"
5974 break
5975 else
5976   echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5978
5979 fi
5980 rm -f conftest.err conftest.$ac_objext \
5981       conftest$ac_exeext conftest.$ac_ext
5982   done
5983 fi
5984 LIBS=$ac_func_search_save_LIBS
5985 fi
5986 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5987 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5988 if test "$ac_cv_search_opendir" != no; then
5989   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5990
5991 fi
5992
5993 else
5994   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5995 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5996 if test "${ac_cv_search_opendir+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   ac_func_search_save_LIBS=$LIBS
6000 ac_cv_search_opendir=no
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h.  */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h.  */
6007
6008 /* Override any gcc2 internal prototype to avoid an error.  */
6009 #ifdef __cplusplus
6010 extern "C"
6011 #endif
6012 /* We use char because int might match the return type of a gcc2
6013    builtin and then its argument prototype would still apply.  */
6014 char opendir ();
6015 int
6016 main ()
6017 {
6018 opendir ();
6019   ;
6020   return 0;
6021 }
6022 _ACEOF
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025   (eval $ac_link) 2>conftest.er1
6026   ac_status=$?
6027   grep -v '^ *+' conftest.er1 >conftest.err
6028   rm -f conftest.er1
6029   cat conftest.err >&5
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } &&
6032          { ac_try='test -z "$ac_c_werror_flag"
6033                          || test ! -s conftest.err'
6034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035   (eval $ac_try) 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); }; } &&
6039          { ac_try='test -s conftest$ac_exeext'
6040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041   (eval $ac_try) 2>&5
6042   ac_status=$?
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); }; }; then
6045   ac_cv_search_opendir="none required"
6046 else
6047   echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 fi
6051 rm -f conftest.err conftest.$ac_objext \
6052       conftest$ac_exeext conftest.$ac_ext
6053 if test "$ac_cv_search_opendir" = no; then
6054   for ac_lib in x; do
6055     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6056     cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062
6063 /* Override any gcc2 internal prototype to avoid an error.  */
6064 #ifdef __cplusplus
6065 extern "C"
6066 #endif
6067 /* We use char because int might match the return type of a gcc2
6068    builtin and then its argument prototype would still apply.  */
6069 char opendir ();
6070 int
6071 main ()
6072 {
6073 opendir ();
6074   ;
6075   return 0;
6076 }
6077 _ACEOF
6078 rm -f conftest.$ac_objext conftest$ac_exeext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080   (eval $ac_link) 2>conftest.er1
6081   ac_status=$?
6082   grep -v '^ *+' conftest.er1 >conftest.err
6083   rm -f conftest.er1
6084   cat conftest.err >&5
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); } &&
6087          { ac_try='test -z "$ac_c_werror_flag"
6088                          || test ! -s conftest.err'
6089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090   (eval $ac_try) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; } &&
6094          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6100   ac_cv_search_opendir="-l$ac_lib"
6101 break
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 fi
6107 rm -f conftest.err conftest.$ac_objext \
6108       conftest$ac_exeext conftest.$ac_ext
6109   done
6110 fi
6111 LIBS=$ac_func_search_save_LIBS
6112 fi
6113 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6114 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6115 if test "$ac_cv_search_opendir" != no; then
6116   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6117
6118 fi
6119
6120 fi
6121
6122 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6124 if test "${ac_cv_header_stdc+set}" = set; then
6125   echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127   cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h.  */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h.  */
6133 #include <stdlib.h>
6134 #include <stdarg.h>
6135 #include <string.h>
6136 #include <float.h>
6137
6138 int
6139 main ()
6140 {
6141
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148   (eval $ac_compile) 2>conftest.er1
6149   ac_status=$?
6150   grep -v '^ *+' conftest.er1 >conftest.err
6151   rm -f conftest.er1
6152   cat conftest.err >&5
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); } &&
6155          { ac_try='test -z "$ac_c_werror_flag"
6156                          || test ! -s conftest.err'
6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158   (eval $ac_try) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; } &&
6162          { ac_try='test -s conftest.$ac_objext'
6163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164   (eval $ac_try) 2>&5
6165   ac_status=$?
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); }; }; then
6168   ac_cv_header_stdc=yes
6169 else
6170   echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 ac_cv_header_stdc=no
6174 fi
6175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6176
6177 if test $ac_cv_header_stdc = yes; then
6178   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6179   cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h.  */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h.  */
6185 #include <string.h>
6186
6187 _ACEOF
6188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6189   $EGREP "memchr" >/dev/null 2>&1; then
6190   :
6191 else
6192   ac_cv_header_stdc=no
6193 fi
6194 rm -f conftest*
6195
6196 fi
6197
6198 if test $ac_cv_header_stdc = yes; then
6199   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6200   cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h.  */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h.  */
6206 #include <stdlib.h>
6207
6208 _ACEOF
6209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6210   $EGREP "free" >/dev/null 2>&1; then
6211   :
6212 else
6213   ac_cv_header_stdc=no
6214 fi
6215 rm -f conftest*
6216
6217 fi
6218
6219 if test $ac_cv_header_stdc = yes; then
6220   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6221   if test "$cross_compiling" = yes; then
6222   :
6223 else
6224   cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h.  */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h.  */
6230 #include <ctype.h>
6231 #if ((' ' & 0x0FF) == 0x020)
6232 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6233 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6234 #else
6235 # define ISLOWER(c) \
6236                    (('a' <= (c) && (c) <= 'i') \
6237                      || ('j' <= (c) && (c) <= 'r') \
6238                      || ('s' <= (c) && (c) <= 'z'))
6239 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6240 #endif
6241
6242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6243 int
6244 main ()
6245 {
6246   int i;
6247   for (i = 0; i < 256; i++)
6248     if (XOR (islower (i), ISLOWER (i))
6249         || toupper (i) != TOUPPER (i))
6250       exit(2);
6251   exit (0);
6252 }
6253 _ACEOF
6254 rm -f conftest$ac_exeext
6255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6256   (eval $ac_link) 2>&5
6257   ac_status=$?
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261   (eval $ac_try) 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); }; }; then
6265   :
6266 else
6267   echo "$as_me: program exited with status $ac_status" >&5
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6270
6271 ( exit $ac_status )
6272 ac_cv_header_stdc=no
6273 fi
6274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6275 fi
6276 fi
6277 fi
6278 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6279 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6280 if test $ac_cv_header_stdc = yes; then
6281
6282 cat >>confdefs.h <<\_ACEOF
6283 #define STDC_HEADERS 1
6284 _ACEOF
6285
6286 fi
6287
6288 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6289 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6290 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6291   echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293   cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h.  */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h.  */
6299 #include <sys/types.h>
6300 #include <sys/wait.h>
6301 #ifndef WEXITSTATUS
6302 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6303 #endif
6304 #ifndef WIFEXITED
6305 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6306 #endif
6307
6308 int
6309 main ()
6310 {
6311   int s;
6312   wait (&s);
6313   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6314   ;
6315   return 0;
6316 }
6317 _ACEOF
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320   (eval $ac_compile) 2>conftest.er1
6321   ac_status=$?
6322   grep -v '^ *+' conftest.er1 >conftest.err
6323   rm -f conftest.er1
6324   cat conftest.err >&5
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); } &&
6327          { ac_try='test -z "$ac_c_werror_flag"
6328                          || test ! -s conftest.err'
6329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330   (eval $ac_try) 2>&5
6331   ac_status=$?
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); }; } &&
6334          { ac_try='test -s conftest.$ac_objext'
6335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336   (eval $ac_try) 2>&5
6337   ac_status=$?
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); }; }; then
6340   ac_cv_header_sys_wait_h=yes
6341 else
6342   echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6344
6345 ac_cv_header_sys_wait_h=no
6346 fi
6347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6348 fi
6349 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6350 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6351 if test $ac_cv_header_sys_wait_h = yes; then
6352
6353 cat >>confdefs.h <<\_ACEOF
6354 #define HAVE_SYS_WAIT_H 1
6355 _ACEOF
6356
6357 fi
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373 for ac_header in \
6374         direct.h \
6375         fcntl.h \
6376         io.h \
6377         memory.h \
6378         ndbm.h \
6379         stdint.h \
6380         syslog.h \
6381         sys/bsdtypes.h \
6382         sys/file.h \
6383         sys/param.h \
6384         sys/resource.h \
6385         sys/select.h \
6386         unistd.h \
6387         utime.h\
6388
6389 do
6390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392   echo "$as_me:$LINENO: checking for $ac_header" >&5
6393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 fi
6397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6399 else
6400   # Is the header compilable?
6401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6403 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h.  */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h.  */
6409 $ac_includes_default
6410 #include <$ac_header>
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6414   (eval $ac_compile) 2>conftest.er1
6415   ac_status=$?
6416   grep -v '^ *+' conftest.er1 >conftest.err
6417   rm -f conftest.er1
6418   cat conftest.err >&5
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); } &&
6421          { ac_try='test -z "$ac_c_werror_flag"
6422                          || test ! -s conftest.err'
6423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424   (eval $ac_try) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; } &&
6428          { ac_try='test -s conftest.$ac_objext'
6429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430   (eval $ac_try) 2>&5
6431   ac_status=$?
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); }; }; then
6434   ac_header_compiler=yes
6435 else
6436   echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6438
6439 ac_header_compiler=no
6440 fi
6441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6443 echo "${ECHO_T}$ac_header_compiler" >&6
6444
6445 # Is the header present?
6446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h.  */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h.  */
6454 #include <$ac_header>
6455 _ACEOF
6456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6457   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6458   ac_status=$?
6459   grep -v '^ *+' conftest.er1 >conftest.err
6460   rm -f conftest.er1
6461   cat conftest.err >&5
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); } >/dev/null; then
6464   if test -s conftest.err; then
6465     ac_cpp_err=$ac_c_preproc_warn_flag
6466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6467   else
6468     ac_cpp_err=
6469   fi
6470 else
6471   ac_cpp_err=yes
6472 fi
6473 if test -z "$ac_cpp_err"; then
6474   ac_header_preproc=yes
6475 else
6476   echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6478
6479   ac_header_preproc=no
6480 fi
6481 rm -f conftest.err conftest.$ac_ext
6482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6483 echo "${ECHO_T}$ac_header_preproc" >&6
6484
6485 # So?  What about this header?
6486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6487   yes:no: )
6488     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6492     ac_header_preproc=yes
6493     ;;
6494   no:yes:* )
6495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6497     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6498 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6499     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6501     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6502 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6505     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6507     (
6508       cat <<\_ASBOX
6509 ## ------------------------------ ##
6510 ## Report this to bug-cvs@gnu.org ##
6511 ## ------------------------------ ##
6512 _ASBOX
6513     ) |
6514       sed "s/^/$as_me: WARNING:     /" >&2
6515     ;;
6516 esac
6517 echo "$as_me:$LINENO: checking for $ac_header" >&5
6518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   eval "$as_ac_Header=\$ac_header_preproc"
6523 fi
6524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6526
6527 fi
6528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6529   cat >>confdefs.h <<_ACEOF
6530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6531 _ACEOF
6532
6533 fi
6534
6535 done
6536
6537 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6538 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6539 if test "${ac_cv_header_stat_broken+set}" = set; then
6540   echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542   cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h.  */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h.  */
6548 #include <sys/types.h>
6549 #include <sys/stat.h>
6550
6551 #if defined(S_ISBLK) && defined(S_IFDIR)
6552 # if S_ISBLK (S_IFDIR)
6553 You lose.
6554 # endif
6555 #endif
6556
6557 #if defined(S_ISBLK) && defined(S_IFCHR)
6558 # if S_ISBLK (S_IFCHR)
6559 You lose.
6560 # endif
6561 #endif
6562
6563 #if defined(S_ISLNK) && defined(S_IFREG)
6564 # if S_ISLNK (S_IFREG)
6565 You lose.
6566 # endif
6567 #endif
6568
6569 #if defined(S_ISSOCK) && defined(S_IFREG)
6570 # if S_ISSOCK (S_IFREG)
6571 You lose.
6572 # endif
6573 #endif
6574
6575 _ACEOF
6576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6577   $EGREP "You lose" >/dev/null 2>&1; then
6578   ac_cv_header_stat_broken=yes
6579 else
6580   ac_cv_header_stat_broken=no
6581 fi
6582 rm -f conftest*
6583
6584 fi
6585 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6586 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6587 if test $ac_cv_header_stat_broken = yes; then
6588
6589 cat >>confdefs.h <<\_ACEOF
6590 #define STAT_MACROS_BROKEN 1
6591 _ACEOF
6592
6593 fi
6594
6595
6596 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6597 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6598 if test "${ac_cv_c_const+set}" = set; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601   cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h.  */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h.  */
6607
6608 int
6609 main ()
6610 {
6611 /* FIXME: Include the comments suggested by Paul. */
6612 #ifndef __cplusplus
6613   /* Ultrix mips cc rejects this.  */
6614   typedef int charset[2];
6615   const charset x;
6616   /* SunOS 4.1.1 cc rejects this.  */
6617   char const *const *ccp;
6618   char **p;
6619   /* NEC SVR4.0.2 mips cc rejects this.  */
6620   struct point {int x, y;};
6621   static struct point const zero = {0,0};
6622   /* AIX XL C 1.02.0.0 rejects this.
6623      It does not let you subtract one const X* pointer from another in
6624      an arm of an if-expression whose if-part is not a constant
6625      expression */
6626   const char *g = "string";
6627   ccp = &g + (g ? g-g : 0);
6628   /* HPUX 7.0 cc rejects these. */
6629   ++ccp;
6630   p = (char**) ccp;
6631   ccp = (char const *const *) p;
6632   { /* SCO 3.2v4 cc rejects this.  */
6633     char *t;
6634     char const *s = 0 ? (char *) 0 : (char const *) 0;
6635
6636     *t++ = 0;
6637   }
6638   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6639     int x[] = {25, 17};
6640     const int *foo = &x[0];
6641     ++foo;
6642   }
6643   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6644     typedef const int *iptr;
6645     iptr p = 0;
6646     ++p;
6647   }
6648   { /* AIX XL C 1.02.0.0 rejects this saying
6649        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6650     struct s { int j; const int *ap[3]; };
6651     struct s *b; b->j = 5;
6652   }
6653   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6654     const int foo = 10;
6655   }
6656 #endif
6657
6658   ;
6659   return 0;
6660 }
6661 _ACEOF
6662 rm -f conftest.$ac_objext
6663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6664   (eval $ac_compile) 2>conftest.er1
6665   ac_status=$?
6666   grep -v '^ *+' conftest.er1 >conftest.err
6667   rm -f conftest.er1
6668   cat conftest.err >&5
6669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670   (exit $ac_status); } &&
6671          { ac_try='test -z "$ac_c_werror_flag"
6672                          || test ! -s conftest.err'
6673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674   (eval $ac_try) 2>&5
6675   ac_status=$?
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); }; } &&
6678          { ac_try='test -s conftest.$ac_objext'
6679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680   (eval $ac_try) 2>&5
6681   ac_status=$?
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); }; }; then
6684   ac_cv_c_const=yes
6685 else
6686   echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6688
6689 ac_cv_c_const=no
6690 fi
6691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6692 fi
6693 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6694 echo "${ECHO_T}$ac_cv_c_const" >&6
6695 if test $ac_cv_c_const = no; then
6696
6697 cat >>confdefs.h <<\_ACEOF
6698 #define const
6699 _ACEOF
6700
6701 fi
6702
6703 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6704 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6705 if test "${ac_cv_type_uid_t+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714 #include <sys/types.h>
6715
6716 _ACEOF
6717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6718   $EGREP "uid_t" >/dev/null 2>&1; then
6719   ac_cv_type_uid_t=yes
6720 else
6721   ac_cv_type_uid_t=no
6722 fi
6723 rm -f conftest*
6724
6725 fi
6726 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6727 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6728 if test $ac_cv_type_uid_t = no; then
6729
6730 cat >>confdefs.h <<\_ACEOF
6731 #define uid_t int
6732 _ACEOF
6733
6734
6735 cat >>confdefs.h <<\_ACEOF
6736 #define gid_t int
6737 _ACEOF
6738
6739 fi
6740
6741 echo "$as_me:$LINENO: checking for mode_t" >&5
6742 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6743 if test "${ac_cv_type_mode_t+set}" = set; then
6744   echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746   cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h.  */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h.  */
6752 $ac_includes_default
6753 int
6754 main ()
6755 {
6756 if ((mode_t *) 0)
6757   return 0;
6758 if (sizeof (mode_t))
6759   return 0;
6760   ;
6761   return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766   (eval $ac_compile) 2>conftest.er1
6767   ac_status=$?
6768   grep -v '^ *+' conftest.er1 >conftest.err
6769   rm -f conftest.er1
6770   cat conftest.err >&5
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } &&
6773          { ac_try='test -z "$ac_c_werror_flag"
6774                          || test ! -s conftest.err'
6775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776   (eval $ac_try) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); }; } &&
6780          { ac_try='test -s conftest.$ac_objext'
6781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782   (eval $ac_try) 2>&5
6783   ac_status=$?
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); }; }; then
6786   ac_cv_type_mode_t=yes
6787 else
6788   echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 ac_cv_type_mode_t=no
6792 fi
6793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6794 fi
6795 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6796 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6797 if test $ac_cv_type_mode_t = yes; then
6798   :
6799 else
6800
6801 cat >>confdefs.h <<_ACEOF
6802 #define mode_t int
6803 _ACEOF
6804
6805 fi
6806
6807 echo "$as_me:$LINENO: checking for pid_t" >&5
6808 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6809 if test "${ac_cv_type_pid_t+set}" = set; then
6810   echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812   cat >conftest.$ac_ext <<_ACEOF
6813 /* confdefs.h.  */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h.  */
6818 $ac_includes_default
6819 int
6820 main ()
6821 {
6822 if ((pid_t *) 0)
6823   return 0;
6824 if (sizeof (pid_t))
6825   return 0;
6826   ;
6827   return 0;
6828 }
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832   (eval $ac_compile) 2>conftest.er1
6833   ac_status=$?
6834   grep -v '^ *+' conftest.er1 >conftest.err
6835   rm -f conftest.er1
6836   cat conftest.err >&5
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); } &&
6839          { ac_try='test -z "$ac_c_werror_flag"
6840                          || test ! -s conftest.err'
6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); }; } &&
6846          { ac_try='test -s conftest.$ac_objext'
6847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852   ac_cv_type_pid_t=yes
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 ac_cv_type_pid_t=no
6858 fi
6859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6860 fi
6861 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6862 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6863 if test $ac_cv_type_pid_t = yes; then
6864   :
6865 else
6866
6867 cat >>confdefs.h <<_ACEOF
6868 #define pid_t int
6869 _ACEOF
6870
6871 fi
6872
6873 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6874 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6875 if test "${ac_cv_type_signal+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878   cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h.  */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h.  */
6884 #include <sys/types.h>
6885 #include <signal.h>
6886 #ifdef signal
6887 # undef signal
6888 #endif
6889 #ifdef __cplusplus
6890 extern "C" void (*signal (int, void (*)(int)))(int);
6891 #else
6892 void (*signal ()) ();
6893 #endif
6894
6895 int
6896 main ()
6897 {
6898 int i;
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_type_signal=void
6926 else
6927   echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930 ac_cv_type_signal=int
6931 fi
6932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6933 fi
6934 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6935 echo "${ECHO_T}$ac_cv_type_signal" >&6
6936
6937 cat >>confdefs.h <<_ACEOF
6938 #define RETSIGTYPE $ac_cv_type_signal
6939 _ACEOF
6940
6941
6942
6943 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6944 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6945 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6946   echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948   cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h.  */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h.  */
6954 $ac_includes_default
6955 int
6956 main ()
6957 {
6958 static struct stat ac_aggr;
6959 if (ac_aggr.st_blksize)
6960 return 0;
6961   ;
6962   return 0;
6963 }
6964 _ACEOF
6965 rm -f conftest.$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967   (eval $ac_compile) 2>conftest.er1
6968   ac_status=$?
6969   grep -v '^ *+' conftest.er1 >conftest.err
6970   rm -f conftest.er1
6971   cat conftest.err >&5
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); } &&
6974          { ac_try='test -z "$ac_c_werror_flag"
6975                          || test ! -s conftest.err'
6976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977   (eval $ac_try) 2>&5
6978   ac_status=$?
6979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980   (exit $ac_status); }; } &&
6981          { ac_try='test -s conftest.$ac_objext'
6982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983   (eval $ac_try) 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); }; }; then
6987   ac_cv_member_struct_stat_st_blksize=yes
6988 else
6989   echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h.  */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h.  */
6998 $ac_includes_default
6999 int
7000 main ()
7001 {
7002 static struct stat ac_aggr;
7003 if (sizeof ac_aggr.st_blksize)
7004 return 0;
7005   ;
7006   return 0;
7007 }
7008 _ACEOF
7009 rm -f conftest.$ac_objext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011   (eval $ac_compile) 2>conftest.er1
7012   ac_status=$?
7013   grep -v '^ *+' conftest.er1 >conftest.err
7014   rm -f conftest.er1
7015   cat conftest.err >&5
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); } &&
7018          { ac_try='test -z "$ac_c_werror_flag"
7019                          || test ! -s conftest.err'
7020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021   (eval $ac_try) 2>&5
7022   ac_status=$?
7023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); }; } &&
7025          { ac_try='test -s conftest.$ac_objext'
7026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027   (eval $ac_try) 2>&5
7028   ac_status=$?
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); }; }; then
7031   ac_cv_member_struct_stat_st_blksize=yes
7032 else
7033   echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036 ac_cv_member_struct_stat_st_blksize=no
7037 fi
7038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039 fi
7040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7041 fi
7042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
7043 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
7044 if test $ac_cv_member_struct_stat_st_blksize = yes; then
7045
7046 cat >>confdefs.h <<_ACEOF
7047 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7048 _ACEOF
7049
7050
7051 fi
7052
7053 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7054 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7055 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064 $ac_includes_default
7065 int
7066 main ()
7067 {
7068 static struct stat ac_aggr;
7069 if (ac_aggr.st_rdev)
7070 return 0;
7071   ;
7072   return 0;
7073 }
7074 _ACEOF
7075 rm -f conftest.$ac_objext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077   (eval $ac_compile) 2>conftest.er1
7078   ac_status=$?
7079   grep -v '^ *+' conftest.er1 >conftest.err
7080   rm -f conftest.er1
7081   cat conftest.err >&5
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); } &&
7084          { ac_try='test -z "$ac_c_werror_flag"
7085                          || test ! -s conftest.err'
7086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087   (eval $ac_try) 2>&5
7088   ac_status=$?
7089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090   (exit $ac_status); }; } &&
7091          { ac_try='test -s conftest.$ac_objext'
7092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093   (eval $ac_try) 2>&5
7094   ac_status=$?
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); }; }; then
7097   ac_cv_member_struct_stat_st_rdev=yes
7098 else
7099   echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7101
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h.  */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h.  */
7108 $ac_includes_default
7109 int
7110 main ()
7111 {
7112 static struct stat ac_aggr;
7113 if (sizeof ac_aggr.st_rdev)
7114 return 0;
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7121   (eval $ac_compile) 2>conftest.er1
7122   ac_status=$?
7123   grep -v '^ *+' conftest.er1 >conftest.err
7124   rm -f conftest.er1
7125   cat conftest.err >&5
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } &&
7128          { ac_try='test -z "$ac_c_werror_flag"
7129                          || test ! -s conftest.err'
7130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131   (eval $ac_try) 2>&5
7132   ac_status=$?
7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); }; } &&
7135          { ac_try='test -s conftest.$ac_objext'
7136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137   (eval $ac_try) 2>&5
7138   ac_status=$?
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); }; }; then
7141   ac_cv_member_struct_stat_st_rdev=yes
7142 else
7143   echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146 ac_cv_member_struct_stat_st_rdev=no
7147 fi
7148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7149 fi
7150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7151 fi
7152 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7153 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7154 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7155
7156 cat >>confdefs.h <<_ACEOF
7157 #define HAVE_STRUCT_STAT_ST_RDEV 1
7158 _ACEOF
7159
7160
7161 fi
7162
7163
7164 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7165 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
7166 if test "${ac_cv_sys_largefile_source+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   while :; do
7170   ac_cv_sys_largefile_source=no
7171   cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h.  */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h.  */
7177 #include <stdio.h>
7178 int
7179 main ()
7180 {
7181 return !fseeko;
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188   (eval $ac_compile) 2>conftest.er1
7189   ac_status=$?
7190   grep -v '^ *+' conftest.er1 >conftest.err
7191   rm -f conftest.er1
7192   cat conftest.err >&5
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } &&
7195          { ac_try='test -z "$ac_c_werror_flag"
7196                          || test ! -s conftest.err'
7197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198   (eval $ac_try) 2>&5
7199   ac_status=$?
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); }; } &&
7202          { ac_try='test -s conftest.$ac_objext'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; }; then
7208   break
7209 else
7210   echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213 fi
7214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7215   cat >conftest.$ac_ext <<_ACEOF
7216 /* confdefs.h.  */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h.  */
7221 #define _LARGEFILE_SOURCE 1
7222 #include <stdio.h>
7223 int
7224 main ()
7225 {
7226 return !fseeko;
7227   ;
7228   return 0;
7229 }
7230 _ACEOF
7231 rm -f conftest.$ac_objext
7232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7233   (eval $ac_compile) 2>conftest.er1
7234   ac_status=$?
7235   grep -v '^ *+' conftest.er1 >conftest.err
7236   rm -f conftest.er1
7237   cat conftest.err >&5
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); } &&
7240          { ac_try='test -z "$ac_c_werror_flag"
7241                          || test ! -s conftest.err'
7242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243   (eval $ac_try) 2>&5
7244   ac_status=$?
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); }; } &&
7247          { ac_try='test -s conftest.$ac_objext'
7248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249   (eval $ac_try) 2>&5
7250   ac_status=$?
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); }; }; then
7253   ac_cv_sys_largefile_source=1; break
7254 else
7255   echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7257
7258 fi
7259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7260   break
7261 done
7262 fi
7263 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7264 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7265 if test "$ac_cv_sys_largefile_source" != no; then
7266
7267 cat >>confdefs.h <<_ACEOF
7268 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7269 _ACEOF
7270
7271 fi
7272 rm -f conftest*
7273
7274 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7275 # in glibc 2.1.3, but that breaks too many other things.
7276 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7277 echo "$as_me:$LINENO: checking for fseeko" >&5
7278 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
7279 if test "${ac_cv_func_fseeko+set}" = set; then
7280   echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282   cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h.  */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h.  */
7288 #include <stdio.h>
7289 int
7290 main ()
7291 {
7292 return fseeko && fseeko (stdin, 0, 0);
7293   ;
7294   return 0;
7295 }
7296 _ACEOF
7297 rm -f conftest.$ac_objext conftest$ac_exeext
7298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7299   (eval $ac_link) 2>conftest.er1
7300   ac_status=$?
7301   grep -v '^ *+' conftest.er1 >conftest.err
7302   rm -f conftest.er1
7303   cat conftest.err >&5
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); } &&
7306          { ac_try='test -z "$ac_c_werror_flag"
7307                          || test ! -s conftest.err'
7308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309   (eval $ac_try) 2>&5
7310   ac_status=$?
7311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); }; } &&
7313          { ac_try='test -s conftest$ac_exeext'
7314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315   (eval $ac_try) 2>&5
7316   ac_status=$?
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); }; }; then
7319   ac_cv_func_fseeko=yes
7320 else
7321   echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324 ac_cv_func_fseeko=no
7325 fi
7326 rm -f conftest.err conftest.$ac_objext \
7327       conftest$ac_exeext conftest.$ac_ext
7328 fi
7329 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
7330 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
7331 if test $ac_cv_func_fseeko = yes; then
7332
7333 cat >>confdefs.h <<\_ACEOF
7334 #define HAVE_FSEEKO 1
7335 _ACEOF
7336
7337 fi
7338
7339 if test $ac_cv_func_fseeko = no; then
7340     case $LIBOBJS in
7341     "fseeko.$ac_objext"   | \
7342   *" fseeko.$ac_objext"   | \
7343     "fseeko.$ac_objext "* | \
7344   *" fseeko.$ac_objext "* ) ;;
7345   *) LIBOBJS="$LIBOBJS fseeko.$ac_objext" ;;
7346 esac
7347
7348     case $LIBOBJS in
7349     "ftello.$ac_objext"   | \
7350   *" ftello.$ac_objext"   | \
7351     "ftello.$ac_objext "* | \
7352   *" ftello.$ac_objext "* ) ;;
7353   *) LIBOBJS="$LIBOBJS ftello.$ac_objext" ;;
7354 esac
7355
7356 fi
7357
7358 # Replace functions with versions in lib/ when they can't be found.
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368 for ac_func in \
7369         dup2 \
7370         ftruncate \
7371         mkdir \
7372         readlink \
7373         rename \
7374         strstr \
7375         strtoul\
7376         valloc \
7377         waitpid \
7378
7379 do
7380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7381 echo "$as_me:$LINENO: checking for $ac_func" >&5
7382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7383 if eval "test \"\${$as_ac_var+set}\" = set"; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h.  */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h.  */
7392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7394 #define $ac_func innocuous_$ac_func
7395
7396 /* System header to define __stub macros and hopefully few prototypes,
7397     which can conflict with char $ac_func (); below.
7398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399     <limits.h> exists even on freestanding compilers.  */
7400
7401 #ifdef __STDC__
7402 # include <limits.h>
7403 #else
7404 # include <assert.h>
7405 #endif
7406
7407 #undef $ac_func
7408
7409 /* Override any gcc2 internal prototype to avoid an error.  */
7410 #ifdef __cplusplus
7411 extern "C"
7412 {
7413 #endif
7414 /* We use char because int might match the return type of a gcc2
7415    builtin and then its argument prototype would still apply.  */
7416 char $ac_func ();
7417 /* The GNU C library defines this for functions which it implements
7418     to always fail with ENOSYS.  Some functions are actually named
7419     something starting with __ and the normal name is an alias.  */
7420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7421 choke me
7422 #else
7423 char (*f) () = $ac_func;
7424 #endif
7425 #ifdef __cplusplus
7426 }
7427 #endif
7428
7429 int
7430 main ()
7431 {
7432 return f != $ac_func;
7433   ;
7434   return 0;
7435 }
7436 _ACEOF
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439   (eval $ac_link) 2>conftest.er1
7440   ac_status=$?
7441   grep -v '^ *+' conftest.er1 >conftest.err
7442   rm -f conftest.er1
7443   cat conftest.err >&5
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); } &&
7446          { ac_try='test -z "$ac_c_werror_flag"
7447                          || test ! -s conftest.err'
7448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449   (eval $ac_try) 2>&5
7450   ac_status=$?
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); }; } &&
7453          { ac_try='test -s conftest$ac_exeext'
7454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455   (eval $ac_try) 2>&5
7456   ac_status=$?
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); }; }; then
7459   eval "$as_ac_var=yes"
7460 else
7461   echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7463
7464 eval "$as_ac_var=no"
7465 fi
7466 rm -f conftest.err conftest.$ac_objext \
7467       conftest$ac_exeext conftest.$ac_ext
7468 fi
7469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7471 if test `eval echo '${'$as_ac_var'}'` = yes; then
7472   cat >>confdefs.h <<_ACEOF
7473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7474 _ACEOF
7475
7476 else
7477   case $LIBOBJS in
7478     "$ac_func.$ac_objext"   | \
7479   *" $ac_func.$ac_objext"   | \
7480     "$ac_func.$ac_objext "* | \
7481   *" $ac_func.$ac_objext "* ) ;;
7482   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7483 esac
7484
7485 fi
7486 done
7487
7488
7489
7490 #
7491 # Special hack for a SunOS 5.7 (aka Solaris 7) select() problem.
7492 #
7493
7494
7495 for ac_header in fcntl.h
7496 do
7497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7499   echo "$as_me:$LINENO: checking for $ac_header" >&5
7500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 fi
7504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7506 else
7507   # Is the header compilable?
7508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7510 cat >conftest.$ac_ext <<_ACEOF
7511 /* confdefs.h.  */
7512 _ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h.  */
7516 $ac_includes_default
7517 #include <$ac_header>
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7521   (eval $ac_compile) 2>conftest.er1
7522   ac_status=$?
7523   grep -v '^ *+' conftest.er1 >conftest.err
7524   rm -f conftest.er1
7525   cat conftest.err >&5
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); } &&
7528          { ac_try='test -z "$ac_c_werror_flag"
7529                          || test ! -s conftest.err'
7530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531   (eval $ac_try) 2>&5
7532   ac_status=$?
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); }; } &&
7535          { ac_try='test -s conftest.$ac_objext'
7536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537   (eval $ac_try) 2>&5
7538   ac_status=$?
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); }; }; then
7541   ac_header_compiler=yes
7542 else
7543   echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546 ac_header_compiler=no
7547 fi
7548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7550 echo "${ECHO_T}$ac_header_compiler" >&6
7551
7552 # Is the header present?
7553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h.  */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h.  */
7561 #include <$ac_header>
7562 _ACEOF
7563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7565   ac_status=$?
7566   grep -v '^ *+' conftest.er1 >conftest.err
7567   rm -f conftest.er1
7568   cat conftest.err >&5
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); } >/dev/null; then
7571   if test -s conftest.err; then
7572     ac_cpp_err=$ac_c_preproc_warn_flag
7573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7574   else
7575     ac_cpp_err=
7576   fi
7577 else
7578   ac_cpp_err=yes
7579 fi
7580 if test -z "$ac_cpp_err"; then
7581   ac_header_preproc=yes
7582 else
7583   echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7585
7586   ac_header_preproc=no
7587 fi
7588 rm -f conftest.err conftest.$ac_ext
7589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7590 echo "${ECHO_T}$ac_header_preproc" >&6
7591
7592 # So?  What about this header?
7593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7594   yes:no: )
7595     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7599     ac_header_preproc=yes
7600     ;;
7601   no:yes:* )
7602     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7604     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7605 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7606     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7608     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7609 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7612     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7614     (
7615       cat <<\_ASBOX
7616 ## ------------------------------ ##
7617 ## Report this to bug-cvs@gnu.org ##
7618 ## ------------------------------ ##
7619 _ASBOX
7620     ) |
7621       sed "s/^/$as_me: WARNING:     /" >&2
7622     ;;
7623 esac
7624 echo "$as_me:$LINENO: checking for $ac_header" >&5
7625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629   eval "$as_ac_Header=\$ac_header_preproc"
7630 fi
7631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7633
7634 fi
7635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7636   cat >>confdefs.h <<_ACEOF
7637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7638 _ACEOF
7639
7640 fi
7641
7642 done
7643
7644  echo "$as_me:$LINENO: checking whether select hangs on /dev/null fd when timeout is NULL" >&5
7645 echo $ECHO_N "checking whether select hangs on /dev/null fd when timeout is NULL... $ECHO_C" >&6
7646 if test "${ccvs_cv_func_select_hang+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649   if test "$cross_compiling" = yes; then
7650          ccvs_cv_func_select_hang=yes
7651 else
7652   cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h.  */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h.  */
7658
7659 #include <stdio.h>
7660 #include <sys/select.h>
7661 #ifdef HAVE_FCNTL_H
7662 # include <fcntl.h>
7663 #endif
7664 #include <errno.h>
7665 int
7666 main ()
7667 {
7668
7669   int numfds;
7670   fd_set readfds;
7671   struct timeval timeout;
7672   int fd = open ("/dev/null", O_RDONLY);
7673
7674   FD_ZERO (&readfds);
7675   FD_SET (fd, &readfds);
7676   timeout.tv_sec = 0;
7677   timeout.tv_usec = 1;
7678
7679   while ((numfds = select (fd + 1, &readfds, NULL, NULL, &timeout)) < 0
7680          && errno == EINTR);
7681   return (numfds <= 0);
7682
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 rm -f conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689   (eval $ac_link) 2>&5
7690   ac_status=$?
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694   (eval $ac_try) 2>&5
7695   ac_status=$?
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); }; }; then
7698   ccvs_cv_func_select_hang=no
7699 else
7700   echo "$as_me: program exited with status $ac_status" >&5
7701 echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7703
7704 ( exit $ac_status )
7705 ccvs_cv_func_select_hang=yes
7706 fi
7707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7708 fi
7709
7710 fi
7711 echo "$as_me:$LINENO: result: $ccvs_cv_func_select_hang" >&5
7712 echo "${ECHO_T}$ccvs_cv_func_select_hang" >&6
7713   if test $ccvs_cv_func_select_hang = yes; then
7714
7715
7716
7717 for ac_header in fcntl.h unistd.h
7718 do
7719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7721   echo "$as_me:$LINENO: checking for $ac_header" >&5
7722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 fi
7726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7728 else
7729   # Is the header compilable?
7730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7732 cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h.  */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h.  */
7738 $ac_includes_default
7739 #include <$ac_header>
7740 _ACEOF
7741 rm -f conftest.$ac_objext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7743   (eval $ac_compile) 2>conftest.er1
7744   ac_status=$?
7745   grep -v '^ *+' conftest.er1 >conftest.err
7746   rm -f conftest.er1
7747   cat conftest.err >&5
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } &&
7750          { ac_try='test -z "$ac_c_werror_flag"
7751                          || test ! -s conftest.err'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; } &&
7757          { ac_try='test -s conftest.$ac_objext'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; }; then
7763   ac_header_compiler=yes
7764 else
7765   echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768 ac_header_compiler=no
7769 fi
7770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7772 echo "${ECHO_T}$ac_header_compiler" >&6
7773
7774 # Is the header present?
7775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7777 cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h.  */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h.  */
7783 #include <$ac_header>
7784 _ACEOF
7785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7787   ac_status=$?
7788   grep -v '^ *+' conftest.er1 >conftest.err
7789   rm -f conftest.er1
7790   cat conftest.err >&5
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); } >/dev/null; then
7793   if test -s conftest.err; then
7794     ac_cpp_err=$ac_c_preproc_warn_flag
7795     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7796   else
7797     ac_cpp_err=
7798   fi
7799 else
7800   ac_cpp_err=yes
7801 fi
7802 if test -z "$ac_cpp_err"; then
7803   ac_header_preproc=yes
7804 else
7805   echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7807
7808   ac_header_preproc=no
7809 fi
7810 rm -f conftest.err conftest.$ac_ext
7811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7812 echo "${ECHO_T}$ac_header_preproc" >&6
7813
7814 # So?  What about this header?
7815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7816   yes:no: )
7817     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7821     ac_header_preproc=yes
7822     ;;
7823   no:yes:* )
7824     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7826     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7827 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7828     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7830     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7831 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7834     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7836     (
7837       cat <<\_ASBOX
7838 ## ------------------------------ ##
7839 ## Report this to bug-cvs@gnu.org ##
7840 ## ------------------------------ ##
7841 _ASBOX
7842     ) |
7843       sed "s/^/$as_me: WARNING:     /" >&2
7844     ;;
7845 esac
7846 echo "$as_me:$LINENO: checking for $ac_header" >&5
7847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849   echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851   eval "$as_ac_Header=\$ac_header_preproc"
7852 fi
7853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7855
7856 fi
7857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7858   cat >>confdefs.h <<_ACEOF
7859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7860 _ACEOF
7861
7862 fi
7863
7864 done
7865
7866
7867     case $LIBOBJS in
7868     "sunos57-select.$ac_objext"   | \
7869   *" sunos57-select.$ac_objext"   | \
7870     "sunos57-select.$ac_objext "* | \
7871   *" sunos57-select.$ac_objext "* ) ;;
7872   *) LIBOBJS="$LIBOBJS sunos57-select.$ac_objext" ;;
7873 esac
7874
7875
7876 cat >>confdefs.h <<\_ACEOF
7877 #define select rpl_select
7878 _ACEOF
7879
7880   fi
7881
7882
7883 #
7884 # Begin GNULIB stuff.
7885 #
7886
7887 # Look for functions from GNULIB and replace with versions in lib/ when
7888 # necessary.
7889 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7890 # for constant arguments.  Useless!
7891 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7892 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7893 if test "${ac_cv_working_alloca_h+set}" = set; then
7894   echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896   cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h.  */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h.  */
7902 #include <alloca.h>
7903 int
7904 main ()
7905 {
7906 char *p = (char *) alloca (2 * sizeof (int));
7907   ;
7908   return 0;
7909 }
7910 _ACEOF
7911 rm -f conftest.$ac_objext conftest$ac_exeext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7913   (eval $ac_link) 2>conftest.er1
7914   ac_status=$?
7915   grep -v '^ *+' conftest.er1 >conftest.err
7916   rm -f conftest.er1
7917   cat conftest.err >&5
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); } &&
7920          { ac_try='test -z "$ac_c_werror_flag"
7921                          || test ! -s conftest.err'
7922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923   (eval $ac_try) 2>&5
7924   ac_status=$?
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); }; } &&
7927          { ac_try='test -s conftest$ac_exeext'
7928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929   (eval $ac_try) 2>&5
7930   ac_status=$?
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); }; }; then
7933   ac_cv_working_alloca_h=yes
7934 else
7935   echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7937
7938 ac_cv_working_alloca_h=no
7939 fi
7940 rm -f conftest.err conftest.$ac_objext \
7941       conftest$ac_exeext conftest.$ac_ext
7942 fi
7943 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7944 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7945 if test $ac_cv_working_alloca_h = yes; then
7946
7947 cat >>confdefs.h <<\_ACEOF
7948 #define HAVE_ALLOCA_H 1
7949 _ACEOF
7950
7951 fi
7952
7953 echo "$as_me:$LINENO: checking for alloca" >&5
7954 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7955 if test "${ac_cv_func_alloca_works+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964 #ifdef __GNUC__
7965 # define alloca __builtin_alloca
7966 #else
7967 # ifdef _MSC_VER
7968 #  include <malloc.h>
7969 #  define alloca _alloca
7970 # else
7971 #  if HAVE_ALLOCA_H
7972 #   include <alloca.h>
7973 #  else
7974 #   ifdef _AIX
7975  #pragma alloca
7976 #   else
7977 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7978 char *alloca ();
7979 #    endif
7980 #   endif
7981 #  endif
7982 # endif
7983 #endif
7984
7985 int
7986 main ()
7987 {
7988 char *p = (char *) alloca (1);
7989   ;
7990   return 0;
7991 }
7992 _ACEOF
7993 rm -f conftest.$ac_objext conftest$ac_exeext
7994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7995   (eval $ac_link) 2>conftest.er1
7996   ac_status=$?
7997   grep -v '^ *+' conftest.er1 >conftest.err
7998   rm -f conftest.er1
7999   cat conftest.err >&5
8000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); } &&
8002          { ac_try='test -z "$ac_c_werror_flag"
8003                          || test ! -s conftest.err'
8004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005   (eval $ac_try) 2>&5
8006   ac_status=$?
8007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008   (exit $ac_status); }; } &&
8009          { ac_try='test -s conftest$ac_exeext'
8010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011   (eval $ac_try) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; }; then
8015   ac_cv_func_alloca_works=yes
8016 else
8017   echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020 ac_cv_func_alloca_works=no
8021 fi
8022 rm -f conftest.err conftest.$ac_objext \
8023       conftest$ac_exeext conftest.$ac_ext
8024 fi
8025 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8026 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8027
8028 if test $ac_cv_func_alloca_works = yes; then
8029
8030 cat >>confdefs.h <<\_ACEOF
8031 #define HAVE_ALLOCA 1
8032 _ACEOF
8033
8034 else
8035   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8036 # that cause trouble.  Some versions do not even contain alloca or
8037 # contain a buggy version.  If you still want to use their alloca,
8038 # use ar to extract alloca.o from them instead of compiling alloca.c.
8039
8040 ALLOCA=alloca.$ac_objext
8041
8042 cat >>confdefs.h <<\_ACEOF
8043 #define C_ALLOCA 1
8044 _ACEOF
8045
8046
8047 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8048 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8049 if test "${ac_cv_os_cray+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052   cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h.  */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h.  */
8058 #if defined(CRAY) && ! defined(CRAY2)
8059 webecray
8060 #else
8061 wenotbecray
8062 #endif
8063
8064 _ACEOF
8065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8066   $EGREP "webecray" >/dev/null 2>&1; then
8067   ac_cv_os_cray=yes
8068 else
8069   ac_cv_os_cray=no
8070 fi
8071 rm -f conftest*
8072
8073 fi
8074 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8075 echo "${ECHO_T}$ac_cv_os_cray" >&6
8076 if test $ac_cv_os_cray = yes; then
8077   for ac_func in _getb67 GETB67 getb67; do
8078     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8079 echo "$as_me:$LINENO: checking for $ac_func" >&5
8080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8081 if eval "test \"\${$as_ac_var+set}\" = set"; then
8082   echo $ECHO_N "(cached) $ECHO_C" >&6
8083 else
8084   cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8092 #define $ac_func innocuous_$ac_func
8093
8094 /* System header to define __stub macros and hopefully few prototypes,
8095     which can conflict with char $ac_func (); below.
8096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8097     <limits.h> exists even on freestanding compilers.  */
8098
8099 #ifdef __STDC__
8100 # include <limits.h>
8101 #else
8102 # include <assert.h>
8103 #endif
8104
8105 #undef $ac_func
8106
8107 /* Override any gcc2 internal prototype to avoid an error.  */
8108 #ifdef __cplusplus
8109 extern "C"
8110 {
8111 #endif
8112 /* We use char because int might match the return type of a gcc2
8113    builtin and then its argument prototype would still apply.  */
8114 char $ac_func ();
8115 /* The GNU C library defines this for functions which it implements
8116     to always fail with ENOSYS.  Some functions are actually named
8117     something starting with __ and the normal name is an alias.  */
8118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8119 choke me
8120 #else
8121 char (*f) () = $ac_func;
8122 #endif
8123 #ifdef __cplusplus
8124 }
8125 #endif
8126
8127 int
8128 main ()
8129 {
8130 return f != $ac_func;
8131   ;
8132   return 0;
8133 }
8134 _ACEOF
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8137   (eval $ac_link) 2>conftest.er1
8138   ac_status=$?
8139   grep -v '^ *+' conftest.er1 >conftest.err
8140   rm -f conftest.er1
8141   cat conftest.err >&5
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); } &&
8144          { ac_try='test -z "$ac_c_werror_flag"
8145                          || test ! -s conftest.err'
8146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147   (eval $ac_try) 2>&5
8148   ac_status=$?
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); }; } &&
8151          { ac_try='test -s conftest$ac_exeext'
8152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153   (eval $ac_try) 2>&5
8154   ac_status=$?
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); }; }; then
8157   eval "$as_ac_var=yes"
8158 else
8159   echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8161
8162 eval "$as_ac_var=no"
8163 fi
8164 rm -f conftest.err conftest.$ac_objext \
8165       conftest$ac_exeext conftest.$ac_ext
8166 fi
8167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8169 if test `eval echo '${'$as_ac_var'}'` = yes; then
8170
8171 cat >>confdefs.h <<_ACEOF
8172 #define CRAY_STACKSEG_END $ac_func
8173 _ACEOF
8174
8175     break
8176 fi
8177
8178   done
8179 fi
8180
8181 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8182 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8183 if test "${ac_cv_c_stack_direction+set}" = set; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186   if test "$cross_compiling" = yes; then
8187   ac_cv_c_stack_direction=0
8188 else
8189   cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h.  */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h.  */
8195 int
8196 find_stack_direction ()
8197 {
8198   static char *addr = 0;
8199   auto char dummy;
8200   if (addr == 0)
8201     {
8202       addr = &dummy;
8203       return find_stack_direction ();
8204     }
8205   else
8206     return (&dummy > addr) ? 1 : -1;
8207 }
8208
8209 int
8210 main ()
8211 {
8212   exit (find_stack_direction () < 0);
8213 }
8214 _ACEOF
8215 rm -f conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217   (eval $ac_link) 2>&5
8218   ac_status=$?
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222   (eval $ac_try) 2>&5
8223   ac_status=$?
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); }; }; then
8226   ac_cv_c_stack_direction=1
8227 else
8228   echo "$as_me: program exited with status $ac_status" >&5
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8231
8232 ( exit $ac_status )
8233 ac_cv_c_stack_direction=-1
8234 fi
8235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8236 fi
8237 fi
8238 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8239 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8240
8241 cat >>confdefs.h <<_ACEOF
8242 #define STACK_DIRECTION $ac_cv_c_stack_direction
8243 _ACEOF
8244
8245
8246 fi
8247
8248
8249
8250 for ac_header in stdlib.h
8251 do
8252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254   echo "$as_me:$LINENO: checking for $ac_header" >&5
8255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 fi
8259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8261 else
8262   # Is the header compilable?
8263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h.  */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h.  */
8271 $ac_includes_default
8272 #include <$ac_header>
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8276   (eval $ac_compile) 2>conftest.er1
8277   ac_status=$?
8278   grep -v '^ *+' conftest.er1 >conftest.err
8279   rm -f conftest.er1
8280   cat conftest.err >&5
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); } &&
8283          { ac_try='test -z "$ac_c_werror_flag"
8284                          || test ! -s conftest.err'
8285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286   (eval $ac_try) 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; } &&
8290          { ac_try='test -s conftest.$ac_objext'
8291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292   (eval $ac_try) 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); }; }; then
8296   ac_header_compiler=yes
8297 else
8298   echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301 ac_header_compiler=no
8302 fi
8303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8305 echo "${ECHO_T}$ac_header_compiler" >&6
8306
8307 # Is the header present?
8308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316 #include <$ac_header>
8317 _ACEOF
8318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8320   ac_status=$?
8321   grep -v '^ *+' conftest.er1 >conftest.err
8322   rm -f conftest.er1
8323   cat conftest.err >&5
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); } >/dev/null; then
8326   if test -s conftest.err; then
8327     ac_cpp_err=$ac_c_preproc_warn_flag
8328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8329   else
8330     ac_cpp_err=
8331   fi
8332 else
8333   ac_cpp_err=yes
8334 fi
8335 if test -z "$ac_cpp_err"; then
8336   ac_header_preproc=yes
8337 else
8338   echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341   ac_header_preproc=no
8342 fi
8343 rm -f conftest.err conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8345 echo "${ECHO_T}$ac_header_preproc" >&6
8346
8347 # So?  What about this header?
8348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8349   yes:no: )
8350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8354     ac_header_preproc=yes
8355     ;;
8356   no:yes:* )
8357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8369     (
8370       cat <<\_ASBOX
8371 ## ------------------------------ ##
8372 ## Report this to bug-cvs@gnu.org ##
8373 ## ------------------------------ ##
8374 _ASBOX
8375     ) |
8376       sed "s/^/$as_me: WARNING:     /" >&2
8377     ;;
8378 esac
8379 echo "$as_me:$LINENO: checking for $ac_header" >&5
8380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8382   echo $ECHO_N "(cached) $ECHO_C" >&6
8383 else
8384   eval "$as_ac_Header=\$ac_header_preproc"
8385 fi
8386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8388
8389 fi
8390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8391   cat >>confdefs.h <<_ACEOF
8392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8393 _ACEOF
8394
8395 fi
8396
8397 done
8398
8399 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8400 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8401 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   if test "$cross_compiling" = yes; then
8405   ac_cv_func_malloc_0_nonnull=no
8406 else
8407   cat >conftest.$ac_ext <<_ACEOF
8408 /* confdefs.h.  */
8409 _ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h.  */
8413 #if STDC_HEADERS || HAVE_STDLIB_H
8414 # include <stdlib.h>
8415 #else
8416 char *malloc ();
8417 #endif
8418
8419 int
8420 main ()
8421 {
8422 exit (malloc (0) ? 0 : 1);
8423   ;
8424   return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429   (eval $ac_link) 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434   (eval $ac_try) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); }; }; then
8438   ac_cv_func_malloc_0_nonnull=yes
8439 else
8440   echo "$as_me: program exited with status $ac_status" >&5
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8443
8444 ( exit $ac_status )
8445 ac_cv_func_malloc_0_nonnull=no
8446 fi
8447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8448 fi
8449 fi
8450 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8451 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8452 if test $ac_cv_func_malloc_0_nonnull = yes; then
8453   gl_cv_func_malloc_0_nonnull=1
8454 else
8455   gl_cv_func_malloc_0_nonnull=0
8456 fi
8457
8458
8459
8460 cat >>confdefs.h <<_ACEOF
8461 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
8462 _ACEOF
8463
8464
8465
8466   echo "$as_me:$LINENO: checking for long long" >&5
8467 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8468 if test "${ac_cv_type_long_long+set}" = set; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471   cat >conftest.$ac_ext <<_ACEOF
8472 /* confdefs.h.  */
8473 _ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h.  */
8477 long long ll = 1LL; int i = 63;
8478 int
8479 main ()
8480 {
8481 long long llmax = (long long) -1;
8482      return ll << i | ll >> i | llmax / ll | llmax % ll;
8483   ;
8484   return 0;
8485 }
8486 _ACEOF
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489   (eval $ac_link) 2>conftest.er1
8490   ac_status=$?
8491   grep -v '^ *+' conftest.er1 >conftest.err
8492   rm -f conftest.er1
8493   cat conftest.err >&5
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); } &&
8496          { ac_try='test -z "$ac_c_werror_flag"
8497                          || test ! -s conftest.err'
8498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499   (eval $ac_try) 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; } &&
8503          { ac_try='test -s conftest$ac_exeext'
8504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505   (eval $ac_try) 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); }; }; then
8509   ac_cv_type_long_long=yes
8510 else
8511   echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 ac_cv_type_long_long=no
8515 fi
8516 rm -f conftest.err conftest.$ac_objext \
8517       conftest$ac_exeext conftest.$ac_ext
8518 fi
8519 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8520 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8521   if test $ac_cv_type_long_long = yes; then
8522
8523 cat >>confdefs.h <<\_ACEOF
8524 #define HAVE_LONG_LONG 1
8525 _ACEOF
8526
8527   fi
8528
8529
8530   echo "$as_me:$LINENO: checking for long double" >&5
8531 echo $ECHO_N "checking for long double... $ECHO_C" >&6
8532 if test "${gt_cv_c_long_double+set}" = set; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535   if test "$GCC" = yes; then
8536        gt_cv_c_long_double=yes
8537      else
8538        cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h.  */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h.  */
8544
8545          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8546          long double foo = 0.0;
8547          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8548          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8549
8550 int
8551 main ()
8552 {
8553
8554   ;
8555   return 0;
8556 }
8557 _ACEOF
8558 rm -f conftest.$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560   (eval $ac_compile) 2>conftest.er1
8561   ac_status=$?
8562   grep -v '^ *+' conftest.er1 >conftest.err
8563   rm -f conftest.er1
8564   cat conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } &&
8567          { ac_try='test -z "$ac_c_werror_flag"
8568                          || test ! -s conftest.err'
8569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570   (eval $ac_try) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; } &&
8574          { ac_try='test -s conftest.$ac_objext'
8575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576   (eval $ac_try) 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); }; }; then
8580   gt_cv_c_long_double=yes
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 gt_cv_c_long_double=no
8586 fi
8587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8588      fi
8589 fi
8590 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8591 echo "${ECHO_T}$gt_cv_c_long_double" >&6
8592   if test $gt_cv_c_long_double = yes; then
8593
8594 cat >>confdefs.h <<\_ACEOF
8595 #define HAVE_LONG_DOUBLE 1
8596 _ACEOF
8597
8598   fi
8599
8600
8601     echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
8602 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
8603 if test "${ac_cv_win_or_dos+set}" = set; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606
8607         cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h.  */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h.  */
8613
8614 int
8615 main ()
8616 {
8617 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
8618 neither MSDOS nor Windows
8619 #endif
8620   ;
8621   return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8626   (eval $ac_compile) 2>conftest.er1
8627   ac_status=$?
8628   grep -v '^ *+' conftest.er1 >conftest.err
8629   rm -f conftest.er1
8630   cat conftest.err >&5
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); } &&
8633          { ac_try='test -z "$ac_c_werror_flag"
8634                          || test ! -s conftest.err'
8635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636   (eval $ac_try) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; } &&
8640          { ac_try='test -s conftest.$ac_objext'
8641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642   (eval $ac_try) 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; }; then
8646   ac_cv_win_or_dos=yes
8647 else
8648   echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651 ac_cv_win_or_dos=no
8652 fi
8653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8654
8655 fi
8656 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
8657 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
8658
8659     if test x"$ac_cv_win_or_dos" = xyes; then
8660       ac_fs_accepts_drive_letter_prefix=1
8661       ac_fs_backslash_is_file_name_separator=1
8662     else
8663       ac_fs_accepts_drive_letter_prefix=0
8664       ac_fs_backslash_is_file_name_separator=0
8665     fi
8666
8667
8668
8669
8670
8671 cat >>confdefs.h <<_ACEOF
8672 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
8673 _ACEOF
8674
8675
8676
8677
8678
8679
8680 cat >>confdefs.h <<_ACEOF
8681 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
8682 _ACEOF
8683
8684
8685 echo "$as_me:$LINENO: checking for mbstate_t" >&5
8686 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
8687 if test "${ac_cv_type_mbstate_t+set}" = set; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690   cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696 $ac_includes_default
8697 #           include <wchar.h>
8698 int
8699 main ()
8700 {
8701 mbstate_t x; return sizeof x;
8702   ;
8703   return 0;
8704 }
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8708   (eval $ac_compile) 2>conftest.er1
8709   ac_status=$?
8710   grep -v '^ *+' conftest.er1 >conftest.err
8711   rm -f conftest.er1
8712   cat conftest.err >&5
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); } &&
8715          { ac_try='test -z "$ac_c_werror_flag"
8716                          || test ! -s conftest.err'
8717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718   (eval $ac_try) 2>&5
8719   ac_status=$?
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); }; } &&
8722          { ac_try='test -s conftest.$ac_objext'
8723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724   (eval $ac_try) 2>&5
8725   ac_status=$?
8726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727   (exit $ac_status); }; }; then
8728   ac_cv_type_mbstate_t=yes
8729 else
8730   echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8732
8733 ac_cv_type_mbstate_t=no
8734 fi
8735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8736 fi
8737 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
8738 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
8739    if test $ac_cv_type_mbstate_t = yes; then
8740
8741 cat >>confdefs.h <<\_ACEOF
8742 #define HAVE_MBSTATE_T 1
8743 _ACEOF
8744
8745    else
8746
8747 cat >>confdefs.h <<\_ACEOF
8748 #define mbstate_t int
8749 _ACEOF
8750
8751    fi
8752 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8753 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8754 if test "${ac_cv_header_stdbool_h+set}" = set; then
8755   echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757   cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h.  */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h.  */
8763
8764           #include <stdbool.h>
8765           #ifndef bool
8766            "error: bool is not defined"
8767           #endif
8768           #ifndef false
8769            "error: false is not defined"
8770           #endif
8771           #if false
8772            "error: false is not 0"
8773           #endif
8774           #ifndef true
8775            "error: true is not defined"
8776           #endif
8777           #if true != 1
8778            "error: true is not 1"
8779           #endif
8780           #ifndef __bool_true_false_are_defined
8781            "error: __bool_true_false_are_defined is not defined"
8782           #endif
8783
8784           struct s { _Bool s: 1; _Bool t; } s;
8785
8786           char a[true == 1 ? 1 : -1];
8787           char b[false == 0 ? 1 : -1];
8788           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8789           char d[(bool) -0.5 == true ? 1 : -1];
8790           bool e = &s;
8791           char f[(_Bool) -0.0 == false ? 1 : -1];
8792           char g[true];
8793           char h[sizeof (_Bool)];
8794           char i[sizeof s.t];
8795           enum { j = false, k = true, l = false * true, m = true * 256 };
8796           _Bool n[m];
8797           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8798
8799 int
8800 main ()
8801 {
8802
8803           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
8804                   + !m + !n + !o);
8805
8806   ;
8807   return 0;
8808 }
8809 _ACEOF
8810 rm -f conftest.$ac_objext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812   (eval $ac_compile) 2>conftest.er1
8813   ac_status=$?
8814   grep -v '^ *+' conftest.er1 >conftest.err
8815   rm -f conftest.er1
8816   cat conftest.err >&5
8817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818   (exit $ac_status); } &&
8819          { ac_try='test -z "$ac_c_werror_flag"
8820                          || test ! -s conftest.err'
8821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822   (eval $ac_try) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); }; } &&
8826          { ac_try='test -s conftest.$ac_objext'
8827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828   (eval $ac_try) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; }; then
8832   ac_cv_header_stdbool_h=yes
8833 else
8834   echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837 ac_cv_header_stdbool_h=no
8838 fi
8839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8840 fi
8841 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8842 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8843    echo "$as_me:$LINENO: checking for _Bool" >&5
8844 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8845 if test "${ac_cv_type__Bool+set}" = set; then
8846   echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848   cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854 $ac_includes_default
8855 int
8856 main ()
8857 {
8858 if ((_Bool *) 0)
8859   return 0;
8860 if (sizeof (_Bool))
8861   return 0;
8862   ;
8863   return 0;
8864 }
8865 _ACEOF
8866 rm -f conftest.$ac_objext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868   (eval $ac_compile) 2>conftest.er1
8869   ac_status=$?
8870   grep -v '^ *+' conftest.er1 >conftest.err
8871   rm -f conftest.er1
8872   cat conftest.err >&5
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); } &&
8875          { ac_try='test -z "$ac_c_werror_flag"
8876                          || test ! -s conftest.err'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; } &&
8882          { ac_try='test -s conftest.$ac_objext'
8883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884   (eval $ac_try) 2>&5
8885   ac_status=$?
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); }; }; then
8888   ac_cv_type__Bool=yes
8889 else
8890   echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8892
8893 ac_cv_type__Bool=no
8894 fi
8895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8896 fi
8897 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8898 echo "${ECHO_T}$ac_cv_type__Bool" >&6
8899 if test $ac_cv_type__Bool = yes; then
8900
8901 cat >>confdefs.h <<_ACEOF
8902 #define HAVE__BOOL 1
8903 _ACEOF
8904
8905
8906 fi
8907
8908    if test $ac_cv_header_stdbool_h = yes; then
8909
8910 cat >>confdefs.h <<\_ACEOF
8911 #define HAVE_STDBOOL_H 1
8912 _ACEOF
8913
8914    fi
8915
8916
8917
8918   # Define two additional variables used in the Makefile substitution.
8919
8920   if test "$ac_cv_header_stdbool_h" = yes; then
8921     STDBOOL_H=''
8922   else
8923     STDBOOL_H='stdbool.h'
8924   fi
8925
8926
8927   if test "$ac_cv_type__Bool" = yes; then
8928     HAVE__BOOL=1
8929   else
8930     HAVE__BOOL=0
8931   fi
8932
8933
8934 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8935 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8936 if test "${ac_cv_header_time+set}" = set; then
8937   echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939   cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h.  */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h.  */
8945 #include <sys/types.h>
8946 #include <sys/time.h>
8947 #include <time.h>
8948
8949 int
8950 main ()
8951 {
8952 if ((struct tm *) 0)
8953 return 0;
8954   ;
8955   return 0;
8956 }
8957 _ACEOF
8958 rm -f conftest.$ac_objext
8959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8960   (eval $ac_compile) 2>conftest.er1
8961   ac_status=$?
8962   grep -v '^ *+' conftest.er1 >conftest.err
8963   rm -f conftest.er1
8964   cat conftest.err >&5
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); } &&
8967          { ac_try='test -z "$ac_c_werror_flag"
8968                          || test ! -s conftest.err'
8969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970   (eval $ac_try) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; } &&
8974          { ac_try='test -s conftest.$ac_objext'
8975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976   (eval $ac_try) 2>&5
8977   ac_status=$?
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); }; }; then
8980   ac_cv_header_time=yes
8981 else
8982   echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8984
8985 ac_cv_header_time=no
8986 fi
8987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8988 fi
8989 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8990 echo "${ECHO_T}$ac_cv_header_time" >&6
8991 if test $ac_cv_header_time = yes; then
8992
8993 cat >>confdefs.h <<\_ACEOF
8994 #define TIME_WITH_SYS_TIME 1
8995 _ACEOF
8996
8997 fi
8998
8999
9000
9001
9002
9003
9004 for ac_header in $gl_header_list
9005 do
9006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9008   echo "$as_me:$LINENO: checking for $ac_header" >&5
9009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9011   echo $ECHO_N "(cached) $ECHO_C" >&6
9012 fi
9013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9015 else
9016   # Is the header compilable?
9017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9019 cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h.  */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h.  */
9025 $ac_includes_default
9026 #include <$ac_header>
9027 _ACEOF
9028 rm -f conftest.$ac_objext
9029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9030   (eval $ac_compile) 2>conftest.er1
9031   ac_status=$?
9032   grep -v '^ *+' conftest.er1 >conftest.err
9033   rm -f conftest.er1
9034   cat conftest.err >&5
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); } &&
9037          { ac_try='test -z "$ac_c_werror_flag"
9038                          || test ! -s conftest.err'
9039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040   (eval $ac_try) 2>&5
9041   ac_status=$?
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); }; } &&
9044          { ac_try='test -s conftest.$ac_objext'
9045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046   (eval $ac_try) 2>&5
9047   ac_status=$?
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); }; }; then
9050   ac_header_compiler=yes
9051 else
9052   echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9054
9055 ac_header_compiler=no
9056 fi
9057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9059 echo "${ECHO_T}$ac_header_compiler" >&6
9060
9061 # Is the header present?
9062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9065 /* confdefs.h.  */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h.  */
9070 #include <$ac_header>
9071 _ACEOF
9072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9074   ac_status=$?
9075   grep -v '^ *+' conftest.er1 >conftest.err
9076   rm -f conftest.er1
9077   cat conftest.err >&5
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); } >/dev/null; then
9080   if test -s conftest.err; then
9081     ac_cpp_err=$ac_c_preproc_warn_flag
9082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9083   else
9084     ac_cpp_err=
9085   fi
9086 else
9087   ac_cpp_err=yes
9088 fi
9089 if test -z "$ac_cpp_err"; then
9090   ac_header_preproc=yes
9091 else
9092   echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9094
9095   ac_header_preproc=no
9096 fi
9097 rm -f conftest.err conftest.$ac_ext
9098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9099 echo "${ECHO_T}$ac_header_preproc" >&6
9100
9101 # So?  What about this header?
9102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9103   yes:no: )
9104     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9108     ac_header_preproc=yes
9109     ;;
9110   no:yes:* )
9111     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9113     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9114 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9115     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9117     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9118 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9121     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9123     (
9124       cat <<\_ASBOX
9125 ## ------------------------------ ##
9126 ## Report this to bug-cvs@gnu.org ##
9127 ## ------------------------------ ##
9128 _ASBOX
9129     ) |
9130       sed "s/^/$as_me: WARNING:     /" >&2
9131     ;;
9132 esac
9133 echo "$as_me:$LINENO: checking for $ac_header" >&5
9134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9136   echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138   eval "$as_ac_Header=\$ac_header_preproc"
9139 fi
9140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9142
9143 fi
9144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9145   cat >>confdefs.h <<_ACEOF
9146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9147 _ACEOF
9148
9149 fi
9150
9151 done
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161   :
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172   :
9173
9174
9175
9176
9177
9178   echo "$as_me:$LINENO: checking for struct timespec" >&5
9179 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
9180 if test "${fu_cv_sys_struct_timespec+set}" = set; then
9181   echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183   cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h.  */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h.  */
9189
9190 #      if TIME_WITH_SYS_TIME
9191 #       include <sys/time.h>
9192 #       include <time.h>
9193 #      else
9194 #       if HAVE_SYS_TIME_H
9195 #        include <sys/time.h>
9196 #       else
9197 #        include <time.h>
9198 #       endif
9199 #      endif
9200
9201 int
9202 main ()
9203 {
9204 static struct timespec x; x.tv_sec = x.tv_nsec;
9205   ;
9206   return 0;
9207 }
9208 _ACEOF
9209 rm -f conftest.$ac_objext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9211   (eval $ac_compile) 2>conftest.er1
9212   ac_status=$?
9213   grep -v '^ *+' conftest.er1 >conftest.err
9214   rm -f conftest.er1
9215   cat conftest.err >&5
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); } &&
9218          { ac_try='test -z "$ac_c_werror_flag"
9219                          || test ! -s conftest.err'
9220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221   (eval $ac_try) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); }; } &&
9225          { ac_try='test -s conftest.$ac_objext'
9226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227   (eval $ac_try) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); }; }; then
9231   fu_cv_sys_struct_timespec=yes
9232 else
9233   echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236 fu_cv_sys_struct_timespec=no
9237 fi
9238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9239
9240 fi
9241 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
9242 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
9243
9244   if test $fu_cv_sys_struct_timespec = yes; then
9245
9246 cat >>confdefs.h <<\_ACEOF
9247 #define HAVE_STRUCT_TIMESPEC 1
9248 _ACEOF
9249
9250   fi
9251
9252   echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
9253 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
9254 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
9255   echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257   ac_save_CPPFLAGS="$CPPFLAGS"
9258     ac_cv_struct_st_mtim_nsec=no
9259     # tv_nsec -- the usual case
9260     # _tv_nsec -- Solaris 2.6, if
9261     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
9262     #    && !defined __EXTENSIONS__)
9263     # st__tim.tv_nsec -- UnixWare 2.1.2
9264     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
9265       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
9266       cat >conftest.$ac_ext <<_ACEOF
9267 /* confdefs.h.  */
9268 _ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h.  */
9272 #include <sys/types.h>
9273 #include <sys/stat.h>
9274 int
9275 main ()
9276 {
9277 struct stat s; s.st_mtim.ST_MTIM_NSEC;
9278   ;
9279   return 0;
9280 }
9281 _ACEOF
9282 rm -f conftest.$ac_objext
9283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9284   (eval $ac_compile) 2>conftest.er1
9285   ac_status=$?
9286   grep -v '^ *+' conftest.er1 >conftest.err
9287   rm -f conftest.er1
9288   cat conftest.err >&5
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); } &&
9291          { ac_try='test -z "$ac_c_werror_flag"
9292                          || test ! -s conftest.err'
9293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294   (eval $ac_try) 2>&5
9295   ac_status=$?
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); }; } &&
9298          { ac_try='test -s conftest.$ac_objext'
9299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; }; then
9304   ac_cv_struct_st_mtim_nsec=$ac_val; break
9305 else
9306   echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9308
9309 fi
9310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9311     done
9312     CPPFLAGS="$ac_save_CPPFLAGS"
9313 fi
9314 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
9315 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
9316
9317   if test $ac_cv_struct_st_mtim_nsec != no; then
9318
9319 cat >>confdefs.h <<_ACEOF
9320 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
9321 _ACEOF
9322
9323   fi
9324
9325
9326
9327
9328
9329   echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
9330 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
9331 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
9332   echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9334   cat >conftest.$ac_ext <<_ACEOF
9335 /* confdefs.h.  */
9336 _ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h.  */
9340 #include <time.h>
9341
9342 int
9343 main ()
9344 {
9345 #ifndef nanosleep
9346   char *p = (char *) nanosleep;
9347 #endif
9348
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 rm -f conftest.$ac_objext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355   (eval $ac_compile) 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } &&
9362          { ac_try='test -z "$ac_c_werror_flag"
9363                          || test ! -s conftest.err'
9364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365   (eval $ac_try) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); }; } &&
9369          { ac_try='test -s conftest.$ac_objext'
9370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371   (eval $ac_try) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); }; }; then
9375   ac_cv_have_decl_nanosleep=yes
9376 else
9377   echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9379
9380 ac_cv_have_decl_nanosleep=no
9381 fi
9382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9383 fi
9384 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
9385 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
9386 if test $ac_cv_have_decl_nanosleep = yes; then
9387
9388 cat >>confdefs.h <<_ACEOF
9389 #define HAVE_DECL_NANOSLEEP 1
9390 _ACEOF
9391
9392
9393 else
9394   cat >>confdefs.h <<_ACEOF
9395 #define HAVE_DECL_NANOSLEEP 0
9396 _ACEOF
9397
9398
9399 fi
9400
9401
9402
9403
9404   # getdate.y works with bison only.
9405
9406 YACC=${YACC-"${am_missing_run}bison -y"}
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416 for ac_func in $gl_func_list
9417 do
9418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9419 echo "$as_me:$LINENO: checking for $ac_func" >&5
9420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9421 if eval "test \"\${$as_ac_var+set}\" = set"; then
9422   echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424   cat >conftest.$ac_ext <<_ACEOF
9425 /* confdefs.h.  */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h.  */
9430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9432 #define $ac_func innocuous_$ac_func
9433
9434 /* System header to define __stub macros and hopefully few prototypes,
9435     which can conflict with char $ac_func (); below.
9436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9437     <limits.h> exists even on freestanding compilers.  */
9438
9439 #ifdef __STDC__
9440 # include <limits.h>
9441 #else
9442 # include <assert.h>
9443 #endif
9444
9445 #undef $ac_func
9446
9447 /* Override any gcc2 internal prototype to avoid an error.  */
9448 #ifdef __cplusplus
9449 extern "C"
9450 {
9451 #endif
9452 /* We use char because int might match the return type of a gcc2
9453    builtin and then its argument prototype would still apply.  */
9454 char $ac_func ();
9455 /* The GNU C library defines this for functions which it implements
9456     to always fail with ENOSYS.  Some functions are actually named
9457     something starting with __ and the normal name is an alias.  */
9458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9459 choke me
9460 #else
9461 char (*f) () = $ac_func;
9462 #endif
9463 #ifdef __cplusplus
9464 }
9465 #endif
9466
9467 int
9468 main ()
9469 {
9470 return f != $ac_func;
9471   ;
9472   return 0;
9473 }
9474 _ACEOF
9475 rm -f conftest.$ac_objext conftest$ac_exeext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9477   (eval $ac_link) 2>conftest.er1
9478   ac_status=$?
9479   grep -v '^ *+' conftest.er1 >conftest.err
9480   rm -f conftest.er1
9481   cat conftest.err >&5
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); } &&
9484          { ac_try='test -z "$ac_c_werror_flag"
9485                          || test ! -s conftest.err'
9486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487   (eval $ac_try) 2>&5
9488   ac_status=$?
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); }; } &&
9491          { ac_try='test -s conftest$ac_exeext'
9492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493   (eval $ac_try) 2>&5
9494   ac_status=$?
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   (exit $ac_status); }; }; then
9497   eval "$as_ac_var=yes"
9498 else
9499   echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9501
9502 eval "$as_ac_var=no"
9503 fi
9504 rm -f conftest.err conftest.$ac_objext \
9505       conftest$ac_exeext conftest.$ac_ext
9506 fi
9507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9509 if test `eval echo '${'$as_ac_var'}'` = yes; then
9510   cat >>confdefs.h <<_ACEOF
9511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9512 _ACEOF
9513
9514 fi
9515 done
9516
9517
9518
9519
9520
9521
9522 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9523 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9524 if test "${ac_cv_struct_tm+set}" = set; then
9525   echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527   cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h.  */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h.  */
9533 #include <sys/types.h>
9534 #include <time.h>
9535
9536 int
9537 main ()
9538 {
9539 struct tm *tp; tp->tm_sec;
9540   ;
9541   return 0;
9542 }
9543 _ACEOF
9544 rm -f conftest.$ac_objext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9546   (eval $ac_compile) 2>conftest.er1
9547   ac_status=$?
9548   grep -v '^ *+' conftest.er1 >conftest.err
9549   rm -f conftest.er1
9550   cat conftest.err >&5
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); } &&
9553          { ac_try='test -z "$ac_c_werror_flag"
9554                          || test ! -s conftest.err'
9555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556   (eval $ac_try) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; } &&
9560          { ac_try='test -s conftest.$ac_objext'
9561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562   (eval $ac_try) 2>&5
9563   ac_status=$?
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); }; }; then
9566   ac_cv_struct_tm=time.h
9567 else
9568   echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9570
9571 ac_cv_struct_tm=sys/time.h
9572 fi
9573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9574 fi
9575 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9576 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9577 if test $ac_cv_struct_tm = sys/time.h; then
9578
9579 cat >>confdefs.h <<\_ACEOF
9580 #define TM_IN_SYS_TIME 1
9581 _ACEOF
9582
9583 fi
9584
9585
9586   # dnl Persuade glibc <time.h> to declare these functions.
9587
9588
9589   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
9590   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
9591
9592   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
9593   # programs in the package would end up linked with that potentially-shared
9594   # library, inducing unnecessary run-time overhead.
9595   fetish_saved_libs=$LIBS
9596     echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9597 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
9598 if test "${ac_cv_search_clock_gettime+set}" = set; then
9599   echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601   ac_func_search_save_LIBS=$LIBS
9602 ac_cv_search_clock_gettime=no
9603 cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h.  */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h.  */
9609
9610 /* Override any gcc2 internal prototype to avoid an error.  */
9611 #ifdef __cplusplus
9612 extern "C"
9613 #endif
9614 /* We use char because int might match the return type of a gcc2
9615    builtin and then its argument prototype would still apply.  */
9616 char clock_gettime ();
9617 int
9618 main ()
9619 {
9620 clock_gettime ();
9621   ;
9622   return 0;
9623 }
9624 _ACEOF
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9627   (eval $ac_link) 2>conftest.er1
9628   ac_status=$?
9629   grep -v '^ *+' conftest.er1 >conftest.err
9630   rm -f conftest.er1
9631   cat conftest.err >&5
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); } &&
9634          { ac_try='test -z "$ac_c_werror_flag"
9635                          || test ! -s conftest.err'
9636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; } &&
9641          { ac_try='test -s conftest$ac_exeext'
9642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643   (eval $ac_try) 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); }; }; then
9647   ac_cv_search_clock_gettime="none required"
9648 else
9649   echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9651
9652 fi
9653 rm -f conftest.err conftest.$ac_objext \
9654       conftest$ac_exeext conftest.$ac_ext
9655 if test "$ac_cv_search_clock_gettime" = no; then
9656   for ac_lib in rt posix4; do
9657     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9658     cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h.  */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h.  */
9664
9665 /* Override any gcc2 internal prototype to avoid an error.  */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 /* We use char because int might match the return type of a gcc2
9670    builtin and then its argument prototype would still apply.  */
9671 char clock_gettime ();
9672 int
9673 main ()
9674 {
9675 clock_gettime ();
9676   ;
9677   return 0;
9678 }
9679 _ACEOF
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682   (eval $ac_link) 2>conftest.er1
9683   ac_status=$?
9684   grep -v '^ *+' conftest.er1 >conftest.err
9685   rm -f conftest.er1
9686   cat conftest.err >&5
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -z "$ac_c_werror_flag"
9690                          || test ! -s conftest.err'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; } &&
9696          { ac_try='test -s conftest$ac_exeext'
9697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698   (eval $ac_try) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); }; }; then
9702   ac_cv_search_clock_gettime="-l$ac_lib"
9703 break
9704 else
9705   echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708 fi
9709 rm -f conftest.err conftest.$ac_objext \
9710       conftest$ac_exeext conftest.$ac_ext
9711   done
9712 fi
9713 LIBS=$ac_func_search_save_LIBS
9714 fi
9715 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9716 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
9717 if test "$ac_cv_search_clock_gettime" != no; then
9718   test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
9719   test "$ac_cv_search_clock_gettime" = "none required" ||
9720                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
9721 fi
9722
9723
9724
9725
9726 for ac_func in clock_gettime clock_settime
9727 do
9728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9729 echo "$as_me:$LINENO: checking for $ac_func" >&5
9730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9731 if eval "test \"\${$as_ac_var+set}\" = set"; then
9732   echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734   cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h.  */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h.  */
9740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9742 #define $ac_func innocuous_$ac_func
9743
9744 /* System header to define __stub macros and hopefully few prototypes,
9745     which can conflict with char $ac_func (); below.
9746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9747     <limits.h> exists even on freestanding compilers.  */
9748
9749 #ifdef __STDC__
9750 # include <limits.h>
9751 #else
9752 # include <assert.h>
9753 #endif
9754
9755 #undef $ac_func
9756
9757 /* Override any gcc2 internal prototype to avoid an error.  */
9758 #ifdef __cplusplus
9759 extern "C"
9760 {
9761 #endif
9762 /* We use char because int might match the return type of a gcc2
9763    builtin and then its argument prototype would still apply.  */
9764 char $ac_func ();
9765 /* The GNU C library defines this for functions which it implements
9766     to always fail with ENOSYS.  Some functions are actually named
9767     something starting with __ and the normal name is an alias.  */
9768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9769 choke me
9770 #else
9771 char (*f) () = $ac_func;
9772 #endif
9773 #ifdef __cplusplus
9774 }
9775 #endif
9776
9777 int
9778 main ()
9779 {
9780 return f != $ac_func;
9781   ;
9782   return 0;
9783 }
9784 _ACEOF
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787   (eval $ac_link) 2>conftest.er1
9788   ac_status=$?
9789   grep -v '^ *+' conftest.er1 >conftest.err
9790   rm -f conftest.er1
9791   cat conftest.err >&5
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); } &&
9794          { ac_try='test -z "$ac_c_werror_flag"
9795                          || test ! -s conftest.err'
9796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797   (eval $ac_try) 2>&5
9798   ac_status=$?
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); }; } &&
9801          { ac_try='test -s conftest$ac_exeext'
9802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803   (eval $ac_try) 2>&5
9804   ac_status=$?
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); }; }; then
9807   eval "$as_ac_var=yes"
9808 else
9809   echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9811
9812 eval "$as_ac_var=no"
9813 fi
9814 rm -f conftest.err conftest.$ac_objext \
9815       conftest$ac_exeext conftest.$ac_ext
9816 fi
9817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9819 if test `eval echo '${'$as_ac_var'}'` = yes; then
9820   cat >>confdefs.h <<_ACEOF
9821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9822 _ACEOF
9823
9824 fi
9825 done
9826
9827   LIBS=$fetish_saved_libs
9828
9829
9830  echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
9831 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
9832 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
9833   echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835   cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h.  */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h.  */
9841 #include <time.h>
9842
9843 int
9844 main ()
9845 {
9846 static struct tm ac_aggr;
9847 if (ac_aggr.tm_gmtoff)
9848 return 0;
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 rm -f conftest.$ac_objext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9855   (eval $ac_compile) 2>conftest.er1
9856   ac_status=$?
9857   grep -v '^ *+' conftest.er1 >conftest.err
9858   rm -f conftest.er1
9859   cat conftest.err >&5
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } &&
9862          { ac_try='test -z "$ac_c_werror_flag"
9863                          || test ! -s conftest.err'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; } &&
9869          { ac_try='test -s conftest.$ac_objext'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; }; then
9875   ac_cv_member_struct_tm_tm_gmtoff=yes
9876 else
9877   echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h.  */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h.  */
9886 #include <time.h>
9887
9888 int
9889 main ()
9890 {
9891 static struct tm ac_aggr;
9892 if (sizeof ac_aggr.tm_gmtoff)
9893 return 0;
9894   ;
9895   return 0;
9896 }
9897 _ACEOF
9898 rm -f conftest.$ac_objext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900   (eval $ac_compile) 2>conftest.er1
9901   ac_status=$?
9902   grep -v '^ *+' conftest.er1 >conftest.err
9903   rm -f conftest.er1
9904   cat conftest.err >&5
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); } &&
9907          { ac_try='test -z "$ac_c_werror_flag"
9908                          || test ! -s conftest.err'
9909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910   (eval $ac_try) 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; } &&
9914          { ac_try='test -s conftest.$ac_objext'
9915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916   (eval $ac_try) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; }; then
9920   ac_cv_member_struct_tm_tm_gmtoff=yes
9921 else
9922   echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9924
9925 ac_cv_member_struct_tm_tm_gmtoff=no
9926 fi
9927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9928 fi
9929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9930 fi
9931 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
9932 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
9933 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
9934
9935 cat >>confdefs.h <<\_ACEOF
9936 #define HAVE_TM_GMTOFF 1
9937 _ACEOF
9938
9939 fi
9940
9941
9942
9943   echo "$as_me:$LINENO: checking for ssize_t" >&5
9944 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9945 if test "${gt_cv_ssize_t+set}" = set; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948   cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954 #include <sys/types.h>
9955 int
9956 main ()
9957 {
9958 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9959   ;
9960   return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9965   (eval $ac_compile) 2>conftest.er1
9966   ac_status=$?
9967   grep -v '^ *+' conftest.er1 >conftest.err
9968   rm -f conftest.er1
9969   cat conftest.err >&5
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); } &&
9972          { ac_try='test -z "$ac_c_werror_flag"
9973                          || test ! -s conftest.err'
9974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975   (eval $ac_try) 2>&5
9976   ac_status=$?
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); }; } &&
9979          { ac_try='test -s conftest.$ac_objext'
9980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981   (eval $ac_try) 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; }; then
9985   gt_cv_ssize_t=yes
9986 else
9987   echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990 gt_cv_ssize_t=no
9991 fi
9992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9993 fi
9994 echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
9995 echo "${ECHO_T}$gt_cv_ssize_t" >&6
9996   if test $gt_cv_ssize_t = no; then
9997
9998 cat >>confdefs.h <<\_ACEOF
9999 #define ssize_t int
10000 _ACEOF
10001
10002   fi
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017       echo "$as_me:$LINENO: checking whether getpass is declared" >&5
10018 echo $ECHO_N "checking whether getpass is declared... $ECHO_C" >&6
10019 if test "${ac_cv_have_decl_getpass+set}" = set; then
10020   echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022   cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h.  */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h.  */
10028 $ac_includes_default
10029 int
10030 main ()
10031 {
10032 #ifndef getpass
10033   char *p = (char *) getpass;
10034 #endif
10035
10036   ;
10037   return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest.$ac_objext
10041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10042   (eval $ac_compile) 2>conftest.er1
10043   ac_status=$?
10044   grep -v '^ *+' conftest.er1 >conftest.err
10045   rm -f conftest.er1
10046   cat conftest.err >&5
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); } &&
10049          { ac_try='test -z "$ac_c_werror_flag"
10050                          || test ! -s conftest.err'
10051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052   (eval $ac_try) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; } &&
10056          { ac_try='test -s conftest.$ac_objext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   ac_cv_have_decl_getpass=yes
10063 else
10064   echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10066
10067 ac_cv_have_decl_getpass=no
10068 fi
10069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10070 fi
10071 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpass" >&5
10072 echo "${ECHO_T}$ac_cv_have_decl_getpass" >&6
10073 if test $ac_cv_have_decl_getpass = yes; then
10074
10075 cat >>confdefs.h <<_ACEOF
10076 #define HAVE_DECL_GETPASS 1
10077 _ACEOF
10078
10079
10080 else
10081   cat >>confdefs.h <<_ACEOF
10082 #define HAVE_DECL_GETPASS 0
10083 _ACEOF
10084
10085
10086 fi
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097       echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
10098 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
10099 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
10100   echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102   cat >conftest.$ac_ext <<_ACEOF
10103 /* confdefs.h.  */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h.  */
10108 $ac_includes_default
10109 int
10110 main ()
10111 {
10112 #ifndef fflush_unlocked
10113   char *p = (char *) fflush_unlocked;
10114 #endif
10115
10116   ;
10117   return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest.$ac_objext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10122   (eval $ac_compile) 2>conftest.er1
10123   ac_status=$?
10124   grep -v '^ *+' conftest.er1 >conftest.err
10125   rm -f conftest.er1
10126   cat conftest.err >&5
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); } &&
10129          { ac_try='test -z "$ac_c_werror_flag"
10130                          || test ! -s conftest.err'
10131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132   (eval $ac_try) 2>&5
10133   ac_status=$?
10134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135   (exit $ac_status); }; } &&
10136          { ac_try='test -s conftest.$ac_objext'
10137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138   (eval $ac_try) 2>&5
10139   ac_status=$?
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); }; }; then
10142   ac_cv_have_decl_fflush_unlocked=yes
10143 else
10144   echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10146
10147 ac_cv_have_decl_fflush_unlocked=no
10148 fi
10149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10150 fi
10151 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
10152 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
10153 if test $ac_cv_have_decl_fflush_unlocked = yes; then
10154
10155 cat >>confdefs.h <<_ACEOF
10156 #define HAVE_DECL_FFLUSH_UNLOCKED 1
10157 _ACEOF
10158
10159
10160 else
10161   cat >>confdefs.h <<_ACEOF
10162 #define HAVE_DECL_FFLUSH_UNLOCKED 0
10163 _ACEOF
10164
10165
10166 fi
10167
10168
10169
10170
10171       echo "$as_me:$LINENO: checking whether flockfile is declared" >&5
10172 echo $ECHO_N "checking whether flockfile is declared... $ECHO_C" >&6
10173 if test "${ac_cv_have_decl_flockfile+set}" = set; then
10174   echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176   cat >conftest.$ac_ext <<_ACEOF
10177 /* confdefs.h.  */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h.  */
10182 $ac_includes_default
10183 int
10184 main ()
10185 {
10186 #ifndef flockfile
10187   char *p = (char *) flockfile;
10188 #endif
10189
10190   ;
10191   return 0;
10192 }
10193 _ACEOF
10194 rm -f conftest.$ac_objext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10196   (eval $ac_compile) 2>conftest.er1
10197   ac_status=$?
10198   grep -v '^ *+' conftest.er1 >conftest.err
10199   rm -f conftest.er1
10200   cat conftest.err >&5
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); } &&
10203          { ac_try='test -z "$ac_c_werror_flag"
10204                          || test ! -s conftest.err'
10205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206   (eval $ac_try) 2>&5
10207   ac_status=$?
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); }; } &&
10210          { ac_try='test -s conftest.$ac_objext'
10211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212   (eval $ac_try) 2>&5
10213   ac_status=$?
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); }; }; then
10216   ac_cv_have_decl_flockfile=yes
10217 else
10218   echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10220
10221 ac_cv_have_decl_flockfile=no
10222 fi
10223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10224 fi
10225 echo "$as_me:$LINENO: result: $ac_cv_have_decl_flockfile" >&5
10226 echo "${ECHO_T}$ac_cv_have_decl_flockfile" >&6
10227 if test $ac_cv_have_decl_flockfile = yes; then
10228
10229 cat >>confdefs.h <<_ACEOF
10230 #define HAVE_DECL_FLOCKFILE 1
10231 _ACEOF
10232
10233
10234 else
10235   cat >>confdefs.h <<_ACEOF
10236 #define HAVE_DECL_FLOCKFILE 0
10237 _ACEOF
10238
10239
10240 fi
10241
10242
10243
10244
10245       echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
10246 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
10247 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
10248   echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250   cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h.  */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h.  */
10256 $ac_includes_default
10257 int
10258 main ()
10259 {
10260 #ifndef fputs_unlocked
10261   char *p = (char *) fputs_unlocked;
10262 #endif
10263
10264   ;
10265   return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext
10269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10270   (eval $ac_compile) 2>conftest.er1
10271   ac_status=$?
10272   grep -v '^ *+' conftest.er1 >conftest.err
10273   rm -f conftest.er1
10274   cat conftest.err >&5
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); } &&
10277          { ac_try='test -z "$ac_c_werror_flag"
10278                          || test ! -s conftest.err'
10279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280   (eval $ac_try) 2>&5
10281   ac_status=$?
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); }; } &&
10284          { ac_try='test -s conftest.$ac_objext'
10285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286   (eval $ac_try) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; }; then
10290   ac_cv_have_decl_fputs_unlocked=yes
10291 else
10292   echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10294
10295 ac_cv_have_decl_fputs_unlocked=no
10296 fi
10297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10298 fi
10299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
10300 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
10301 if test $ac_cv_have_decl_fputs_unlocked = yes; then
10302
10303 cat >>confdefs.h <<_ACEOF
10304 #define HAVE_DECL_FPUTS_UNLOCKED 1
10305 _ACEOF
10306
10307
10308 else
10309   cat >>confdefs.h <<_ACEOF
10310 #define HAVE_DECL_FPUTS_UNLOCKED 0
10311 _ACEOF
10312
10313
10314 fi
10315
10316
10317
10318
10319       echo "$as_me:$LINENO: checking whether funlockfile is declared" >&5
10320 echo $ECHO_N "checking whether funlockfile is declared... $ECHO_C" >&6
10321 if test "${ac_cv_have_decl_funlockfile+set}" = set; then
10322   echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324   cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h.  */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h.  */
10330 $ac_includes_default
10331 int
10332 main ()
10333 {
10334 #ifndef funlockfile
10335   char *p = (char *) funlockfile;
10336 #endif
10337
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344   (eval $ac_compile) 2>conftest.er1
10345   ac_status=$?
10346   grep -v '^ *+' conftest.er1 >conftest.err
10347   rm -f conftest.er1
10348   cat conftest.err >&5
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); } &&
10351          { ac_try='test -z "$ac_c_werror_flag"
10352                          || test ! -s conftest.err'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; } &&
10358          { ac_try='test -s conftest.$ac_objext'
10359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360   (eval $ac_try) 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; }; then
10364   ac_cv_have_decl_funlockfile=yes
10365 else
10366   echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10368
10369 ac_cv_have_decl_funlockfile=no
10370 fi
10371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10372 fi
10373 echo "$as_me:$LINENO: result: $ac_cv_have_decl_funlockfile" >&5
10374 echo "${ECHO_T}$ac_cv_have_decl_funlockfile" >&6
10375 if test $ac_cv_have_decl_funlockfile = yes; then
10376
10377 cat >>confdefs.h <<_ACEOF
10378 #define HAVE_DECL_FUNLOCKFILE 1
10379 _ACEOF
10380
10381
10382 else
10383   cat >>confdefs.h <<_ACEOF
10384 #define HAVE_DECL_FUNLOCKFILE 0
10385 _ACEOF
10386
10387
10388 fi
10389
10390
10391
10392
10393       echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10394 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
10395 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10396   echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398   cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h.  */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h.  */
10404 $ac_includes_default
10405 int
10406 main ()
10407 {
10408 #ifndef putc_unlocked
10409   char *p = (char *) putc_unlocked;
10410 #endif
10411
10412   ;
10413   return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418   (eval $ac_compile) 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } &&
10425          { ac_try='test -z "$ac_c_werror_flag"
10426                          || test ! -s conftest.err'
10427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428   (eval $ac_try) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; } &&
10432          { ac_try='test -s conftest.$ac_objext'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; }; then
10438   ac_cv_have_decl_putc_unlocked=yes
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443 ac_cv_have_decl_putc_unlocked=no
10444 fi
10445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10446 fi
10447 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
10448 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
10449 if test $ac_cv_have_decl_putc_unlocked = yes; then
10450
10451 cat >>confdefs.h <<_ACEOF
10452 #define HAVE_DECL_PUTC_UNLOCKED 1
10453 _ACEOF
10454
10455
10456 else
10457   cat >>confdefs.h <<_ACEOF
10458 #define HAVE_DECL_PUTC_UNLOCKED 0
10459 _ACEOF
10460
10461
10462 fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
10473 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
10474 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
10475   echo $ECHO_N "(cached) $ECHO_C" >&6
10476 else
10477   rm -f conftest.sym conftest.file
10478 echo >conftest.file
10479 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10480   if test "$cross_compiling" = yes; then
10481   ac_cv_func_lstat_dereferences_slashed_symlink=no
10482 else
10483   cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h.  */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h.  */
10489 $ac_includes_default
10490 int
10491 main ()
10492 {
10493 struct stat sbuf;
10494      /* Linux will dereference the symlink and fail.
10495         That is better in the sense that it means we will not
10496         have to compile and use the lstat wrapper.  */
10497      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
10498   ;
10499   return 0;
10500 }
10501 _ACEOF
10502 rm -f conftest$ac_exeext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504   (eval $ac_link) 2>&5
10505   ac_status=$?
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509   (eval $ac_try) 2>&5
10510   ac_status=$?
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); }; }; then
10513   ac_cv_func_lstat_dereferences_slashed_symlink=yes
10514 else
10515   echo "$as_me: program exited with status $ac_status" >&5
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10518
10519 ( exit $ac_status )
10520 ac_cv_func_lstat_dereferences_slashed_symlink=no
10521 fi
10522 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10523 fi
10524 else
10525   # If the `ln -s' command failed, then we probably don't even
10526   # have an lstat function.
10527   ac_cv_func_lstat_dereferences_slashed_symlink=no
10528 fi
10529 rm -f conftest.sym conftest.file
10530
10531 fi
10532 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10533 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
10534
10535 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10536
10537 cat >>confdefs.h <<_ACEOF
10538 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10539 _ACEOF
10540
10541
10542 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
10543   case $LIBOBJS in
10544     "lstat.$ac_objext"   | \
10545   *" lstat.$ac_objext"   | \
10546     "lstat.$ac_objext "* | \
10547   *" lstat.$ac_objext "* ) ;;
10548   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
10549 esac
10550
10551 fi
10552
10553
10554   echo "$as_me:$LINENO: checking for uint32_t" >&5
10555 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
10556 if test "${gl_cv_c_uint32_t+set}" = set; then
10557   echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559   gl_cv_c_uint32_t=no
10560      for ac_type in "uint32_t" "unsigned int" \
10561          "unsigned long int" "unsigned short int"; do
10562        cat >conftest.$ac_ext <<_ACEOF
10563 /* confdefs.h.  */
10564 _ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h.  */
10568 $ac_includes_default
10569 int
10570 main ()
10571 {
10572 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)];
10573 test_array [0] = 0
10574
10575   ;
10576   return 0;
10577 }
10578 _ACEOF
10579 rm -f conftest.$ac_objext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581   (eval $ac_compile) 2>conftest.er1
10582   ac_status=$?
10583   grep -v '^ *+' conftest.er1 >conftest.err
10584   rm -f conftest.er1
10585   cat conftest.err >&5
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); } &&
10588          { ac_try='test -z "$ac_c_werror_flag"
10589                          || test ! -s conftest.err'
10590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591   (eval $ac_try) 2>&5
10592   ac_status=$?
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); }; } &&
10595          { ac_try='test -s conftest.$ac_objext'
10596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597   (eval $ac_try) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); }; }; then
10601   gl_cv_c_uint32_t=$ac_type
10602 else
10603   echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10605
10606 fi
10607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10608        test "$gl_cv_c_uint32_t" != no && break
10609      done
10610 fi
10611 echo "$as_me:$LINENO: result: $gl_cv_c_uint32_t" >&5
10612 echo "${ECHO_T}$gl_cv_c_uint32_t" >&6
10613   case "$gl_cv_c_uint32_t" in
10614   no|uint32_t) ;;
10615   *)
10616
10617 cat >>confdefs.h <<\_ACEOF
10618 #define _UINT32_T 1
10619 _ACEOF
10620
10621
10622 cat >>confdefs.h <<_ACEOF
10623 #define uint32_t $gl_cv_c_uint32_t
10624 _ACEOF
10625
10626     ;;
10627   esac
10628
10629   echo "$as_me:$LINENO: checking for UINT32_MAX" >&5
10630 echo $ECHO_N "checking for UINT32_MAX... $ECHO_C" >&6
10631 if test "${gl_cv_c_uint32_max+set}" = set; then
10632   echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634   cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h.  */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h.  */
10640 $ac_includes_default
10641 int
10642 main ()
10643 {
10644 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)];
10645 test_array [0] = 0
10646
10647   ;
10648   return 0;
10649 }
10650 _ACEOF
10651 rm -f conftest.$ac_objext
10652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10653   (eval $ac_compile) 2>conftest.er1
10654   ac_status=$?
10655   grep -v '^ *+' conftest.er1 >conftest.err
10656   rm -f conftest.er1
10657   cat conftest.err >&5
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); } &&
10660          { ac_try='test -z "$ac_c_werror_flag"
10661                          || test ! -s conftest.err'
10662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663   (eval $ac_try) 2>&5
10664   ac_status=$?
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); }; } &&
10667          { ac_try='test -s conftest.$ac_objext'
10668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669   (eval $ac_try) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }; }; then
10673   gl_cv_c_uint32_max=yes
10674 else
10675   echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10677
10678 gl_cv_c_uint32_max=no
10679 fi
10680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10681 fi
10682 echo "$as_me:$LINENO: result: $gl_cv_c_uint32_max" >&5
10683 echo "${ECHO_T}$gl_cv_c_uint32_max" >&6
10684   case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in
10685   yes,*) ;;
10686   *,no) ;;
10687   *)
10688
10689 cat >>confdefs.h <<\_ACEOF
10690 #define UINT32_MAX 4294967295U
10691 _ACEOF
10692
10693     ;;
10694   esac
10695
10696 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10697 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10698 if test "${ac_cv_c_bigendian+set}" = set; then
10699   echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701   # See if sys/param.h defines the BYTE_ORDER macro.
10702 cat >conftest.$ac_ext <<_ACEOF
10703 /* confdefs.h.  */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h.  */
10708 #include <sys/types.h>
10709 #include <sys/param.h>
10710
10711 int
10712 main ()
10713 {
10714 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10715  bogus endian macros
10716 #endif
10717
10718   ;
10719   return 0;
10720 }
10721 _ACEOF
10722 rm -f conftest.$ac_objext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10724   (eval $ac_compile) 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_objext'
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   # It does; now see whether it defined to BIG_ENDIAN or not.
10745 cat >conftest.$ac_ext <<_ACEOF
10746 /* confdefs.h.  */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h.  */
10751 #include <sys/types.h>
10752 #include <sys/param.h>
10753
10754 int
10755 main ()
10756 {
10757 #if BYTE_ORDER != BIG_ENDIAN
10758  not big endian
10759 #endif
10760
10761   ;
10762   return 0;
10763 }
10764 _ACEOF
10765 rm -f conftest.$ac_objext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10767   (eval $ac_compile) 2>conftest.er1
10768   ac_status=$?
10769   grep -v '^ *+' conftest.er1 >conftest.err
10770   rm -f conftest.er1
10771   cat conftest.err >&5
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); } &&
10774          { ac_try='test -z "$ac_c_werror_flag"
10775                          || test ! -s conftest.err'
10776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777   (eval $ac_try) 2>&5
10778   ac_status=$?
10779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); }; } &&
10781          { ac_try='test -s conftest.$ac_objext'
10782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783   (eval $ac_try) 2>&5
10784   ac_status=$?
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); }; }; then
10787   ac_cv_c_bigendian=yes
10788 else
10789   echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10791
10792 ac_cv_c_bigendian=no
10793 fi
10794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10795 else
10796   echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799 # It does not; compile a test program.
10800 if test "$cross_compiling" = yes; then
10801   # try to guess the endianness by grepping values into an object file
10802   ac_cv_c_bigendian=unknown
10803   cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h.  */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h.  */
10809 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10810 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10811 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10812 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10813 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10814 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10815 int
10816 main ()
10817 {
10818  _ascii (); _ebcdic ();
10819   ;
10820   return 0;
10821 }
10822 _ACEOF
10823 rm -f conftest.$ac_objext
10824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10825   (eval $ac_compile) 2>conftest.er1
10826   ac_status=$?
10827   grep -v '^ *+' conftest.er1 >conftest.err
10828   rm -f conftest.er1
10829   cat conftest.err >&5
10830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831   (exit $ac_status); } &&
10832          { ac_try='test -z "$ac_c_werror_flag"
10833                          || test ! -s conftest.err'
10834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835   (eval $ac_try) 2>&5
10836   ac_status=$?
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); }; } &&
10839          { ac_try='test -s conftest.$ac_objext'
10840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841   (eval $ac_try) 2>&5
10842   ac_status=$?
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); }; }; then
10845   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10846   ac_cv_c_bigendian=yes
10847 fi
10848 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10849   if test "$ac_cv_c_bigendian" = unknown; then
10850     ac_cv_c_bigendian=no
10851   else
10852     # finding both strings is unlikely to happen, but who knows?
10853     ac_cv_c_bigendian=unknown
10854   fi
10855 fi
10856 else
10857   echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10859
10860 fi
10861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10862 else
10863   cat >conftest.$ac_ext <<_ACEOF
10864 /* confdefs.h.  */
10865 _ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h.  */
10869 int
10870 main ()
10871 {
10872   /* Are we little or big endian?  From Harbison&Steele.  */
10873   union
10874   {
10875     long l;
10876     char c[sizeof (long)];
10877   } u;
10878   u.l = 1;
10879   exit (u.c[sizeof (long) - 1] == 1);
10880 }
10881 _ACEOF
10882 rm -f conftest$ac_exeext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10884   (eval $ac_link) 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889   (eval $ac_try) 2>&5
10890   ac_status=$?
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); }; }; then
10893   ac_cv_c_bigendian=no
10894 else
10895   echo "$as_me: program exited with status $ac_status" >&5
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10898
10899 ( exit $ac_status )
10900 ac_cv_c_bigendian=yes
10901 fi
10902 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10903 fi
10904 fi
10905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10906 fi
10907 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10908 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10909 case $ac_cv_c_bigendian in
10910   yes)
10911
10912 cat >>confdefs.h <<\_ACEOF
10913 #define WORDS_BIGENDIAN 1
10914 _ACEOF
10915  ;;
10916   no)
10917      ;;
10918   *)
10919     { { echo "$as_me:$LINENO: error: unknown endianness
10920 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10921 echo "$as_me: error: unknown endianness
10922 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10923    { (exit 1); exit 1; }; } ;;
10924 esac
10925
10926
10927
10928
10929
10930
10931
10932
10933       echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10934 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10935 if test "${ac_cv_have_decl_getenv+set}" = set; then
10936   echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938   cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h.  */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h.  */
10944 $ac_includes_default
10945 int
10946 main ()
10947 {
10948 #ifndef getenv
10949   char *p = (char *) getenv;
10950 #endif
10951
10952   ;
10953   return 0;
10954 }
10955 _ACEOF
10956 rm -f conftest.$ac_objext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10958   (eval $ac_compile) 2>conftest.er1
10959   ac_status=$?
10960   grep -v '^ *+' conftest.er1 >conftest.err
10961   rm -f conftest.er1
10962   cat conftest.err >&5
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); } &&
10965          { ac_try='test -z "$ac_c_werror_flag"
10966                          || test ! -s conftest.err'
10967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968   (eval $ac_try) 2>&5
10969   ac_status=$?
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); }; } &&
10972          { ac_try='test -s conftest.$ac_objext'
10973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974   (eval $ac_try) 2>&5
10975   ac_status=$?
10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); }; }; then
10978   ac_cv_have_decl_getenv=yes
10979 else
10980   echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10982
10983 ac_cv_have_decl_getenv=no
10984 fi
10985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10986 fi
10987 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10988 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10989 if test $ac_cv_have_decl_getenv = yes; then
10990
10991 cat >>confdefs.h <<_ACEOF
10992 #define HAVE_DECL_GETENV 1
10993 _ACEOF
10994
10995
10996 else
10997   cat >>confdefs.h <<_ACEOF
10998 #define HAVE_DECL_GETENV 0
10999 _ACEOF
11000
11001
11002 fi
11003
11004
11005
11006
11007   echo "$as_me:$LINENO: checking for inttypes.h" >&5
11008 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11009 if test "${gl_cv_header_inttypes_h+set}" = set; then
11010   echo $ECHO_N "(cached) $ECHO_C" >&6
11011 else
11012   cat >conftest.$ac_ext <<_ACEOF
11013 /* confdefs.h.  */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h.  */
11018 #include <sys/types.h>
11019 #include <inttypes.h>
11020 int
11021 main ()
11022 {
11023 uintmax_t i = (uintmax_t) -1;
11024   ;
11025   return 0;
11026 }
11027 _ACEOF
11028 rm -f conftest.$ac_objext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030   (eval $ac_compile) 2>conftest.er1
11031   ac_status=$?
11032   grep -v '^ *+' conftest.er1 >conftest.err
11033   rm -f conftest.er1
11034   cat conftest.err >&5
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); } &&
11037          { ac_try='test -z "$ac_c_werror_flag"
11038                          || test ! -s conftest.err'
11039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040   (eval $ac_try) 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); }; } &&
11044          { ac_try='test -s conftest.$ac_objext'
11045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046   (eval $ac_try) 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }; }; then
11050   gl_cv_header_inttypes_h=yes
11051 else
11052   echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 gl_cv_header_inttypes_h=no
11056 fi
11057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11058 fi
11059 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
11060 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
11061   if test $gl_cv_header_inttypes_h = yes; then
11062
11063 cat >>confdefs.h <<_ACEOF
11064 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11065 _ACEOF
11066
11067   fi
11068
11069
11070   echo "$as_me:$LINENO: checking for stdint.h" >&5
11071 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11072 if test "${gl_cv_header_stdint_h+set}" = set; then
11073   echo $ECHO_N "(cached) $ECHO_C" >&6
11074 else
11075   cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h.  */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h.  */
11081 #include <sys/types.h>
11082 #include <stdint.h>
11083 int
11084 main ()
11085 {
11086 uintmax_t i = (uintmax_t) -1;
11087   ;
11088   return 0;
11089 }
11090 _ACEOF
11091 rm -f conftest.$ac_objext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11093   (eval $ac_compile) 2>conftest.er1
11094   ac_status=$?
11095   grep -v '^ *+' conftest.er1 >conftest.err
11096   rm -f conftest.er1
11097   cat conftest.err >&5
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); } &&
11100          { ac_try='test -z "$ac_c_werror_flag"
11101                          || test ! -s conftest.err'
11102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103   (eval $ac_try) 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); }; } &&
11107          { ac_try='test -s conftest.$ac_objext'
11108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109   (eval $ac_try) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); }; }; then
11113   gl_cv_header_stdint_h=yes
11114 else
11115   echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11117
11118 gl_cv_header_stdint_h=no
11119 fi
11120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11121 fi
11122 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
11123 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
11124   if test $gl_cv_header_stdint_h = yes; then
11125
11126 cat >>confdefs.h <<_ACEOF
11127 #define HAVE_STDINT_H_WITH_UINTMAX 1
11128 _ACEOF
11129
11130   fi
11131
11132
11133   echo "$as_me:$LINENO: checking for unsigned long long" >&5
11134 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
11135 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
11136   echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138   cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h.  */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h.  */
11144 unsigned long long ull = 1ULL; int i = 63;
11145 int
11146 main ()
11147 {
11148 unsigned long long ullmax = (unsigned long long) -1;
11149      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
11150   ;
11151   return 0;
11152 }
11153 _ACEOF
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156   (eval $ac_link) 2>conftest.er1
11157   ac_status=$?
11158   grep -v '^ *+' conftest.er1 >conftest.err
11159   rm -f conftest.er1
11160   cat conftest.err >&5
11161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162   (exit $ac_status); } &&
11163          { ac_try='test -z "$ac_c_werror_flag"
11164                          || test ! -s conftest.err'
11165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166   (eval $ac_try) 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; } &&
11170          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11176   ac_cv_type_unsigned_long_long=yes
11177 else
11178   echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11180
11181 ac_cv_type_unsigned_long_long=no
11182 fi
11183 rm -f conftest.err conftest.$ac_objext \
11184       conftest$ac_exeext conftest.$ac_ext
11185 fi
11186 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
11187 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
11188   if test $ac_cv_type_unsigned_long_long = yes; then
11189
11190 cat >>confdefs.h <<\_ACEOF
11191 #define HAVE_UNSIGNED_LONG_LONG 1
11192 _ACEOF
11193
11194   fi
11195
11196
11197
11198
11199   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
11200
11201     test $ac_cv_type_unsigned_long_long = yes \
11202       && ac_type='unsigned long long' \
11203       || ac_type='unsigned long'
11204
11205 cat >>confdefs.h <<_ACEOF
11206 #define uintmax_t $ac_type
11207 _ACEOF
11208
11209   else
11210
11211 cat >>confdefs.h <<\_ACEOF
11212 #define HAVE_UINTMAX_T 1
11213 _ACEOF
11214
11215   fi
11216
11217
11218
11219
11220 for ac_header in stdlib.h sys/time.h unistd.h
11221 do
11222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11224   echo "$as_me:$LINENO: checking for $ac_header" >&5
11225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11227   echo $ECHO_N "(cached) $ECHO_C" >&6
11228 fi
11229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11231 else
11232   # Is the header compilable?
11233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11235 cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h.  */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h.  */
11241 $ac_includes_default
11242 #include <$ac_header>
11243 _ACEOF
11244 rm -f conftest.$ac_objext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11246   (eval $ac_compile) 2>conftest.er1
11247   ac_status=$?
11248   grep -v '^ *+' conftest.er1 >conftest.err
11249   rm -f conftest.er1
11250   cat conftest.err >&5
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); } &&
11253          { ac_try='test -z "$ac_c_werror_flag"
11254                          || test ! -s conftest.err'
11255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256   (eval $ac_try) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); }; } &&
11260          { ac_try='test -s conftest.$ac_objext'
11261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262   (eval $ac_try) 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }; }; then
11266   ac_header_compiler=yes
11267 else
11268   echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271 ac_header_compiler=no
11272 fi
11273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11275 echo "${ECHO_T}$ac_header_compiler" >&6
11276
11277 # Is the header present?
11278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h.  */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h.  */
11286 #include <$ac_header>
11287 _ACEOF
11288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11290   ac_status=$?
11291   grep -v '^ *+' conftest.er1 >conftest.err
11292   rm -f conftest.er1
11293   cat conftest.err >&5
11294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } >/dev/null; then
11296   if test -s conftest.err; then
11297     ac_cpp_err=$ac_c_preproc_warn_flag
11298     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11299   else
11300     ac_cpp_err=
11301   fi
11302 else
11303   ac_cpp_err=yes
11304 fi
11305 if test -z "$ac_cpp_err"; then
11306   ac_header_preproc=yes
11307 else
11308   echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11310
11311   ac_header_preproc=no
11312 fi
11313 rm -f conftest.err conftest.$ac_ext
11314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11315 echo "${ECHO_T}$ac_header_preproc" >&6
11316
11317 # So?  What about this header?
11318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11319   yes:no: )
11320     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11324     ac_header_preproc=yes
11325     ;;
11326   no:yes:* )
11327     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11329     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11330 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11331     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11333     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11334 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11337     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11339     (
11340       cat <<\_ASBOX
11341 ## ------------------------------ ##
11342 ## Report this to bug-cvs@gnu.org ##
11343 ## ------------------------------ ##
11344 _ASBOX
11345     ) |
11346       sed "s/^/$as_me: WARNING:     /" >&2
11347     ;;
11348 esac
11349 echo "$as_me:$LINENO: checking for $ac_header" >&5
11350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11352   echo $ECHO_N "(cached) $ECHO_C" >&6
11353 else
11354   eval "$as_ac_Header=\$ac_header_preproc"
11355 fi
11356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11358
11359 fi
11360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11361   cat >>confdefs.h <<_ACEOF
11362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11363 _ACEOF
11364
11365 fi
11366
11367 done
11368
11369
11370 for ac_func in alarm
11371 do
11372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11373 echo "$as_me:$LINENO: checking for $ac_func" >&5
11374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11375 if eval "test \"\${$as_ac_var+set}\" = set"; then
11376   echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378   cat >conftest.$ac_ext <<_ACEOF
11379 /* confdefs.h.  */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h.  */
11384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11386 #define $ac_func innocuous_$ac_func
11387
11388 /* System header to define __stub macros and hopefully few prototypes,
11389     which can conflict with char $ac_func (); below.
11390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11391     <limits.h> exists even on freestanding compilers.  */
11392
11393 #ifdef __STDC__
11394 # include <limits.h>
11395 #else
11396 # include <assert.h>
11397 #endif
11398
11399 #undef $ac_func
11400
11401 /* Override any gcc2 internal prototype to avoid an error.  */
11402 #ifdef __cplusplus
11403 extern "C"
11404 {
11405 #endif
11406 /* We use char because int might match the return type of a gcc2
11407    builtin and then its argument prototype would still apply.  */
11408 char $ac_func ();
11409 /* The GNU C library defines this for functions which it implements
11410     to always fail with ENOSYS.  Some functions are actually named
11411     something starting with __ and the normal name is an alias.  */
11412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11413 choke me
11414 #else
11415 char (*f) () = $ac_func;
11416 #endif
11417 #ifdef __cplusplus
11418 }
11419 #endif
11420
11421 int
11422 main ()
11423 {
11424 return f != $ac_func;
11425   ;
11426   return 0;
11427 }
11428 _ACEOF
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431   (eval $ac_link) 2>conftest.er1
11432   ac_status=$?
11433   grep -v '^ *+' conftest.er1 >conftest.err
11434   rm -f conftest.er1
11435   cat conftest.err >&5
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } &&
11438          { ac_try='test -z "$ac_c_werror_flag"
11439                          || test ! -s conftest.err'
11440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441   (eval $ac_try) 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); }; } &&
11445          { ac_try='test -s conftest$ac_exeext'
11446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447   (eval $ac_try) 2>&5
11448   ac_status=$?
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); }; }; then
11451   eval "$as_ac_var=yes"
11452 else
11453   echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 eval "$as_ac_var=no"
11457 fi
11458 rm -f conftest.err conftest.$ac_objext \
11459       conftest$ac_exeext conftest.$ac_ext
11460 fi
11461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11463 if test `eval echo '${'$as_ac_var'}'` = yes; then
11464   cat >>confdefs.h <<_ACEOF
11465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11466 _ACEOF
11467
11468 fi
11469 done
11470
11471 echo "$as_me:$LINENO: checking for working mktime" >&5
11472 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11473 if test "${ac_cv_func_working_mktime+set}" = set; then
11474   echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476   if test "$cross_compiling" = yes; then
11477   ac_cv_func_working_mktime=no
11478 else
11479   cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h.  */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h.  */
11485 /* Test program from Paul Eggert and Tony Leneis.  */
11486 #if TIME_WITH_SYS_TIME
11487 # include <sys/time.h>
11488 # include <time.h>
11489 #else
11490 # if HAVE_SYS_TIME_H
11491 #  include <sys/time.h>
11492 # else
11493 #  include <time.h>
11494 # endif
11495 #endif
11496
11497 #if HAVE_STDLIB_H
11498 # include <stdlib.h>
11499 #endif
11500
11501 #if HAVE_UNISTD_H
11502 # include <unistd.h>
11503 #endif
11504
11505 #if !HAVE_ALARM
11506 # define alarm(X) /* empty */
11507 #endif
11508
11509 /* Work around redefinition to rpl_putenv by other config tests.  */
11510 #undef putenv
11511
11512 static time_t time_t_max;
11513 static time_t time_t_min;
11514
11515 /* Values we'll use to set the TZ environment variable.  */
11516 static char *tz_strings[] = {
11517   (char *) 0, "TZ=GMT0", "TZ=JST-9",
11518   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11519 };
11520 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11521
11522 /* Fail if mktime fails to convert a date in the spring-forward gap.
11523    Based on a problem report from Andreas Jaeger.  */
11524 static void
11525 spring_forward_gap ()
11526 {
11527   /* glibc (up to about 1998-10-07) failed this test. */
11528   struct tm tm;
11529
11530   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11531      instead of "TZ=America/Vancouver" in order to detect the bug even
11532      on systems that don't support the Olson extension, or don't have the
11533      full zoneinfo tables installed.  */
11534   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11535
11536   tm.tm_year = 98;
11537   tm.tm_mon = 3;
11538   tm.tm_mday = 5;
11539   tm.tm_hour = 2;
11540   tm.tm_min = 0;
11541   tm.tm_sec = 0;
11542   tm.tm_isdst = -1;
11543   if (mktime (&tm) == (time_t)-1)
11544     exit (1);
11545 }
11546
11547 static void
11548 mktime_test1 (now)
11549      time_t now;
11550 {
11551   struct tm *lt;
11552   if ((lt = localtime (&now)) && mktime (lt) != now)
11553     exit (1);
11554 }
11555
11556 static void
11557 mktime_test (now)
11558      time_t now;
11559 {
11560   mktime_test1 (now);
11561   mktime_test1 ((time_t) (time_t_max - now));
11562   mktime_test1 ((time_t) (time_t_min + now));
11563 }
11564
11565 static void
11566 irix_6_4_bug ()
11567 {
11568   /* Based on code from Ariel Faigon.  */
11569   struct tm tm;
11570   tm.tm_year = 96;
11571   tm.tm_mon = 3;
11572   tm.tm_mday = 0;
11573   tm.tm_hour = 0;
11574   tm.tm_min = 0;
11575   tm.tm_sec = 0;
11576   tm.tm_isdst = -1;
11577   mktime (&tm);
11578   if (tm.tm_mon != 2 || tm.tm_mday != 31)
11579     exit (1);
11580 }
11581
11582 static void
11583 bigtime_test (j)
11584      int j;
11585 {
11586   struct tm tm;
11587   time_t now;
11588   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11589   now = mktime (&tm);
11590   if (now != (time_t) -1)
11591     {
11592       struct tm *lt = localtime (&now);
11593       if (! (lt
11594              && lt->tm_year == tm.tm_year
11595              && lt->tm_mon == tm.tm_mon
11596              && lt->tm_mday == tm.tm_mday
11597              && lt->tm_hour == tm.tm_hour
11598              && lt->tm_min == tm.tm_min
11599              && lt->tm_sec == tm.tm_sec
11600              && lt->tm_yday == tm.tm_yday
11601              && lt->tm_wday == tm.tm_wday
11602              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11603                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11604         exit (1);
11605     }
11606 }
11607
11608 int
11609 main ()
11610 {
11611   time_t t, delta;
11612   int i, j;
11613
11614   /* This test makes some buggy mktime implementations loop.
11615      Give up after 60 seconds; a mktime slower than that
11616      isn't worth using anyway.  */
11617   alarm (60);
11618
11619   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11620     continue;
11621   time_t_max--;
11622   if ((time_t) -1 < 0)
11623     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11624       continue;
11625   delta = time_t_max / 997; /* a suitable prime number */
11626   for (i = 0; i < N_STRINGS; i++)
11627     {
11628       if (tz_strings[i])
11629         putenv (tz_strings[i]);
11630
11631       for (t = 0; t <= time_t_max - delta; t += delta)
11632         mktime_test (t);
11633       mktime_test ((time_t) 1);
11634       mktime_test ((time_t) (60 * 60));
11635       mktime_test ((time_t) (60 * 60 * 24));
11636
11637       for (j = 1; 0 < j; j *= 2)
11638         bigtime_test (j);
11639       bigtime_test (j - 1);
11640     }
11641   irix_6_4_bug ();
11642   spring_forward_gap ();
11643   exit (0);
11644 }
11645 _ACEOF
11646 rm -f conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648   (eval $ac_link) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653   (eval $ac_try) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); }; }; then
11657   ac_cv_func_working_mktime=yes
11658 else
11659   echo "$as_me: program exited with status $ac_status" >&5
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11662
11663 ( exit $ac_status )
11664 ac_cv_func_working_mktime=no
11665 fi
11666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11667 fi
11668 fi
11669 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11670 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11671 if test $ac_cv_func_working_mktime = no; then
11672   case $LIBOBJS in
11673     "mktime.$ac_objext"   | \
11674   *" mktime.$ac_objext"   | \
11675     "mktime.$ac_objext "* | \
11676   *" mktime.$ac_objext "* ) ;;
11677   *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
11678 esac
11679
11680 fi
11681
11682 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
11683 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
11684 if test "${gl_cv_c_restrict+set}" = set; then
11685   echo $ECHO_N "(cached) $ECHO_C" >&6
11686 else
11687   gl_cv_c_restrict=no
11688    # Try the official restrict keyword, then gcc's __restrict, and
11689    # the less common variants.
11690    for ac_kw in restrict __restrict __restrict__ _Restrict; do
11691      cat >conftest.$ac_ext <<_ACEOF
11692 /* confdefs.h.  */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h.  */
11697 float * $ac_kw x;
11698 _ACEOF
11699 rm -f conftest.$ac_objext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11701   (eval $ac_compile) 2>conftest.er1
11702   ac_status=$?
11703   grep -v '^ *+' conftest.er1 >conftest.err
11704   rm -f conftest.er1
11705   cat conftest.err >&5
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); } &&
11708          { ac_try='test -z "$ac_c_werror_flag"
11709                          || test ! -s conftest.err'
11710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711   (eval $ac_try) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; } &&
11715          { ac_try='test -s conftest.$ac_objext'
11716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717   (eval $ac_try) 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); }; }; then
11721   gl_cv_c_restrict=$ac_kw; break
11722 else
11723   echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726 fi
11727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11728    done
11729
11730 fi
11731 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
11732 echo "${ECHO_T}$gl_cv_c_restrict" >&6
11733  case $gl_cv_c_restrict in
11734    restrict) ;;
11735    no)
11736 cat >>confdefs.h <<\_ACEOF
11737 #define restrict
11738 _ACEOF
11739  ;;
11740    *)  cat >>confdefs.h <<_ACEOF
11741 #define restrict $gl_cv_c_restrict
11742 _ACEOF
11743  ;;
11744  esac
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765   echo "$as_me:$LINENO: checking for inttypes.h" >&5
11766 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
11767 if test "${gt_cv_header_inttypes_h+set}" = set; then
11768   echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770
11771     cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h.  */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h.  */
11777 #include <sys/types.h>
11778 #include <inttypes.h>
11779 int
11780 main ()
11781 {
11782
11783   ;
11784   return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest.$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789   (eval $ac_compile) 2>conftest.er1
11790   ac_status=$?
11791   grep -v '^ *+' conftest.er1 >conftest.err
11792   rm -f conftest.er1
11793   cat conftest.err >&5
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -z "$ac_c_werror_flag"
11797                          || test ! -s conftest.err'
11798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799   (eval $ac_try) 2>&5
11800   ac_status=$?
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); }; } &&
11803          { ac_try='test -s conftest.$ac_objext'
11804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805   (eval $ac_try) 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }; }; then
11809   gt_cv_header_inttypes_h=yes
11810 else
11811   echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 gt_cv_header_inttypes_h=no
11815 fi
11816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11817
11818 fi
11819 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
11820 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
11821   if test $gt_cv_header_inttypes_h = yes; then
11822
11823 cat >>confdefs.h <<_ACEOF
11824 #define HAVE_INTTYPES_H 1
11825 _ACEOF
11826
11827   fi
11828
11829
11830 for ac_func in strftime
11831 do
11832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11833 echo "$as_me:$LINENO: checking for $ac_func" >&5
11834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11835 if eval "test \"\${$as_ac_var+set}\" = set"; then
11836   echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838   cat >conftest.$ac_ext <<_ACEOF
11839 /* confdefs.h.  */
11840 _ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h.  */
11844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11846 #define $ac_func innocuous_$ac_func
11847
11848 /* System header to define __stub macros and hopefully few prototypes,
11849     which can conflict with char $ac_func (); below.
11850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11851     <limits.h> exists even on freestanding compilers.  */
11852
11853 #ifdef __STDC__
11854 # include <limits.h>
11855 #else
11856 # include <assert.h>
11857 #endif
11858
11859 #undef $ac_func
11860
11861 /* Override any gcc2 internal prototype to avoid an error.  */
11862 #ifdef __cplusplus
11863 extern "C"
11864 {
11865 #endif
11866 /* We use char because int might match the return type of a gcc2
11867    builtin and then its argument prototype would still apply.  */
11868 char $ac_func ();
11869 /* The GNU C library defines this for functions which it implements
11870     to always fail with ENOSYS.  Some functions are actually named
11871     something starting with __ and the normal name is an alias.  */
11872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11873 choke me
11874 #else
11875 char (*f) () = $ac_func;
11876 #endif
11877 #ifdef __cplusplus
11878 }
11879 #endif
11880
11881 int
11882 main ()
11883 {
11884 return f != $ac_func;
11885   ;
11886   return 0;
11887 }
11888 _ACEOF
11889 rm -f conftest.$ac_objext conftest$ac_exeext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11891   (eval $ac_link) 2>conftest.er1
11892   ac_status=$?
11893   grep -v '^ *+' conftest.er1 >conftest.err
11894   rm -f conftest.er1
11895   cat conftest.err >&5
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); } &&
11898          { ac_try='test -z "$ac_c_werror_flag"
11899                          || test ! -s conftest.err'
11900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901   (eval $ac_try) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; } &&
11905          { ac_try='test -s conftest$ac_exeext'
11906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907   (eval $ac_try) 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); }; }; then
11911   eval "$as_ac_var=yes"
11912 else
11913   echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 eval "$as_ac_var=no"
11917 fi
11918 rm -f conftest.err conftest.$ac_objext \
11919       conftest$ac_exeext conftest.$ac_ext
11920 fi
11921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11923 if test `eval echo '${'$as_ac_var'}'` = yes; then
11924   cat >>confdefs.h <<_ACEOF
11925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11926 _ACEOF
11927
11928 else
11929   # strftime is in -lintl on SCO UNIX.
11930 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11931 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
11932 if test "${ac_cv_lib_intl_strftime+set}" = set; then
11933   echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935   ac_check_lib_save_LIBS=$LIBS
11936 LIBS="-lintl  $LIBS"
11937 cat >conftest.$ac_ext <<_ACEOF
11938 /* confdefs.h.  */
11939 _ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h.  */
11943
11944 /* Override any gcc2 internal prototype to avoid an error.  */
11945 #ifdef __cplusplus
11946 extern "C"
11947 #endif
11948 /* We use char because int might match the return type of a gcc2
11949    builtin and then its argument prototype would still apply.  */
11950 char strftime ();
11951 int
11952 main ()
11953 {
11954 strftime ();
11955   ;
11956   return 0;
11957 }
11958 _ACEOF
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11961   (eval $ac_link) 2>conftest.er1
11962   ac_status=$?
11963   grep -v '^ *+' conftest.er1 >conftest.err
11964   rm -f conftest.er1
11965   cat conftest.err >&5
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } &&
11968          { ac_try='test -z "$ac_c_werror_flag"
11969                          || test ! -s conftest.err'
11970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971   (eval $ac_try) 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; } &&
11975          { ac_try='test -s conftest$ac_exeext'
11976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977   (eval $ac_try) 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); }; }; then
11981   ac_cv_lib_intl_strftime=yes
11982 else
11983   echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11985
11986 ac_cv_lib_intl_strftime=no
11987 fi
11988 rm -f conftest.err conftest.$ac_objext \
11989       conftest$ac_exeext conftest.$ac_ext
11990 LIBS=$ac_check_lib_save_LIBS
11991 fi
11992 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11993 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
11994 if test $ac_cv_lib_intl_strftime = yes; then
11995   cat >>confdefs.h <<\_ACEOF
11996 #define HAVE_STRFTIME 1
11997 _ACEOF
11998
11999 LIBS="-lintl $LIBS"
12000 fi
12001
12002 fi
12003 done
12004
12005
12006
12007   echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
12008 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
12009 if test "${gl_cv_func_tzset_clobber+set}" = set; then
12010   echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else
12012
12013   if test "$cross_compiling" = yes; then
12014   gl_cv_func_tzset_clobber=yes
12015 else
12016   cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h.  */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h.  */
12022
12023 #if TIME_WITH_SYS_TIME
12024 # include <sys/time.h>
12025 # include <time.h>
12026 #else
12027 # if HAVE_SYS_TIME_H
12028 #  include <sys/time.h>
12029 # else
12030 #  include <time.h>
12031 # endif
12032 #endif
12033 #include <stdlib.h>
12034
12035 int
12036 main ()
12037 {
12038   time_t t1 = 853958121;
12039   struct tm *p, s;
12040   putenv ("TZ=GMT0");
12041   p = localtime (&t1);
12042   s = *p;
12043   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
12044   tzset ();
12045   exit (p->tm_year != s.tm_year
12046         || p->tm_mon != s.tm_mon
12047         || p->tm_mday != s.tm_mday
12048         || p->tm_hour != s.tm_hour
12049         || p->tm_min != s.tm_min
12050         || p->tm_sec != s.tm_sec);
12051 }
12052
12053 _ACEOF
12054 rm -f conftest$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056   (eval $ac_link) 2>&5
12057   ac_status=$?
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061   (eval $ac_try) 2>&5
12062   ac_status=$?
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); }; }; then
12065   gl_cv_func_tzset_clobber=no
12066 else
12067   echo "$as_me: program exited with status $ac_status" >&5
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 ( exit $ac_status )
12072 gl_cv_func_tzset_clobber=yes
12073 fi
12074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12075 fi
12076 fi
12077 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
12078 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
12079
12080
12081 cat >>confdefs.h <<\_ACEOF
12082 #define HAVE_RUN_TZSET_TEST 1
12083 _ACEOF
12084
12085
12086   if test $gl_cv_func_tzset_clobber = yes; then
12087
12088   case $LIBOBJS in
12089     "gettimeofday.$ac_objext"   | \
12090   *" gettimeofday.$ac_objext"   | \
12091     "gettimeofday.$ac_objext "* | \
12092   *" gettimeofday.$ac_objext "* ) ;;
12093   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
12094 esac
12095
12096
12097 cat >>confdefs.h <<\_ACEOF
12098 #define gmtime rpl_gmtime
12099 _ACEOF
12100
12101
12102 cat >>confdefs.h <<\_ACEOF
12103 #define localtime rpl_localtime
12104 _ACEOF
12105
12106
12107
12108
12109 cat >>confdefs.h <<\_ACEOF
12110 #define tzset rpl_tzset
12111 _ACEOF
12112
12113
12114 cat >>confdefs.h <<\_ACEOF
12115 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
12116 _ACEOF
12117
12118   fi
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139  # strftime.c uses the underyling system strftime if it exists.
12140
12141
12142  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
12143
12144
12145
12146
12147
12148
12149
12150
12151   :
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167   :
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178 cat >>confdefs.h <<\_ACEOF
12179 #define my_strftime nstrftime
12180 _ACEOF
12181
12182
12183
12184       echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
12185 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
12186 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
12187   echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189   cat >conftest.$ac_ext <<_ACEOF
12190 /* confdefs.h.  */
12191 _ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h.  */
12195 $ac_includes_default
12196 int
12197 main ()
12198 {
12199 #ifndef clearerr_unlocked
12200   char *p = (char *) clearerr_unlocked;
12201 #endif
12202
12203   ;
12204   return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12209   (eval $ac_compile) 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } &&
12216          { ac_try='test -z "$ac_c_werror_flag"
12217                          || test ! -s conftest.err'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; } &&
12223          { ac_try='test -s conftest.$ac_objext'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229   ac_cv_have_decl_clearerr_unlocked=yes
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 ac_cv_have_decl_clearerr_unlocked=no
12235 fi
12236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12237 fi
12238 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
12239 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
12240 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
12241
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_DECL_CLEARERR_UNLOCKED 1
12244 _ACEOF
12245
12246
12247 else
12248   cat >>confdefs.h <<_ACEOF
12249 #define HAVE_DECL_CLEARERR_UNLOCKED 0
12250 _ACEOF
12251
12252
12253 fi
12254
12255
12256
12257
12258       echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12259 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
12260 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12261   echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263   cat >conftest.$ac_ext <<_ACEOF
12264 /* confdefs.h.  */
12265 _ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h.  */
12269 $ac_includes_default
12270 int
12271 main ()
12272 {
12273 #ifndef feof_unlocked
12274   char *p = (char *) feof_unlocked;
12275 #endif
12276
12277   ;
12278   return 0;
12279 }
12280 _ACEOF
12281 rm -f conftest.$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283   (eval $ac_compile) 2>conftest.er1
12284   ac_status=$?
12285   grep -v '^ *+' conftest.er1 >conftest.err
12286   rm -f conftest.er1
12287   cat conftest.err >&5
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); } &&
12290          { ac_try='test -z "$ac_c_werror_flag"
12291                          || test ! -s conftest.err'
12292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293   (eval $ac_try) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; } &&
12297          { ac_try='test -s conftest.$ac_objext'
12298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299   (eval $ac_try) 2>&5
12300   ac_status=$?
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); }; }; then
12303   ac_cv_have_decl_feof_unlocked=yes
12304 else
12305   echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12307
12308 ac_cv_have_decl_feof_unlocked=no
12309 fi
12310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12311 fi
12312 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12313 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
12314 if test $ac_cv_have_decl_feof_unlocked = yes; then
12315
12316 cat >>confdefs.h <<_ACEOF
12317 #define HAVE_DECL_FEOF_UNLOCKED 1
12318 _ACEOF
12319
12320
12321 else
12322   cat >>confdefs.h <<_ACEOF
12323 #define HAVE_DECL_FEOF_UNLOCKED 0
12324 _ACEOF
12325
12326
12327 fi
12328
12329
12330
12331
12332       echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
12333 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
12334 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
12335   echo $ECHO_N "(cached) $ECHO_C" >&6
12336 else
12337   cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h.  */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h.  */
12343 $ac_includes_default
12344 int
12345 main ()
12346 {
12347 #ifndef ferror_unlocked
12348   char *p = (char *) ferror_unlocked;
12349 #endif
12350
12351   ;
12352   return 0;
12353 }
12354 _ACEOF
12355 rm -f conftest.$ac_objext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12357   (eval $ac_compile) 2>conftest.er1
12358   ac_status=$?
12359   grep -v '^ *+' conftest.er1 >conftest.err
12360   rm -f conftest.er1
12361   cat conftest.err >&5
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); } &&
12364          { ac_try='test -z "$ac_c_werror_flag"
12365                          || test ! -s conftest.err'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; } &&
12371          { ac_try='test -s conftest.$ac_objext'
12372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373   (eval $ac_try) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; }; then
12377   ac_cv_have_decl_ferror_unlocked=yes
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382 ac_cv_have_decl_ferror_unlocked=no
12383 fi
12384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12385 fi
12386 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
12387 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
12388 if test $ac_cv_have_decl_ferror_unlocked = yes; then
12389
12390 cat >>confdefs.h <<_ACEOF
12391 #define HAVE_DECL_FERROR_UNLOCKED 1
12392 _ACEOF
12393
12394
12395 else
12396   cat >>confdefs.h <<_ACEOF
12397 #define HAVE_DECL_FERROR_UNLOCKED 0
12398 _ACEOF
12399
12400
12401 fi
12402
12403
12404
12405
12406       echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12407 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
12408 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12409   echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411   cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417 $ac_includes_default
12418 int
12419 main ()
12420 {
12421 #ifndef fgets_unlocked
12422   char *p = (char *) fgets_unlocked;
12423 #endif
12424
12425   ;
12426   return 0;
12427 }
12428 _ACEOF
12429 rm -f conftest.$ac_objext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12431   (eval $ac_compile) 2>conftest.er1
12432   ac_status=$?
12433   grep -v '^ *+' conftest.er1 >conftest.err
12434   rm -f conftest.er1
12435   cat conftest.err >&5
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); } &&
12438          { ac_try='test -z "$ac_c_werror_flag"
12439                          || test ! -s conftest.err'
12440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441   (eval $ac_try) 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; } &&
12445          { ac_try='test -s conftest.$ac_objext'
12446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447   (eval $ac_try) 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); }; }; then
12451   ac_cv_have_decl_fgets_unlocked=yes
12452 else
12453   echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 ac_cv_have_decl_fgets_unlocked=no
12457 fi
12458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12459 fi
12460 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12461 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
12462 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12463
12464 cat >>confdefs.h <<_ACEOF
12465 #define HAVE_DECL_FGETS_UNLOCKED 1
12466 _ACEOF
12467
12468
12469 else
12470   cat >>confdefs.h <<_ACEOF
12471 #define HAVE_DECL_FGETS_UNLOCKED 0
12472 _ACEOF
12473
12474
12475 fi
12476
12477
12478
12479
12480       echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
12481 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
12482 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
12483   echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485   cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h.  */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h.  */
12491 $ac_includes_default
12492 int
12493 main ()
12494 {
12495 #ifndef fputc_unlocked
12496   char *p = (char *) fputc_unlocked;
12497 #endif
12498
12499   ;
12500   return 0;
12501 }
12502 _ACEOF
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505   (eval $ac_compile) 2>conftest.er1
12506   ac_status=$?
12507   grep -v '^ *+' conftest.er1 >conftest.err
12508   rm -f conftest.er1
12509   cat conftest.err >&5
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); } &&
12512          { ac_try='test -z "$ac_c_werror_flag"
12513                          || test ! -s conftest.err'
12514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515   (eval $ac_try) 2>&5
12516   ac_status=$?
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); }; } &&
12519          { ac_try='test -s conftest.$ac_objext'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; }; then
12525   ac_cv_have_decl_fputc_unlocked=yes
12526 else
12527   echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12529
12530 ac_cv_have_decl_fputc_unlocked=no
12531 fi
12532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12533 fi
12534 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
12535 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
12536 if test $ac_cv_have_decl_fputc_unlocked = yes; then
12537
12538 cat >>confdefs.h <<_ACEOF
12539 #define HAVE_DECL_FPUTC_UNLOCKED 1
12540 _ACEOF
12541
12542
12543 else
12544   cat >>confdefs.h <<_ACEOF
12545 #define HAVE_DECL_FPUTC_UNLOCKED 0
12546 _ACEOF
12547
12548
12549 fi
12550
12551
12552
12553
12554       echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
12555 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
12556 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
12557   echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559   cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h.  */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h.  */
12565 $ac_includes_default
12566 int
12567 main ()
12568 {
12569 #ifndef fread_unlocked
12570   char *p = (char *) fread_unlocked;
12571 #endif
12572
12573   ;
12574   return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12579   (eval $ac_compile) 2>conftest.er1
12580   ac_status=$?
12581   grep -v '^ *+' conftest.er1 >conftest.err
12582   rm -f conftest.er1
12583   cat conftest.err >&5
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); } &&
12586          { ac_try='test -z "$ac_c_werror_flag"
12587                          || test ! -s conftest.err'
12588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589   (eval $ac_try) 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; } &&
12593          { ac_try='test -s conftest.$ac_objext'
12594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595   (eval $ac_try) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; }; then
12599   ac_cv_have_decl_fread_unlocked=yes
12600 else
12601   echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12603
12604 ac_cv_have_decl_fread_unlocked=no
12605 fi
12606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12607 fi
12608 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
12609 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
12610 if test $ac_cv_have_decl_fread_unlocked = yes; then
12611
12612 cat >>confdefs.h <<_ACEOF
12613 #define HAVE_DECL_FREAD_UNLOCKED 1
12614 _ACEOF
12615
12616
12617 else
12618   cat >>confdefs.h <<_ACEOF
12619 #define HAVE_DECL_FREAD_UNLOCKED 0
12620 _ACEOF
12621
12622
12623 fi
12624
12625
12626
12627
12628       echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
12629 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
12630 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
12631   echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633   cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h.  */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h.  */
12639 $ac_includes_default
12640 int
12641 main ()
12642 {
12643 #ifndef fwrite_unlocked
12644   char *p = (char *) fwrite_unlocked;
12645 #endif
12646
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 rm -f conftest.$ac_objext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653   (eval $ac_compile) 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } &&
12660          { ac_try='test -z "$ac_c_werror_flag"
12661                          || test ! -s conftest.err'
12662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663   (eval $ac_try) 2>&5
12664   ac_status=$?
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); }; } &&
12667          { ac_try='test -s conftest.$ac_objext'
12668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669   (eval $ac_try) 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); }; }; then
12673   ac_cv_have_decl_fwrite_unlocked=yes
12674 else
12675   echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12677
12678 ac_cv_have_decl_fwrite_unlocked=no
12679 fi
12680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12681 fi
12682 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
12683 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
12684 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
12685
12686 cat >>confdefs.h <<_ACEOF
12687 #define HAVE_DECL_FWRITE_UNLOCKED 1
12688 _ACEOF
12689
12690
12691 else
12692   cat >>confdefs.h <<_ACEOF
12693 #define HAVE_DECL_FWRITE_UNLOCKED 0
12694 _ACEOF
12695
12696
12697 fi
12698
12699
12700
12701
12702       echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12703 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
12704 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12705   echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707   cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h.  */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h.  */
12713 $ac_includes_default
12714 int
12715 main ()
12716 {
12717 #ifndef getc_unlocked
12718   char *p = (char *) getc_unlocked;
12719 #endif
12720
12721   ;
12722   return 0;
12723 }
12724 _ACEOF
12725 rm -f conftest.$ac_objext
12726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12727   (eval $ac_compile) 2>conftest.er1
12728   ac_status=$?
12729   grep -v '^ *+' conftest.er1 >conftest.err
12730   rm -f conftest.er1
12731   cat conftest.err >&5
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); } &&
12734          { ac_try='test -z "$ac_c_werror_flag"
12735                          || test ! -s conftest.err'
12736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737   (eval $ac_try) 2>&5
12738   ac_status=$?
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); }; } &&
12741          { ac_try='test -s conftest.$ac_objext'
12742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743   (eval $ac_try) 2>&5
12744   ac_status=$?
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); }; }; then
12747   ac_cv_have_decl_getc_unlocked=yes
12748 else
12749   echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12751
12752 ac_cv_have_decl_getc_unlocked=no
12753 fi
12754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12755 fi
12756 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12757 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
12758 if test $ac_cv_have_decl_getc_unlocked = yes; then
12759
12760 cat >>confdefs.h <<_ACEOF
12761 #define HAVE_DECL_GETC_UNLOCKED 1
12762 _ACEOF
12763
12764
12765 else
12766   cat >>confdefs.h <<_ACEOF
12767 #define HAVE_DECL_GETC_UNLOCKED 0
12768 _ACEOF
12769
12770
12771 fi
12772
12773
12774
12775
12776       echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
12777 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
12778 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
12779   echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781   cat >conftest.$ac_ext <<_ACEOF
12782 /* confdefs.h.  */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h.  */
12787 $ac_includes_default
12788 int
12789 main ()
12790 {
12791 #ifndef getchar_unlocked
12792   char *p = (char *) getchar_unlocked;
12793 #endif
12794
12795   ;
12796   return 0;
12797 }
12798 _ACEOF
12799 rm -f conftest.$ac_objext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801   (eval $ac_compile) 2>conftest.er1
12802   ac_status=$?
12803   grep -v '^ *+' conftest.er1 >conftest.err
12804   rm -f conftest.er1
12805   cat conftest.err >&5
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); } &&
12808          { ac_try='test -z "$ac_c_werror_flag"
12809                          || test ! -s conftest.err'
12810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811   (eval $ac_try) 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; } &&
12815          { ac_try='test -s conftest.$ac_objext'
12816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817   (eval $ac_try) 2>&5
12818   ac_status=$?
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); }; }; then
12821   ac_cv_have_decl_getchar_unlocked=yes
12822 else
12823   echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12825
12826 ac_cv_have_decl_getchar_unlocked=no
12827 fi
12828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12829 fi
12830 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
12831 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
12832 if test $ac_cv_have_decl_getchar_unlocked = yes; then
12833
12834 cat >>confdefs.h <<_ACEOF
12835 #define HAVE_DECL_GETCHAR_UNLOCKED 1
12836 _ACEOF
12837
12838
12839 else
12840   cat >>confdefs.h <<_ACEOF
12841 #define HAVE_DECL_GETCHAR_UNLOCKED 0
12842 _ACEOF
12843
12844
12845 fi
12846
12847
12848
12849
12850       echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
12851 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
12852 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
12853   echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855   cat >conftest.$ac_ext <<_ACEOF
12856 /* confdefs.h.  */
12857 _ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h.  */
12861 $ac_includes_default
12862 int
12863 main ()
12864 {
12865 #ifndef putchar_unlocked
12866   char *p = (char *) putchar_unlocked;
12867 #endif
12868
12869   ;
12870   return 0;
12871 }
12872 _ACEOF
12873 rm -f conftest.$ac_objext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12875   (eval $ac_compile) 2>conftest.er1
12876   ac_status=$?
12877   grep -v '^ *+' conftest.er1 >conftest.err
12878   rm -f conftest.er1
12879   cat conftest.err >&5
12880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881   (exit $ac_status); } &&
12882          { ac_try='test -z "$ac_c_werror_flag"
12883                          || test ! -s conftest.err'
12884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885   (eval $ac_try) 2>&5
12886   ac_status=$?
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); }; } &&
12889          { ac_try='test -s conftest.$ac_objext'
12890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891   (eval $ac_try) 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); }; }; then
12895   ac_cv_have_decl_putchar_unlocked=yes
12896 else
12897   echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12899
12900 ac_cv_have_decl_putchar_unlocked=no
12901 fi
12902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12903 fi
12904 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
12905 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
12906 if test $ac_cv_have_decl_putchar_unlocked = yes; then
12907
12908 cat >>confdefs.h <<_ACEOF
12909 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
12910 _ACEOF
12911
12912
12913 else
12914   cat >>confdefs.h <<_ACEOF
12915 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
12916 _ACEOF
12917
12918
12919 fi
12920
12921
12922
12923
12924
12925   echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
12926 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6
12927 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
12928   echo $ECHO_N "(cached) $ECHO_C" >&6
12929 else
12930
12931     cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h.  */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h.  */
12937
12938 #include <errno.h>
12939 #ifdef EOVERFLOW
12940 yes
12941 #endif
12942
12943 _ACEOF
12944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12945   $EGREP "yes" >/dev/null 2>&1; then
12946   have_eoverflow=1
12947 fi
12948 rm -f conftest*
12949
12950     if test -n "$have_eoverflow"; then
12951             ac_cv_decl_EOVERFLOW=yes
12952     else
12953       cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h.  */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h.  */
12959
12960 #define _XOPEN_SOURCE_EXTENDED 1
12961 #include <errno.h>
12962 #ifdef EOVERFLOW
12963 yes
12964 #endif
12965
12966 _ACEOF
12967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12968   $EGREP "yes" >/dev/null 2>&1; then
12969   have_eoverflow=1
12970 fi
12971 rm -f conftest*
12972
12973       if test -n "$have_eoverflow"; then
12974                         if test "$cross_compiling" = yes; then
12975   # Depending upon the size, compute the lo and hi bounds.
12976 cat >conftest.$ac_ext <<_ACEOF
12977 /* confdefs.h.  */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h.  */
12982
12983 #define _XOPEN_SOURCE_EXTENDED 1
12984 #include <errno.h>
12985 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12986 #include <stdio.h>
12987 #include <stdlib.h>
12988
12989 int
12990 main ()
12991 {
12992 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
12993 test_array [0] = 0
12994
12995   ;
12996   return 0;
12997 }
12998 _ACEOF
12999 rm -f conftest.$ac_objext
13000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13001   (eval $ac_compile) 2>conftest.er1
13002   ac_status=$?
13003   grep -v '^ *+' conftest.er1 >conftest.err
13004   rm -f conftest.er1
13005   cat conftest.err >&5
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); } &&
13008          { ac_try='test -z "$ac_c_werror_flag"
13009                          || test ! -s conftest.err'
13010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011   (eval $ac_try) 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); }; } &&
13015          { ac_try='test -s conftest.$ac_objext'
13016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017   (eval $ac_try) 2>&5
13018   ac_status=$?
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); }; }; then
13021   ac_lo=0 ac_mid=0
13022   while :; do
13023     cat >conftest.$ac_ext <<_ACEOF
13024 /* confdefs.h.  */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h.  */
13029
13030 #define _XOPEN_SOURCE_EXTENDED 1
13031 #include <errno.h>
13032 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13033 #include <stdio.h>
13034 #include <stdlib.h>
13035
13036 int
13037 main ()
13038 {
13039 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13040 test_array [0] = 0
13041
13042   ;
13043   return 0;
13044 }
13045 _ACEOF
13046 rm -f conftest.$ac_objext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048   (eval $ac_compile) 2>conftest.er1
13049   ac_status=$?
13050   grep -v '^ *+' conftest.er1 >conftest.err
13051   rm -f conftest.er1
13052   cat conftest.err >&5
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); } &&
13055          { ac_try='test -z "$ac_c_werror_flag"
13056                          || test ! -s conftest.err'
13057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058   (eval $ac_try) 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); }; } &&
13062          { ac_try='test -s conftest.$ac_objext'
13063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064   (eval $ac_try) 2>&5
13065   ac_status=$?
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); }; }; then
13068   ac_hi=$ac_mid; break
13069 else
13070   echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13072
13073 ac_lo=`expr $ac_mid + 1`
13074                     if test $ac_lo -le $ac_mid; then
13075                       ac_lo= ac_hi=
13076                       break
13077                     fi
13078                     ac_mid=`expr 2 '*' $ac_mid + 1`
13079 fi
13080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13081   done
13082 else
13083   echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13085
13086 cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h.  */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h.  */
13092
13093 #define _XOPEN_SOURCE_EXTENDED 1
13094 #include <errno.h>
13095 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13096 #include <stdio.h>
13097 #include <stdlib.h>
13098
13099 int
13100 main ()
13101 {
13102 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
13103 test_array [0] = 0
13104
13105   ;
13106   return 0;
13107 }
13108 _ACEOF
13109 rm -f conftest.$ac_objext
13110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13111   (eval $ac_compile) 2>conftest.er1
13112   ac_status=$?
13113   grep -v '^ *+' conftest.er1 >conftest.err
13114   rm -f conftest.er1
13115   cat conftest.err >&5
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); } &&
13118          { ac_try='test -z "$ac_c_werror_flag"
13119                          || test ! -s conftest.err'
13120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121   (eval $ac_try) 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); }; } &&
13125          { ac_try='test -s conftest.$ac_objext'
13126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127   (eval $ac_try) 2>&5
13128   ac_status=$?
13129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); }; }; then
13131   ac_hi=-1 ac_mid=-1
13132   while :; do
13133     cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h.  */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h.  */
13139
13140 #define _XOPEN_SOURCE_EXTENDED 1
13141 #include <errno.h>
13142 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13143 #include <stdio.h>
13144 #include <stdlib.h>
13145
13146 int
13147 main ()
13148 {
13149 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
13150 test_array [0] = 0
13151
13152   ;
13153   return 0;
13154 }
13155 _ACEOF
13156 rm -f conftest.$ac_objext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158   (eval $ac_compile) 2>conftest.er1
13159   ac_status=$?
13160   grep -v '^ *+' conftest.er1 >conftest.err
13161   rm -f conftest.er1
13162   cat conftest.err >&5
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); } &&
13165          { ac_try='test -z "$ac_c_werror_flag"
13166                          || test ! -s conftest.err'
13167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168   (eval $ac_try) 2>&5
13169   ac_status=$?
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); }; } &&
13172          { ac_try='test -s conftest.$ac_objext'
13173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174   (eval $ac_try) 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); }; }; then
13178   ac_lo=$ac_mid; break
13179 else
13180   echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13182
13183 ac_hi=`expr '(' $ac_mid ')' - 1`
13184                        if test $ac_mid -le $ac_hi; then
13185                          ac_lo= ac_hi=
13186                          break
13187                        fi
13188                        ac_mid=`expr 2 '*' $ac_mid`
13189 fi
13190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13191   done
13192 else
13193   echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196 ac_lo= ac_hi=
13197 fi
13198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13199 fi
13200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13201 # Binary search between lo and hi bounds.
13202 while test "x$ac_lo" != "x$ac_hi"; do
13203   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13204   cat >conftest.$ac_ext <<_ACEOF
13205 /* confdefs.h.  */
13206 _ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h.  */
13210
13211 #define _XOPEN_SOURCE_EXTENDED 1
13212 #include <errno.h>
13213 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13214 #include <stdio.h>
13215 #include <stdlib.h>
13216
13217 int
13218 main ()
13219 {
13220 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13221 test_array [0] = 0
13222
13223   ;
13224   return 0;
13225 }
13226 _ACEOF
13227 rm -f conftest.$ac_objext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13229   (eval $ac_compile) 2>conftest.er1
13230   ac_status=$?
13231   grep -v '^ *+' conftest.er1 >conftest.err
13232   rm -f conftest.er1
13233   cat conftest.err >&5
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); } &&
13236          { ac_try='test -z "$ac_c_werror_flag"
13237                          || test ! -s conftest.err'
13238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239   (eval $ac_try) 2>&5
13240   ac_status=$?
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); }; } &&
13243          { ac_try='test -s conftest.$ac_objext'
13244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245   (eval $ac_try) 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; }; then
13249   ac_hi=$ac_mid
13250 else
13251   echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 ac_lo=`expr '(' $ac_mid ')' + 1`
13255 fi
13256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13257 done
13258 case $ac_lo in
13259 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
13260 '')  ;;
13261 esac
13262 else
13263   if test "$cross_compiling" = yes; then
13264   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13265 See \`config.log' for more details." >&5
13266 echo "$as_me: error: cannot run test program while cross compiling
13267 See \`config.log' for more details." >&2;}
13268    { (exit 1); exit 1; }; }
13269 else
13270   cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13276
13277 #define _XOPEN_SOURCE_EXTENDED 1
13278 #include <errno.h>
13279 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13280 #include <stdio.h>
13281 #include <stdlib.h>
13282
13283 long longval () { return EOVERFLOW; }
13284 unsigned long ulongval () { return EOVERFLOW; }
13285 #include <stdio.h>
13286 #include <stdlib.h>
13287 int
13288 main ()
13289 {
13290
13291   FILE *f = fopen ("conftest.val", "w");
13292   if (! f)
13293     exit (1);
13294   if ((EOVERFLOW) < 0)
13295     {
13296       long i = longval ();
13297       if (i != (EOVERFLOW))
13298         exit (1);
13299       fprintf (f, "%ld\n", i);
13300     }
13301   else
13302     {
13303       unsigned long i = ulongval ();
13304       if (i != (EOVERFLOW))
13305         exit (1);
13306       fprintf (f, "%lu\n", i);
13307     }
13308   exit (ferror (f) || fclose (f) != 0);
13309
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 rm -f conftest$ac_exeext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13316   (eval $ac_link) 2>&5
13317   ac_status=$?
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321   (eval $ac_try) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; }; then
13325   ac_cv_decl_EOVERFLOW=`cat conftest.val`
13326 else
13327   echo "$as_me: program exited with status $ac_status" >&5
13328 echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13330
13331 fi
13332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13333 fi
13334 fi
13335 rm -f conftest.val
13336       else
13337                                 ac_cv_decl_EOVERFLOW=E2BIG
13338       fi
13339     fi
13340
13341 fi
13342 echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
13343 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6
13344   if test "$ac_cv_decl_EOVERFLOW" != yes; then
13345
13346 cat >>confdefs.h <<_ACEOF
13347 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
13348 _ACEOF
13349
13350     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
13351
13352   fi
13353
13354
13355   echo "$as_me:$LINENO: checking for signed" >&5
13356 echo $ECHO_N "checking for signed... $ECHO_C" >&6
13357 if test "${bh_cv_c_signed+set}" = set; then
13358   echo $ECHO_N "(cached) $ECHO_C" >&6
13359 else
13360   cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h.  */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h.  */
13366
13367 int
13368 main ()
13369 {
13370 signed char x;
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 rm -f conftest.$ac_objext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13377   (eval $ac_compile) 2>conftest.er1
13378   ac_status=$?
13379   grep -v '^ *+' conftest.er1 >conftest.err
13380   rm -f conftest.er1
13381   cat conftest.err >&5
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); } &&
13384          { ac_try='test -z "$ac_c_werror_flag"
13385                          || test ! -s conftest.err'
13386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387   (eval $ac_try) 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); }; } &&
13391          { ac_try='test -s conftest.$ac_objext'
13392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393   (eval $ac_try) 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; }; then
13397   bh_cv_c_signed=yes
13398 else
13399   echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13401
13402 bh_cv_c_signed=no
13403 fi
13404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13405 fi
13406 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
13407 echo "${ECHO_T}$bh_cv_c_signed" >&6
13408   if test $bh_cv_c_signed = no; then
13409
13410 cat >>confdefs.h <<\_ACEOF
13411 #define signed
13412 _ACEOF
13413
13414   fi
13415
13416
13417   echo "$as_me:$LINENO: checking for wchar_t" >&5
13418 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
13419 if test "${gt_cv_c_wchar_t+set}" = set; then
13420   echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422   cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h.  */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h.  */
13428 #include <stddef.h>
13429        wchar_t foo = (wchar_t)'\0';
13430 int
13431 main ()
13432 {
13433
13434   ;
13435   return 0;
13436 }
13437 _ACEOF
13438 rm -f conftest.$ac_objext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13440   (eval $ac_compile) 2>conftest.er1
13441   ac_status=$?
13442   grep -v '^ *+' conftest.er1 >conftest.err
13443   rm -f conftest.er1
13444   cat conftest.err >&5
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } &&
13447          { ac_try='test -z "$ac_c_werror_flag"
13448                          || test ! -s conftest.err'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; } &&
13454          { ac_try='test -s conftest.$ac_objext'
13455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456   (eval $ac_try) 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; }; then
13460   gt_cv_c_wchar_t=yes
13461 else
13462   echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465 gt_cv_c_wchar_t=no
13466 fi
13467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13468 fi
13469 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
13470 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
13471   if test $gt_cv_c_wchar_t = yes; then
13472
13473 cat >>confdefs.h <<\_ACEOF
13474 #define HAVE_WCHAR_T 1
13475 _ACEOF
13476
13477   fi
13478
13479
13480   echo "$as_me:$LINENO: checking for wint_t" >&5
13481 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
13482 if test "${gt_cv_c_wint_t+set}" = set; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485   cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h.  */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h.  */
13491 #include <wchar.h>
13492        wint_t foo = (wchar_t)'\0';
13493 int
13494 main ()
13495 {
13496
13497   ;
13498   return 0;
13499 }
13500 _ACEOF
13501 rm -f conftest.$ac_objext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503   (eval $ac_compile) 2>conftest.er1
13504   ac_status=$?
13505   grep -v '^ *+' conftest.er1 >conftest.err
13506   rm -f conftest.er1
13507   cat conftest.err >&5
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); } &&
13510          { ac_try='test -z "$ac_c_werror_flag"
13511                          || test ! -s conftest.err'
13512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513   (eval $ac_try) 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; } &&
13517          { ac_try='test -s conftest.$ac_objext'
13518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519   (eval $ac_try) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; }; then
13523   gt_cv_c_wint_t=yes
13524 else
13525   echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528 gt_cv_c_wint_t=no
13529 fi
13530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13531 fi
13532 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
13533 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
13534   if test $gt_cv_c_wint_t = yes; then
13535
13536 cat >>confdefs.h <<\_ACEOF
13537 #define HAVE_WINT_T 1
13538 _ACEOF
13539
13540   fi
13541
13542 echo "$as_me:$LINENO: checking for size_t" >&5
13543 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13544 if test "${ac_cv_type_size_t+set}" = set; then
13545   echo $ECHO_N "(cached) $ECHO_C" >&6
13546 else
13547   cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h.  */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h.  */
13553 $ac_includes_default
13554 int
13555 main ()
13556 {
13557 if ((size_t *) 0)
13558   return 0;
13559 if (sizeof (size_t))
13560   return 0;
13561   ;
13562   return 0;
13563 }
13564 _ACEOF
13565 rm -f conftest.$ac_objext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13567   (eval $ac_compile) 2>conftest.er1
13568   ac_status=$?
13569   grep -v '^ *+' conftest.er1 >conftest.err
13570   rm -f conftest.er1
13571   cat conftest.err >&5
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); } &&
13574          { ac_try='test -z "$ac_c_werror_flag"
13575                          || test ! -s conftest.err'
13576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577   (eval $ac_try) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; } &&
13581          { ac_try='test -s conftest.$ac_objext'
13582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583   (eval $ac_try) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; }; then
13587   ac_cv_type_size_t=yes
13588 else
13589   echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 ac_cv_type_size_t=no
13593 fi
13594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13595 fi
13596 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13597 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13598 if test $ac_cv_type_size_t = yes; then
13599   :
13600 else
13601
13602 cat >>confdefs.h <<_ACEOF
13603 #define size_t unsigned
13604 _ACEOF
13605
13606 fi
13607
13608
13609
13610
13611   echo "$as_me:$LINENO: checking for intmax_t" >&5
13612 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
13613 if test "${gt_cv_c_intmax_t+set}" = set; then
13614   echo $ECHO_N "(cached) $ECHO_C" >&6
13615 else
13616   cat >conftest.$ac_ext <<_ACEOF
13617 /* confdefs.h.  */
13618 _ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h.  */
13622
13623 #include <stddef.h>
13624 #include <stdlib.h>
13625 #if HAVE_STDINT_H_WITH_UINTMAX
13626 #include <stdint.h>
13627 #endif
13628 #if HAVE_INTTYPES_H_WITH_UINTMAX
13629 #include <inttypes.h>
13630 #endif
13631
13632 int
13633 main ()
13634 {
13635 intmax_t x = -1;
13636   ;
13637   return 0;
13638 }
13639 _ACEOF
13640 rm -f conftest.$ac_objext
13641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13642   (eval $ac_compile) 2>conftest.er1
13643   ac_status=$?
13644   grep -v '^ *+' conftest.er1 >conftest.err
13645   rm -f conftest.er1
13646   cat conftest.err >&5
13647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648   (exit $ac_status); } &&
13649          { ac_try='test -z "$ac_c_werror_flag"
13650                          || test ! -s conftest.err'
13651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652   (eval $ac_try) 2>&5
13653   ac_status=$?
13654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); }; } &&
13656          { ac_try='test -s conftest.$ac_objext'
13657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658   (eval $ac_try) 2>&5
13659   ac_status=$?
13660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661   (exit $ac_status); }; }; then
13662   gt_cv_c_intmax_t=yes
13663 else
13664   echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13666
13667 gt_cv_c_intmax_t=no
13668 fi
13669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13670 fi
13671 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
13672 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
13673   if test $gt_cv_c_intmax_t = yes; then
13674
13675 cat >>confdefs.h <<\_ACEOF
13676 #define HAVE_INTMAX_T 1
13677 _ACEOF
13678
13679   else
13680
13681     test $ac_cv_type_long_long = yes \
13682       && ac_type='long long' \
13683       || ac_type='long'
13684
13685 cat >>confdefs.h <<_ACEOF
13686 #define intmax_t $ac_type
13687 _ACEOF
13688
13689   fi
13690
13691 echo "$as_me:$LINENO: checking for inline" >&5
13692 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13693 if test "${ac_cv_c_inline+set}" = set; then
13694   echo $ECHO_N "(cached) $ECHO_C" >&6
13695 else
13696   ac_cv_c_inline=no
13697 for ac_kw in inline __inline__ __inline; do
13698   cat >conftest.$ac_ext <<_ACEOF
13699 /* confdefs.h.  */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h.  */
13704 #ifndef __cplusplus
13705 typedef int foo_t;
13706 static $ac_kw foo_t static_foo () {return 0; }
13707 $ac_kw foo_t foo () {return 0; }
13708 #endif
13709
13710 _ACEOF
13711 rm -f conftest.$ac_objext
13712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13713   (eval $ac_compile) 2>conftest.er1
13714   ac_status=$?
13715   grep -v '^ *+' conftest.er1 >conftest.err
13716   rm -f conftest.er1
13717   cat conftest.err >&5
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); } &&
13720          { ac_try='test -z "$ac_c_werror_flag"
13721                          || test ! -s conftest.err'
13722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723   (eval $ac_try) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; } &&
13727          { ac_try='test -s conftest.$ac_objext'
13728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729   (eval $ac_try) 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; }; then
13733   ac_cv_c_inline=$ac_kw; break
13734 else
13735   echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 fi
13739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13740 done
13741
13742 fi
13743 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13744 echo "${ECHO_T}$ac_cv_c_inline" >&6
13745
13746
13747 case $ac_cv_c_inline in
13748   inline | yes) ;;
13749   *)
13750     case $ac_cv_c_inline in
13751       no) ac_val=;;
13752       *) ac_val=$ac_cv_c_inline;;
13753     esac
13754     cat >>confdefs.h <<_ACEOF
13755 #ifndef __cplusplus
13756 #define inline $ac_val
13757 #endif
13758 _ACEOF
13759     ;;
13760 esac
13761
13762
13763
13764 for ac_header in stdint.h
13765 do
13766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13768   echo "$as_me:$LINENO: checking for $ac_header" >&5
13769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13771   echo $ECHO_N "(cached) $ECHO_C" >&6
13772 fi
13773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13775 else
13776   # Is the header compilable?
13777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13779 cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h.  */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h.  */
13785 $ac_includes_default
13786 #include <$ac_header>
13787 _ACEOF
13788 rm -f conftest.$ac_objext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13790   (eval $ac_compile) 2>conftest.er1
13791   ac_status=$?
13792   grep -v '^ *+' conftest.er1 >conftest.err
13793   rm -f conftest.er1
13794   cat conftest.err >&5
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); } &&
13797          { ac_try='test -z "$ac_c_werror_flag"
13798                          || test ! -s conftest.err'
13799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800   (eval $ac_try) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; } &&
13804          { ac_try='test -s conftest.$ac_objext'
13805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806   (eval $ac_try) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); }; }; then
13810   ac_header_compiler=yes
13811 else
13812   echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13814
13815 ac_header_compiler=no
13816 fi
13817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13819 echo "${ECHO_T}$ac_header_compiler" >&6
13820
13821 # Is the header present?
13822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13824 cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h.  */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h.  */
13830 #include <$ac_header>
13831 _ACEOF
13832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13834   ac_status=$?
13835   grep -v '^ *+' conftest.er1 >conftest.err
13836   rm -f conftest.er1
13837   cat conftest.err >&5
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); } >/dev/null; then
13840   if test -s conftest.err; then
13841     ac_cpp_err=$ac_c_preproc_warn_flag
13842     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13843   else
13844     ac_cpp_err=
13845   fi
13846 else
13847   ac_cpp_err=yes
13848 fi
13849 if test -z "$ac_cpp_err"; then
13850   ac_header_preproc=yes
13851 else
13852   echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13854
13855   ac_header_preproc=no
13856 fi
13857 rm -f conftest.err conftest.$ac_ext
13858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13859 echo "${ECHO_T}$ac_header_preproc" >&6
13860
13861 # So?  What about this header?
13862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13863   yes:no: )
13864     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13868     ac_header_preproc=yes
13869     ;;
13870   no:yes:* )
13871     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13873     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13874 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13875     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13877     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13878 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13881     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13883     (
13884       cat <<\_ASBOX
13885 ## ------------------------------ ##
13886 ## Report this to bug-cvs@gnu.org ##
13887 ## ------------------------------ ##
13888 _ASBOX
13889     ) |
13890       sed "s/^/$as_me: WARNING:     /" >&2
13891     ;;
13892 esac
13893 echo "$as_me:$LINENO: checking for $ac_header" >&5
13894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13896   echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898   eval "$as_ac_Header=\$ac_header_preproc"
13899 fi
13900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13902
13903 fi
13904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13905   cat >>confdefs.h <<_ACEOF
13906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13907 _ACEOF
13908
13909 fi
13910
13911 done
13912
13913     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
13914 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
13915   result=
13916   cat >conftest.$ac_ext <<_ACEOF
13917 /* confdefs.h.  */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h.  */
13922
13923 #include <limits.h>
13924 #if HAVE_STDINT_H
13925 #include <stdint.h>
13926 #endif
13927 #ifdef SIZE_MAX
13928 Found it
13929 #endif
13930
13931 _ACEOF
13932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13933   $EGREP "Found it" >/dev/null 2>&1; then
13934   result=yes
13935 fi
13936 rm -f conftest*
13937
13938   if test -z "$result"; then
13939                     if test "$cross_compiling" = yes; then
13940   # Depending upon the size, compute the lo and hi bounds.
13941 cat >conftest.$ac_ext <<_ACEOF
13942 /* confdefs.h.  */
13943 _ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h.  */
13947 #include <stddef.h>
13948 int
13949 main ()
13950 {
13951 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
13952 test_array [0] = 0
13953
13954   ;
13955   return 0;
13956 }
13957 _ACEOF
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960   (eval $ac_compile) 2>conftest.er1
13961   ac_status=$?
13962   grep -v '^ *+' conftest.er1 >conftest.err
13963   rm -f conftest.er1
13964   cat conftest.err >&5
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); } &&
13967          { ac_try='test -z "$ac_c_werror_flag"
13968                          || test ! -s conftest.err'
13969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970   (eval $ac_try) 2>&5
13971   ac_status=$?
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); }; } &&
13974          { ac_try='test -s conftest.$ac_objext'
13975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976   (eval $ac_try) 2>&5
13977   ac_status=$?
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); }; }; then
13980   ac_lo=0 ac_mid=0
13981   while :; do
13982     cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h.  */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h.  */
13988 #include <stddef.h>
13989 int
13990 main ()
13991 {
13992 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
13993 test_array [0] = 0
13994
13995   ;
13996   return 0;
13997 }
13998 _ACEOF
13999 rm -f conftest.$ac_objext
14000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14001   (eval $ac_compile) 2>conftest.er1
14002   ac_status=$?
14003   grep -v '^ *+' conftest.er1 >conftest.err
14004   rm -f conftest.er1
14005   cat conftest.err >&5
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); } &&
14008          { ac_try='test -z "$ac_c_werror_flag"
14009                          || test ! -s conftest.err'
14010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011   (eval $ac_try) 2>&5
14012   ac_status=$?
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); }; } &&
14015          { ac_try='test -s conftest.$ac_objext'
14016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017   (eval $ac_try) 2>&5
14018   ac_status=$?
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); }; }; then
14021   ac_hi=$ac_mid; break
14022 else
14023   echo "$as_me: failed program was:" >&5
14024 sed 's/^/| /' conftest.$ac_ext >&5
14025
14026 ac_lo=`expr $ac_mid + 1`
14027                     if test $ac_lo -le $ac_mid; then
14028                       ac_lo= ac_hi=
14029                       break
14030                     fi
14031                     ac_mid=`expr 2 '*' $ac_mid + 1`
14032 fi
14033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14034   done
14035 else
14036   echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14038
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h.  */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h.  */
14045 #include <stddef.h>
14046 int
14047 main ()
14048 {
14049 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
14050 test_array [0] = 0
14051
14052   ;
14053   return 0;
14054 }
14055 _ACEOF
14056 rm -f conftest.$ac_objext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058   (eval $ac_compile) 2>conftest.er1
14059   ac_status=$?
14060   grep -v '^ *+' conftest.er1 >conftest.err
14061   rm -f conftest.er1
14062   cat conftest.err >&5
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); } &&
14065          { ac_try='test -z "$ac_c_werror_flag"
14066                          || test ! -s conftest.err'
14067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068   (eval $ac_try) 2>&5
14069   ac_status=$?
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); }; } &&
14072          { ac_try='test -s conftest.$ac_objext'
14073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074   (eval $ac_try) 2>&5
14075   ac_status=$?
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); }; }; then
14078   ac_hi=-1 ac_mid=-1
14079   while :; do
14080     cat >conftest.$ac_ext <<_ACEOF
14081 /* confdefs.h.  */
14082 _ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h.  */
14086 #include <stddef.h>
14087 int
14088 main ()
14089 {
14090 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
14091 test_array [0] = 0
14092
14093   ;
14094   return 0;
14095 }
14096 _ACEOF
14097 rm -f conftest.$ac_objext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099   (eval $ac_compile) 2>conftest.er1
14100   ac_status=$?
14101   grep -v '^ *+' conftest.er1 >conftest.err
14102   rm -f conftest.er1
14103   cat conftest.err >&5
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); } &&
14106          { ac_try='test -z "$ac_c_werror_flag"
14107                          || test ! -s conftest.err'
14108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109   (eval $ac_try) 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); }; } &&
14113          { ac_try='test -s conftest.$ac_objext'
14114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115   (eval $ac_try) 2>&5
14116   ac_status=$?
14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); }; }; then
14119   ac_lo=$ac_mid; break
14120 else
14121   echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14123
14124 ac_hi=`expr '(' $ac_mid ')' - 1`
14125                        if test $ac_mid -le $ac_hi; then
14126                          ac_lo= ac_hi=
14127                          break
14128                        fi
14129                        ac_mid=`expr 2 '*' $ac_mid`
14130 fi
14131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14132   done
14133 else
14134   echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14136
14137 ac_lo= ac_hi=
14138 fi
14139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140 fi
14141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14142 # Binary search between lo and hi bounds.
14143 while test "x$ac_lo" != "x$ac_hi"; do
14144   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14145   cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h.  */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h.  */
14151 #include <stddef.h>
14152 int
14153 main ()
14154 {
14155 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
14156 test_array [0] = 0
14157
14158   ;
14159   return 0;
14160 }
14161 _ACEOF
14162 rm -f conftest.$ac_objext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14164   (eval $ac_compile) 2>conftest.er1
14165   ac_status=$?
14166   grep -v '^ *+' conftest.er1 >conftest.err
14167   rm -f conftest.er1
14168   cat conftest.err >&5
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); } &&
14171          { ac_try='test -z "$ac_c_werror_flag"
14172                          || test ! -s conftest.err'
14173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174   (eval $ac_try) 2>&5
14175   ac_status=$?
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); }; } &&
14178          { ac_try='test -s conftest.$ac_objext'
14179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180   (eval $ac_try) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); }; }; then
14184   ac_hi=$ac_mid
14185 else
14186   echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14188
14189 ac_lo=`expr '(' $ac_mid ')' + 1`
14190 fi
14191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14192 done
14193 case $ac_lo in
14194 ?*) res_hi=$ac_lo;;
14195 '') result=? ;;
14196 esac
14197 else
14198   if test "$cross_compiling" = yes; then
14199   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14200 See \`config.log' for more details." >&5
14201 echo "$as_me: error: cannot run test program while cross compiling
14202 See \`config.log' for more details." >&2;}
14203    { (exit 1); exit 1; }; }
14204 else
14205   cat >conftest.$ac_ext <<_ACEOF
14206 /* confdefs.h.  */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h.  */
14211 #include <stddef.h>
14212 long longval () { return ~(size_t)0 / 10; }
14213 unsigned long ulongval () { return ~(size_t)0 / 10; }
14214 #include <stdio.h>
14215 #include <stdlib.h>
14216 int
14217 main ()
14218 {
14219
14220   FILE *f = fopen ("conftest.val", "w");
14221   if (! f)
14222     exit (1);
14223   if ((~(size_t)0 / 10) < 0)
14224     {
14225       long i = longval ();
14226       if (i != (~(size_t)0 / 10))
14227         exit (1);
14228       fprintf (f, "%ld\n", i);
14229     }
14230   else
14231     {
14232       unsigned long i = ulongval ();
14233       if (i != (~(size_t)0 / 10))
14234         exit (1);
14235       fprintf (f, "%lu\n", i);
14236     }
14237   exit (ferror (f) || fclose (f) != 0);
14238
14239   ;
14240   return 0;
14241 }
14242 _ACEOF
14243 rm -f conftest$ac_exeext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14245   (eval $ac_link) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250   (eval $ac_try) 2>&5
14251   ac_status=$?
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); }; }; then
14254   res_hi=`cat conftest.val`
14255 else
14256   echo "$as_me: program exited with status $ac_status" >&5
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14259
14260 ( exit $ac_status )
14261 result=?
14262 fi
14263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14264 fi
14265 fi
14266 rm -f conftest.val
14267     if test "$cross_compiling" = yes; then
14268   # Depending upon the size, compute the lo and hi bounds.
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 <stddef.h>
14276 int
14277 main ()
14278 {
14279 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
14280 test_array [0] = 0
14281
14282   ;
14283   return 0;
14284 }
14285 _ACEOF
14286 rm -f conftest.$ac_objext
14287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14288   (eval $ac_compile) 2>conftest.er1
14289   ac_status=$?
14290   grep -v '^ *+' conftest.er1 >conftest.err
14291   rm -f conftest.er1
14292   cat conftest.err >&5
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); } &&
14295          { ac_try='test -z "$ac_c_werror_flag"
14296                          || test ! -s conftest.err'
14297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298   (eval $ac_try) 2>&5
14299   ac_status=$?
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); }; } &&
14302          { ac_try='test -s conftest.$ac_objext'
14303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304   (eval $ac_try) 2>&5
14305   ac_status=$?
14306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307   (exit $ac_status); }; }; then
14308   ac_lo=0 ac_mid=0
14309   while :; do
14310     cat >conftest.$ac_ext <<_ACEOF
14311 /* confdefs.h.  */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h.  */
14316 #include <stddef.h>
14317 int
14318 main ()
14319 {
14320 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
14321 test_array [0] = 0
14322
14323   ;
14324   return 0;
14325 }
14326 _ACEOF
14327 rm -f conftest.$ac_objext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329   (eval $ac_compile) 2>conftest.er1
14330   ac_status=$?
14331   grep -v '^ *+' conftest.er1 >conftest.err
14332   rm -f conftest.er1
14333   cat conftest.err >&5
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); } &&
14336          { ac_try='test -z "$ac_c_werror_flag"
14337                          || test ! -s conftest.err'
14338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339   (eval $ac_try) 2>&5
14340   ac_status=$?
14341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); }; } &&
14343          { ac_try='test -s conftest.$ac_objext'
14344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345   (eval $ac_try) 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); }; }; then
14349   ac_hi=$ac_mid; break
14350 else
14351   echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14353
14354 ac_lo=`expr $ac_mid + 1`
14355                     if test $ac_lo -le $ac_mid; then
14356                       ac_lo= ac_hi=
14357                       break
14358                     fi
14359                     ac_mid=`expr 2 '*' $ac_mid + 1`
14360 fi
14361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14362   done
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h.  */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h.  */
14373 #include <stddef.h>
14374 int
14375 main ()
14376 {
14377 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
14378 test_array [0] = 0
14379
14380   ;
14381   return 0;
14382 }
14383 _ACEOF
14384 rm -f conftest.$ac_objext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14386   (eval $ac_compile) 2>conftest.er1
14387   ac_status=$?
14388   grep -v '^ *+' conftest.er1 >conftest.err
14389   rm -f conftest.er1
14390   cat conftest.err >&5
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } &&
14393          { ac_try='test -z "$ac_c_werror_flag"
14394                          || test ! -s conftest.err'
14395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396   (eval $ac_try) 2>&5
14397   ac_status=$?
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); }; } &&
14400          { ac_try='test -s conftest.$ac_objext'
14401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402   (eval $ac_try) 2>&5
14403   ac_status=$?
14404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405   (exit $ac_status); }; }; then
14406   ac_hi=-1 ac_mid=-1
14407   while :; do
14408     cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h.  */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h.  */
14414 #include <stddef.h>
14415 int
14416 main ()
14417 {
14418 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
14419 test_array [0] = 0
14420
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427   (eval $ac_compile) 2>conftest.er1
14428   ac_status=$?
14429   grep -v '^ *+' conftest.er1 >conftest.err
14430   rm -f conftest.er1
14431   cat conftest.err >&5
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); } &&
14434          { ac_try='test -z "$ac_c_werror_flag"
14435                          || test ! -s conftest.err'
14436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437   (eval $ac_try) 2>&5
14438   ac_status=$?
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); }; } &&
14441          { ac_try='test -s conftest.$ac_objext'
14442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443   (eval $ac_try) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); }; }; then
14447   ac_lo=$ac_mid; break
14448 else
14449   echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14451
14452 ac_hi=`expr '(' $ac_mid ')' - 1`
14453                        if test $ac_mid -le $ac_hi; then
14454                          ac_lo= ac_hi=
14455                          break
14456                        fi
14457                        ac_mid=`expr 2 '*' $ac_mid`
14458 fi
14459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14460   done
14461 else
14462   echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465 ac_lo= ac_hi=
14466 fi
14467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14468 fi
14469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14470 # Binary search between lo and hi bounds.
14471 while test "x$ac_lo" != "x$ac_hi"; do
14472   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14473   cat >conftest.$ac_ext <<_ACEOF
14474 /* confdefs.h.  */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h.  */
14479 #include <stddef.h>
14480 int
14481 main ()
14482 {
14483 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
14484 test_array [0] = 0
14485
14486   ;
14487   return 0;
14488 }
14489 _ACEOF
14490 rm -f conftest.$ac_objext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492   (eval $ac_compile) 2>conftest.er1
14493   ac_status=$?
14494   grep -v '^ *+' conftest.er1 >conftest.err
14495   rm -f conftest.er1
14496   cat conftest.err >&5
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); } &&
14499          { ac_try='test -z "$ac_c_werror_flag"
14500                          || test ! -s conftest.err'
14501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502   (eval $ac_try) 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); }; } &&
14506          { ac_try='test -s conftest.$ac_objext'
14507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508   (eval $ac_try) 2>&5
14509   ac_status=$?
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); }; }; then
14512   ac_hi=$ac_mid
14513 else
14514   echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14516
14517 ac_lo=`expr '(' $ac_mid ')' + 1`
14518 fi
14519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14520 done
14521 case $ac_lo in
14522 ?*) res_lo=$ac_lo;;
14523 '') result=? ;;
14524 esac
14525 else
14526   if test "$cross_compiling" = yes; then
14527   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14528 See \`config.log' for more details." >&5
14529 echo "$as_me: error: cannot run test program while cross compiling
14530 See \`config.log' for more details." >&2;}
14531    { (exit 1); exit 1; }; }
14532 else
14533   cat >conftest.$ac_ext <<_ACEOF
14534 /* confdefs.h.  */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h.  */
14539 #include <stddef.h>
14540 long longval () { return ~(size_t)0 % 10; }
14541 unsigned long ulongval () { return ~(size_t)0 % 10; }
14542 #include <stdio.h>
14543 #include <stdlib.h>
14544 int
14545 main ()
14546 {
14547
14548   FILE *f = fopen ("conftest.val", "w");
14549   if (! f)
14550     exit (1);
14551   if ((~(size_t)0 % 10) < 0)
14552     {
14553       long i = longval ();
14554       if (i != (~(size_t)0 % 10))
14555         exit (1);
14556       fprintf (f, "%ld\n", i);
14557     }
14558   else
14559     {
14560       unsigned long i = ulongval ();
14561       if (i != (~(size_t)0 % 10))
14562         exit (1);
14563       fprintf (f, "%lu\n", i);
14564     }
14565   exit (ferror (f) || fclose (f) != 0);
14566
14567   ;
14568   return 0;
14569 }
14570 _ACEOF
14571 rm -f conftest$ac_exeext
14572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14573   (eval $ac_link) 2>&5
14574   ac_status=$?
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578   (eval $ac_try) 2>&5
14579   ac_status=$?
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); }; }; then
14582   res_lo=`cat conftest.val`
14583 else
14584   echo "$as_me: program exited with status $ac_status" >&5
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14587
14588 ( exit $ac_status )
14589 result=?
14590 fi
14591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14592 fi
14593 fi
14594 rm -f conftest.val
14595     if test "$cross_compiling" = yes; then
14596   # Depending upon the size, compute the lo and hi bounds.
14597 cat >conftest.$ac_ext <<_ACEOF
14598 /* confdefs.h.  */
14599 _ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h.  */
14603 #include <stddef.h>
14604 int
14605 main ()
14606 {
14607 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
14608 test_array [0] = 0
14609
14610   ;
14611   return 0;
14612 }
14613 _ACEOF
14614 rm -f conftest.$ac_objext
14615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14616   (eval $ac_compile) 2>conftest.er1
14617   ac_status=$?
14618   grep -v '^ *+' conftest.er1 >conftest.err
14619   rm -f conftest.er1
14620   cat conftest.err >&5
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); } &&
14623          { ac_try='test -z "$ac_c_werror_flag"
14624                          || test ! -s conftest.err'
14625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626   (eval $ac_try) 2>&5
14627   ac_status=$?
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); }; } &&
14630          { ac_try='test -s conftest.$ac_objext'
14631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632   (eval $ac_try) 2>&5
14633   ac_status=$?
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); }; }; then
14636   ac_lo=0 ac_mid=0
14637   while :; do
14638     cat >conftest.$ac_ext <<_ACEOF
14639 /* confdefs.h.  */
14640 _ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h.  */
14644 #include <stddef.h>
14645 int
14646 main ()
14647 {
14648 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
14649 test_array [0] = 0
14650
14651   ;
14652   return 0;
14653 }
14654 _ACEOF
14655 rm -f conftest.$ac_objext
14656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14657   (eval $ac_compile) 2>conftest.er1
14658   ac_status=$?
14659   grep -v '^ *+' conftest.er1 >conftest.err
14660   rm -f conftest.er1
14661   cat conftest.err >&5
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); } &&
14664          { ac_try='test -z "$ac_c_werror_flag"
14665                          || test ! -s conftest.err'
14666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667   (eval $ac_try) 2>&5
14668   ac_status=$?
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); }; } &&
14671          { ac_try='test -s conftest.$ac_objext'
14672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673   (eval $ac_try) 2>&5
14674   ac_status=$?
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); }; }; then
14677   ac_hi=$ac_mid; break
14678 else
14679   echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682 ac_lo=`expr $ac_mid + 1`
14683                     if test $ac_lo -le $ac_mid; then
14684                       ac_lo= ac_hi=
14685                       break
14686                     fi
14687                     ac_mid=`expr 2 '*' $ac_mid + 1`
14688 fi
14689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14690   done
14691 else
14692   echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14694
14695 cat >conftest.$ac_ext <<_ACEOF
14696 /* confdefs.h.  */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h.  */
14701 #include <stddef.h>
14702 int
14703 main ()
14704 {
14705 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
14706 test_array [0] = 0
14707
14708   ;
14709   return 0;
14710 }
14711 _ACEOF
14712 rm -f conftest.$ac_objext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14714   (eval $ac_compile) 2>conftest.er1
14715   ac_status=$?
14716   grep -v '^ *+' conftest.er1 >conftest.err
14717   rm -f conftest.er1
14718   cat conftest.err >&5
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } &&
14721          { ac_try='test -z "$ac_c_werror_flag"
14722                          || test ! -s conftest.err'
14723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724   (eval $ac_try) 2>&5
14725   ac_status=$?
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); }; } &&
14728          { ac_try='test -s conftest.$ac_objext'
14729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730   (eval $ac_try) 2>&5
14731   ac_status=$?
14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   (exit $ac_status); }; }; then
14734   ac_hi=-1 ac_mid=-1
14735   while :; do
14736     cat >conftest.$ac_ext <<_ACEOF
14737 /* confdefs.h.  */
14738 _ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h.  */
14742 #include <stddef.h>
14743 int
14744 main ()
14745 {
14746 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
14747 test_array [0] = 0
14748
14749   ;
14750   return 0;
14751 }
14752 _ACEOF
14753 rm -f conftest.$ac_objext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14755   (eval $ac_compile) 2>conftest.er1
14756   ac_status=$?
14757   grep -v '^ *+' conftest.er1 >conftest.err
14758   rm -f conftest.er1
14759   cat conftest.err >&5
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); } &&
14762          { ac_try='test -z "$ac_c_werror_flag"
14763                          || test ! -s conftest.err'
14764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765   (eval $ac_try) 2>&5
14766   ac_status=$?
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); }; } &&
14769          { ac_try='test -s conftest.$ac_objext'
14770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771   (eval $ac_try) 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); }; }; then
14775   ac_lo=$ac_mid; break
14776 else
14777   echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14779
14780 ac_hi=`expr '(' $ac_mid ')' - 1`
14781                        if test $ac_mid -le $ac_hi; then
14782                          ac_lo= ac_hi=
14783                          break
14784                        fi
14785                        ac_mid=`expr 2 '*' $ac_mid`
14786 fi
14787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14788   done
14789 else
14790   echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793 ac_lo= ac_hi=
14794 fi
14795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14796 fi
14797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14798 # Binary search between lo and hi bounds.
14799 while test "x$ac_lo" != "x$ac_hi"; do
14800   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14801   cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h.  */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h.  */
14807 #include <stddef.h>
14808 int
14809 main ()
14810 {
14811 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
14812 test_array [0] = 0
14813
14814   ;
14815   return 0;
14816 }
14817 _ACEOF
14818 rm -f conftest.$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820   (eval $ac_compile) 2>conftest.er1
14821   ac_status=$?
14822   grep -v '^ *+' conftest.er1 >conftest.err
14823   rm -f conftest.er1
14824   cat conftest.err >&5
14825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826   (exit $ac_status); } &&
14827          { ac_try='test -z "$ac_c_werror_flag"
14828                          || test ! -s conftest.err'
14829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830   (eval $ac_try) 2>&5
14831   ac_status=$?
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); }; } &&
14834          { ac_try='test -s conftest.$ac_objext'
14835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836   (eval $ac_try) 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); }; }; then
14840   ac_hi=$ac_mid
14841 else
14842   echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14844
14845 ac_lo=`expr '(' $ac_mid ')' + 1`
14846 fi
14847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14848 done
14849 case $ac_lo in
14850 ?*) fits_in_uint=$ac_lo;;
14851 '') result=? ;;
14852 esac
14853 else
14854   if test "$cross_compiling" = yes; then
14855   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14856 See \`config.log' for more details." >&5
14857 echo "$as_me: error: cannot run test program while cross compiling
14858 See \`config.log' for more details." >&2;}
14859    { (exit 1); exit 1; }; }
14860 else
14861   cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h.  */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h.  */
14867 #include <stddef.h>
14868 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
14869 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
14870 #include <stdio.h>
14871 #include <stdlib.h>
14872 int
14873 main ()
14874 {
14875
14876   FILE *f = fopen ("conftest.val", "w");
14877   if (! f)
14878     exit (1);
14879   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
14880     {
14881       long i = longval ();
14882       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
14883         exit (1);
14884       fprintf (f, "%ld\n", i);
14885     }
14886   else
14887     {
14888       unsigned long i = ulongval ();
14889       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
14890         exit (1);
14891       fprintf (f, "%lu\n", i);
14892     }
14893   exit (ferror (f) || fclose (f) != 0);
14894
14895   ;
14896   return 0;
14897 }
14898 _ACEOF
14899 rm -f conftest$ac_exeext
14900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14901   (eval $ac_link) 2>&5
14902   ac_status=$?
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906   (eval $ac_try) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; }; then
14910   fits_in_uint=`cat conftest.val`
14911 else
14912   echo "$as_me: program exited with status $ac_status" >&5
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14915
14916 ( exit $ac_status )
14917 result=?
14918 fi
14919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14920 fi
14921 fi
14922 rm -f conftest.val
14923     if test "$fits_in_uint" = 1; then
14924                   cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h.  */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h.  */
14930 #include <stddef.h>
14931         extern size_t foo;
14932         extern unsigned long foo;
14933
14934 int
14935 main ()
14936 {
14937
14938   ;
14939   return 0;
14940 }
14941 _ACEOF
14942 rm -f conftest.$ac_objext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14944   (eval $ac_compile) 2>conftest.er1
14945   ac_status=$?
14946   grep -v '^ *+' conftest.er1 >conftest.err
14947   rm -f conftest.er1
14948   cat conftest.err >&5
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); } &&
14951          { ac_try='test -z "$ac_c_werror_flag"
14952                          || test ! -s conftest.err'
14953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954   (eval $ac_try) 2>&5
14955   ac_status=$?
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); }; } &&
14958          { ac_try='test -s conftest.$ac_objext'
14959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960   (eval $ac_try) 2>&5
14961   ac_status=$?
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); }; }; then
14964   fits_in_uint=0
14965 else
14966   echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 fi
14970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14971     fi
14972     if test -z "$result"; then
14973       if test "$fits_in_uint" = 1; then
14974         result="$res_hi$res_lo"U
14975       else
14976         result="$res_hi$res_lo"UL
14977       fi
14978     else
14979             result='~(size_t)0'
14980     fi
14981   fi
14982   echo "$as_me:$LINENO: result: $result" >&5
14983 echo "${ECHO_T}$result" >&6
14984   if test "$result" != yes; then
14985
14986 cat >>confdefs.h <<_ACEOF
14987 #define SIZE_MAX $result
14988 _ACEOF
14989
14990   fi
14991
14992
14993
14994
14995
14996
14997
14998   if test $ac_cv_func_alloca_works = no; then
14999     :
15000   fi
15001
15002   # Define an additional variable used in the Makefile substitution.
15003   if test $ac_cv_working_alloca_h = yes; then
15004     cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h.  */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h.  */
15010
15011 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
15012         Need own alloca
15013 #endif
15014
15015 _ACEOF
15016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15017   $EGREP "Need own alloca" >/dev/null 2>&1; then
15018
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_ALLOCA 1
15021 _ACEOF
15022
15023        ALLOCA_H=alloca.h
15024 else
15025   ALLOCA_H=
15026 fi
15027 rm -f conftest*
15028
15029   else
15030     ALLOCA_H=alloca.h
15031   fi
15032
15033
15034
15035 cat >>confdefs.h <<\_ACEOF
15036 #define HAVE_ALLOCA_H 1
15037 _ACEOF
15038
15039
15040
15041
15042
15043
15044
15045   if test $ac_cv_func_alloca_works = no; then
15046     :
15047   fi
15048
15049   # Define an additional variable used in the Makefile substitution.
15050   if test $ac_cv_working_alloca_h = yes; then
15051     cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h.  */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h.  */
15057
15058 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
15059         Need own alloca
15060 #endif
15061
15062 _ACEOF
15063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15064   $EGREP "Need own alloca" >/dev/null 2>&1; then
15065
15066 cat >>confdefs.h <<\_ACEOF
15067 #define HAVE_ALLOCA 1
15068 _ACEOF
15069
15070        ALLOCA_H=alloca.h
15071 else
15072   ALLOCA_H=
15073 fi
15074 rm -f conftest*
15075
15076   else
15077     ALLOCA_H=alloca.h
15078   fi
15079
15080
15081
15082 cat >>confdefs.h <<\_ACEOF
15083 #define HAVE_ALLOCA_H 1
15084 _ACEOF
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095 for ac_func in atexit
15096 do
15097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15098 echo "$as_me:$LINENO: checking for $ac_func" >&5
15099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15100 if eval "test \"\${$as_ac_var+set}\" = set"; then
15101   echo $ECHO_N "(cached) $ECHO_C" >&6
15102 else
15103   cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h.  */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h.  */
15109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15111 #define $ac_func innocuous_$ac_func
15112
15113 /* System header to define __stub macros and hopefully few prototypes,
15114     which can conflict with char $ac_func (); below.
15115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15116     <limits.h> exists even on freestanding compilers.  */
15117
15118 #ifdef __STDC__
15119 # include <limits.h>
15120 #else
15121 # include <assert.h>
15122 #endif
15123
15124 #undef $ac_func
15125
15126 /* Override any gcc2 internal prototype to avoid an error.  */
15127 #ifdef __cplusplus
15128 extern "C"
15129 {
15130 #endif
15131 /* We use char because int might match the return type of a gcc2
15132    builtin and then its argument prototype would still apply.  */
15133 char $ac_func ();
15134 /* The GNU C library defines this for functions which it implements
15135     to always fail with ENOSYS.  Some functions are actually named
15136     something starting with __ and the normal name is an alias.  */
15137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15138 choke me
15139 #else
15140 char (*f) () = $ac_func;
15141 #endif
15142 #ifdef __cplusplus
15143 }
15144 #endif
15145
15146 int
15147 main ()
15148 {
15149 return f != $ac_func;
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15156   (eval $ac_link) 2>conftest.er1
15157   ac_status=$?
15158   grep -v '^ *+' conftest.er1 >conftest.err
15159   rm -f conftest.er1
15160   cat conftest.err >&5
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); } &&
15163          { ac_try='test -z "$ac_c_werror_flag"
15164                          || test ! -s conftest.err'
15165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166   (eval $ac_try) 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); }; } &&
15170          { ac_try='test -s conftest$ac_exeext'
15171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172   (eval $ac_try) 2>&5
15173   ac_status=$?
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); }; }; then
15176   eval "$as_ac_var=yes"
15177 else
15178   echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15180
15181 eval "$as_ac_var=no"
15182 fi
15183 rm -f conftest.err conftest.$ac_objext \
15184       conftest$ac_exeext conftest.$ac_ext
15185 fi
15186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15188 if test `eval echo '${'$as_ac_var'}'` = yes; then
15189   cat >>confdefs.h <<_ACEOF
15190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15191 _ACEOF
15192
15193 else
15194   case $LIBOBJS in
15195     "$ac_func.$ac_objext"   | \
15196   *" $ac_func.$ac_objext"   | \
15197     "$ac_func.$ac_objext "* | \
15198   *" $ac_func.$ac_objext "* ) ;;
15199   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15200 esac
15201
15202 fi
15203 done
15204
15205
15206   if test $ac_cv_func_atexit = no; then
15207
15208   :
15209
15210   fi
15211
15212
15213
15214
15215
15216
15217     :
15218
15219     # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
15220
15221   FNMATCH_H=
15222   echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
15223 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
15224 if test "${ac_cv_func_fnmatch_posix+set}" = set; then
15225   echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227               if test "$cross_compiling" = yes; then
15228   ac_cv_func_fnmatch_posix=cross
15229 else
15230   cat >conftest.$ac_ext <<_ACEOF
15231 /* confdefs.h.  */
15232 _ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h.  */
15236
15237 #          include <stdlib.h>
15238 #          include <fnmatch.h>
15239 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
15240 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
15241
15242 int
15243 main ()
15244 {
15245 exit
15246            (!(y ("a*", "abc", 0)
15247               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
15248               && y ("a\\\\bc", "abc", 0)
15249               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
15250               && y ("*x", ".x", 0)
15251               && n ("*x", ".x", FNM_PERIOD)
15252               && 1));
15253   ;
15254   return 0;
15255 }
15256 _ACEOF
15257 rm -f conftest$ac_exeext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15259   (eval $ac_link) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264   (eval $ac_try) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); }; }; then
15268   ac_cv_func_fnmatch_posix=yes
15269 else
15270   echo "$as_me: program exited with status $ac_status" >&5
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274 ( exit $ac_status )
15275 ac_cv_func_fnmatch_posix=no
15276 fi
15277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15278 fi
15279 fi
15280 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_posix" >&5
15281 echo "${ECHO_T}$ac_cv_func_fnmatch_posix" >&6
15282 if test $ac_cv_func_fnmatch_posix = yes; then
15283   rm -f lib/fnmatch.h
15284 else
15285   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
15286 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
15287 if test "${ac_cv_have_decl_getenv+set}" = set; then
15288   echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290   cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296 $ac_includes_default
15297 int
15298 main ()
15299 {
15300 #ifndef getenv
15301   char *p = (char *) getenv;
15302 #endif
15303
15304   ;
15305   return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest.$ac_objext
15309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15310   (eval $ac_compile) 2>conftest.er1
15311   ac_status=$?
15312   grep -v '^ *+' conftest.er1 >conftest.err
15313   rm -f conftest.er1
15314   cat conftest.err >&5
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } &&
15317          { ac_try='test -z "$ac_c_werror_flag"
15318                          || test ! -s conftest.err'
15319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320   (eval $ac_try) 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }; } &&
15324          { ac_try='test -s conftest.$ac_objext'
15325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326   (eval $ac_try) 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); }; }; then
15330   ac_cv_have_decl_getenv=yes
15331 else
15332   echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335 ac_cv_have_decl_getenv=no
15336 fi
15337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15338 fi
15339 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
15340 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
15341 if test $ac_cv_have_decl_getenv = yes; then
15342
15343 cat >>confdefs.h <<_ACEOF
15344 #define HAVE_DECL_GETENV 1
15345 _ACEOF
15346
15347
15348 else
15349   cat >>confdefs.h <<_ACEOF
15350 #define HAVE_DECL_GETENV 0
15351 _ACEOF
15352
15353
15354 fi
15355
15356
15357
15358
15359
15360
15361
15362
15363 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy
15364 do
15365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15366 echo "$as_me:$LINENO: checking for $ac_func" >&5
15367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15368 if eval "test \"\${$as_ac_var+set}\" = set"; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371   cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h.  */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h.  */
15377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15379 #define $ac_func innocuous_$ac_func
15380
15381 /* System header to define __stub macros and hopefully few prototypes,
15382     which can conflict with char $ac_func (); below.
15383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15384     <limits.h> exists even on freestanding compilers.  */
15385
15386 #ifdef __STDC__
15387 # include <limits.h>
15388 #else
15389 # include <assert.h>
15390 #endif
15391
15392 #undef $ac_func
15393
15394 /* Override any gcc2 internal prototype to avoid an error.  */
15395 #ifdef __cplusplus
15396 extern "C"
15397 {
15398 #endif
15399 /* We use char because int might match the return type of a gcc2
15400    builtin and then its argument prototype would still apply.  */
15401 char $ac_func ();
15402 /* The GNU C library defines this for functions which it implements
15403     to always fail with ENOSYS.  Some functions are actually named
15404     something starting with __ and the normal name is an alias.  */
15405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15406 choke me
15407 #else
15408 char (*f) () = $ac_func;
15409 #endif
15410 #ifdef __cplusplus
15411 }
15412 #endif
15413
15414 int
15415 main ()
15416 {
15417 return f != $ac_func;
15418   ;
15419   return 0;
15420 }
15421 _ACEOF
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15424   (eval $ac_link) 2>conftest.er1
15425   ac_status=$?
15426   grep -v '^ *+' conftest.er1 >conftest.err
15427   rm -f conftest.er1
15428   cat conftest.err >&5
15429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); } &&
15431          { ac_try='test -z "$ac_c_werror_flag"
15432                          || test ! -s conftest.err'
15433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434   (eval $ac_try) 2>&5
15435   ac_status=$?
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); }; } &&
15438          { ac_try='test -s conftest$ac_exeext'
15439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440   (eval $ac_try) 2>&5
15441   ac_status=$?
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); }; }; then
15444   eval "$as_ac_var=yes"
15445 else
15446   echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15448
15449 eval "$as_ac_var=no"
15450 fi
15451 rm -f conftest.err conftest.$ac_objext \
15452       conftest$ac_exeext conftest.$ac_ext
15453 fi
15454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15456 if test `eval echo '${'$as_ac_var'}'` = yes; then
15457   cat >>confdefs.h <<_ACEOF
15458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15459 _ACEOF
15460
15461 fi
15462 done
15463
15464
15465
15466 for ac_header in wchar.h wctype.h
15467 do
15468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15470   echo "$as_me:$LINENO: checking for $ac_header" >&5
15471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15473   echo $ECHO_N "(cached) $ECHO_C" >&6
15474 fi
15475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15477 else
15478   # Is the header compilable?
15479 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15481 cat >conftest.$ac_ext <<_ACEOF
15482 /* confdefs.h.  */
15483 _ACEOF
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h.  */
15487 $ac_includes_default
15488 #include <$ac_header>
15489 _ACEOF
15490 rm -f conftest.$ac_objext
15491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15492   (eval $ac_compile) 2>conftest.er1
15493   ac_status=$?
15494   grep -v '^ *+' conftest.er1 >conftest.err
15495   rm -f conftest.er1
15496   cat conftest.err >&5
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); } &&
15499          { ac_try='test -z "$ac_c_werror_flag"
15500                          || test ! -s conftest.err'
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); }; } &&
15506          { ac_try='test -s conftest.$ac_objext'
15507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508   (eval $ac_try) 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; }; then
15512   ac_header_compiler=yes
15513 else
15514   echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15516
15517 ac_header_compiler=no
15518 fi
15519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15521 echo "${ECHO_T}$ac_header_compiler" >&6
15522
15523 # Is the header present?
15524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15526 cat >conftest.$ac_ext <<_ACEOF
15527 /* confdefs.h.  */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h.  */
15532 #include <$ac_header>
15533 _ACEOF
15534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15536   ac_status=$?
15537   grep -v '^ *+' conftest.er1 >conftest.err
15538   rm -f conftest.er1
15539   cat conftest.err >&5
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); } >/dev/null; then
15542   if test -s conftest.err; then
15543     ac_cpp_err=$ac_c_preproc_warn_flag
15544     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15545   else
15546     ac_cpp_err=
15547   fi
15548 else
15549   ac_cpp_err=yes
15550 fi
15551 if test -z "$ac_cpp_err"; then
15552   ac_header_preproc=yes
15553 else
15554   echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15556
15557   ac_header_preproc=no
15558 fi
15559 rm -f conftest.err conftest.$ac_ext
15560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15561 echo "${ECHO_T}$ac_header_preproc" >&6
15562
15563 # So?  What about this header?
15564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15565   yes:no: )
15566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15570     ac_header_preproc=yes
15571     ;;
15572   no:yes:* )
15573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15575     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15576 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15577     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15579     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15580 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15583     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15585     (
15586       cat <<\_ASBOX
15587 ## ------------------------------ ##
15588 ## Report this to bug-cvs@gnu.org ##
15589 ## ------------------------------ ##
15590 _ASBOX
15591     ) |
15592       sed "s/^/$as_me: WARNING:     /" >&2
15593     ;;
15594 esac
15595 echo "$as_me:$LINENO: checking for $ac_header" >&5
15596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15598   echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600   eval "$as_ac_Header=\$ac_header_preproc"
15601 fi
15602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15604
15605 fi
15606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15607   cat >>confdefs.h <<_ACEOF
15608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15609 _ACEOF
15610
15611 fi
15612
15613 done
15614
15615 case $LIBOBJS in
15616     "fnmatch.$ac_objext"   | \
15617   *" fnmatch.$ac_objext"   | \
15618     "fnmatch.$ac_objext "* | \
15619   *" fnmatch.$ac_objext "* ) ;;
15620   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
15621 esac
15622
15623 FNMATCH_H=fnmatch.h
15624
15625 fi
15626
15627
15628   if test $ac_cv_func_fnmatch_posix != yes; then
15629
15630 cat >>confdefs.h <<\_ACEOF
15631 #define fnmatch posix_fnmatch
15632 _ACEOF
15633
15634   fi
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645   :
15646
15647
15648
15649
15650
15651   echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15652 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
15653 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15654   echo $ECHO_N "(cached) $ECHO_C" >&6
15655 else
15656   cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h.  */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h.  */
15662 #include <sys/types.h>
15663 #include <$ac_cv_struct_tm>
15664
15665
15666 int
15667 main ()
15668 {
15669 static struct tm ac_aggr;
15670 if (ac_aggr.tm_zone)
15671 return 0;
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678   (eval $ac_compile) 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } &&
15685          { ac_try='test -z "$ac_c_werror_flag"
15686                          || test ! -s conftest.err'
15687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688   (eval $ac_try) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }; } &&
15692          { ac_try='test -s conftest.$ac_objext'
15693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694   (eval $ac_try) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; }; then
15698   ac_cv_member_struct_tm_tm_zone=yes
15699 else
15700   echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h.  */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h.  */
15709 #include <sys/types.h>
15710 #include <$ac_cv_struct_tm>
15711
15712
15713 int
15714 main ()
15715 {
15716 static struct tm ac_aggr;
15717 if (sizeof ac_aggr.tm_zone)
15718 return 0;
15719   ;
15720   return 0;
15721 }
15722 _ACEOF
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725   (eval $ac_compile) 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } &&
15732          { ac_try='test -z "$ac_c_werror_flag"
15733                          || test ! -s conftest.err'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; } &&
15739          { ac_try='test -s conftest.$ac_objext'
15740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741   (eval $ac_try) 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; }; then
15745   ac_cv_member_struct_tm_tm_zone=yes
15746 else
15747   echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750 ac_cv_member_struct_tm_tm_zone=no
15751 fi
15752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15753 fi
15754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15755 fi
15756 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15757 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
15758 if test $ac_cv_member_struct_tm_tm_zone = yes; then
15759
15760 cat >>confdefs.h <<_ACEOF
15761 #define HAVE_STRUCT_TM_TM_ZONE 1
15762 _ACEOF
15763
15764
15765 fi
15766
15767 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15768
15769 cat >>confdefs.h <<\_ACEOF
15770 #define HAVE_TM_ZONE 1
15771 _ACEOF
15772
15773 else
15774   echo "$as_me:$LINENO: checking for tzname" >&5
15775 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
15776 if test "${ac_cv_var_tzname+set}" = set; then
15777   echo $ECHO_N "(cached) $ECHO_C" >&6
15778 else
15779   cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h.  */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h.  */
15785 #include <time.h>
15786 #ifndef tzname /* For SGI.  */
15787 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15788 #endif
15789
15790 int
15791 main ()
15792 {
15793 atoi(*tzname);
15794   ;
15795   return 0;
15796 }
15797 _ACEOF
15798 rm -f conftest.$ac_objext conftest$ac_exeext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15800   (eval $ac_link) 2>conftest.er1
15801   ac_status=$?
15802   grep -v '^ *+' conftest.er1 >conftest.err
15803   rm -f conftest.er1
15804   cat conftest.err >&5
15805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806   (exit $ac_status); } &&
15807          { ac_try='test -z "$ac_c_werror_flag"
15808                          || test ! -s conftest.err'
15809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810   (eval $ac_try) 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); }; } &&
15814          { ac_try='test -s conftest$ac_exeext'
15815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816   (eval $ac_try) 2>&5
15817   ac_status=$?
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); }; }; then
15820   ac_cv_var_tzname=yes
15821 else
15822   echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15824
15825 ac_cv_var_tzname=no
15826 fi
15827 rm -f conftest.err conftest.$ac_objext \
15828       conftest$ac_exeext conftest.$ac_ext
15829 fi
15830 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15831 echo "${ECHO_T}$ac_cv_var_tzname" >&6
15832   if test $ac_cv_var_tzname = yes; then
15833
15834 cat >>confdefs.h <<\_ACEOF
15835 #define HAVE_TZNAME 1
15836 _ACEOF
15837
15838   fi
15839 fi
15840
15841
15842
15843
15844
15845
15846 for ac_func in gethostname
15847 do
15848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15849 echo "$as_me:$LINENO: checking for $ac_func" >&5
15850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15851 if eval "test \"\${$as_ac_var+set}\" = set"; then
15852   echo $ECHO_N "(cached) $ECHO_C" >&6
15853 else
15854   cat >conftest.$ac_ext <<_ACEOF
15855 /* confdefs.h.  */
15856 _ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h.  */
15860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15862 #define $ac_func innocuous_$ac_func
15863
15864 /* System header to define __stub macros and hopefully few prototypes,
15865     which can conflict with char $ac_func (); below.
15866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15867     <limits.h> exists even on freestanding compilers.  */
15868
15869 #ifdef __STDC__
15870 # include <limits.h>
15871 #else
15872 # include <assert.h>
15873 #endif
15874
15875 #undef $ac_func
15876
15877 /* Override any gcc2 internal prototype to avoid an error.  */
15878 #ifdef __cplusplus
15879 extern "C"
15880 {
15881 #endif
15882 /* We use char because int might match the return type of a gcc2
15883    builtin and then its argument prototype would still apply.  */
15884 char $ac_func ();
15885 /* The GNU C library defines this for functions which it implements
15886     to always fail with ENOSYS.  Some functions are actually named
15887     something starting with __ and the normal name is an alias.  */
15888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15889 choke me
15890 #else
15891 char (*f) () = $ac_func;
15892 #endif
15893 #ifdef __cplusplus
15894 }
15895 #endif
15896
15897 int
15898 main ()
15899 {
15900 return f != $ac_func;
15901   ;
15902   return 0;
15903 }
15904 _ACEOF
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15907   (eval $ac_link) 2>conftest.er1
15908   ac_status=$?
15909   grep -v '^ *+' conftest.er1 >conftest.err
15910   rm -f conftest.er1
15911   cat conftest.err >&5
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); } &&
15914          { ac_try='test -z "$ac_c_werror_flag"
15915                          || test ! -s conftest.err'
15916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917   (eval $ac_try) 2>&5
15918   ac_status=$?
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); }; } &&
15921          { ac_try='test -s conftest$ac_exeext'
15922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923   (eval $ac_try) 2>&5
15924   ac_status=$?
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); }; }; then
15927   eval "$as_ac_var=yes"
15928 else
15929   echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15931
15932 eval "$as_ac_var=no"
15933 fi
15934 rm -f conftest.err conftest.$ac_objext \
15935       conftest$ac_exeext conftest.$ac_ext
15936 fi
15937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15939 if test `eval echo '${'$as_ac_var'}'` = yes; then
15940   cat >>confdefs.h <<_ACEOF
15941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15942 _ACEOF
15943
15944 else
15945   case $LIBOBJS in
15946     "$ac_func.$ac_objext"   | \
15947   *" $ac_func.$ac_objext"   | \
15948     "$ac_func.$ac_objext "* | \
15949   *" $ac_func.$ac_objext "* ) ;;
15950   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15951 esac
15952
15953 fi
15954 done
15955
15956
15957   if test $ac_cv_func_gethostname = no; then
15958
15959
15960 for ac_func in uname
15961 do
15962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15963 echo "$as_me:$LINENO: checking for $ac_func" >&5
15964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15965 if eval "test \"\${$as_ac_var+set}\" = set"; then
15966   echo $ECHO_N "(cached) $ECHO_C" >&6
15967 else
15968   cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h.  */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h.  */
15974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15976 #define $ac_func innocuous_$ac_func
15977
15978 /* System header to define __stub macros and hopefully few prototypes,
15979     which can conflict with char $ac_func (); below.
15980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15981     <limits.h> exists even on freestanding compilers.  */
15982
15983 #ifdef __STDC__
15984 # include <limits.h>
15985 #else
15986 # include <assert.h>
15987 #endif
15988
15989 #undef $ac_func
15990
15991 /* Override any gcc2 internal prototype to avoid an error.  */
15992 #ifdef __cplusplus
15993 extern "C"
15994 {
15995 #endif
15996 /* We use char because int might match the return type of a gcc2
15997    builtin and then its argument prototype would still apply.  */
15998 char $ac_func ();
15999 /* The GNU C library defines this for functions which it implements
16000     to always fail with ENOSYS.  Some functions are actually named
16001     something starting with __ and the normal name is an alias.  */
16002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16003 choke me
16004 #else
16005 char (*f) () = $ac_func;
16006 #endif
16007 #ifdef __cplusplus
16008 }
16009 #endif
16010
16011 int
16012 main ()
16013 {
16014 return f != $ac_func;
16015   ;
16016   return 0;
16017 }
16018 _ACEOF
16019 rm -f conftest.$ac_objext conftest$ac_exeext
16020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16021   (eval $ac_link) 2>conftest.er1
16022   ac_status=$?
16023   grep -v '^ *+' conftest.er1 >conftest.err
16024   rm -f conftest.er1
16025   cat conftest.err >&5
16026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027   (exit $ac_status); } &&
16028          { ac_try='test -z "$ac_c_werror_flag"
16029                          || test ! -s conftest.err'
16030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031   (eval $ac_try) 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); }; } &&
16035          { ac_try='test -s conftest$ac_exeext'
16036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037   (eval $ac_try) 2>&5
16038   ac_status=$?
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); }; }; then
16041   eval "$as_ac_var=yes"
16042 else
16043   echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16045
16046 eval "$as_ac_var=no"
16047 fi
16048 rm -f conftest.err conftest.$ac_objext \
16049       conftest$ac_exeext conftest.$ac_ext
16050 fi
16051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16053 if test `eval echo '${'$as_ac_var'}'` = yes; then
16054   cat >>confdefs.h <<_ACEOF
16055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16056 _ACEOF
16057
16058 fi
16059 done
16060
16061
16062   fi
16063
16064
16065
16066
16067   am_getline_needs_run_time_check=no
16068   echo "$as_me:$LINENO: checking for getline" >&5
16069 echo $ECHO_N "checking for getline... $ECHO_C" >&6
16070 if test "${ac_cv_func_getline+set}" = set; then
16071   echo $ECHO_N "(cached) $ECHO_C" >&6
16072 else
16073   cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h.  */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h.  */
16079 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
16080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16081 #define getline innocuous_getline
16082
16083 /* System header to define __stub macros and hopefully few prototypes,
16084     which can conflict with char getline (); below.
16085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16086     <limits.h> exists even on freestanding compilers.  */
16087
16088 #ifdef __STDC__
16089 # include <limits.h>
16090 #else
16091 # include <assert.h>
16092 #endif
16093
16094 #undef getline
16095
16096 /* Override any gcc2 internal prototype to avoid an error.  */
16097 #ifdef __cplusplus
16098 extern "C"
16099 {
16100 #endif
16101 /* We use char because int might match the return type of a gcc2
16102    builtin and then its argument prototype would still apply.  */
16103 char getline ();
16104 /* The GNU C library defines this for functions which it implements
16105     to always fail with ENOSYS.  Some functions are actually named
16106     something starting with __ and the normal name is an alias.  */
16107 #if defined (__stub_getline) || defined (__stub___getline)
16108 choke me
16109 #else
16110 char (*f) () = getline;
16111 #endif
16112 #ifdef __cplusplus
16113 }
16114 #endif
16115
16116 int
16117 main ()
16118 {
16119 return f != getline;
16120   ;
16121   return 0;
16122 }
16123 _ACEOF
16124 rm -f conftest.$ac_objext conftest$ac_exeext
16125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16126   (eval $ac_link) 2>conftest.er1
16127   ac_status=$?
16128   grep -v '^ *+' conftest.er1 >conftest.err
16129   rm -f conftest.er1
16130   cat conftest.err >&5
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); } &&
16133          { ac_try='test -z "$ac_c_werror_flag"
16134                          || test ! -s conftest.err'
16135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136   (eval $ac_try) 2>&5
16137   ac_status=$?
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); }; } &&
16140          { ac_try='test -s conftest$ac_exeext'
16141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142   (eval $ac_try) 2>&5
16143   ac_status=$?
16144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145   (exit $ac_status); }; }; then
16146   ac_cv_func_getline=yes
16147 else
16148   echo "$as_me: failed program was:" >&5
16149 sed 's/^/| /' conftest.$ac_ext >&5
16150
16151 ac_cv_func_getline=no
16152 fi
16153 rm -f conftest.err conftest.$ac_objext \
16154       conftest$ac_exeext conftest.$ac_ext
16155 fi
16156 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
16157 echo "${ECHO_T}$ac_cv_func_getline" >&6
16158 if test $ac_cv_func_getline = yes; then
16159                 am_getline_needs_run_time_check=yes
16160 else
16161   am_cv_func_working_getline=no
16162 fi
16163
16164   if test $am_getline_needs_run_time_check = yes; then
16165     echo "$as_me:$LINENO: checking for working getline function" >&5
16166 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
16167 if test "${am_cv_func_working_getline+set}" = set; then
16168   echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
16171     if test "$cross_compiling" = yes; then
16172   am_cv_func_working_getline=no
16173 else
16174   cat >conftest.$ac_ext <<_ACEOF
16175 /* confdefs.h.  */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h.  */
16180
16181 #    include <stdio.h>
16182 #    include <stdlib.h>
16183 #    include <string.h>
16184     int main ()
16185     { /* Based on a test program from Karl Heuer.  */
16186       char *line = NULL;
16187       size_t siz = 0;
16188       int len;
16189       FILE *in = fopen ("./conftest.data", "r");
16190       if (!in)
16191         return 1;
16192       len = getline (&line, &siz, in);
16193       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
16194     }
16195
16196 _ACEOF
16197 rm -f conftest$ac_exeext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16199   (eval $ac_link) 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204   (eval $ac_try) 2>&5
16205   ac_status=$?
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); }; }; then
16208   am_cv_func_working_getline=yes
16209 else
16210   echo "$as_me: program exited with status $ac_status" >&5
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 ( exit $ac_status )
16215 am_cv_func_working_getline=no
16216 fi
16217 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16218 fi
16219 fi
16220 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
16221 echo "${ECHO_T}$am_cv_func_working_getline" >&6
16222   fi
16223
16224   if test $am_cv_func_working_getline = no; then
16225
16226 cat >>confdefs.h <<\_ACEOF
16227 #define getline gnu_getline
16228 _ACEOF
16229
16230     case $LIBOBJS in
16231     "getline.$ac_objext"   | \
16232   *" getline.$ac_objext"   | \
16233     "getline.$ac_objext "* | \
16234   *" getline.$ac_objext "* ) ;;
16235   *) LIBOBJS="$LIBOBJS getline.$ac_objext" ;;
16236 esac
16237
16238
16239     # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
16240     # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
16241     case " $LIBOBJS " in
16242     *" getndelim2.$ac_objext "* ) ;;
16243     *) case $LIBOBJS in
16244     "getndelim2.$ac_objext"   | \
16245   *" getndelim2.$ac_objext"   | \
16246     "getndelim2.$ac_objext "* | \
16247   *" getndelim2.$ac_objext "* ) ;;
16248   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
16249 esac
16250 ;;
16251     esac
16252
16253
16254
16255 for ac_func in getdelim
16256 do
16257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16258 echo "$as_me:$LINENO: checking for $ac_func" >&5
16259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16260 if eval "test \"\${$as_ac_var+set}\" = set"; then
16261   echo $ECHO_N "(cached) $ECHO_C" >&6
16262 else
16263   cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h.  */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h.  */
16269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16271 #define $ac_func innocuous_$ac_func
16272
16273 /* System header to define __stub macros and hopefully few prototypes,
16274     which can conflict with char $ac_func (); below.
16275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16276     <limits.h> exists even on freestanding compilers.  */
16277
16278 #ifdef __STDC__
16279 # include <limits.h>
16280 #else
16281 # include <assert.h>
16282 #endif
16283
16284 #undef $ac_func
16285
16286 /* Override any gcc2 internal prototype to avoid an error.  */
16287 #ifdef __cplusplus
16288 extern "C"
16289 {
16290 #endif
16291 /* We use char because int might match the return type of a gcc2
16292    builtin and then its argument prototype would still apply.  */
16293 char $ac_func ();
16294 /* The GNU C library defines this for functions which it implements
16295     to always fail with ENOSYS.  Some functions are actually named
16296     something starting with __ and the normal name is an alias.  */
16297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16298 choke me
16299 #else
16300 char (*f) () = $ac_func;
16301 #endif
16302 #ifdef __cplusplus
16303 }
16304 #endif
16305
16306 int
16307 main ()
16308 {
16309 return f != $ac_func;
16310   ;
16311   return 0;
16312 }
16313 _ACEOF
16314 rm -f conftest.$ac_objext conftest$ac_exeext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16316   (eval $ac_link) 2>conftest.er1
16317   ac_status=$?
16318   grep -v '^ *+' conftest.er1 >conftest.err
16319   rm -f conftest.er1
16320   cat conftest.err >&5
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); } &&
16323          { ac_try='test -z "$ac_c_werror_flag"
16324                          || test ! -s conftest.err'
16325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326   (eval $ac_try) 2>&5
16327   ac_status=$?
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); }; } &&
16330          { ac_try='test -s conftest$ac_exeext'
16331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332   (eval $ac_try) 2>&5
16333   ac_status=$?
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); }; }; then
16336   eval "$as_ac_var=yes"
16337 else
16338   echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16340
16341 eval "$as_ac_var=no"
16342 fi
16343 rm -f conftest.err conftest.$ac_objext \
16344       conftest$ac_exeext conftest.$ac_ext
16345 fi
16346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16348 if test `eval echo '${'$as_ac_var'}'` = yes; then
16349   cat >>confdefs.h <<_ACEOF
16350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16351 _ACEOF
16352
16353 fi
16354 done
16355
16356
16357
16358
16359
16360   fi
16361
16362
16363   # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
16364   # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
16365   case " $LIBOBJS " in
16366   *" getndelim2.$ac_objext "* ) ;;
16367   *) case $LIBOBJS in
16368     "getndelim2.$ac_objext"   | \
16369   *" getndelim2.$ac_objext"   | \
16370     "getndelim2.$ac_objext "* | \
16371   *" getndelim2.$ac_objext "* ) ;;
16372   *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" ;;
16373 esac
16374 ;;
16375   esac
16376
16377
16378
16379
16380
16381
16382
16383     :
16384
16385
16386   :
16387
16388   GETOPT_H=
16389
16390 for ac_header in getopt.h
16391 do
16392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16394   echo "$as_me:$LINENO: checking for $ac_header" >&5
16395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16397   echo $ECHO_N "(cached) $ECHO_C" >&6
16398 fi
16399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16401 else
16402   # Is the header compilable?
16403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16405 cat >conftest.$ac_ext <<_ACEOF
16406 /* confdefs.h.  */
16407 _ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h.  */
16411 $ac_includes_default
16412 #include <$ac_header>
16413 _ACEOF
16414 rm -f conftest.$ac_objext
16415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416   (eval $ac_compile) 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_objext'
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   ac_header_compiler=yes
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ac_header_compiler=no
16442 fi
16443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16445 echo "${ECHO_T}$ac_header_compiler" >&6
16446
16447 # Is the header present?
16448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16450 cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h.  */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h.  */
16456 #include <$ac_header>
16457 _ACEOF
16458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16460   ac_status=$?
16461   grep -v '^ *+' conftest.er1 >conftest.err
16462   rm -f conftest.er1
16463   cat conftest.err >&5
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); } >/dev/null; then
16466   if test -s conftest.err; then
16467     ac_cpp_err=$ac_c_preproc_warn_flag
16468     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16469   else
16470     ac_cpp_err=
16471   fi
16472 else
16473   ac_cpp_err=yes
16474 fi
16475 if test -z "$ac_cpp_err"; then
16476   ac_header_preproc=yes
16477 else
16478   echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481   ac_header_preproc=no
16482 fi
16483 rm -f conftest.err conftest.$ac_ext
16484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16485 echo "${ECHO_T}$ac_header_preproc" >&6
16486
16487 # So?  What about this header?
16488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16489   yes:no: )
16490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16494     ac_header_preproc=yes
16495     ;;
16496   no:yes:* )
16497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16509     (
16510       cat <<\_ASBOX
16511 ## ------------------------------ ##
16512 ## Report this to bug-cvs@gnu.org ##
16513 ## ------------------------------ ##
16514 _ASBOX
16515     ) |
16516       sed "s/^/$as_me: WARNING:     /" >&2
16517     ;;
16518 esac
16519 echo "$as_me:$LINENO: checking for $ac_header" >&5
16520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524   eval "$as_ac_Header=\$ac_header_preproc"
16525 fi
16526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16528
16529 fi
16530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16531   cat >>confdefs.h <<_ACEOF
16532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16533 _ACEOF
16534
16535 else
16536   GETOPT_H=getopt.h
16537 fi
16538
16539 done
16540
16541
16542 for ac_func in getopt_long_only
16543 do
16544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16545 echo "$as_me:$LINENO: checking for $ac_func" >&5
16546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16547 if eval "test \"\${$as_ac_var+set}\" = set"; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550   cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h.  */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h.  */
16556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16558 #define $ac_func innocuous_$ac_func
16559
16560 /* System header to define __stub macros and hopefully few prototypes,
16561     which can conflict with char $ac_func (); below.
16562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16563     <limits.h> exists even on freestanding compilers.  */
16564
16565 #ifdef __STDC__
16566 # include <limits.h>
16567 #else
16568 # include <assert.h>
16569 #endif
16570
16571 #undef $ac_func
16572
16573 /* Override any gcc2 internal prototype to avoid an error.  */
16574 #ifdef __cplusplus
16575 extern "C"
16576 {
16577 #endif
16578 /* We use char because int might match the return type of a gcc2
16579    builtin and then its argument prototype would still apply.  */
16580 char $ac_func ();
16581 /* The GNU C library defines this for functions which it implements
16582     to always fail with ENOSYS.  Some functions are actually named
16583     something starting with __ and the normal name is an alias.  */
16584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16585 choke me
16586 #else
16587 char (*f) () = $ac_func;
16588 #endif
16589 #ifdef __cplusplus
16590 }
16591 #endif
16592
16593 int
16594 main ()
16595 {
16596 return f != $ac_func;
16597   ;
16598   return 0;
16599 }
16600 _ACEOF
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16603   (eval $ac_link) 2>conftest.er1
16604   ac_status=$?
16605   grep -v '^ *+' conftest.er1 >conftest.err
16606   rm -f conftest.er1
16607   cat conftest.err >&5
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } &&
16610          { ac_try='test -z "$ac_c_werror_flag"
16611                          || test ! -s conftest.err'
16612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613   (eval $ac_try) 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; } &&
16617          { ac_try='test -s conftest$ac_exeext'
16618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619   (eval $ac_try) 2>&5
16620   ac_status=$?
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); }; }; then
16623   eval "$as_ac_var=yes"
16624 else
16625   echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16627
16628 eval "$as_ac_var=no"
16629 fi
16630 rm -f conftest.err conftest.$ac_objext \
16631       conftest$ac_exeext conftest.$ac_ext
16632 fi
16633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16635 if test `eval echo '${'$as_ac_var'}'` = yes; then
16636   cat >>confdefs.h <<_ACEOF
16637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16638 _ACEOF
16639
16640 else
16641   GETOPT_H=getopt.h
16642 fi
16643 done
16644
16645
16646       echo "$as_me:$LINENO: checking whether optreset is declared" >&5
16647 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
16648 if test "${ac_cv_have_decl_optreset+set}" = set; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651   cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h.  */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h.  */
16657 #include <getopt.h>
16658
16659 int
16660 main ()
16661 {
16662 #ifndef optreset
16663   char *p = (char *) optreset;
16664 #endif
16665
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest.$ac_objext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672   (eval $ac_compile) 2>conftest.er1
16673   ac_status=$?
16674   grep -v '^ *+' conftest.er1 >conftest.err
16675   rm -f conftest.er1
16676   cat conftest.err >&5
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); } &&
16679          { ac_try='test -z "$ac_c_werror_flag"
16680                          || test ! -s conftest.err'
16681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682   (eval $ac_try) 2>&5
16683   ac_status=$?
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); }; } &&
16686          { ac_try='test -s conftest.$ac_objext'
16687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688   (eval $ac_try) 2>&5
16689   ac_status=$?
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); }; }; then
16692   ac_cv_have_decl_optreset=yes
16693 else
16694   echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16696
16697 ac_cv_have_decl_optreset=no
16698 fi
16699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16700 fi
16701 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
16702 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
16703 if test $ac_cv_have_decl_optreset = yes; then
16704   GETOPT_H=getopt.h
16705 fi
16706
16707
16708   if test -n "$GETOPT_H"; then
16709
16710   GETOPT_H=getopt.h
16711   case $LIBOBJS in
16712     "getopt.$ac_objext"   | \
16713   *" getopt.$ac_objext"   | \
16714     "getopt.$ac_objext "* | \
16715   *" getopt.$ac_objext "* ) ;;
16716   *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
16717 esac
16718
16719   case $LIBOBJS in
16720     "getopt1.$ac_objext"   | \
16721   *" getopt1.$ac_objext"   | \
16722     "getopt1.$ac_objext "* | \
16723   *" getopt1.$ac_objext "* ) ;;
16724   *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
16725 esac
16726
16727
16728 cat >>confdefs.h <<\_ACEOF
16729 #define __GETOPT_PREFIX rpl_
16730 _ACEOF
16731
16732
16733
16734   fi
16735
16736
16737
16738   :
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748 for ac_header in OS.h
16749 do
16750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16752   echo "$as_me:$LINENO: checking for $ac_header" >&5
16753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16755   echo $ECHO_N "(cached) $ECHO_C" >&6
16756 fi
16757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16759 else
16760   # Is the header compilable?
16761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16763 cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h.  */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h.  */
16769 $ac_includes_default
16770 #include <$ac_header>
16771 _ACEOF
16772 rm -f conftest.$ac_objext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16774   (eval $ac_compile) 2>conftest.er1
16775   ac_status=$?
16776   grep -v '^ *+' conftest.er1 >conftest.err
16777   rm -f conftest.er1
16778   cat conftest.err >&5
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); } &&
16781          { ac_try='test -z "$ac_c_werror_flag"
16782                          || test ! -s conftest.err'
16783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784   (eval $ac_try) 2>&5
16785   ac_status=$?
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); }; } &&
16788          { ac_try='test -s conftest.$ac_objext'
16789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790   (eval $ac_try) 2>&5
16791   ac_status=$?
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); }; }; then
16794   ac_header_compiler=yes
16795 else
16796   echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16798
16799 ac_header_compiler=no
16800 fi
16801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16803 echo "${ECHO_T}$ac_header_compiler" >&6
16804
16805 # Is the header present?
16806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16808 cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h.  */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h.  */
16814 #include <$ac_header>
16815 _ACEOF
16816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16817   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
16824   if test -s conftest.err; then
16825     ac_cpp_err=$ac_c_preproc_warn_flag
16826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16827   else
16828     ac_cpp_err=
16829   fi
16830 else
16831   ac_cpp_err=yes
16832 fi
16833 if test -z "$ac_cpp_err"; then
16834   ac_header_preproc=yes
16835 else
16836   echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839   ac_header_preproc=no
16840 fi
16841 rm -f conftest.err conftest.$ac_ext
16842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16843 echo "${ECHO_T}$ac_header_preproc" >&6
16844
16845 # So?  What about this header?
16846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16847   yes:no: )
16848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16852     ac_header_preproc=yes
16853     ;;
16854   no:yes:* )
16855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16867     (
16868       cat <<\_ASBOX
16869 ## ------------------------------ ##
16870 ## Report this to bug-cvs@gnu.org ##
16871 ## ------------------------------ ##
16872 _ASBOX
16873     ) |
16874       sed "s/^/$as_me: WARNING:     /" >&2
16875     ;;
16876 esac
16877 echo "$as_me:$LINENO: checking for $ac_header" >&5
16878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16880   echo $ECHO_N "(cached) $ECHO_C" >&6
16881 else
16882   eval "$as_ac_Header=\$ac_header_preproc"
16883 fi
16884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16886
16887 fi
16888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16889   cat >>confdefs.h <<_ACEOF
16890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16891 _ACEOF
16892
16893 fi
16894
16895 done
16896
16897
16898 for ac_func in getpagesize
16899 do
16900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16901 echo "$as_me:$LINENO: checking for $ac_func" >&5
16902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16903 if eval "test \"\${$as_ac_var+set}\" = set"; then
16904   echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906   cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h.  */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h.  */
16912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16914 #define $ac_func innocuous_$ac_func
16915
16916 /* System header to define __stub macros and hopefully few prototypes,
16917     which can conflict with char $ac_func (); below.
16918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16919     <limits.h> exists even on freestanding compilers.  */
16920
16921 #ifdef __STDC__
16922 # include <limits.h>
16923 #else
16924 # include <assert.h>
16925 #endif
16926
16927 #undef $ac_func
16928
16929 /* Override any gcc2 internal prototype to avoid an error.  */
16930 #ifdef __cplusplus
16931 extern "C"
16932 {
16933 #endif
16934 /* We use char because int might match the return type of a gcc2
16935    builtin and then its argument prototype would still apply.  */
16936 char $ac_func ();
16937 /* The GNU C library defines this for functions which it implements
16938     to always fail with ENOSYS.  Some functions are actually named
16939     something starting with __ and the normal name is an alias.  */
16940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16941 choke me
16942 #else
16943 char (*f) () = $ac_func;
16944 #endif
16945 #ifdef __cplusplus
16946 }
16947 #endif
16948
16949 int
16950 main ()
16951 {
16952 return f != $ac_func;
16953   ;
16954   return 0;
16955 }
16956 _ACEOF
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959   (eval $ac_link) 2>conftest.er1
16960   ac_status=$?
16961   grep -v '^ *+' conftest.er1 >conftest.err
16962   rm -f conftest.er1
16963   cat conftest.err >&5
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); } &&
16966          { ac_try='test -z "$ac_c_werror_flag"
16967                          || test ! -s conftest.err'
16968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969   (eval $ac_try) 2>&5
16970   ac_status=$?
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); }; } &&
16973          { ac_try='test -s conftest$ac_exeext'
16974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975   (eval $ac_try) 2>&5
16976   ac_status=$?
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); }; }; then
16979   eval "$as_ac_var=yes"
16980 else
16981   echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984 eval "$as_ac_var=no"
16985 fi
16986 rm -f conftest.err conftest.$ac_objext \
16987       conftest$ac_exeext conftest.$ac_ext
16988 fi
16989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16991 if test `eval echo '${'$as_ac_var'}'` = yes; then
16992   cat >>confdefs.h <<_ACEOF
16993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16994 _ACEOF
16995
16996 fi
16997 done
16998
16999
17000
17001
17002   :
17003
17004
17005
17006
17007
17008     case $LIBOBJS in
17009     "getpass.$ac_objext"   | \
17010   *" getpass.$ac_objext"   | \
17011     "getpass.$ac_objext "* | \
17012   *" getpass.$ac_objext "* ) ;;
17013   *) LIBOBJS="$LIBOBJS getpass.$ac_objext" ;;
17014 esac
17015
17016
17017
17018   :
17019
17020
17021
17022
17023
17024
17025   :
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043   :
17044
17045
17046 cat >>confdefs.h <<\_ACEOF
17047 #define getpass gnu_getpass
17048 _ACEOF
17049
17050
17051
17052
17053
17054
17055   :
17056
17057
17058
17059
17060
17061
17062
17063
17064  echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
17065 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
17066 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
17067   echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069   if test "$cross_compiling" = yes; then
17070          jm_cv_func_gettimeofday_clobber=yes
17071 else
17072   cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h.  */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h.  */
17078
17079 #include <stdio.h>
17080 #include <string.h>
17081
17082 #if TIME_WITH_SYS_TIME
17083 # include <sys/time.h>
17084 # include <time.h>
17085 #else
17086 # if HAVE_SYS_TIME_H
17087 #  include <sys/time.h>
17088 # else
17089 #  include <time.h>
17090 # endif
17091 #endif
17092
17093 #include <stdlib.h>
17094
17095 int
17096 main ()
17097 {
17098   time_t t = 0;
17099   struct tm *lt;
17100   struct tm saved_lt;
17101   struct timeval tv;
17102   lt = localtime (&t);
17103   saved_lt = *lt;
17104   gettimeofday (&tv, NULL);
17105   if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
17106     exit (1);
17107
17108   exit (0);
17109 }
17110
17111 _ACEOF
17112 rm -f conftest$ac_exeext
17113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17114   (eval $ac_link) 2>&5
17115   ac_status=$?
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119   (eval $ac_try) 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); }; }; then
17123   jm_cv_func_gettimeofday_clobber=no
17124 else
17125   echo "$as_me: program exited with status $ac_status" >&5
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17128
17129 ( exit $ac_status )
17130 jm_cv_func_gettimeofday_clobber=yes
17131 fi
17132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17133 fi
17134
17135 fi
17136 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
17137 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
17138   if test $jm_cv_func_gettimeofday_clobber = yes; then
17139
17140   case $LIBOBJS in
17141     "gettimeofday.$ac_objext"   | \
17142   *" gettimeofday.$ac_objext"   | \
17143     "gettimeofday.$ac_objext "* | \
17144   *" gettimeofday.$ac_objext "* ) ;;
17145   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
17146 esac
17147
17148
17149 cat >>confdefs.h <<\_ACEOF
17150 #define gmtime rpl_gmtime
17151 _ACEOF
17152
17153
17154 cat >>confdefs.h <<\_ACEOF
17155 #define localtime rpl_localtime
17156 _ACEOF
17157
17158
17159
17160
17161 cat >>confdefs.h <<\_ACEOF
17162 #define gettimeofday rpl_gettimeofday
17163 _ACEOF
17164
17165
17166 cat >>confdefs.h <<\_ACEOF
17167 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
17168 _ACEOF
17169
17170
17171
17172
17173   fi
17174
17175
17176   echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
17177 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
17178 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
17179   echo $ECHO_N "(cached) $ECHO_C" >&6
17180 else
17181   if test "$cross_compiling" = yes; then
17182   ac_cv_func_lstat_empty_string_bug=yes
17183 else
17184   cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h.  */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h.  */
17190 $ac_includes_default
17191 int
17192 main ()
17193 {
17194 struct stat sbuf;
17195   exit (lstat ("", &sbuf) ? 1 : 0);
17196   ;
17197   return 0;
17198 }
17199 _ACEOF
17200 rm -f conftest$ac_exeext
17201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17202   (eval $ac_link) 2>&5
17203   ac_status=$?
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207   (eval $ac_try) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; }; then
17211   ac_cv_func_lstat_empty_string_bug=yes
17212 else
17213   echo "$as_me: program exited with status $ac_status" >&5
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17216
17217 ( exit $ac_status )
17218 ac_cv_func_lstat_empty_string_bug=no
17219 fi
17220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17221 fi
17222 fi
17223 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
17224 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
17225 if test $ac_cv_func_lstat_empty_string_bug = yes; then
17226   case $LIBOBJS in
17227     "lstat.$ac_objext"   | \
17228   *" lstat.$ac_objext"   | \
17229     "lstat.$ac_objext "* | \
17230   *" lstat.$ac_objext "* ) ;;
17231   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
17232 esac
17233
17234
17235 cat >>confdefs.h <<_ACEOF
17236 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
17237 _ACEOF
17238
17239 fi
17240
17241     if test $ac_cv_func_lstat_empty_string_bug = yes; then
17242
17243
17244   :
17245
17246   fi
17247
17248
17249 for ac_header in stdlib.h
17250 do
17251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17253   echo "$as_me:$LINENO: checking for $ac_header" >&5
17254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17256   echo $ECHO_N "(cached) $ECHO_C" >&6
17257 fi
17258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17260 else
17261   # Is the header compilable?
17262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17264 cat >conftest.$ac_ext <<_ACEOF
17265 /* confdefs.h.  */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h.  */
17270 $ac_includes_default
17271 #include <$ac_header>
17272 _ACEOF
17273 rm -f conftest.$ac_objext
17274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17275   (eval $ac_compile) 2>conftest.er1
17276   ac_status=$?
17277   grep -v '^ *+' conftest.er1 >conftest.err
17278   rm -f conftest.er1
17279   cat conftest.err >&5
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); } &&
17282          { ac_try='test -z "$ac_c_werror_flag"
17283                          || test ! -s conftest.err'
17284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285   (eval $ac_try) 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; } &&
17289          { ac_try='test -s conftest.$ac_objext'
17290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291   (eval $ac_try) 2>&5
17292   ac_status=$?
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); }; }; then
17295   ac_header_compiler=yes
17296 else
17297   echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17299
17300 ac_header_compiler=no
17301 fi
17302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17304 echo "${ECHO_T}$ac_header_compiler" >&6
17305
17306 # Is the header present?
17307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17309 cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h.  */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h.  */
17315 #include <$ac_header>
17316 _ACEOF
17317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17319   ac_status=$?
17320   grep -v '^ *+' conftest.er1 >conftest.err
17321   rm -f conftest.er1
17322   cat conftest.err >&5
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); } >/dev/null; then
17325   if test -s conftest.err; then
17326     ac_cpp_err=$ac_c_preproc_warn_flag
17327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17328   else
17329     ac_cpp_err=
17330   fi
17331 else
17332   ac_cpp_err=yes
17333 fi
17334 if test -z "$ac_cpp_err"; then
17335   ac_header_preproc=yes
17336 else
17337   echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340   ac_header_preproc=no
17341 fi
17342 rm -f conftest.err conftest.$ac_ext
17343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17344 echo "${ECHO_T}$ac_header_preproc" >&6
17345
17346 # So?  What about this header?
17347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17348   yes:no: )
17349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17353     ac_header_preproc=yes
17354     ;;
17355   no:yes:* )
17356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17368     (
17369       cat <<\_ASBOX
17370 ## ------------------------------ ##
17371 ## Report this to bug-cvs@gnu.org ##
17372 ## ------------------------------ ##
17373 _ASBOX
17374     ) |
17375       sed "s/^/$as_me: WARNING:     /" >&2
17376     ;;
17377 esac
17378 echo "$as_me:$LINENO: checking for $ac_header" >&5
17379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17381   echo $ECHO_N "(cached) $ECHO_C" >&6
17382 else
17383   eval "$as_ac_Header=\$ac_header_preproc"
17384 fi
17385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17387
17388 fi
17389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17390   cat >>confdefs.h <<_ACEOF
17391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17392 _ACEOF
17393
17394 fi
17395
17396 done
17397
17398 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
17399 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
17400 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
17401   echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403   if test "$cross_compiling" = yes; then
17404   ac_cv_func_malloc_0_nonnull=no
17405 else
17406   cat >conftest.$ac_ext <<_ACEOF
17407 /* confdefs.h.  */
17408 _ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h.  */
17412 #if STDC_HEADERS || HAVE_STDLIB_H
17413 # include <stdlib.h>
17414 #else
17415 char *malloc ();
17416 #endif
17417
17418 int
17419 main ()
17420 {
17421 exit (malloc (0) ? 0 : 1);
17422   ;
17423   return 0;
17424 }
17425 _ACEOF
17426 rm -f conftest$ac_exeext
17427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17428   (eval $ac_link) 2>&5
17429   ac_status=$?
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433   (eval $ac_try) 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; }; then
17437   ac_cv_func_malloc_0_nonnull=yes
17438 else
17439   echo "$as_me: program exited with status $ac_status" >&5
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443 ( exit $ac_status )
17444 ac_cv_func_malloc_0_nonnull=no
17445 fi
17446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17447 fi
17448 fi
17449 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
17450 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
17451 if test $ac_cv_func_malloc_0_nonnull = yes; then
17452
17453 cat >>confdefs.h <<\_ACEOF
17454 #define HAVE_MALLOC 1
17455 _ACEOF
17456
17457 else
17458   cat >>confdefs.h <<\_ACEOF
17459 #define HAVE_MALLOC 0
17460 _ACEOF
17461
17462    case $LIBOBJS in
17463     "malloc.$ac_objext"   | \
17464   *" malloc.$ac_objext"   | \
17465     "malloc.$ac_objext "* | \
17466   *" malloc.$ac_objext "* ) ;;
17467   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
17468 esac
17469
17470
17471 cat >>confdefs.h <<\_ACEOF
17472 #define malloc rpl_malloc
17473 _ACEOF
17474
17475 fi
17476
17477
17478
17479
17480
17481
17482
17483   :
17484
17485
17486
17487 for ac_func in memmove
17488 do
17489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17490 echo "$as_me:$LINENO: checking for $ac_func" >&5
17491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17492 if eval "test \"\${$as_ac_var+set}\" = set"; then
17493   echo $ECHO_N "(cached) $ECHO_C" >&6
17494 else
17495   cat >conftest.$ac_ext <<_ACEOF
17496 /* confdefs.h.  */
17497 _ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h.  */
17501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17503 #define $ac_func innocuous_$ac_func
17504
17505 /* System header to define __stub macros and hopefully few prototypes,
17506     which can conflict with char $ac_func (); below.
17507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17508     <limits.h> exists even on freestanding compilers.  */
17509
17510 #ifdef __STDC__
17511 # include <limits.h>
17512 #else
17513 # include <assert.h>
17514 #endif
17515
17516 #undef $ac_func
17517
17518 /* Override any gcc2 internal prototype to avoid an error.  */
17519 #ifdef __cplusplus
17520 extern "C"
17521 {
17522 #endif
17523 /* We use char because int might match the return type of a gcc2
17524    builtin and then its argument prototype would still apply.  */
17525 char $ac_func ();
17526 /* The GNU C library defines this for functions which it implements
17527     to always fail with ENOSYS.  Some functions are actually named
17528     something starting with __ and the normal name is an alias.  */
17529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17530 choke me
17531 #else
17532 char (*f) () = $ac_func;
17533 #endif
17534 #ifdef __cplusplus
17535 }
17536 #endif
17537
17538 int
17539 main ()
17540 {
17541 return f != $ac_func;
17542   ;
17543   return 0;
17544 }
17545 _ACEOF
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548   (eval $ac_link) 2>conftest.er1
17549   ac_status=$?
17550   grep -v '^ *+' conftest.er1 >conftest.err
17551   rm -f conftest.er1
17552   cat conftest.err >&5
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); } &&
17555          { ac_try='test -z "$ac_c_werror_flag"
17556                          || test ! -s conftest.err'
17557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558   (eval $ac_try) 2>&5
17559   ac_status=$?
17560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561   (exit $ac_status); }; } &&
17562          { ac_try='test -s conftest$ac_exeext'
17563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564   (eval $ac_try) 2>&5
17565   ac_status=$?
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); }; }; then
17568   eval "$as_ac_var=yes"
17569 else
17570   echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17572
17573 eval "$as_ac_var=no"
17574 fi
17575 rm -f conftest.err conftest.$ac_objext \
17576       conftest$ac_exeext conftest.$ac_ext
17577 fi
17578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17580 if test `eval echo '${'$as_ac_var'}'` = yes; then
17581   cat >>confdefs.h <<_ACEOF
17582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17583 _ACEOF
17584
17585 else
17586   case $LIBOBJS in
17587     "$ac_func.$ac_objext"   | \
17588   *" $ac_func.$ac_objext"   | \
17589     "$ac_func.$ac_objext "* | \
17590   *" $ac_func.$ac_objext "* ) ;;
17591   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
17592 esac
17593
17594 fi
17595 done
17596
17597
17598   if test $ac_cv_func_memmove = no; then
17599
17600   :
17601
17602   fi
17603
17604
17605 for ac_func in mkstemp
17606 do
17607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17608 echo "$as_me:$LINENO: checking for $ac_func" >&5
17609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17610 if eval "test \"\${$as_ac_var+set}\" = set"; then
17611   echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613   cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h.  */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h.  */
17619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17621 #define $ac_func innocuous_$ac_func
17622
17623 /* System header to define __stub macros and hopefully few prototypes,
17624     which can conflict with char $ac_func (); below.
17625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17626     <limits.h> exists even on freestanding compilers.  */
17627
17628 #ifdef __STDC__
17629 # include <limits.h>
17630 #else
17631 # include <assert.h>
17632 #endif
17633
17634 #undef $ac_func
17635
17636 /* Override any gcc2 internal prototype to avoid an error.  */
17637 #ifdef __cplusplus
17638 extern "C"
17639 {
17640 #endif
17641 /* We use char because int might match the return type of a gcc2
17642    builtin and then its argument prototype would still apply.  */
17643 char $ac_func ();
17644 /* The GNU C library defines this for functions which it implements
17645     to always fail with ENOSYS.  Some functions are actually named
17646     something starting with __ and the normal name is an alias.  */
17647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17648 choke me
17649 #else
17650 char (*f) () = $ac_func;
17651 #endif
17652 #ifdef __cplusplus
17653 }
17654 #endif
17655
17656 int
17657 main ()
17658 {
17659 return f != $ac_func;
17660   ;
17661   return 0;
17662 }
17663 _ACEOF
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17666   (eval $ac_link) 2>conftest.er1
17667   ac_status=$?
17668   grep -v '^ *+' conftest.er1 >conftest.err
17669   rm -f conftest.er1
17670   cat conftest.err >&5
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); } &&
17673          { ac_try='test -z "$ac_c_werror_flag"
17674                          || test ! -s conftest.err'
17675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676   (eval $ac_try) 2>&5
17677   ac_status=$?
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); }; } &&
17680          { ac_try='test -s conftest$ac_exeext'
17681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682   (eval $ac_try) 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); }; }; then
17686   eval "$as_ac_var=yes"
17687 else
17688   echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17690
17691 eval "$as_ac_var=no"
17692 fi
17693 rm -f conftest.err conftest.$ac_objext \
17694       conftest$ac_exeext conftest.$ac_ext
17695 fi
17696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17698 if test `eval echo '${'$as_ac_var'}'` = yes; then
17699   cat >>confdefs.h <<_ACEOF
17700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17701 _ACEOF
17702
17703 else
17704   case $LIBOBJS in
17705     "$ac_func.$ac_objext"   | \
17706   *" $ac_func.$ac_objext"   | \
17707     "$ac_func.$ac_objext "* | \
17708   *" $ac_func.$ac_objext "* ) ;;
17709   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
17710 esac
17711
17712 fi
17713 done
17714
17715
17716   if test $ac_cv_func_mkstemp = no; then
17717     gl_cv_func_mkstemp_limitations=yes
17718   else
17719     echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
17720 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
17721 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
17722   echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724
17725         if test "$cross_compiling" = yes; then
17726   gl_cv_func_mkstemp_limitations=yes
17727
17728 else
17729   cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735
17736 #         include <stdlib.h>
17737           int main ()
17738           {
17739             int i;
17740             for (i = 0; i < 70; i++)
17741               {
17742                 char template[] = "conftestXXXXXX";
17743                 int fd = mkstemp (template);
17744                 if (fd == -1)
17745                   exit (1);
17746                 close (fd);
17747               }
17748             exit (0);
17749           }
17750
17751 _ACEOF
17752 rm -f conftest$ac_exeext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754   (eval $ac_link) 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759   (eval $ac_try) 2>&5
17760   ac_status=$?
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); }; }; then
17763   gl_cv_func_mkstemp_limitations=no
17764 else
17765   echo "$as_me: program exited with status $ac_status" >&5
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17768
17769 ( exit $ac_status )
17770 gl_cv_func_mkstemp_limitations=yes
17771 fi
17772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17773 fi
17774
17775
17776 fi
17777 echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
17778 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6
17779   fi
17780
17781   if test $gl_cv_func_mkstemp_limitations = yes; then
17782     case $LIBOBJS in
17783     "mkstemp.$ac_objext"   | \
17784   *" mkstemp.$ac_objext"   | \
17785     "mkstemp.$ac_objext "* | \
17786   *" mkstemp.$ac_objext "* ) ;;
17787   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
17788 esac
17789
17790     case $LIBOBJS in
17791     "tempname.$ac_objext"   | \
17792   *" tempname.$ac_objext"   | \
17793     "tempname.$ac_objext "* | \
17794   *" tempname.$ac_objext "* ) ;;
17795   *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
17796 esac
17797
17798
17799 cat >>confdefs.h <<\_ACEOF
17800 #define mkstemp rpl_mkstemp
17801 _ACEOF
17802
17803
17804
17805
17806
17807
17808   :
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821 for ac_header in stdint.h
17822 do
17823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17825   echo "$as_me:$LINENO: checking for $ac_header" >&5
17826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17828   echo $ECHO_N "(cached) $ECHO_C" >&6
17829 fi
17830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17832 else
17833   # Is the header compilable?
17834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17836 cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h.  */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h.  */
17842 $ac_includes_default
17843 #include <$ac_header>
17844 _ACEOF
17845 rm -f conftest.$ac_objext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847   (eval $ac_compile) 2>conftest.er1
17848   ac_status=$?
17849   grep -v '^ *+' conftest.er1 >conftest.err
17850   rm -f conftest.er1
17851   cat conftest.err >&5
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); } &&
17854          { ac_try='test -z "$ac_c_werror_flag"
17855                          || test ! -s conftest.err'
17856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857   (eval $ac_try) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); }; } &&
17861          { ac_try='test -s conftest.$ac_objext'
17862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863   (eval $ac_try) 2>&5
17864   ac_status=$?
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); }; }; then
17867   ac_header_compiler=yes
17868 else
17869   echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872 ac_header_compiler=no
17873 fi
17874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17876 echo "${ECHO_T}$ac_header_compiler" >&6
17877
17878 # Is the header present?
17879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17881 cat >conftest.$ac_ext <<_ACEOF
17882 /* confdefs.h.  */
17883 _ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h.  */
17887 #include <$ac_header>
17888 _ACEOF
17889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17891   ac_status=$?
17892   grep -v '^ *+' conftest.er1 >conftest.err
17893   rm -f conftest.er1
17894   cat conftest.err >&5
17895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896   (exit $ac_status); } >/dev/null; then
17897   if test -s conftest.err; then
17898     ac_cpp_err=$ac_c_preproc_warn_flag
17899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17900   else
17901     ac_cpp_err=
17902   fi
17903 else
17904   ac_cpp_err=yes
17905 fi
17906 if test -z "$ac_cpp_err"; then
17907   ac_header_preproc=yes
17908 else
17909   echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17911
17912   ac_header_preproc=no
17913 fi
17914 rm -f conftest.err conftest.$ac_ext
17915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17916 echo "${ECHO_T}$ac_header_preproc" >&6
17917
17918 # So?  What about this header?
17919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17920   yes:no: )
17921     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17925     ac_header_preproc=yes
17926     ;;
17927   no:yes:* )
17928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17930     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17931 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17932     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17934     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17935 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17938     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17940     (
17941       cat <<\_ASBOX
17942 ## ------------------------------ ##
17943 ## Report this to bug-cvs@gnu.org ##
17944 ## ------------------------------ ##
17945 _ASBOX
17946     ) |
17947       sed "s/^/$as_me: WARNING:     /" >&2
17948     ;;
17949 esac
17950 echo "$as_me:$LINENO: checking for $ac_header" >&5
17951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17953   echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955   eval "$as_ac_Header=\$ac_header_preproc"
17956 fi
17957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17959
17960 fi
17961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17962   cat >>confdefs.h <<_ACEOF
17963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17964 _ACEOF
17965
17966 fi
17967
17968 done
17969
17970
17971
17972 for ac_func in __secure_getenv gettimeofday
17973 do
17974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17975 echo "$as_me:$LINENO: checking for $ac_func" >&5
17976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17977 if eval "test \"\${$as_ac_var+set}\" = set"; then
17978   echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17980   cat >conftest.$ac_ext <<_ACEOF
17981 /* confdefs.h.  */
17982 _ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h.  */
17986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17988 #define $ac_func innocuous_$ac_func
17989
17990 /* System header to define __stub macros and hopefully few prototypes,
17991     which can conflict with char $ac_func (); below.
17992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17993     <limits.h> exists even on freestanding compilers.  */
17994
17995 #ifdef __STDC__
17996 # include <limits.h>
17997 #else
17998 # include <assert.h>
17999 #endif
18000
18001 #undef $ac_func
18002
18003 /* Override any gcc2 internal prototype to avoid an error.  */
18004 #ifdef __cplusplus
18005 extern "C"
18006 {
18007 #endif
18008 /* We use char because int might match the return type of a gcc2
18009    builtin and then its argument prototype would still apply.  */
18010 char $ac_func ();
18011 /* The GNU C library defines this for functions which it implements
18012     to always fail with ENOSYS.  Some functions are actually named
18013     something starting with __ and the normal name is an alias.  */
18014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18015 choke me
18016 #else
18017 char (*f) () = $ac_func;
18018 #endif
18019 #ifdef __cplusplus
18020 }
18021 #endif
18022
18023 int
18024 main ()
18025 {
18026 return f != $ac_func;
18027   ;
18028   return 0;
18029 }
18030 _ACEOF
18031 rm -f conftest.$ac_objext conftest$ac_exeext
18032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18033   (eval $ac_link) 2>conftest.er1
18034   ac_status=$?
18035   grep -v '^ *+' conftest.er1 >conftest.err
18036   rm -f conftest.er1
18037   cat conftest.err >&5
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); } &&
18040          { ac_try='test -z "$ac_c_werror_flag"
18041                          || test ! -s conftest.err'
18042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043   (eval $ac_try) 2>&5
18044   ac_status=$?
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); }; } &&
18047          { ac_try='test -s conftest$ac_exeext'
18048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049   (eval $ac_try) 2>&5
18050   ac_status=$?
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); }; }; then
18053   eval "$as_ac_var=yes"
18054 else
18055   echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18057
18058 eval "$as_ac_var=no"
18059 fi
18060 rm -f conftest.err conftest.$ac_objext \
18061       conftest$ac_exeext conftest.$ac_ext
18062 fi
18063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18065 if test `eval echo '${'$as_ac_var'}'` = yes; then
18066   cat >>confdefs.h <<_ACEOF
18067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18068 _ACEOF
18069
18070 fi
18071 done
18072
18073
18074   :
18075
18076
18077
18078
18079
18080
18081
18082   fi
18083
18084
18085
18086   if test $ac_cv_func_working_mktime = no; then
18087
18088 cat >>confdefs.h <<\_ACEOF
18089 #define mktime rpl_mktime
18090 _ACEOF
18091
18092     :
18093   fi
18094
18095
18096  nanosleep_save_libs=$LIBS
18097
18098  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
18099  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
18100  echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
18101 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
18102 if test "${ac_cv_search_nanosleep+set}" = set; then
18103   echo $ECHO_N "(cached) $ECHO_C" >&6
18104 else
18105   ac_func_search_save_LIBS=$LIBS
18106 ac_cv_search_nanosleep=no
18107 cat >conftest.$ac_ext <<_ACEOF
18108 /* confdefs.h.  */
18109 _ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h.  */
18113
18114 /* Override any gcc2 internal prototype to avoid an error.  */
18115 #ifdef __cplusplus
18116 extern "C"
18117 #endif
18118 /* We use char because int might match the return type of a gcc2
18119    builtin and then its argument prototype would still apply.  */
18120 char nanosleep ();
18121 int
18122 main ()
18123 {
18124 nanosleep ();
18125   ;
18126   return 0;
18127 }
18128 _ACEOF
18129 rm -f conftest.$ac_objext conftest$ac_exeext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131   (eval $ac_link) 2>conftest.er1
18132   ac_status=$?
18133   grep -v '^ *+' conftest.er1 >conftest.err
18134   rm -f conftest.er1
18135   cat conftest.err >&5
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); } &&
18138          { ac_try='test -z "$ac_c_werror_flag"
18139                          || test ! -s conftest.err'
18140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141   (eval $ac_try) 2>&5
18142   ac_status=$?
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); }; } &&
18145          { ac_try='test -s conftest$ac_exeext'
18146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147   (eval $ac_try) 2>&5
18148   ac_status=$?
18149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150   (exit $ac_status); }; }; then
18151   ac_cv_search_nanosleep="none required"
18152 else
18153   echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18155
18156 fi
18157 rm -f conftest.err conftest.$ac_objext \
18158       conftest$ac_exeext conftest.$ac_ext
18159 if test "$ac_cv_search_nanosleep" = no; then
18160   for ac_lib in rt posix4; do
18161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18162     cat >conftest.$ac_ext <<_ACEOF
18163 /* confdefs.h.  */
18164 _ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h.  */
18168
18169 /* Override any gcc2 internal prototype to avoid an error.  */
18170 #ifdef __cplusplus
18171 extern "C"
18172 #endif
18173 /* We use char because int might match the return type of a gcc2
18174    builtin and then its argument prototype would still apply.  */
18175 char nanosleep ();
18176 int
18177 main ()
18178 {
18179 nanosleep ();
18180   ;
18181   return 0;
18182 }
18183 _ACEOF
18184 rm -f conftest.$ac_objext conftest$ac_exeext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18186   (eval $ac_link) 2>conftest.er1
18187   ac_status=$?
18188   grep -v '^ *+' conftest.er1 >conftest.err
18189   rm -f conftest.er1
18190   cat conftest.err >&5
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } &&
18193          { ac_try='test -z "$ac_c_werror_flag"
18194                          || test ! -s conftest.err'
18195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196   (eval $ac_try) 2>&5
18197   ac_status=$?
18198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199   (exit $ac_status); }; } &&
18200          { ac_try='test -s conftest$ac_exeext'
18201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202   (eval $ac_try) 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); }; }; then
18206   ac_cv_search_nanosleep="-l$ac_lib"
18207 break
18208 else
18209   echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18211
18212 fi
18213 rm -f conftest.err conftest.$ac_objext \
18214       conftest$ac_exeext conftest.$ac_ext
18215   done
18216 fi
18217 LIBS=$ac_func_search_save_LIBS
18218 fi
18219 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
18220 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
18221 if test "$ac_cv_search_nanosleep" != no; then
18222   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
18223   test "$ac_cv_search_nanosleep" = "none required" ||
18224                  LIB_NANOSLEEP=$ac_cv_search_nanosleep
18225 fi
18226
18227
18228
18229  echo "$as_me:$LINENO: checking whether nanosleep works" >&5
18230 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
18231 if test "${jm_cv_func_nanosleep_works+set}" = set; then
18232   echo $ECHO_N "(cached) $ECHO_C" >&6
18233 else
18234
18235
18236
18237   :
18238
18239
18240
18241
18242
18243    if test "$cross_compiling" = yes; then
18244          jm_cv_func_nanosleep_works=no
18245 else
18246   cat >conftest.$ac_ext <<_ACEOF
18247 /* confdefs.h.  */
18248 _ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h.  */
18252
18253 #   if TIME_WITH_SYS_TIME
18254 #    include <sys/time.h>
18255 #    include <time.h>
18256 #   else
18257 #    if HAVE_SYS_TIME_H
18258 #     include <sys/time.h>
18259 #    else
18260 #     include <time.h>
18261 #    endif
18262 #   endif
18263
18264     int
18265     main ()
18266     {
18267       struct timespec ts_sleep, ts_remaining;
18268       ts_sleep.tv_sec = 0;
18269       ts_sleep.tv_nsec = 1;
18270       exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
18271     }
18272
18273 _ACEOF
18274 rm -f conftest$ac_exeext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18276   (eval $ac_link) 2>&5
18277   ac_status=$?
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281   (eval $ac_try) 2>&5
18282   ac_status=$?
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); }; }; then
18285   jm_cv_func_nanosleep_works=yes
18286 else
18287   echo "$as_me: program exited with status $ac_status" >&5
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18290
18291 ( exit $ac_status )
18292 jm_cv_func_nanosleep_works=no
18293 fi
18294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18295 fi
18296
18297 fi
18298 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
18299 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
18300   if test $jm_cv_func_nanosleep_works = no; then
18301     case $LIBOBJS in
18302     "nanosleep.$ac_objext"   | \
18303   *" nanosleep.$ac_objext"   | \
18304     "nanosleep.$ac_objext "* | \
18305   *" nanosleep.$ac_objext "* ) ;;
18306   *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" ;;
18307 esac
18308
18309
18310 cat >>confdefs.h <<\_ACEOF
18311 #define nanosleep rpl_nanosleep
18312 _ACEOF
18313
18314
18315
18316   :
18317
18318
18319
18320
18321
18322
18323   fi
18324
18325  LIBS=$nanosleep_save_libs
18326
18327
18328
18329   :
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341 for ac_func in readlink
18342 do
18343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18344 echo "$as_me:$LINENO: checking for $ac_func" >&5
18345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18346 if eval "test \"\${$as_ac_var+set}\" = set"; then
18347   echo $ECHO_N "(cached) $ECHO_C" >&6
18348 else
18349   cat >conftest.$ac_ext <<_ACEOF
18350 /* confdefs.h.  */
18351 _ACEOF
18352 cat confdefs.h >>conftest.$ac_ext
18353 cat >>conftest.$ac_ext <<_ACEOF
18354 /* end confdefs.h.  */
18355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18357 #define $ac_func innocuous_$ac_func
18358
18359 /* System header to define __stub macros and hopefully few prototypes,
18360     which can conflict with char $ac_func (); below.
18361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18362     <limits.h> exists even on freestanding compilers.  */
18363
18364 #ifdef __STDC__
18365 # include <limits.h>
18366 #else
18367 # include <assert.h>
18368 #endif
18369
18370 #undef $ac_func
18371
18372 /* Override any gcc2 internal prototype to avoid an error.  */
18373 #ifdef __cplusplus
18374 extern "C"
18375 {
18376 #endif
18377 /* We use char because int might match the return type of a gcc2
18378    builtin and then its argument prototype would still apply.  */
18379 char $ac_func ();
18380 /* The GNU C library defines this for functions which it implements
18381     to always fail with ENOSYS.  Some functions are actually named
18382     something starting with __ and the normal name is an alias.  */
18383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18384 choke me
18385 #else
18386 char (*f) () = $ac_func;
18387 #endif
18388 #ifdef __cplusplus
18389 }
18390 #endif
18391
18392 int
18393 main ()
18394 {
18395 return f != $ac_func;
18396   ;
18397   return 0;
18398 }
18399 _ACEOF
18400 rm -f conftest.$ac_objext conftest$ac_exeext
18401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18402   (eval $ac_link) 2>conftest.er1
18403   ac_status=$?
18404   grep -v '^ *+' conftest.er1 >conftest.err
18405   rm -f conftest.er1
18406   cat conftest.err >&5
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); } &&
18409          { ac_try='test -z "$ac_c_werror_flag"
18410                          || test ! -s conftest.err'
18411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412   (eval $ac_try) 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); }; } &&
18416          { ac_try='test -s conftest$ac_exeext'
18417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418   (eval $ac_try) 2>&5
18419   ac_status=$?
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); }; }; then
18422   eval "$as_ac_var=yes"
18423 else
18424   echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18426
18427 eval "$as_ac_var=no"
18428 fi
18429 rm -f conftest.err conftest.$ac_objext \
18430       conftest$ac_exeext conftest.$ac_ext
18431 fi
18432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18434 if test `eval echo '${'$as_ac_var'}'` = yes; then
18435   cat >>confdefs.h <<_ACEOF
18436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18437 _ACEOF
18438
18439 fi
18440 done
18441
18442   if test $ac_cv_func_readlink = no; then
18443     case $LIBOBJS in
18444     "readlink.$ac_objext"   | \
18445   *" readlink.$ac_objext"   | \
18446     "readlink.$ac_objext "* | \
18447   *" readlink.$ac_objext "* ) ;;
18448   *) LIBOBJS="$LIBOBJS readlink.$ac_objext" ;;
18449 esac
18450
18451
18452   :
18453
18454   fi
18455
18456
18457 for ac_header in stdlib.h
18458 do
18459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18461   echo "$as_me:$LINENO: checking for $ac_header" >&5
18462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18464   echo $ECHO_N "(cached) $ECHO_C" >&6
18465 fi
18466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18468 else
18469   # Is the header compilable?
18470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18472 cat >conftest.$ac_ext <<_ACEOF
18473 /* confdefs.h.  */
18474 _ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h.  */
18478 $ac_includes_default
18479 #include <$ac_header>
18480 _ACEOF
18481 rm -f conftest.$ac_objext
18482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18483   (eval $ac_compile) 2>conftest.er1
18484   ac_status=$?
18485   grep -v '^ *+' conftest.er1 >conftest.err
18486   rm -f conftest.er1
18487   cat conftest.err >&5
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); } &&
18490          { ac_try='test -z "$ac_c_werror_flag"
18491                          || test ! -s conftest.err'
18492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18493   (eval $ac_try) 2>&5
18494   ac_status=$?
18495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496   (exit $ac_status); }; } &&
18497          { ac_try='test -s conftest.$ac_objext'
18498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499   (eval $ac_try) 2>&5
18500   ac_status=$?
18501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502   (exit $ac_status); }; }; then
18503   ac_header_compiler=yes
18504 else
18505   echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18507
18508 ac_header_compiler=no
18509 fi
18510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18512 echo "${ECHO_T}$ac_header_compiler" >&6
18513
18514 # Is the header present?
18515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18517 cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523 #include <$ac_header>
18524 _ACEOF
18525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18527   ac_status=$?
18528   grep -v '^ *+' conftest.er1 >conftest.err
18529   rm -f conftest.er1
18530   cat conftest.err >&5
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); } >/dev/null; then
18533   if test -s conftest.err; then
18534     ac_cpp_err=$ac_c_preproc_warn_flag
18535     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18536   else
18537     ac_cpp_err=
18538   fi
18539 else
18540   ac_cpp_err=yes
18541 fi
18542 if test -z "$ac_cpp_err"; then
18543   ac_header_preproc=yes
18544 else
18545   echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18547
18548   ac_header_preproc=no
18549 fi
18550 rm -f conftest.err conftest.$ac_ext
18551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18552 echo "${ECHO_T}$ac_header_preproc" >&6
18553
18554 # So?  What about this header?
18555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18556   yes:no: )
18557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18561     ac_header_preproc=yes
18562     ;;
18563   no:yes:* )
18564     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18566     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18567 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18568     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18570     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18571 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18574     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18576     (
18577       cat <<\_ASBOX
18578 ## ------------------------------ ##
18579 ## Report this to bug-cvs@gnu.org ##
18580 ## ------------------------------ ##
18581 _ASBOX
18582     ) |
18583       sed "s/^/$as_me: WARNING:     /" >&2
18584     ;;
18585 esac
18586 echo "$as_me:$LINENO: checking for $ac_header" >&5
18587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18589   echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591   eval "$as_ac_Header=\$ac_header_preproc"
18592 fi
18593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18595
18596 fi
18597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18598   cat >>confdefs.h <<_ACEOF
18599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18600 _ACEOF
18601
18602 fi
18603
18604 done
18605
18606 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
18607 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
18608 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
18609   echo $ECHO_N "(cached) $ECHO_C" >&6
18610 else
18611   if test "$cross_compiling" = yes; then
18612   ac_cv_func_realloc_0_nonnull=no
18613 else
18614   cat >conftest.$ac_ext <<_ACEOF
18615 /* confdefs.h.  */
18616 _ACEOF
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h.  */
18620 #if STDC_HEADERS || HAVE_STDLIB_H
18621 # include <stdlib.h>
18622 #else
18623 char *realloc ();
18624 #endif
18625
18626 int
18627 main ()
18628 {
18629 exit (realloc (0, 0) ? 0 : 1);
18630   ;
18631   return 0;
18632 }
18633 _ACEOF
18634 rm -f conftest$ac_exeext
18635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18636   (eval $ac_link) 2>&5
18637   ac_status=$?
18638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641   (eval $ac_try) 2>&5
18642   ac_status=$?
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); }; }; then
18645   ac_cv_func_realloc_0_nonnull=yes
18646 else
18647   echo "$as_me: program exited with status $ac_status" >&5
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18650
18651 ( exit $ac_status )
18652 ac_cv_func_realloc_0_nonnull=no
18653 fi
18654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18655 fi
18656 fi
18657 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
18658 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
18659 if test $ac_cv_func_realloc_0_nonnull = yes; then
18660
18661 cat >>confdefs.h <<\_ACEOF
18662 #define HAVE_REALLOC 1
18663 _ACEOF
18664
18665 else
18666   cat >>confdefs.h <<\_ACEOF
18667 #define HAVE_REALLOC 0
18668 _ACEOF
18669
18670    case $LIBOBJS in
18671     "realloc.$ac_objext"   | \
18672   *" realloc.$ac_objext"   | \
18673     "realloc.$ac_objext "* | \
18674   *" realloc.$ac_objext "* ) ;;
18675   *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
18676 esac
18677
18678
18679 cat >>confdefs.h <<\_ACEOF
18680 #define realloc rpl_realloc
18681 _ACEOF
18682
18683 fi
18684
18685
18686
18687
18688
18689
18690     # Assume we'll default to using the included regex.c.
18691     ac_use_included_regex=yes
18692
18693     # However, if the system regex support is good enough that it passes the
18694     # the following run test, then default to *not* using the included regex.c.
18695     # If cross compiling, assume the test would fail and use the included
18696     # regex.c.  The first failing regular expression is from `Spencer ere
18697     # test #75' in grep-2.3.
18698     echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
18699 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
18700 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
18701   echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703   if test "$cross_compiling" = yes; then
18704                jm_cv_func_working_re_compile_pattern=no
18705 else
18706   cat >conftest.$ac_ext <<_ACEOF
18707 /* confdefs.h.  */
18708 _ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h.  */
18712 #include <stdio.h>
18713 #include <string.h>
18714 #include <regex.h>
18715           int
18716           main ()
18717           {
18718             static struct re_pattern_buffer regex;
18719             const char *s;
18720             struct re_registers regs;
18721             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
18722             memset (&regex, 0, sizeof (regex));
18723             s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
18724             /* This should fail with _Invalid character class name_ error.  */
18725             if (!s)
18726               exit (1);
18727
18728             /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
18729             memset (&regex, 0, sizeof (regex));
18730             s = re_compile_pattern ("{1", 2, &regex);
18731
18732             if (s)
18733               exit (1);
18734
18735             /* The following example is derived from a problem report
18736                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
18737             memset (&regex, 0, sizeof (regex));
18738             s = re_compile_pattern ("[an\371]*n", 7, &regex);
18739             if (s)
18740               exit (1);
18741
18742             /* This should match, but doesn't for e.g. glibc-2.2.1.  */
18743             if (re_match (&regex, "an", 2, 0, &regs) != 2)
18744               exit (1);
18745
18746             memset (&regex, 0, sizeof (regex));
18747             s = re_compile_pattern ("x", 1, &regex);
18748             if (s)
18749               exit (1);
18750
18751             /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
18752                work with a negative RANGE argument.  */
18753             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
18754               exit (1);
18755
18756             exit (0);
18757           }
18758
18759 _ACEOF
18760 rm -f conftest$ac_exeext
18761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18762   (eval $ac_link) 2>&5
18763   ac_status=$?
18764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767   (eval $ac_try) 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; }; then
18771   jm_cv_func_working_re_compile_pattern=yes
18772 else
18773   echo "$as_me: program exited with status $ac_status" >&5
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777 ( exit $ac_status )
18778 jm_cv_func_working_re_compile_pattern=no
18779 fi
18780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18781 fi
18782 fi
18783 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
18784 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
18785     if test $jm_cv_func_working_re_compile_pattern = yes; then
18786       ac_use_included_regex=no
18787     fi
18788
18789     test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
18790 echo "$as_me: error: missing argument" >&2;}
18791    { (exit 1); exit 1; }; }
18792
18793
18794
18795 # Check whether --with-included-regex or --without-included-regex was given.
18796 if test "${with_included_regex+set}" = set; then
18797   withval="$with_included_regex"
18798   jm_with_regex=$withval
18799 else
18800   jm_with_regex=$ac_use_included_regex
18801 fi;
18802         if test "$jm_with_regex" = yes; then
18803           case $LIBOBJS in
18804     "regex.$ac_objext"   | \
18805   *" regex.$ac_objext"   | \
18806     "regex.$ac_objext "* | \
18807   *" regex.$ac_objext "* ) ;;
18808   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
18809 esac
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819   :
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829   :
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839 for ac_func in btowc
18840 do
18841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18842 echo "$as_me:$LINENO: checking for $ac_func" >&5
18843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18844 if eval "test \"\${$as_ac_var+set}\" = set"; then
18845   echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847   cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h.  */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h.  */
18853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18855 #define $ac_func innocuous_$ac_func
18856
18857 /* System header to define __stub macros and hopefully few prototypes,
18858     which can conflict with char $ac_func (); below.
18859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18860     <limits.h> exists even on freestanding compilers.  */
18861
18862 #ifdef __STDC__
18863 # include <limits.h>
18864 #else
18865 # include <assert.h>
18866 #endif
18867
18868 #undef $ac_func
18869
18870 /* Override any gcc2 internal prototype to avoid an error.  */
18871 #ifdef __cplusplus
18872 extern "C"
18873 {
18874 #endif
18875 /* We use char because int might match the return type of a gcc2
18876    builtin and then its argument prototype would still apply.  */
18877 char $ac_func ();
18878 /* The GNU C library defines this for functions which it implements
18879     to always fail with ENOSYS.  Some functions are actually named
18880     something starting with __ and the normal name is an alias.  */
18881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18882 choke me
18883 #else
18884 char (*f) () = $ac_func;
18885 #endif
18886 #ifdef __cplusplus
18887 }
18888 #endif
18889
18890 int
18891 main ()
18892 {
18893 return f != $ac_func;
18894   ;
18895   return 0;
18896 }
18897 _ACEOF
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18900   (eval $ac_link) 2>conftest.er1
18901   ac_status=$?
18902   grep -v '^ *+' conftest.er1 >conftest.err
18903   rm -f conftest.er1
18904   cat conftest.err >&5
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); } &&
18907          { ac_try='test -z "$ac_c_werror_flag"
18908                          || test ! -s conftest.err'
18909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910   (eval $ac_try) 2>&5
18911   ac_status=$?
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); }; } &&
18914          { ac_try='test -s conftest$ac_exeext'
18915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916   (eval $ac_try) 2>&5
18917   ac_status=$?
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); }; }; then
18920   eval "$as_ac_var=yes"
18921 else
18922   echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925 eval "$as_ac_var=no"
18926 fi
18927 rm -f conftest.err conftest.$ac_objext \
18928       conftest$ac_exeext conftest.$ac_ext
18929 fi
18930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18932 if test `eval echo '${'$as_ac_var'}'` = yes; then
18933   cat >>confdefs.h <<_ACEOF
18934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18935 _ACEOF
18936
18937 fi
18938 done
18939
18940
18941         fi
18942
18943
18944
18945
18946   echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
18947 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
18948 if test "${gl_cv_c_restrict+set}" = set; then
18949   echo $ECHO_N "(cached) $ECHO_C" >&6
18950 else
18951   gl_cv_c_restrict=no
18952    # Try the official restrict keyword, then gcc's __restrict, and
18953    # the less common variants.
18954    for ac_kw in restrict __restrict __restrict__ _Restrict; do
18955      cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h.  */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h.  */
18961 float * $ac_kw x;
18962 _ACEOF
18963 rm -f conftest.$ac_objext
18964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18965   (eval $ac_compile) 2>conftest.er1
18966   ac_status=$?
18967   grep -v '^ *+' conftest.er1 >conftest.err
18968   rm -f conftest.er1
18969   cat conftest.err >&5
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); } &&
18972          { ac_try='test -z "$ac_c_werror_flag"
18973                          || test ! -s conftest.err'
18974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975   (eval $ac_try) 2>&5
18976   ac_status=$?
18977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978   (exit $ac_status); }; } &&
18979          { ac_try='test -s conftest.$ac_objext'
18980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981   (eval $ac_try) 2>&5
18982   ac_status=$?
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); }; }; then
18985   gl_cv_c_restrict=$ac_kw; break
18986 else
18987   echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18989
18990 fi
18991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18992    done
18993
18994 fi
18995 echo "$as_me:$LINENO: result: $gl_cv_c_restrict" >&5
18996 echo "${ECHO_T}$gl_cv_c_restrict" >&6
18997  case $gl_cv_c_restrict in
18998    restrict) ;;
18999    no)
19000 cat >>confdefs.h <<\_ACEOF
19001 #define restrict
19002 _ACEOF
19003  ;;
19004    *)  cat >>confdefs.h <<_ACEOF
19005 #define restrict $gl_cv_c_restrict
19006 _ACEOF
19007  ;;
19008  esac
19009
19010
19011
19012 for ac_func in rpmatch
19013 do
19014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19015 echo "$as_me:$LINENO: checking for $ac_func" >&5
19016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19017 if eval "test \"\${$as_ac_var+set}\" = set"; then
19018   echo $ECHO_N "(cached) $ECHO_C" >&6
19019 else
19020   cat >conftest.$ac_ext <<_ACEOF
19021 /* confdefs.h.  */
19022 _ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h.  */
19026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19028 #define $ac_func innocuous_$ac_func
19029
19030 /* System header to define __stub macros and hopefully few prototypes,
19031     which can conflict with char $ac_func (); below.
19032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19033     <limits.h> exists even on freestanding compilers.  */
19034
19035 #ifdef __STDC__
19036 # include <limits.h>
19037 #else
19038 # include <assert.h>
19039 #endif
19040
19041 #undef $ac_func
19042
19043 /* Override any gcc2 internal prototype to avoid an error.  */
19044 #ifdef __cplusplus
19045 extern "C"
19046 {
19047 #endif
19048 /* We use char because int might match the return type of a gcc2
19049    builtin and then its argument prototype would still apply.  */
19050 char $ac_func ();
19051 /* The GNU C library defines this for functions which it implements
19052     to always fail with ENOSYS.  Some functions are actually named
19053     something starting with __ and the normal name is an alias.  */
19054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19055 choke me
19056 #else
19057 char (*f) () = $ac_func;
19058 #endif
19059 #ifdef __cplusplus
19060 }
19061 #endif
19062
19063 int
19064 main ()
19065 {
19066 return f != $ac_func;
19067   ;
19068   return 0;
19069 }
19070 _ACEOF
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19073   (eval $ac_link) 2>conftest.er1
19074   ac_status=$?
19075   grep -v '^ *+' conftest.er1 >conftest.err
19076   rm -f conftest.er1
19077   cat conftest.err >&5
19078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079   (exit $ac_status); } &&
19080          { ac_try='test -z "$ac_c_werror_flag"
19081                          || test ! -s conftest.err'
19082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083   (eval $ac_try) 2>&5
19084   ac_status=$?
19085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086   (exit $ac_status); }; } &&
19087          { ac_try='test -s conftest$ac_exeext'
19088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089   (eval $ac_try) 2>&5
19090   ac_status=$?
19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); }; }; then
19093   eval "$as_ac_var=yes"
19094 else
19095   echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19097
19098 eval "$as_ac_var=no"
19099 fi
19100 rm -f conftest.err conftest.$ac_objext \
19101       conftest$ac_exeext conftest.$ac_ext
19102 fi
19103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19105 if test `eval echo '${'$as_ac_var'}'` = yes; then
19106   cat >>confdefs.h <<_ACEOF
19107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19108 _ACEOF
19109
19110 else
19111   case $LIBOBJS in
19112     "$ac_func.$ac_objext"   | \
19113   *" $ac_func.$ac_objext"   | \
19114     "$ac_func.$ac_objext "* | \
19115   *" $ac_func.$ac_objext "* ) ;;
19116   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19117 esac
19118
19119 fi
19120 done
19121
19122
19123   if test $ac_cv_func_rpmatch = no; then
19124     :
19125   fi
19126
19127
19128
19129   :
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139 for ac_func in fchdir
19140 do
19141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19142 echo "$as_me:$LINENO: checking for $ac_func" >&5
19143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19144 if eval "test \"\${$as_ac_var+set}\" = set"; then
19145   echo $ECHO_N "(cached) $ECHO_C" >&6
19146 else
19147   cat >conftest.$ac_ext <<_ACEOF
19148 /* confdefs.h.  */
19149 _ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h.  */
19153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19155 #define $ac_func innocuous_$ac_func
19156
19157 /* System header to define __stub macros and hopefully few prototypes,
19158     which can conflict with char $ac_func (); below.
19159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19160     <limits.h> exists even on freestanding compilers.  */
19161
19162 #ifdef __STDC__
19163 # include <limits.h>
19164 #else
19165 # include <assert.h>
19166 #endif
19167
19168 #undef $ac_func
19169
19170 /* Override any gcc2 internal prototype to avoid an error.  */
19171 #ifdef __cplusplus
19172 extern "C"
19173 {
19174 #endif
19175 /* We use char because int might match the return type of a gcc2
19176    builtin and then its argument prototype would still apply.  */
19177 char $ac_func ();
19178 /* The GNU C library defines this for functions which it implements
19179     to always fail with ENOSYS.  Some functions are actually named
19180     something starting with __ and the normal name is an alias.  */
19181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19182 choke me
19183 #else
19184 char (*f) () = $ac_func;
19185 #endif
19186 #ifdef __cplusplus
19187 }
19188 #endif
19189
19190 int
19191 main ()
19192 {
19193 return f != $ac_func;
19194   ;
19195   return 0;
19196 }
19197 _ACEOF
19198 rm -f conftest.$ac_objext conftest$ac_exeext
19199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19200   (eval $ac_link) 2>conftest.er1
19201   ac_status=$?
19202   grep -v '^ *+' conftest.er1 >conftest.err
19203   rm -f conftest.er1
19204   cat conftest.err >&5
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); } &&
19207          { ac_try='test -z "$ac_c_werror_flag"
19208                          || test ! -s conftest.err'
19209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210   (eval $ac_try) 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; } &&
19214          { ac_try='test -s conftest$ac_exeext'
19215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216   (eval $ac_try) 2>&5
19217   ac_status=$?
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); }; }; then
19220   eval "$as_ac_var=yes"
19221 else
19222   echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19224
19225 eval "$as_ac_var=no"
19226 fi
19227 rm -f conftest.err conftest.$ac_objext \
19228       conftest$ac_exeext conftest.$ac_ext
19229 fi
19230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19232 if test `eval echo '${'$as_ac_var'}'` = yes; then
19233   cat >>confdefs.h <<_ACEOF
19234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19235 _ACEOF
19236
19237 fi
19238 done
19239
19240
19241
19242
19243
19244 for ac_func in setenv unsetenv
19245 do
19246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19247 echo "$as_me:$LINENO: checking for $ac_func" >&5
19248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19249 if eval "test \"\${$as_ac_var+set}\" = set"; then
19250   echo $ECHO_N "(cached) $ECHO_C" >&6
19251 else
19252   cat >conftest.$ac_ext <<_ACEOF
19253 /* confdefs.h.  */
19254 _ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h.  */
19258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19260 #define $ac_func innocuous_$ac_func
19261
19262 /* System header to define __stub macros and hopefully few prototypes,
19263     which can conflict with char $ac_func (); below.
19264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19265     <limits.h> exists even on freestanding compilers.  */
19266
19267 #ifdef __STDC__
19268 # include <limits.h>
19269 #else
19270 # include <assert.h>
19271 #endif
19272
19273 #undef $ac_func
19274
19275 /* Override any gcc2 internal prototype to avoid an error.  */
19276 #ifdef __cplusplus
19277 extern "C"
19278 {
19279 #endif
19280 /* We use char because int might match the return type of a gcc2
19281    builtin and then its argument prototype would still apply.  */
19282 char $ac_func ();
19283 /* The GNU C library defines this for functions which it implements
19284     to always fail with ENOSYS.  Some functions are actually named
19285     something starting with __ and the normal name is an alias.  */
19286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19287 choke me
19288 #else
19289 char (*f) () = $ac_func;
19290 #endif
19291 #ifdef __cplusplus
19292 }
19293 #endif
19294
19295 int
19296 main ()
19297 {
19298 return f != $ac_func;
19299   ;
19300   return 0;
19301 }
19302 _ACEOF
19303 rm -f conftest.$ac_objext conftest$ac_exeext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305   (eval $ac_link) 2>conftest.er1
19306   ac_status=$?
19307   grep -v '^ *+' conftest.er1 >conftest.err
19308   rm -f conftest.er1
19309   cat conftest.err >&5
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); } &&
19312          { ac_try='test -z "$ac_c_werror_flag"
19313                          || test ! -s conftest.err'
19314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315   (eval $ac_try) 2>&5
19316   ac_status=$?
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); }; } &&
19319          { ac_try='test -s conftest$ac_exeext'
19320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321   (eval $ac_try) 2>&5
19322   ac_status=$?
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); }; }; then
19325   eval "$as_ac_var=yes"
19326 else
19327   echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19329
19330 eval "$as_ac_var=no"
19331 fi
19332 rm -f conftest.err conftest.$ac_objext \
19333       conftest$ac_exeext conftest.$ac_ext
19334 fi
19335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19337 if test `eval echo '${'$as_ac_var'}'` = yes; then
19338   cat >>confdefs.h <<_ACEOF
19339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19340 _ACEOF
19341
19342 else
19343   case $LIBOBJS in
19344     "$ac_func.$ac_objext"   | \
19345   *" $ac_func.$ac_objext"   | \
19346     "$ac_func.$ac_objext "* | \
19347   *" $ac_func.$ac_objext "* ) ;;
19348   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
19349 esac
19350
19351 fi
19352 done
19353
19354
19355   if test $ac_cv_func_setenv = no; then
19356
19357
19358
19359   :
19360
19361
19362
19363
19364
19365
19366 for ac_header in search.h
19367 do
19368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19370   echo "$as_me:$LINENO: checking for $ac_header" >&5
19371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19373   echo $ECHO_N "(cached) $ECHO_C" >&6
19374 fi
19375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19377 else
19378   # Is the header compilable?
19379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19381 cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h.  */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h.  */
19387 $ac_includes_default
19388 #include <$ac_header>
19389 _ACEOF
19390 rm -f conftest.$ac_objext
19391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19392   (eval $ac_compile) 2>conftest.er1
19393   ac_status=$?
19394   grep -v '^ *+' conftest.er1 >conftest.err
19395   rm -f conftest.er1
19396   cat conftest.err >&5
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); } &&
19399          { ac_try='test -z "$ac_c_werror_flag"
19400                          || test ! -s conftest.err'
19401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402   (eval $ac_try) 2>&5
19403   ac_status=$?
19404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405   (exit $ac_status); }; } &&
19406          { ac_try='test -s conftest.$ac_objext'
19407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408   (eval $ac_try) 2>&5
19409   ac_status=$?
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); }; }; then
19412   ac_header_compiler=yes
19413 else
19414   echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19416
19417 ac_header_compiler=no
19418 fi
19419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19421 echo "${ECHO_T}$ac_header_compiler" >&6
19422
19423 # Is the header present?
19424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19426 cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h.  */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h.  */
19432 #include <$ac_header>
19433 _ACEOF
19434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19436   ac_status=$?
19437   grep -v '^ *+' conftest.er1 >conftest.err
19438   rm -f conftest.er1
19439   cat conftest.err >&5
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); } >/dev/null; then
19442   if test -s conftest.err; then
19443     ac_cpp_err=$ac_c_preproc_warn_flag
19444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19445   else
19446     ac_cpp_err=
19447   fi
19448 else
19449   ac_cpp_err=yes
19450 fi
19451 if test -z "$ac_cpp_err"; then
19452   ac_header_preproc=yes
19453 else
19454   echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457   ac_header_preproc=no
19458 fi
19459 rm -f conftest.err conftest.$ac_ext
19460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19461 echo "${ECHO_T}$ac_header_preproc" >&6
19462
19463 # So?  What about this header?
19464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19465   yes:no: )
19466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19470     ac_header_preproc=yes
19471     ;;
19472   no:yes:* )
19473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19485     (
19486       cat <<\_ASBOX
19487 ## ------------------------------ ##
19488 ## Report this to bug-cvs@gnu.org ##
19489 ## ------------------------------ ##
19490 _ASBOX
19491     ) |
19492       sed "s/^/$as_me: WARNING:     /" >&2
19493     ;;
19494 esac
19495 echo "$as_me:$LINENO: checking for $ac_header" >&5
19496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19498   echo $ECHO_N "(cached) $ECHO_C" >&6
19499 else
19500   eval "$as_ac_Header=\$ac_header_preproc"
19501 fi
19502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19504
19505 fi
19506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19507   cat >>confdefs.h <<_ACEOF
19508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19509 _ACEOF
19510
19511 fi
19512
19513 done
19514
19515
19516 for ac_func in tsearch
19517 do
19518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19519 echo "$as_me:$LINENO: checking for $ac_func" >&5
19520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19521 if eval "test \"\${$as_ac_var+set}\" = set"; then
19522   echo $ECHO_N "(cached) $ECHO_C" >&6
19523 else
19524   cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h.  */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h.  */
19530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19532 #define $ac_func innocuous_$ac_func
19533
19534 /* System header to define __stub macros and hopefully few prototypes,
19535     which can conflict with char $ac_func (); below.
19536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19537     <limits.h> exists even on freestanding compilers.  */
19538
19539 #ifdef __STDC__
19540 # include <limits.h>
19541 #else
19542 # include <assert.h>
19543 #endif
19544
19545 #undef $ac_func
19546
19547 /* Override any gcc2 internal prototype to avoid an error.  */
19548 #ifdef __cplusplus
19549 extern "C"
19550 {
19551 #endif
19552 /* We use char because int might match the return type of a gcc2
19553    builtin and then its argument prototype would still apply.  */
19554 char $ac_func ();
19555 /* The GNU C library defines this for functions which it implements
19556     to always fail with ENOSYS.  Some functions are actually named
19557     something starting with __ and the normal name is an alias.  */
19558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19559 choke me
19560 #else
19561 char (*f) () = $ac_func;
19562 #endif
19563 #ifdef __cplusplus
19564 }
19565 #endif
19566
19567 int
19568 main ()
19569 {
19570 return f != $ac_func;
19571   ;
19572   return 0;
19573 }
19574 _ACEOF
19575 rm -f conftest.$ac_objext conftest$ac_exeext
19576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19577   (eval $ac_link) 2>conftest.er1
19578   ac_status=$?
19579   grep -v '^ *+' conftest.er1 >conftest.err
19580   rm -f conftest.er1
19581   cat conftest.err >&5
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); } &&
19584          { ac_try='test -z "$ac_c_werror_flag"
19585                          || test ! -s conftest.err'
19586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587   (eval $ac_try) 2>&5
19588   ac_status=$?
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); }; } &&
19591          { ac_try='test -s conftest$ac_exeext'
19592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593   (eval $ac_try) 2>&5
19594   ac_status=$?
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); }; }; then
19597   eval "$as_ac_var=yes"
19598 else
19599   echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19601
19602 eval "$as_ac_var=no"
19603 fi
19604 rm -f conftest.err conftest.$ac_objext \
19605       conftest$ac_exeext conftest.$ac_ext
19606 fi
19607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19609 if test `eval echo '${'$as_ac_var'}'` = yes; then
19610   cat >>confdefs.h <<_ACEOF
19611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19612 _ACEOF
19613
19614 fi
19615 done
19616
19617
19618
19619   echo "$as_me:$LINENO: checking if errno is properly declared" >&5
19620 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
19621   if test "${gt_cv_var_errno_declaration+set}" = set; then
19622   echo $ECHO_N "(cached) $ECHO_C" >&6
19623 else
19624
19625     cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631 #include <errno.h>
19632       extern struct { int foo; } errno;
19633 int
19634 main ()
19635 {
19636 errno.foo = 1;
19637   ;
19638   return 0;
19639 }
19640 _ACEOF
19641 rm -f conftest.$ac_objext
19642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643   (eval $ac_compile) 2>conftest.er1
19644   ac_status=$?
19645   grep -v '^ *+' conftest.er1 >conftest.err
19646   rm -f conftest.er1
19647   cat conftest.err >&5
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); } &&
19650          { ac_try='test -z "$ac_c_werror_flag"
19651                          || test ! -s conftest.err'
19652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653   (eval $ac_try) 2>&5
19654   ac_status=$?
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); }; } &&
19657          { ac_try='test -s conftest.$ac_objext'
19658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659   (eval $ac_try) 2>&5
19660   ac_status=$?
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); }; }; then
19663   gt_cv_var_errno_declaration=no
19664 else
19665   echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19667
19668 gt_cv_var_errno_declaration=yes
19669 fi
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19671 fi
19672
19673   echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
19674 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
19675   if test $gt_cv_var_errno_declaration = yes; then
19676
19677 cat >>confdefs.h <<\_ACEOF
19678 #define HAVE_ERRNO_DECL 1
19679 _ACEOF
19680
19681   fi
19682
19683
19684
19685   echo "$as_me:$LINENO: checking if environ is properly declared" >&5
19686 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
19687   if test "${gt_cv_var_environ_declaration+set}" = set; then
19688   echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690
19691     cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h.  */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h.  */
19697 #include <unistd.h>
19698       extern struct { int foo; } environ;
19699 int
19700 main ()
19701 {
19702 environ.foo = 1;
19703   ;
19704   return 0;
19705 }
19706 _ACEOF
19707 rm -f conftest.$ac_objext
19708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19709   (eval $ac_compile) 2>conftest.er1
19710   ac_status=$?
19711   grep -v '^ *+' conftest.er1 >conftest.err
19712   rm -f conftest.er1
19713   cat conftest.err >&5
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); } &&
19716          { ac_try='test -z "$ac_c_werror_flag"
19717                          || test ! -s conftest.err'
19718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719   (eval $ac_try) 2>&5
19720   ac_status=$?
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); }; } &&
19723          { ac_try='test -s conftest.$ac_objext'
19724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725   (eval $ac_try) 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); }; }; then
19729   gt_cv_var_environ_declaration=no
19730 else
19731   echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19733
19734 gt_cv_var_environ_declaration=yes
19735 fi
19736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19737 fi
19738
19739   echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
19740 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
19741   if test $gt_cv_var_environ_declaration = yes; then
19742
19743 cat >>confdefs.h <<\_ACEOF
19744 #define HAVE_ENVIRON_DECL 1
19745 _ACEOF
19746
19747   fi
19748
19749
19750   fi
19751   if test $ac_cv_func_unsetenv = no; then
19752
19753
19754   :
19755
19756
19757
19758
19759
19760
19761
19762   echo "$as_me:$LINENO: checking if errno is properly declared" >&5
19763 echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
19764   if test "${gt_cv_var_errno_declaration+set}" = set; then
19765   echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767
19768     cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h.  */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h.  */
19774 #include <errno.h>
19775       extern struct { int foo; } errno;
19776 int
19777 main ()
19778 {
19779 errno.foo = 1;
19780   ;
19781   return 0;
19782 }
19783 _ACEOF
19784 rm -f conftest.$ac_objext
19785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19786   (eval $ac_compile) 2>conftest.er1
19787   ac_status=$?
19788   grep -v '^ *+' conftest.er1 >conftest.err
19789   rm -f conftest.er1
19790   cat conftest.err >&5
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); } &&
19793          { ac_try='test -z "$ac_c_werror_flag"
19794                          || test ! -s conftest.err'
19795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796   (eval $ac_try) 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); }; } &&
19800          { ac_try='test -s conftest.$ac_objext'
19801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802   (eval $ac_try) 2>&5
19803   ac_status=$?
19804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805   (exit $ac_status); }; }; then
19806   gt_cv_var_errno_declaration=no
19807 else
19808   echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.$ac_ext >&5
19810
19811 gt_cv_var_errno_declaration=yes
19812 fi
19813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19814 fi
19815
19816   echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
19817 echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
19818   if test $gt_cv_var_errno_declaration = yes; then
19819
19820 cat >>confdefs.h <<\_ACEOF
19821 #define HAVE_ERRNO_DECL 1
19822 _ACEOF
19823
19824   fi
19825
19826
19827
19828   echo "$as_me:$LINENO: checking if environ is properly declared" >&5
19829 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
19830   if test "${gt_cv_var_environ_declaration+set}" = set; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833
19834     cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840 #include <unistd.h>
19841       extern struct { int foo; } environ;
19842 int
19843 main ()
19844 {
19845 environ.foo = 1;
19846   ;
19847   return 0;
19848 }
19849 _ACEOF
19850 rm -f conftest.$ac_objext
19851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19852   (eval $ac_compile) 2>conftest.er1
19853   ac_status=$?
19854   grep -v '^ *+' conftest.er1 >conftest.err
19855   rm -f conftest.er1
19856   cat conftest.err >&5
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); } &&
19859          { ac_try='test -z "$ac_c_werror_flag"
19860                          || test ! -s conftest.err'
19861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862   (eval $ac_try) 2>&5
19863   ac_status=$?
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); }; } &&
19866          { ac_try='test -s conftest.$ac_objext'
19867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868   (eval $ac_try) 2>&5
19869   ac_status=$?
19870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871   (exit $ac_status); }; }; then
19872   gt_cv_var_environ_declaration=no
19873 else
19874   echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 gt_cv_var_environ_declaration=yes
19878 fi
19879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19880 fi
19881
19882   echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
19883 echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
19884   if test $gt_cv_var_environ_declaration = yes; then
19885
19886 cat >>confdefs.h <<\_ACEOF
19887 #define HAVE_ENVIRON_DECL 1
19888 _ACEOF
19889
19890   fi
19891
19892
19893   else
19894     echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
19895 echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6
19896 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
19897   echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899   cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h.  */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h.  */
19905 #include <stdlib.h>
19906 extern
19907 #ifdef __cplusplus
19908 "C"
19909 #endif
19910 #if defined(__STDC__) || defined(__cplusplus)
19911 int unsetenv (const char *name);
19912 #else
19913 int unsetenv();
19914 #endif
19915
19916 int
19917 main ()
19918 {
19919
19920   ;
19921   return 0;
19922 }
19923 _ACEOF
19924 rm -f conftest.$ac_objext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926   (eval $ac_compile) 2>conftest.er1
19927   ac_status=$?
19928   grep -v '^ *+' conftest.er1 >conftest.err
19929   rm -f conftest.er1
19930   cat conftest.err >&5
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } &&
19933          { ac_try='test -z "$ac_c_werror_flag"
19934                          || test ! -s conftest.err'
19935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936   (eval $ac_try) 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); }; } &&
19940          { ac_try='test -s conftest.$ac_objext'
19941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942   (eval $ac_try) 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); }; }; then
19946   gt_cv_func_unsetenv_ret='int'
19947 else
19948   echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19950
19951 gt_cv_func_unsetenv_ret='void'
19952 fi
19953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19954 fi
19955 echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
19956 echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6
19957     if test $gt_cv_func_unsetenv_ret = 'void'; then
19958
19959 cat >>confdefs.h <<\_ACEOF
19960 #define VOID_UNSETENV 1
19961 _ACEOF
19962
19963     fi
19964   fi
19965
19966
19967   echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
19968 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
19969 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
19970   echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972   if test "$cross_compiling" = yes; then
19973   ac_cv_func_stat_empty_string_bug=yes
19974 else
19975   cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19981 $ac_includes_default
19982 int
19983 main ()
19984 {
19985 struct stat sbuf;
19986   exit (stat ("", &sbuf) ? 1 : 0);
19987   ;
19988   return 0;
19989 }
19990 _ACEOF
19991 rm -f conftest$ac_exeext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19993   (eval $ac_link) 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998   (eval $ac_try) 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); }; }; then
20002   ac_cv_func_stat_empty_string_bug=yes
20003 else
20004   echo "$as_me: program exited with status $ac_status" >&5
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20007
20008 ( exit $ac_status )
20009 ac_cv_func_stat_empty_string_bug=no
20010 fi
20011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20012 fi
20013 fi
20014 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
20015 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
20016 if test $ac_cv_func_stat_empty_string_bug = yes; then
20017   case $LIBOBJS in
20018     "stat.$ac_objext"   | \
20019   *" stat.$ac_objext"   | \
20020     "stat.$ac_objext "* | \
20021   *" stat.$ac_objext "* ) ;;
20022   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
20023 esac
20024
20025
20026 cat >>confdefs.h <<_ACEOF
20027 #define HAVE_STAT_EMPTY_STRING_BUG 1
20028 _ACEOF
20029
20030 fi
20031
20032     if test $ac_cv_func_stat_empty_string_bug = yes; then
20033
20034   :
20035
20036   fi
20037
20038
20039
20040
20041   # Define two additional variables used in the Makefile substitution.
20042
20043   if test "$ac_cv_header_stdbool_h" = yes; then
20044     STDBOOL_H=''
20045   else
20046     STDBOOL_H='stdbool.h'
20047   fi
20048
20049
20050   if test "$ac_cv_type__Bool" = yes; then
20051     HAVE__BOOL=1
20052   else
20053     HAVE__BOOL=0
20054   fi
20055
20056
20057
20058
20059 for ac_header in sys/inttypes.h
20060 do
20061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20063   echo "$as_me:$LINENO: checking for $ac_header" >&5
20064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20066   echo $ECHO_N "(cached) $ECHO_C" >&6
20067 fi
20068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20070 else
20071   # Is the header compilable?
20072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20074 cat >conftest.$ac_ext <<_ACEOF
20075 /* confdefs.h.  */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h.  */
20080 $ac_includes_default
20081 #include <$ac_header>
20082 _ACEOF
20083 rm -f conftest.$ac_objext
20084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20085   (eval $ac_compile) 2>conftest.er1
20086   ac_status=$?
20087   grep -v '^ *+' conftest.er1 >conftest.err
20088   rm -f conftest.er1
20089   cat conftest.err >&5
20090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091   (exit $ac_status); } &&
20092          { ac_try='test -z "$ac_c_werror_flag"
20093                          || test ! -s conftest.err'
20094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095   (eval $ac_try) 2>&5
20096   ac_status=$?
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); }; } &&
20099          { ac_try='test -s conftest.$ac_objext'
20100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101   (eval $ac_try) 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); }; }; then
20105   ac_header_compiler=yes
20106 else
20107   echo "$as_me: failed program was:" >&5
20108 sed 's/^/| /' conftest.$ac_ext >&5
20109
20110 ac_header_compiler=no
20111 fi
20112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20114 echo "${ECHO_T}$ac_header_compiler" >&6
20115
20116 # Is the header present?
20117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h.  */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h.  */
20125 #include <$ac_header>
20126 _ACEOF
20127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20129   ac_status=$?
20130   grep -v '^ *+' conftest.er1 >conftest.err
20131   rm -f conftest.er1
20132   cat conftest.err >&5
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); } >/dev/null; then
20135   if test -s conftest.err; then
20136     ac_cpp_err=$ac_c_preproc_warn_flag
20137     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20138   else
20139     ac_cpp_err=
20140   fi
20141 else
20142   ac_cpp_err=yes
20143 fi
20144 if test -z "$ac_cpp_err"; then
20145   ac_header_preproc=yes
20146 else
20147   echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20149
20150   ac_header_preproc=no
20151 fi
20152 rm -f conftest.err conftest.$ac_ext
20153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20154 echo "${ECHO_T}$ac_header_preproc" >&6
20155
20156 # So?  What about this header?
20157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20158   yes:no: )
20159     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20163     ac_header_preproc=yes
20164     ;;
20165   no:yes:* )
20166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20168     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20169 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20170     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20172     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20173 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20176     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20178     (
20179       cat <<\_ASBOX
20180 ## ------------------------------ ##
20181 ## Report this to bug-cvs@gnu.org ##
20182 ## ------------------------------ ##
20183 _ASBOX
20184     ) |
20185       sed "s/^/$as_me: WARNING:     /" >&2
20186     ;;
20187 esac
20188 echo "$as_me:$LINENO: checking for $ac_header" >&5
20189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20191   echo $ECHO_N "(cached) $ECHO_C" >&6
20192 else
20193   eval "$as_ac_Header=\$ac_header_preproc"
20194 fi
20195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20197
20198 fi
20199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20200   cat >>confdefs.h <<_ACEOF
20201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20202 _ACEOF
20203
20204 fi
20205
20206 done
20207
20208
20209 echo "$as_me:$LINENO: checking for stdint.h" >&5
20210 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20211 if test "${gl_cv_header_stdint_h+set}" = set; then
20212   echo $ECHO_N "(cached) $ECHO_C" >&6
20213 else
20214
20215   cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h.  */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h.  */
20221 #include <stdint.h>
20222 int
20223 main ()
20224 {
20225
20226   ;
20227   return 0;
20228 }
20229 _ACEOF
20230 rm -f conftest.$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232   (eval $ac_compile) 2>conftest.er1
20233   ac_status=$?
20234   grep -v '^ *+' conftest.er1 >conftest.err
20235   rm -f conftest.er1
20236   cat conftest.err >&5
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); } &&
20239          { ac_try='test -z "$ac_c_werror_flag"
20240                          || test ! -s conftest.err'
20241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242   (eval $ac_try) 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; } &&
20246          { ac_try='test -s conftest.$ac_objext'
20247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248   (eval $ac_try) 2>&5
20249   ac_status=$?
20250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251   (exit $ac_status); }; }; then
20252   gl_cv_header_stdint_h=yes
20253 else
20254   echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20256
20257 gl_cv_header_stdint_h=no
20258 fi
20259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20260 fi
20261
20262 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
20263 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
20264 if test $gl_cv_header_stdint_h = yes; then
20265
20266 cat >>confdefs.h <<\_ACEOF
20267 #define HAVE_STDINT_H 1
20268 _ACEOF
20269
20270   STDINT_H=''
20271 else
20272   STDINT_H='stdint.h'
20273
20274     echo "$as_me:$LINENO: checking whether 'long' is 64 bit wide" >&5
20275 echo $ECHO_N "checking whether 'long' is 64 bit wide... $ECHO_C" >&6
20276 if test "${gl_cv_long_bitsize_64+set}" = set; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279
20280     cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h.  */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h.  */
20286
20287 #define POW63  ((((((long) 1 << 15) << 15) << 15) << 15) << 3)
20288 #define POW64  ((((((long) 1 << 15) << 15) << 15) << 15) << 4)
20289 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
20290
20291 int
20292 main ()
20293 {
20294
20295   ;
20296   return 0;
20297 }
20298 _ACEOF
20299 rm -f conftest.$ac_objext
20300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20301   (eval $ac_compile) 2>conftest.er1
20302   ac_status=$?
20303   grep -v '^ *+' conftest.er1 >conftest.err
20304   rm -f conftest.er1
20305   cat conftest.err >&5
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); } &&
20308          { ac_try='test -z "$ac_c_werror_flag"
20309                          || test ! -s conftest.err'
20310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311   (eval $ac_try) 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); }; } &&
20315          { ac_try='test -s conftest.$ac_objext'
20316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317   (eval $ac_try) 2>&5
20318   ac_status=$?
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); }; }; then
20321   gl_cv_long_bitsize_64=yes
20322 else
20323   echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20325
20326 gl_cv_long_bitsize_64=no
20327 fi
20328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20329 fi
20330 echo "$as_me:$LINENO: result: $gl_cv_long_bitsize_64" >&5
20331 echo "${ECHO_T}$gl_cv_long_bitsize_64" >&6
20332   if test $gl_cv_long_bitsize_64 = yes; then
20333     HAVE_LONG_64BIT=1
20334   else
20335     HAVE_LONG_64BIT=0
20336   fi
20337
20338
20339     echo "$as_me:$LINENO: checking whether 'long long' is 64 bit wide" >&5
20340 echo $ECHO_N "checking whether 'long long' is 64 bit wide... $ECHO_C" >&6
20341 if test "${gl_cv_longlong_bitsize_64+set}" = set; then
20342   echo $ECHO_N "(cached) $ECHO_C" >&6
20343 else
20344
20345     cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h.  */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h.  */
20351
20352 #define POW63  ((((((long long) 1 << 15) << 15) << 15) << 15) << 3)
20353 #define POW64  ((((((long long) 1 << 15) << 15) << 15) << 15) << 4)
20354 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1];
20355
20356 int
20357 main ()
20358 {
20359
20360   ;
20361   return 0;
20362 }
20363 _ACEOF
20364 rm -f conftest.$ac_objext
20365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366   (eval $ac_compile) 2>conftest.er1
20367   ac_status=$?
20368   grep -v '^ *+' conftest.er1 >conftest.err
20369   rm -f conftest.er1
20370   cat conftest.err >&5
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } &&
20373          { ac_try='test -z "$ac_c_werror_flag"
20374                          || test ! -s conftest.err'
20375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376   (eval $ac_try) 2>&5
20377   ac_status=$?
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); }; } &&
20380          { ac_try='test -s conftest.$ac_objext'
20381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382   (eval $ac_try) 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); }; }; then
20386   gl_cv_longlong_bitsize_64=yes
20387 else
20388   echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20390
20391 gl_cv_longlong_bitsize_64=no
20392 fi
20393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20394 fi
20395 echo "$as_me:$LINENO: result: $gl_cv_longlong_bitsize_64" >&5
20396 echo "${ECHO_T}$gl_cv_longlong_bitsize_64" >&6
20397   if test $gl_cv_longlong_bitsize_64 = yes; then
20398     HAVE_LONGLONG_64BIT=1
20399   else
20400     HAVE_LONGLONG_64BIT=0
20401   fi
20402
20403
20404 fi
20405
20406
20407
20408
20409
20410 for ac_func in strcasecmp
20411 do
20412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20413 echo "$as_me:$LINENO: checking for $ac_func" >&5
20414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20415 if eval "test \"\${$as_ac_var+set}\" = set"; then
20416   echo $ECHO_N "(cached) $ECHO_C" >&6
20417 else
20418   cat >conftest.$ac_ext <<_ACEOF
20419 /* confdefs.h.  */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h.  */
20424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20426 #define $ac_func innocuous_$ac_func
20427
20428 /* System header to define __stub macros and hopefully few prototypes,
20429     which can conflict with char $ac_func (); below.
20430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20431     <limits.h> exists even on freestanding compilers.  */
20432
20433 #ifdef __STDC__
20434 # include <limits.h>
20435 #else
20436 # include <assert.h>
20437 #endif
20438
20439 #undef $ac_func
20440
20441 /* Override any gcc2 internal prototype to avoid an error.  */
20442 #ifdef __cplusplus
20443 extern "C"
20444 {
20445 #endif
20446 /* We use char because int might match the return type of a gcc2
20447    builtin and then its argument prototype would still apply.  */
20448 char $ac_func ();
20449 /* The GNU C library defines this for functions which it implements
20450     to always fail with ENOSYS.  Some functions are actually named
20451     something starting with __ and the normal name is an alias.  */
20452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20453 choke me
20454 #else
20455 char (*f) () = $ac_func;
20456 #endif
20457 #ifdef __cplusplus
20458 }
20459 #endif
20460
20461 int
20462 main ()
20463 {
20464 return f != $ac_func;
20465   ;
20466   return 0;
20467 }
20468 _ACEOF
20469 rm -f conftest.$ac_objext conftest$ac_exeext
20470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20471   (eval $ac_link) 2>conftest.er1
20472   ac_status=$?
20473   grep -v '^ *+' conftest.er1 >conftest.err
20474   rm -f conftest.er1
20475   cat conftest.err >&5
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); } &&
20478          { ac_try='test -z "$ac_c_werror_flag"
20479                          || test ! -s conftest.err'
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); }; } &&
20485          { ac_try='test -s conftest$ac_exeext'
20486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487   (eval $ac_try) 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); }; }; then
20491   eval "$as_ac_var=yes"
20492 else
20493   echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496 eval "$as_ac_var=no"
20497 fi
20498 rm -f conftest.err conftest.$ac_objext \
20499       conftest$ac_exeext conftest.$ac_ext
20500 fi
20501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20503 if test `eval echo '${'$as_ac_var'}'` = yes; then
20504   cat >>confdefs.h <<_ACEOF
20505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20506 _ACEOF
20507
20508 else
20509   case $LIBOBJS in
20510     "$ac_func.$ac_objext"   | \
20511   *" $ac_func.$ac_objext"   | \
20512     "$ac_func.$ac_objext "* | \
20513   *" $ac_func.$ac_objext "* ) ;;
20514   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20515 esac
20516
20517 fi
20518 done
20519
20520
20521   if test $ac_cv_func_strcasecmp = no; then
20522
20523   :
20524
20525   fi
20526
20527
20528
20529 for ac_func in strncasecmp
20530 do
20531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20532 echo "$as_me:$LINENO: checking for $ac_func" >&5
20533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20534 if eval "test \"\${$as_ac_var+set}\" = set"; then
20535   echo $ECHO_N "(cached) $ECHO_C" >&6
20536 else
20537   cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h.  */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h.  */
20543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20545 #define $ac_func innocuous_$ac_func
20546
20547 /* System header to define __stub macros and hopefully few prototypes,
20548     which can conflict with char $ac_func (); below.
20549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20550     <limits.h> exists even on freestanding compilers.  */
20551
20552 #ifdef __STDC__
20553 # include <limits.h>
20554 #else
20555 # include <assert.h>
20556 #endif
20557
20558 #undef $ac_func
20559
20560 /* Override any gcc2 internal prototype to avoid an error.  */
20561 #ifdef __cplusplus
20562 extern "C"
20563 {
20564 #endif
20565 /* We use char because int might match the return type of a gcc2
20566    builtin and then its argument prototype would still apply.  */
20567 char $ac_func ();
20568 /* The GNU C library defines this for functions which it implements
20569     to always fail with ENOSYS.  Some functions are actually named
20570     something starting with __ and the normal name is an alias.  */
20571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20572 choke me
20573 #else
20574 char (*f) () = $ac_func;
20575 #endif
20576 #ifdef __cplusplus
20577 }
20578 #endif
20579
20580 int
20581 main ()
20582 {
20583 return f != $ac_func;
20584   ;
20585   return 0;
20586 }
20587 _ACEOF
20588 rm -f conftest.$ac_objext conftest$ac_exeext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20590   (eval $ac_link) 2>conftest.er1
20591   ac_status=$?
20592   grep -v '^ *+' conftest.er1 >conftest.err
20593   rm -f conftest.er1
20594   cat conftest.err >&5
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); } &&
20597          { ac_try='test -z "$ac_c_werror_flag"
20598                          || test ! -s conftest.err'
20599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600   (eval $ac_try) 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); }; } &&
20604          { ac_try='test -s conftest$ac_exeext'
20605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606   (eval $ac_try) 2>&5
20607   ac_status=$?
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); }; }; then
20610   eval "$as_ac_var=yes"
20611 else
20612   echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20614
20615 eval "$as_ac_var=no"
20616 fi
20617 rm -f conftest.err conftest.$ac_objext \
20618       conftest$ac_exeext conftest.$ac_ext
20619 fi
20620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20622 if test `eval echo '${'$as_ac_var'}'` = yes; then
20623   cat >>confdefs.h <<_ACEOF
20624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20625 _ACEOF
20626
20627 else
20628   case $LIBOBJS in
20629     "$ac_func.$ac_objext"   | \
20630   *" $ac_func.$ac_objext"   | \
20631     "$ac_func.$ac_objext "* | \
20632   *" $ac_func.$ac_objext "* ) ;;
20633   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20634 esac
20635
20636 fi
20637 done
20638
20639
20640   if test $ac_cv_func_strncasecmp = no; then
20641
20642   :
20643
20644   fi
20645
20646
20647
20648
20649 for ac_func in strerror
20650 do
20651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20652 echo "$as_me:$LINENO: checking for $ac_func" >&5
20653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20654 if eval "test \"\${$as_ac_var+set}\" = set"; then
20655   echo $ECHO_N "(cached) $ECHO_C" >&6
20656 else
20657   cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h.  */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h.  */
20663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20665 #define $ac_func innocuous_$ac_func
20666
20667 /* System header to define __stub macros and hopefully few prototypes,
20668     which can conflict with char $ac_func (); below.
20669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20670     <limits.h> exists even on freestanding compilers.  */
20671
20672 #ifdef __STDC__
20673 # include <limits.h>
20674 #else
20675 # include <assert.h>
20676 #endif
20677
20678 #undef $ac_func
20679
20680 /* Override any gcc2 internal prototype to avoid an error.  */
20681 #ifdef __cplusplus
20682 extern "C"
20683 {
20684 #endif
20685 /* We use char because int might match the return type of a gcc2
20686    builtin and then its argument prototype would still apply.  */
20687 char $ac_func ();
20688 /* The GNU C library defines this for functions which it implements
20689     to always fail with ENOSYS.  Some functions are actually named
20690     something starting with __ and the normal name is an alias.  */
20691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20692 choke me
20693 #else
20694 char (*f) () = $ac_func;
20695 #endif
20696 #ifdef __cplusplus
20697 }
20698 #endif
20699
20700 int
20701 main ()
20702 {
20703 return f != $ac_func;
20704   ;
20705   return 0;
20706 }
20707 _ACEOF
20708 rm -f conftest.$ac_objext conftest$ac_exeext
20709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20710   (eval $ac_link) 2>conftest.er1
20711   ac_status=$?
20712   grep -v '^ *+' conftest.er1 >conftest.err
20713   rm -f conftest.er1
20714   cat conftest.err >&5
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); } &&
20717          { ac_try='test -z "$ac_c_werror_flag"
20718                          || test ! -s conftest.err'
20719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720   (eval $ac_try) 2>&5
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); }; } &&
20724          { ac_try='test -s conftest$ac_exeext'
20725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726   (eval $ac_try) 2>&5
20727   ac_status=$?
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); }; }; then
20730   eval "$as_ac_var=yes"
20731 else
20732   echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20734
20735 eval "$as_ac_var=no"
20736 fi
20737 rm -f conftest.err conftest.$ac_objext \
20738       conftest$ac_exeext conftest.$ac_ext
20739 fi
20740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20742 if test `eval echo '${'$as_ac_var'}'` = yes; then
20743   cat >>confdefs.h <<_ACEOF
20744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20745 _ACEOF
20746
20747 else
20748   case $LIBOBJS in
20749     "$ac_func.$ac_objext"   | \
20750   *" $ac_func.$ac_objext"   | \
20751     "$ac_func.$ac_objext "* | \
20752   *" $ac_func.$ac_objext "* ) ;;
20753   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20754 esac
20755
20756 fi
20757 done
20758
20759
20760   if test $ac_cv_func_strerror = no; then
20761
20762   :
20763
20764   fi
20765
20766
20767
20768
20769
20770
20771   echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
20772 echo $ECHO_N "checking whether localtime_r is compatible with its POSIX signature... $ECHO_C" >&6
20773 if test "${gl_cv_time_r_posix+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 #include <time.h>
20783 int
20784 main ()
20785 {
20786 /* We don't need to append 'restrict's to the argument types,
20787            even though the POSIX signature has the 'restrict's,
20788            since C99 says they can't affect type compatibility.  */
20789         struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
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   gl_cv_time_r_posix=yes
20817 else
20818   echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20820
20821 gl_cv_time_r_posix=no
20822 fi
20823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20824 fi
20825 echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
20826 echo "${ECHO_T}$gl_cv_time_r_posix" >&6
20827   if test $gl_cv_time_r_posix = yes; then
20828
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_TIME_R_POSIX 1
20831 _ACEOF
20832
20833   else
20834     case $LIBOBJS in
20835     "time_r.$ac_objext"   | \
20836   *" time_r.$ac_objext"   | \
20837     "time_r.$ac_objext "* | \
20838   *" time_r.$ac_objext "* ) ;;
20839   *) LIBOBJS="$LIBOBJS time_r.$ac_objext" ;;
20840 esac
20841
20842
20843   :
20844
20845   fi
20846
20847
20848
20849
20850   :
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861   :
20862
20863
20864
20865
20866
20867   echo "$as_me:$LINENO: checking for struct timespec" >&5
20868 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
20869 if test "${fu_cv_sys_struct_timespec+set}" = set; then
20870   echo $ECHO_N "(cached) $ECHO_C" >&6
20871 else
20872   cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h.  */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h.  */
20878
20879 #      if TIME_WITH_SYS_TIME
20880 #       include <sys/time.h>
20881 #       include <time.h>
20882 #      else
20883 #       if HAVE_SYS_TIME_H
20884 #        include <sys/time.h>
20885 #       else
20886 #        include <time.h>
20887 #       endif
20888 #      endif
20889
20890 int
20891 main ()
20892 {
20893 static struct timespec x; x.tv_sec = x.tv_nsec;
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   fu_cv_sys_struct_timespec=yes
20921 else
20922   echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20924
20925 fu_cv_sys_struct_timespec=no
20926 fi
20927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20928
20929 fi
20930 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
20931 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
20932
20933   if test $fu_cv_sys_struct_timespec = yes; then
20934
20935 cat >>confdefs.h <<\_ACEOF
20936 #define HAVE_STRUCT_TIMESPEC 1
20937 _ACEOF
20938
20939   fi
20940
20941   echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
20942 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
20943 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
20944   echo $ECHO_N "(cached) $ECHO_C" >&6
20945 else
20946   ac_save_CPPFLAGS="$CPPFLAGS"
20947     ac_cv_struct_st_mtim_nsec=no
20948     # tv_nsec -- the usual case
20949     # _tv_nsec -- Solaris 2.6, if
20950     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
20951     #    && !defined __EXTENSIONS__)
20952     # st__tim.tv_nsec -- UnixWare 2.1.2
20953     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
20954       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
20955       cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h.  */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h.  */
20961 #include <sys/types.h>
20962 #include <sys/stat.h>
20963 int
20964 main ()
20965 {
20966 struct stat s; s.st_mtim.ST_MTIM_NSEC;
20967   ;
20968   return 0;
20969 }
20970 _ACEOF
20971 rm -f conftest.$ac_objext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973   (eval $ac_compile) 2>conftest.er1
20974   ac_status=$?
20975   grep -v '^ *+' conftest.er1 >conftest.err
20976   rm -f conftest.er1
20977   cat conftest.err >&5
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); } &&
20980          { ac_try='test -z "$ac_c_werror_flag"
20981                          || test ! -s conftest.err'
20982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983   (eval $ac_try) 2>&5
20984   ac_status=$?
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); }; } &&
20987          { ac_try='test -s conftest.$ac_objext'
20988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989   (eval $ac_try) 2>&5
20990   ac_status=$?
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); }; }; then
20993   ac_cv_struct_st_mtim_nsec=$ac_val; break
20994 else
20995   echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20997
20998 fi
20999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21000     done
21001     CPPFLAGS="$ac_save_CPPFLAGS"
21002 fi
21003 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
21004 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
21005
21006   if test $ac_cv_struct_st_mtim_nsec != no; then
21007
21008 cat >>confdefs.h <<_ACEOF
21009 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
21010 _ACEOF
21011
21012   fi
21013
21014
21015
21016
21017
21018   echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
21019 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
21020 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
21021   echo $ECHO_N "(cached) $ECHO_C" >&6
21022 else
21023   cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h.  */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h.  */
21029 #include <time.h>
21030
21031 int
21032 main ()
21033 {
21034 #ifndef nanosleep
21035   char *p = (char *) nanosleep;
21036 #endif
21037
21038   ;
21039   return 0;
21040 }
21041 _ACEOF
21042 rm -f conftest.$ac_objext
21043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21044   (eval $ac_compile) 2>conftest.er1
21045   ac_status=$?
21046   grep -v '^ *+' conftest.er1 >conftest.err
21047   rm -f conftest.er1
21048   cat conftest.err >&5
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); } &&
21051          { ac_try='test -z "$ac_c_werror_flag"
21052                          || test ! -s conftest.err'
21053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054   (eval $ac_try) 2>&5
21055   ac_status=$?
21056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057   (exit $ac_status); }; } &&
21058          { ac_try='test -s conftest.$ac_objext'
21059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060   (eval $ac_try) 2>&5
21061   ac_status=$?
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); }; }; then
21064   ac_cv_have_decl_nanosleep=yes
21065 else
21066   echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21068
21069 ac_cv_have_decl_nanosleep=no
21070 fi
21071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21072 fi
21073 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
21074 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
21075 if test $ac_cv_have_decl_nanosleep = yes; then
21076
21077 cat >>confdefs.h <<_ACEOF
21078 #define HAVE_DECL_NANOSLEEP 1
21079 _ACEOF
21080
21081
21082 else
21083   cat >>confdefs.h <<_ACEOF
21084 #define HAVE_DECL_NANOSLEEP 0
21085 _ACEOF
21086
21087
21088 fi
21089
21090
21091
21092
21093
21094   echo "$as_me:$LINENO: checking whether tzset clobbers localtime buffer" >&5
21095 echo $ECHO_N "checking whether tzset clobbers localtime buffer... $ECHO_C" >&6
21096 if test "${gl_cv_func_tzset_clobber+set}" = set; then
21097   echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099
21100   if test "$cross_compiling" = yes; then
21101   gl_cv_func_tzset_clobber=yes
21102 else
21103   cat >conftest.$ac_ext <<_ACEOF
21104 /* confdefs.h.  */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h.  */
21109
21110 #if TIME_WITH_SYS_TIME
21111 # include <sys/time.h>
21112 # include <time.h>
21113 #else
21114 # if HAVE_SYS_TIME_H
21115 #  include <sys/time.h>
21116 # else
21117 #  include <time.h>
21118 # endif
21119 #endif
21120 #include <stdlib.h>
21121
21122 int
21123 main ()
21124 {
21125   time_t t1 = 853958121;
21126   struct tm *p, s;
21127   putenv ("TZ=GMT0");
21128   p = localtime (&t1);
21129   s = *p;
21130   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
21131   tzset ();
21132   exit (p->tm_year != s.tm_year
21133         || p->tm_mon != s.tm_mon
21134         || p->tm_mday != s.tm_mday
21135         || p->tm_hour != s.tm_hour
21136         || p->tm_min != s.tm_min
21137         || p->tm_sec != s.tm_sec);
21138 }
21139
21140 _ACEOF
21141 rm -f conftest$ac_exeext
21142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21143   (eval $ac_link) 2>&5
21144   ac_status=$?
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148   (eval $ac_try) 2>&5
21149   ac_status=$?
21150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151   (exit $ac_status); }; }; then
21152   gl_cv_func_tzset_clobber=no
21153 else
21154   echo "$as_me: program exited with status $ac_status" >&5
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21157
21158 ( exit $ac_status )
21159 gl_cv_func_tzset_clobber=yes
21160 fi
21161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21162 fi
21163 fi
21164 echo "$as_me:$LINENO: result: $gl_cv_func_tzset_clobber" >&5
21165 echo "${ECHO_T}$gl_cv_func_tzset_clobber" >&6
21166
21167
21168 cat >>confdefs.h <<\_ACEOF
21169 #define HAVE_RUN_TZSET_TEST 1
21170 _ACEOF
21171
21172
21173   if test $gl_cv_func_tzset_clobber = yes; then
21174
21175   case $LIBOBJS in
21176     "gettimeofday.$ac_objext"   | \
21177   *" gettimeofday.$ac_objext"   | \
21178     "gettimeofday.$ac_objext "* | \
21179   *" gettimeofday.$ac_objext "* ) ;;
21180   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
21181 esac
21182
21183
21184 cat >>confdefs.h <<\_ACEOF
21185 #define gmtime rpl_gmtime
21186 _ACEOF
21187
21188
21189 cat >>confdefs.h <<\_ACEOF
21190 #define localtime rpl_localtime
21191 _ACEOF
21192
21193
21194
21195
21196 cat >>confdefs.h <<\_ACEOF
21197 #define tzset rpl_tzset
21198 _ACEOF
21199
21200
21201 cat >>confdefs.h <<\_ACEOF
21202 #define TZSET_CLOBBERS_LOCALTIME_BUFFER 1
21203 _ACEOF
21204
21205   fi
21206
21207
21208
21209 cat >>confdefs.h <<\_ACEOF
21210 #define USE_UNLOCKED_IO 1
21211 _ACEOF
21212
21213
21214
21215
21216
21217   :
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263 for ac_func in vasnprintf
21264 do
21265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21266 echo "$as_me:$LINENO: checking for $ac_func" >&5
21267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21268 if eval "test \"\${$as_ac_var+set}\" = set"; then
21269   echo $ECHO_N "(cached) $ECHO_C" >&6
21270 else
21271   cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h.  */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h.  */
21277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21279 #define $ac_func innocuous_$ac_func
21280
21281 /* System header to define __stub macros and hopefully few prototypes,
21282     which can conflict with char $ac_func (); below.
21283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21284     <limits.h> exists even on freestanding compilers.  */
21285
21286 #ifdef __STDC__
21287 # include <limits.h>
21288 #else
21289 # include <assert.h>
21290 #endif
21291
21292 #undef $ac_func
21293
21294 /* Override any gcc2 internal prototype to avoid an error.  */
21295 #ifdef __cplusplus
21296 extern "C"
21297 {
21298 #endif
21299 /* We use char because int might match the return type of a gcc2
21300    builtin and then its argument prototype would still apply.  */
21301 char $ac_func ();
21302 /* The GNU C library defines this for functions which it implements
21303     to always fail with ENOSYS.  Some functions are actually named
21304     something starting with __ and the normal name is an alias.  */
21305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21306 choke me
21307 #else
21308 char (*f) () = $ac_func;
21309 #endif
21310 #ifdef __cplusplus
21311 }
21312 #endif
21313
21314 int
21315 main ()
21316 {
21317 return f != $ac_func;
21318   ;
21319   return 0;
21320 }
21321 _ACEOF
21322 rm -f conftest.$ac_objext conftest$ac_exeext
21323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21324   (eval $ac_link) 2>conftest.er1
21325   ac_status=$?
21326   grep -v '^ *+' conftest.er1 >conftest.err
21327   rm -f conftest.er1
21328   cat conftest.err >&5
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); } &&
21331          { ac_try='test -z "$ac_c_werror_flag"
21332                          || test ! -s conftest.err'
21333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334   (eval $ac_try) 2>&5
21335   ac_status=$?
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); }; } &&
21338          { ac_try='test -s conftest$ac_exeext'
21339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340   (eval $ac_try) 2>&5
21341   ac_status=$?
21342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343   (exit $ac_status); }; }; then
21344   eval "$as_ac_var=yes"
21345 else
21346   echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21348
21349 eval "$as_ac_var=no"
21350 fi
21351 rm -f conftest.err conftest.$ac_objext \
21352       conftest$ac_exeext conftest.$ac_ext
21353 fi
21354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21356 if test `eval echo '${'$as_ac_var'}'` = yes; then
21357   cat >>confdefs.h <<_ACEOF
21358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21359 _ACEOF
21360
21361 else
21362   case $LIBOBJS in
21363     "$ac_func.$ac_objext"   | \
21364   *" $ac_func.$ac_objext"   | \
21365     "$ac_func.$ac_objext "* | \
21366   *" $ac_func.$ac_objext "* ) ;;
21367   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21368 esac
21369
21370 fi
21371 done
21372
21373
21374   if test $ac_cv_func_vasnprintf = no; then
21375     case $LIBOBJS in
21376     "printf-args.$ac_objext"   | \
21377   *" printf-args.$ac_objext"   | \
21378     "printf-args.$ac_objext "* | \
21379   *" printf-args.$ac_objext "* ) ;;
21380   *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" ;;
21381 esac
21382
21383     case $LIBOBJS in
21384     "printf-parse.$ac_objext"   | \
21385   *" printf-parse.$ac_objext"   | \
21386     "printf-parse.$ac_objext "* | \
21387   *" printf-parse.$ac_objext "* ) ;;
21388   *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" ;;
21389 esac
21390
21391     case $LIBOBJS in
21392     "asnprintf.$ac_objext"   | \
21393   *" asnprintf.$ac_objext"   | \
21394     "asnprintf.$ac_objext "* | \
21395   *" asnprintf.$ac_objext "* ) ;;
21396   *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
21397 esac
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21413 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21414 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21415   echo $ECHO_N "(cached) $ECHO_C" >&6
21416 else
21417   cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h.  */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h.  */
21423 $ac_includes_default
21424 int
21425 main ()
21426 {
21427 if ((ptrdiff_t *) 0)
21428   return 0;
21429 if (sizeof (ptrdiff_t))
21430   return 0;
21431   ;
21432   return 0;
21433 }
21434 _ACEOF
21435 rm -f conftest.$ac_objext
21436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21437   (eval $ac_compile) 2>conftest.er1
21438   ac_status=$?
21439   grep -v '^ *+' conftest.er1 >conftest.err
21440   rm -f conftest.er1
21441   cat conftest.err >&5
21442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443   (exit $ac_status); } &&
21444          { ac_try='test -z "$ac_c_werror_flag"
21445                          || test ! -s conftest.err'
21446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447   (eval $ac_try) 2>&5
21448   ac_status=$?
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); }; } &&
21451          { ac_try='test -s conftest.$ac_objext'
21452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453   (eval $ac_try) 2>&5
21454   ac_status=$?
21455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456   (exit $ac_status); }; }; then
21457   ac_cv_type_ptrdiff_t=yes
21458 else
21459   echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21461
21462 ac_cv_type_ptrdiff_t=no
21463 fi
21464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21465 fi
21466 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21467 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
21468 if test $ac_cv_type_ptrdiff_t = yes; then
21469
21470 cat >>confdefs.h <<_ACEOF
21471 #define HAVE_PTRDIFF_T 1
21472 _ACEOF
21473
21474
21475 fi
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487 for ac_func in snprintf wcslen
21488 do
21489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21490 echo "$as_me:$LINENO: checking for $ac_func" >&5
21491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21492 if eval "test \"\${$as_ac_var+set}\" = set"; then
21493   echo $ECHO_N "(cached) $ECHO_C" >&6
21494 else
21495   cat >conftest.$ac_ext <<_ACEOF
21496 /* confdefs.h.  */
21497 _ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h.  */
21501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21503 #define $ac_func innocuous_$ac_func
21504
21505 /* System header to define __stub macros and hopefully few prototypes,
21506     which can conflict with char $ac_func (); below.
21507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21508     <limits.h> exists even on freestanding compilers.  */
21509
21510 #ifdef __STDC__
21511 # include <limits.h>
21512 #else
21513 # include <assert.h>
21514 #endif
21515
21516 #undef $ac_func
21517
21518 /* Override any gcc2 internal prototype to avoid an error.  */
21519 #ifdef __cplusplus
21520 extern "C"
21521 {
21522 #endif
21523 /* We use char because int might match the return type of a gcc2
21524    builtin and then its argument prototype would still apply.  */
21525 char $ac_func ();
21526 /* The GNU C library defines this for functions which it implements
21527     to always fail with ENOSYS.  Some functions are actually named
21528     something starting with __ and the normal name is an alias.  */
21529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21530 choke me
21531 #else
21532 char (*f) () = $ac_func;
21533 #endif
21534 #ifdef __cplusplus
21535 }
21536 #endif
21537
21538 int
21539 main ()
21540 {
21541 return f != $ac_func;
21542   ;
21543   return 0;
21544 }
21545 _ACEOF
21546 rm -f conftest.$ac_objext conftest$ac_exeext
21547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21548   (eval $ac_link) 2>conftest.er1
21549   ac_status=$?
21550   grep -v '^ *+' conftest.er1 >conftest.err
21551   rm -f conftest.er1
21552   cat conftest.err >&5
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); } &&
21555          { ac_try='test -z "$ac_c_werror_flag"
21556                          || test ! -s conftest.err'
21557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558   (eval $ac_try) 2>&5
21559   ac_status=$?
21560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561   (exit $ac_status); }; } &&
21562          { ac_try='test -s conftest$ac_exeext'
21563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564   (eval $ac_try) 2>&5
21565   ac_status=$?
21566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567   (exit $ac_status); }; }; then
21568   eval "$as_ac_var=yes"
21569 else
21570   echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21572
21573 eval "$as_ac_var=no"
21574 fi
21575 rm -f conftest.err conftest.$ac_objext \
21576       conftest$ac_exeext conftest.$ac_ext
21577 fi
21578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21580 if test `eval echo '${'$as_ac_var'}'` = yes; then
21581   cat >>confdefs.h <<_ACEOF
21582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21583 _ACEOF
21584
21585 fi
21586 done
21587
21588
21589
21590
21591   fi
21592
21593
21594
21595 for ac_func in vasprintf
21596 do
21597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21598 echo "$as_me:$LINENO: checking for $ac_func" >&5
21599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21600 if eval "test \"\${$as_ac_var+set}\" = set"; then
21601   echo $ECHO_N "(cached) $ECHO_C" >&6
21602 else
21603   cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h.  */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h.  */
21609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21611 #define $ac_func innocuous_$ac_func
21612
21613 /* System header to define __stub macros and hopefully few prototypes,
21614     which can conflict with char $ac_func (); below.
21615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21616     <limits.h> exists even on freestanding compilers.  */
21617
21618 #ifdef __STDC__
21619 # include <limits.h>
21620 #else
21621 # include <assert.h>
21622 #endif
21623
21624 #undef $ac_func
21625
21626 /* Override any gcc2 internal prototype to avoid an error.  */
21627 #ifdef __cplusplus
21628 extern "C"
21629 {
21630 #endif
21631 /* We use char because int might match the return type of a gcc2
21632    builtin and then its argument prototype would still apply.  */
21633 char $ac_func ();
21634 /* The GNU C library defines this for functions which it implements
21635     to always fail with ENOSYS.  Some functions are actually named
21636     something starting with __ and the normal name is an alias.  */
21637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21638 choke me
21639 #else
21640 char (*f) () = $ac_func;
21641 #endif
21642 #ifdef __cplusplus
21643 }
21644 #endif
21645
21646 int
21647 main ()
21648 {
21649 return f != $ac_func;
21650   ;
21651   return 0;
21652 }
21653 _ACEOF
21654 rm -f conftest.$ac_objext conftest$ac_exeext
21655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21656   (eval $ac_link) 2>conftest.er1
21657   ac_status=$?
21658   grep -v '^ *+' conftest.er1 >conftest.err
21659   rm -f conftest.er1
21660   cat conftest.err >&5
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); } &&
21663          { ac_try='test -z "$ac_c_werror_flag"
21664                          || test ! -s conftest.err'
21665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666   (eval $ac_try) 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); }; } &&
21670          { ac_try='test -s conftest$ac_exeext'
21671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672   (eval $ac_try) 2>&5
21673   ac_status=$?
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); }; }; then
21676   eval "$as_ac_var=yes"
21677 else
21678   echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21680
21681 eval "$as_ac_var=no"
21682 fi
21683 rm -f conftest.err conftest.$ac_objext \
21684       conftest$ac_exeext conftest.$ac_ext
21685 fi
21686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21688 if test `eval echo '${'$as_ac_var'}'` = yes; then
21689   cat >>confdefs.h <<_ACEOF
21690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21691 _ACEOF
21692
21693 else
21694   case $LIBOBJS in
21695     "$ac_func.$ac_objext"   | \
21696   *" $ac_func.$ac_objext"   | \
21697     "$ac_func.$ac_objext "* | \
21698   *" $ac_func.$ac_objext "* ) ;;
21699   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21700 esac
21701
21702 fi
21703 done
21704
21705
21706   if test $ac_cv_func_vasprintf = no; then
21707     case $LIBOBJS in
21708     "asprintf.$ac_objext"   | \
21709   *" asprintf.$ac_objext"   | \
21710     "asprintf.$ac_objext "* | \
21711   *" asprintf.$ac_objext "* ) ;;
21712   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
21713 esac
21714
21715
21716
21717
21718
21719   fi
21720
21721
21722
21723   :
21724
21725
21726
21727   :
21728
21729
21730
21731
21732   :
21733
21734
21735
21736
21737
21738
21739 for ac_func in getcwd
21740 do
21741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21742 echo "$as_me:$LINENO: checking for $ac_func" >&5
21743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21744 if eval "test \"\${$as_ac_var+set}\" = set"; then
21745   echo $ECHO_N "(cached) $ECHO_C" >&6
21746 else
21747   cat >conftest.$ac_ext <<_ACEOF
21748 /* confdefs.h.  */
21749 _ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h.  */
21753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21755 #define $ac_func innocuous_$ac_func
21756
21757 /* System header to define __stub macros and hopefully few prototypes,
21758     which can conflict with char $ac_func (); below.
21759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21760     <limits.h> exists even on freestanding compilers.  */
21761
21762 #ifdef __STDC__
21763 # include <limits.h>
21764 #else
21765 # include <assert.h>
21766 #endif
21767
21768 #undef $ac_func
21769
21770 /* Override any gcc2 internal prototype to avoid an error.  */
21771 #ifdef __cplusplus
21772 extern "C"
21773 {
21774 #endif
21775 /* We use char because int might match the return type of a gcc2
21776    builtin and then its argument prototype would still apply.  */
21777 char $ac_func ();
21778 /* The GNU C library defines this for functions which it implements
21779     to always fail with ENOSYS.  Some functions are actually named
21780     something starting with __ and the normal name is an alias.  */
21781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21782 choke me
21783 #else
21784 char (*f) () = $ac_func;
21785 #endif
21786 #ifdef __cplusplus
21787 }
21788 #endif
21789
21790 int
21791 main ()
21792 {
21793 return f != $ac_func;
21794   ;
21795   return 0;
21796 }
21797 _ACEOF
21798 rm -f conftest.$ac_objext conftest$ac_exeext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21800   (eval $ac_link) 2>conftest.er1
21801   ac_status=$?
21802   grep -v '^ *+' conftest.er1 >conftest.err
21803   rm -f conftest.er1
21804   cat conftest.err >&5
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); } &&
21807          { ac_try='test -z "$ac_c_werror_flag"
21808                          || test ! -s conftest.err'
21809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810   (eval $ac_try) 2>&5
21811   ac_status=$?
21812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); }; } &&
21814          { ac_try='test -s conftest$ac_exeext'
21815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816   (eval $ac_try) 2>&5
21817   ac_status=$?
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); }; }; then
21820   eval "$as_ac_var=yes"
21821 else
21822   echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21824
21825 eval "$as_ac_var=no"
21826 fi
21827 rm -f conftest.err conftest.$ac_objext \
21828       conftest$ac_exeext conftest.$ac_ext
21829 fi
21830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21832 if test `eval echo '${'$as_ac_var'}'` = yes; then
21833   cat >>confdefs.h <<_ACEOF
21834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21835 _ACEOF
21836
21837 fi
21838 done
21839
21840
21841
21842   :
21843
21844
21845
21846
21847
21848    echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
21849 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
21850 if test "${ac_cv_func_getcwd_null+set}" = set; then
21851   echo $ECHO_N "(cached) $ECHO_C" >&6
21852 else
21853   if test "$cross_compiling" = yes; then
21854   ac_cv_func_getcwd_null=no
21855 else
21856   cat >conftest.$ac_ext <<_ACEOF
21857 /* confdefs.h.  */
21858 _ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h.  */
21862
21863 #        include <stdlib.h>
21864 #        ifdef HAVE_UNISTD_H
21865 #         include <unistd.h>
21866 #        endif
21867 #        ifndef getcwd
21868          char *getcwd ();
21869 #        endif
21870          int
21871          main ()
21872          {
21873            if (chdir ("/") != 0)
21874              exit (1);
21875            else
21876              {
21877                char *f = getcwd (NULL, 0);
21878                exit (! (f && f[0] == '/' && !f[1]));
21879              }
21880          }
21881 _ACEOF
21882 rm -f conftest$ac_exeext
21883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21884   (eval $ac_link) 2>&5
21885   ac_status=$?
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889   (eval $ac_try) 2>&5
21890   ac_status=$?
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); }; }; then
21893   ac_cv_func_getcwd_null=yes
21894 else
21895   echo "$as_me: program exited with status $ac_status" >&5
21896 echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21898
21899 ( exit $ac_status )
21900 ac_cv_func_getcwd_null=no
21901 fi
21902 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21903 fi
21904 fi
21905 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
21906 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
21907    if test $ac_cv_func_getcwd_null = yes; then
21908
21909 cat >>confdefs.h <<\_ACEOF
21910 #define HAVE_GETCWD_NULL 1
21911 _ACEOF
21912
21913    fi
21914
21915
21916
21917
21918   :
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929 for ac_header in stdint.h
21930 do
21931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21933   echo "$as_me:$LINENO: checking for $ac_header" >&5
21934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21936   echo $ECHO_N "(cached) $ECHO_C" >&6
21937 fi
21938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21940 else
21941   # Is the header compilable?
21942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21944 cat >conftest.$ac_ext <<_ACEOF
21945 /* confdefs.h.  */
21946 _ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h.  */
21950 $ac_includes_default
21951 #include <$ac_header>
21952 _ACEOF
21953 rm -f conftest.$ac_objext
21954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21955   (eval $ac_compile) 2>conftest.er1
21956   ac_status=$?
21957   grep -v '^ *+' conftest.er1 >conftest.err
21958   rm -f conftest.er1
21959   cat conftest.err >&5
21960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961   (exit $ac_status); } &&
21962          { ac_try='test -z "$ac_c_werror_flag"
21963                          || test ! -s conftest.err'
21964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965   (eval $ac_try) 2>&5
21966   ac_status=$?
21967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); }; } &&
21969          { ac_try='test -s conftest.$ac_objext'
21970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21971   (eval $ac_try) 2>&5
21972   ac_status=$?
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); }; }; then
21975   ac_header_compiler=yes
21976 else
21977   echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21979
21980 ac_header_compiler=no
21981 fi
21982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21984 echo "${ECHO_T}$ac_header_compiler" >&6
21985
21986 # Is the header present?
21987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21989 cat >conftest.$ac_ext <<_ACEOF
21990 /* confdefs.h.  */
21991 _ACEOF
21992 cat confdefs.h >>conftest.$ac_ext
21993 cat >>conftest.$ac_ext <<_ACEOF
21994 /* end confdefs.h.  */
21995 #include <$ac_header>
21996 _ACEOF
21997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21999   ac_status=$?
22000   grep -v '^ *+' conftest.er1 >conftest.err
22001   rm -f conftest.er1
22002   cat conftest.err >&5
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); } >/dev/null; then
22005   if test -s conftest.err; then
22006     ac_cpp_err=$ac_c_preproc_warn_flag
22007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22008   else
22009     ac_cpp_err=
22010   fi
22011 else
22012   ac_cpp_err=yes
22013 fi
22014 if test -z "$ac_cpp_err"; then
22015   ac_header_preproc=yes
22016 else
22017   echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22019
22020   ac_header_preproc=no
22021 fi
22022 rm -f conftest.err conftest.$ac_ext
22023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22024 echo "${ECHO_T}$ac_header_preproc" >&6
22025
22026 # So?  What about this header?
22027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22028   yes:no: )
22029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22033     ac_header_preproc=yes
22034     ;;
22035   no:yes:* )
22036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22048     (
22049       cat <<\_ASBOX
22050 ## ------------------------------ ##
22051 ## Report this to bug-cvs@gnu.org ##
22052 ## ------------------------------ ##
22053 _ASBOX
22054     ) |
22055       sed "s/^/$as_me: WARNING:     /" >&2
22056     ;;
22057 esac
22058 echo "$as_me:$LINENO: checking for $ac_header" >&5
22059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22061   echo $ECHO_N "(cached) $ECHO_C" >&6
22062 else
22063   eval "$as_ac_Header=\$ac_header_preproc"
22064 fi
22065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22067
22068 fi
22069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22070   cat >>confdefs.h <<_ACEOF
22071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22072 _ACEOF
22073
22074 fi
22075
22076 done
22077
22078
22079
22080     :
22081
22082
22083
22084         MKINSTALLDIRS=
22085   if test -n "$ac_aux_dir"; then
22086     case "$ac_aux_dir" in
22087       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
22088       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
22089     esac
22090   fi
22091   if test -z "$MKINSTALLDIRS"; then
22092     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22093   fi
22094
22095
22096
22097   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22098 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22099     # Check whether --enable-nls or --disable-nls was given.
22100 if test "${enable_nls+set}" = set; then
22101   enableval="$enable_nls"
22102   USE_NLS=$enableval
22103 else
22104   USE_NLS=yes
22105 fi;
22106   echo "$as_me:$LINENO: result: $USE_NLS" >&5
22107 echo "${ECHO_T}$USE_NLS" >&6
22108
22109
22110
22111
22112
22113
22114 # Prepare PATH_SEPARATOR.
22115 # The user is always right.
22116 if test "${PATH_SEPARATOR+set}" != set; then
22117   echo "#! /bin/sh" >conf$$.sh
22118   echo  "exit 0"   >>conf$$.sh
22119   chmod +x conf$$.sh
22120   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22121     PATH_SEPARATOR=';'
22122   else
22123     PATH_SEPARATOR=:
22124   fi
22125   rm -f conf$$.sh
22126 fi
22127
22128 # Find out how to test for executable files. Don't use a zero-byte file,
22129 # as systems may use methods other than mode bits to determine executability.
22130 cat >conf$$.file <<_ASEOF
22131 #! /bin/sh
22132 exit 0
22133 _ASEOF
22134 chmod +x conf$$.file
22135 if test -x conf$$.file >/dev/null 2>&1; then
22136   ac_executable_p="test -x"
22137 else
22138   ac_executable_p="test -f"
22139 fi
22140 rm -f conf$$.file
22141
22142 # Extract the first word of "msgfmt", so it can be a program name with args.
22143 set dummy msgfmt; ac_word=$2
22144 echo "$as_me:$LINENO: checking for $ac_word" >&5
22145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22146 if test "${ac_cv_path_MSGFMT+set}" = set; then
22147   echo $ECHO_N "(cached) $ECHO_C" >&6
22148 else
22149   case "$MSGFMT" in
22150   [\\/]* | ?:[\\/]*)
22151     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22152     ;;
22153   *)
22154     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22155     for ac_dir in $PATH; do
22156       IFS="$ac_save_IFS"
22157       test -z "$ac_dir" && ac_dir=.
22158       for ac_exec_ext in '' $ac_executable_extensions; do
22159         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22160           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
22161      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22162             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22163             break 2
22164           fi
22165         fi
22166       done
22167     done
22168     IFS="$ac_save_IFS"
22169   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22170     ;;
22171 esac
22172 fi
22173 MSGFMT="$ac_cv_path_MSGFMT"
22174 if test "$MSGFMT" != ":"; then
22175   echo "$as_me:$LINENO: result: $MSGFMT" >&5
22176 echo "${ECHO_T}$MSGFMT" >&6
22177 else
22178   echo "$as_me:$LINENO: result: no" >&5
22179 echo "${ECHO_T}no" >&6
22180 fi
22181
22182   # Extract the first word of "gmsgfmt", so it can be a program name with args.
22183 set dummy gmsgfmt; ac_word=$2
22184 echo "$as_me:$LINENO: checking for $ac_word" >&5
22185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22186 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22187   echo $ECHO_N "(cached) $ECHO_C" >&6
22188 else
22189   case $GMSGFMT in
22190   [\\/]* | ?:[\\/]*)
22191   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22192   ;;
22193   *)
22194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22195 for as_dir in $PATH
22196 do
22197   IFS=$as_save_IFS
22198   test -z "$as_dir" && as_dir=.
22199   for ac_exec_ext in '' $ac_executable_extensions; do
22200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22201     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22203     break 2
22204   fi
22205 done
22206 done
22207
22208   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22209   ;;
22210 esac
22211 fi
22212 GMSGFMT=$ac_cv_path_GMSGFMT
22213
22214 if test -n "$GMSGFMT"; then
22215   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22216 echo "${ECHO_T}$GMSGFMT" >&6
22217 else
22218   echo "$as_me:$LINENO: result: no" >&5
22219 echo "${ECHO_T}no" >&6
22220 fi
22221
22222
22223
22224 # Prepare PATH_SEPARATOR.
22225 # The user is always right.
22226 if test "${PATH_SEPARATOR+set}" != set; then
22227   echo "#! /bin/sh" >conf$$.sh
22228   echo  "exit 0"   >>conf$$.sh
22229   chmod +x conf$$.sh
22230   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22231     PATH_SEPARATOR=';'
22232   else
22233     PATH_SEPARATOR=:
22234   fi
22235   rm -f conf$$.sh
22236 fi
22237
22238 # Find out how to test for executable files. Don't use a zero-byte file,
22239 # as systems may use methods other than mode bits to determine executability.
22240 cat >conf$$.file <<_ASEOF
22241 #! /bin/sh
22242 exit 0
22243 _ASEOF
22244 chmod +x conf$$.file
22245 if test -x conf$$.file >/dev/null 2>&1; then
22246   ac_executable_p="test -x"
22247 else
22248   ac_executable_p="test -f"
22249 fi
22250 rm -f conf$$.file
22251
22252 # Extract the first word of "xgettext", so it can be a program name with args.
22253 set dummy xgettext; ac_word=$2
22254 echo "$as_me:$LINENO: checking for $ac_word" >&5
22255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22256 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22257   echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259   case "$XGETTEXT" in
22260   [\\/]* | ?:[\\/]*)
22261     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22262     ;;
22263   *)
22264     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22265     for ac_dir in $PATH; do
22266       IFS="$ac_save_IFS"
22267       test -z "$ac_dir" && ac_dir=.
22268       for ac_exec_ext in '' $ac_executable_extensions; do
22269         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22270           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22271      (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
22272             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22273             break 2
22274           fi
22275         fi
22276       done
22277     done
22278     IFS="$ac_save_IFS"
22279   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22280     ;;
22281 esac
22282 fi
22283 XGETTEXT="$ac_cv_path_XGETTEXT"
22284 if test "$XGETTEXT" != ":"; then
22285   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22286 echo "${ECHO_T}$XGETTEXT" >&6
22287 else
22288   echo "$as_me:$LINENO: result: no" >&5
22289 echo "${ECHO_T}no" >&6
22290 fi
22291
22292     rm -f messages.po
22293
22294
22295 # Prepare PATH_SEPARATOR.
22296 # The user is always right.
22297 if test "${PATH_SEPARATOR+set}" != set; then
22298   echo "#! /bin/sh" >conf$$.sh
22299   echo  "exit 0"   >>conf$$.sh
22300   chmod +x conf$$.sh
22301   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22302     PATH_SEPARATOR=';'
22303   else
22304     PATH_SEPARATOR=:
22305   fi
22306   rm -f conf$$.sh
22307 fi
22308
22309 # Find out how to test for executable files. Don't use a zero-byte file,
22310 # as systems may use methods other than mode bits to determine executability.
22311 cat >conf$$.file <<_ASEOF
22312 #! /bin/sh
22313 exit 0
22314 _ASEOF
22315 chmod +x conf$$.file
22316 if test -x conf$$.file >/dev/null 2>&1; then
22317   ac_executable_p="test -x"
22318 else
22319   ac_executable_p="test -f"
22320 fi
22321 rm -f conf$$.file
22322
22323 # Extract the first word of "msgmerge", so it can be a program name with args.
22324 set dummy msgmerge; ac_word=$2
22325 echo "$as_me:$LINENO: checking for $ac_word" >&5
22326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22327 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22328   echo $ECHO_N "(cached) $ECHO_C" >&6
22329 else
22330   case "$MSGMERGE" in
22331   [\\/]* | ?:[\\/]*)
22332     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22333     ;;
22334   *)
22335     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22336     for ac_dir in $PATH; do
22337       IFS="$ac_save_IFS"
22338       test -z "$ac_dir" && ac_dir=.
22339       for ac_exec_ext in '' $ac_executable_extensions; do
22340         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22341           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22342             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22343             break 2
22344           fi
22345         fi
22346       done
22347     done
22348     IFS="$ac_save_IFS"
22349   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22350     ;;
22351 esac
22352 fi
22353 MSGMERGE="$ac_cv_path_MSGMERGE"
22354 if test "$MSGMERGE" != ":"; then
22355   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22356 echo "${ECHO_T}$MSGMERGE" >&6
22357 else
22358   echo "$as_me:$LINENO: result: no" >&5
22359 echo "${ECHO_T}no" >&6
22360 fi
22361
22362
22363       if test "$GMSGFMT" != ":"; then
22364             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22365        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22366       : ;
22367     else
22368       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22369       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22370 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22371       GMSGFMT=":"
22372     fi
22373   fi
22374
22375       if test "$XGETTEXT" != ":"; then
22376             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22377        (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
22378       : ;
22379     else
22380       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22381 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22382       XGETTEXT=":"
22383     fi
22384         rm -f messages.po
22385   fi
22386
22387             ac_config_commands="$ac_config_commands default-1"
22388
22389
22390
22391       if test "X$prefix" = "XNONE"; then
22392     acl_final_prefix="$ac_default_prefix"
22393   else
22394     acl_final_prefix="$prefix"
22395   fi
22396   if test "X$exec_prefix" = "XNONE"; then
22397     acl_final_exec_prefix='${prefix}'
22398   else
22399     acl_final_exec_prefix="$exec_prefix"
22400   fi
22401   acl_save_prefix="$prefix"
22402   prefix="$acl_final_prefix"
22403   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22404   prefix="$acl_save_prefix"
22405
22406 # Make sure we can run config.sub.
22407 $ac_config_sub sun4 >/dev/null 2>&1 ||
22408   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
22409 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
22410    { (exit 1); exit 1; }; }
22411
22412 echo "$as_me:$LINENO: checking build system type" >&5
22413 echo $ECHO_N "checking build system type... $ECHO_C" >&6
22414 if test "${ac_cv_build+set}" = set; then
22415   echo $ECHO_N "(cached) $ECHO_C" >&6
22416 else
22417   ac_cv_build_alias=$build_alias
22418 test -z "$ac_cv_build_alias" &&
22419   ac_cv_build_alias=`$ac_config_guess`
22420 test -z "$ac_cv_build_alias" &&
22421   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
22422 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
22423    { (exit 1); exit 1; }; }
22424 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
22425   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
22426 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
22427    { (exit 1); exit 1; }; }
22428
22429 fi
22430 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
22431 echo "${ECHO_T}$ac_cv_build" >&6
22432 build=$ac_cv_build
22433 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
22434 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
22435 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
22436
22437
22438 echo "$as_me:$LINENO: checking host system type" >&5
22439 echo $ECHO_N "checking host system type... $ECHO_C" >&6
22440 if test "${ac_cv_host+set}" = set; then
22441   echo $ECHO_N "(cached) $ECHO_C" >&6
22442 else
22443   ac_cv_host_alias=$host_alias
22444 test -z "$ac_cv_host_alias" &&
22445   ac_cv_host_alias=$ac_cv_build_alias
22446 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
22447   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
22448 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
22449    { (exit 1); exit 1; }; }
22450
22451 fi
22452 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
22453 echo "${ECHO_T}$ac_cv_host" >&6
22454 host=$ac_cv_host
22455 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
22456 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
22457 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
22458
22459
22460
22461 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22462 if test "${with_gnu_ld+set}" = set; then
22463   withval="$with_gnu_ld"
22464   test "$withval" = no || with_gnu_ld=yes
22465 else
22466   with_gnu_ld=no
22467 fi;
22468 # Prepare PATH_SEPARATOR.
22469 # The user is always right.
22470 if test "${PATH_SEPARATOR+set}" != set; then
22471   echo "#! /bin/sh" >conf$$.sh
22472   echo  "exit 0"   >>conf$$.sh
22473   chmod +x conf$$.sh
22474   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22475     PATH_SEPARATOR=';'
22476   else
22477     PATH_SEPARATOR=:
22478   fi
22479   rm -f conf$$.sh
22480 fi
22481 ac_prog=ld
22482 if test "$GCC" = yes; then
22483   # Check if gcc -print-prog-name=ld gives a path.
22484   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22485 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22486   case $host in
22487   *-*-mingw*)
22488     # gcc leaves a trailing carriage return which upsets mingw
22489     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22490   *)
22491     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22492   esac
22493   case $ac_prog in
22494     # Accept absolute paths.
22495     [\\/]* | [A-Za-z]:[\\/]*)
22496       re_direlt='/[^/][^/]*/\.\./'
22497       # Canonicalize the path of ld
22498       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22499       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22500         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22501       done
22502       test -z "$LD" && LD="$ac_prog"
22503       ;;
22504   "")
22505     # If it fails, then pretend we aren't using GCC.
22506     ac_prog=ld
22507     ;;
22508   *)
22509     # If it is relative, then search for the first ld in PATH.
22510     with_gnu_ld=unknown
22511     ;;
22512   esac
22513 elif test "$with_gnu_ld" = yes; then
22514   echo "$as_me:$LINENO: checking for GNU ld" >&5
22515 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22516 else
22517   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22518 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22519 fi
22520 if test "${acl_cv_path_LD+set}" = set; then
22521   echo $ECHO_N "(cached) $ECHO_C" >&6
22522 else
22523   if test -z "$LD"; then
22524   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22525   for ac_dir in $PATH; do
22526     test -z "$ac_dir" && ac_dir=.
22527     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22528       acl_cv_path_LD="$ac_dir/$ac_prog"
22529       # Check to see if the program is GNU ld.  I'd rather use --version,
22530       # but apparently some GNU ld's only accept -v.
22531       # Break only if it was the GNU/non-GNU ld that we prefer.
22532       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22533       *GNU* | *'with BFD'*)
22534         test "$with_gnu_ld" != no && break ;;
22535       *)
22536         test "$with_gnu_ld" != yes && break ;;
22537       esac
22538     fi
22539   done
22540   IFS="$ac_save_ifs"
22541 else
22542   acl_cv_path_LD="$LD" # Let the user override the test with a path.
22543 fi
22544 fi
22545
22546 LD="$acl_cv_path_LD"
22547 if test -n "$LD"; then
22548   echo "$as_me:$LINENO: result: $LD" >&5
22549 echo "${ECHO_T}$LD" >&6
22550 else
22551   echo "$as_me:$LINENO: result: no" >&5
22552 echo "${ECHO_T}no" >&6
22553 fi
22554 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22555 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22556    { (exit 1); exit 1; }; }
22557 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22558 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22559 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22560   echo $ECHO_N "(cached) $ECHO_C" >&6
22561 else
22562   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22563 case `$LD -v 2>&1 </dev/null` in
22564 *GNU* | *'with BFD'*)
22565   acl_cv_prog_gnu_ld=yes ;;
22566 *)
22567   acl_cv_prog_gnu_ld=no ;;
22568 esac
22569 fi
22570 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22571 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22572 with_gnu_ld=$acl_cv_prog_gnu_ld
22573
22574
22575
22576                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22577 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22578 if test "${acl_cv_rpath+set}" = set; then
22579   echo $ECHO_N "(cached) $ECHO_C" >&6
22580 else
22581
22582     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22583     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22584     . ./conftest.sh
22585     rm -f ./conftest.sh
22586     acl_cv_rpath=done
22587
22588 fi
22589 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22590 echo "${ECHO_T}$acl_cv_rpath" >&6
22591   wl="$acl_cv_wl"
22592   libext="$acl_cv_libext"
22593   shlibext="$acl_cv_shlibext"
22594   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22595   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22596   hardcode_direct="$acl_cv_hardcode_direct"
22597   hardcode_minus_L="$acl_cv_hardcode_minus_L"
22598     # Check whether --enable-rpath or --disable-rpath was given.
22599 if test "${enable_rpath+set}" = set; then
22600   enableval="$enable_rpath"
22601   :
22602 else
22603   enable_rpath=yes
22604 fi;
22605
22606
22607
22608
22609
22610
22611
22612     use_additional=yes
22613
22614   acl_save_prefix="$prefix"
22615   prefix="$acl_final_prefix"
22616   acl_save_exec_prefix="$exec_prefix"
22617   exec_prefix="$acl_final_exec_prefix"
22618
22619     eval additional_includedir=\"$includedir\"
22620     eval additional_libdir=\"$libdir\"
22621
22622   exec_prefix="$acl_save_exec_prefix"
22623   prefix="$acl_save_prefix"
22624
22625
22626 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22627 if test "${with_libiconv_prefix+set}" = set; then
22628   withval="$with_libiconv_prefix"
22629
22630     if test "X$withval" = "Xno"; then
22631       use_additional=no
22632     else
22633       if test "X$withval" = "X"; then
22634
22635   acl_save_prefix="$prefix"
22636   prefix="$acl_final_prefix"
22637   acl_save_exec_prefix="$exec_prefix"
22638   exec_prefix="$acl_final_exec_prefix"
22639
22640           eval additional_includedir=\"$includedir\"
22641           eval additional_libdir=\"$libdir\"
22642
22643   exec_prefix="$acl_save_exec_prefix"
22644   prefix="$acl_save_prefix"
22645
22646       else
22647         additional_includedir="$withval/include"
22648         additional_libdir="$withval/lib"
22649       fi
22650     fi
22651
22652 fi;
22653       LIBICONV=
22654   LTLIBICONV=
22655   INCICONV=
22656   rpathdirs=
22657   ltrpathdirs=
22658   names_already_handled=
22659   names_next_round='iconv '
22660   while test -n "$names_next_round"; do
22661     names_this_round="$names_next_round"
22662     names_next_round=
22663     for name in $names_this_round; do
22664       already_handled=
22665       for n in $names_already_handled; do
22666         if test "$n" = "$name"; then
22667           already_handled=yes
22668           break
22669         fi
22670       done
22671       if test -z "$already_handled"; then
22672         names_already_handled="$names_already_handled $name"
22673                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22674         eval value=\"\$HAVE_LIB$uppername\"
22675         if test -n "$value"; then
22676           if test "$value" = yes; then
22677             eval value=\"\$LIB$uppername\"
22678             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22679             eval value=\"\$LTLIB$uppername\"
22680             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22681           else
22682                                     :
22683           fi
22684         else
22685                               found_dir=
22686           found_la=
22687           found_so=
22688           found_a=
22689           if test $use_additional = yes; then
22690             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22691               found_dir="$additional_libdir"
22692               found_so="$additional_libdir/lib$name.$shlibext"
22693               if test -f "$additional_libdir/lib$name.la"; then
22694                 found_la="$additional_libdir/lib$name.la"
22695               fi
22696             else
22697               if test -f "$additional_libdir/lib$name.$libext"; then
22698                 found_dir="$additional_libdir"
22699                 found_a="$additional_libdir/lib$name.$libext"
22700                 if test -f "$additional_libdir/lib$name.la"; then
22701                   found_la="$additional_libdir/lib$name.la"
22702                 fi
22703               fi
22704             fi
22705           fi
22706           if test "X$found_dir" = "X"; then
22707             for x in $LDFLAGS $LTLIBICONV; do
22708
22709   acl_save_prefix="$prefix"
22710   prefix="$acl_final_prefix"
22711   acl_save_exec_prefix="$exec_prefix"
22712   exec_prefix="$acl_final_exec_prefix"
22713   eval x=\"$x\"
22714   exec_prefix="$acl_save_exec_prefix"
22715   prefix="$acl_save_prefix"
22716
22717               case "$x" in
22718                 -L*)
22719                   dir=`echo "X$x" | sed -e 's/^X-L//'`
22720                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22721                     found_dir="$dir"
22722                     found_so="$dir/lib$name.$shlibext"
22723                     if test -f "$dir/lib$name.la"; then
22724                       found_la="$dir/lib$name.la"
22725                     fi
22726                   else
22727                     if test -f "$dir/lib$name.$libext"; then
22728                       found_dir="$dir"
22729                       found_a="$dir/lib$name.$libext"
22730                       if test -f "$dir/lib$name.la"; then
22731                         found_la="$dir/lib$name.la"
22732                       fi
22733                     fi
22734                   fi
22735                   ;;
22736               esac
22737               if test "X$found_dir" != "X"; then
22738                 break
22739               fi
22740             done
22741           fi
22742           if test "X$found_dir" != "X"; then
22743                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22744             if test "X$found_so" != "X"; then
22745                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22746                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22747               else
22748                                                                                 haveit=
22749                 for x in $ltrpathdirs; do
22750                   if test "X$x" = "X$found_dir"; then
22751                     haveit=yes
22752                     break
22753                   fi
22754                 done
22755                 if test -z "$haveit"; then
22756                   ltrpathdirs="$ltrpathdirs $found_dir"
22757                 fi
22758                                 if test "$hardcode_direct" = yes; then
22759                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22760                 else
22761                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22762                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22763                                                             haveit=
22764                     for x in $rpathdirs; do
22765                       if test "X$x" = "X$found_dir"; then
22766                         haveit=yes
22767                         break
22768                       fi
22769                     done
22770                     if test -z "$haveit"; then
22771                       rpathdirs="$rpathdirs $found_dir"
22772                     fi
22773                   else
22774                                                                                 haveit=
22775                     for x in $LDFLAGS $LIBICONV; do
22776
22777   acl_save_prefix="$prefix"
22778   prefix="$acl_final_prefix"
22779   acl_save_exec_prefix="$exec_prefix"
22780   exec_prefix="$acl_final_exec_prefix"
22781   eval x=\"$x\"
22782   exec_prefix="$acl_save_exec_prefix"
22783   prefix="$acl_save_prefix"
22784
22785                       if test "X$x" = "X-L$found_dir"; then
22786                         haveit=yes
22787                         break
22788                       fi
22789                     done
22790                     if test -z "$haveit"; then
22791                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22792                     fi
22793                     if test "$hardcode_minus_L" != no; then
22794                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22795                     else
22796                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22797                     fi
22798                   fi
22799                 fi
22800               fi
22801             else
22802               if test "X$found_a" != "X"; then
22803                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22804               else
22805                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22806               fi
22807             fi
22808                         additional_includedir=
22809             case "$found_dir" in
22810               */lib | */lib/)
22811                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22812                 additional_includedir="$basedir/include"
22813                 ;;
22814             esac
22815             if test "X$additional_includedir" != "X"; then
22816                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22817                 haveit=
22818                 if test "X$additional_includedir" = "X/usr/local/include"; then
22819                   if test -n "$GCC"; then
22820                     case $host_os in
22821                       linux*) haveit=yes;;
22822                     esac
22823                   fi
22824                 fi
22825                 if test -z "$haveit"; then
22826                   for x in $CPPFLAGS $INCICONV; do
22827
22828   acl_save_prefix="$prefix"
22829   prefix="$acl_final_prefix"
22830   acl_save_exec_prefix="$exec_prefix"
22831   exec_prefix="$acl_final_exec_prefix"
22832   eval x=\"$x\"
22833   exec_prefix="$acl_save_exec_prefix"
22834   prefix="$acl_save_prefix"
22835
22836                     if test "X$x" = "X-I$additional_includedir"; then
22837                       haveit=yes
22838                       break
22839                     fi
22840                   done
22841                   if test -z "$haveit"; then
22842                     if test -d "$additional_includedir"; then
22843                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22844                     fi
22845                   fi
22846                 fi
22847               fi
22848             fi
22849                         if test -n "$found_la"; then
22850                                                         save_libdir="$libdir"
22851               case "$found_la" in
22852                 */* | *\\*) . "$found_la" ;;
22853                 *) . "./$found_la" ;;
22854               esac
22855               libdir="$save_libdir"
22856                             for dep in $dependency_libs; do
22857                 case "$dep" in
22858                   -L*)
22859                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22860                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
22861                       haveit=
22862                       if test "X$additional_libdir" = "X/usr/local/lib"; then
22863                         if test -n "$GCC"; then
22864                           case $host_os in
22865                             linux*) haveit=yes;;
22866                           esac
22867                         fi
22868                       fi
22869                       if test -z "$haveit"; then
22870                         haveit=
22871                         for x in $LDFLAGS $LIBICONV; do
22872
22873   acl_save_prefix="$prefix"
22874   prefix="$acl_final_prefix"
22875   acl_save_exec_prefix="$exec_prefix"
22876   exec_prefix="$acl_final_exec_prefix"
22877   eval x=\"$x\"
22878   exec_prefix="$acl_save_exec_prefix"
22879   prefix="$acl_save_prefix"
22880
22881                           if test "X$x" = "X-L$additional_libdir"; then
22882                             haveit=yes
22883                             break
22884                           fi
22885                         done
22886                         if test -z "$haveit"; then
22887                           if test -d "$additional_libdir"; then
22888                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22889                           fi
22890                         fi
22891                         haveit=
22892                         for x in $LDFLAGS $LTLIBICONV; do
22893
22894   acl_save_prefix="$prefix"
22895   prefix="$acl_final_prefix"
22896   acl_save_exec_prefix="$exec_prefix"
22897   exec_prefix="$acl_final_exec_prefix"
22898   eval x=\"$x\"
22899   exec_prefix="$acl_save_exec_prefix"
22900   prefix="$acl_save_prefix"
22901
22902                           if test "X$x" = "X-L$additional_libdir"; then
22903                             haveit=yes
22904                             break
22905                           fi
22906                         done
22907                         if test -z "$haveit"; then
22908                           if test -d "$additional_libdir"; then
22909                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22910                           fi
22911                         fi
22912                       fi
22913                     fi
22914                     ;;
22915                   -R*)
22916                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22917                     if test "$enable_rpath" != no; then
22918                                                                   haveit=
22919                       for x in $rpathdirs; do
22920                         if test "X$x" = "X$dir"; then
22921                           haveit=yes
22922                           break
22923                         fi
22924                       done
22925                       if test -z "$haveit"; then
22926                         rpathdirs="$rpathdirs $dir"
22927                       fi
22928                                                                   haveit=
22929                       for x in $ltrpathdirs; do
22930                         if test "X$x" = "X$dir"; then
22931                           haveit=yes
22932                           break
22933                         fi
22934                       done
22935                       if test -z "$haveit"; then
22936                         ltrpathdirs="$ltrpathdirs $dir"
22937                       fi
22938                     fi
22939                     ;;
22940                   -l*)
22941                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22942                     ;;
22943                   *.la)
22944                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22945                     ;;
22946                   *)
22947                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22948                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22949                     ;;
22950                 esac
22951               done
22952             fi
22953           else
22954                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22955             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22956           fi
22957         fi
22958       fi
22959     done
22960   done
22961   if test "X$rpathdirs" != "X"; then
22962     if test -n "$hardcode_libdir_separator"; then
22963                         alldirs=
22964       for found_dir in $rpathdirs; do
22965         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22966       done
22967             acl_save_libdir="$libdir"
22968       libdir="$alldirs"
22969       eval flag=\"$hardcode_libdir_flag_spec\"
22970       libdir="$acl_save_libdir"
22971       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22972     else
22973             for found_dir in $rpathdirs; do
22974         acl_save_libdir="$libdir"
22975         libdir="$found_dir"
22976         eval flag=\"$hardcode_libdir_flag_spec\"
22977         libdir="$acl_save_libdir"
22978         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22979       done
22980     fi
22981   fi
22982   if test "X$ltrpathdirs" != "X"; then
22983             for found_dir in $ltrpathdirs; do
22984       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22985     done
22986   fi
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23006 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
23007     # Check whether --enable-nls or --disable-nls was given.
23008 if test "${enable_nls+set}" = set; then
23009   enableval="$enable_nls"
23010   USE_NLS=$enableval
23011 else
23012   USE_NLS=yes
23013 fi;
23014   echo "$as_me:$LINENO: result: $USE_NLS" >&5
23015 echo "${ECHO_T}$USE_NLS" >&6
23016
23017
23018
23019
23020   LIBINTL=
23021   LTLIBINTL=
23022   POSUB=
23023
23024     if test "$USE_NLS" = "yes"; then
23025     gt_use_preinstalled_gnugettext=no
23026
23027
23028
23029
23030
23031
23032         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23033 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
23034 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23035   echo $ECHO_N "(cached) $ECHO_C" >&6
23036 else
23037   cat >conftest.$ac_ext <<_ACEOF
23038 /* confdefs.h.  */
23039 _ACEOF
23040 cat confdefs.h >>conftest.$ac_ext
23041 cat >>conftest.$ac_ext <<_ACEOF
23042 /* end confdefs.h.  */
23043 #include <libintl.h>
23044 extern int _nl_msg_cat_cntr;
23045 extern int *_nl_domain_bindings;
23046 int
23047 main ()
23048 {
23049 bindtextdomain ("", "");
23050 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23051   ;
23052   return 0;
23053 }
23054 _ACEOF
23055 rm -f conftest.$ac_objext conftest$ac_exeext
23056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23057   (eval $ac_link) 2>conftest.er1
23058   ac_status=$?
23059   grep -v '^ *+' conftest.er1 >conftest.err
23060   rm -f conftest.er1
23061   cat conftest.err >&5
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); } &&
23064          { ac_try='test -z "$ac_c_werror_flag"
23065                          || test ! -s conftest.err'
23066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067   (eval $ac_try) 2>&5
23068   ac_status=$?
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); }; } &&
23071          { ac_try='test -s conftest$ac_exeext'
23072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073   (eval $ac_try) 2>&5
23074   ac_status=$?
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); }; }; then
23077   gt_cv_func_gnugettext1_libc=yes
23078 else
23079   echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23081
23082 gt_cv_func_gnugettext1_libc=no
23083 fi
23084 rm -f conftest.err conftest.$ac_objext \
23085       conftest$ac_exeext conftest.$ac_ext
23086 fi
23087 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23088 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
23089
23090         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23091
23092
23093
23094
23095
23096           am_save_CPPFLAGS="$CPPFLAGS"
23097
23098   for element in $INCICONV; do
23099     haveit=
23100     for x in $CPPFLAGS; do
23101
23102   acl_save_prefix="$prefix"
23103   prefix="$acl_final_prefix"
23104   acl_save_exec_prefix="$exec_prefix"
23105   exec_prefix="$acl_final_exec_prefix"
23106   eval x=\"$x\"
23107   exec_prefix="$acl_save_exec_prefix"
23108   prefix="$acl_save_prefix"
23109
23110       if test "X$x" = "X$element"; then
23111         haveit=yes
23112         break
23113       fi
23114     done
23115     if test -z "$haveit"; then
23116       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23117     fi
23118   done
23119
23120
23121   echo "$as_me:$LINENO: checking for iconv" >&5
23122 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23123 if test "${am_cv_func_iconv+set}" = set; then
23124   echo $ECHO_N "(cached) $ECHO_C" >&6
23125 else
23126
23127     am_cv_func_iconv="no, consider installing GNU libiconv"
23128     am_cv_lib_iconv=no
23129     cat >conftest.$ac_ext <<_ACEOF
23130 /* confdefs.h.  */
23131 _ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h.  */
23135 #include <stdlib.h>
23136 #include <iconv.h>
23137 int
23138 main ()
23139 {
23140 iconv_t cd = iconv_open("","");
23141        iconv(cd,NULL,NULL,NULL,NULL);
23142        iconv_close(cd);
23143   ;
23144   return 0;
23145 }
23146 _ACEOF
23147 rm -f conftest.$ac_objext conftest$ac_exeext
23148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23149   (eval $ac_link) 2>conftest.er1
23150   ac_status=$?
23151   grep -v '^ *+' conftest.er1 >conftest.err
23152   rm -f conftest.er1
23153   cat conftest.err >&5
23154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155   (exit $ac_status); } &&
23156          { ac_try='test -z "$ac_c_werror_flag"
23157                          || test ! -s conftest.err'
23158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159   (eval $ac_try) 2>&5
23160   ac_status=$?
23161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162   (exit $ac_status); }; } &&
23163          { ac_try='test -s conftest$ac_exeext'
23164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23165   (eval $ac_try) 2>&5
23166   ac_status=$?
23167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168   (exit $ac_status); }; }; then
23169   am_cv_func_iconv=yes
23170 else
23171   echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23173
23174 fi
23175 rm -f conftest.err conftest.$ac_objext \
23176       conftest$ac_exeext conftest.$ac_ext
23177     if test "$am_cv_func_iconv" != yes; then
23178       am_save_LIBS="$LIBS"
23179       LIBS="$LIBS $LIBICONV"
23180       cat >conftest.$ac_ext <<_ACEOF
23181 /* confdefs.h.  */
23182 _ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h.  */
23186 #include <stdlib.h>
23187 #include <iconv.h>
23188 int
23189 main ()
23190 {
23191 iconv_t cd = iconv_open("","");
23192          iconv(cd,NULL,NULL,NULL,NULL);
23193          iconv_close(cd);
23194   ;
23195   return 0;
23196 }
23197 _ACEOF
23198 rm -f conftest.$ac_objext conftest$ac_exeext
23199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23200   (eval $ac_link) 2>conftest.er1
23201   ac_status=$?
23202   grep -v '^ *+' conftest.er1 >conftest.err
23203   rm -f conftest.er1
23204   cat conftest.err >&5
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); } &&
23207          { ac_try='test -z "$ac_c_werror_flag"
23208                          || test ! -s conftest.err'
23209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23210   (eval $ac_try) 2>&5
23211   ac_status=$?
23212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213   (exit $ac_status); }; } &&
23214          { ac_try='test -s conftest$ac_exeext'
23215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23216   (eval $ac_try) 2>&5
23217   ac_status=$?
23218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219   (exit $ac_status); }; }; then
23220   am_cv_lib_iconv=yes
23221         am_cv_func_iconv=yes
23222 else
23223   echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226 fi
23227 rm -f conftest.err conftest.$ac_objext \
23228       conftest$ac_exeext conftest.$ac_ext
23229       LIBS="$am_save_LIBS"
23230     fi
23231
23232 fi
23233 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23234 echo "${ECHO_T}$am_cv_func_iconv" >&6
23235   if test "$am_cv_func_iconv" = yes; then
23236
23237 cat >>confdefs.h <<\_ACEOF
23238 #define HAVE_ICONV 1
23239 _ACEOF
23240
23241   fi
23242   if test "$am_cv_lib_iconv" = yes; then
23243     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23244 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23245     echo "$as_me:$LINENO: result: $LIBICONV" >&5
23246 echo "${ECHO_T}$LIBICONV" >&6
23247   else
23248             CPPFLAGS="$am_save_CPPFLAGS"
23249     LIBICONV=
23250     LTLIBICONV=
23251   fi
23252
23253
23254
23255
23256
23257
23258     use_additional=yes
23259
23260   acl_save_prefix="$prefix"
23261   prefix="$acl_final_prefix"
23262   acl_save_exec_prefix="$exec_prefix"
23263   exec_prefix="$acl_final_exec_prefix"
23264
23265     eval additional_includedir=\"$includedir\"
23266     eval additional_libdir=\"$libdir\"
23267
23268   exec_prefix="$acl_save_exec_prefix"
23269   prefix="$acl_save_prefix"
23270
23271
23272 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23273 if test "${with_libintl_prefix+set}" = set; then
23274   withval="$with_libintl_prefix"
23275
23276     if test "X$withval" = "Xno"; then
23277       use_additional=no
23278     else
23279       if test "X$withval" = "X"; then
23280
23281   acl_save_prefix="$prefix"
23282   prefix="$acl_final_prefix"
23283   acl_save_exec_prefix="$exec_prefix"
23284   exec_prefix="$acl_final_exec_prefix"
23285
23286           eval additional_includedir=\"$includedir\"
23287           eval additional_libdir=\"$libdir\"
23288
23289   exec_prefix="$acl_save_exec_prefix"
23290   prefix="$acl_save_prefix"
23291
23292       else
23293         additional_includedir="$withval/include"
23294         additional_libdir="$withval/lib"
23295       fi
23296     fi
23297
23298 fi;
23299       LIBINTL=
23300   LTLIBINTL=
23301   INCINTL=
23302   rpathdirs=
23303   ltrpathdirs=
23304   names_already_handled=
23305   names_next_round='intl '
23306   while test -n "$names_next_round"; do
23307     names_this_round="$names_next_round"
23308     names_next_round=
23309     for name in $names_this_round; do
23310       already_handled=
23311       for n in $names_already_handled; do
23312         if test "$n" = "$name"; then
23313           already_handled=yes
23314           break
23315         fi
23316       done
23317       if test -z "$already_handled"; then
23318         names_already_handled="$names_already_handled $name"
23319                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23320         eval value=\"\$HAVE_LIB$uppername\"
23321         if test -n "$value"; then
23322           if test "$value" = yes; then
23323             eval value=\"\$LIB$uppername\"
23324             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23325             eval value=\"\$LTLIB$uppername\"
23326             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23327           else
23328                                     :
23329           fi
23330         else
23331                               found_dir=
23332           found_la=
23333           found_so=
23334           found_a=
23335           if test $use_additional = yes; then
23336             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23337               found_dir="$additional_libdir"
23338               found_so="$additional_libdir/lib$name.$shlibext"
23339               if test -f "$additional_libdir/lib$name.la"; then
23340                 found_la="$additional_libdir/lib$name.la"
23341               fi
23342             else
23343               if test -f "$additional_libdir/lib$name.$libext"; then
23344                 found_dir="$additional_libdir"
23345                 found_a="$additional_libdir/lib$name.$libext"
23346                 if test -f "$additional_libdir/lib$name.la"; then
23347                   found_la="$additional_libdir/lib$name.la"
23348                 fi
23349               fi
23350             fi
23351           fi
23352           if test "X$found_dir" = "X"; then
23353             for x in $LDFLAGS $LTLIBINTL; do
23354
23355   acl_save_prefix="$prefix"
23356   prefix="$acl_final_prefix"
23357   acl_save_exec_prefix="$exec_prefix"
23358   exec_prefix="$acl_final_exec_prefix"
23359   eval x=\"$x\"
23360   exec_prefix="$acl_save_exec_prefix"
23361   prefix="$acl_save_prefix"
23362
23363               case "$x" in
23364                 -L*)
23365                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23366                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23367                     found_dir="$dir"
23368                     found_so="$dir/lib$name.$shlibext"
23369                     if test -f "$dir/lib$name.la"; then
23370                       found_la="$dir/lib$name.la"
23371                     fi
23372                   else
23373                     if test -f "$dir/lib$name.$libext"; then
23374                       found_dir="$dir"
23375                       found_a="$dir/lib$name.$libext"
23376                       if test -f "$dir/lib$name.la"; then
23377                         found_la="$dir/lib$name.la"
23378                       fi
23379                     fi
23380                   fi
23381                   ;;
23382               esac
23383               if test "X$found_dir" != "X"; then
23384                 break
23385               fi
23386             done
23387           fi
23388           if test "X$found_dir" != "X"; then
23389                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23390             if test "X$found_so" != "X"; then
23391                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23392                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23393               else
23394                                                                                 haveit=
23395                 for x in $ltrpathdirs; do
23396                   if test "X$x" = "X$found_dir"; then
23397                     haveit=yes
23398                     break
23399                   fi
23400                 done
23401                 if test -z "$haveit"; then
23402                   ltrpathdirs="$ltrpathdirs $found_dir"
23403                 fi
23404                                 if test "$hardcode_direct" = yes; then
23405                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23406                 else
23407                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23408                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23409                                                             haveit=
23410                     for x in $rpathdirs; do
23411                       if test "X$x" = "X$found_dir"; then
23412                         haveit=yes
23413                         break
23414                       fi
23415                     done
23416                     if test -z "$haveit"; then
23417                       rpathdirs="$rpathdirs $found_dir"
23418                     fi
23419                   else
23420                                                                                 haveit=
23421                     for x in $LDFLAGS $LIBINTL; do
23422
23423   acl_save_prefix="$prefix"
23424   prefix="$acl_final_prefix"
23425   acl_save_exec_prefix="$exec_prefix"
23426   exec_prefix="$acl_final_exec_prefix"
23427   eval x=\"$x\"
23428   exec_prefix="$acl_save_exec_prefix"
23429   prefix="$acl_save_prefix"
23430
23431                       if test "X$x" = "X-L$found_dir"; then
23432                         haveit=yes
23433                         break
23434                       fi
23435                     done
23436                     if test -z "$haveit"; then
23437                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23438                     fi
23439                     if test "$hardcode_minus_L" != no; then
23440                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23441                     else
23442                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23443                     fi
23444                   fi
23445                 fi
23446               fi
23447             else
23448               if test "X$found_a" != "X"; then
23449                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23450               else
23451                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23452               fi
23453             fi
23454                         additional_includedir=
23455             case "$found_dir" in
23456               */lib | */lib/)
23457                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23458                 additional_includedir="$basedir/include"
23459                 ;;
23460             esac
23461             if test "X$additional_includedir" != "X"; then
23462                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23463                 haveit=
23464                 if test "X$additional_includedir" = "X/usr/local/include"; then
23465                   if test -n "$GCC"; then
23466                     case $host_os in
23467                       linux*) haveit=yes;;
23468                     esac
23469                   fi
23470                 fi
23471                 if test -z "$haveit"; then
23472                   for x in $CPPFLAGS $INCINTL; do
23473
23474   acl_save_prefix="$prefix"
23475   prefix="$acl_final_prefix"
23476   acl_save_exec_prefix="$exec_prefix"
23477   exec_prefix="$acl_final_exec_prefix"
23478   eval x=\"$x\"
23479   exec_prefix="$acl_save_exec_prefix"
23480   prefix="$acl_save_prefix"
23481
23482                     if test "X$x" = "X-I$additional_includedir"; then
23483                       haveit=yes
23484                       break
23485                     fi
23486                   done
23487                   if test -z "$haveit"; then
23488                     if test -d "$additional_includedir"; then
23489                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23490                     fi
23491                   fi
23492                 fi
23493               fi
23494             fi
23495                         if test -n "$found_la"; then
23496                                                         save_libdir="$libdir"
23497               case "$found_la" in
23498                 */* | *\\*) . "$found_la" ;;
23499                 *) . "./$found_la" ;;
23500               esac
23501               libdir="$save_libdir"
23502                             for dep in $dependency_libs; do
23503                 case "$dep" in
23504                   -L*)
23505                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23506                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23507                       haveit=
23508                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23509                         if test -n "$GCC"; then
23510                           case $host_os in
23511                             linux*) haveit=yes;;
23512                           esac
23513                         fi
23514                       fi
23515                       if test -z "$haveit"; then
23516                         haveit=
23517                         for x in $LDFLAGS $LIBINTL; do
23518
23519   acl_save_prefix="$prefix"
23520   prefix="$acl_final_prefix"
23521   acl_save_exec_prefix="$exec_prefix"
23522   exec_prefix="$acl_final_exec_prefix"
23523   eval x=\"$x\"
23524   exec_prefix="$acl_save_exec_prefix"
23525   prefix="$acl_save_prefix"
23526
23527                           if test "X$x" = "X-L$additional_libdir"; then
23528                             haveit=yes
23529                             break
23530                           fi
23531                         done
23532                         if test -z "$haveit"; then
23533                           if test -d "$additional_libdir"; then
23534                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23535                           fi
23536                         fi
23537                         haveit=
23538                         for x in $LDFLAGS $LTLIBINTL; do
23539
23540   acl_save_prefix="$prefix"
23541   prefix="$acl_final_prefix"
23542   acl_save_exec_prefix="$exec_prefix"
23543   exec_prefix="$acl_final_exec_prefix"
23544   eval x=\"$x\"
23545   exec_prefix="$acl_save_exec_prefix"
23546   prefix="$acl_save_prefix"
23547
23548                           if test "X$x" = "X-L$additional_libdir"; then
23549                             haveit=yes
23550                             break
23551                           fi
23552                         done
23553                         if test -z "$haveit"; then
23554                           if test -d "$additional_libdir"; then
23555                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23556                           fi
23557                         fi
23558                       fi
23559                     fi
23560                     ;;
23561                   -R*)
23562                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23563                     if test "$enable_rpath" != no; then
23564                                                                   haveit=
23565                       for x in $rpathdirs; do
23566                         if test "X$x" = "X$dir"; then
23567                           haveit=yes
23568                           break
23569                         fi
23570                       done
23571                       if test -z "$haveit"; then
23572                         rpathdirs="$rpathdirs $dir"
23573                       fi
23574                                                                   haveit=
23575                       for x in $ltrpathdirs; do
23576                         if test "X$x" = "X$dir"; then
23577                           haveit=yes
23578                           break
23579                         fi
23580                       done
23581                       if test -z "$haveit"; then
23582                         ltrpathdirs="$ltrpathdirs $dir"
23583                       fi
23584                     fi
23585                     ;;
23586                   -l*)
23587                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23588                     ;;
23589                   *.la)
23590                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23591                     ;;
23592                   *)
23593                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23594                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23595                     ;;
23596                 esac
23597               done
23598             fi
23599           else
23600                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23601             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23602           fi
23603         fi
23604       fi
23605     done
23606   done
23607   if test "X$rpathdirs" != "X"; then
23608     if test -n "$hardcode_libdir_separator"; then
23609                         alldirs=
23610       for found_dir in $rpathdirs; do
23611         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23612       done
23613             acl_save_libdir="$libdir"
23614       libdir="$alldirs"
23615       eval flag=\"$hardcode_libdir_flag_spec\"
23616       libdir="$acl_save_libdir"
23617       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23618     else
23619             for found_dir in $rpathdirs; do
23620         acl_save_libdir="$libdir"
23621         libdir="$found_dir"
23622         eval flag=\"$hardcode_libdir_flag_spec\"
23623         libdir="$acl_save_libdir"
23624         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23625       done
23626     fi
23627   fi
23628   if test "X$ltrpathdirs" != "X"; then
23629             for found_dir in $ltrpathdirs; do
23630       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23631     done
23632   fi
23633
23634           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23635 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23636 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23637   echo $ECHO_N "(cached) $ECHO_C" >&6
23638 else
23639   gt_save_CPPFLAGS="$CPPFLAGS"
23640             CPPFLAGS="$CPPFLAGS $INCINTL"
23641             gt_save_LIBS="$LIBS"
23642             LIBS="$LIBS $LIBINTL"
23643                         cat >conftest.$ac_ext <<_ACEOF
23644 /* confdefs.h.  */
23645 _ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h.  */
23649 #include <libintl.h>
23650 extern int _nl_msg_cat_cntr;
23651 extern
23652 #ifdef __cplusplus
23653 "C"
23654 #endif
23655 const char *_nl_expand_alias ();
23656 int
23657 main ()
23658 {
23659 bindtextdomain ("", "");
23660 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23661   ;
23662   return 0;
23663 }
23664 _ACEOF
23665 rm -f conftest.$ac_objext conftest$ac_exeext
23666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23667   (eval $ac_link) 2>conftest.er1
23668   ac_status=$?
23669   grep -v '^ *+' conftest.er1 >conftest.err
23670   rm -f conftest.er1
23671   cat conftest.err >&5
23672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673   (exit $ac_status); } &&
23674          { ac_try='test -z "$ac_c_werror_flag"
23675                          || test ! -s conftest.err'
23676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677   (eval $ac_try) 2>&5
23678   ac_status=$?
23679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); }; } &&
23681          { ac_try='test -s conftest$ac_exeext'
23682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683   (eval $ac_try) 2>&5
23684   ac_status=$?
23685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686   (exit $ac_status); }; }; then
23687   gt_cv_func_gnugettext1_libintl=yes
23688 else
23689   echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23691
23692 gt_cv_func_gnugettext1_libintl=no
23693 fi
23694 rm -f conftest.err conftest.$ac_objext \
23695       conftest$ac_exeext conftest.$ac_ext
23696                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23697               LIBS="$LIBS $LIBICONV"
23698               cat >conftest.$ac_ext <<_ACEOF
23699 /* confdefs.h.  */
23700 _ACEOF
23701 cat confdefs.h >>conftest.$ac_ext
23702 cat >>conftest.$ac_ext <<_ACEOF
23703 /* end confdefs.h.  */
23704 #include <libintl.h>
23705 extern int _nl_msg_cat_cntr;
23706 extern
23707 #ifdef __cplusplus
23708 "C"
23709 #endif
23710 const char *_nl_expand_alias ();
23711 int
23712 main ()
23713 {
23714 bindtextdomain ("", "");
23715 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23716   ;
23717   return 0;
23718 }
23719 _ACEOF
23720 rm -f conftest.$ac_objext conftest$ac_exeext
23721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23722   (eval $ac_link) 2>conftest.er1
23723   ac_status=$?
23724   grep -v '^ *+' conftest.er1 >conftest.err
23725   rm -f conftest.er1
23726   cat conftest.err >&5
23727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728   (exit $ac_status); } &&
23729          { ac_try='test -z "$ac_c_werror_flag"
23730                          || test ! -s conftest.err'
23731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23732   (eval $ac_try) 2>&5
23733   ac_status=$?
23734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); }; } &&
23736          { ac_try='test -s conftest$ac_exeext'
23737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738   (eval $ac_try) 2>&5
23739   ac_status=$?
23740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741   (exit $ac_status); }; }; then
23742   LIBINTL="$LIBINTL $LIBICONV"
23743                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23744                 gt_cv_func_gnugettext1_libintl=yes
23745
23746 else
23747   echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23749
23750 fi
23751 rm -f conftest.err conftest.$ac_objext \
23752       conftest$ac_exeext conftest.$ac_ext
23753             fi
23754             CPPFLAGS="$gt_save_CPPFLAGS"
23755             LIBS="$gt_save_LIBS"
23756 fi
23757 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23758 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
23759         fi
23760
23761                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23762            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23763                 && test "$PACKAGE" != gettext-runtime \
23764                 && test "$PACKAGE" != gettext-tools; }; then
23765           gt_use_preinstalled_gnugettext=yes
23766         else
23767                     LIBINTL=
23768           LTLIBINTL=
23769           INCINTL=
23770         fi
23771
23772
23773
23774     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23775        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23776
23777 cat >>confdefs.h <<\_ACEOF
23778 #define ENABLE_NLS 1
23779 _ACEOF
23780
23781     else
23782       USE_NLS=no
23783     fi
23784   fi
23785
23786   echo "$as_me:$LINENO: checking whether to use NLS" >&5
23787 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
23788   echo "$as_me:$LINENO: result: $USE_NLS" >&5
23789 echo "${ECHO_T}$USE_NLS" >&6
23790   if test "$USE_NLS" = "yes"; then
23791     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23792 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
23793     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23794       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23795         gt_source="external libintl"
23796       else
23797         gt_source="libc"
23798       fi
23799     else
23800       gt_source="included intl directory"
23801     fi
23802     echo "$as_me:$LINENO: result: $gt_source" >&5
23803 echo "${ECHO_T}$gt_source" >&6
23804   fi
23805
23806   if test "$USE_NLS" = "yes"; then
23807
23808     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23809       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23810         echo "$as_me:$LINENO: checking how to link with libintl" >&5
23811 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
23812         echo "$as_me:$LINENO: result: $LIBINTL" >&5
23813 echo "${ECHO_T}$LIBINTL" >&6
23814
23815   for element in $INCINTL; do
23816     haveit=
23817     for x in $CPPFLAGS; do
23818
23819   acl_save_prefix="$prefix"
23820   prefix="$acl_final_prefix"
23821   acl_save_exec_prefix="$exec_prefix"
23822   exec_prefix="$acl_final_exec_prefix"
23823   eval x=\"$x\"
23824   exec_prefix="$acl_save_exec_prefix"
23825   prefix="$acl_save_prefix"
23826
23827       if test "X$x" = "X$element"; then
23828         haveit=yes
23829         break
23830       fi
23831     done
23832     if test -z "$haveit"; then
23833       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23834     fi
23835   done
23836
23837       fi
23838
23839
23840 cat >>confdefs.h <<\_ACEOF
23841 #define HAVE_GETTEXT 1
23842 _ACEOF
23843
23844
23845 cat >>confdefs.h <<\_ACEOF
23846 #define HAVE_DCGETTEXT 1
23847 _ACEOF
23848
23849     fi
23850
23851         POSUB=po
23852   fi
23853
23854
23855
23856     INTLLIBS="$LIBINTL"
23857
23858
23859
23860
23861
23862
23863  # The error module still poses merge problems.
23864 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
23865 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
23866 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
23867   echo $ECHO_N "(cached) $ECHO_C" >&6
23868 else
23869   cat >conftest.$ac_ext <<_ACEOF
23870 /* confdefs.h.  */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h.  */
23875 $ac_includes_default
23876 int
23877 main ()
23878 {
23879 #ifndef strerror_r
23880   char *p = (char *) strerror_r;
23881 #endif
23882
23883   ;
23884   return 0;
23885 }
23886 _ACEOF
23887 rm -f conftest.$ac_objext
23888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23889   (eval $ac_compile) 2>conftest.er1
23890   ac_status=$?
23891   grep -v '^ *+' conftest.er1 >conftest.err
23892   rm -f conftest.er1
23893   cat conftest.err >&5
23894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); } &&
23896          { ac_try='test -z "$ac_c_werror_flag"
23897                          || test ! -s conftest.err'
23898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23899   (eval $ac_try) 2>&5
23900   ac_status=$?
23901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902   (exit $ac_status); }; } &&
23903          { ac_try='test -s conftest.$ac_objext'
23904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23905   (eval $ac_try) 2>&5
23906   ac_status=$?
23907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908   (exit $ac_status); }; }; then
23909   ac_cv_have_decl_strerror_r=yes
23910 else
23911   echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23913
23914 ac_cv_have_decl_strerror_r=no
23915 fi
23916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23917 fi
23918 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
23919 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
23920 if test $ac_cv_have_decl_strerror_r = yes; then
23921
23922 cat >>confdefs.h <<_ACEOF
23923 #define HAVE_DECL_STRERROR_R 1
23924 _ACEOF
23925
23926
23927 else
23928   cat >>confdefs.h <<_ACEOF
23929 #define HAVE_DECL_STRERROR_R 0
23930 _ACEOF
23931
23932
23933 fi
23934
23935
23936
23937 for ac_func in strerror_r
23938 do
23939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23940 echo "$as_me:$LINENO: checking for $ac_func" >&5
23941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23942 if eval "test \"\${$as_ac_var+set}\" = set"; then
23943   echo $ECHO_N "(cached) $ECHO_C" >&6
23944 else
23945   cat >conftest.$ac_ext <<_ACEOF
23946 /* confdefs.h.  */
23947 _ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h.  */
23951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23953 #define $ac_func innocuous_$ac_func
23954
23955 /* System header to define __stub macros and hopefully few prototypes,
23956     which can conflict with char $ac_func (); below.
23957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23958     <limits.h> exists even on freestanding compilers.  */
23959
23960 #ifdef __STDC__
23961 # include <limits.h>
23962 #else
23963 # include <assert.h>
23964 #endif
23965
23966 #undef $ac_func
23967
23968 /* Override any gcc2 internal prototype to avoid an error.  */
23969 #ifdef __cplusplus
23970 extern "C"
23971 {
23972 #endif
23973 /* We use char because int might match the return type of a gcc2
23974    builtin and then its argument prototype would still apply.  */
23975 char $ac_func ();
23976 /* The GNU C library defines this for functions which it implements
23977     to always fail with ENOSYS.  Some functions are actually named
23978     something starting with __ and the normal name is an alias.  */
23979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23980 choke me
23981 #else
23982 char (*f) () = $ac_func;
23983 #endif
23984 #ifdef __cplusplus
23985 }
23986 #endif
23987
23988 int
23989 main ()
23990 {
23991 return f != $ac_func;
23992   ;
23993   return 0;
23994 }
23995 _ACEOF
23996 rm -f conftest.$ac_objext conftest$ac_exeext
23997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23998   (eval $ac_link) 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_exeext'
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   eval "$as_ac_var=yes"
24019 else
24020   echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24022
24023 eval "$as_ac_var=no"
24024 fi
24025 rm -f conftest.err conftest.$ac_objext \
24026       conftest$ac_exeext conftest.$ac_ext
24027 fi
24028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24030 if test `eval echo '${'$as_ac_var'}'` = yes; then
24031   cat >>confdefs.h <<_ACEOF
24032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24033 _ACEOF
24034
24035 fi
24036 done
24037
24038 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
24039 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
24040 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
24041   echo $ECHO_N "(cached) $ECHO_C" >&6
24042 else
24043
24044     ac_cv_func_strerror_r_char_p=no
24045     if test $ac_cv_have_decl_strerror_r = yes; then
24046       cat >conftest.$ac_ext <<_ACEOF
24047 /* confdefs.h.  */
24048 _ACEOF
24049 cat confdefs.h >>conftest.$ac_ext
24050 cat >>conftest.$ac_ext <<_ACEOF
24051 /* end confdefs.h.  */
24052 $ac_includes_default
24053 int
24054 main ()
24055 {
24056
24057           char buf[100];
24058           char x = *strerror_r (0, buf, sizeof buf);
24059           char *p = strerror_r (0, buf, sizeof buf);
24060
24061   ;
24062   return 0;
24063 }
24064 _ACEOF
24065 rm -f conftest.$ac_objext
24066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24067   (eval $ac_compile) 2>conftest.er1
24068   ac_status=$?
24069   grep -v '^ *+' conftest.er1 >conftest.err
24070   rm -f conftest.er1
24071   cat conftest.err >&5
24072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073   (exit $ac_status); } &&
24074          { ac_try='test -z "$ac_c_werror_flag"
24075                          || test ! -s conftest.err'
24076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077   (eval $ac_try) 2>&5
24078   ac_status=$?
24079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080   (exit $ac_status); }; } &&
24081          { ac_try='test -s conftest.$ac_objext'
24082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083   (eval $ac_try) 2>&5
24084   ac_status=$?
24085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086   (exit $ac_status); }; }; then
24087   ac_cv_func_strerror_r_char_p=yes
24088 else
24089   echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24091
24092 fi
24093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24094     else
24095       # strerror_r is not declared.  Choose between
24096       # systems that have relatively inaccessible declarations for the
24097       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
24098       # former has a strerror_r that returns char*, while the latter
24099       # has a strerror_r that returns `int'.
24100       # This test should segfault on the DEC system.
24101       if test "$cross_compiling" = yes; then
24102   :
24103 else
24104   cat >conftest.$ac_ext <<_ACEOF
24105 /* confdefs.h.  */
24106 _ACEOF
24107 cat confdefs.h >>conftest.$ac_ext
24108 cat >>conftest.$ac_ext <<_ACEOF
24109 /* end confdefs.h.  */
24110 $ac_includes_default
24111         extern char *strerror_r ();
24112 int
24113 main ()
24114 {
24115 char buf[100];
24116           char x = *strerror_r (0, buf, sizeof buf);
24117           exit (!isalpha (x));
24118   ;
24119   return 0;
24120 }
24121 _ACEOF
24122 rm -f conftest$ac_exeext
24123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24124   (eval $ac_link) 2>&5
24125   ac_status=$?
24126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24129   (eval $ac_try) 2>&5
24130   ac_status=$?
24131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132   (exit $ac_status); }; }; then
24133   ac_cv_func_strerror_r_char_p=yes
24134 else
24135   echo "$as_me: program exited with status $ac_status" >&5
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139 fi
24140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24141 fi
24142     fi
24143
24144 fi
24145 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
24146 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
24147 if test $ac_cv_func_strerror_r_char_p = yes; then
24148
24149 cat >>confdefs.h <<\_ACEOF
24150 #define STRERROR_R_CHAR_P 1
24151 _ACEOF
24152
24153 fi
24154
24155
24156
24157
24158
24159   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
24160
24161     test $ac_cv_type_long_long = yes \
24162       && ac_type='long long' \
24163       || ac_type='long'
24164
24165 cat >>confdefs.h <<_ACEOF
24166 #define intmax_t $ac_type
24167 _ACEOF
24168
24169   else
24170
24171 cat >>confdefs.h <<\_ACEOF
24172 #define HAVE_INTMAX_T 1
24173 _ACEOF
24174
24175   fi
24176
24177
24178
24179
24180
24181
24182
24183 #
24184 # End GNULIB stuff.
24185 #
24186
24187
24188
24189 # Check for function existance.
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216 for ac_func in \
24217         fchdir \
24218         fchmod \
24219         fsync \
24220         ftime \
24221         geteuid \
24222         getgroups \
24223         getpagesize \
24224         gettimeofday \
24225         initgroups \
24226         login \
24227         logout \
24228         mknod \
24229         putenv \
24230         regcomp \
24231         regerror \
24232         regexec \
24233         regfree \
24234         sigaction \
24235         sigblock \
24236         sigprocmask \
24237         sigsetmask \
24238         sigvec \
24239         timezone \
24240         tzset \
24241         vprintf \
24242         wait3 \
24243
24244 do
24245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24246 echo "$as_me:$LINENO: checking for $ac_func" >&5
24247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24248 if eval "test \"\${$as_ac_var+set}\" = set"; then
24249   echo $ECHO_N "(cached) $ECHO_C" >&6
24250 else
24251   cat >conftest.$ac_ext <<_ACEOF
24252 /* confdefs.h.  */
24253 _ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h.  */
24257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24259 #define $ac_func innocuous_$ac_func
24260
24261 /* System header to define __stub macros and hopefully few prototypes,
24262     which can conflict with char $ac_func (); below.
24263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24264     <limits.h> exists even on freestanding compilers.  */
24265
24266 #ifdef __STDC__
24267 # include <limits.h>
24268 #else
24269 # include <assert.h>
24270 #endif
24271
24272 #undef $ac_func
24273
24274 /* Override any gcc2 internal prototype to avoid an error.  */
24275 #ifdef __cplusplus
24276 extern "C"
24277 {
24278 #endif
24279 /* We use char because int might match the return type of a gcc2
24280    builtin and then its argument prototype would still apply.  */
24281 char $ac_func ();
24282 /* The GNU C library defines this for functions which it implements
24283     to always fail with ENOSYS.  Some functions are actually named
24284     something starting with __ and the normal name is an alias.  */
24285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24286 choke me
24287 #else
24288 char (*f) () = $ac_func;
24289 #endif
24290 #ifdef __cplusplus
24291 }
24292 #endif
24293
24294 int
24295 main ()
24296 {
24297 return f != $ac_func;
24298   ;
24299   return 0;
24300 }
24301 _ACEOF
24302 rm -f conftest.$ac_objext conftest$ac_exeext
24303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24304   (eval $ac_link) 2>conftest.er1
24305   ac_status=$?
24306   grep -v '^ *+' conftest.er1 >conftest.err
24307   rm -f conftest.er1
24308   cat conftest.err >&5
24309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310   (exit $ac_status); } &&
24311          { ac_try='test -z "$ac_c_werror_flag"
24312                          || test ! -s conftest.err'
24313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24314   (eval $ac_try) 2>&5
24315   ac_status=$?
24316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317   (exit $ac_status); }; } &&
24318          { ac_try='test -s conftest$ac_exeext'
24319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24320   (eval $ac_try) 2>&5
24321   ac_status=$?
24322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323   (exit $ac_status); }; }; then
24324   eval "$as_ac_var=yes"
24325 else
24326   echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24328
24329 eval "$as_ac_var=no"
24330 fi
24331 rm -f conftest.err conftest.$ac_objext \
24332       conftest$ac_exeext conftest.$ac_ext
24333 fi
24334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24336 if test `eval echo '${'$as_ac_var'}'` = yes; then
24337   cat >>confdefs.h <<_ACEOF
24338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24339 _ACEOF
24340
24341 fi
24342 done
24343
24344 HAVE_PUTENV=$ac_cv_func_putenv
24345
24346
24347 if test $cross_compiling = yes ; then
24348
24349 cat >>confdefs.h <<\_ACEOF
24350 #define CROSS_COMPILING 1
24351 _ACEOF
24352
24353 else
24354         echo "$as_me:$LINENO: checking for char" >&5
24355 echo $ECHO_N "checking for char... $ECHO_C" >&6
24356 if test "${ac_cv_type_char+set}" = set; then
24357   echo $ECHO_N "(cached) $ECHO_C" >&6
24358 else
24359   cat >conftest.$ac_ext <<_ACEOF
24360 /* confdefs.h.  */
24361 _ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h.  */
24365 $ac_includes_default
24366 int
24367 main ()
24368 {
24369 if ((char *) 0)
24370   return 0;
24371 if (sizeof (char))
24372   return 0;
24373   ;
24374   return 0;
24375 }
24376 _ACEOF
24377 rm -f conftest.$ac_objext
24378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24379   (eval $ac_compile) 2>conftest.er1
24380   ac_status=$?
24381   grep -v '^ *+' conftest.er1 >conftest.err
24382   rm -f conftest.er1
24383   cat conftest.err >&5
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); } &&
24386          { ac_try='test -z "$ac_c_werror_flag"
24387                          || test ! -s conftest.err'
24388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24389   (eval $ac_try) 2>&5
24390   ac_status=$?
24391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392   (exit $ac_status); }; } &&
24393          { ac_try='test -s conftest.$ac_objext'
24394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395   (eval $ac_try) 2>&5
24396   ac_status=$?
24397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398   (exit $ac_status); }; }; then
24399   ac_cv_type_char=yes
24400 else
24401   echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24403
24404 ac_cv_type_char=no
24405 fi
24406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24407 fi
24408 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
24409 echo "${ECHO_T}$ac_cv_type_char" >&6
24410
24411 echo "$as_me:$LINENO: checking size of char" >&5
24412 echo $ECHO_N "checking size of char... $ECHO_C" >&6
24413 if test "${ac_cv_sizeof_char+set}" = set; then
24414   echo $ECHO_N "(cached) $ECHO_C" >&6
24415 else
24416   if test "$ac_cv_type_char" = yes; then
24417   # The cast to unsigned long works around a bug in the HP C Compiler
24418   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24419   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24420   # This bug is HP SR number 8606223364.
24421   if test "$cross_compiling" = yes; then
24422   # Depending upon the size, compute the lo and hi bounds.
24423 cat >conftest.$ac_ext <<_ACEOF
24424 /* confdefs.h.  */
24425 _ACEOF
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h.  */
24429 $ac_includes_default
24430 int
24431 main ()
24432 {
24433 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
24434 test_array [0] = 0
24435
24436   ;
24437   return 0;
24438 }
24439 _ACEOF
24440 rm -f conftest.$ac_objext
24441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24442   (eval $ac_compile) 2>conftest.er1
24443   ac_status=$?
24444   grep -v '^ *+' conftest.er1 >conftest.err
24445   rm -f conftest.er1
24446   cat conftest.err >&5
24447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448   (exit $ac_status); } &&
24449          { ac_try='test -z "$ac_c_werror_flag"
24450                          || test ! -s conftest.err'
24451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24452   (eval $ac_try) 2>&5
24453   ac_status=$?
24454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455   (exit $ac_status); }; } &&
24456          { ac_try='test -s conftest.$ac_objext'
24457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458   (eval $ac_try) 2>&5
24459   ac_status=$?
24460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); }; }; then
24462   ac_lo=0 ac_mid=0
24463   while :; do
24464     cat >conftest.$ac_ext <<_ACEOF
24465 /* confdefs.h.  */
24466 _ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h.  */
24470 $ac_includes_default
24471 int
24472 main ()
24473 {
24474 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
24475 test_array [0] = 0
24476
24477   ;
24478   return 0;
24479 }
24480 _ACEOF
24481 rm -f conftest.$ac_objext
24482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24483   (eval $ac_compile) 2>conftest.er1
24484   ac_status=$?
24485   grep -v '^ *+' conftest.er1 >conftest.err
24486   rm -f conftest.er1
24487   cat conftest.err >&5
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); } &&
24490          { ac_try='test -z "$ac_c_werror_flag"
24491                          || test ! -s conftest.err'
24492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24493   (eval $ac_try) 2>&5
24494   ac_status=$?
24495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496   (exit $ac_status); }; } &&
24497          { ac_try='test -s conftest.$ac_objext'
24498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24499   (eval $ac_try) 2>&5
24500   ac_status=$?
24501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502   (exit $ac_status); }; }; then
24503   ac_hi=$ac_mid; break
24504 else
24505   echo "$as_me: failed program was:" >&5
24506 sed 's/^/| /' conftest.$ac_ext >&5
24507
24508 ac_lo=`expr $ac_mid + 1`
24509                     if test $ac_lo -le $ac_mid; then
24510                       ac_lo= ac_hi=
24511                       break
24512                     fi
24513                     ac_mid=`expr 2 '*' $ac_mid + 1`
24514 fi
24515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24516   done
24517 else
24518   echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24520
24521 cat >conftest.$ac_ext <<_ACEOF
24522 /* confdefs.h.  */
24523 _ACEOF
24524 cat confdefs.h >>conftest.$ac_ext
24525 cat >>conftest.$ac_ext <<_ACEOF
24526 /* end confdefs.h.  */
24527 $ac_includes_default
24528 int
24529 main ()
24530 {
24531 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
24532 test_array [0] = 0
24533
24534   ;
24535   return 0;
24536 }
24537 _ACEOF
24538 rm -f conftest.$ac_objext
24539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24540   (eval $ac_compile) 2>conftest.er1
24541   ac_status=$?
24542   grep -v '^ *+' conftest.er1 >conftest.err
24543   rm -f conftest.er1
24544   cat conftest.err >&5
24545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546   (exit $ac_status); } &&
24547          { ac_try='test -z "$ac_c_werror_flag"
24548                          || test ! -s conftest.err'
24549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24550   (eval $ac_try) 2>&5
24551   ac_status=$?
24552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553   (exit $ac_status); }; } &&
24554          { ac_try='test -s conftest.$ac_objext'
24555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24556   (eval $ac_try) 2>&5
24557   ac_status=$?
24558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559   (exit $ac_status); }; }; then
24560   ac_hi=-1 ac_mid=-1
24561   while :; do
24562     cat >conftest.$ac_ext <<_ACEOF
24563 /* confdefs.h.  */
24564 _ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h.  */
24568 $ac_includes_default
24569 int
24570 main ()
24571 {
24572 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
24573 test_array [0] = 0
24574
24575   ;
24576   return 0;
24577 }
24578 _ACEOF
24579 rm -f conftest.$ac_objext
24580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24581   (eval $ac_compile) 2>conftest.er1
24582   ac_status=$?
24583   grep -v '^ *+' conftest.er1 >conftest.err
24584   rm -f conftest.er1
24585   cat conftest.err >&5
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); } &&
24588          { ac_try='test -z "$ac_c_werror_flag"
24589                          || test ! -s conftest.err'
24590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591   (eval $ac_try) 2>&5
24592   ac_status=$?
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); }; } &&
24595          { ac_try='test -s conftest.$ac_objext'
24596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597   (eval $ac_try) 2>&5
24598   ac_status=$?
24599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600   (exit $ac_status); }; }; then
24601   ac_lo=$ac_mid; break
24602 else
24603   echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24605
24606 ac_hi=`expr '(' $ac_mid ')' - 1`
24607                        if test $ac_mid -le $ac_hi; then
24608                          ac_lo= ac_hi=
24609                          break
24610                        fi
24611                        ac_mid=`expr 2 '*' $ac_mid`
24612 fi
24613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24614   done
24615 else
24616   echo "$as_me: failed program was:" >&5
24617 sed 's/^/| /' conftest.$ac_ext >&5
24618
24619 ac_lo= ac_hi=
24620 fi
24621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24622 fi
24623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24624 # Binary search between lo and hi bounds.
24625 while test "x$ac_lo" != "x$ac_hi"; do
24626   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24627   cat >conftest.$ac_ext <<_ACEOF
24628 /* confdefs.h.  */
24629 _ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h.  */
24633 $ac_includes_default
24634 int
24635 main ()
24636 {
24637 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
24638 test_array [0] = 0
24639
24640   ;
24641   return 0;
24642 }
24643 _ACEOF
24644 rm -f conftest.$ac_objext
24645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24646   (eval $ac_compile) 2>conftest.er1
24647   ac_status=$?
24648   grep -v '^ *+' conftest.er1 >conftest.err
24649   rm -f conftest.er1
24650   cat conftest.err >&5
24651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652   (exit $ac_status); } &&
24653          { ac_try='test -z "$ac_c_werror_flag"
24654                          || test ! -s conftest.err'
24655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24656   (eval $ac_try) 2>&5
24657   ac_status=$?
24658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659   (exit $ac_status); }; } &&
24660          { ac_try='test -s conftest.$ac_objext'
24661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24662   (eval $ac_try) 2>&5
24663   ac_status=$?
24664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665   (exit $ac_status); }; }; then
24666   ac_hi=$ac_mid
24667 else
24668   echo "$as_me: failed program was:" >&5
24669 sed 's/^/| /' conftest.$ac_ext >&5
24670
24671 ac_lo=`expr '(' $ac_mid ')' + 1`
24672 fi
24673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24674 done
24675 case $ac_lo in
24676 ?*) ac_cv_sizeof_char=$ac_lo;;
24677 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
24678 See \`config.log' for more details." >&5
24679 echo "$as_me: error: cannot compute sizeof (char), 77
24680 See \`config.log' for more details." >&2;}
24681    { (exit 1); exit 1; }; } ;;
24682 esac
24683 else
24684   if test "$cross_compiling" = yes; then
24685   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24686 See \`config.log' for more details." >&5
24687 echo "$as_me: error: cannot run test program while cross compiling
24688 See \`config.log' for more details." >&2;}
24689    { (exit 1); exit 1; }; }
24690 else
24691   cat >conftest.$ac_ext <<_ACEOF
24692 /* confdefs.h.  */
24693 _ACEOF
24694 cat confdefs.h >>conftest.$ac_ext
24695 cat >>conftest.$ac_ext <<_ACEOF
24696 /* end confdefs.h.  */
24697 $ac_includes_default
24698 long longval () { return (long) (sizeof (char)); }
24699 unsigned long ulongval () { return (long) (sizeof (char)); }
24700 #include <stdio.h>
24701 #include <stdlib.h>
24702 int
24703 main ()
24704 {
24705
24706   FILE *f = fopen ("conftest.val", "w");
24707   if (! f)
24708     exit (1);
24709   if (((long) (sizeof (char))) < 0)
24710     {
24711       long i = longval ();
24712       if (i != ((long) (sizeof (char))))
24713         exit (1);
24714       fprintf (f, "%ld\n", i);
24715     }
24716   else
24717     {
24718       unsigned long i = ulongval ();
24719       if (i != ((long) (sizeof (char))))
24720         exit (1);
24721       fprintf (f, "%lu\n", i);
24722     }
24723   exit (ferror (f) || fclose (f) != 0);
24724
24725   ;
24726   return 0;
24727 }
24728 _ACEOF
24729 rm -f conftest$ac_exeext
24730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24731   (eval $ac_link) 2>&5
24732   ac_status=$?
24733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24736   (eval $ac_try) 2>&5
24737   ac_status=$?
24738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739   (exit $ac_status); }; }; then
24740   ac_cv_sizeof_char=`cat conftest.val`
24741 else
24742   echo "$as_me: program exited with status $ac_status" >&5
24743 echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24745
24746 ( exit $ac_status )
24747 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
24748 See \`config.log' for more details." >&5
24749 echo "$as_me: error: cannot compute sizeof (char), 77
24750 See \`config.log' for more details." >&2;}
24751    { (exit 1); exit 1; }; }
24752 fi
24753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24754 fi
24755 fi
24756 rm -f conftest.val
24757 else
24758   ac_cv_sizeof_char=0
24759 fi
24760 fi
24761 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
24762 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
24763 cat >>confdefs.h <<_ACEOF
24764 #define SIZEOF_CHAR $ac_cv_sizeof_char
24765 _ACEOF
24766
24767
24768         echo "$as_me:$LINENO: checking for uniquely sized char" >&5
24769 echo $ECHO_N "checking for uniquely sized char... $ECHO_C" >&6
24770 if test "${ccvs_cv_unique_int_type_char+set}" = set; then
24771   echo $ECHO_N "(cached) $ECHO_C" >&6
24772 else
24773   if set |grep ^ccvs_cv_unique_int_type_ \
24774                         |grep "($ac_cv_sizeof_char)" >/dev/null ; then
24775                         ccvs_cv_unique_int_type_char=no
24776                 else
24777                         ccvs_cv_unique_int_type_char=yes\($ac_cv_sizeof_char\)
24778                 fi
24779 fi
24780 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_char" >&5
24781 echo "${ECHO_T}$ccvs_cv_unique_int_type_char" >&6
24782         if test $ccvs_cv_unique_int_type_char != no ; then
24783
24784 cat >>confdefs.h <<\_ACEOF
24785 #define UNIQUE_INT_TYPE_CHAR 1
24786 _ACEOF
24787
24788         fi
24789         echo "$as_me:$LINENO: checking for short" >&5
24790 echo $ECHO_N "checking for short... $ECHO_C" >&6
24791 if test "${ac_cv_type_short+set}" = set; then
24792   echo $ECHO_N "(cached) $ECHO_C" >&6
24793 else
24794   cat >conftest.$ac_ext <<_ACEOF
24795 /* confdefs.h.  */
24796 _ACEOF
24797 cat confdefs.h >>conftest.$ac_ext
24798 cat >>conftest.$ac_ext <<_ACEOF
24799 /* end confdefs.h.  */
24800 $ac_includes_default
24801 int
24802 main ()
24803 {
24804 if ((short *) 0)
24805   return 0;
24806 if (sizeof (short))
24807   return 0;
24808   ;
24809   return 0;
24810 }
24811 _ACEOF
24812 rm -f conftest.$ac_objext
24813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24814   (eval $ac_compile) 2>conftest.er1
24815   ac_status=$?
24816   grep -v '^ *+' conftest.er1 >conftest.err
24817   rm -f conftest.er1
24818   cat conftest.err >&5
24819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); } &&
24821          { ac_try='test -z "$ac_c_werror_flag"
24822                          || test ! -s conftest.err'
24823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824   (eval $ac_try) 2>&5
24825   ac_status=$?
24826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827   (exit $ac_status); }; } &&
24828          { ac_try='test -s conftest.$ac_objext'
24829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24830   (eval $ac_try) 2>&5
24831   ac_status=$?
24832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833   (exit $ac_status); }; }; then
24834   ac_cv_type_short=yes
24835 else
24836   echo "$as_me: failed program was:" >&5
24837 sed 's/^/| /' conftest.$ac_ext >&5
24838
24839 ac_cv_type_short=no
24840 fi
24841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24842 fi
24843 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
24844 echo "${ECHO_T}$ac_cv_type_short" >&6
24845
24846 echo "$as_me:$LINENO: checking size of short" >&5
24847 echo $ECHO_N "checking size of short... $ECHO_C" >&6
24848 if test "${ac_cv_sizeof_short+set}" = set; then
24849   echo $ECHO_N "(cached) $ECHO_C" >&6
24850 else
24851   if test "$ac_cv_type_short" = yes; then
24852   # The cast to unsigned long works around a bug in the HP C Compiler
24853   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24854   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24855   # This bug is HP SR number 8606223364.
24856   if test "$cross_compiling" = yes; then
24857   # Depending upon the size, compute the lo and hi bounds.
24858 cat >conftest.$ac_ext <<_ACEOF
24859 /* confdefs.h.  */
24860 _ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h.  */
24864 $ac_includes_default
24865 int
24866 main ()
24867 {
24868 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
24869 test_array [0] = 0
24870
24871   ;
24872   return 0;
24873 }
24874 _ACEOF
24875 rm -f conftest.$ac_objext
24876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24877   (eval $ac_compile) 2>conftest.er1
24878   ac_status=$?
24879   grep -v '^ *+' conftest.er1 >conftest.err
24880   rm -f conftest.er1
24881   cat conftest.err >&5
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); } &&
24884          { ac_try='test -z "$ac_c_werror_flag"
24885                          || test ! -s conftest.err'
24886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887   (eval $ac_try) 2>&5
24888   ac_status=$?
24889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890   (exit $ac_status); }; } &&
24891          { ac_try='test -s conftest.$ac_objext'
24892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893   (eval $ac_try) 2>&5
24894   ac_status=$?
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); }; }; then
24897   ac_lo=0 ac_mid=0
24898   while :; do
24899     cat >conftest.$ac_ext <<_ACEOF
24900 /* confdefs.h.  */
24901 _ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h.  */
24905 $ac_includes_default
24906 int
24907 main ()
24908 {
24909 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
24910 test_array [0] = 0
24911
24912   ;
24913   return 0;
24914 }
24915 _ACEOF
24916 rm -f conftest.$ac_objext
24917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24918   (eval $ac_compile) 2>conftest.er1
24919   ac_status=$?
24920   grep -v '^ *+' conftest.er1 >conftest.err
24921   rm -f conftest.er1
24922   cat conftest.err >&5
24923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924   (exit $ac_status); } &&
24925          { ac_try='test -z "$ac_c_werror_flag"
24926                          || test ! -s conftest.err'
24927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928   (eval $ac_try) 2>&5
24929   ac_status=$?
24930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931   (exit $ac_status); }; } &&
24932          { ac_try='test -s conftest.$ac_objext'
24933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934   (eval $ac_try) 2>&5
24935   ac_status=$?
24936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937   (exit $ac_status); }; }; then
24938   ac_hi=$ac_mid; break
24939 else
24940   echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24942
24943 ac_lo=`expr $ac_mid + 1`
24944                     if test $ac_lo -le $ac_mid; then
24945                       ac_lo= ac_hi=
24946                       break
24947                     fi
24948                     ac_mid=`expr 2 '*' $ac_mid + 1`
24949 fi
24950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24951   done
24952 else
24953   echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24955
24956 cat >conftest.$ac_ext <<_ACEOF
24957 /* confdefs.h.  */
24958 _ACEOF
24959 cat confdefs.h >>conftest.$ac_ext
24960 cat >>conftest.$ac_ext <<_ACEOF
24961 /* end confdefs.h.  */
24962 $ac_includes_default
24963 int
24964 main ()
24965 {
24966 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
24967 test_array [0] = 0
24968
24969   ;
24970   return 0;
24971 }
24972 _ACEOF
24973 rm -f conftest.$ac_objext
24974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24975   (eval $ac_compile) 2>conftest.er1
24976   ac_status=$?
24977   grep -v '^ *+' conftest.er1 >conftest.err
24978   rm -f conftest.er1
24979   cat conftest.err >&5
24980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981   (exit $ac_status); } &&
24982          { ac_try='test -z "$ac_c_werror_flag"
24983                          || test ! -s conftest.err'
24984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985   (eval $ac_try) 2>&5
24986   ac_status=$?
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); }; } &&
24989          { ac_try='test -s conftest.$ac_objext'
24990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991   (eval $ac_try) 2>&5
24992   ac_status=$?
24993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994   (exit $ac_status); }; }; then
24995   ac_hi=-1 ac_mid=-1
24996   while :; do
24997     cat >conftest.$ac_ext <<_ACEOF
24998 /* confdefs.h.  */
24999 _ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h.  */
25003 $ac_includes_default
25004 int
25005 main ()
25006 {
25007 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
25008 test_array [0] = 0
25009
25010   ;
25011   return 0;
25012 }
25013 _ACEOF
25014 rm -f conftest.$ac_objext
25015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25016   (eval $ac_compile) 2>conftest.er1
25017   ac_status=$?
25018   grep -v '^ *+' conftest.er1 >conftest.err
25019   rm -f conftest.er1
25020   cat conftest.err >&5
25021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); } &&
25023          { ac_try='test -z "$ac_c_werror_flag"
25024                          || test ! -s conftest.err'
25025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026   (eval $ac_try) 2>&5
25027   ac_status=$?
25028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029   (exit $ac_status); }; } &&
25030          { ac_try='test -s conftest.$ac_objext'
25031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032   (eval $ac_try) 2>&5
25033   ac_status=$?
25034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035   (exit $ac_status); }; }; then
25036   ac_lo=$ac_mid; break
25037 else
25038   echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25040
25041 ac_hi=`expr '(' $ac_mid ')' - 1`
25042                        if test $ac_mid -le $ac_hi; then
25043                          ac_lo= ac_hi=
25044                          break
25045                        fi
25046                        ac_mid=`expr 2 '*' $ac_mid`
25047 fi
25048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25049   done
25050 else
25051   echo "$as_me: failed program was:" >&5
25052 sed 's/^/| /' conftest.$ac_ext >&5
25053
25054 ac_lo= ac_hi=
25055 fi
25056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25057 fi
25058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25059 # Binary search between lo and hi bounds.
25060 while test "x$ac_lo" != "x$ac_hi"; do
25061   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25062   cat >conftest.$ac_ext <<_ACEOF
25063 /* confdefs.h.  */
25064 _ACEOF
25065 cat confdefs.h >>conftest.$ac_ext
25066 cat >>conftest.$ac_ext <<_ACEOF
25067 /* end confdefs.h.  */
25068 $ac_includes_default
25069 int
25070 main ()
25071 {
25072 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25073 test_array [0] = 0
25074
25075   ;
25076   return 0;
25077 }
25078 _ACEOF
25079 rm -f conftest.$ac_objext
25080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25081   (eval $ac_compile) 2>conftest.er1
25082   ac_status=$?
25083   grep -v '^ *+' conftest.er1 >conftest.err
25084   rm -f conftest.er1
25085   cat conftest.err >&5
25086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087   (exit $ac_status); } &&
25088          { ac_try='test -z "$ac_c_werror_flag"
25089                          || test ! -s conftest.err'
25090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091   (eval $ac_try) 2>&5
25092   ac_status=$?
25093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094   (exit $ac_status); }; } &&
25095          { ac_try='test -s conftest.$ac_objext'
25096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25097   (eval $ac_try) 2>&5
25098   ac_status=$?
25099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100   (exit $ac_status); }; }; then
25101   ac_hi=$ac_mid
25102 else
25103   echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25105
25106 ac_lo=`expr '(' $ac_mid ')' + 1`
25107 fi
25108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25109 done
25110 case $ac_lo in
25111 ?*) ac_cv_sizeof_short=$ac_lo;;
25112 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
25113 See \`config.log' for more details." >&5
25114 echo "$as_me: error: cannot compute sizeof (short), 77
25115 See \`config.log' for more details." >&2;}
25116    { (exit 1); exit 1; }; } ;;
25117 esac
25118 else
25119   if test "$cross_compiling" = yes; then
25120   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25121 See \`config.log' for more details." >&5
25122 echo "$as_me: error: cannot run test program while cross compiling
25123 See \`config.log' for more details." >&2;}
25124    { (exit 1); exit 1; }; }
25125 else
25126   cat >conftest.$ac_ext <<_ACEOF
25127 /* confdefs.h.  */
25128 _ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h.  */
25132 $ac_includes_default
25133 long longval () { return (long) (sizeof (short)); }
25134 unsigned long ulongval () { return (long) (sizeof (short)); }
25135 #include <stdio.h>
25136 #include <stdlib.h>
25137 int
25138 main ()
25139 {
25140
25141   FILE *f = fopen ("conftest.val", "w");
25142   if (! f)
25143     exit (1);
25144   if (((long) (sizeof (short))) < 0)
25145     {
25146       long i = longval ();
25147       if (i != ((long) (sizeof (short))))
25148         exit (1);
25149       fprintf (f, "%ld\n", i);
25150     }
25151   else
25152     {
25153       unsigned long i = ulongval ();
25154       if (i != ((long) (sizeof (short))))
25155         exit (1);
25156       fprintf (f, "%lu\n", i);
25157     }
25158   exit (ferror (f) || fclose (f) != 0);
25159
25160   ;
25161   return 0;
25162 }
25163 _ACEOF
25164 rm -f conftest$ac_exeext
25165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25166   (eval $ac_link) 2>&5
25167   ac_status=$?
25168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25171   (eval $ac_try) 2>&5
25172   ac_status=$?
25173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174   (exit $ac_status); }; }; then
25175   ac_cv_sizeof_short=`cat conftest.val`
25176 else
25177   echo "$as_me: program exited with status $ac_status" >&5
25178 echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25180
25181 ( exit $ac_status )
25182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
25183 See \`config.log' for more details." >&5
25184 echo "$as_me: error: cannot compute sizeof (short), 77
25185 See \`config.log' for more details." >&2;}
25186    { (exit 1); exit 1; }; }
25187 fi
25188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25189 fi
25190 fi
25191 rm -f conftest.val
25192 else
25193   ac_cv_sizeof_short=0
25194 fi
25195 fi
25196 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
25197 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
25198 cat >>confdefs.h <<_ACEOF
25199 #define SIZEOF_SHORT $ac_cv_sizeof_short
25200 _ACEOF
25201
25202
25203         echo "$as_me:$LINENO: checking for uniquely sized short" >&5
25204 echo $ECHO_N "checking for uniquely sized short... $ECHO_C" >&6
25205 if test "${ccvs_cv_unique_int_type_short+set}" = set; then
25206   echo $ECHO_N "(cached) $ECHO_C" >&6
25207 else
25208   if set |grep ^ccvs_cv_unique_int_type_ \
25209                         |grep "($ac_cv_sizeof_short)" >/dev/null ; then
25210                         ccvs_cv_unique_int_type_short=no
25211                 else
25212                         ccvs_cv_unique_int_type_short=yes\($ac_cv_sizeof_short\)
25213                 fi
25214 fi
25215 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_short" >&5
25216 echo "${ECHO_T}$ccvs_cv_unique_int_type_short" >&6
25217         if test $ccvs_cv_unique_int_type_short != no ; then
25218
25219 cat >>confdefs.h <<\_ACEOF
25220 #define UNIQUE_INT_TYPE_SHORT 1
25221 _ACEOF
25222
25223         fi
25224         echo "$as_me:$LINENO: checking for int" >&5
25225 echo $ECHO_N "checking for int... $ECHO_C" >&6
25226 if test "${ac_cv_type_int+set}" = set; then
25227   echo $ECHO_N "(cached) $ECHO_C" >&6
25228 else
25229   cat >conftest.$ac_ext <<_ACEOF
25230 /* confdefs.h.  */
25231 _ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h.  */
25235 $ac_includes_default
25236 int
25237 main ()
25238 {
25239 if ((int *) 0)
25240   return 0;
25241 if (sizeof (int))
25242   return 0;
25243   ;
25244   return 0;
25245 }
25246 _ACEOF
25247 rm -f conftest.$ac_objext
25248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25249   (eval $ac_compile) 2>conftest.er1
25250   ac_status=$?
25251   grep -v '^ *+' conftest.er1 >conftest.err
25252   rm -f conftest.er1
25253   cat conftest.err >&5
25254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255   (exit $ac_status); } &&
25256          { ac_try='test -z "$ac_c_werror_flag"
25257                          || test ! -s conftest.err'
25258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25259   (eval $ac_try) 2>&5
25260   ac_status=$?
25261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262   (exit $ac_status); }; } &&
25263          { ac_try='test -s conftest.$ac_objext'
25264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25265   (eval $ac_try) 2>&5
25266   ac_status=$?
25267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268   (exit $ac_status); }; }; then
25269   ac_cv_type_int=yes
25270 else
25271   echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.$ac_ext >&5
25273
25274 ac_cv_type_int=no
25275 fi
25276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25277 fi
25278 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
25279 echo "${ECHO_T}$ac_cv_type_int" >&6
25280
25281 echo "$as_me:$LINENO: checking size of int" >&5
25282 echo $ECHO_N "checking size of int... $ECHO_C" >&6
25283 if test "${ac_cv_sizeof_int+set}" = set; then
25284   echo $ECHO_N "(cached) $ECHO_C" >&6
25285 else
25286   if test "$ac_cv_type_int" = yes; then
25287   # The cast to unsigned long works around a bug in the HP C Compiler
25288   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25289   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25290   # This bug is HP SR number 8606223364.
25291   if test "$cross_compiling" = yes; then
25292   # Depending upon the size, compute the lo and hi bounds.
25293 cat >conftest.$ac_ext <<_ACEOF
25294 /* confdefs.h.  */
25295 _ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h.  */
25299 $ac_includes_default
25300 int
25301 main ()
25302 {
25303 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
25304 test_array [0] = 0
25305
25306   ;
25307   return 0;
25308 }
25309 _ACEOF
25310 rm -f conftest.$ac_objext
25311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25312   (eval $ac_compile) 2>conftest.er1
25313   ac_status=$?
25314   grep -v '^ *+' conftest.er1 >conftest.err
25315   rm -f conftest.er1
25316   cat conftest.err >&5
25317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318   (exit $ac_status); } &&
25319          { ac_try='test -z "$ac_c_werror_flag"
25320                          || test ! -s conftest.err'
25321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25322   (eval $ac_try) 2>&5
25323   ac_status=$?
25324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325   (exit $ac_status); }; } &&
25326          { ac_try='test -s conftest.$ac_objext'
25327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25328   (eval $ac_try) 2>&5
25329   ac_status=$?
25330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331   (exit $ac_status); }; }; then
25332   ac_lo=0 ac_mid=0
25333   while :; do
25334     cat >conftest.$ac_ext <<_ACEOF
25335 /* confdefs.h.  */
25336 _ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h.  */
25340 $ac_includes_default
25341 int
25342 main ()
25343 {
25344 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
25345 test_array [0] = 0
25346
25347   ;
25348   return 0;
25349 }
25350 _ACEOF
25351 rm -f conftest.$ac_objext
25352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25353   (eval $ac_compile) 2>conftest.er1
25354   ac_status=$?
25355   grep -v '^ *+' conftest.er1 >conftest.err
25356   rm -f conftest.er1
25357   cat conftest.err >&5
25358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359   (exit $ac_status); } &&
25360          { ac_try='test -z "$ac_c_werror_flag"
25361                          || test ! -s conftest.err'
25362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25363   (eval $ac_try) 2>&5
25364   ac_status=$?
25365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366   (exit $ac_status); }; } &&
25367          { ac_try='test -s conftest.$ac_objext'
25368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369   (eval $ac_try) 2>&5
25370   ac_status=$?
25371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372   (exit $ac_status); }; }; then
25373   ac_hi=$ac_mid; break
25374 else
25375   echo "$as_me: failed program was:" >&5
25376 sed 's/^/| /' conftest.$ac_ext >&5
25377
25378 ac_lo=`expr $ac_mid + 1`
25379                     if test $ac_lo -le $ac_mid; then
25380                       ac_lo= ac_hi=
25381                       break
25382                     fi
25383                     ac_mid=`expr 2 '*' $ac_mid + 1`
25384 fi
25385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25386   done
25387 else
25388   echo "$as_me: failed program was:" >&5
25389 sed 's/^/| /' conftest.$ac_ext >&5
25390
25391 cat >conftest.$ac_ext <<_ACEOF
25392 /* confdefs.h.  */
25393 _ACEOF
25394 cat confdefs.h >>conftest.$ac_ext
25395 cat >>conftest.$ac_ext <<_ACEOF
25396 /* end confdefs.h.  */
25397 $ac_includes_default
25398 int
25399 main ()
25400 {
25401 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
25402 test_array [0] = 0
25403
25404   ;
25405   return 0;
25406 }
25407 _ACEOF
25408 rm -f conftest.$ac_objext
25409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25410   (eval $ac_compile) 2>conftest.er1
25411   ac_status=$?
25412   grep -v '^ *+' conftest.er1 >conftest.err
25413   rm -f conftest.er1
25414   cat conftest.err >&5
25415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416   (exit $ac_status); } &&
25417          { ac_try='test -z "$ac_c_werror_flag"
25418                          || test ! -s conftest.err'
25419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25420   (eval $ac_try) 2>&5
25421   ac_status=$?
25422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423   (exit $ac_status); }; } &&
25424          { ac_try='test -s conftest.$ac_objext'
25425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25426   (eval $ac_try) 2>&5
25427   ac_status=$?
25428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429   (exit $ac_status); }; }; then
25430   ac_hi=-1 ac_mid=-1
25431   while :; do
25432     cat >conftest.$ac_ext <<_ACEOF
25433 /* confdefs.h.  */
25434 _ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h.  */
25438 $ac_includes_default
25439 int
25440 main ()
25441 {
25442 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
25443 test_array [0] = 0
25444
25445   ;
25446   return 0;
25447 }
25448 _ACEOF
25449 rm -f conftest.$ac_objext
25450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25451   (eval $ac_compile) 2>conftest.er1
25452   ac_status=$?
25453   grep -v '^ *+' conftest.er1 >conftest.err
25454   rm -f conftest.er1
25455   cat conftest.err >&5
25456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457   (exit $ac_status); } &&
25458          { ac_try='test -z "$ac_c_werror_flag"
25459                          || test ! -s conftest.err'
25460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461   (eval $ac_try) 2>&5
25462   ac_status=$?
25463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464   (exit $ac_status); }; } &&
25465          { ac_try='test -s conftest.$ac_objext'
25466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25467   (eval $ac_try) 2>&5
25468   ac_status=$?
25469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470   (exit $ac_status); }; }; then
25471   ac_lo=$ac_mid; break
25472 else
25473   echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25475
25476 ac_hi=`expr '(' $ac_mid ')' - 1`
25477                        if test $ac_mid -le $ac_hi; then
25478                          ac_lo= ac_hi=
25479                          break
25480                        fi
25481                        ac_mid=`expr 2 '*' $ac_mid`
25482 fi
25483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25484   done
25485 else
25486   echo "$as_me: failed program was:" >&5
25487 sed 's/^/| /' conftest.$ac_ext >&5
25488
25489 ac_lo= ac_hi=
25490 fi
25491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25492 fi
25493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25494 # Binary search between lo and hi bounds.
25495 while test "x$ac_lo" != "x$ac_hi"; do
25496   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25497   cat >conftest.$ac_ext <<_ACEOF
25498 /* confdefs.h.  */
25499 _ACEOF
25500 cat confdefs.h >>conftest.$ac_ext
25501 cat >>conftest.$ac_ext <<_ACEOF
25502 /* end confdefs.h.  */
25503 $ac_includes_default
25504 int
25505 main ()
25506 {
25507 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
25508 test_array [0] = 0
25509
25510   ;
25511   return 0;
25512 }
25513 _ACEOF
25514 rm -f conftest.$ac_objext
25515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25516   (eval $ac_compile) 2>conftest.er1
25517   ac_status=$?
25518   grep -v '^ *+' conftest.er1 >conftest.err
25519   rm -f conftest.er1
25520   cat conftest.err >&5
25521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522   (exit $ac_status); } &&
25523          { ac_try='test -z "$ac_c_werror_flag"
25524                          || test ! -s conftest.err'
25525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526   (eval $ac_try) 2>&5
25527   ac_status=$?
25528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529   (exit $ac_status); }; } &&
25530          { ac_try='test -s conftest.$ac_objext'
25531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532   (eval $ac_try) 2>&5
25533   ac_status=$?
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); }; }; then
25536   ac_hi=$ac_mid
25537 else
25538   echo "$as_me: failed program was:" >&5
25539 sed 's/^/| /' conftest.$ac_ext >&5
25540
25541 ac_lo=`expr '(' $ac_mid ')' + 1`
25542 fi
25543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25544 done
25545 case $ac_lo in
25546 ?*) ac_cv_sizeof_int=$ac_lo;;
25547 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
25548 See \`config.log' for more details." >&5
25549 echo "$as_me: error: cannot compute sizeof (int), 77
25550 See \`config.log' for more details." >&2;}
25551    { (exit 1); exit 1; }; } ;;
25552 esac
25553 else
25554   if test "$cross_compiling" = yes; then
25555   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25556 See \`config.log' for more details." >&5
25557 echo "$as_me: error: cannot run test program while cross compiling
25558 See \`config.log' for more details." >&2;}
25559    { (exit 1); exit 1; }; }
25560 else
25561   cat >conftest.$ac_ext <<_ACEOF
25562 /* confdefs.h.  */
25563 _ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h.  */
25567 $ac_includes_default
25568 long longval () { return (long) (sizeof (int)); }
25569 unsigned long ulongval () { return (long) (sizeof (int)); }
25570 #include <stdio.h>
25571 #include <stdlib.h>
25572 int
25573 main ()
25574 {
25575
25576   FILE *f = fopen ("conftest.val", "w");
25577   if (! f)
25578     exit (1);
25579   if (((long) (sizeof (int))) < 0)
25580     {
25581       long i = longval ();
25582       if (i != ((long) (sizeof (int))))
25583         exit (1);
25584       fprintf (f, "%ld\n", i);
25585     }
25586   else
25587     {
25588       unsigned long i = ulongval ();
25589       if (i != ((long) (sizeof (int))))
25590         exit (1);
25591       fprintf (f, "%lu\n", i);
25592     }
25593   exit (ferror (f) || fclose (f) != 0);
25594
25595   ;
25596   return 0;
25597 }
25598 _ACEOF
25599 rm -f conftest$ac_exeext
25600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25601   (eval $ac_link) 2>&5
25602   ac_status=$?
25603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606   (eval $ac_try) 2>&5
25607   ac_status=$?
25608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609   (exit $ac_status); }; }; then
25610   ac_cv_sizeof_int=`cat conftest.val`
25611 else
25612   echo "$as_me: program exited with status $ac_status" >&5
25613 echo "$as_me: failed program was:" >&5
25614 sed 's/^/| /' conftest.$ac_ext >&5
25615
25616 ( exit $ac_status )
25617 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
25618 See \`config.log' for more details." >&5
25619 echo "$as_me: error: cannot compute sizeof (int), 77
25620 See \`config.log' for more details." >&2;}
25621    { (exit 1); exit 1; }; }
25622 fi
25623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25624 fi
25625 fi
25626 rm -f conftest.val
25627 else
25628   ac_cv_sizeof_int=0
25629 fi
25630 fi
25631 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25632 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
25633 cat >>confdefs.h <<_ACEOF
25634 #define SIZEOF_INT $ac_cv_sizeof_int
25635 _ACEOF
25636
25637
25638         echo "$as_me:$LINENO: checking for uniquely sized int" >&5
25639 echo $ECHO_N "checking for uniquely sized int... $ECHO_C" >&6
25640 if test "${ccvs_cv_unique_int_type_int+set}" = set; then
25641   echo $ECHO_N "(cached) $ECHO_C" >&6
25642 else
25643   if set |grep ^ccvs_cv_unique_int_type_ \
25644                         |grep "($ac_cv_sizeof_int)" >/dev/null ; then
25645                         ccvs_cv_unique_int_type_int=no
25646                 else
25647                         ccvs_cv_unique_int_type_int=yes\($ac_cv_sizeof_int\)
25648                 fi
25649 fi
25650 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_int" >&5
25651 echo "${ECHO_T}$ccvs_cv_unique_int_type_int" >&6
25652         if test $ccvs_cv_unique_int_type_int != no ; then
25653
25654 cat >>confdefs.h <<\_ACEOF
25655 #define UNIQUE_INT_TYPE_INT 1
25656 _ACEOF
25657
25658         fi
25659         echo "$as_me:$LINENO: checking for long" >&5
25660 echo $ECHO_N "checking for long... $ECHO_C" >&6
25661 if test "${ac_cv_type_long+set}" = set; then
25662   echo $ECHO_N "(cached) $ECHO_C" >&6
25663 else
25664   cat >conftest.$ac_ext <<_ACEOF
25665 /* confdefs.h.  */
25666 _ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h.  */
25670 $ac_includes_default
25671 int
25672 main ()
25673 {
25674 if ((long *) 0)
25675   return 0;
25676 if (sizeof (long))
25677   return 0;
25678   ;
25679   return 0;
25680 }
25681 _ACEOF
25682 rm -f conftest.$ac_objext
25683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25684   (eval $ac_compile) 2>conftest.er1
25685   ac_status=$?
25686   grep -v '^ *+' conftest.er1 >conftest.err
25687   rm -f conftest.er1
25688   cat conftest.err >&5
25689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690   (exit $ac_status); } &&
25691          { ac_try='test -z "$ac_c_werror_flag"
25692                          || test ! -s conftest.err'
25693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25694   (eval $ac_try) 2>&5
25695   ac_status=$?
25696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697   (exit $ac_status); }; } &&
25698          { ac_try='test -s conftest.$ac_objext'
25699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25700   (eval $ac_try) 2>&5
25701   ac_status=$?
25702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703   (exit $ac_status); }; }; then
25704   ac_cv_type_long=yes
25705 else
25706   echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25708
25709 ac_cv_type_long=no
25710 fi
25711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25712 fi
25713 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
25714 echo "${ECHO_T}$ac_cv_type_long" >&6
25715
25716 echo "$as_me:$LINENO: checking size of long" >&5
25717 echo $ECHO_N "checking size of long... $ECHO_C" >&6
25718 if test "${ac_cv_sizeof_long+set}" = set; then
25719   echo $ECHO_N "(cached) $ECHO_C" >&6
25720 else
25721   if test "$ac_cv_type_long" = yes; then
25722   # The cast to unsigned long works around a bug in the HP C Compiler
25723   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25724   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25725   # This bug is HP SR number 8606223364.
25726   if test "$cross_compiling" = yes; then
25727   # Depending upon the size, compute the lo and hi bounds.
25728 cat >conftest.$ac_ext <<_ACEOF
25729 /* confdefs.h.  */
25730 _ACEOF
25731 cat confdefs.h >>conftest.$ac_ext
25732 cat >>conftest.$ac_ext <<_ACEOF
25733 /* end confdefs.h.  */
25734 $ac_includes_default
25735 int
25736 main ()
25737 {
25738 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
25739 test_array [0] = 0
25740
25741   ;
25742   return 0;
25743 }
25744 _ACEOF
25745 rm -f conftest.$ac_objext
25746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25747   (eval $ac_compile) 2>conftest.er1
25748   ac_status=$?
25749   grep -v '^ *+' conftest.er1 >conftest.err
25750   rm -f conftest.er1
25751   cat conftest.err >&5
25752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753   (exit $ac_status); } &&
25754          { ac_try='test -z "$ac_c_werror_flag"
25755                          || test ! -s conftest.err'
25756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25757   (eval $ac_try) 2>&5
25758   ac_status=$?
25759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760   (exit $ac_status); }; } &&
25761          { ac_try='test -s conftest.$ac_objext'
25762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25763   (eval $ac_try) 2>&5
25764   ac_status=$?
25765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766   (exit $ac_status); }; }; then
25767   ac_lo=0 ac_mid=0
25768   while :; do
25769     cat >conftest.$ac_ext <<_ACEOF
25770 /* confdefs.h.  */
25771 _ACEOF
25772 cat confdefs.h >>conftest.$ac_ext
25773 cat >>conftest.$ac_ext <<_ACEOF
25774 /* end confdefs.h.  */
25775 $ac_includes_default
25776 int
25777 main ()
25778 {
25779 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
25780 test_array [0] = 0
25781
25782   ;
25783   return 0;
25784 }
25785 _ACEOF
25786 rm -f conftest.$ac_objext
25787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25788   (eval $ac_compile) 2>conftest.er1
25789   ac_status=$?
25790   grep -v '^ *+' conftest.er1 >conftest.err
25791   rm -f conftest.er1
25792   cat conftest.err >&5
25793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794   (exit $ac_status); } &&
25795          { ac_try='test -z "$ac_c_werror_flag"
25796                          || test ! -s conftest.err'
25797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798   (eval $ac_try) 2>&5
25799   ac_status=$?
25800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); }; } &&
25802          { ac_try='test -s conftest.$ac_objext'
25803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804   (eval $ac_try) 2>&5
25805   ac_status=$?
25806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807   (exit $ac_status); }; }; then
25808   ac_hi=$ac_mid; break
25809 else
25810   echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25812
25813 ac_lo=`expr $ac_mid + 1`
25814                     if test $ac_lo -le $ac_mid; then
25815                       ac_lo= ac_hi=
25816                       break
25817                     fi
25818                     ac_mid=`expr 2 '*' $ac_mid + 1`
25819 fi
25820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25821   done
25822 else
25823   echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25825
25826 cat >conftest.$ac_ext <<_ACEOF
25827 /* confdefs.h.  */
25828 _ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h.  */
25832 $ac_includes_default
25833 int
25834 main ()
25835 {
25836 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
25837 test_array [0] = 0
25838
25839   ;
25840   return 0;
25841 }
25842 _ACEOF
25843 rm -f conftest.$ac_objext
25844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845   (eval $ac_compile) 2>conftest.er1
25846   ac_status=$?
25847   grep -v '^ *+' conftest.er1 >conftest.err
25848   rm -f conftest.er1
25849   cat conftest.err >&5
25850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851   (exit $ac_status); } &&
25852          { ac_try='test -z "$ac_c_werror_flag"
25853                          || test ! -s conftest.err'
25854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855   (eval $ac_try) 2>&5
25856   ac_status=$?
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); }; } &&
25859          { ac_try='test -s conftest.$ac_objext'
25860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861   (eval $ac_try) 2>&5
25862   ac_status=$?
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); }; }; then
25865   ac_hi=-1 ac_mid=-1
25866   while :; do
25867     cat >conftest.$ac_ext <<_ACEOF
25868 /* confdefs.h.  */
25869 _ACEOF
25870 cat confdefs.h >>conftest.$ac_ext
25871 cat >>conftest.$ac_ext <<_ACEOF
25872 /* end confdefs.h.  */
25873 $ac_includes_default
25874 int
25875 main ()
25876 {
25877 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
25878 test_array [0] = 0
25879
25880   ;
25881   return 0;
25882 }
25883 _ACEOF
25884 rm -f conftest.$ac_objext
25885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25886   (eval $ac_compile) 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_objext'
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   ac_lo=$ac_mid; break
25907 else
25908   echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.$ac_ext >&5
25910
25911 ac_hi=`expr '(' $ac_mid ')' - 1`
25912                        if test $ac_mid -le $ac_hi; then
25913                          ac_lo= ac_hi=
25914                          break
25915                        fi
25916                        ac_mid=`expr 2 '*' $ac_mid`
25917 fi
25918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25919   done
25920 else
25921   echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25923
25924 ac_lo= ac_hi=
25925 fi
25926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25927 fi
25928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25929 # Binary search between lo and hi bounds.
25930 while test "x$ac_lo" != "x$ac_hi"; do
25931   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25932   cat >conftest.$ac_ext <<_ACEOF
25933 /* confdefs.h.  */
25934 _ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h.  */
25938 $ac_includes_default
25939 int
25940 main ()
25941 {
25942 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
25943 test_array [0] = 0
25944
25945   ;
25946   return 0;
25947 }
25948 _ACEOF
25949 rm -f conftest.$ac_objext
25950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25951   (eval $ac_compile) 2>conftest.er1
25952   ac_status=$?
25953   grep -v '^ *+' conftest.er1 >conftest.err
25954   rm -f conftest.er1
25955   cat conftest.err >&5
25956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957   (exit $ac_status); } &&
25958          { ac_try='test -z "$ac_c_werror_flag"
25959                          || test ! -s conftest.err'
25960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25961   (eval $ac_try) 2>&5
25962   ac_status=$?
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); }; } &&
25965          { ac_try='test -s conftest.$ac_objext'
25966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25967   (eval $ac_try) 2>&5
25968   ac_status=$?
25969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25970   (exit $ac_status); }; }; then
25971   ac_hi=$ac_mid
25972 else
25973   echo "$as_me: failed program was:" >&5
25974 sed 's/^/| /' conftest.$ac_ext >&5
25975
25976 ac_lo=`expr '(' $ac_mid ')' + 1`
25977 fi
25978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25979 done
25980 case $ac_lo in
25981 ?*) ac_cv_sizeof_long=$ac_lo;;
25982 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
25983 See \`config.log' for more details." >&5
25984 echo "$as_me: error: cannot compute sizeof (long), 77
25985 See \`config.log' for more details." >&2;}
25986    { (exit 1); exit 1; }; } ;;
25987 esac
25988 else
25989   if test "$cross_compiling" = yes; then
25990   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25991 See \`config.log' for more details." >&5
25992 echo "$as_me: error: cannot run test program while cross compiling
25993 See \`config.log' for more details." >&2;}
25994    { (exit 1); exit 1; }; }
25995 else
25996   cat >conftest.$ac_ext <<_ACEOF
25997 /* confdefs.h.  */
25998 _ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h.  */
26002 $ac_includes_default
26003 long longval () { return (long) (sizeof (long)); }
26004 unsigned long ulongval () { return (long) (sizeof (long)); }
26005 #include <stdio.h>
26006 #include <stdlib.h>
26007 int
26008 main ()
26009 {
26010
26011   FILE *f = fopen ("conftest.val", "w");
26012   if (! f)
26013     exit (1);
26014   if (((long) (sizeof (long))) < 0)
26015     {
26016       long i = longval ();
26017       if (i != ((long) (sizeof (long))))
26018         exit (1);
26019       fprintf (f, "%ld\n", i);
26020     }
26021   else
26022     {
26023       unsigned long i = ulongval ();
26024       if (i != ((long) (sizeof (long))))
26025         exit (1);
26026       fprintf (f, "%lu\n", i);
26027     }
26028   exit (ferror (f) || fclose (f) != 0);
26029
26030   ;
26031   return 0;
26032 }
26033 _ACEOF
26034 rm -f conftest$ac_exeext
26035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26036   (eval $ac_link) 2>&5
26037   ac_status=$?
26038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041   (eval $ac_try) 2>&5
26042   ac_status=$?
26043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044   (exit $ac_status); }; }; then
26045   ac_cv_sizeof_long=`cat conftest.val`
26046 else
26047   echo "$as_me: program exited with status $ac_status" >&5
26048 echo "$as_me: failed program was:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26050
26051 ( exit $ac_status )
26052 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26053 See \`config.log' for more details." >&5
26054 echo "$as_me: error: cannot compute sizeof (long), 77
26055 See \`config.log' for more details." >&2;}
26056    { (exit 1); exit 1; }; }
26057 fi
26058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26059 fi
26060 fi
26061 rm -f conftest.val
26062 else
26063   ac_cv_sizeof_long=0
26064 fi
26065 fi
26066 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26067 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
26068 cat >>confdefs.h <<_ACEOF
26069 #define SIZEOF_LONG $ac_cv_sizeof_long
26070 _ACEOF
26071
26072
26073         echo "$as_me:$LINENO: checking for uniquely sized long" >&5
26074 echo $ECHO_N "checking for uniquely sized long... $ECHO_C" >&6
26075 if test "${ccvs_cv_unique_int_type_long+set}" = set; then
26076   echo $ECHO_N "(cached) $ECHO_C" >&6
26077 else
26078   if set |grep ^ccvs_cv_unique_int_type_ \
26079                         |grep "($ac_cv_sizeof_long)" >/dev/null ; then
26080                         ccvs_cv_unique_int_type_long=no
26081                 else
26082                         ccvs_cv_unique_int_type_long=yes\($ac_cv_sizeof_long\)
26083                 fi
26084 fi
26085 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long" >&5
26086 echo "${ECHO_T}$ccvs_cv_unique_int_type_long" >&6
26087         if test $ccvs_cv_unique_int_type_long != no ; then
26088
26089 cat >>confdefs.h <<\_ACEOF
26090 #define UNIQUE_INT_TYPE_LONG 1
26091 _ACEOF
26092
26093         fi
26094         if test $ac_cv_type_long_long != no; then
26095                 echo "$as_me:$LINENO: checking for long long" >&5
26096 echo $ECHO_N "checking for long long... $ECHO_C" >&6
26097 if test "${ac_cv_type_long_long+set}" = set; then
26098   echo $ECHO_N "(cached) $ECHO_C" >&6
26099 else
26100   cat >conftest.$ac_ext <<_ACEOF
26101 /* confdefs.h.  */
26102 _ACEOF
26103 cat confdefs.h >>conftest.$ac_ext
26104 cat >>conftest.$ac_ext <<_ACEOF
26105 /* end confdefs.h.  */
26106 $ac_includes_default
26107 int
26108 main ()
26109 {
26110 if ((long long *) 0)
26111   return 0;
26112 if (sizeof (long long))
26113   return 0;
26114   ;
26115   return 0;
26116 }
26117 _ACEOF
26118 rm -f conftest.$ac_objext
26119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26120   (eval $ac_compile) 2>conftest.er1
26121   ac_status=$?
26122   grep -v '^ *+' conftest.er1 >conftest.err
26123   rm -f conftest.er1
26124   cat conftest.err >&5
26125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126   (exit $ac_status); } &&
26127          { ac_try='test -z "$ac_c_werror_flag"
26128                          || test ! -s conftest.err'
26129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26130   (eval $ac_try) 2>&5
26131   ac_status=$?
26132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133   (exit $ac_status); }; } &&
26134          { ac_try='test -s conftest.$ac_objext'
26135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26136   (eval $ac_try) 2>&5
26137   ac_status=$?
26138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139   (exit $ac_status); }; }; then
26140   ac_cv_type_long_long=yes
26141 else
26142   echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26144
26145 ac_cv_type_long_long=no
26146 fi
26147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26148 fi
26149 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
26150 echo "${ECHO_T}$ac_cv_type_long_long" >&6
26151
26152 echo "$as_me:$LINENO: checking size of long long" >&5
26153 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
26154 if test "${ac_cv_sizeof_long_long+set}" = set; then
26155   echo $ECHO_N "(cached) $ECHO_C" >&6
26156 else
26157   if test "$ac_cv_type_long_long" = yes; then
26158   # The cast to unsigned long works around a bug in the HP C Compiler
26159   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26160   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26161   # This bug is HP SR number 8606223364.
26162   if test "$cross_compiling" = yes; then
26163   # Depending upon the size, compute the lo and hi bounds.
26164 cat >conftest.$ac_ext <<_ACEOF
26165 /* confdefs.h.  */
26166 _ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h.  */
26170 $ac_includes_default
26171 int
26172 main ()
26173 {
26174 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
26175 test_array [0] = 0
26176
26177   ;
26178   return 0;
26179 }
26180 _ACEOF
26181 rm -f conftest.$ac_objext
26182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26183   (eval $ac_compile) 2>conftest.er1
26184   ac_status=$?
26185   grep -v '^ *+' conftest.er1 >conftest.err
26186   rm -f conftest.er1
26187   cat conftest.err >&5
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); } &&
26190          { ac_try='test -z "$ac_c_werror_flag"
26191                          || test ! -s conftest.err'
26192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193   (eval $ac_try) 2>&5
26194   ac_status=$?
26195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196   (exit $ac_status); }; } &&
26197          { ac_try='test -s conftest.$ac_objext'
26198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199   (eval $ac_try) 2>&5
26200   ac_status=$?
26201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202   (exit $ac_status); }; }; then
26203   ac_lo=0 ac_mid=0
26204   while :; do
26205     cat >conftest.$ac_ext <<_ACEOF
26206 /* confdefs.h.  */
26207 _ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h.  */
26211 $ac_includes_default
26212 int
26213 main ()
26214 {
26215 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
26216 test_array [0] = 0
26217
26218   ;
26219   return 0;
26220 }
26221 _ACEOF
26222 rm -f conftest.$ac_objext
26223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26224   (eval $ac_compile) 2>conftest.er1
26225   ac_status=$?
26226   grep -v '^ *+' conftest.er1 >conftest.err
26227   rm -f conftest.er1
26228   cat conftest.err >&5
26229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230   (exit $ac_status); } &&
26231          { ac_try='test -z "$ac_c_werror_flag"
26232                          || test ! -s conftest.err'
26233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234   (eval $ac_try) 2>&5
26235   ac_status=$?
26236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237   (exit $ac_status); }; } &&
26238          { ac_try='test -s conftest.$ac_objext'
26239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26240   (eval $ac_try) 2>&5
26241   ac_status=$?
26242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243   (exit $ac_status); }; }; then
26244   ac_hi=$ac_mid; break
26245 else
26246   echo "$as_me: failed program was:" >&5
26247 sed 's/^/| /' conftest.$ac_ext >&5
26248
26249 ac_lo=`expr $ac_mid + 1`
26250                     if test $ac_lo -le $ac_mid; then
26251                       ac_lo= ac_hi=
26252                       break
26253                     fi
26254                     ac_mid=`expr 2 '*' $ac_mid + 1`
26255 fi
26256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26257   done
26258 else
26259   echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26261
26262 cat >conftest.$ac_ext <<_ACEOF
26263 /* confdefs.h.  */
26264 _ACEOF
26265 cat confdefs.h >>conftest.$ac_ext
26266 cat >>conftest.$ac_ext <<_ACEOF
26267 /* end confdefs.h.  */
26268 $ac_includes_default
26269 int
26270 main ()
26271 {
26272 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
26273 test_array [0] = 0
26274
26275   ;
26276   return 0;
26277 }
26278 _ACEOF
26279 rm -f conftest.$ac_objext
26280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26281   (eval $ac_compile) 2>conftest.er1
26282   ac_status=$?
26283   grep -v '^ *+' conftest.er1 >conftest.err
26284   rm -f conftest.er1
26285   cat conftest.err >&5
26286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287   (exit $ac_status); } &&
26288          { ac_try='test -z "$ac_c_werror_flag"
26289                          || test ! -s conftest.err'
26290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291   (eval $ac_try) 2>&5
26292   ac_status=$?
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); }; } &&
26295          { ac_try='test -s conftest.$ac_objext'
26296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297   (eval $ac_try) 2>&5
26298   ac_status=$?
26299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300   (exit $ac_status); }; }; then
26301   ac_hi=-1 ac_mid=-1
26302   while :; do
26303     cat >conftest.$ac_ext <<_ACEOF
26304 /* confdefs.h.  */
26305 _ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h.  */
26309 $ac_includes_default
26310 int
26311 main ()
26312 {
26313 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
26314 test_array [0] = 0
26315
26316   ;
26317   return 0;
26318 }
26319 _ACEOF
26320 rm -f conftest.$ac_objext
26321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26322   (eval $ac_compile) 2>conftest.er1
26323   ac_status=$?
26324   grep -v '^ *+' conftest.er1 >conftest.err
26325   rm -f conftest.er1
26326   cat conftest.err >&5
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); } &&
26329          { ac_try='test -z "$ac_c_werror_flag"
26330                          || test ! -s conftest.err'
26331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26332   (eval $ac_try) 2>&5
26333   ac_status=$?
26334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335   (exit $ac_status); }; } &&
26336          { ac_try='test -s conftest.$ac_objext'
26337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338   (eval $ac_try) 2>&5
26339   ac_status=$?
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); }; }; then
26342   ac_lo=$ac_mid; break
26343 else
26344   echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26346
26347 ac_hi=`expr '(' $ac_mid ')' - 1`
26348                        if test $ac_mid -le $ac_hi; then
26349                          ac_lo= ac_hi=
26350                          break
26351                        fi
26352                        ac_mid=`expr 2 '*' $ac_mid`
26353 fi
26354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26355   done
26356 else
26357   echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26359
26360 ac_lo= ac_hi=
26361 fi
26362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26363 fi
26364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26365 # Binary search between lo and hi bounds.
26366 while test "x$ac_lo" != "x$ac_hi"; do
26367   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26368   cat >conftest.$ac_ext <<_ACEOF
26369 /* confdefs.h.  */
26370 _ACEOF
26371 cat confdefs.h >>conftest.$ac_ext
26372 cat >>conftest.$ac_ext <<_ACEOF
26373 /* end confdefs.h.  */
26374 $ac_includes_default
26375 int
26376 main ()
26377 {
26378 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
26379 test_array [0] = 0
26380
26381   ;
26382   return 0;
26383 }
26384 _ACEOF
26385 rm -f conftest.$ac_objext
26386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26387   (eval $ac_compile) 2>conftest.er1
26388   ac_status=$?
26389   grep -v '^ *+' conftest.er1 >conftest.err
26390   rm -f conftest.er1
26391   cat conftest.err >&5
26392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393   (exit $ac_status); } &&
26394          { ac_try='test -z "$ac_c_werror_flag"
26395                          || test ! -s conftest.err'
26396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26397   (eval $ac_try) 2>&5
26398   ac_status=$?
26399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400   (exit $ac_status); }; } &&
26401          { ac_try='test -s conftest.$ac_objext'
26402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403   (eval $ac_try) 2>&5
26404   ac_status=$?
26405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406   (exit $ac_status); }; }; then
26407   ac_hi=$ac_mid
26408 else
26409   echo "$as_me: failed program was:" >&5
26410 sed 's/^/| /' conftest.$ac_ext >&5
26411
26412 ac_lo=`expr '(' $ac_mid ')' + 1`
26413 fi
26414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26415 done
26416 case $ac_lo in
26417 ?*) ac_cv_sizeof_long_long=$ac_lo;;
26418 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
26419 See \`config.log' for more details." >&5
26420 echo "$as_me: error: cannot compute sizeof (long long), 77
26421 See \`config.log' for more details." >&2;}
26422    { (exit 1); exit 1; }; } ;;
26423 esac
26424 else
26425   if test "$cross_compiling" = yes; then
26426   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26427 See \`config.log' for more details." >&5
26428 echo "$as_me: error: cannot run test program while cross compiling
26429 See \`config.log' for more details." >&2;}
26430    { (exit 1); exit 1; }; }
26431 else
26432   cat >conftest.$ac_ext <<_ACEOF
26433 /* confdefs.h.  */
26434 _ACEOF
26435 cat confdefs.h >>conftest.$ac_ext
26436 cat >>conftest.$ac_ext <<_ACEOF
26437 /* end confdefs.h.  */
26438 $ac_includes_default
26439 long longval () { return (long) (sizeof (long long)); }
26440 unsigned long ulongval () { return (long) (sizeof (long long)); }
26441 #include <stdio.h>
26442 #include <stdlib.h>
26443 int
26444 main ()
26445 {
26446
26447   FILE *f = fopen ("conftest.val", "w");
26448   if (! f)
26449     exit (1);
26450   if (((long) (sizeof (long long))) < 0)
26451     {
26452       long i = longval ();
26453       if (i != ((long) (sizeof (long long))))
26454         exit (1);
26455       fprintf (f, "%ld\n", i);
26456     }
26457   else
26458     {
26459       unsigned long i = ulongval ();
26460       if (i != ((long) (sizeof (long long))))
26461         exit (1);
26462       fprintf (f, "%lu\n", i);
26463     }
26464   exit (ferror (f) || fclose (f) != 0);
26465
26466   ;
26467   return 0;
26468 }
26469 _ACEOF
26470 rm -f conftest$ac_exeext
26471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26472   (eval $ac_link) 2>&5
26473   ac_status=$?
26474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26477   (eval $ac_try) 2>&5
26478   ac_status=$?
26479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480   (exit $ac_status); }; }; then
26481   ac_cv_sizeof_long_long=`cat conftest.val`
26482 else
26483   echo "$as_me: program exited with status $ac_status" >&5
26484 echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26486
26487 ( exit $ac_status )
26488 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
26489 See \`config.log' for more details." >&5
26490 echo "$as_me: error: cannot compute sizeof (long long), 77
26491 See \`config.log' for more details." >&2;}
26492    { (exit 1); exit 1; }; }
26493 fi
26494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26495 fi
26496 fi
26497 rm -f conftest.val
26498 else
26499   ac_cv_sizeof_long_long=0
26500 fi
26501 fi
26502 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
26503 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
26504 cat >>confdefs.h <<_ACEOF
26505 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
26506 _ACEOF
26507
26508
26509                 echo "$as_me:$LINENO: checking for uniquely sized long long" >&5
26510 echo $ECHO_N "checking for uniquely sized long long... $ECHO_C" >&6
26511 if test "${ccvs_cv_unique_int_type_long_long+set}" = set; then
26512   echo $ECHO_N "(cached) $ECHO_C" >&6
26513 else
26514   if set |grep ^ccvs_cv_unique_int_type_ \
26515                                 |grep "($ac_cv_sizeof_long_long)" >/dev/null ; then
26516                                 ccvs_cv_unique_int_type_long_long=no
26517                         else
26518                                 ccvs_cv_unique_int_type_long_long=yes\($ac_cv_sizeof_long_long\)
26519                         fi
26520 fi
26521 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_long_long" >&5
26522 echo "${ECHO_T}$ccvs_cv_unique_int_type_long_long" >&6
26523                 if test $ccvs_cv_unique_int_type_long_long != no ; then
26524
26525 cat >>confdefs.h <<\_ACEOF
26526 #define UNIQUE_INT_TYPE_LONG_LONG 1
26527 _ACEOF
26528
26529                 fi
26530         fi
26531         echo "$as_me:$LINENO: checking for size_t" >&5
26532 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26533 if test "${ac_cv_type_size_t+set}" = set; then
26534   echo $ECHO_N "(cached) $ECHO_C" >&6
26535 else
26536   cat >conftest.$ac_ext <<_ACEOF
26537 /* confdefs.h.  */
26538 _ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h.  */
26542 $ac_includes_default
26543 int
26544 main ()
26545 {
26546 if ((size_t *) 0)
26547   return 0;
26548 if (sizeof (size_t))
26549   return 0;
26550   ;
26551   return 0;
26552 }
26553 _ACEOF
26554 rm -f conftest.$ac_objext
26555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26556   (eval $ac_compile) 2>conftest.er1
26557   ac_status=$?
26558   grep -v '^ *+' conftest.er1 >conftest.err
26559   rm -f conftest.er1
26560   cat conftest.err >&5
26561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562   (exit $ac_status); } &&
26563          { ac_try='test -z "$ac_c_werror_flag"
26564                          || test ! -s conftest.err'
26565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566   (eval $ac_try) 2>&5
26567   ac_status=$?
26568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569   (exit $ac_status); }; } &&
26570          { ac_try='test -s conftest.$ac_objext'
26571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572   (eval $ac_try) 2>&5
26573   ac_status=$?
26574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575   (exit $ac_status); }; }; then
26576   ac_cv_type_size_t=yes
26577 else
26578   echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26580
26581 ac_cv_type_size_t=no
26582 fi
26583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26584 fi
26585 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26586 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26587
26588 echo "$as_me:$LINENO: checking size of size_t" >&5
26589 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
26590 if test "${ac_cv_sizeof_size_t+set}" = set; then
26591   echo $ECHO_N "(cached) $ECHO_C" >&6
26592 else
26593   if test "$ac_cv_type_size_t" = yes; then
26594   # The cast to unsigned long works around a bug in the HP C Compiler
26595   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26596   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26597   # This bug is HP SR number 8606223364.
26598   if test "$cross_compiling" = yes; then
26599   # Depending upon the size, compute the lo and hi bounds.
26600 cat >conftest.$ac_ext <<_ACEOF
26601 /* confdefs.h.  */
26602 _ACEOF
26603 cat confdefs.h >>conftest.$ac_ext
26604 cat >>conftest.$ac_ext <<_ACEOF
26605 /* end confdefs.h.  */
26606 $ac_includes_default
26607 int
26608 main ()
26609 {
26610 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
26611 test_array [0] = 0
26612
26613   ;
26614   return 0;
26615 }
26616 _ACEOF
26617 rm -f conftest.$ac_objext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26619   (eval $ac_compile) 2>conftest.er1
26620   ac_status=$?
26621   grep -v '^ *+' conftest.er1 >conftest.err
26622   rm -f conftest.er1
26623   cat conftest.err >&5
26624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625   (exit $ac_status); } &&
26626          { ac_try='test -z "$ac_c_werror_flag"
26627                          || test ! -s conftest.err'
26628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629   (eval $ac_try) 2>&5
26630   ac_status=$?
26631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632   (exit $ac_status); }; } &&
26633          { ac_try='test -s conftest.$ac_objext'
26634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635   (eval $ac_try) 2>&5
26636   ac_status=$?
26637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638   (exit $ac_status); }; }; then
26639   ac_lo=0 ac_mid=0
26640   while :; do
26641     cat >conftest.$ac_ext <<_ACEOF
26642 /* confdefs.h.  */
26643 _ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h.  */
26647 $ac_includes_default
26648 int
26649 main ()
26650 {
26651 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
26652 test_array [0] = 0
26653
26654   ;
26655   return 0;
26656 }
26657 _ACEOF
26658 rm -f conftest.$ac_objext
26659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26660   (eval $ac_compile) 2>conftest.er1
26661   ac_status=$?
26662   grep -v '^ *+' conftest.er1 >conftest.err
26663   rm -f conftest.er1
26664   cat conftest.err >&5
26665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666   (exit $ac_status); } &&
26667          { ac_try='test -z "$ac_c_werror_flag"
26668                          || test ! -s conftest.err'
26669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26670   (eval $ac_try) 2>&5
26671   ac_status=$?
26672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673   (exit $ac_status); }; } &&
26674          { ac_try='test -s conftest.$ac_objext'
26675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26676   (eval $ac_try) 2>&5
26677   ac_status=$?
26678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679   (exit $ac_status); }; }; then
26680   ac_hi=$ac_mid; break
26681 else
26682   echo "$as_me: failed program was:" >&5
26683 sed 's/^/| /' conftest.$ac_ext >&5
26684
26685 ac_lo=`expr $ac_mid + 1`
26686                     if test $ac_lo -le $ac_mid; then
26687                       ac_lo= ac_hi=
26688                       break
26689                     fi
26690                     ac_mid=`expr 2 '*' $ac_mid + 1`
26691 fi
26692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26693   done
26694 else
26695   echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26697
26698 cat >conftest.$ac_ext <<_ACEOF
26699 /* confdefs.h.  */
26700 _ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h.  */
26704 $ac_includes_default
26705 int
26706 main ()
26707 {
26708 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
26709 test_array [0] = 0
26710
26711   ;
26712   return 0;
26713 }
26714 _ACEOF
26715 rm -f conftest.$ac_objext
26716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26717   (eval $ac_compile) 2>conftest.er1
26718   ac_status=$?
26719   grep -v '^ *+' conftest.er1 >conftest.err
26720   rm -f conftest.er1
26721   cat conftest.err >&5
26722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723   (exit $ac_status); } &&
26724          { ac_try='test -z "$ac_c_werror_flag"
26725                          || test ! -s conftest.err'
26726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26727   (eval $ac_try) 2>&5
26728   ac_status=$?
26729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730   (exit $ac_status); }; } &&
26731          { ac_try='test -s conftest.$ac_objext'
26732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26733   (eval $ac_try) 2>&5
26734   ac_status=$?
26735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736   (exit $ac_status); }; }; then
26737   ac_hi=-1 ac_mid=-1
26738   while :; do
26739     cat >conftest.$ac_ext <<_ACEOF
26740 /* confdefs.h.  */
26741 _ACEOF
26742 cat confdefs.h >>conftest.$ac_ext
26743 cat >>conftest.$ac_ext <<_ACEOF
26744 /* end confdefs.h.  */
26745 $ac_includes_default
26746 int
26747 main ()
26748 {
26749 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
26750 test_array [0] = 0
26751
26752   ;
26753   return 0;
26754 }
26755 _ACEOF
26756 rm -f conftest.$ac_objext
26757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26758   (eval $ac_compile) 2>conftest.er1
26759   ac_status=$?
26760   grep -v '^ *+' conftest.er1 >conftest.err
26761   rm -f conftest.er1
26762   cat conftest.err >&5
26763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764   (exit $ac_status); } &&
26765          { ac_try='test -z "$ac_c_werror_flag"
26766                          || test ! -s conftest.err'
26767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26768   (eval $ac_try) 2>&5
26769   ac_status=$?
26770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771   (exit $ac_status); }; } &&
26772          { ac_try='test -s conftest.$ac_objext'
26773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26774   (eval $ac_try) 2>&5
26775   ac_status=$?
26776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777   (exit $ac_status); }; }; then
26778   ac_lo=$ac_mid; break
26779 else
26780   echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26782
26783 ac_hi=`expr '(' $ac_mid ')' - 1`
26784                        if test $ac_mid -le $ac_hi; then
26785                          ac_lo= ac_hi=
26786                          break
26787                        fi
26788                        ac_mid=`expr 2 '*' $ac_mid`
26789 fi
26790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26791   done
26792 else
26793   echo "$as_me: failed program was:" >&5
26794 sed 's/^/| /' conftest.$ac_ext >&5
26795
26796 ac_lo= ac_hi=
26797 fi
26798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26799 fi
26800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26801 # Binary search between lo and hi bounds.
26802 while test "x$ac_lo" != "x$ac_hi"; do
26803   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26804   cat >conftest.$ac_ext <<_ACEOF
26805 /* confdefs.h.  */
26806 _ACEOF
26807 cat confdefs.h >>conftest.$ac_ext
26808 cat >>conftest.$ac_ext <<_ACEOF
26809 /* end confdefs.h.  */
26810 $ac_includes_default
26811 int
26812 main ()
26813 {
26814 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
26815 test_array [0] = 0
26816
26817   ;
26818   return 0;
26819 }
26820 _ACEOF
26821 rm -f conftest.$ac_objext
26822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26823   (eval $ac_compile) 2>conftest.er1
26824   ac_status=$?
26825   grep -v '^ *+' conftest.er1 >conftest.err
26826   rm -f conftest.er1
26827   cat conftest.err >&5
26828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); } &&
26830          { ac_try='test -z "$ac_c_werror_flag"
26831                          || test ! -s conftest.err'
26832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833   (eval $ac_try) 2>&5
26834   ac_status=$?
26835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836   (exit $ac_status); }; } &&
26837          { ac_try='test -s conftest.$ac_objext'
26838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839   (eval $ac_try) 2>&5
26840   ac_status=$?
26841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842   (exit $ac_status); }; }; then
26843   ac_hi=$ac_mid
26844 else
26845   echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26847
26848 ac_lo=`expr '(' $ac_mid ')' + 1`
26849 fi
26850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26851 done
26852 case $ac_lo in
26853 ?*) ac_cv_sizeof_size_t=$ac_lo;;
26854 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
26855 See \`config.log' for more details." >&5
26856 echo "$as_me: error: cannot compute sizeof (size_t), 77
26857 See \`config.log' for more details." >&2;}
26858    { (exit 1); exit 1; }; } ;;
26859 esac
26860 else
26861   if test "$cross_compiling" = yes; then
26862   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26863 See \`config.log' for more details." >&5
26864 echo "$as_me: error: cannot run test program while cross compiling
26865 See \`config.log' for more details." >&2;}
26866    { (exit 1); exit 1; }; }
26867 else
26868   cat >conftest.$ac_ext <<_ACEOF
26869 /* confdefs.h.  */
26870 _ACEOF
26871 cat confdefs.h >>conftest.$ac_ext
26872 cat >>conftest.$ac_ext <<_ACEOF
26873 /* end confdefs.h.  */
26874 $ac_includes_default
26875 long longval () { return (long) (sizeof (size_t)); }
26876 unsigned long ulongval () { return (long) (sizeof (size_t)); }
26877 #include <stdio.h>
26878 #include <stdlib.h>
26879 int
26880 main ()
26881 {
26882
26883   FILE *f = fopen ("conftest.val", "w");
26884   if (! f)
26885     exit (1);
26886   if (((long) (sizeof (size_t))) < 0)
26887     {
26888       long i = longval ();
26889       if (i != ((long) (sizeof (size_t))))
26890         exit (1);
26891       fprintf (f, "%ld\n", i);
26892     }
26893   else
26894     {
26895       unsigned long i = ulongval ();
26896       if (i != ((long) (sizeof (size_t))))
26897         exit (1);
26898       fprintf (f, "%lu\n", i);
26899     }
26900   exit (ferror (f) || fclose (f) != 0);
26901
26902   ;
26903   return 0;
26904 }
26905 _ACEOF
26906 rm -f conftest$ac_exeext
26907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26908   (eval $ac_link) 2>&5
26909   ac_status=$?
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26913   (eval $ac_try) 2>&5
26914   ac_status=$?
26915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916   (exit $ac_status); }; }; then
26917   ac_cv_sizeof_size_t=`cat conftest.val`
26918 else
26919   echo "$as_me: program exited with status $ac_status" >&5
26920 echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26922
26923 ( exit $ac_status )
26924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
26925 See \`config.log' for more details." >&5
26926 echo "$as_me: error: cannot compute sizeof (size_t), 77
26927 See \`config.log' for more details." >&2;}
26928    { (exit 1); exit 1; }; }
26929 fi
26930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26931 fi
26932 fi
26933 rm -f conftest.val
26934 else
26935   ac_cv_sizeof_size_t=0
26936 fi
26937 fi
26938 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
26939 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
26940 cat >>confdefs.h <<_ACEOF
26941 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
26942 _ACEOF
26943
26944
26945         echo "$as_me:$LINENO: checking for uniquely sized size_t" >&5
26946 echo $ECHO_N "checking for uniquely sized size_t... $ECHO_C" >&6
26947 if test "${ccvs_cv_unique_int_type_size_t+set}" = set; then
26948   echo $ECHO_N "(cached) $ECHO_C" >&6
26949 else
26950   if set |grep ^ccvs_cv_unique_int_type_ \
26951                         |grep "($ac_cv_sizeof_size_t)" >/dev/null ; then
26952                         ccvs_cv_unique_int_type_size_t=no
26953                 else
26954                         ccvs_cv_unique_int_type_size_t=yes\($ac_cv_sizeof_size_t\)
26955                 fi
26956 fi
26957 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_size_t" >&5
26958 echo "${ECHO_T}$ccvs_cv_unique_int_type_size_t" >&6
26959         if test $ccvs_cv_unique_int_type_size_t != no ; then
26960
26961 cat >>confdefs.h <<\_ACEOF
26962 #define UNIQUE_INT_TYPE_SIZE_T 1
26963 _ACEOF
26964
26965         fi
26966         echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26967 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
26968 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26969   echo $ECHO_N "(cached) $ECHO_C" >&6
26970 else
26971   cat >conftest.$ac_ext <<_ACEOF
26972 /* confdefs.h.  */
26973 _ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h.  */
26977 $ac_includes_default
26978 int
26979 main ()
26980 {
26981 if ((ptrdiff_t *) 0)
26982   return 0;
26983 if (sizeof (ptrdiff_t))
26984   return 0;
26985   ;
26986   return 0;
26987 }
26988 _ACEOF
26989 rm -f conftest.$ac_objext
26990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26991   (eval $ac_compile) 2>conftest.er1
26992   ac_status=$?
26993   grep -v '^ *+' conftest.er1 >conftest.err
26994   rm -f conftest.er1
26995   cat conftest.err >&5
26996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997   (exit $ac_status); } &&
26998          { ac_try='test -z "$ac_c_werror_flag"
26999                          || test ! -s conftest.err'
27000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27001   (eval $ac_try) 2>&5
27002   ac_status=$?
27003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004   (exit $ac_status); }; } &&
27005          { ac_try='test -s conftest.$ac_objext'
27006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27007   (eval $ac_try) 2>&5
27008   ac_status=$?
27009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010   (exit $ac_status); }; }; then
27011   ac_cv_type_ptrdiff_t=yes
27012 else
27013   echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27015
27016 ac_cv_type_ptrdiff_t=no
27017 fi
27018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27019 fi
27020 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
27021 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
27022
27023 echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
27024 echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6
27025 if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
27026   echo $ECHO_N "(cached) $ECHO_C" >&6
27027 else
27028   if test "$ac_cv_type_ptrdiff_t" = yes; then
27029   # The cast to unsigned long works around a bug in the HP C Compiler
27030   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27031   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27032   # This bug is HP SR number 8606223364.
27033   if test "$cross_compiling" = yes; then
27034   # Depending upon the size, compute the lo and hi bounds.
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 $ac_includes_default
27042 int
27043 main ()
27044 {
27045 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= 0)];
27046 test_array [0] = 0
27047
27048   ;
27049   return 0;
27050 }
27051 _ACEOF
27052 rm -f conftest.$ac_objext
27053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27054   (eval $ac_compile) 2>conftest.er1
27055   ac_status=$?
27056   grep -v '^ *+' conftest.er1 >conftest.err
27057   rm -f conftest.er1
27058   cat conftest.err >&5
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); } &&
27061          { ac_try='test -z "$ac_c_werror_flag"
27062                          || test ! -s conftest.err'
27063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27064   (eval $ac_try) 2>&5
27065   ac_status=$?
27066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067   (exit $ac_status); }; } &&
27068          { ac_try='test -s conftest.$ac_objext'
27069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070   (eval $ac_try) 2>&5
27071   ac_status=$?
27072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073   (exit $ac_status); }; }; then
27074   ac_lo=0 ac_mid=0
27075   while :; do
27076     cat >conftest.$ac_ext <<_ACEOF
27077 /* confdefs.h.  */
27078 _ACEOF
27079 cat confdefs.h >>conftest.$ac_ext
27080 cat >>conftest.$ac_ext <<_ACEOF
27081 /* end confdefs.h.  */
27082 $ac_includes_default
27083 int
27084 main ()
27085 {
27086 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
27087 test_array [0] = 0
27088
27089   ;
27090   return 0;
27091 }
27092 _ACEOF
27093 rm -f conftest.$ac_objext
27094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27095   (eval $ac_compile) 2>conftest.er1
27096   ac_status=$?
27097   grep -v '^ *+' conftest.er1 >conftest.err
27098   rm -f conftest.er1
27099   cat conftest.err >&5
27100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101   (exit $ac_status); } &&
27102          { ac_try='test -z "$ac_c_werror_flag"
27103                          || test ! -s conftest.err'
27104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27105   (eval $ac_try) 2>&5
27106   ac_status=$?
27107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108   (exit $ac_status); }; } &&
27109          { ac_try='test -s conftest.$ac_objext'
27110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27111   (eval $ac_try) 2>&5
27112   ac_status=$?
27113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114   (exit $ac_status); }; }; then
27115   ac_hi=$ac_mid; break
27116 else
27117   echo "$as_me: failed program was:" >&5
27118 sed 's/^/| /' conftest.$ac_ext >&5
27119
27120 ac_lo=`expr $ac_mid + 1`
27121                     if test $ac_lo -le $ac_mid; then
27122                       ac_lo= ac_hi=
27123                       break
27124                     fi
27125                     ac_mid=`expr 2 '*' $ac_mid + 1`
27126 fi
27127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27128   done
27129 else
27130   echo "$as_me: failed program was:" >&5
27131 sed 's/^/| /' conftest.$ac_ext >&5
27132
27133 cat >conftest.$ac_ext <<_ACEOF
27134 /* confdefs.h.  */
27135 _ACEOF
27136 cat confdefs.h >>conftest.$ac_ext
27137 cat >>conftest.$ac_ext <<_ACEOF
27138 /* end confdefs.h.  */
27139 $ac_includes_default
27140 int
27141 main ()
27142 {
27143 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) < 0)];
27144 test_array [0] = 0
27145
27146   ;
27147   return 0;
27148 }
27149 _ACEOF
27150 rm -f conftest.$ac_objext
27151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27152   (eval $ac_compile) 2>conftest.er1
27153   ac_status=$?
27154   grep -v '^ *+' conftest.er1 >conftest.err
27155   rm -f conftest.er1
27156   cat conftest.err >&5
27157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158   (exit $ac_status); } &&
27159          { ac_try='test -z "$ac_c_werror_flag"
27160                          || test ! -s conftest.err'
27161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27162   (eval $ac_try) 2>&5
27163   ac_status=$?
27164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165   (exit $ac_status); }; } &&
27166          { ac_try='test -s conftest.$ac_objext'
27167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27168   (eval $ac_try) 2>&5
27169   ac_status=$?
27170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171   (exit $ac_status); }; }; then
27172   ac_hi=-1 ac_mid=-1
27173   while :; do
27174     cat >conftest.$ac_ext <<_ACEOF
27175 /* confdefs.h.  */
27176 _ACEOF
27177 cat confdefs.h >>conftest.$ac_ext
27178 cat >>conftest.$ac_ext <<_ACEOF
27179 /* end confdefs.h.  */
27180 $ac_includes_default
27181 int
27182 main ()
27183 {
27184 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= $ac_mid)];
27185 test_array [0] = 0
27186
27187   ;
27188   return 0;
27189 }
27190 _ACEOF
27191 rm -f conftest.$ac_objext
27192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27193   (eval $ac_compile) 2>conftest.er1
27194   ac_status=$?
27195   grep -v '^ *+' conftest.er1 >conftest.err
27196   rm -f conftest.er1
27197   cat conftest.err >&5
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); } &&
27200          { ac_try='test -z "$ac_c_werror_flag"
27201                          || test ! -s conftest.err'
27202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203   (eval $ac_try) 2>&5
27204   ac_status=$?
27205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206   (exit $ac_status); }; } &&
27207          { ac_try='test -s conftest.$ac_objext'
27208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27209   (eval $ac_try) 2>&5
27210   ac_status=$?
27211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212   (exit $ac_status); }; }; then
27213   ac_lo=$ac_mid; break
27214 else
27215   echo "$as_me: failed program was:" >&5
27216 sed 's/^/| /' conftest.$ac_ext >&5
27217
27218 ac_hi=`expr '(' $ac_mid ')' - 1`
27219                        if test $ac_mid -le $ac_hi; then
27220                          ac_lo= ac_hi=
27221                          break
27222                        fi
27223                        ac_mid=`expr 2 '*' $ac_mid`
27224 fi
27225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27226   done
27227 else
27228   echo "$as_me: failed program was:" >&5
27229 sed 's/^/| /' conftest.$ac_ext >&5
27230
27231 ac_lo= ac_hi=
27232 fi
27233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27234 fi
27235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27236 # Binary search between lo and hi bounds.
27237 while test "x$ac_lo" != "x$ac_hi"; do
27238   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27239   cat >conftest.$ac_ext <<_ACEOF
27240 /* confdefs.h.  */
27241 _ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h.  */
27245 $ac_includes_default
27246 int
27247 main ()
27248 {
27249 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
27250 test_array [0] = 0
27251
27252   ;
27253   return 0;
27254 }
27255 _ACEOF
27256 rm -f conftest.$ac_objext
27257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27258   (eval $ac_compile) 2>conftest.er1
27259   ac_status=$?
27260   grep -v '^ *+' conftest.er1 >conftest.err
27261   rm -f conftest.er1
27262   cat conftest.err >&5
27263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264   (exit $ac_status); } &&
27265          { ac_try='test -z "$ac_c_werror_flag"
27266                          || test ! -s conftest.err'
27267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268   (eval $ac_try) 2>&5
27269   ac_status=$?
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); }; } &&
27272          { ac_try='test -s conftest.$ac_objext'
27273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27274   (eval $ac_try) 2>&5
27275   ac_status=$?
27276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277   (exit $ac_status); }; }; then
27278   ac_hi=$ac_mid
27279 else
27280   echo "$as_me: failed program was:" >&5
27281 sed 's/^/| /' conftest.$ac_ext >&5
27282
27283 ac_lo=`expr '(' $ac_mid ')' + 1`
27284 fi
27285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27286 done
27287 case $ac_lo in
27288 ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
27289 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
27290 See \`config.log' for more details." >&5
27291 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
27292 See \`config.log' for more details." >&2;}
27293    { (exit 1); exit 1; }; } ;;
27294 esac
27295 else
27296   if test "$cross_compiling" = yes; then
27297   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27298 See \`config.log' for more details." >&5
27299 echo "$as_me: error: cannot run test program while cross compiling
27300 See \`config.log' for more details." >&2;}
27301    { (exit 1); exit 1; }; }
27302 else
27303   cat >conftest.$ac_ext <<_ACEOF
27304 /* confdefs.h.  */
27305 _ACEOF
27306 cat confdefs.h >>conftest.$ac_ext
27307 cat >>conftest.$ac_ext <<_ACEOF
27308 /* end confdefs.h.  */
27309 $ac_includes_default
27310 long longval () { return (long) (sizeof (ptrdiff_t)); }
27311 unsigned long ulongval () { return (long) (sizeof (ptrdiff_t)); }
27312 #include <stdio.h>
27313 #include <stdlib.h>
27314 int
27315 main ()
27316 {
27317
27318   FILE *f = fopen ("conftest.val", "w");
27319   if (! f)
27320     exit (1);
27321   if (((long) (sizeof (ptrdiff_t))) < 0)
27322     {
27323       long i = longval ();
27324       if (i != ((long) (sizeof (ptrdiff_t))))
27325         exit (1);
27326       fprintf (f, "%ld\n", i);
27327     }
27328   else
27329     {
27330       unsigned long i = ulongval ();
27331       if (i != ((long) (sizeof (ptrdiff_t))))
27332         exit (1);
27333       fprintf (f, "%lu\n", i);
27334     }
27335   exit (ferror (f) || fclose (f) != 0);
27336
27337   ;
27338   return 0;
27339 }
27340 _ACEOF
27341 rm -f conftest$ac_exeext
27342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27343   (eval $ac_link) 2>&5
27344   ac_status=$?
27345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27348   (eval $ac_try) 2>&5
27349   ac_status=$?
27350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351   (exit $ac_status); }; }; then
27352   ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
27353 else
27354   echo "$as_me: program exited with status $ac_status" >&5
27355 echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27357
27358 ( exit $ac_status )
27359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
27360 See \`config.log' for more details." >&5
27361 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
27362 See \`config.log' for more details." >&2;}
27363    { (exit 1); exit 1; }; }
27364 fi
27365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27366 fi
27367 fi
27368 rm -f conftest.val
27369 else
27370   ac_cv_sizeof_ptrdiff_t=0
27371 fi
27372 fi
27373 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
27374 echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6
27375 cat >>confdefs.h <<_ACEOF
27376 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
27377 _ACEOF
27378
27379
27380         echo "$as_me:$LINENO: checking for uniquely sized ptrdiff_t" >&5
27381 echo $ECHO_N "checking for uniquely sized ptrdiff_t... $ECHO_C" >&6
27382 if test "${ccvs_cv_unique_int_type_ptrdiff_t+set}" = set; then
27383   echo $ECHO_N "(cached) $ECHO_C" >&6
27384 else
27385   if set |grep ^ccvs_cv_unique_int_type_ \
27386                         |grep "($ac_cv_sizeof_ptrdiff_t)" >/dev/null ; then
27387                         ccvs_cv_unique_int_type_ptrdiff_t=no
27388                 else
27389                         ccvs_cv_unique_int_type_ptrdiff_t=yes\($ac_cv_sizeof_ptrdiff_t\)
27390                 fi
27391 fi
27392 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_ptrdiff_t" >&5
27393 echo "${ECHO_T}$ccvs_cv_unique_int_type_ptrdiff_t" >&6
27394         if test $ccvs_cv_unique_int_type_ptrdiff_t != no ; then
27395
27396 cat >>confdefs.h <<\_ACEOF
27397 #define UNIQUE_INT_TYPE_PTRDIFF_T 1
27398 _ACEOF
27399
27400         fi
27401         if test $gt_cv_c_wint_t != no; then
27402                 echo "$as_me:$LINENO: checking for wint_t" >&5
27403 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
27404 if test "${ac_cv_type_wint_t+set}" = set; then
27405   echo $ECHO_N "(cached) $ECHO_C" >&6
27406 else
27407   cat >conftest.$ac_ext <<_ACEOF
27408 /* confdefs.h.  */
27409 _ACEOF
27410 cat confdefs.h >>conftest.$ac_ext
27411 cat >>conftest.$ac_ext <<_ACEOF
27412 /* end confdefs.h.  */
27413 #include <stdio.h>
27414 #include <wchar.h>
27415
27416
27417 int
27418 main ()
27419 {
27420 if ((wint_t *) 0)
27421   return 0;
27422 if (sizeof (wint_t))
27423   return 0;
27424   ;
27425   return 0;
27426 }
27427 _ACEOF
27428 rm -f conftest.$ac_objext
27429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27430   (eval $ac_compile) 2>conftest.er1
27431   ac_status=$?
27432   grep -v '^ *+' conftest.er1 >conftest.err
27433   rm -f conftest.er1
27434   cat conftest.err >&5
27435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436   (exit $ac_status); } &&
27437          { ac_try='test -z "$ac_c_werror_flag"
27438                          || test ! -s conftest.err'
27439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27440   (eval $ac_try) 2>&5
27441   ac_status=$?
27442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443   (exit $ac_status); }; } &&
27444          { ac_try='test -s conftest.$ac_objext'
27445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446   (eval $ac_try) 2>&5
27447   ac_status=$?
27448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449   (exit $ac_status); }; }; then
27450   ac_cv_type_wint_t=yes
27451 else
27452   echo "$as_me: failed program was:" >&5
27453 sed 's/^/| /' conftest.$ac_ext >&5
27454
27455 ac_cv_type_wint_t=no
27456 fi
27457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27458 fi
27459 echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
27460 echo "${ECHO_T}$ac_cv_type_wint_t" >&6
27461
27462 echo "$as_me:$LINENO: checking size of wint_t" >&5
27463 echo $ECHO_N "checking size of wint_t... $ECHO_C" >&6
27464 if test "${ac_cv_sizeof_wint_t+set}" = set; then
27465   echo $ECHO_N "(cached) $ECHO_C" >&6
27466 else
27467   if test "$ac_cv_type_wint_t" = yes; then
27468   # The cast to unsigned long works around a bug in the HP C Compiler
27469   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27470   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27471   # This bug is HP SR number 8606223364.
27472   if test "$cross_compiling" = yes; then
27473   # Depending upon the size, compute the lo and hi bounds.
27474 cat >conftest.$ac_ext <<_ACEOF
27475 /* confdefs.h.  */
27476 _ACEOF
27477 cat confdefs.h >>conftest.$ac_ext
27478 cat >>conftest.$ac_ext <<_ACEOF
27479 /* end confdefs.h.  */
27480 #include <stdio.h>
27481 #include <wchar.h>
27482
27483
27484 int
27485 main ()
27486 {
27487 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) >= 0)];
27488 test_array [0] = 0
27489
27490   ;
27491   return 0;
27492 }
27493 _ACEOF
27494 rm -f conftest.$ac_objext
27495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27496   (eval $ac_compile) 2>conftest.er1
27497   ac_status=$?
27498   grep -v '^ *+' conftest.er1 >conftest.err
27499   rm -f conftest.er1
27500   cat conftest.err >&5
27501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502   (exit $ac_status); } &&
27503          { ac_try='test -z "$ac_c_werror_flag"
27504                          || test ! -s conftest.err'
27505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27506   (eval $ac_try) 2>&5
27507   ac_status=$?
27508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509   (exit $ac_status); }; } &&
27510          { ac_try='test -s conftest.$ac_objext'
27511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27512   (eval $ac_try) 2>&5
27513   ac_status=$?
27514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515   (exit $ac_status); }; }; then
27516   ac_lo=0 ac_mid=0
27517   while :; do
27518     cat >conftest.$ac_ext <<_ACEOF
27519 /* confdefs.h.  */
27520 _ACEOF
27521 cat confdefs.h >>conftest.$ac_ext
27522 cat >>conftest.$ac_ext <<_ACEOF
27523 /* end confdefs.h.  */
27524 #include <stdio.h>
27525 #include <wchar.h>
27526
27527
27528 int
27529 main ()
27530 {
27531 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) <= $ac_mid)];
27532 test_array [0] = 0
27533
27534   ;
27535   return 0;
27536 }
27537 _ACEOF
27538 rm -f conftest.$ac_objext
27539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27540   (eval $ac_compile) 2>conftest.er1
27541   ac_status=$?
27542   grep -v '^ *+' conftest.er1 >conftest.err
27543   rm -f conftest.er1
27544   cat conftest.err >&5
27545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546   (exit $ac_status); } &&
27547          { ac_try='test -z "$ac_c_werror_flag"
27548                          || test ! -s conftest.err'
27549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550   (eval $ac_try) 2>&5
27551   ac_status=$?
27552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553   (exit $ac_status); }; } &&
27554          { ac_try='test -s conftest.$ac_objext'
27555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27556   (eval $ac_try) 2>&5
27557   ac_status=$?
27558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559   (exit $ac_status); }; }; then
27560   ac_hi=$ac_mid; break
27561 else
27562   echo "$as_me: failed program was:" >&5
27563 sed 's/^/| /' conftest.$ac_ext >&5
27564
27565 ac_lo=`expr $ac_mid + 1`
27566                     if test $ac_lo -le $ac_mid; then
27567                       ac_lo= ac_hi=
27568                       break
27569                     fi
27570                     ac_mid=`expr 2 '*' $ac_mid + 1`
27571 fi
27572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27573   done
27574 else
27575   echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27577
27578 cat >conftest.$ac_ext <<_ACEOF
27579 /* confdefs.h.  */
27580 _ACEOF
27581 cat confdefs.h >>conftest.$ac_ext
27582 cat >>conftest.$ac_ext <<_ACEOF
27583 /* end confdefs.h.  */
27584 #include <stdio.h>
27585 #include <wchar.h>
27586
27587
27588 int
27589 main ()
27590 {
27591 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) < 0)];
27592 test_array [0] = 0
27593
27594   ;
27595   return 0;
27596 }
27597 _ACEOF
27598 rm -f conftest.$ac_objext
27599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27600   (eval $ac_compile) 2>conftest.er1
27601   ac_status=$?
27602   grep -v '^ *+' conftest.er1 >conftest.err
27603   rm -f conftest.er1
27604   cat conftest.err >&5
27605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606   (exit $ac_status); } &&
27607          { ac_try='test -z "$ac_c_werror_flag"
27608                          || test ! -s conftest.err'
27609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27610   (eval $ac_try) 2>&5
27611   ac_status=$?
27612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613   (exit $ac_status); }; } &&
27614          { ac_try='test -s conftest.$ac_objext'
27615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27616   (eval $ac_try) 2>&5
27617   ac_status=$?
27618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619   (exit $ac_status); }; }; then
27620   ac_hi=-1 ac_mid=-1
27621   while :; do
27622     cat >conftest.$ac_ext <<_ACEOF
27623 /* confdefs.h.  */
27624 _ACEOF
27625 cat confdefs.h >>conftest.$ac_ext
27626 cat >>conftest.$ac_ext <<_ACEOF
27627 /* end confdefs.h.  */
27628 #include <stdio.h>
27629 #include <wchar.h>
27630
27631
27632 int
27633 main ()
27634 {
27635 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) >= $ac_mid)];
27636 test_array [0] = 0
27637
27638   ;
27639   return 0;
27640 }
27641 _ACEOF
27642 rm -f conftest.$ac_objext
27643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27644   (eval $ac_compile) 2>conftest.er1
27645   ac_status=$?
27646   grep -v '^ *+' conftest.er1 >conftest.err
27647   rm -f conftest.er1
27648   cat conftest.err >&5
27649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650   (exit $ac_status); } &&
27651          { ac_try='test -z "$ac_c_werror_flag"
27652                          || test ! -s conftest.err'
27653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654   (eval $ac_try) 2>&5
27655   ac_status=$?
27656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657   (exit $ac_status); }; } &&
27658          { ac_try='test -s conftest.$ac_objext'
27659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660   (eval $ac_try) 2>&5
27661   ac_status=$?
27662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663   (exit $ac_status); }; }; then
27664   ac_lo=$ac_mid; break
27665 else
27666   echo "$as_me: failed program was:" >&5
27667 sed 's/^/| /' conftest.$ac_ext >&5
27668
27669 ac_hi=`expr '(' $ac_mid ')' - 1`
27670                        if test $ac_mid -le $ac_hi; then
27671                          ac_lo= ac_hi=
27672                          break
27673                        fi
27674                        ac_mid=`expr 2 '*' $ac_mid`
27675 fi
27676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27677   done
27678 else
27679   echo "$as_me: failed program was:" >&5
27680 sed 's/^/| /' conftest.$ac_ext >&5
27681
27682 ac_lo= ac_hi=
27683 fi
27684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27685 fi
27686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27687 # Binary search between lo and hi bounds.
27688 while test "x$ac_lo" != "x$ac_hi"; do
27689   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27690   cat >conftest.$ac_ext <<_ACEOF
27691 /* confdefs.h.  */
27692 _ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h.  */
27696 #include <stdio.h>
27697 #include <wchar.h>
27698
27699
27700 int
27701 main ()
27702 {
27703 static int test_array [1 - 2 * !(((long) (sizeof (wint_t))) <= $ac_mid)];
27704 test_array [0] = 0
27705
27706   ;
27707   return 0;
27708 }
27709 _ACEOF
27710 rm -f conftest.$ac_objext
27711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27712   (eval $ac_compile) 2>conftest.er1
27713   ac_status=$?
27714   grep -v '^ *+' conftest.er1 >conftest.err
27715   rm -f conftest.er1
27716   cat conftest.err >&5
27717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718   (exit $ac_status); } &&
27719          { ac_try='test -z "$ac_c_werror_flag"
27720                          || test ! -s conftest.err'
27721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722   (eval $ac_try) 2>&5
27723   ac_status=$?
27724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725   (exit $ac_status); }; } &&
27726          { ac_try='test -s conftest.$ac_objext'
27727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728   (eval $ac_try) 2>&5
27729   ac_status=$?
27730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731   (exit $ac_status); }; }; then
27732   ac_hi=$ac_mid
27733 else
27734   echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27736
27737 ac_lo=`expr '(' $ac_mid ')' + 1`
27738 fi
27739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27740 done
27741 case $ac_lo in
27742 ?*) ac_cv_sizeof_wint_t=$ac_lo;;
27743 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t), 77
27744 See \`config.log' for more details." >&5
27745 echo "$as_me: error: cannot compute sizeof (wint_t), 77
27746 See \`config.log' for more details." >&2;}
27747    { (exit 1); exit 1; }; } ;;
27748 esac
27749 else
27750   if test "$cross_compiling" = yes; then
27751   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27752 See \`config.log' for more details." >&5
27753 echo "$as_me: error: cannot run test program while cross compiling
27754 See \`config.log' for more details." >&2;}
27755    { (exit 1); exit 1; }; }
27756 else
27757   cat >conftest.$ac_ext <<_ACEOF
27758 /* confdefs.h.  */
27759 _ACEOF
27760 cat confdefs.h >>conftest.$ac_ext
27761 cat >>conftest.$ac_ext <<_ACEOF
27762 /* end confdefs.h.  */
27763 #include <stdio.h>
27764 #include <wchar.h>
27765
27766
27767 long longval () { return (long) (sizeof (wint_t)); }
27768 unsigned long ulongval () { return (long) (sizeof (wint_t)); }
27769 #include <stdio.h>
27770 #include <stdlib.h>
27771 int
27772 main ()
27773 {
27774
27775   FILE *f = fopen ("conftest.val", "w");
27776   if (! f)
27777     exit (1);
27778   if (((long) (sizeof (wint_t))) < 0)
27779     {
27780       long i = longval ();
27781       if (i != ((long) (sizeof (wint_t))))
27782         exit (1);
27783       fprintf (f, "%ld\n", i);
27784     }
27785   else
27786     {
27787       unsigned long i = ulongval ();
27788       if (i != ((long) (sizeof (wint_t))))
27789         exit (1);
27790       fprintf (f, "%lu\n", i);
27791     }
27792   exit (ferror (f) || fclose (f) != 0);
27793
27794   ;
27795   return 0;
27796 }
27797 _ACEOF
27798 rm -f conftest$ac_exeext
27799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27800   (eval $ac_link) 2>&5
27801   ac_status=$?
27802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27805   (eval $ac_try) 2>&5
27806   ac_status=$?
27807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808   (exit $ac_status); }; }; then
27809   ac_cv_sizeof_wint_t=`cat conftest.val`
27810 else
27811   echo "$as_me: program exited with status $ac_status" >&5
27812 echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27814
27815 ( exit $ac_status )
27816 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wint_t), 77
27817 See \`config.log' for more details." >&5
27818 echo "$as_me: error: cannot compute sizeof (wint_t), 77
27819 See \`config.log' for more details." >&2;}
27820    { (exit 1); exit 1; }; }
27821 fi
27822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27823 fi
27824 fi
27825 rm -f conftest.val
27826 else
27827   ac_cv_sizeof_wint_t=0
27828 fi
27829 fi
27830 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wint_t" >&5
27831 echo "${ECHO_T}$ac_cv_sizeof_wint_t" >&6
27832 cat >>confdefs.h <<_ACEOF
27833 #define SIZEOF_WINT_T $ac_cv_sizeof_wint_t
27834 _ACEOF
27835
27836
27837                 echo "$as_me:$LINENO: checking for uniquely sized wint_t" >&5
27838 echo $ECHO_N "checking for uniquely sized wint_t... $ECHO_C" >&6
27839 if test "${ccvs_cv_unique_int_type_wint_t+set}" = set; then
27840   echo $ECHO_N "(cached) $ECHO_C" >&6
27841 else
27842   if set |grep ^ccvs_cv_unique_int_type_ \
27843                                 |grep "($ac_cv_sizeof_wint_t)" >/dev/null ; then
27844                                 ccvs_cv_unique_int_type_wint_t=no
27845                         else
27846                                 ccvs_cv_unique_int_type_wint_t=yes\($ac_cv_sizeof_wint_t\)
27847                         fi
27848 fi
27849 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_wint_t" >&5
27850 echo "${ECHO_T}$ccvs_cv_unique_int_type_wint_t" >&6
27851                 if test $ccvs_cv_unique_int_type_wint_t != no ; then
27852
27853 cat >>confdefs.h <<\_ACEOF
27854 #define UNIQUE_INT_TYPE_WINT_T 1
27855 _ACEOF
27856
27857                 fi
27858         fi
27859         if test $gt_cv_c_intmax_t != no; then
27860                 echo "$as_me:$LINENO: checking for intmax_t" >&5
27861 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
27862 if test "${ac_cv_type_intmax_t+set}" = set; then
27863   echo $ECHO_N "(cached) $ECHO_C" >&6
27864 else
27865   cat >conftest.$ac_ext <<_ACEOF
27866 /* confdefs.h.  */
27867 _ACEOF
27868 cat confdefs.h >>conftest.$ac_ext
27869 cat >>conftest.$ac_ext <<_ACEOF
27870 /* end confdefs.h.  */
27871 #include <stdio.h>
27872 #ifdef HAVE_INTTYPES_H
27873 #include <inttypes.h>
27874 #else
27875 #ifdef HAVE_STDINT_H
27876 #include <stdint.h>
27877 #endif
27878 #endif
27879
27880
27881 int
27882 main ()
27883 {
27884 if ((intmax_t *) 0)
27885   return 0;
27886 if (sizeof (intmax_t))
27887   return 0;
27888   ;
27889   return 0;
27890 }
27891 _ACEOF
27892 rm -f conftest.$ac_objext
27893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27894   (eval $ac_compile) 2>conftest.er1
27895   ac_status=$?
27896   grep -v '^ *+' conftest.er1 >conftest.err
27897   rm -f conftest.er1
27898   cat conftest.err >&5
27899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900   (exit $ac_status); } &&
27901          { ac_try='test -z "$ac_c_werror_flag"
27902                          || test ! -s conftest.err'
27903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27904   (eval $ac_try) 2>&5
27905   ac_status=$?
27906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907   (exit $ac_status); }; } &&
27908          { ac_try='test -s conftest.$ac_objext'
27909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27910   (eval $ac_try) 2>&5
27911   ac_status=$?
27912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913   (exit $ac_status); }; }; then
27914   ac_cv_type_intmax_t=yes
27915 else
27916   echo "$as_me: failed program was:" >&5
27917 sed 's/^/| /' conftest.$ac_ext >&5
27918
27919 ac_cv_type_intmax_t=no
27920 fi
27921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27922 fi
27923 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
27924 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
27925
27926 echo "$as_me:$LINENO: checking size of intmax_t" >&5
27927 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
27928 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
27929   echo $ECHO_N "(cached) $ECHO_C" >&6
27930 else
27931   if test "$ac_cv_type_intmax_t" = yes; then
27932   # The cast to unsigned long works around a bug in the HP C Compiler
27933   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27934   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27935   # This bug is HP SR number 8606223364.
27936   if test "$cross_compiling" = yes; then
27937   # Depending upon the size, compute the lo and hi bounds.
27938 cat >conftest.$ac_ext <<_ACEOF
27939 /* confdefs.h.  */
27940 _ACEOF
27941 cat confdefs.h >>conftest.$ac_ext
27942 cat >>conftest.$ac_ext <<_ACEOF
27943 /* end confdefs.h.  */
27944 #include <stdio.h>
27945 #ifdef HAVE_INTTYPES_H
27946 #include <inttypes.h>
27947 #else
27948 #ifdef HAVE_STDINT_H
27949 #include <stdint.h>
27950 #endif
27951 #endif
27952
27953
27954 int
27955 main ()
27956 {
27957 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
27958 test_array [0] = 0
27959
27960   ;
27961   return 0;
27962 }
27963 _ACEOF
27964 rm -f conftest.$ac_objext
27965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27966   (eval $ac_compile) 2>conftest.er1
27967   ac_status=$?
27968   grep -v '^ *+' conftest.er1 >conftest.err
27969   rm -f conftest.er1
27970   cat conftest.err >&5
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); } &&
27973          { ac_try='test -z "$ac_c_werror_flag"
27974                          || test ! -s conftest.err'
27975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976   (eval $ac_try) 2>&5
27977   ac_status=$?
27978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979   (exit $ac_status); }; } &&
27980          { ac_try='test -s conftest.$ac_objext'
27981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27982   (eval $ac_try) 2>&5
27983   ac_status=$?
27984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985   (exit $ac_status); }; }; then
27986   ac_lo=0 ac_mid=0
27987   while :; do
27988     cat >conftest.$ac_ext <<_ACEOF
27989 /* confdefs.h.  */
27990 _ACEOF
27991 cat confdefs.h >>conftest.$ac_ext
27992 cat >>conftest.$ac_ext <<_ACEOF
27993 /* end confdefs.h.  */
27994 #include <stdio.h>
27995 #ifdef HAVE_INTTYPES_H
27996 #include <inttypes.h>
27997 #else
27998 #ifdef HAVE_STDINT_H
27999 #include <stdint.h>
28000 #endif
28001 #endif
28002
28003
28004 int
28005 main ()
28006 {
28007 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
28008 test_array [0] = 0
28009
28010   ;
28011   return 0;
28012 }
28013 _ACEOF
28014 rm -f conftest.$ac_objext
28015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28016   (eval $ac_compile) 2>conftest.er1
28017   ac_status=$?
28018   grep -v '^ *+' conftest.er1 >conftest.err
28019   rm -f conftest.er1
28020   cat conftest.err >&5
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); } &&
28023          { ac_try='test -z "$ac_c_werror_flag"
28024                          || test ! -s conftest.err'
28025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28026   (eval $ac_try) 2>&5
28027   ac_status=$?
28028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029   (exit $ac_status); }; } &&
28030          { ac_try='test -s conftest.$ac_objext'
28031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28032   (eval $ac_try) 2>&5
28033   ac_status=$?
28034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035   (exit $ac_status); }; }; then
28036   ac_hi=$ac_mid; break
28037 else
28038   echo "$as_me: failed program was:" >&5
28039 sed 's/^/| /' conftest.$ac_ext >&5
28040
28041 ac_lo=`expr $ac_mid + 1`
28042                     if test $ac_lo -le $ac_mid; then
28043                       ac_lo= ac_hi=
28044                       break
28045                     fi
28046                     ac_mid=`expr 2 '*' $ac_mid + 1`
28047 fi
28048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28049   done
28050 else
28051   echo "$as_me: failed program was:" >&5
28052 sed 's/^/| /' conftest.$ac_ext >&5
28053
28054 cat >conftest.$ac_ext <<_ACEOF
28055 /* confdefs.h.  */
28056 _ACEOF
28057 cat confdefs.h >>conftest.$ac_ext
28058 cat >>conftest.$ac_ext <<_ACEOF
28059 /* end confdefs.h.  */
28060 #include <stdio.h>
28061 #ifdef HAVE_INTTYPES_H
28062 #include <inttypes.h>
28063 #else
28064 #ifdef HAVE_STDINT_H
28065 #include <stdint.h>
28066 #endif
28067 #endif
28068
28069
28070 int
28071 main ()
28072 {
28073 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
28074 test_array [0] = 0
28075
28076   ;
28077   return 0;
28078 }
28079 _ACEOF
28080 rm -f conftest.$ac_objext
28081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28082   (eval $ac_compile) 2>conftest.er1
28083   ac_status=$?
28084   grep -v '^ *+' conftest.er1 >conftest.err
28085   rm -f conftest.er1
28086   cat conftest.err >&5
28087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088   (exit $ac_status); } &&
28089          { ac_try='test -z "$ac_c_werror_flag"
28090                          || test ! -s conftest.err'
28091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28092   (eval $ac_try) 2>&5
28093   ac_status=$?
28094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095   (exit $ac_status); }; } &&
28096          { ac_try='test -s conftest.$ac_objext'
28097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098   (eval $ac_try) 2>&5
28099   ac_status=$?
28100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101   (exit $ac_status); }; }; then
28102   ac_hi=-1 ac_mid=-1
28103   while :; do
28104     cat >conftest.$ac_ext <<_ACEOF
28105 /* confdefs.h.  */
28106 _ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h.  */
28110 #include <stdio.h>
28111 #ifdef HAVE_INTTYPES_H
28112 #include <inttypes.h>
28113 #else
28114 #ifdef HAVE_STDINT_H
28115 #include <stdint.h>
28116 #endif
28117 #endif
28118
28119
28120 int
28121 main ()
28122 {
28123 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
28124 test_array [0] = 0
28125
28126   ;
28127   return 0;
28128 }
28129 _ACEOF
28130 rm -f conftest.$ac_objext
28131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28132   (eval $ac_compile) 2>conftest.er1
28133   ac_status=$?
28134   grep -v '^ *+' conftest.er1 >conftest.err
28135   rm -f conftest.er1
28136   cat conftest.err >&5
28137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138   (exit $ac_status); } &&
28139          { ac_try='test -z "$ac_c_werror_flag"
28140                          || test ! -s conftest.err'
28141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142   (eval $ac_try) 2>&5
28143   ac_status=$?
28144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); }; } &&
28146          { ac_try='test -s conftest.$ac_objext'
28147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28148   (eval $ac_try) 2>&5
28149   ac_status=$?
28150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151   (exit $ac_status); }; }; then
28152   ac_lo=$ac_mid; break
28153 else
28154   echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28156
28157 ac_hi=`expr '(' $ac_mid ')' - 1`
28158                        if test $ac_mid -le $ac_hi; then
28159                          ac_lo= ac_hi=
28160                          break
28161                        fi
28162                        ac_mid=`expr 2 '*' $ac_mid`
28163 fi
28164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28165   done
28166 else
28167   echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28169
28170 ac_lo= ac_hi=
28171 fi
28172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28173 fi
28174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28175 # Binary search between lo and hi bounds.
28176 while test "x$ac_lo" != "x$ac_hi"; do
28177   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28178   cat >conftest.$ac_ext <<_ACEOF
28179 /* confdefs.h.  */
28180 _ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h.  */
28184 #include <stdio.h>
28185 #ifdef HAVE_INTTYPES_H
28186 #include <inttypes.h>
28187 #else
28188 #ifdef HAVE_STDINT_H
28189 #include <stdint.h>
28190 #endif
28191 #endif
28192
28193
28194 int
28195 main ()
28196 {
28197 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
28198 test_array [0] = 0
28199
28200   ;
28201   return 0;
28202 }
28203 _ACEOF
28204 rm -f conftest.$ac_objext
28205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28206   (eval $ac_compile) 2>conftest.er1
28207   ac_status=$?
28208   grep -v '^ *+' conftest.er1 >conftest.err
28209   rm -f conftest.er1
28210   cat conftest.err >&5
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); } &&
28213          { ac_try='test -z "$ac_c_werror_flag"
28214                          || test ! -s conftest.err'
28215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28216   (eval $ac_try) 2>&5
28217   ac_status=$?
28218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219   (exit $ac_status); }; } &&
28220          { ac_try='test -s conftest.$ac_objext'
28221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222   (eval $ac_try) 2>&5
28223   ac_status=$?
28224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225   (exit $ac_status); }; }; then
28226   ac_hi=$ac_mid
28227 else
28228   echo "$as_me: failed program was:" >&5
28229 sed 's/^/| /' conftest.$ac_ext >&5
28230
28231 ac_lo=`expr '(' $ac_mid ')' + 1`
28232 fi
28233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28234 done
28235 case $ac_lo in
28236 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
28237 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
28238 See \`config.log' for more details." >&5
28239 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
28240 See \`config.log' for more details." >&2;}
28241    { (exit 1); exit 1; }; } ;;
28242 esac
28243 else
28244   if test "$cross_compiling" = yes; then
28245   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28246 See \`config.log' for more details." >&5
28247 echo "$as_me: error: cannot run test program while cross compiling
28248 See \`config.log' for more details." >&2;}
28249    { (exit 1); exit 1; }; }
28250 else
28251   cat >conftest.$ac_ext <<_ACEOF
28252 /* confdefs.h.  */
28253 _ACEOF
28254 cat confdefs.h >>conftest.$ac_ext
28255 cat >>conftest.$ac_ext <<_ACEOF
28256 /* end confdefs.h.  */
28257 #include <stdio.h>
28258 #ifdef HAVE_INTTYPES_H
28259 #include <inttypes.h>
28260 #else
28261 #ifdef HAVE_STDINT_H
28262 #include <stdint.h>
28263 #endif
28264 #endif
28265
28266
28267 long longval () { return (long) (sizeof (intmax_t)); }
28268 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
28269 #include <stdio.h>
28270 #include <stdlib.h>
28271 int
28272 main ()
28273 {
28274
28275   FILE *f = fopen ("conftest.val", "w");
28276   if (! f)
28277     exit (1);
28278   if (((long) (sizeof (intmax_t))) < 0)
28279     {
28280       long i = longval ();
28281       if (i != ((long) (sizeof (intmax_t))))
28282         exit (1);
28283       fprintf (f, "%ld\n", i);
28284     }
28285   else
28286     {
28287       unsigned long i = ulongval ();
28288       if (i != ((long) (sizeof (intmax_t))))
28289         exit (1);
28290       fprintf (f, "%lu\n", i);
28291     }
28292   exit (ferror (f) || fclose (f) != 0);
28293
28294   ;
28295   return 0;
28296 }
28297 _ACEOF
28298 rm -f conftest$ac_exeext
28299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28300   (eval $ac_link) 2>&5
28301   ac_status=$?
28302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305   (eval $ac_try) 2>&5
28306   ac_status=$?
28307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308   (exit $ac_status); }; }; then
28309   ac_cv_sizeof_intmax_t=`cat conftest.val`
28310 else
28311   echo "$as_me: program exited with status $ac_status" >&5
28312 echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28314
28315 ( exit $ac_status )
28316 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
28317 See \`config.log' for more details." >&5
28318 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
28319 See \`config.log' for more details." >&2;}
28320    { (exit 1); exit 1; }; }
28321 fi
28322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28323 fi
28324 fi
28325 rm -f conftest.val
28326 else
28327   ac_cv_sizeof_intmax_t=0
28328 fi
28329 fi
28330 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
28331 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
28332 cat >>confdefs.h <<_ACEOF
28333 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
28334 _ACEOF
28335
28336
28337                 echo "$as_me:$LINENO: checking for uniquely sized intmax_t" >&5
28338 echo $ECHO_N "checking for uniquely sized intmax_t... $ECHO_C" >&6
28339 if test "${ccvs_cv_unique_int_type_intmax_t+set}" = set; then
28340   echo $ECHO_N "(cached) $ECHO_C" >&6
28341 else
28342   if set |grep ^ccvs_cv_unique_int_type_ \
28343                                 |grep "($ac_cv_sizeof_intmax_t)" >/dev/null ; then
28344                                 ccvs_cv_unique_int_type_intmax_t=no
28345                         else
28346                                 ccvs_cv_unique_int_type_intmax_t=yes\($ac_cv_sizeof_intmax_t\)
28347                         fi
28348 fi
28349 echo "$as_me:$LINENO: result: $ccvs_cv_unique_int_type_intmax_t" >&5
28350 echo "${ECHO_T}$ccvs_cv_unique_int_type_intmax_t" >&6
28351                 if test $ccvs_cv_unique_int_type_intmax_t != no ; then
28352
28353 cat >>confdefs.h <<\_ACEOF
28354 #define UNIQUE_INT_TYPE_INTMAX_T 1
28355 _ACEOF
28356
28357                 fi
28358         fi
28359
28360                                 echo "$as_me:$LINENO: checking for float" >&5
28361 echo $ECHO_N "checking for float... $ECHO_C" >&6
28362 if test "${ac_cv_type_float+set}" = set; then
28363   echo $ECHO_N "(cached) $ECHO_C" >&6
28364 else
28365   cat >conftest.$ac_ext <<_ACEOF
28366 /* confdefs.h.  */
28367 _ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h.  */
28371 $ac_includes_default
28372 int
28373 main ()
28374 {
28375 if ((float *) 0)
28376   return 0;
28377 if (sizeof (float))
28378   return 0;
28379   ;
28380   return 0;
28381 }
28382 _ACEOF
28383 rm -f conftest.$ac_objext
28384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28385   (eval $ac_compile) 2>conftest.er1
28386   ac_status=$?
28387   grep -v '^ *+' conftest.er1 >conftest.err
28388   rm -f conftest.er1
28389   cat conftest.err >&5
28390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391   (exit $ac_status); } &&
28392          { ac_try='test -z "$ac_c_werror_flag"
28393                          || test ! -s conftest.err'
28394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28395   (eval $ac_try) 2>&5
28396   ac_status=$?
28397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398   (exit $ac_status); }; } &&
28399          { ac_try='test -s conftest.$ac_objext'
28400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401   (eval $ac_try) 2>&5
28402   ac_status=$?
28403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404   (exit $ac_status); }; }; then
28405   ac_cv_type_float=yes
28406 else
28407   echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.$ac_ext >&5
28409
28410 ac_cv_type_float=no
28411 fi
28412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28413 fi
28414 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
28415 echo "${ECHO_T}$ac_cv_type_float" >&6
28416
28417 echo "$as_me:$LINENO: checking size of float" >&5
28418 echo $ECHO_N "checking size of float... $ECHO_C" >&6
28419 if test "${ac_cv_sizeof_float+set}" = set; then
28420   echo $ECHO_N "(cached) $ECHO_C" >&6
28421 else
28422   if test "$ac_cv_type_float" = yes; then
28423   # The cast to unsigned long works around a bug in the HP C Compiler
28424   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28425   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28426   # This bug is HP SR number 8606223364.
28427   if test "$cross_compiling" = yes; then
28428   # Depending upon the size, compute the lo and hi bounds.
28429 cat >conftest.$ac_ext <<_ACEOF
28430 /* confdefs.h.  */
28431 _ACEOF
28432 cat confdefs.h >>conftest.$ac_ext
28433 cat >>conftest.$ac_ext <<_ACEOF
28434 /* end confdefs.h.  */
28435 $ac_includes_default
28436 int
28437 main ()
28438 {
28439 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
28440 test_array [0] = 0
28441
28442   ;
28443   return 0;
28444 }
28445 _ACEOF
28446 rm -f conftest.$ac_objext
28447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28448   (eval $ac_compile) 2>conftest.er1
28449   ac_status=$?
28450   grep -v '^ *+' conftest.er1 >conftest.err
28451   rm -f conftest.er1
28452   cat conftest.err >&5
28453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454   (exit $ac_status); } &&
28455          { ac_try='test -z "$ac_c_werror_flag"
28456                          || test ! -s conftest.err'
28457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458   (eval $ac_try) 2>&5
28459   ac_status=$?
28460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461   (exit $ac_status); }; } &&
28462          { ac_try='test -s conftest.$ac_objext'
28463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464   (eval $ac_try) 2>&5
28465   ac_status=$?
28466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467   (exit $ac_status); }; }; then
28468   ac_lo=0 ac_mid=0
28469   while :; do
28470     cat >conftest.$ac_ext <<_ACEOF
28471 /* confdefs.h.  */
28472 _ACEOF
28473 cat confdefs.h >>conftest.$ac_ext
28474 cat >>conftest.$ac_ext <<_ACEOF
28475 /* end confdefs.h.  */
28476 $ac_includes_default
28477 int
28478 main ()
28479 {
28480 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
28481 test_array [0] = 0
28482
28483   ;
28484   return 0;
28485 }
28486 _ACEOF
28487 rm -f conftest.$ac_objext
28488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28489   (eval $ac_compile) 2>conftest.er1
28490   ac_status=$?
28491   grep -v '^ *+' conftest.er1 >conftest.err
28492   rm -f conftest.er1
28493   cat conftest.err >&5
28494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495   (exit $ac_status); } &&
28496          { ac_try='test -z "$ac_c_werror_flag"
28497                          || test ! -s conftest.err'
28498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28499   (eval $ac_try) 2>&5
28500   ac_status=$?
28501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502   (exit $ac_status); }; } &&
28503          { ac_try='test -s conftest.$ac_objext'
28504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505   (eval $ac_try) 2>&5
28506   ac_status=$?
28507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508   (exit $ac_status); }; }; then
28509   ac_hi=$ac_mid; break
28510 else
28511   echo "$as_me: failed program was:" >&5
28512 sed 's/^/| /' conftest.$ac_ext >&5
28513
28514 ac_lo=`expr $ac_mid + 1`
28515                     if test $ac_lo -le $ac_mid; then
28516                       ac_lo= ac_hi=
28517                       break
28518                     fi
28519                     ac_mid=`expr 2 '*' $ac_mid + 1`
28520 fi
28521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28522   done
28523 else
28524   echo "$as_me: failed program was:" >&5
28525 sed 's/^/| /' conftest.$ac_ext >&5
28526
28527 cat >conftest.$ac_ext <<_ACEOF
28528 /* confdefs.h.  */
28529 _ACEOF
28530 cat confdefs.h >>conftest.$ac_ext
28531 cat >>conftest.$ac_ext <<_ACEOF
28532 /* end confdefs.h.  */
28533 $ac_includes_default
28534 int
28535 main ()
28536 {
28537 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
28538 test_array [0] = 0
28539
28540   ;
28541   return 0;
28542 }
28543 _ACEOF
28544 rm -f conftest.$ac_objext
28545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28546   (eval $ac_compile) 2>conftest.er1
28547   ac_status=$?
28548   grep -v '^ *+' conftest.er1 >conftest.err
28549   rm -f conftest.er1
28550   cat conftest.err >&5
28551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552   (exit $ac_status); } &&
28553          { ac_try='test -z "$ac_c_werror_flag"
28554                          || test ! -s conftest.err'
28555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28556   (eval $ac_try) 2>&5
28557   ac_status=$?
28558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559   (exit $ac_status); }; } &&
28560          { ac_try='test -s conftest.$ac_objext'
28561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28562   (eval $ac_try) 2>&5
28563   ac_status=$?
28564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565   (exit $ac_status); }; }; then
28566   ac_hi=-1 ac_mid=-1
28567   while :; do
28568     cat >conftest.$ac_ext <<_ACEOF
28569 /* confdefs.h.  */
28570 _ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h.  */
28574 $ac_includes_default
28575 int
28576 main ()
28577 {
28578 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
28579 test_array [0] = 0
28580
28581   ;
28582   return 0;
28583 }
28584 _ACEOF
28585 rm -f conftest.$ac_objext
28586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28587   (eval $ac_compile) 2>conftest.er1
28588   ac_status=$?
28589   grep -v '^ *+' conftest.er1 >conftest.err
28590   rm -f conftest.er1
28591   cat conftest.err >&5
28592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593   (exit $ac_status); } &&
28594          { ac_try='test -z "$ac_c_werror_flag"
28595                          || test ! -s conftest.err'
28596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28597   (eval $ac_try) 2>&5
28598   ac_status=$?
28599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600   (exit $ac_status); }; } &&
28601          { ac_try='test -s conftest.$ac_objext'
28602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603   (eval $ac_try) 2>&5
28604   ac_status=$?
28605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606   (exit $ac_status); }; }; then
28607   ac_lo=$ac_mid; break
28608 else
28609   echo "$as_me: failed program was:" >&5
28610 sed 's/^/| /' conftest.$ac_ext >&5
28611
28612 ac_hi=`expr '(' $ac_mid ')' - 1`
28613                        if test $ac_mid -le $ac_hi; then
28614                          ac_lo= ac_hi=
28615                          break
28616                        fi
28617                        ac_mid=`expr 2 '*' $ac_mid`
28618 fi
28619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28620   done
28621 else
28622   echo "$as_me: failed program was:" >&5
28623 sed 's/^/| /' conftest.$ac_ext >&5
28624
28625 ac_lo= ac_hi=
28626 fi
28627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28628 fi
28629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28630 # Binary search between lo and hi bounds.
28631 while test "x$ac_lo" != "x$ac_hi"; do
28632   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 $ac_includes_default
28640 int
28641 main ()
28642 {
28643 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
28644 test_array [0] = 0
28645
28646   ;
28647   return 0;
28648 }
28649 _ACEOF
28650 rm -f conftest.$ac_objext
28651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28652   (eval $ac_compile) 2>conftest.er1
28653   ac_status=$?
28654   grep -v '^ *+' conftest.er1 >conftest.err
28655   rm -f conftest.er1
28656   cat conftest.err >&5
28657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658   (exit $ac_status); } &&
28659          { ac_try='test -z "$ac_c_werror_flag"
28660                          || test ! -s conftest.err'
28661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28662   (eval $ac_try) 2>&5
28663   ac_status=$?
28664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665   (exit $ac_status); }; } &&
28666          { ac_try='test -s conftest.$ac_objext'
28667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28668   (eval $ac_try) 2>&5
28669   ac_status=$?
28670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671   (exit $ac_status); }; }; then
28672   ac_hi=$ac_mid
28673 else
28674   echo "$as_me: failed program was:" >&5
28675 sed 's/^/| /' conftest.$ac_ext >&5
28676
28677 ac_lo=`expr '(' $ac_mid ')' + 1`
28678 fi
28679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28680 done
28681 case $ac_lo in
28682 ?*) ac_cv_sizeof_float=$ac_lo;;
28683 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
28684 See \`config.log' for more details." >&5
28685 echo "$as_me: error: cannot compute sizeof (float), 77
28686 See \`config.log' for more details." >&2;}
28687    { (exit 1); exit 1; }; } ;;
28688 esac
28689 else
28690   if test "$cross_compiling" = yes; then
28691   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28692 See \`config.log' for more details." >&5
28693 echo "$as_me: error: cannot run test program while cross compiling
28694 See \`config.log' for more details." >&2;}
28695    { (exit 1); exit 1; }; }
28696 else
28697   cat >conftest.$ac_ext <<_ACEOF
28698 /* confdefs.h.  */
28699 _ACEOF
28700 cat confdefs.h >>conftest.$ac_ext
28701 cat >>conftest.$ac_ext <<_ACEOF
28702 /* end confdefs.h.  */
28703 $ac_includes_default
28704 long longval () { return (long) (sizeof (float)); }
28705 unsigned long ulongval () { return (long) (sizeof (float)); }
28706 #include <stdio.h>
28707 #include <stdlib.h>
28708 int
28709 main ()
28710 {
28711
28712   FILE *f = fopen ("conftest.val", "w");
28713   if (! f)
28714     exit (1);
28715   if (((long) (sizeof (float))) < 0)
28716     {
28717       long i = longval ();
28718       if (i != ((long) (sizeof (float))))
28719         exit (1);
28720       fprintf (f, "%ld\n", i);
28721     }
28722   else
28723     {
28724       unsigned long i = ulongval ();
28725       if (i != ((long) (sizeof (float))))
28726         exit (1);
28727       fprintf (f, "%lu\n", i);
28728     }
28729   exit (ferror (f) || fclose (f) != 0);
28730
28731   ;
28732   return 0;
28733 }
28734 _ACEOF
28735 rm -f conftest$ac_exeext
28736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28737   (eval $ac_link) 2>&5
28738   ac_status=$?
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742   (eval $ac_try) 2>&5
28743   ac_status=$?
28744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745   (exit $ac_status); }; }; then
28746   ac_cv_sizeof_float=`cat conftest.val`
28747 else
28748   echo "$as_me: program exited with status $ac_status" >&5
28749 echo "$as_me: failed program was:" >&5
28750 sed 's/^/| /' conftest.$ac_ext >&5
28751
28752 ( exit $ac_status )
28753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
28754 See \`config.log' for more details." >&5
28755 echo "$as_me: error: cannot compute sizeof (float), 77
28756 See \`config.log' for more details." >&2;}
28757    { (exit 1); exit 1; }; }
28758 fi
28759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28760 fi
28761 fi
28762 rm -f conftest.val
28763 else
28764   ac_cv_sizeof_float=0
28765 fi
28766 fi
28767 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
28768 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
28769 cat >>confdefs.h <<_ACEOF
28770 #define SIZEOF_FLOAT $ac_cv_sizeof_float
28771 _ACEOF
28772
28773
28774         echo "$as_me:$LINENO: checking for uniquely sized float" >&5
28775 echo $ECHO_N "checking for uniquely sized float... $ECHO_C" >&6
28776 if test "${ccvs_cv_unique_float_type_float+set}" = set; then
28777   echo $ECHO_N "(cached) $ECHO_C" >&6
28778 else
28779   if set |grep ^ccvs_cv_unique_float_type_ \
28780                         |grep "($ac_cv_sizeof_float)" >/dev/null ; then
28781                         ccvs_cv_unique_float_type_float=no
28782                 else
28783                         ccvs_cv_unique_float_type_float=yes\($ac_cv_sizeof_float\)
28784                 fi
28785 fi
28786 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_float" >&5
28787 echo "${ECHO_T}$ccvs_cv_unique_float_type_float" >&6
28788         if test $ccvs_cv_unique_float_type_float != no ; then
28789
28790 cat >>confdefs.h <<\_ACEOF
28791 #define UNIQUE_FLOAT_TYPE_FLOAT 1
28792 _ACEOF
28793
28794         fi
28795         echo "$as_me:$LINENO: checking for double" >&5
28796 echo $ECHO_N "checking for double... $ECHO_C" >&6
28797 if test "${ac_cv_type_double+set}" = set; then
28798   echo $ECHO_N "(cached) $ECHO_C" >&6
28799 else
28800   cat >conftest.$ac_ext <<_ACEOF
28801 /* confdefs.h.  */
28802 _ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h.  */
28806 $ac_includes_default
28807 int
28808 main ()
28809 {
28810 if ((double *) 0)
28811   return 0;
28812 if (sizeof (double))
28813   return 0;
28814   ;
28815   return 0;
28816 }
28817 _ACEOF
28818 rm -f conftest.$ac_objext
28819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28820   (eval $ac_compile) 2>conftest.er1
28821   ac_status=$?
28822   grep -v '^ *+' conftest.er1 >conftest.err
28823   rm -f conftest.er1
28824   cat conftest.err >&5
28825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826   (exit $ac_status); } &&
28827          { ac_try='test -z "$ac_c_werror_flag"
28828                          || test ! -s conftest.err'
28829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28830   (eval $ac_try) 2>&5
28831   ac_status=$?
28832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833   (exit $ac_status); }; } &&
28834          { ac_try='test -s conftest.$ac_objext'
28835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28836   (eval $ac_try) 2>&5
28837   ac_status=$?
28838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839   (exit $ac_status); }; }; then
28840   ac_cv_type_double=yes
28841 else
28842   echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28844
28845 ac_cv_type_double=no
28846 fi
28847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28848 fi
28849 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
28850 echo "${ECHO_T}$ac_cv_type_double" >&6
28851
28852 echo "$as_me:$LINENO: checking size of double" >&5
28853 echo $ECHO_N "checking size of double... $ECHO_C" >&6
28854 if test "${ac_cv_sizeof_double+set}" = set; then
28855   echo $ECHO_N "(cached) $ECHO_C" >&6
28856 else
28857   if test "$ac_cv_type_double" = yes; then
28858   # The cast to unsigned long works around a bug in the HP C Compiler
28859   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28860   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28861   # This bug is HP SR number 8606223364.
28862   if test "$cross_compiling" = yes; then
28863   # Depending upon the size, compute the lo and hi bounds.
28864 cat >conftest.$ac_ext <<_ACEOF
28865 /* confdefs.h.  */
28866 _ACEOF
28867 cat confdefs.h >>conftest.$ac_ext
28868 cat >>conftest.$ac_ext <<_ACEOF
28869 /* end confdefs.h.  */
28870 $ac_includes_default
28871 int
28872 main ()
28873 {
28874 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
28875 test_array [0] = 0
28876
28877   ;
28878   return 0;
28879 }
28880 _ACEOF
28881 rm -f conftest.$ac_objext
28882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28883   (eval $ac_compile) 2>conftest.er1
28884   ac_status=$?
28885   grep -v '^ *+' conftest.er1 >conftest.err
28886   rm -f conftest.er1
28887   cat conftest.err >&5
28888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889   (exit $ac_status); } &&
28890          { ac_try='test -z "$ac_c_werror_flag"
28891                          || test ! -s conftest.err'
28892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28893   (eval $ac_try) 2>&5
28894   ac_status=$?
28895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896   (exit $ac_status); }; } &&
28897          { ac_try='test -s conftest.$ac_objext'
28898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899   (eval $ac_try) 2>&5
28900   ac_status=$?
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); }; }; then
28903   ac_lo=0 ac_mid=0
28904   while :; do
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 $ac_includes_default
28912 int
28913 main ()
28914 {
28915 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
28916 test_array [0] = 0
28917
28918   ;
28919   return 0;
28920 }
28921 _ACEOF
28922 rm -f conftest.$ac_objext
28923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28924   (eval $ac_compile) 2>conftest.er1
28925   ac_status=$?
28926   grep -v '^ *+' conftest.er1 >conftest.err
28927   rm -f conftest.er1
28928   cat conftest.err >&5
28929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930   (exit $ac_status); } &&
28931          { ac_try='test -z "$ac_c_werror_flag"
28932                          || test ! -s conftest.err'
28933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28934   (eval $ac_try) 2>&5
28935   ac_status=$?
28936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937   (exit $ac_status); }; } &&
28938          { ac_try='test -s conftest.$ac_objext'
28939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28940   (eval $ac_try) 2>&5
28941   ac_status=$?
28942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943   (exit $ac_status); }; }; then
28944   ac_hi=$ac_mid; break
28945 else
28946   echo "$as_me: failed program was:" >&5
28947 sed 's/^/| /' conftest.$ac_ext >&5
28948
28949 ac_lo=`expr $ac_mid + 1`
28950                     if test $ac_lo -le $ac_mid; then
28951                       ac_lo= ac_hi=
28952                       break
28953                     fi
28954                     ac_mid=`expr 2 '*' $ac_mid + 1`
28955 fi
28956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28957   done
28958 else
28959   echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28961
28962 cat >conftest.$ac_ext <<_ACEOF
28963 /* confdefs.h.  */
28964 _ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h.  */
28968 $ac_includes_default
28969 int
28970 main ()
28971 {
28972 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
28973 test_array [0] = 0
28974
28975   ;
28976   return 0;
28977 }
28978 _ACEOF
28979 rm -f conftest.$ac_objext
28980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28981   (eval $ac_compile) 2>conftest.er1
28982   ac_status=$?
28983   grep -v '^ *+' conftest.er1 >conftest.err
28984   rm -f conftest.er1
28985   cat conftest.err >&5
28986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987   (exit $ac_status); } &&
28988          { ac_try='test -z "$ac_c_werror_flag"
28989                          || test ! -s conftest.err'
28990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28991   (eval $ac_try) 2>&5
28992   ac_status=$?
28993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994   (exit $ac_status); }; } &&
28995          { ac_try='test -s conftest.$ac_objext'
28996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28997   (eval $ac_try) 2>&5
28998   ac_status=$?
28999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000   (exit $ac_status); }; }; then
29001   ac_hi=-1 ac_mid=-1
29002   while :; do
29003     cat >conftest.$ac_ext <<_ACEOF
29004 /* confdefs.h.  */
29005 _ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h.  */
29009 $ac_includes_default
29010 int
29011 main ()
29012 {
29013 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
29014 test_array [0] = 0
29015
29016   ;
29017   return 0;
29018 }
29019 _ACEOF
29020 rm -f conftest.$ac_objext
29021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29022   (eval $ac_compile) 2>conftest.er1
29023   ac_status=$?
29024   grep -v '^ *+' conftest.er1 >conftest.err
29025   rm -f conftest.er1
29026   cat conftest.err >&5
29027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028   (exit $ac_status); } &&
29029          { ac_try='test -z "$ac_c_werror_flag"
29030                          || test ! -s conftest.err'
29031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032   (eval $ac_try) 2>&5
29033   ac_status=$?
29034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035   (exit $ac_status); }; } &&
29036          { ac_try='test -s conftest.$ac_objext'
29037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29038   (eval $ac_try) 2>&5
29039   ac_status=$?
29040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041   (exit $ac_status); }; }; then
29042   ac_lo=$ac_mid; break
29043 else
29044   echo "$as_me: failed program was:" >&5
29045 sed 's/^/| /' conftest.$ac_ext >&5
29046
29047 ac_hi=`expr '(' $ac_mid ')' - 1`
29048                        if test $ac_mid -le $ac_hi; then
29049                          ac_lo= ac_hi=
29050                          break
29051                        fi
29052                        ac_mid=`expr 2 '*' $ac_mid`
29053 fi
29054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29055   done
29056 else
29057   echo "$as_me: failed program was:" >&5
29058 sed 's/^/| /' conftest.$ac_ext >&5
29059
29060 ac_lo= ac_hi=
29061 fi
29062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29063 fi
29064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29065 # Binary search between lo and hi bounds.
29066 while test "x$ac_lo" != "x$ac_hi"; do
29067   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29068   cat >conftest.$ac_ext <<_ACEOF
29069 /* confdefs.h.  */
29070 _ACEOF
29071 cat confdefs.h >>conftest.$ac_ext
29072 cat >>conftest.$ac_ext <<_ACEOF
29073 /* end confdefs.h.  */
29074 $ac_includes_default
29075 int
29076 main ()
29077 {
29078 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
29079 test_array [0] = 0
29080
29081   ;
29082   return 0;
29083 }
29084 _ACEOF
29085 rm -f conftest.$ac_objext
29086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29087   (eval $ac_compile) 2>conftest.er1
29088   ac_status=$?
29089   grep -v '^ *+' conftest.er1 >conftest.err
29090   rm -f conftest.er1
29091   cat conftest.err >&5
29092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093   (exit $ac_status); } &&
29094          { ac_try='test -z "$ac_c_werror_flag"
29095                          || test ! -s conftest.err'
29096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29097   (eval $ac_try) 2>&5
29098   ac_status=$?
29099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100   (exit $ac_status); }; } &&
29101          { ac_try='test -s conftest.$ac_objext'
29102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103   (eval $ac_try) 2>&5
29104   ac_status=$?
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); }; }; then
29107   ac_hi=$ac_mid
29108 else
29109   echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29111
29112 ac_lo=`expr '(' $ac_mid ')' + 1`
29113 fi
29114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29115 done
29116 case $ac_lo in
29117 ?*) ac_cv_sizeof_double=$ac_lo;;
29118 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
29119 See \`config.log' for more details." >&5
29120 echo "$as_me: error: cannot compute sizeof (double), 77
29121 See \`config.log' for more details." >&2;}
29122    { (exit 1); exit 1; }; } ;;
29123 esac
29124 else
29125   if test "$cross_compiling" = yes; then
29126   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29127 See \`config.log' for more details." >&5
29128 echo "$as_me: error: cannot run test program while cross compiling
29129 See \`config.log' for more details." >&2;}
29130    { (exit 1); exit 1; }; }
29131 else
29132   cat >conftest.$ac_ext <<_ACEOF
29133 /* confdefs.h.  */
29134 _ACEOF
29135 cat confdefs.h >>conftest.$ac_ext
29136 cat >>conftest.$ac_ext <<_ACEOF
29137 /* end confdefs.h.  */
29138 $ac_includes_default
29139 long longval () { return (long) (sizeof (double)); }
29140 unsigned long ulongval () { return (long) (sizeof (double)); }
29141 #include <stdio.h>
29142 #include <stdlib.h>
29143 int
29144 main ()
29145 {
29146
29147   FILE *f = fopen ("conftest.val", "w");
29148   if (! f)
29149     exit (1);
29150   if (((long) (sizeof (double))) < 0)
29151     {
29152       long i = longval ();
29153       if (i != ((long) (sizeof (double))))
29154         exit (1);
29155       fprintf (f, "%ld\n", i);
29156     }
29157   else
29158     {
29159       unsigned long i = ulongval ();
29160       if (i != ((long) (sizeof (double))))
29161         exit (1);
29162       fprintf (f, "%lu\n", i);
29163     }
29164   exit (ferror (f) || fclose (f) != 0);
29165
29166   ;
29167   return 0;
29168 }
29169 _ACEOF
29170 rm -f conftest$ac_exeext
29171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29172   (eval $ac_link) 2>&5
29173   ac_status=$?
29174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29177   (eval $ac_try) 2>&5
29178   ac_status=$?
29179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180   (exit $ac_status); }; }; then
29181   ac_cv_sizeof_double=`cat conftest.val`
29182 else
29183   echo "$as_me: program exited with status $ac_status" >&5
29184 echo "$as_me: failed program was:" >&5
29185 sed 's/^/| /' conftest.$ac_ext >&5
29186
29187 ( exit $ac_status )
29188 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
29189 See \`config.log' for more details." >&5
29190 echo "$as_me: error: cannot compute sizeof (double), 77
29191 See \`config.log' for more details." >&2;}
29192    { (exit 1); exit 1; }; }
29193 fi
29194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29195 fi
29196 fi
29197 rm -f conftest.val
29198 else
29199   ac_cv_sizeof_double=0
29200 fi
29201 fi
29202 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
29203 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
29204 cat >>confdefs.h <<_ACEOF
29205 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
29206 _ACEOF
29207
29208
29209         echo "$as_me:$LINENO: checking for uniquely sized double" >&5
29210 echo $ECHO_N "checking for uniquely sized double... $ECHO_C" >&6
29211 if test "${ccvs_cv_unique_float_type_double+set}" = set; then
29212   echo $ECHO_N "(cached) $ECHO_C" >&6
29213 else
29214   if set |grep ^ccvs_cv_unique_float_type_ \
29215                         |grep "($ac_cv_sizeof_double)" >/dev/null ; then
29216                         ccvs_cv_unique_float_type_double=no
29217                 else
29218                         ccvs_cv_unique_float_type_double=yes\($ac_cv_sizeof_double\)
29219                 fi
29220 fi
29221 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_double" >&5
29222 echo "${ECHO_T}$ccvs_cv_unique_float_type_double" >&6
29223         if test $ccvs_cv_unique_float_type_double != no ; then
29224
29225 cat >>confdefs.h <<\_ACEOF
29226 #define UNIQUE_FLOAT_TYPE_DOUBLE 1
29227 _ACEOF
29228
29229         fi
29230         if test $gt_cv_c_long_double != no; then
29231                 echo "$as_me:$LINENO: checking for long double" >&5
29232 echo $ECHO_N "checking for long double... $ECHO_C" >&6
29233 if test "${ac_cv_type_long_double+set}" = set; then
29234   echo $ECHO_N "(cached) $ECHO_C" >&6
29235 else
29236   cat >conftest.$ac_ext <<_ACEOF
29237 /* confdefs.h.  */
29238 _ACEOF
29239 cat confdefs.h >>conftest.$ac_ext
29240 cat >>conftest.$ac_ext <<_ACEOF
29241 /* end confdefs.h.  */
29242 $ac_includes_default
29243 int
29244 main ()
29245 {
29246 if ((long double *) 0)
29247   return 0;
29248 if (sizeof (long double))
29249   return 0;
29250   ;
29251   return 0;
29252 }
29253 _ACEOF
29254 rm -f conftest.$ac_objext
29255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29256   (eval $ac_compile) 2>conftest.er1
29257   ac_status=$?
29258   grep -v '^ *+' conftest.er1 >conftest.err
29259   rm -f conftest.er1
29260   cat conftest.err >&5
29261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262   (exit $ac_status); } &&
29263          { ac_try='test -z "$ac_c_werror_flag"
29264                          || test ! -s conftest.err'
29265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29266   (eval $ac_try) 2>&5
29267   ac_status=$?
29268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269   (exit $ac_status); }; } &&
29270          { ac_try='test -s conftest.$ac_objext'
29271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29272   (eval $ac_try) 2>&5
29273   ac_status=$?
29274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275   (exit $ac_status); }; }; then
29276   ac_cv_type_long_double=yes
29277 else
29278   echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29280
29281 ac_cv_type_long_double=no
29282 fi
29283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29284 fi
29285 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
29286 echo "${ECHO_T}$ac_cv_type_long_double" >&6
29287
29288 echo "$as_me:$LINENO: checking size of long double" >&5
29289 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
29290 if test "${ac_cv_sizeof_long_double+set}" = set; then
29291   echo $ECHO_N "(cached) $ECHO_C" >&6
29292 else
29293   if test "$ac_cv_type_long_double" = yes; then
29294   # The cast to unsigned long works around a bug in the HP C Compiler
29295   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29296   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29297   # This bug is HP SR number 8606223364.
29298   if test "$cross_compiling" = yes; then
29299   # Depending upon the size, compute the lo and hi bounds.
29300 cat >conftest.$ac_ext <<_ACEOF
29301 /* confdefs.h.  */
29302 _ACEOF
29303 cat confdefs.h >>conftest.$ac_ext
29304 cat >>conftest.$ac_ext <<_ACEOF
29305 /* end confdefs.h.  */
29306 $ac_includes_default
29307 int
29308 main ()
29309 {
29310 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
29311 test_array [0] = 0
29312
29313   ;
29314   return 0;
29315 }
29316 _ACEOF
29317 rm -f conftest.$ac_objext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29319   (eval $ac_compile) 2>conftest.er1
29320   ac_status=$?
29321   grep -v '^ *+' conftest.er1 >conftest.err
29322   rm -f conftest.er1
29323   cat conftest.err >&5
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); } &&
29326          { ac_try='test -z "$ac_c_werror_flag"
29327                          || test ! -s conftest.err'
29328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329   (eval $ac_try) 2>&5
29330   ac_status=$?
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); }; } &&
29333          { ac_try='test -s conftest.$ac_objext'
29334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335   (eval $ac_try) 2>&5
29336   ac_status=$?
29337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338   (exit $ac_status); }; }; then
29339   ac_lo=0 ac_mid=0
29340   while :; do
29341     cat >conftest.$ac_ext <<_ACEOF
29342 /* confdefs.h.  */
29343 _ACEOF
29344 cat confdefs.h >>conftest.$ac_ext
29345 cat >>conftest.$ac_ext <<_ACEOF
29346 /* end confdefs.h.  */
29347 $ac_includes_default
29348 int
29349 main ()
29350 {
29351 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
29352 test_array [0] = 0
29353
29354   ;
29355   return 0;
29356 }
29357 _ACEOF
29358 rm -f conftest.$ac_objext
29359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29360   (eval $ac_compile) 2>conftest.er1
29361   ac_status=$?
29362   grep -v '^ *+' conftest.er1 >conftest.err
29363   rm -f conftest.er1
29364   cat conftest.err >&5
29365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366   (exit $ac_status); } &&
29367          { ac_try='test -z "$ac_c_werror_flag"
29368                          || test ! -s conftest.err'
29369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29370   (eval $ac_try) 2>&5
29371   ac_status=$?
29372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373   (exit $ac_status); }; } &&
29374          { ac_try='test -s conftest.$ac_objext'
29375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29376   (eval $ac_try) 2>&5
29377   ac_status=$?
29378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379   (exit $ac_status); }; }; then
29380   ac_hi=$ac_mid; break
29381 else
29382   echo "$as_me: failed program was:" >&5
29383 sed 's/^/| /' conftest.$ac_ext >&5
29384
29385 ac_lo=`expr $ac_mid + 1`
29386                     if test $ac_lo -le $ac_mid; then
29387                       ac_lo= ac_hi=
29388                       break
29389                     fi
29390                     ac_mid=`expr 2 '*' $ac_mid + 1`
29391 fi
29392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29393   done
29394 else
29395   echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29397
29398 cat >conftest.$ac_ext <<_ACEOF
29399 /* confdefs.h.  */
29400 _ACEOF
29401 cat confdefs.h >>conftest.$ac_ext
29402 cat >>conftest.$ac_ext <<_ACEOF
29403 /* end confdefs.h.  */
29404 $ac_includes_default
29405 int
29406 main ()
29407 {
29408 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
29409 test_array [0] = 0
29410
29411   ;
29412   return 0;
29413 }
29414 _ACEOF
29415 rm -f conftest.$ac_objext
29416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29417   (eval $ac_compile) 2>conftest.er1
29418   ac_status=$?
29419   grep -v '^ *+' conftest.er1 >conftest.err
29420   rm -f conftest.er1
29421   cat conftest.err >&5
29422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423   (exit $ac_status); } &&
29424          { ac_try='test -z "$ac_c_werror_flag"
29425                          || test ! -s conftest.err'
29426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29427   (eval $ac_try) 2>&5
29428   ac_status=$?
29429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430   (exit $ac_status); }; } &&
29431          { ac_try='test -s conftest.$ac_objext'
29432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433   (eval $ac_try) 2>&5
29434   ac_status=$?
29435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436   (exit $ac_status); }; }; then
29437   ac_hi=-1 ac_mid=-1
29438   while :; do
29439     cat >conftest.$ac_ext <<_ACEOF
29440 /* confdefs.h.  */
29441 _ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h.  */
29445 $ac_includes_default
29446 int
29447 main ()
29448 {
29449 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
29450 test_array [0] = 0
29451
29452   ;
29453   return 0;
29454 }
29455 _ACEOF
29456 rm -f conftest.$ac_objext
29457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29458   (eval $ac_compile) 2>conftest.er1
29459   ac_status=$?
29460   grep -v '^ *+' conftest.er1 >conftest.err
29461   rm -f conftest.er1
29462   cat conftest.err >&5
29463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464   (exit $ac_status); } &&
29465          { ac_try='test -z "$ac_c_werror_flag"
29466                          || test ! -s conftest.err'
29467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29468   (eval $ac_try) 2>&5
29469   ac_status=$?
29470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471   (exit $ac_status); }; } &&
29472          { ac_try='test -s conftest.$ac_objext'
29473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474   (eval $ac_try) 2>&5
29475   ac_status=$?
29476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477   (exit $ac_status); }; }; then
29478   ac_lo=$ac_mid; break
29479 else
29480   echo "$as_me: failed program was:" >&5
29481 sed 's/^/| /' conftest.$ac_ext >&5
29482
29483 ac_hi=`expr '(' $ac_mid ')' - 1`
29484                        if test $ac_mid -le $ac_hi; then
29485                          ac_lo= ac_hi=
29486                          break
29487                        fi
29488                        ac_mid=`expr 2 '*' $ac_mid`
29489 fi
29490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29491   done
29492 else
29493   echo "$as_me: failed program was:" >&5
29494 sed 's/^/| /' conftest.$ac_ext >&5
29495
29496 ac_lo= ac_hi=
29497 fi
29498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29499 fi
29500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29501 # Binary search between lo and hi bounds.
29502 while test "x$ac_lo" != "x$ac_hi"; do
29503   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29504   cat >conftest.$ac_ext <<_ACEOF
29505 /* confdefs.h.  */
29506 _ACEOF
29507 cat confdefs.h >>conftest.$ac_ext
29508 cat >>conftest.$ac_ext <<_ACEOF
29509 /* end confdefs.h.  */
29510 $ac_includes_default
29511 int
29512 main ()
29513 {
29514 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
29515 test_array [0] = 0
29516
29517   ;
29518   return 0;
29519 }
29520 _ACEOF
29521 rm -f conftest.$ac_objext
29522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29523   (eval $ac_compile) 2>conftest.er1
29524   ac_status=$?
29525   grep -v '^ *+' conftest.er1 >conftest.err
29526   rm -f conftest.er1
29527   cat conftest.err >&5
29528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529   (exit $ac_status); } &&
29530          { ac_try='test -z "$ac_c_werror_flag"
29531                          || test ! -s conftest.err'
29532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29533   (eval $ac_try) 2>&5
29534   ac_status=$?
29535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536   (exit $ac_status); }; } &&
29537          { ac_try='test -s conftest.$ac_objext'
29538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539   (eval $ac_try) 2>&5
29540   ac_status=$?
29541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542   (exit $ac_status); }; }; then
29543   ac_hi=$ac_mid
29544 else
29545   echo "$as_me: failed program was:" >&5
29546 sed 's/^/| /' conftest.$ac_ext >&5
29547
29548 ac_lo=`expr '(' $ac_mid ')' + 1`
29549 fi
29550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29551 done
29552 case $ac_lo in
29553 ?*) ac_cv_sizeof_long_double=$ac_lo;;
29554 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
29555 See \`config.log' for more details." >&5
29556 echo "$as_me: error: cannot compute sizeof (long double), 77
29557 See \`config.log' for more details." >&2;}
29558    { (exit 1); exit 1; }; } ;;
29559 esac
29560 else
29561   if test "$cross_compiling" = yes; then
29562   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29563 See \`config.log' for more details." >&5
29564 echo "$as_me: error: cannot run test program while cross compiling
29565 See \`config.log' for more details." >&2;}
29566    { (exit 1); exit 1; }; }
29567 else
29568   cat >conftest.$ac_ext <<_ACEOF
29569 /* confdefs.h.  */
29570 _ACEOF
29571 cat confdefs.h >>conftest.$ac_ext
29572 cat >>conftest.$ac_ext <<_ACEOF
29573 /* end confdefs.h.  */
29574 $ac_includes_default
29575 long longval () { return (long) (sizeof (long double)); }
29576 unsigned long ulongval () { return (long) (sizeof (long double)); }
29577 #include <stdio.h>
29578 #include <stdlib.h>
29579 int
29580 main ()
29581 {
29582
29583   FILE *f = fopen ("conftest.val", "w");
29584   if (! f)
29585     exit (1);
29586   if (((long) (sizeof (long double))) < 0)
29587     {
29588       long i = longval ();
29589       if (i != ((long) (sizeof (long double))))
29590         exit (1);
29591       fprintf (f, "%ld\n", i);
29592     }
29593   else
29594     {
29595       unsigned long i = ulongval ();
29596       if (i != ((long) (sizeof (long double))))
29597         exit (1);
29598       fprintf (f, "%lu\n", i);
29599     }
29600   exit (ferror (f) || fclose (f) != 0);
29601
29602   ;
29603   return 0;
29604 }
29605 _ACEOF
29606 rm -f conftest$ac_exeext
29607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29608   (eval $ac_link) 2>&5
29609   ac_status=$?
29610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29613   (eval $ac_try) 2>&5
29614   ac_status=$?
29615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); }; }; then
29617   ac_cv_sizeof_long_double=`cat conftest.val`
29618 else
29619   echo "$as_me: program exited with status $ac_status" >&5
29620 echo "$as_me: failed program was:" >&5
29621 sed 's/^/| /' conftest.$ac_ext >&5
29622
29623 ( exit $ac_status )
29624 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
29625 See \`config.log' for more details." >&5
29626 echo "$as_me: error: cannot compute sizeof (long double), 77
29627 See \`config.log' for more details." >&2;}
29628    { (exit 1); exit 1; }; }
29629 fi
29630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29631 fi
29632 fi
29633 rm -f conftest.val
29634 else
29635   ac_cv_sizeof_long_double=0
29636 fi
29637 fi
29638 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
29639 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
29640 cat >>confdefs.h <<_ACEOF
29641 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
29642 _ACEOF
29643
29644
29645                 echo "$as_me:$LINENO: checking for uniquely sized long double" >&5
29646 echo $ECHO_N "checking for uniquely sized long double... $ECHO_C" >&6
29647 if test "${ccvs_cv_unique_float_type_long_double+set}" = set; then
29648   echo $ECHO_N "(cached) $ECHO_C" >&6
29649 else
29650   if set |grep ^ccvs_cv_unique_float_type_ \
29651                                 |grep "($ac_cv_sizeof_long_double)" >/dev/null ; then
29652                                 ccvs_cv_unique_float_type_long_double=no
29653                         else
29654                                 ccvs_cv_unique_float_type_long_double=yes\($ac_cv_sizeof_long_double\)
29655                         fi
29656 fi
29657 echo "$as_me:$LINENO: result: $ccvs_cv_unique_float_type_long_double" >&5
29658 echo "${ECHO_T}$ccvs_cv_unique_float_type_long_double" >&6
29659                 if test $ccvs_cv_unique_float_type_long_double != no ; then
29660
29661 cat >>confdefs.h <<\_ACEOF
29662 #define UNIQUE_FLOAT_TYPE_LONG_DOUBLE 1
29663 _ACEOF
29664
29665                 fi
29666         fi
29667 fi
29668
29669
29670 cat >>confdefs.h <<\_ACEOF
29671 #define HAVE_STRCHR 1
29672 _ACEOF
29673
29674
29675 cat >>confdefs.h <<\_ACEOF
29676 #define HAVE_MEMCHR 1
29677 _ACEOF
29678
29679
29680
29681 cat >>confdefs.h <<\_ACEOF
29682 #define REGEX_MALLOC 1
29683 _ACEOF
29684
29685
29686 cat >>confdefs.h <<\_ACEOF
29687 #define _REGEX_RE_COMP 1
29688 _ACEOF
29689
29690
29691
29692 for ac_header in unistd.h vfork.h
29693 do
29694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29696   echo "$as_me:$LINENO: checking for $ac_header" >&5
29697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29699   echo $ECHO_N "(cached) $ECHO_C" >&6
29700 fi
29701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29703 else
29704   # Is the header compilable?
29705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29707 cat >conftest.$ac_ext <<_ACEOF
29708 /* confdefs.h.  */
29709 _ACEOF
29710 cat confdefs.h >>conftest.$ac_ext
29711 cat >>conftest.$ac_ext <<_ACEOF
29712 /* end confdefs.h.  */
29713 $ac_includes_default
29714 #include <$ac_header>
29715 _ACEOF
29716 rm -f conftest.$ac_objext
29717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29718   (eval $ac_compile) 2>conftest.er1
29719   ac_status=$?
29720   grep -v '^ *+' conftest.er1 >conftest.err
29721   rm -f conftest.er1
29722   cat conftest.err >&5
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); } &&
29725          { ac_try='test -z "$ac_c_werror_flag"
29726                          || test ! -s conftest.err'
29727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728   (eval $ac_try) 2>&5
29729   ac_status=$?
29730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731   (exit $ac_status); }; } &&
29732          { ac_try='test -s conftest.$ac_objext'
29733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734   (eval $ac_try) 2>&5
29735   ac_status=$?
29736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737   (exit $ac_status); }; }; then
29738   ac_header_compiler=yes
29739 else
29740   echo "$as_me: failed program was:" >&5
29741 sed 's/^/| /' conftest.$ac_ext >&5
29742
29743 ac_header_compiler=no
29744 fi
29745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29747 echo "${ECHO_T}$ac_header_compiler" >&6
29748
29749 # Is the header present?
29750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29752 cat >conftest.$ac_ext <<_ACEOF
29753 /* confdefs.h.  */
29754 _ACEOF
29755 cat confdefs.h >>conftest.$ac_ext
29756 cat >>conftest.$ac_ext <<_ACEOF
29757 /* end confdefs.h.  */
29758 #include <$ac_header>
29759 _ACEOF
29760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29761   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29762   ac_status=$?
29763   grep -v '^ *+' conftest.er1 >conftest.err
29764   rm -f conftest.er1
29765   cat conftest.err >&5
29766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767   (exit $ac_status); } >/dev/null; then
29768   if test -s conftest.err; then
29769     ac_cpp_err=$ac_c_preproc_warn_flag
29770     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29771   else
29772     ac_cpp_err=
29773   fi
29774 else
29775   ac_cpp_err=yes
29776 fi
29777 if test -z "$ac_cpp_err"; then
29778   ac_header_preproc=yes
29779 else
29780   echo "$as_me: failed program was:" >&5
29781 sed 's/^/| /' conftest.$ac_ext >&5
29782
29783   ac_header_preproc=no
29784 fi
29785 rm -f conftest.err conftest.$ac_ext
29786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29787 echo "${ECHO_T}$ac_header_preproc" >&6
29788
29789 # So?  What about this header?
29790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29791   yes:no: )
29792     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29796     ac_header_preproc=yes
29797     ;;
29798   no:yes:* )
29799     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29801     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29802 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29803     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29805     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29806 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29809     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29811     (
29812       cat <<\_ASBOX
29813 ## ------------------------------ ##
29814 ## Report this to bug-cvs@gnu.org ##
29815 ## ------------------------------ ##
29816 _ASBOX
29817     ) |
29818       sed "s/^/$as_me: WARNING:     /" >&2
29819     ;;
29820 esac
29821 echo "$as_me:$LINENO: checking for $ac_header" >&5
29822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29824   echo $ECHO_N "(cached) $ECHO_C" >&6
29825 else
29826   eval "$as_ac_Header=\$ac_header_preproc"
29827 fi
29828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29830
29831 fi
29832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29833   cat >>confdefs.h <<_ACEOF
29834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29835 _ACEOF
29836
29837 fi
29838
29839 done
29840
29841
29842
29843 for ac_func in fork vfork
29844 do
29845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29846 echo "$as_me:$LINENO: checking for $ac_func" >&5
29847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29848 if eval "test \"\${$as_ac_var+set}\" = set"; then
29849   echo $ECHO_N "(cached) $ECHO_C" >&6
29850 else
29851   cat >conftest.$ac_ext <<_ACEOF
29852 /* confdefs.h.  */
29853 _ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h.  */
29857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29859 #define $ac_func innocuous_$ac_func
29860
29861 /* System header to define __stub macros and hopefully few prototypes,
29862     which can conflict with char $ac_func (); below.
29863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29864     <limits.h> exists even on freestanding compilers.  */
29865
29866 #ifdef __STDC__
29867 # include <limits.h>
29868 #else
29869 # include <assert.h>
29870 #endif
29871
29872 #undef $ac_func
29873
29874 /* Override any gcc2 internal prototype to avoid an error.  */
29875 #ifdef __cplusplus
29876 extern "C"
29877 {
29878 #endif
29879 /* We use char because int might match the return type of a gcc2
29880    builtin and then its argument prototype would still apply.  */
29881 char $ac_func ();
29882 /* The GNU C library defines this for functions which it implements
29883     to always fail with ENOSYS.  Some functions are actually named
29884     something starting with __ and the normal name is an alias.  */
29885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29886 choke me
29887 #else
29888 char (*f) () = $ac_func;
29889 #endif
29890 #ifdef __cplusplus
29891 }
29892 #endif
29893
29894 int
29895 main ()
29896 {
29897 return f != $ac_func;
29898   ;
29899   return 0;
29900 }
29901 _ACEOF
29902 rm -f conftest.$ac_objext conftest$ac_exeext
29903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29904   (eval $ac_link) 2>conftest.er1
29905   ac_status=$?
29906   grep -v '^ *+' conftest.er1 >conftest.err
29907   rm -f conftest.er1
29908   cat conftest.err >&5
29909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910   (exit $ac_status); } &&
29911          { ac_try='test -z "$ac_c_werror_flag"
29912                          || test ! -s conftest.err'
29913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29914   (eval $ac_try) 2>&5
29915   ac_status=$?
29916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917   (exit $ac_status); }; } &&
29918          { ac_try='test -s conftest$ac_exeext'
29919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29920   (eval $ac_try) 2>&5
29921   ac_status=$?
29922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923   (exit $ac_status); }; }; then
29924   eval "$as_ac_var=yes"
29925 else
29926   echo "$as_me: failed program was:" >&5
29927 sed 's/^/| /' conftest.$ac_ext >&5
29928
29929 eval "$as_ac_var=no"
29930 fi
29931 rm -f conftest.err conftest.$ac_objext \
29932       conftest$ac_exeext conftest.$ac_ext
29933 fi
29934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29936 if test `eval echo '${'$as_ac_var'}'` = yes; then
29937   cat >>confdefs.h <<_ACEOF
29938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29939 _ACEOF
29940
29941 fi
29942 done
29943
29944 if test "x$ac_cv_func_fork" = xyes; then
29945   echo "$as_me:$LINENO: checking for working fork" >&5
29946 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
29947 if test "${ac_cv_func_fork_works+set}" = set; then
29948   echo $ECHO_N "(cached) $ECHO_C" >&6
29949 else
29950   if test "$cross_compiling" = yes; then
29951   ac_cv_func_fork_works=cross
29952 else
29953   cat >conftest.$ac_ext <<_ACEOF
29954 /* By Ruediger Kuhlmann. */
29955       #include <sys/types.h>
29956       #if HAVE_UNISTD_H
29957       # include <unistd.h>
29958       #endif
29959       /* Some systems only have a dummy stub for fork() */
29960       int main ()
29961       {
29962         if (fork() < 0)
29963           exit (1);
29964         exit (0);
29965       }
29966 _ACEOF
29967 rm -f conftest$ac_exeext
29968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29969   (eval $ac_link) 2>&5
29970   ac_status=$?
29971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974   (eval $ac_try) 2>&5
29975   ac_status=$?
29976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977   (exit $ac_status); }; }; then
29978   ac_cv_func_fork_works=yes
29979 else
29980   echo "$as_me: program exited with status $ac_status" >&5
29981 echo "$as_me: failed program was:" >&5
29982 sed 's/^/| /' conftest.$ac_ext >&5
29983
29984 ( exit $ac_status )
29985 ac_cv_func_fork_works=no
29986 fi
29987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29988 fi
29989 fi
29990 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
29991 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
29992
29993 else
29994   ac_cv_func_fork_works=$ac_cv_func_fork
29995 fi
29996 if test "x$ac_cv_func_fork_works" = xcross; then
29997   case $host in
29998     *-*-amigaos* | *-*-msdosdjgpp*)
29999       # Override, as these systems have only a dummy fork() stub
30000       ac_cv_func_fork_works=no
30001       ;;
30002     *)
30003       ac_cv_func_fork_works=yes
30004       ;;
30005   esac
30006   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
30007 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
30008 fi
30009 ac_cv_func_vfork_works=$ac_cv_func_vfork
30010 if test "x$ac_cv_func_vfork" = xyes; then
30011   echo "$as_me:$LINENO: checking for working vfork" >&5
30012 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
30013 if test "${ac_cv_func_vfork_works+set}" = set; then
30014   echo $ECHO_N "(cached) $ECHO_C" >&6
30015 else
30016   if test "$cross_compiling" = yes; then
30017   ac_cv_func_vfork_works=cross
30018 else
30019   cat >conftest.$ac_ext <<_ACEOF
30020 /* confdefs.h.  */
30021 _ACEOF
30022 cat confdefs.h >>conftest.$ac_ext
30023 cat >>conftest.$ac_ext <<_ACEOF
30024 /* end confdefs.h.  */
30025 /* Thanks to Paul Eggert for this test.  */
30026 #include <stdio.h>
30027 #include <stdlib.h>
30028 #include <sys/types.h>
30029 #include <sys/stat.h>
30030 #include <sys/wait.h>
30031 #if HAVE_UNISTD_H
30032 # include <unistd.h>
30033 #endif
30034 #if HAVE_VFORK_H
30035 # include <vfork.h>
30036 #endif
30037 /* On some sparc systems, changes by the child to local and incoming
30038    argument registers are propagated back to the parent.  The compiler
30039    is told about this with #include <vfork.h>, but some compilers
30040    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
30041    static variable whose address is put into a register that is
30042    clobbered by the vfork.  */
30043 static void
30044 #ifdef __cplusplus
30045 sparc_address_test (int arg)
30046 # else
30047 sparc_address_test (arg) int arg;
30048 #endif
30049 {
30050   static pid_t child;
30051   if (!child) {
30052     child = vfork ();
30053     if (child < 0) {
30054       perror ("vfork");
30055       _exit(2);
30056     }
30057     if (!child) {
30058       arg = getpid();
30059       write(-1, "", 0);
30060       _exit (arg);
30061     }
30062   }
30063 }
30064
30065 int
30066 main ()
30067 {
30068   pid_t parent = getpid ();
30069   pid_t child;
30070
30071   sparc_address_test (0);
30072
30073   child = vfork ();
30074
30075   if (child == 0) {
30076     /* Here is another test for sparc vfork register problems.  This
30077        test uses lots of local variables, at least as many local
30078        variables as main has allocated so far including compiler
30079        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
30080        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
30081        reuse the register of parent for one of the local variables,
30082        since it will think that parent can't possibly be used any more
30083        in this routine.  Assigning to the local variable will thus
30084        munge parent in the parent process.  */
30085     pid_t
30086       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
30087       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
30088     /* Convince the compiler that p..p7 are live; otherwise, it might
30089        use the same hardware register for all 8 local variables.  */
30090     if (p != p1 || p != p2 || p != p3 || p != p4
30091         || p != p5 || p != p6 || p != p7)
30092       _exit(1);
30093
30094     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
30095        from child file descriptors.  If the child closes a descriptor
30096        before it execs or exits, this munges the parent's descriptor
30097        as well.  Test for this by closing stdout in the child.  */
30098     _exit(close(fileno(stdout)) != 0);
30099   } else {
30100     int status;
30101     struct stat st;
30102
30103     while (wait(&status) != child)
30104       ;
30105     exit(
30106          /* Was there some problem with vforking?  */
30107          child < 0
30108
30109          /* Did the child fail?  (This shouldn't happen.)  */
30110          || status
30111
30112          /* Did the vfork/compiler bug occur?  */
30113          || parent != getpid()
30114
30115          /* Did the file descriptor bug occur?  */
30116          || fstat(fileno(stdout), &st) != 0
30117          );
30118   }
30119 }
30120 _ACEOF
30121 rm -f conftest$ac_exeext
30122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30123   (eval $ac_link) 2>&5
30124   ac_status=$?
30125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30128   (eval $ac_try) 2>&5
30129   ac_status=$?
30130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131   (exit $ac_status); }; }; then
30132   ac_cv_func_vfork_works=yes
30133 else
30134   echo "$as_me: program exited with status $ac_status" >&5
30135 echo "$as_me: failed program was:" >&5
30136 sed 's/^/| /' conftest.$ac_ext >&5
30137
30138 ( exit $ac_status )
30139 ac_cv_func_vfork_works=no
30140 fi
30141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30142 fi
30143 fi
30144 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
30145 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
30146
30147 fi;
30148 if test "x$ac_cv_func_fork_works" = xcross; then
30149   ac_cv_func_vfork_works=$ac_cv_func_vfork
30150   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
30151 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
30152 fi
30153
30154 if test "x$ac_cv_func_vfork_works" = xyes; then
30155
30156 cat >>confdefs.h <<\_ACEOF
30157 #define HAVE_WORKING_VFORK 1
30158 _ACEOF
30159
30160 else
30161
30162 cat >>confdefs.h <<\_ACEOF
30163 #define vfork fork
30164 _ACEOF
30165
30166 fi
30167 if test "x$ac_cv_func_fork_works" = xyes; then
30168
30169 cat >>confdefs.h <<\_ACEOF
30170 #define HAVE_WORKING_FORK 1
30171 _ACEOF
30172
30173 fi
30174
30175 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
30176 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
30177 if test "${ac_cv_func_closedir_void+set}" = set; then
30178   echo $ECHO_N "(cached) $ECHO_C" >&6
30179 else
30180   if test "$cross_compiling" = yes; then
30181   ac_cv_func_closedir_void=yes
30182 else
30183   cat >conftest.$ac_ext <<_ACEOF
30184 /* confdefs.h.  */
30185 _ACEOF
30186 cat confdefs.h >>conftest.$ac_ext
30187 cat >>conftest.$ac_ext <<_ACEOF
30188 /* end confdefs.h.  */
30189 $ac_includes_default
30190 #include <$ac_header_dirent>
30191 #ifndef __cplusplus
30192 int closedir ();
30193 #endif
30194
30195 int
30196 main ()
30197 {
30198 exit (closedir (opendir (".")) != 0);
30199   ;
30200   return 0;
30201 }
30202 _ACEOF
30203 rm -f conftest$ac_exeext
30204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30205   (eval $ac_link) 2>&5
30206   ac_status=$?
30207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30210   (eval $ac_try) 2>&5
30211   ac_status=$?
30212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213   (exit $ac_status); }; }; then
30214   ac_cv_func_closedir_void=no
30215 else
30216   echo "$as_me: program exited with status $ac_status" >&5
30217 echo "$as_me: failed program was:" >&5
30218 sed 's/^/| /' conftest.$ac_ext >&5
30219
30220 ( exit $ac_status )
30221 ac_cv_func_closedir_void=yes
30222 fi
30223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30224 fi
30225 fi
30226 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
30227 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
30228 if test $ac_cv_func_closedir_void = yes; then
30229
30230 cat >>confdefs.h <<\_ACEOF
30231 #define CLOSEDIR_VOID 1
30232 _ACEOF
30233
30234 fi
30235
30236
30237 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
30238 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
30239 if test "${ac_cv_search_getspnam+set}" = set; then
30240   echo $ECHO_N "(cached) $ECHO_C" >&6
30241 else
30242   ac_func_search_save_LIBS=$LIBS
30243 ac_cv_search_getspnam=no
30244 cat >conftest.$ac_ext <<_ACEOF
30245 /* confdefs.h.  */
30246 _ACEOF
30247 cat confdefs.h >>conftest.$ac_ext
30248 cat >>conftest.$ac_ext <<_ACEOF
30249 /* end confdefs.h.  */
30250
30251 /* Override any gcc2 internal prototype to avoid an error.  */
30252 #ifdef __cplusplus
30253 extern "C"
30254 #endif
30255 /* We use char because int might match the return type of a gcc2
30256    builtin and then its argument prototype would still apply.  */
30257 char getspnam ();
30258 int
30259 main ()
30260 {
30261 getspnam ();
30262   ;
30263   return 0;
30264 }
30265 _ACEOF
30266 rm -f conftest.$ac_objext conftest$ac_exeext
30267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30268   (eval $ac_link) 2>conftest.er1
30269   ac_status=$?
30270   grep -v '^ *+' conftest.er1 >conftest.err
30271   rm -f conftest.er1
30272   cat conftest.err >&5
30273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274   (exit $ac_status); } &&
30275          { ac_try='test -z "$ac_c_werror_flag"
30276                          || test ! -s conftest.err'
30277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278   (eval $ac_try) 2>&5
30279   ac_status=$?
30280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281   (exit $ac_status); }; } &&
30282          { ac_try='test -s conftest$ac_exeext'
30283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30284   (eval $ac_try) 2>&5
30285   ac_status=$?
30286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287   (exit $ac_status); }; }; then
30288   ac_cv_search_getspnam="none required"
30289 else
30290   echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30292
30293 fi
30294 rm -f conftest.err conftest.$ac_objext \
30295       conftest$ac_exeext conftest.$ac_ext
30296 if test "$ac_cv_search_getspnam" = no; then
30297   for ac_lib in sec gen; do
30298     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30299     cat >conftest.$ac_ext <<_ACEOF
30300 /* confdefs.h.  */
30301 _ACEOF
30302 cat confdefs.h >>conftest.$ac_ext
30303 cat >>conftest.$ac_ext <<_ACEOF
30304 /* end confdefs.h.  */
30305
30306 /* Override any gcc2 internal prototype to avoid an error.  */
30307 #ifdef __cplusplus
30308 extern "C"
30309 #endif
30310 /* We use char because int might match the return type of a gcc2
30311    builtin and then its argument prototype would still apply.  */
30312 char getspnam ();
30313 int
30314 main ()
30315 {
30316 getspnam ();
30317   ;
30318   return 0;
30319 }
30320 _ACEOF
30321 rm -f conftest.$ac_objext conftest$ac_exeext
30322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30323   (eval $ac_link) 2>conftest.er1
30324   ac_status=$?
30325   grep -v '^ *+' conftest.er1 >conftest.err
30326   rm -f conftest.er1
30327   cat conftest.err >&5
30328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329   (exit $ac_status); } &&
30330          { ac_try='test -z "$ac_c_werror_flag"
30331                          || test ! -s conftest.err'
30332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30333   (eval $ac_try) 2>&5
30334   ac_status=$?
30335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336   (exit $ac_status); }; } &&
30337          { ac_try='test -s conftest$ac_exeext'
30338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30339   (eval $ac_try) 2>&5
30340   ac_status=$?
30341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342   (exit $ac_status); }; }; then
30343   ac_cv_search_getspnam="-l$ac_lib"
30344 break
30345 else
30346   echo "$as_me: failed program was:" >&5
30347 sed 's/^/| /' conftest.$ac_ext >&5
30348
30349 fi
30350 rm -f conftest.err conftest.$ac_objext \
30351       conftest$ac_exeext conftest.$ac_ext
30352   done
30353 fi
30354 LIBS=$ac_func_search_save_LIBS
30355 fi
30356 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
30357 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
30358 if test "$ac_cv_search_getspnam" != no; then
30359   test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
30360
30361 cat >>confdefs.h <<\_ACEOF
30362 #define HAVE_GETSPNAM 1
30363 _ACEOF
30364
30365 fi
30366
30367
30368 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
30369 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
30370 if test "${ac_cv_func_utime_null+set}" = set; then
30371   echo $ECHO_N "(cached) $ECHO_C" >&6
30372 else
30373   rm -f conftest.data; >conftest.data
30374 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
30375 if test "$cross_compiling" = yes; then
30376   ac_cv_func_utime_null=no
30377 else
30378   cat >conftest.$ac_ext <<_ACEOF
30379 /* confdefs.h.  */
30380 _ACEOF
30381 cat confdefs.h >>conftest.$ac_ext
30382 cat >>conftest.$ac_ext <<_ACEOF
30383 /* end confdefs.h.  */
30384 $ac_includes_default
30385 int
30386 main ()
30387 {
30388 struct stat s, t;
30389   exit (!(stat ("conftest.data", &s) == 0
30390           && utime ("conftest.data", (long *)0) == 0
30391           && stat ("conftest.data", &t) == 0
30392           && t.st_mtime >= s.st_mtime
30393           && t.st_mtime - s.st_mtime < 120));
30394   ;
30395   return 0;
30396 }
30397 _ACEOF
30398 rm -f conftest$ac_exeext
30399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30400   (eval $ac_link) 2>&5
30401   ac_status=$?
30402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30405   (eval $ac_try) 2>&5
30406   ac_status=$?
30407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408   (exit $ac_status); }; }; then
30409   ac_cv_func_utime_null=yes
30410 else
30411   echo "$as_me: program exited with status $ac_status" >&5
30412 echo "$as_me: failed program was:" >&5
30413 sed 's/^/| /' conftest.$ac_ext >&5
30414
30415 ( exit $ac_status )
30416 ac_cv_func_utime_null=no
30417 fi
30418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30419 fi
30420 rm -f core *.core
30421 fi
30422 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
30423 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
30424 if test $ac_cv_func_utime_null = yes; then
30425
30426 cat >>confdefs.h <<\_ACEOF
30427 #define HAVE_UTIME_NULL 1
30428 _ACEOF
30429
30430 fi
30431 rm -f conftest.data
30432
30433 echo "$as_me:$LINENO: checking for long file names" >&5
30434 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
30435 if test "${ac_cv_sys_long_file_names+set}" = set; then
30436   echo $ECHO_N "(cached) $ECHO_C" >&6
30437 else
30438   ac_cv_sys_long_file_names=yes
30439 # Test for long file names in all the places we know might matter:
30440 #      .                the current directory, where building will happen
30441 #      $prefix/lib      where we will be installing things
30442 #      $exec_prefix/lib likewise
30443 # eval it to expand exec_prefix.
30444 #      $TMPDIR          if set, where it might want to write temporary files
30445 # if $TMPDIR is not set:
30446 #      /tmp             where it might want to write temporary files
30447 #      /var/tmp         likewise
30448 #      /usr/tmp         likewise
30449 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
30450   ac_tmpdirs=$TMPDIR
30451 else
30452   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
30453 fi
30454 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
30455   test -d $ac_dir || continue
30456   test -w $ac_dir || continue # It is less confusing to not echo anything here.
30457   ac_xdir=$ac_dir/cf$$
30458   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
30459   ac_tf1=$ac_xdir/conftest9012345
30460   ac_tf2=$ac_xdir/conftest9012346
30461   (echo 1 >$ac_tf1) 2>/dev/null
30462   (echo 2 >$ac_tf2) 2>/dev/null
30463   ac_val=`cat $ac_tf1 2>/dev/null`
30464   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
30465     ac_cv_sys_long_file_names=no
30466     rm -rf $ac_xdir 2>/dev/null
30467     break
30468   fi
30469   rm -rf $ac_xdir 2>/dev/null
30470 done
30471 fi
30472 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
30473 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
30474 if test $ac_cv_sys_long_file_names = yes; then
30475
30476 cat >>confdefs.h <<\_ACEOF
30477 #define HAVE_LONG_FILE_NAMES 1
30478 _ACEOF
30479
30480 fi
30481
30482
30483
30484
30485 for ac_header in stdlib.h unistd.h
30486 do
30487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30489   echo "$as_me:$LINENO: checking for $ac_header" >&5
30490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30492   echo $ECHO_N "(cached) $ECHO_C" >&6
30493 fi
30494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30496 else
30497   # Is the header compilable?
30498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30500 cat >conftest.$ac_ext <<_ACEOF
30501 /* confdefs.h.  */
30502 _ACEOF
30503 cat confdefs.h >>conftest.$ac_ext
30504 cat >>conftest.$ac_ext <<_ACEOF
30505 /* end confdefs.h.  */
30506 $ac_includes_default
30507 #include <$ac_header>
30508 _ACEOF
30509 rm -f conftest.$ac_objext
30510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30511   (eval $ac_compile) 2>conftest.er1
30512   ac_status=$?
30513   grep -v '^ *+' conftest.er1 >conftest.err
30514   rm -f conftest.er1
30515   cat conftest.err >&5
30516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517   (exit $ac_status); } &&
30518          { ac_try='test -z "$ac_c_werror_flag"
30519                          || test ! -s conftest.err'
30520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30521   (eval $ac_try) 2>&5
30522   ac_status=$?
30523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524   (exit $ac_status); }; } &&
30525          { ac_try='test -s conftest.$ac_objext'
30526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30527   (eval $ac_try) 2>&5
30528   ac_status=$?
30529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530   (exit $ac_status); }; }; then
30531   ac_header_compiler=yes
30532 else
30533   echo "$as_me: failed program was:" >&5
30534 sed 's/^/| /' conftest.$ac_ext >&5
30535
30536 ac_header_compiler=no
30537 fi
30538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30540 echo "${ECHO_T}$ac_header_compiler" >&6
30541
30542 # Is the header present?
30543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30545 cat >conftest.$ac_ext <<_ACEOF
30546 /* confdefs.h.  */
30547 _ACEOF
30548 cat confdefs.h >>conftest.$ac_ext
30549 cat >>conftest.$ac_ext <<_ACEOF
30550 /* end confdefs.h.  */
30551 #include <$ac_header>
30552 _ACEOF
30553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30554   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30555   ac_status=$?
30556   grep -v '^ *+' conftest.er1 >conftest.err
30557   rm -f conftest.er1
30558   cat conftest.err >&5
30559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560   (exit $ac_status); } >/dev/null; then
30561   if test -s conftest.err; then
30562     ac_cpp_err=$ac_c_preproc_warn_flag
30563     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30564   else
30565     ac_cpp_err=
30566   fi
30567 else
30568   ac_cpp_err=yes
30569 fi
30570 if test -z "$ac_cpp_err"; then
30571   ac_header_preproc=yes
30572 else
30573   echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30575
30576   ac_header_preproc=no
30577 fi
30578 rm -f conftest.err conftest.$ac_ext
30579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30580 echo "${ECHO_T}$ac_header_preproc" >&6
30581
30582 # So?  What about this header?
30583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30584   yes:no: )
30585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30589     ac_header_preproc=yes
30590     ;;
30591   no:yes:* )
30592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30604     (
30605       cat <<\_ASBOX
30606 ## ------------------------------ ##
30607 ## Report this to bug-cvs@gnu.org ##
30608 ## ------------------------------ ##
30609 _ASBOX
30610     ) |
30611       sed "s/^/$as_me: WARNING:     /" >&2
30612     ;;
30613 esac
30614 echo "$as_me:$LINENO: checking for $ac_header" >&5
30615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30617   echo $ECHO_N "(cached) $ECHO_C" >&6
30618 else
30619   eval "$as_ac_Header=\$ac_header_preproc"
30620 fi
30621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30623
30624 fi
30625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30626   cat >>confdefs.h <<_ACEOF
30627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30628 _ACEOF
30629
30630 fi
30631
30632 done
30633
30634
30635 for ac_func in getpagesize
30636 do
30637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30638 echo "$as_me:$LINENO: checking for $ac_func" >&5
30639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30640 if eval "test \"\${$as_ac_var+set}\" = set"; then
30641   echo $ECHO_N "(cached) $ECHO_C" >&6
30642 else
30643   cat >conftest.$ac_ext <<_ACEOF
30644 /* confdefs.h.  */
30645 _ACEOF
30646 cat confdefs.h >>conftest.$ac_ext
30647 cat >>conftest.$ac_ext <<_ACEOF
30648 /* end confdefs.h.  */
30649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30651 #define $ac_func innocuous_$ac_func
30652
30653 /* System header to define __stub macros and hopefully few prototypes,
30654     which can conflict with char $ac_func (); below.
30655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30656     <limits.h> exists even on freestanding compilers.  */
30657
30658 #ifdef __STDC__
30659 # include <limits.h>
30660 #else
30661 # include <assert.h>
30662 #endif
30663
30664 #undef $ac_func
30665
30666 /* Override any gcc2 internal prototype to avoid an error.  */
30667 #ifdef __cplusplus
30668 extern "C"
30669 {
30670 #endif
30671 /* We use char because int might match the return type of a gcc2
30672    builtin and then its argument prototype would still apply.  */
30673 char $ac_func ();
30674 /* The GNU C library defines this for functions which it implements
30675     to always fail with ENOSYS.  Some functions are actually named
30676     something starting with __ and the normal name is an alias.  */
30677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30678 choke me
30679 #else
30680 char (*f) () = $ac_func;
30681 #endif
30682 #ifdef __cplusplus
30683 }
30684 #endif
30685
30686 int
30687 main ()
30688 {
30689 return f != $ac_func;
30690   ;
30691   return 0;
30692 }
30693 _ACEOF
30694 rm -f conftest.$ac_objext conftest$ac_exeext
30695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30696   (eval $ac_link) 2>conftest.er1
30697   ac_status=$?
30698   grep -v '^ *+' conftest.er1 >conftest.err
30699   rm -f conftest.er1
30700   cat conftest.err >&5
30701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702   (exit $ac_status); } &&
30703          { ac_try='test -z "$ac_c_werror_flag"
30704                          || test ! -s conftest.err'
30705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30706   (eval $ac_try) 2>&5
30707   ac_status=$?
30708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709   (exit $ac_status); }; } &&
30710          { ac_try='test -s conftest$ac_exeext'
30711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30712   (eval $ac_try) 2>&5
30713   ac_status=$?
30714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715   (exit $ac_status); }; }; then
30716   eval "$as_ac_var=yes"
30717 else
30718   echo "$as_me: failed program was:" >&5
30719 sed 's/^/| /' conftest.$ac_ext >&5
30720
30721 eval "$as_ac_var=no"
30722 fi
30723 rm -f conftest.err conftest.$ac_objext \
30724       conftest$ac_exeext conftest.$ac_ext
30725 fi
30726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30728 if test `eval echo '${'$as_ac_var'}'` = yes; then
30729   cat >>confdefs.h <<_ACEOF
30730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30731 _ACEOF
30732
30733 fi
30734 done
30735
30736 echo "$as_me:$LINENO: checking for working mmap" >&5
30737 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30738 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30739   echo $ECHO_N "(cached) $ECHO_C" >&6
30740 else
30741   if test "$cross_compiling" = yes; then
30742   ac_cv_func_mmap_fixed_mapped=no
30743 else
30744   cat >conftest.$ac_ext <<_ACEOF
30745 /* confdefs.h.  */
30746 _ACEOF
30747 cat confdefs.h >>conftest.$ac_ext
30748 cat >>conftest.$ac_ext <<_ACEOF
30749 /* end confdefs.h.  */
30750 $ac_includes_default
30751 /* malloc might have been renamed as rpl_malloc. */
30752 #undef malloc
30753
30754 /* Thanks to Mike Haertel and Jim Avera for this test.
30755    Here is a matrix of mmap possibilities:
30756         mmap private not fixed
30757         mmap private fixed at somewhere currently unmapped
30758         mmap private fixed at somewhere already mapped
30759         mmap shared not fixed
30760         mmap shared fixed at somewhere currently unmapped
30761         mmap shared fixed at somewhere already mapped
30762    For private mappings, we should verify that changes cannot be read()
30763    back from the file, nor mmap's back from the file at a different
30764    address.  (There have been systems where private was not correctly
30765    implemented like the infamous i386 svr4.0, and systems where the
30766    VM page cache was not coherent with the file system buffer cache
30767    like early versions of FreeBSD and possibly contemporary NetBSD.)
30768    For shared mappings, we should conversely verify that changes get
30769    propagated back to all the places they're supposed to be.
30770
30771    Grep wants private fixed already mapped.
30772    The main things grep needs to know about mmap are:
30773    * does it exist and is it safe to write into the mmap'd area
30774    * how to use it (BSD variants)  */
30775
30776 #include <fcntl.h>
30777 #include <sys/mman.h>
30778
30779 #if !STDC_HEADERS && !HAVE_STDLIB_H
30780 char *malloc ();
30781 #endif
30782
30783 /* This mess was copied from the GNU getpagesize.h.  */
30784 #if !HAVE_GETPAGESIZE
30785 /* Assume that all systems that can run configure have sys/param.h.  */
30786 # if !HAVE_SYS_PARAM_H
30787 #  define HAVE_SYS_PARAM_H 1
30788 # endif
30789
30790 # ifdef _SC_PAGESIZE
30791 #  define getpagesize() sysconf(_SC_PAGESIZE)
30792 # else /* no _SC_PAGESIZE */
30793 #  if HAVE_SYS_PARAM_H
30794 #   include <sys/param.h>
30795 #   ifdef EXEC_PAGESIZE
30796 #    define getpagesize() EXEC_PAGESIZE
30797 #   else /* no EXEC_PAGESIZE */
30798 #    ifdef NBPG
30799 #     define getpagesize() NBPG * CLSIZE
30800 #     ifndef CLSIZE
30801 #      define CLSIZE 1
30802 #     endif /* no CLSIZE */
30803 #    else /* no NBPG */
30804 #     ifdef NBPC
30805 #      define getpagesize() NBPC
30806 #     else /* no NBPC */
30807 #      ifdef PAGESIZE
30808 #       define getpagesize() PAGESIZE
30809 #      endif /* PAGESIZE */
30810 #     endif /* no NBPC */
30811 #    endif /* no NBPG */
30812 #   endif /* no EXEC_PAGESIZE */
30813 #  else /* no HAVE_SYS_PARAM_H */
30814 #   define getpagesize() 8192   /* punt totally */
30815 #  endif /* no HAVE_SYS_PARAM_H */
30816 # endif /* no _SC_PAGESIZE */
30817
30818 #endif /* no HAVE_GETPAGESIZE */
30819
30820 int
30821 main ()
30822 {
30823   char *data, *data2, *data3;
30824   int i, pagesize;
30825   int fd;
30826
30827   pagesize = getpagesize ();
30828
30829   /* First, make a file with some known garbage in it. */
30830   data = (char *) malloc (pagesize);
30831   if (!data)
30832     exit (1);
30833   for (i = 0; i < pagesize; ++i)
30834     *(data + i) = rand ();
30835   umask (0);
30836   fd = creat ("conftest.mmap", 0600);
30837   if (fd < 0)
30838     exit (1);
30839   if (write (fd, data, pagesize) != pagesize)
30840     exit (1);
30841   close (fd);
30842
30843   /* Next, try to mmap the file at a fixed address which already has
30844      something else allocated at it.  If we can, also make sure that
30845      we see the same garbage.  */
30846   fd = open ("conftest.mmap", O_RDWR);
30847   if (fd < 0)
30848     exit (1);
30849   data2 = (char *) malloc (2 * pagesize);
30850   if (!data2)
30851     exit (1);
30852   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30853   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30854                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30855     exit (1);
30856   for (i = 0; i < pagesize; ++i)
30857     if (*(data + i) != *(data2 + i))
30858       exit (1);
30859
30860   /* Finally, make sure that changes to the mapped area do not
30861      percolate back to the file as seen by read().  (This is a bug on
30862      some variants of i386 svr4.0.)  */
30863   for (i = 0; i < pagesize; ++i)
30864     *(data2 + i) = *(data2 + i) + 1;
30865   data3 = (char *) malloc (pagesize);
30866   if (!data3)
30867     exit (1);
30868   if (read (fd, data3, pagesize) != pagesize)
30869     exit (1);
30870   for (i = 0; i < pagesize; ++i)
30871     if (*(data + i) != *(data3 + i))
30872       exit (1);
30873   close (fd);
30874   exit (0);
30875 }
30876 _ACEOF
30877 rm -f conftest$ac_exeext
30878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30879   (eval $ac_link) 2>&5
30880   ac_status=$?
30881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30884   (eval $ac_try) 2>&5
30885   ac_status=$?
30886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887   (exit $ac_status); }; }; then
30888   ac_cv_func_mmap_fixed_mapped=yes
30889 else
30890   echo "$as_me: program exited with status $ac_status" >&5
30891 echo "$as_me: failed program was:" >&5
30892 sed 's/^/| /' conftest.$ac_ext >&5
30893
30894 ( exit $ac_status )
30895 ac_cv_func_mmap_fixed_mapped=no
30896 fi
30897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30898 fi
30899 fi
30900 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30901 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30902 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30903
30904 cat >>confdefs.h <<\_ACEOF
30905 #define HAVE_MMAP 1
30906 _ACEOF
30907
30908 fi
30909 rm -f conftest.mmap
30910
30911
30912 echo "$as_me:$LINENO: checking whether printf supports %p" >&5
30913 echo $ECHO_N "checking whether printf supports %p... $ECHO_C" >&6
30914 if test "${cvs_cv_func_printf_ptr+set}" = set; then
30915   echo $ECHO_N "(cached) $ECHO_C" >&6
30916 else
30917   if test "$cross_compiling" = yes; then
30918   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30919 See \`config.log' for more details." >&5
30920 echo "$as_me: error: cannot run test program while cross compiling
30921 See \`config.log' for more details." >&2;}
30922    { (exit 1); exit 1; }; }
30923 else
30924   cat >conftest.$ac_ext <<_ACEOF
30925 /* confdefs.h.  */
30926 _ACEOF
30927 cat confdefs.h >>conftest.$ac_ext
30928 cat >>conftest.$ac_ext <<_ACEOF
30929 /* end confdefs.h.  */
30930 #include <stdio.h>
30931 /* If printf supports %p, exit 0. */
30932 int
30933 main ()
30934 {
30935   void *p1, *p2;
30936   char buf[256];
30937   p1 = &p1; p2 = &p2;
30938   sprintf(buf, "%p", p1);
30939   exit(sscanf(buf, "%p", &p2) != 1 || p2 != p1);
30940 }
30941 _ACEOF
30942 rm -f conftest$ac_exeext
30943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30944   (eval $ac_link) 2>&5
30945   ac_status=$?
30946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30949   (eval $ac_try) 2>&5
30950   ac_status=$?
30951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952   (exit $ac_status); }; }; then
30953   cvs_cv_func_printf_ptr=yes
30954 else
30955   echo "$as_me: program exited with status $ac_status" >&5
30956 echo "$as_me: failed program was:" >&5
30957 sed 's/^/| /' conftest.$ac_ext >&5
30958
30959 ( exit $ac_status )
30960 cvs_cv_func_printf_ptr=no
30961 fi
30962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30963 fi
30964 rm -f core core.* *.core
30965 fi
30966 echo "$as_me:$LINENO: result: $cvs_cv_func_printf_ptr" >&5
30967 echo "${ECHO_T}$cvs_cv_func_printf_ptr" >&6
30968 if test $cvs_cv_func_printf_ptr = yes; then
30969
30970 cat >>confdefs.h <<\_ACEOF
30971 #define HAVE_PRINTF_PTR 1
30972 _ACEOF
30973
30974 fi
30975
30976
30977 # Try to find connect and gethostbyname.
30978
30979 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
30980 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
30981 if test "${ac_cv_lib_nsl_main+set}" = set; then
30982   echo $ECHO_N "(cached) $ECHO_C" >&6
30983 else
30984   ac_check_lib_save_LIBS=$LIBS
30985 LIBS="-lnsl  $LIBS"
30986 cat >conftest.$ac_ext <<_ACEOF
30987 /* confdefs.h.  */
30988 _ACEOF
30989 cat confdefs.h >>conftest.$ac_ext
30990 cat >>conftest.$ac_ext <<_ACEOF
30991 /* end confdefs.h.  */
30992
30993
30994 int
30995 main ()
30996 {
30997 main ();
30998   ;
30999   return 0;
31000 }
31001 _ACEOF
31002 rm -f conftest.$ac_objext conftest$ac_exeext
31003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31004   (eval $ac_link) 2>conftest.er1
31005   ac_status=$?
31006   grep -v '^ *+' conftest.er1 >conftest.err
31007   rm -f conftest.er1
31008   cat conftest.err >&5
31009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010   (exit $ac_status); } &&
31011          { ac_try='test -z "$ac_c_werror_flag"
31012                          || test ! -s conftest.err'
31013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014   (eval $ac_try) 2>&5
31015   ac_status=$?
31016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017   (exit $ac_status); }; } &&
31018          { ac_try='test -s conftest$ac_exeext'
31019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31020   (eval $ac_try) 2>&5
31021   ac_status=$?
31022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023   (exit $ac_status); }; }; then
31024   ac_cv_lib_nsl_main=yes
31025 else
31026   echo "$as_me: failed program was:" >&5
31027 sed 's/^/| /' conftest.$ac_ext >&5
31028
31029 ac_cv_lib_nsl_main=no
31030 fi
31031 rm -f conftest.err conftest.$ac_objext \
31032       conftest$ac_exeext conftest.$ac_ext
31033 LIBS=$ac_check_lib_save_LIBS
31034 fi
31035 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
31036 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
31037 if test $ac_cv_lib_nsl_main = yes; then
31038   cat >>confdefs.h <<_ACEOF
31039 #define HAVE_LIBNSL 1
31040 _ACEOF
31041
31042   LIBS="-lnsl $LIBS"
31043
31044 fi
31045
31046 echo "$as_me:$LINENO: checking for library containing connect" >&5
31047 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
31048 if test "${ac_cv_search_connect+set}" = set; then
31049   echo $ECHO_N "(cached) $ECHO_C" >&6
31050 else
31051   ac_func_search_save_LIBS=$LIBS
31052 ac_cv_search_connect=no
31053 cat >conftest.$ac_ext <<_ACEOF
31054 /* confdefs.h.  */
31055 _ACEOF
31056 cat confdefs.h >>conftest.$ac_ext
31057 cat >>conftest.$ac_ext <<_ACEOF
31058 /* end confdefs.h.  */
31059
31060 /* Override any gcc2 internal prototype to avoid an error.  */
31061 #ifdef __cplusplus
31062 extern "C"
31063 #endif
31064 /* We use char because int might match the return type of a gcc2
31065    builtin and then its argument prototype would still apply.  */
31066 char connect ();
31067 int
31068 main ()
31069 {
31070 connect ();
31071   ;
31072   return 0;
31073 }
31074 _ACEOF
31075 rm -f conftest.$ac_objext conftest$ac_exeext
31076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31077   (eval $ac_link) 2>conftest.er1
31078   ac_status=$?
31079   grep -v '^ *+' conftest.er1 >conftest.err
31080   rm -f conftest.er1
31081   cat conftest.err >&5
31082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083   (exit $ac_status); } &&
31084          { ac_try='test -z "$ac_c_werror_flag"
31085                          || test ! -s conftest.err'
31086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31087   (eval $ac_try) 2>&5
31088   ac_status=$?
31089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090   (exit $ac_status); }; } &&
31091          { ac_try='test -s conftest$ac_exeext'
31092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31093   (eval $ac_try) 2>&5
31094   ac_status=$?
31095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096   (exit $ac_status); }; }; then
31097   ac_cv_search_connect="none required"
31098 else
31099   echo "$as_me: failed program was:" >&5
31100 sed 's/^/| /' conftest.$ac_ext >&5
31101
31102 fi
31103 rm -f conftest.err conftest.$ac_objext \
31104       conftest$ac_exeext conftest.$ac_ext
31105 if test "$ac_cv_search_connect" = no; then
31106   for ac_lib in xnet socket inet; do
31107     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31108     cat >conftest.$ac_ext <<_ACEOF
31109 /* confdefs.h.  */
31110 _ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h.  */
31114
31115 /* Override any gcc2 internal prototype to avoid an error.  */
31116 #ifdef __cplusplus
31117 extern "C"
31118 #endif
31119 /* We use char because int might match the return type of a gcc2
31120    builtin and then its argument prototype would still apply.  */
31121 char connect ();
31122 int
31123 main ()
31124 {
31125 connect ();
31126   ;
31127   return 0;
31128 }
31129 _ACEOF
31130 rm -f conftest.$ac_objext conftest$ac_exeext
31131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31132   (eval $ac_link) 2>conftest.er1
31133   ac_status=$?
31134   grep -v '^ *+' conftest.er1 >conftest.err
31135   rm -f conftest.er1
31136   cat conftest.err >&5
31137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138   (exit $ac_status); } &&
31139          { ac_try='test -z "$ac_c_werror_flag"
31140                          || test ! -s conftest.err'
31141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31142   (eval $ac_try) 2>&5
31143   ac_status=$?
31144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145   (exit $ac_status); }; } &&
31146          { ac_try='test -s conftest$ac_exeext'
31147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31148   (eval $ac_try) 2>&5
31149   ac_status=$?
31150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151   (exit $ac_status); }; }; then
31152   ac_cv_search_connect="-l$ac_lib"
31153 break
31154 else
31155   echo "$as_me: failed program was:" >&5
31156 sed 's/^/| /' conftest.$ac_ext >&5
31157
31158 fi
31159 rm -f conftest.err conftest.$ac_objext \
31160       conftest$ac_exeext conftest.$ac_ext
31161   done
31162 fi
31163 LIBS=$ac_func_search_save_LIBS
31164 fi
31165 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
31166 echo "${ECHO_T}$ac_cv_search_connect" >&6
31167 if test "$ac_cv_search_connect" != no; then
31168   test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
31169
31170 cat >>confdefs.h <<\_ACEOF
31171 #define HAVE_CONNECT 1
31172 _ACEOF
31173
31174 fi
31175
31176 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
31177 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
31178 if test "${ac_cv_search_gethostbyname+set}" = set; then
31179   echo $ECHO_N "(cached) $ECHO_C" >&6
31180 else
31181   ac_func_search_save_LIBS=$LIBS
31182 ac_cv_search_gethostbyname=no
31183 cat >conftest.$ac_ext <<_ACEOF
31184 /* confdefs.h.  */
31185 _ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h.  */
31189
31190 /* Override any gcc2 internal prototype to avoid an error.  */
31191 #ifdef __cplusplus
31192 extern "C"
31193 #endif
31194 /* We use char because int might match the return type of a gcc2
31195    builtin and then its argument prototype would still apply.  */
31196 char gethostbyname ();
31197 int
31198 main ()
31199 {
31200 gethostbyname ();
31201   ;
31202   return 0;
31203 }
31204 _ACEOF
31205 rm -f conftest.$ac_objext conftest$ac_exeext
31206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31207   (eval $ac_link) 2>conftest.er1
31208   ac_status=$?
31209   grep -v '^ *+' conftest.er1 >conftest.err
31210   rm -f conftest.er1
31211   cat conftest.err >&5
31212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213   (exit $ac_status); } &&
31214          { ac_try='test -z "$ac_c_werror_flag"
31215                          || test ! -s conftest.err'
31216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31217   (eval $ac_try) 2>&5
31218   ac_status=$?
31219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220   (exit $ac_status); }; } &&
31221          { ac_try='test -s conftest$ac_exeext'
31222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31223   (eval $ac_try) 2>&5
31224   ac_status=$?
31225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226   (exit $ac_status); }; }; then
31227   ac_cv_search_gethostbyname="none required"
31228 else
31229   echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.$ac_ext >&5
31231
31232 fi
31233 rm -f conftest.err conftest.$ac_objext \
31234       conftest$ac_exeext conftest.$ac_ext
31235 if test "$ac_cv_search_gethostbyname" = no; then
31236   for ac_lib in netinet; do
31237     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31238     cat >conftest.$ac_ext <<_ACEOF
31239 /* confdefs.h.  */
31240 _ACEOF
31241 cat confdefs.h >>conftest.$ac_ext
31242 cat >>conftest.$ac_ext <<_ACEOF
31243 /* end confdefs.h.  */
31244
31245 /* Override any gcc2 internal prototype to avoid an error.  */
31246 #ifdef __cplusplus
31247 extern "C"
31248 #endif
31249 /* We use char because int might match the return type of a gcc2
31250    builtin and then its argument prototype would still apply.  */
31251 char gethostbyname ();
31252 int
31253 main ()
31254 {
31255 gethostbyname ();
31256   ;
31257   return 0;
31258 }
31259 _ACEOF
31260 rm -f conftest.$ac_objext conftest$ac_exeext
31261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31262   (eval $ac_link) 2>conftest.er1
31263   ac_status=$?
31264   grep -v '^ *+' conftest.er1 >conftest.err
31265   rm -f conftest.er1
31266   cat conftest.err >&5
31267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268   (exit $ac_status); } &&
31269          { ac_try='test -z "$ac_c_werror_flag"
31270                          || test ! -s conftest.err'
31271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31272   (eval $ac_try) 2>&5
31273   ac_status=$?
31274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275   (exit $ac_status); }; } &&
31276          { ac_try='test -s conftest$ac_exeext'
31277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31278   (eval $ac_try) 2>&5
31279   ac_status=$?
31280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281   (exit $ac_status); }; }; then
31282   ac_cv_search_gethostbyname="-l$ac_lib"
31283 break
31284 else
31285   echo "$as_me: failed program was:" >&5
31286 sed 's/^/| /' conftest.$ac_ext >&5
31287
31288 fi
31289 rm -f conftest.err conftest.$ac_objext \
31290       conftest$ac_exeext conftest.$ac_ext
31291   done
31292 fi
31293 LIBS=$ac_func_search_save_LIBS
31294 fi
31295 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
31296 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
31297 if test "$ac_cv_search_gethostbyname" != no; then
31298   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
31299
31300 fi
31301
31302
31303 echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
31304 echo $ECHO_N "checking for library containing hstrerror... $ECHO_C" >&6
31305 if test "${ac_cv_search_hstrerror+set}" = set; then
31306   echo $ECHO_N "(cached) $ECHO_C" >&6
31307 else
31308   ac_func_search_save_LIBS=$LIBS
31309 ac_cv_search_hstrerror=no
31310 cat >conftest.$ac_ext <<_ACEOF
31311 /* confdefs.h.  */
31312 _ACEOF
31313 cat confdefs.h >>conftest.$ac_ext
31314 cat >>conftest.$ac_ext <<_ACEOF
31315 /* end confdefs.h.  */
31316
31317 /* Override any gcc2 internal prototype to avoid an error.  */
31318 #ifdef __cplusplus
31319 extern "C"
31320 #endif
31321 /* We use char because int might match the return type of a gcc2
31322    builtin and then its argument prototype would still apply.  */
31323 char hstrerror ();
31324 int
31325 main ()
31326 {
31327 hstrerror ();
31328   ;
31329   return 0;
31330 }
31331 _ACEOF
31332 rm -f conftest.$ac_objext conftest$ac_exeext
31333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31334   (eval $ac_link) 2>conftest.er1
31335   ac_status=$?
31336   grep -v '^ *+' conftest.er1 >conftest.err
31337   rm -f conftest.er1
31338   cat conftest.err >&5
31339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340   (exit $ac_status); } &&
31341          { ac_try='test -z "$ac_c_werror_flag"
31342                          || test ! -s conftest.err'
31343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31344   (eval $ac_try) 2>&5
31345   ac_status=$?
31346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347   (exit $ac_status); }; } &&
31348          { ac_try='test -s conftest$ac_exeext'
31349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31350   (eval $ac_try) 2>&5
31351   ac_status=$?
31352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353   (exit $ac_status); }; }; then
31354   ac_cv_search_hstrerror="none required"
31355 else
31356   echo "$as_me: failed program was:" >&5
31357 sed 's/^/| /' conftest.$ac_ext >&5
31358
31359 fi
31360 rm -f conftest.err conftest.$ac_objext \
31361       conftest$ac_exeext conftest.$ac_ext
31362 if test "$ac_cv_search_hstrerror" = no; then
31363   for ac_lib in resolv; do
31364     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31365     cat >conftest.$ac_ext <<_ACEOF
31366 /* confdefs.h.  */
31367 _ACEOF
31368 cat confdefs.h >>conftest.$ac_ext
31369 cat >>conftest.$ac_ext <<_ACEOF
31370 /* end confdefs.h.  */
31371
31372 /* Override any gcc2 internal prototype to avoid an error.  */
31373 #ifdef __cplusplus
31374 extern "C"
31375 #endif
31376 /* We use char because int might match the return type of a gcc2
31377    builtin and then its argument prototype would still apply.  */
31378 char hstrerror ();
31379 int
31380 main ()
31381 {
31382 hstrerror ();
31383   ;
31384   return 0;
31385 }
31386 _ACEOF
31387 rm -f conftest.$ac_objext conftest$ac_exeext
31388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31389   (eval $ac_link) 2>conftest.er1
31390   ac_status=$?
31391   grep -v '^ *+' conftest.er1 >conftest.err
31392   rm -f conftest.er1
31393   cat conftest.err >&5
31394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395   (exit $ac_status); } &&
31396          { ac_try='test -z "$ac_c_werror_flag"
31397                          || test ! -s conftest.err'
31398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31399   (eval $ac_try) 2>&5
31400   ac_status=$?
31401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402   (exit $ac_status); }; } &&
31403          { ac_try='test -s conftest$ac_exeext'
31404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31405   (eval $ac_try) 2>&5
31406   ac_status=$?
31407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408   (exit $ac_status); }; }; then
31409   ac_cv_search_hstrerror="-l$ac_lib"
31410 break
31411 else
31412   echo "$as_me: failed program was:" >&5
31413 sed 's/^/| /' conftest.$ac_ext >&5
31414
31415 fi
31416 rm -f conftest.err conftest.$ac_objext \
31417       conftest$ac_exeext conftest.$ac_ext
31418   done
31419 fi
31420 LIBS=$ac_func_search_save_LIBS
31421 fi
31422 echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5
31423 echo "${ECHO_T}$ac_cv_search_hstrerror" >&6
31424 if test "$ac_cv_search_hstrerror" != no; then
31425   test "$ac_cv_search_hstrerror" = "none required" || LIBS="$ac_cv_search_hstrerror $LIBS"
31426
31427 cat >>confdefs.h <<\_ACEOF
31428 #define HAVE_HSTRERROR 1
31429 _ACEOF
31430
31431 fi
31432
31433
31434
31435
31436
31437
31438 KRB4=/usr/kerberos
31439
31440
31441 # Check whether --with-krb4 or --without-krb4 was given.
31442 if test "${with_krb4+set}" = set; then
31443   withval="$with_krb4"
31444   KRB4=$with_krb4
31445 fi; echo "$as_me:$LINENO: checking for KRB4 in $KRB4" >&5
31446 echo $ECHO_N "checking for KRB4 in $KRB4... $ECHO_C" >&6
31447 echo "$as_me:$LINENO: result: " >&5
31448 echo "${ECHO_T}" >&6
31449
31450
31451 krb_h=
31452 echo "$as_me:$LINENO: checking for krb.h" >&5
31453 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
31454 if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
31455    hold_cflags=$CFLAGS
31456    CFLAGS="$CFLAGS -I$KRB4/include"
31457    cat >conftest.$ac_ext <<_ACEOF
31458 /* confdefs.h.  */
31459 _ACEOF
31460 cat confdefs.h >>conftest.$ac_ext
31461 cat >>conftest.$ac_ext <<_ACEOF
31462 /* end confdefs.h.  */
31463 #include <krb.h>
31464 int
31465 main ()
31466 {
31467 int i;
31468   ;
31469   return 0;
31470 }
31471 _ACEOF
31472 rm -f conftest.$ac_objext conftest$ac_exeext
31473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31474   (eval $ac_link) 2>conftest.er1
31475   ac_status=$?
31476   grep -v '^ *+' conftest.er1 >conftest.err
31477   rm -f conftest.er1
31478   cat conftest.err >&5
31479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480   (exit $ac_status); } &&
31481          { ac_try='test -z "$ac_c_werror_flag"
31482                          || test ! -s conftest.err'
31483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31484   (eval $ac_try) 2>&5
31485   ac_status=$?
31486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487   (exit $ac_status); }; } &&
31488          { ac_try='test -s conftest$ac_exeext'
31489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31490   (eval $ac_try) 2>&5
31491   ac_status=$?
31492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493   (exit $ac_status); }; }; then
31494   krb_h=yes krb_incdir=$KRB4/include
31495 else
31496   echo "$as_me: failed program was:" >&5
31497 sed 's/^/| /' conftest.$ac_ext >&5
31498
31499 CFLAGS=$hold_cflags
31500            cat >conftest.$ac_ext <<_ACEOF
31501 /* confdefs.h.  */
31502 _ACEOF
31503 cat confdefs.h >>conftest.$ac_ext
31504 cat >>conftest.$ac_ext <<_ACEOF
31505 /* end confdefs.h.  */
31506 #include <krb.h>
31507 int
31508 main ()
31509 {
31510 int i;
31511   ;
31512   return 0;
31513 }
31514 _ACEOF
31515 rm -f conftest.$ac_objext conftest$ac_exeext
31516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31517   (eval $ac_link) 2>conftest.er1
31518   ac_status=$?
31519   grep -v '^ *+' conftest.er1 >conftest.err
31520   rm -f conftest.er1
31521   cat conftest.err >&5
31522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523   (exit $ac_status); } &&
31524          { ac_try='test -z "$ac_c_werror_flag"
31525                          || test ! -s conftest.err'
31526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31527   (eval $ac_try) 2>&5
31528   ac_status=$?
31529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530   (exit $ac_status); }; } &&
31531          { ac_try='test -s conftest$ac_exeext'
31532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31533   (eval $ac_try) 2>&5
31534   ac_status=$?
31535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536   (exit $ac_status); }; }; then
31537   krb_h=yes krb_incdir=
31538 else
31539   echo "$as_me: failed program was:" >&5
31540 sed 's/^/| /' conftest.$ac_ext >&5
31541
31542 fi
31543 rm -f conftest.err conftest.$ac_objext \
31544       conftest$ac_exeext conftest.$ac_ext
31545 fi
31546 rm -f conftest.err conftest.$ac_objext \
31547       conftest$ac_exeext conftest.$ac_ext
31548    CFLAGS=$hold_cflags
31549 else
31550    cat >conftest.$ac_ext <<_ACEOF
31551 /* confdefs.h.  */
31552 _ACEOF
31553 cat confdefs.h >>conftest.$ac_ext
31554 cat >>conftest.$ac_ext <<_ACEOF
31555 /* end confdefs.h.  */
31556 #include <krb.h>
31557 int
31558 main ()
31559 {
31560 int i;
31561   ;
31562   return 0;
31563 }
31564 _ACEOF
31565 rm -f conftest.$ac_objext conftest$ac_exeext
31566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31567   (eval $ac_link) 2>conftest.er1
31568   ac_status=$?
31569   grep -v '^ *+' conftest.er1 >conftest.err
31570   rm -f conftest.er1
31571   cat conftest.err >&5
31572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573   (exit $ac_status); } &&
31574          { ac_try='test -z "$ac_c_werror_flag"
31575                          || test ! -s conftest.err'
31576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31577   (eval $ac_try) 2>&5
31578   ac_status=$?
31579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580   (exit $ac_status); }; } &&
31581          { ac_try='test -s conftest$ac_exeext'
31582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31583   (eval $ac_try) 2>&5
31584   ac_status=$?
31585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586   (exit $ac_status); }; }; then
31587   krb_h=yes krb_incdir=
31588 else
31589   echo "$as_me: failed program was:" >&5
31590 sed 's/^/| /' conftest.$ac_ext >&5
31591
31592 fi
31593 rm -f conftest.err conftest.$ac_objext \
31594       conftest$ac_exeext conftest.$ac_ext
31595 fi
31596 if test -z "$krb_h"; then
31597   cat >conftest.$ac_ext <<_ACEOF
31598 /* confdefs.h.  */
31599 _ACEOF
31600 cat confdefs.h >>conftest.$ac_ext
31601 cat >>conftest.$ac_ext <<_ACEOF
31602 /* end confdefs.h.  */
31603 #include <krb.h>
31604 int
31605 main ()
31606 {
31607 int i;
31608   ;
31609   return 0;
31610 }
31611 _ACEOF
31612 rm -f conftest.$ac_objext conftest$ac_exeext
31613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31614   (eval $ac_link) 2>conftest.er1
31615   ac_status=$?
31616   grep -v '^ *+' conftest.er1 >conftest.err
31617   rm -f conftest.er1
31618   cat conftest.err >&5
31619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620   (exit $ac_status); } &&
31621          { ac_try='test -z "$ac_c_werror_flag"
31622                          || test ! -s conftest.err'
31623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31624   (eval $ac_try) 2>&5
31625   ac_status=$?
31626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627   (exit $ac_status); }; } &&
31628          { ac_try='test -s conftest$ac_exeext'
31629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31630   (eval $ac_try) 2>&5
31631   ac_status=$?
31632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633   (exit $ac_status); }; }; then
31634   krb_h=yes krb_incdir=
31635 else
31636   echo "$as_me: failed program was:" >&5
31637 sed 's/^/| /' conftest.$ac_ext >&5
31638
31639 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
31640        hold_cflags=$CFLAGS
31641        CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
31642        cat >conftest.$ac_ext <<_ACEOF
31643 /* confdefs.h.  */
31644 _ACEOF
31645 cat confdefs.h >>conftest.$ac_ext
31646 cat >>conftest.$ac_ext <<_ACEOF
31647 /* end confdefs.h.  */
31648 #include <krb.h>
31649 int
31650 main ()
31651 {
31652 int i;
31653   ;
31654   return 0;
31655 }
31656 _ACEOF
31657 rm -f conftest.$ac_objext conftest$ac_exeext
31658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31659   (eval $ac_link) 2>conftest.er1
31660   ac_status=$?
31661   grep -v '^ *+' conftest.er1 >conftest.err
31662   rm -f conftest.er1
31663   cat conftest.err >&5
31664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665   (exit $ac_status); } &&
31666          { ac_try='test -z "$ac_c_werror_flag"
31667                          || test ! -s conftest.err'
31668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31669   (eval $ac_try) 2>&5
31670   ac_status=$?
31671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672   (exit $ac_status); }; } &&
31673          { ac_try='test -s conftest$ac_exeext'
31674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31675   (eval $ac_try) 2>&5
31676   ac_status=$?
31677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678   (exit $ac_status); }; }; then
31679   krb_h=yes krb_incdir=$KRB4/include/kerberosIV
31680 else
31681   echo "$as_me: failed program was:" >&5
31682 sed 's/^/| /' conftest.$ac_ext >&5
31683
31684 fi
31685 rm -f conftest.err conftest.$ac_objext \
31686       conftest$ac_exeext conftest.$ac_ext
31687        CFLAGS=$hold_cflags
31688      fi
31689 fi
31690 rm -f conftest.err conftest.$ac_objext \
31691       conftest$ac_exeext conftest.$ac_ext
31692 fi
31693 echo "$as_me:$LINENO: result: $krb_h" >&5
31694 echo "${ECHO_T}$krb_h" >&6
31695
31696 if test -n "$krb_h"; then
31697   krb_lib=
31698   if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
31699        hold_ldflags=$LDFLAGS
31700        LDFLAGS="-L${KRB4}/lib $LDFLAGS"
31701        echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
31702 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
31703 if test "${ac_cv_lib_krb_printf+set}" = set; then
31704   echo $ECHO_N "(cached) $ECHO_C" >&6
31705 else
31706   ac_check_lib_save_LIBS=$LIBS
31707 LIBS="-lkrb  $LIBS"
31708 cat >conftest.$ac_ext <<_ACEOF
31709 /* confdefs.h.  */
31710 _ACEOF
31711 cat confdefs.h >>conftest.$ac_ext
31712 cat >>conftest.$ac_ext <<_ACEOF
31713 /* end confdefs.h.  */
31714
31715 /* Override any gcc2 internal prototype to avoid an error.  */
31716 #ifdef __cplusplus
31717 extern "C"
31718 #endif
31719 /* We use char because int might match the return type of a gcc2
31720    builtin and then its argument prototype would still apply.  */
31721 char printf ();
31722 int
31723 main ()
31724 {
31725 printf ();
31726   ;
31727   return 0;
31728 }
31729 _ACEOF
31730 rm -f conftest.$ac_objext conftest$ac_exeext
31731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31732   (eval $ac_link) 2>conftest.er1
31733   ac_status=$?
31734   grep -v '^ *+' conftest.er1 >conftest.err
31735   rm -f conftest.er1
31736   cat conftest.err >&5
31737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738   (exit $ac_status); } &&
31739          { ac_try='test -z "$ac_c_werror_flag"
31740                          || test ! -s conftest.err'
31741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31742   (eval $ac_try) 2>&5
31743   ac_status=$?
31744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745   (exit $ac_status); }; } &&
31746          { ac_try='test -s conftest$ac_exeext'
31747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31748   (eval $ac_try) 2>&5
31749   ac_status=$?
31750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751   (exit $ac_status); }; }; then
31752   ac_cv_lib_krb_printf=yes
31753 else
31754   echo "$as_me: failed program was:" >&5
31755 sed 's/^/| /' conftest.$ac_ext >&5
31756
31757 ac_cv_lib_krb_printf=no
31758 fi
31759 rm -f conftest.err conftest.$ac_objext \
31760       conftest$ac_exeext conftest.$ac_ext
31761 LIBS=$ac_check_lib_save_LIBS
31762 fi
31763 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
31764 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
31765 if test $ac_cv_lib_krb_printf = yes; then
31766   krb_lib=yes krb_libdir=${KRB4}/lib
31767 else
31768   LDFLAGS=$hold_ldflags
31769             # Using open here instead of printf so we don't
31770             # get confused by the cached value for printf from above.
31771             echo "$as_me:$LINENO: checking for open in -lkrb" >&5
31772 echo $ECHO_N "checking for open in -lkrb... $ECHO_C" >&6
31773 if test "${ac_cv_lib_krb_open+set}" = set; then
31774   echo $ECHO_N "(cached) $ECHO_C" >&6
31775 else
31776   ac_check_lib_save_LIBS=$LIBS
31777 LIBS="-lkrb  $LIBS"
31778 cat >conftest.$ac_ext <<_ACEOF
31779 /* confdefs.h.  */
31780 _ACEOF
31781 cat confdefs.h >>conftest.$ac_ext
31782 cat >>conftest.$ac_ext <<_ACEOF
31783 /* end confdefs.h.  */
31784
31785 /* Override any gcc2 internal prototype to avoid an error.  */
31786 #ifdef __cplusplus
31787 extern "C"
31788 #endif
31789 /* We use char because int might match the return type of a gcc2
31790    builtin and then its argument prototype would still apply.  */
31791 char open ();
31792 int
31793 main ()
31794 {
31795 open ();
31796   ;
31797   return 0;
31798 }
31799 _ACEOF
31800 rm -f conftest.$ac_objext conftest$ac_exeext
31801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31802   (eval $ac_link) 2>conftest.er1
31803   ac_status=$?
31804   grep -v '^ *+' conftest.er1 >conftest.err
31805   rm -f conftest.er1
31806   cat conftest.err >&5
31807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808   (exit $ac_status); } &&
31809          { ac_try='test -z "$ac_c_werror_flag"
31810                          || test ! -s conftest.err'
31811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31812   (eval $ac_try) 2>&5
31813   ac_status=$?
31814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815   (exit $ac_status); }; } &&
31816          { ac_try='test -s conftest$ac_exeext'
31817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31818   (eval $ac_try) 2>&5
31819   ac_status=$?
31820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821   (exit $ac_status); }; }; then
31822   ac_cv_lib_krb_open=yes
31823 else
31824   echo "$as_me: failed program was:" >&5
31825 sed 's/^/| /' conftest.$ac_ext >&5
31826
31827 ac_cv_lib_krb_open=no
31828 fi
31829 rm -f conftest.err conftest.$ac_objext \
31830       conftest$ac_exeext conftest.$ac_ext
31831 LIBS=$ac_check_lib_save_LIBS
31832 fi
31833 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_open" >&5
31834 echo "${ECHO_T}$ac_cv_lib_krb_open" >&6
31835 if test $ac_cv_lib_krb_open = yes; then
31836   krb_lib=yes krb_libdir=
31837 fi
31838
31839 fi
31840
31841        LDFLAGS=$hold_ldflags
31842   else
31843        echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
31844 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
31845 if test "${ac_cv_lib_krb_printf+set}" = set; then
31846   echo $ECHO_N "(cached) $ECHO_C" >&6
31847 else
31848   ac_check_lib_save_LIBS=$LIBS
31849 LIBS="-lkrb  $LIBS"
31850 cat >conftest.$ac_ext <<_ACEOF
31851 /* confdefs.h.  */
31852 _ACEOF
31853 cat confdefs.h >>conftest.$ac_ext
31854 cat >>conftest.$ac_ext <<_ACEOF
31855 /* end confdefs.h.  */
31856
31857 /* Override any gcc2 internal prototype to avoid an error.  */
31858 #ifdef __cplusplus
31859 extern "C"
31860 #endif
31861 /* We use char because int might match the return type of a gcc2
31862    builtin and then its argument prototype would still apply.  */
31863 char printf ();
31864 int
31865 main ()
31866 {
31867 printf ();
31868   ;
31869   return 0;
31870 }
31871 _ACEOF
31872 rm -f conftest.$ac_objext conftest$ac_exeext
31873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31874   (eval $ac_link) 2>conftest.er1
31875   ac_status=$?
31876   grep -v '^ *+' conftest.er1 >conftest.err
31877   rm -f conftest.er1
31878   cat conftest.err >&5
31879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880   (exit $ac_status); } &&
31881          { ac_try='test -z "$ac_c_werror_flag"
31882                          || test ! -s conftest.err'
31883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31884   (eval $ac_try) 2>&5
31885   ac_status=$?
31886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887   (exit $ac_status); }; } &&
31888          { ac_try='test -s conftest$ac_exeext'
31889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890   (eval $ac_try) 2>&5
31891   ac_status=$?
31892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893   (exit $ac_status); }; }; then
31894   ac_cv_lib_krb_printf=yes
31895 else
31896   echo "$as_me: failed program was:" >&5
31897 sed 's/^/| /' conftest.$ac_ext >&5
31898
31899 ac_cv_lib_krb_printf=no
31900 fi
31901 rm -f conftest.err conftest.$ac_objext \
31902       conftest$ac_exeext conftest.$ac_ext
31903 LIBS=$ac_check_lib_save_LIBS
31904 fi
31905 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
31906 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
31907 if test $ac_cv_lib_krb_printf = yes; then
31908   krb_lib=yes krb_libdir=
31909 fi
31910
31911        echo "$as_me:$LINENO: checking for krb_recvauth" >&5
31912 echo $ECHO_N "checking for krb_recvauth... $ECHO_C" >&6
31913 if test "${ac_cv_func_krb_recvauth+set}" = set; then
31914   echo $ECHO_N "(cached) $ECHO_C" >&6
31915 else
31916   cat >conftest.$ac_ext <<_ACEOF
31917 /* confdefs.h.  */
31918 _ACEOF
31919 cat confdefs.h >>conftest.$ac_ext
31920 cat >>conftest.$ac_ext <<_ACEOF
31921 /* end confdefs.h.  */
31922 /* Define krb_recvauth to an innocuous variant, in case <limits.h> declares krb_recvauth.
31923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31924 #define krb_recvauth innocuous_krb_recvauth
31925
31926 /* System header to define __stub macros and hopefully few prototypes,
31927     which can conflict with char krb_recvauth (); below.
31928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31929     <limits.h> exists even on freestanding compilers.  */
31930
31931 #ifdef __STDC__
31932 # include <limits.h>
31933 #else
31934 # include <assert.h>
31935 #endif
31936
31937 #undef krb_recvauth
31938
31939 /* Override any gcc2 internal prototype to avoid an error.  */
31940 #ifdef __cplusplus
31941 extern "C"
31942 {
31943 #endif
31944 /* We use char because int might match the return type of a gcc2
31945    builtin and then its argument prototype would still apply.  */
31946 char krb_recvauth ();
31947 /* The GNU C library defines this for functions which it implements
31948     to always fail with ENOSYS.  Some functions are actually named
31949     something starting with __ and the normal name is an alias.  */
31950 #if defined (__stub_krb_recvauth) || defined (__stub___krb_recvauth)
31951 choke me
31952 #else
31953 char (*f) () = krb_recvauth;
31954 #endif
31955 #ifdef __cplusplus
31956 }
31957 #endif
31958
31959 int
31960 main ()
31961 {
31962 return f != krb_recvauth;
31963   ;
31964   return 0;
31965 }
31966 _ACEOF
31967 rm -f conftest.$ac_objext conftest$ac_exeext
31968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31969   (eval $ac_link) 2>conftest.er1
31970   ac_status=$?
31971   grep -v '^ *+' conftest.er1 >conftest.err
31972   rm -f conftest.er1
31973   cat conftest.err >&5
31974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975   (exit $ac_status); } &&
31976          { ac_try='test -z "$ac_c_werror_flag"
31977                          || test ! -s conftest.err'
31978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31979   (eval $ac_try) 2>&5
31980   ac_status=$?
31981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982   (exit $ac_status); }; } &&
31983          { ac_try='test -s conftest$ac_exeext'
31984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31985   (eval $ac_try) 2>&5
31986   ac_status=$?
31987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988   (exit $ac_status); }; }; then
31989   ac_cv_func_krb_recvauth=yes
31990 else
31991   echo "$as_me: failed program was:" >&5
31992 sed 's/^/| /' conftest.$ac_ext >&5
31993
31994 ac_cv_func_krb_recvauth=no
31995 fi
31996 rm -f conftest.err conftest.$ac_objext \
31997       conftest$ac_exeext conftest.$ac_ext
31998 fi
31999 echo "$as_me:$LINENO: result: $ac_cv_func_krb_recvauth" >&5
32000 echo "${ECHO_T}$ac_cv_func_krb_recvauth" >&6
32001 if test $ac_cv_func_krb_recvauth = yes; then
32002   krb_lib=yes krb_libdir=
32003 fi
32004
32005   fi
32006   if test -n "$krb_lib"; then
32007
32008 cat >>confdefs.h <<\_ACEOF
32009 #define HAVE_KERBEROS 1
32010 _ACEOF
32011
32012     cvs_client_objects="$cvs_client_objects kerberos4-client.o"
32013     test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
32014     # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
32015     # -ldes in the command line.  Don't do it permanently so that we honor
32016     # the user's setting for LDFLAGS
32017     hold_ldflags=$LDFLAGS
32018     test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
32019     echo "$as_me:$LINENO: checking for printf in -ldes" >&5
32020 echo $ECHO_N "checking for printf in -ldes... $ECHO_C" >&6
32021 if test "${ac_cv_lib_des_printf+set}" = set; then
32022   echo $ECHO_N "(cached) $ECHO_C" >&6
32023 else
32024   ac_check_lib_save_LIBS=$LIBS
32025 LIBS="-ldes  $LIBS"
32026 cat >conftest.$ac_ext <<_ACEOF
32027 /* confdefs.h.  */
32028 _ACEOF
32029 cat confdefs.h >>conftest.$ac_ext
32030 cat >>conftest.$ac_ext <<_ACEOF
32031 /* end confdefs.h.  */
32032
32033 /* Override any gcc2 internal prototype to avoid an error.  */
32034 #ifdef __cplusplus
32035 extern "C"
32036 #endif
32037 /* We use char because int might match the return type of a gcc2
32038    builtin and then its argument prototype would still apply.  */
32039 char printf ();
32040 int
32041 main ()
32042 {
32043 printf ();
32044   ;
32045   return 0;
32046 }
32047 _ACEOF
32048 rm -f conftest.$ac_objext conftest$ac_exeext
32049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32050   (eval $ac_link) 2>conftest.er1
32051   ac_status=$?
32052   grep -v '^ *+' conftest.er1 >conftest.err
32053   rm -f conftest.er1
32054   cat conftest.err >&5
32055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056   (exit $ac_status); } &&
32057          { ac_try='test -z "$ac_c_werror_flag"
32058                          || test ! -s conftest.err'
32059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060   (eval $ac_try) 2>&5
32061   ac_status=$?
32062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063   (exit $ac_status); }; } &&
32064          { ac_try='test -s conftest$ac_exeext'
32065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066   (eval $ac_try) 2>&5
32067   ac_status=$?
32068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069   (exit $ac_status); }; }; then
32070   ac_cv_lib_des_printf=yes
32071 else
32072   echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32074
32075 ac_cv_lib_des_printf=no
32076 fi
32077 rm -f conftest.err conftest.$ac_objext \
32078       conftest$ac_exeext conftest.$ac_ext
32079 LIBS=$ac_check_lib_save_LIBS
32080 fi
32081 echo "$as_me:$LINENO: result: $ac_cv_lib_des_printf" >&5
32082 echo "${ECHO_T}$ac_cv_lib_des_printf" >&6
32083 if test $ac_cv_lib_des_printf = yes; then
32084   LIBS="${LIBS} -ldes"
32085 fi
32086
32087
32088 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb" >&5
32089 echo $ECHO_N "checking for krb_recvauth in -lkrb... $ECHO_C" >&6
32090 if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then
32091   echo $ECHO_N "(cached) $ECHO_C" >&6
32092 else
32093   ac_check_lib_save_LIBS=$LIBS
32094 LIBS="-lkrb  $LIBS"
32095 cat >conftest.$ac_ext <<_ACEOF
32096 /* confdefs.h.  */
32097 _ACEOF
32098 cat confdefs.h >>conftest.$ac_ext
32099 cat >>conftest.$ac_ext <<_ACEOF
32100 /* end confdefs.h.  */
32101
32102 /* Override any gcc2 internal prototype to avoid an error.  */
32103 #ifdef __cplusplus
32104 extern "C"
32105 #endif
32106 /* We use char because int might match the return type of a gcc2
32107    builtin and then its argument prototype would still apply.  */
32108 char krb_recvauth ();
32109 int
32110 main ()
32111 {
32112 krb_recvauth ();
32113   ;
32114   return 0;
32115 }
32116 _ACEOF
32117 rm -f conftest.$ac_objext conftest$ac_exeext
32118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32119   (eval $ac_link) 2>conftest.er1
32120   ac_status=$?
32121   grep -v '^ *+' conftest.er1 >conftest.err
32122   rm -f conftest.er1
32123   cat conftest.err >&5
32124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125   (exit $ac_status); } &&
32126          { ac_try='test -z "$ac_c_werror_flag"
32127                          || test ! -s conftest.err'
32128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32129   (eval $ac_try) 2>&5
32130   ac_status=$?
32131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132   (exit $ac_status); }; } &&
32133          { ac_try='test -s conftest$ac_exeext'
32134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32135   (eval $ac_try) 2>&5
32136   ac_status=$?
32137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138   (exit $ac_status); }; }; then
32139   ac_cv_lib_krb_krb_recvauth=yes
32140 else
32141   echo "$as_me: failed program was:" >&5
32142 sed 's/^/| /' conftest.$ac_ext >&5
32143
32144 ac_cv_lib_krb_krb_recvauth=no
32145 fi
32146 rm -f conftest.err conftest.$ac_objext \
32147       conftest$ac_exeext conftest.$ac_ext
32148 LIBS=$ac_check_lib_save_LIBS
32149 fi
32150 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_recvauth" >&5
32151 echo "${ECHO_T}$ac_cv_lib_krb_krb_recvauth" >&6
32152 if test $ac_cv_lib_krb_krb_recvauth = yes; then
32153   cat >>confdefs.h <<_ACEOF
32154 #define HAVE_LIBKRB 1
32155 _ACEOF
32156
32157   LIBS="-lkrb $LIBS"
32158
32159 fi
32160
32161
32162 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb4" >&5
32163 echo $ECHO_N "checking for krb_recvauth in -lkrb4... $ECHO_C" >&6
32164 if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then
32165   echo $ECHO_N "(cached) $ECHO_C" >&6
32166 else
32167   ac_check_lib_save_LIBS=$LIBS
32168 LIBS="-lkrb4  $LIBS"
32169 cat >conftest.$ac_ext <<_ACEOF
32170 /* confdefs.h.  */
32171 _ACEOF
32172 cat confdefs.h >>conftest.$ac_ext
32173 cat >>conftest.$ac_ext <<_ACEOF
32174 /* end confdefs.h.  */
32175
32176 /* Override any gcc2 internal prototype to avoid an error.  */
32177 #ifdef __cplusplus
32178 extern "C"
32179 #endif
32180 /* We use char because int might match the return type of a gcc2
32181    builtin and then its argument prototype would still apply.  */
32182 char krb_recvauth ();
32183 int
32184 main ()
32185 {
32186 krb_recvauth ();
32187   ;
32188   return 0;
32189 }
32190 _ACEOF
32191 rm -f conftest.$ac_objext conftest$ac_exeext
32192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32193   (eval $ac_link) 2>conftest.er1
32194   ac_status=$?
32195   grep -v '^ *+' conftest.er1 >conftest.err
32196   rm -f conftest.er1
32197   cat conftest.err >&5
32198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199   (exit $ac_status); } &&
32200          { ac_try='test -z "$ac_c_werror_flag"
32201                          || test ! -s conftest.err'
32202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32203   (eval $ac_try) 2>&5
32204   ac_status=$?
32205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206   (exit $ac_status); }; } &&
32207          { ac_try='test -s conftest$ac_exeext'
32208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32209   (eval $ac_try) 2>&5
32210   ac_status=$?
32211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212   (exit $ac_status); }; }; then
32213   ac_cv_lib_krb4_krb_recvauth=yes
32214 else
32215   echo "$as_me: failed program was:" >&5
32216 sed 's/^/| /' conftest.$ac_ext >&5
32217
32218 ac_cv_lib_krb4_krb_recvauth=no
32219 fi
32220 rm -f conftest.err conftest.$ac_objext \
32221       conftest$ac_exeext conftest.$ac_ext
32222 LIBS=$ac_check_lib_save_LIBS
32223 fi
32224 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_recvauth" >&5
32225 echo "${ECHO_T}$ac_cv_lib_krb4_krb_recvauth" >&6
32226 if test $ac_cv_lib_krb4_krb_recvauth = yes; then
32227   cat >>confdefs.h <<_ACEOF
32228 #define HAVE_LIBKRB4 1
32229 _ACEOF
32230
32231   LIBS="-lkrb4 $LIBS"
32232
32233 fi
32234
32235     LDFLAGS=$hold_ldflags
32236     if test -n "$krb_incdir"; then
32237       CPPFLAGS="$CPPFLAGS -I$krb_incdir"
32238     fi
32239   fi
32240 fi
32241
32242 for ac_func in krb_get_err_text
32243 do
32244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32245 echo "$as_me:$LINENO: checking for $ac_func" >&5
32246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32247 if eval "test \"\${$as_ac_var+set}\" = set"; then
32248   echo $ECHO_N "(cached) $ECHO_C" >&6
32249 else
32250   cat >conftest.$ac_ext <<_ACEOF
32251 /* confdefs.h.  */
32252 _ACEOF
32253 cat confdefs.h >>conftest.$ac_ext
32254 cat >>conftest.$ac_ext <<_ACEOF
32255 /* end confdefs.h.  */
32256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32258 #define $ac_func innocuous_$ac_func
32259
32260 /* System header to define __stub macros and hopefully few prototypes,
32261     which can conflict with char $ac_func (); below.
32262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32263     <limits.h> exists even on freestanding compilers.  */
32264
32265 #ifdef __STDC__
32266 # include <limits.h>
32267 #else
32268 # include <assert.h>
32269 #endif
32270
32271 #undef $ac_func
32272
32273 /* Override any gcc2 internal prototype to avoid an error.  */
32274 #ifdef __cplusplus
32275 extern "C"
32276 {
32277 #endif
32278 /* We use char because int might match the return type of a gcc2
32279    builtin and then its argument prototype would still apply.  */
32280 char $ac_func ();
32281 /* The GNU C library defines this for functions which it implements
32282     to always fail with ENOSYS.  Some functions are actually named
32283     something starting with __ and the normal name is an alias.  */
32284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32285 choke me
32286 #else
32287 char (*f) () = $ac_func;
32288 #endif
32289 #ifdef __cplusplus
32290 }
32291 #endif
32292
32293 int
32294 main ()
32295 {
32296 return f != $ac_func;
32297   ;
32298   return 0;
32299 }
32300 _ACEOF
32301 rm -f conftest.$ac_objext conftest$ac_exeext
32302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32303   (eval $ac_link) 2>conftest.er1
32304   ac_status=$?
32305   grep -v '^ *+' conftest.er1 >conftest.err
32306   rm -f conftest.er1
32307   cat conftest.err >&5
32308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); } &&
32310          { ac_try='test -z "$ac_c_werror_flag"
32311                          || test ! -s conftest.err'
32312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32313   (eval $ac_try) 2>&5
32314   ac_status=$?
32315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316   (exit $ac_status); }; } &&
32317          { ac_try='test -s conftest$ac_exeext'
32318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319   (eval $ac_try) 2>&5
32320   ac_status=$?
32321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322   (exit $ac_status); }; }; then
32323   eval "$as_ac_var=yes"
32324 else
32325   echo "$as_me: failed program was:" >&5
32326 sed 's/^/| /' conftest.$ac_ext >&5
32327
32328 eval "$as_ac_var=no"
32329 fi
32330 rm -f conftest.err conftest.$ac_objext \
32331       conftest$ac_exeext conftest.$ac_ext
32332 fi
32333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32335 if test `eval echo '${'$as_ac_var'}'` = yes; then
32336   cat >>confdefs.h <<_ACEOF
32337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32338 _ACEOF
32339
32340 fi
32341 done
32342
32343
32344
32345
32346 #
32347 # Use --with-gssapi[=DIR] to enable GSSAPI support.
32348 #
32349 # defaults to enabled with DIR in default list below
32350 #
32351 # Search for /SUNHEA/ and read the comments about this default below.
32352 #
32353
32354 # Check whether --with-gssapi or --without-gssapi was given.
32355 if test "${with_gssapi+set}" = set; then
32356   withval="$with_gssapi"
32357
32358 else
32359   with_gssapi=yes
32360 fi;
32361 #
32362 # Try to locate a GSSAPI installation if no location was specified, assuming
32363 # GSSAPI was enabled (the default).
32364 #
32365 if test -n "$acx_gssapi_cv_gssapi"; then
32366   # Granted, this is a slightly ugly way to print this info, but the
32367   # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
32368   # AC_CACHE_CHECK worse
32369   echo "$as_me:$LINENO: checking for GSSAPI" >&5
32370 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
32371 else :; fi
32372 if test "${acx_gssapi_cv_gssapi+set}" = set; then
32373   echo $ECHO_N "(cached) $ECHO_C" >&6
32374 else
32375
32376 if test x$with_gssapi = xyes; then
32377   # --with but no location specified
32378   # assume a gssapi.h or gssapi/gssapi.h locates our install.
32379   #
32380   # This isn't always strictly true.  For instance Solaris 7's SUNHEA (header)
32381   # package installs gssapi.h whether or not the necessary libraries are
32382   # installed.  I'm still not sure whether to consider this a bug.  The long
32383   # way around is to not consider GSSPAI installed unless gss_import_name is
32384   # found, but that brings up a lot of other hassles, like continuing to let
32385   # gcc & ld generate the error messages when the user uses --with-gssapi=dir
32386   # as a debugging aid.  The short way around is to disable GSSAPI by default,
32387   # but I think Sun users have been faced with this for awhile and I haven't
32388   # heard many complaints.
32389   acx_gssapi_save_CPPFLAGS=$CPPFLAGS
32390   for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
32391     if test x$acx_gssapi_cv_gssapi = xno; then
32392       break
32393     fi
32394     if test x$acx_gssapi_cv_gssapi = xyes; then
32395       echo "$as_me:$LINENO: checking for GSSAPI" >&5
32396 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
32397       echo "$as_me:$LINENO: result: " >&5
32398 echo "${ECHO_T}" >&6
32399     else
32400       CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
32401       echo "$as_me:$LINENO: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
32402 echo $ECHO_N "checking for GSSAPI in $acx_gssapi_cv_gssapi... $ECHO_C" >&6
32403       echo "$as_me:$LINENO: result: " >&5
32404 echo "${ECHO_T}" >&6
32405     fi
32406     unset ac_cv_header_gssapi_h
32407     unset ac_cv_header_gssapi_gssapi_h
32408     unset ac_cv_header_krb5_h
32409
32410
32411
32412 for ac_header in gssapi.h gssapi/gssapi.h krb5.h
32413 do
32414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32416   echo "$as_me:$LINENO: checking for $ac_header" >&5
32417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32419   echo $ECHO_N "(cached) $ECHO_C" >&6
32420 fi
32421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32423 else
32424   # Is the header compilable?
32425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32427 cat >conftest.$ac_ext <<_ACEOF
32428 /* confdefs.h.  */
32429 _ACEOF
32430 cat confdefs.h >>conftest.$ac_ext
32431 cat >>conftest.$ac_ext <<_ACEOF
32432 /* end confdefs.h.  */
32433 $ac_includes_default
32434 #include <$ac_header>
32435 _ACEOF
32436 rm -f conftest.$ac_objext
32437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32438   (eval $ac_compile) 2>conftest.er1
32439   ac_status=$?
32440   grep -v '^ *+' conftest.er1 >conftest.err
32441   rm -f conftest.er1
32442   cat conftest.err >&5
32443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444   (exit $ac_status); } &&
32445          { ac_try='test -z "$ac_c_werror_flag"
32446                          || test ! -s conftest.err'
32447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32448   (eval $ac_try) 2>&5
32449   ac_status=$?
32450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451   (exit $ac_status); }; } &&
32452          { ac_try='test -s conftest.$ac_objext'
32453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454   (eval $ac_try) 2>&5
32455   ac_status=$?
32456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457   (exit $ac_status); }; }; then
32458   ac_header_compiler=yes
32459 else
32460   echo "$as_me: failed program was:" >&5
32461 sed 's/^/| /' conftest.$ac_ext >&5
32462
32463 ac_header_compiler=no
32464 fi
32465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32467 echo "${ECHO_T}$ac_header_compiler" >&6
32468
32469 # Is the header present?
32470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32472 cat >conftest.$ac_ext <<_ACEOF
32473 /* confdefs.h.  */
32474 _ACEOF
32475 cat confdefs.h >>conftest.$ac_ext
32476 cat >>conftest.$ac_ext <<_ACEOF
32477 /* end confdefs.h.  */
32478 #include <$ac_header>
32479 _ACEOF
32480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32482   ac_status=$?
32483   grep -v '^ *+' conftest.er1 >conftest.err
32484   rm -f conftest.er1
32485   cat conftest.err >&5
32486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487   (exit $ac_status); } >/dev/null; then
32488   if test -s conftest.err; then
32489     ac_cpp_err=$ac_c_preproc_warn_flag
32490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32491   else
32492     ac_cpp_err=
32493   fi
32494 else
32495   ac_cpp_err=yes
32496 fi
32497 if test -z "$ac_cpp_err"; then
32498   ac_header_preproc=yes
32499 else
32500   echo "$as_me: failed program was:" >&5
32501 sed 's/^/| /' conftest.$ac_ext >&5
32502
32503   ac_header_preproc=no
32504 fi
32505 rm -f conftest.err conftest.$ac_ext
32506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32507 echo "${ECHO_T}$ac_header_preproc" >&6
32508
32509 # So?  What about this header?
32510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32511   yes:no: )
32512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32516     ac_header_preproc=yes
32517     ;;
32518   no:yes:* )
32519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32531     (
32532       cat <<\_ASBOX
32533 ## ------------------------------ ##
32534 ## Report this to bug-cvs@gnu.org ##
32535 ## ------------------------------ ##
32536 _ASBOX
32537     ) |
32538       sed "s/^/$as_me: WARNING:     /" >&2
32539     ;;
32540 esac
32541 echo "$as_me:$LINENO: checking for $ac_header" >&5
32542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32544   echo $ECHO_N "(cached) $ECHO_C" >&6
32545 else
32546   eval "$as_ac_Header=\$ac_header_preproc"
32547 fi
32548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32550
32551 fi
32552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32553   cat >>confdefs.h <<_ACEOF
32554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32555 _ACEOF
32556
32557 fi
32558
32559 done
32560
32561     if (test "$ac_cv_header_gssapi_h" = yes ||
32562           test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
32563         test "$ac_cv_header_krb5_h" = yes; then
32564       break
32565     fi
32566   done
32567   CPPFLAGS=$acx_gssapi_save_CPPFLAGS
32568 else
32569   acx_gssapi_cv_gssapi=$with_gssapi
32570 fi
32571 echo "$as_me:$LINENO: checking for GSSAPI" >&5
32572 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
32573
32574 fi
32575 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gssapi" >&5
32576 echo "${ECHO_T}$acx_gssapi_cv_gssapi" >&6
32577
32578 #
32579 # Set up GSSAPI includes for later use.  We don't bother to check for
32580 # $acx_gssapi_cv_gssapi=no here since that will be caught later.
32581 #
32582 if test x$acx_gssapi_cv_gssapi = xyes; then
32583   # no special includes necessary
32584   GSSAPI_INCLUDES=""
32585 else
32586   # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
32587   GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
32588 fi
32589
32590 #
32591 # Get the rest of the information CVS needs to compile with GSSAPI support
32592 #
32593 if test x$acx_gssapi_cv_gssapi != xno; then
32594   # define HAVE_GSSAPI and set up the includes
32595
32596 cat >>confdefs.h <<\_ACEOF
32597 #define HAVE_GSSAPI
32598 _ACEOF
32599
32600   CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
32601
32602   cvs_client_objects="$cvs_client_objects gssapi-client.o"
32603
32604   # locate any other headers
32605
32606
32607
32608
32609 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
32610 do
32611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32613   echo "$as_me:$LINENO: checking for $ac_header" >&5
32614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32616   echo $ECHO_N "(cached) $ECHO_C" >&6
32617 fi
32618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32620 else
32621   # Is the header compilable?
32622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32624 cat >conftest.$ac_ext <<_ACEOF
32625 /* confdefs.h.  */
32626 _ACEOF
32627 cat confdefs.h >>conftest.$ac_ext
32628 cat >>conftest.$ac_ext <<_ACEOF
32629 /* end confdefs.h.  */
32630 $ac_includes_default
32631 #include <$ac_header>
32632 _ACEOF
32633 rm -f conftest.$ac_objext
32634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32635   (eval $ac_compile) 2>conftest.er1
32636   ac_status=$?
32637   grep -v '^ *+' conftest.er1 >conftest.err
32638   rm -f conftest.er1
32639   cat conftest.err >&5
32640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641   (exit $ac_status); } &&
32642          { ac_try='test -z "$ac_c_werror_flag"
32643                          || test ! -s conftest.err'
32644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645   (eval $ac_try) 2>&5
32646   ac_status=$?
32647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648   (exit $ac_status); }; } &&
32649          { ac_try='test -s conftest.$ac_objext'
32650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32651   (eval $ac_try) 2>&5
32652   ac_status=$?
32653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654   (exit $ac_status); }; }; then
32655   ac_header_compiler=yes
32656 else
32657   echo "$as_me: failed program was:" >&5
32658 sed 's/^/| /' conftest.$ac_ext >&5
32659
32660 ac_header_compiler=no
32661 fi
32662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32664 echo "${ECHO_T}$ac_header_compiler" >&6
32665
32666 # Is the header present?
32667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32669 cat >conftest.$ac_ext <<_ACEOF
32670 /* confdefs.h.  */
32671 _ACEOF
32672 cat confdefs.h >>conftest.$ac_ext
32673 cat >>conftest.$ac_ext <<_ACEOF
32674 /* end confdefs.h.  */
32675 #include <$ac_header>
32676 _ACEOF
32677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32678   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32679   ac_status=$?
32680   grep -v '^ *+' conftest.er1 >conftest.err
32681   rm -f conftest.er1
32682   cat conftest.err >&5
32683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684   (exit $ac_status); } >/dev/null; then
32685   if test -s conftest.err; then
32686     ac_cpp_err=$ac_c_preproc_warn_flag
32687     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32688   else
32689     ac_cpp_err=
32690   fi
32691 else
32692   ac_cpp_err=yes
32693 fi
32694 if test -z "$ac_cpp_err"; then
32695   ac_header_preproc=yes
32696 else
32697   echo "$as_me: failed program was:" >&5
32698 sed 's/^/| /' conftest.$ac_ext >&5
32699
32700   ac_header_preproc=no
32701 fi
32702 rm -f conftest.err conftest.$ac_ext
32703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32704 echo "${ECHO_T}$ac_header_preproc" >&6
32705
32706 # So?  What about this header?
32707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32708   yes:no: )
32709     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32713     ac_header_preproc=yes
32714     ;;
32715   no:yes:* )
32716     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32718     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32719 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32720     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32722     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32723 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32726     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32728     (
32729       cat <<\_ASBOX
32730 ## ------------------------------ ##
32731 ## Report this to bug-cvs@gnu.org ##
32732 ## ------------------------------ ##
32733 _ASBOX
32734     ) |
32735       sed "s/^/$as_me: WARNING:     /" >&2
32736     ;;
32737 esac
32738 echo "$as_me:$LINENO: checking for $ac_header" >&5
32739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32741   echo $ECHO_N "(cached) $ECHO_C" >&6
32742 else
32743   eval "$as_ac_Header=\$ac_header_preproc"
32744 fi
32745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32747
32748 fi
32749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32750   cat >>confdefs.h <<_ACEOF
32751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32752 _ACEOF
32753
32754 fi
32755
32756 done
32757
32758   # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
32759   echo "$as_me:$LINENO: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
32760 echo $ECHO_N "checking for GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6
32761 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then
32762   echo $ECHO_N "(cached) $ECHO_C" >&6
32763 else
32764
32765     acx_gssapi_cv_gss_c_nt_hostbased_service=no
32766     if test "$ac_cv_header_gssapi_h" = "yes"; then
32767       cat >conftest.$ac_ext <<_ACEOF
32768 /* confdefs.h.  */
32769 _ACEOF
32770 cat confdefs.h >>conftest.$ac_ext
32771 cat >>conftest.$ac_ext <<_ACEOF
32772 /* end confdefs.h.  */
32773 #include <gssapi.h>
32774
32775 _ACEOF
32776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32777   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
32778   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
32779 else
32780
32781         cat >conftest.$ac_ext <<_ACEOF
32782 /* confdefs.h.  */
32783 _ACEOF
32784 cat confdefs.h >>conftest.$ac_ext
32785 cat >>conftest.$ac_ext <<_ACEOF
32786 /* end confdefs.h.  */
32787 #include <gssapi.h>
32788
32789 _ACEOF
32790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32791   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
32792   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
32793 fi
32794 rm -f conftest*
32795
32796
32797 fi
32798 rm -f conftest*
32799
32800     fi
32801     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
32802        test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
32803       cat >conftest.$ac_ext <<_ACEOF
32804 /* confdefs.h.  */
32805 _ACEOF
32806 cat confdefs.h >>conftest.$ac_ext
32807 cat >>conftest.$ac_ext <<_ACEOF
32808 /* end confdefs.h.  */
32809 #include <gssapi/gssapi.h>
32810
32811 _ACEOF
32812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32813   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
32814   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
32815 else
32816
32817         cat >conftest.$ac_ext <<_ACEOF
32818 /* confdefs.h.  */
32819 _ACEOF
32820 cat confdefs.h >>conftest.$ac_ext
32821 cat >>conftest.$ac_ext <<_ACEOF
32822 /* end confdefs.h.  */
32823 #include <gssapi/gssapi.h>
32824
32825 _ACEOF
32826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32827   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
32828   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
32829 fi
32830 rm -f conftest*
32831
32832
32833 fi
32834 rm -f conftest*
32835
32836     else :; fi
32837     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
32838        test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
32839       cat >conftest.$ac_ext <<_ACEOF
32840 /* confdefs.h.  */
32841 _ACEOF
32842 cat confdefs.h >>conftest.$ac_ext
32843 cat >>conftest.$ac_ext <<_ACEOF
32844 /* end confdefs.h.  */
32845 #include <gssapi/gssapi_generic.h>
32846
32847 _ACEOF
32848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32849   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
32850   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
32851 else
32852
32853         cat >conftest.$ac_ext <<_ACEOF
32854 /* confdefs.h.  */
32855 _ACEOF
32856 cat confdefs.h >>conftest.$ac_ext
32857 cat >>conftest.$ac_ext <<_ACEOF
32858 /* end confdefs.h.  */
32859 #include <gssapi/gssapi_generic.h>
32860
32861 _ACEOF
32862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32863   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
32864   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
32865 fi
32866 rm -f conftest*
32867
32868
32869 fi
32870 rm -f conftest*
32871
32872     else :; fi
32873
32874 fi
32875 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
32876 echo "${ECHO_T}$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6
32877   if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
32878      test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
32879     # don't define for yes since that means it already means something and
32880     # don't define for no since we'd rather the compiler catch the error
32881     # It's debatable whether we'd prefer that the compiler catch the error
32882     #  - it seems our estranged developer is more likely to be familiar with
32883     #    the intricacies of the compiler than with those of autoconf, but by
32884     #    the same token, maybe we'd rather alert them to the fact that most
32885     #    of the support they need to fix the problem is installed if they can
32886     #    simply locate the appropriate symbol.
32887
32888 cat >>confdefs.h <<_ACEOF
32889 #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
32890 _ACEOF
32891
32892   else :; fi
32893
32894   # Expect the libs to be installed parallel to the headers
32895   #
32896   # We could try once with and once without, but I'm not sure it's worth the
32897   # trouble.
32898   if test x$acx_gssapi_cv_gssapi != xyes; then
32899     if test -z "$LIBS"; then
32900       LIBS="-L$acx_gssapi_cv_gssapi/lib"
32901     else
32902       LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
32903     fi
32904   else :; fi
32905
32906       #
32907   # Some of the order below is particular due to library dependencies
32908   #
32909
32910   #
32911   # des                 Heimdal K 0.3d, but Heimdal seems to be set up such
32912   #                     that it could have been installed from elsewhere.
32913   #
32914   echo "$as_me:$LINENO: checking for library containing des_set_odd_parity" >&5
32915 echo $ECHO_N "checking for library containing des_set_odd_parity... $ECHO_C" >&6
32916 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
32917   echo $ECHO_N "(cached) $ECHO_C" >&6
32918 else
32919   ac_func_search_save_LIBS=$LIBS
32920 ac_cv_search_des_set_odd_parity=no
32921 cat >conftest.$ac_ext <<_ACEOF
32922 /* confdefs.h.  */
32923 _ACEOF
32924 cat confdefs.h >>conftest.$ac_ext
32925 cat >>conftest.$ac_ext <<_ACEOF
32926 /* end confdefs.h.  */
32927
32928 /* Override any gcc2 internal prototype to avoid an error.  */
32929 #ifdef __cplusplus
32930 extern "C"
32931 #endif
32932 /* We use char because int might match the return type of a gcc2
32933    builtin and then its argument prototype would still apply.  */
32934 char des_set_odd_parity ();
32935 int
32936 main ()
32937 {
32938 des_set_odd_parity ();
32939   ;
32940   return 0;
32941 }
32942 _ACEOF
32943 rm -f conftest.$ac_objext conftest$ac_exeext
32944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32945   (eval $ac_link) 2>conftest.er1
32946   ac_status=$?
32947   grep -v '^ *+' conftest.er1 >conftest.err
32948   rm -f conftest.er1
32949   cat conftest.err >&5
32950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951   (exit $ac_status); } &&
32952          { ac_try='test -z "$ac_c_werror_flag"
32953                          || test ! -s conftest.err'
32954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32955   (eval $ac_try) 2>&5
32956   ac_status=$?
32957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958   (exit $ac_status); }; } &&
32959          { ac_try='test -s conftest$ac_exeext'
32960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32961   (eval $ac_try) 2>&5
32962   ac_status=$?
32963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964   (exit $ac_status); }; }; then
32965   ac_cv_search_des_set_odd_parity="none required"
32966 else
32967   echo "$as_me: failed program was:" >&5
32968 sed 's/^/| /' conftest.$ac_ext >&5
32969
32970 fi
32971 rm -f conftest.err conftest.$ac_objext \
32972       conftest$ac_exeext conftest.$ac_ext
32973 if test "$ac_cv_search_des_set_odd_parity" = no; then
32974   for ac_lib in des; do
32975     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32976     cat >conftest.$ac_ext <<_ACEOF
32977 /* confdefs.h.  */
32978 _ACEOF
32979 cat confdefs.h >>conftest.$ac_ext
32980 cat >>conftest.$ac_ext <<_ACEOF
32981 /* end confdefs.h.  */
32982
32983 /* Override any gcc2 internal prototype to avoid an error.  */
32984 #ifdef __cplusplus
32985 extern "C"
32986 #endif
32987 /* We use char because int might match the return type of a gcc2
32988    builtin and then its argument prototype would still apply.  */
32989 char des_set_odd_parity ();
32990 int
32991 main ()
32992 {
32993 des_set_odd_parity ();
32994   ;
32995   return 0;
32996 }
32997 _ACEOF
32998 rm -f conftest.$ac_objext conftest$ac_exeext
32999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33000   (eval $ac_link) 2>conftest.er1
33001   ac_status=$?
33002   grep -v '^ *+' conftest.er1 >conftest.err
33003   rm -f conftest.er1
33004   cat conftest.err >&5
33005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006   (exit $ac_status); } &&
33007          { ac_try='test -z "$ac_c_werror_flag"
33008                          || test ! -s conftest.err'
33009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33010   (eval $ac_try) 2>&5
33011   ac_status=$?
33012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013   (exit $ac_status); }; } &&
33014          { ac_try='test -s conftest$ac_exeext'
33015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016   (eval $ac_try) 2>&5
33017   ac_status=$?
33018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019   (exit $ac_status); }; }; then
33020   ac_cv_search_des_set_odd_parity="-l$ac_lib"
33021 break
33022 else
33023   echo "$as_me: failed program was:" >&5
33024 sed 's/^/| /' conftest.$ac_ext >&5
33025
33026 fi
33027 rm -f conftest.err conftest.$ac_objext \
33028       conftest$ac_exeext conftest.$ac_ext
33029   done
33030 fi
33031 LIBS=$ac_func_search_save_LIBS
33032 fi
33033 echo "$as_me:$LINENO: result: $ac_cv_search_des_set_odd_parity" >&5
33034 echo "${ECHO_T}$ac_cv_search_des_set_odd_parity" >&6
33035 if test "$ac_cv_search_des_set_odd_parity" != no; then
33036   test "$ac_cv_search_des_set_odd_parity" = "none required" || LIBS="$ac_cv_search_des_set_odd_parity $LIBS"
33037
33038 fi
33039
33040
33041   #
33042   # com_err             Heimdal K 0.3d
33043   #
33044   # com_err             MIT K5 v1.2.2-beta1
33045   #
33046   echo "$as_me:$LINENO: checking for library containing com_err" >&5
33047 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
33048 if test "${ac_cv_search_com_err+set}" = set; then
33049   echo $ECHO_N "(cached) $ECHO_C" >&6
33050 else
33051   ac_func_search_save_LIBS=$LIBS
33052 ac_cv_search_com_err=no
33053 cat >conftest.$ac_ext <<_ACEOF
33054 /* confdefs.h.  */
33055 _ACEOF
33056 cat confdefs.h >>conftest.$ac_ext
33057 cat >>conftest.$ac_ext <<_ACEOF
33058 /* end confdefs.h.  */
33059
33060 /* Override any gcc2 internal prototype to avoid an error.  */
33061 #ifdef __cplusplus
33062 extern "C"
33063 #endif
33064 /* We use char because int might match the return type of a gcc2
33065    builtin and then its argument prototype would still apply.  */
33066 char com_err ();
33067 int
33068 main ()
33069 {
33070 com_err ();
33071   ;
33072   return 0;
33073 }
33074 _ACEOF
33075 rm -f conftest.$ac_objext conftest$ac_exeext
33076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33077   (eval $ac_link) 2>conftest.er1
33078   ac_status=$?
33079   grep -v '^ *+' conftest.er1 >conftest.err
33080   rm -f conftest.er1
33081   cat conftest.err >&5
33082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083   (exit $ac_status); } &&
33084          { ac_try='test -z "$ac_c_werror_flag"
33085                          || test ! -s conftest.err'
33086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33087   (eval $ac_try) 2>&5
33088   ac_status=$?
33089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090   (exit $ac_status); }; } &&
33091          { ac_try='test -s conftest$ac_exeext'
33092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33093   (eval $ac_try) 2>&5
33094   ac_status=$?
33095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096   (exit $ac_status); }; }; then
33097   ac_cv_search_com_err="none required"
33098 else
33099   echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.$ac_ext >&5
33101
33102 fi
33103 rm -f conftest.err conftest.$ac_objext \
33104       conftest$ac_exeext conftest.$ac_ext
33105 if test "$ac_cv_search_com_err" = no; then
33106   for ac_lib in com_err; do
33107     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33108     cat >conftest.$ac_ext <<_ACEOF
33109 /* confdefs.h.  */
33110 _ACEOF
33111 cat confdefs.h >>conftest.$ac_ext
33112 cat >>conftest.$ac_ext <<_ACEOF
33113 /* end confdefs.h.  */
33114
33115 /* Override any gcc2 internal prototype to avoid an error.  */
33116 #ifdef __cplusplus
33117 extern "C"
33118 #endif
33119 /* We use char because int might match the return type of a gcc2
33120    builtin and then its argument prototype would still apply.  */
33121 char com_err ();
33122 int
33123 main ()
33124 {
33125 com_err ();
33126   ;
33127   return 0;
33128 }
33129 _ACEOF
33130 rm -f conftest.$ac_objext conftest$ac_exeext
33131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33132   (eval $ac_link) 2>conftest.er1
33133   ac_status=$?
33134   grep -v '^ *+' conftest.er1 >conftest.err
33135   rm -f conftest.er1
33136   cat conftest.err >&5
33137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138   (exit $ac_status); } &&
33139          { ac_try='test -z "$ac_c_werror_flag"
33140                          || test ! -s conftest.err'
33141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33142   (eval $ac_try) 2>&5
33143   ac_status=$?
33144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145   (exit $ac_status); }; } &&
33146          { ac_try='test -s conftest$ac_exeext'
33147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33148   (eval $ac_try) 2>&5
33149   ac_status=$?
33150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151   (exit $ac_status); }; }; then
33152   ac_cv_search_com_err="-l$ac_lib"
33153 break
33154 else
33155   echo "$as_me: failed program was:" >&5
33156 sed 's/^/| /' conftest.$ac_ext >&5
33157
33158 fi
33159 rm -f conftest.err conftest.$ac_objext \
33160       conftest$ac_exeext conftest.$ac_ext
33161   done
33162 fi
33163 LIBS=$ac_func_search_save_LIBS
33164 fi
33165 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
33166 echo "${ECHO_T}$ac_cv_search_com_err" >&6
33167 if test "$ac_cv_search_com_err" != no; then
33168   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
33169
33170 fi
33171
33172
33173   #
33174   # asn1                Heimdal K 0.3d          -lcom_err
33175   #
33176   echo "$as_me:$LINENO: checking for library containing initialize_asn1_error_table_r" >&5
33177 echo $ECHO_N "checking for library containing initialize_asn1_error_table_r... $ECHO_C" >&6
33178 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
33179   echo $ECHO_N "(cached) $ECHO_C" >&6
33180 else
33181   ac_func_search_save_LIBS=$LIBS
33182 ac_cv_search_initialize_asn1_error_table_r=no
33183 cat >conftest.$ac_ext <<_ACEOF
33184 /* confdefs.h.  */
33185 _ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h.  */
33189
33190 /* Override any gcc2 internal prototype to avoid an error.  */
33191 #ifdef __cplusplus
33192 extern "C"
33193 #endif
33194 /* We use char because int might match the return type of a gcc2
33195    builtin and then its argument prototype would still apply.  */
33196 char initialize_asn1_error_table_r ();
33197 int
33198 main ()
33199 {
33200 initialize_asn1_error_table_r ();
33201   ;
33202   return 0;
33203 }
33204 _ACEOF
33205 rm -f conftest.$ac_objext conftest$ac_exeext
33206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33207   (eval $ac_link) 2>conftest.er1
33208   ac_status=$?
33209   grep -v '^ *+' conftest.er1 >conftest.err
33210   rm -f conftest.er1
33211   cat conftest.err >&5
33212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213   (exit $ac_status); } &&
33214          { ac_try='test -z "$ac_c_werror_flag"
33215                          || test ! -s conftest.err'
33216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33217   (eval $ac_try) 2>&5
33218   ac_status=$?
33219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220   (exit $ac_status); }; } &&
33221          { ac_try='test -s conftest$ac_exeext'
33222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33223   (eval $ac_try) 2>&5
33224   ac_status=$?
33225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226   (exit $ac_status); }; }; then
33227   ac_cv_search_initialize_asn1_error_table_r="none required"
33228 else
33229   echo "$as_me: failed program was:" >&5
33230 sed 's/^/| /' conftest.$ac_ext >&5
33231
33232 fi
33233 rm -f conftest.err conftest.$ac_objext \
33234       conftest$ac_exeext conftest.$ac_ext
33235 if test "$ac_cv_search_initialize_asn1_error_table_r" = no; then
33236   for ac_lib in asn1; do
33237     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33238     cat >conftest.$ac_ext <<_ACEOF
33239 /* confdefs.h.  */
33240 _ACEOF
33241 cat confdefs.h >>conftest.$ac_ext
33242 cat >>conftest.$ac_ext <<_ACEOF
33243 /* end confdefs.h.  */
33244
33245 /* Override any gcc2 internal prototype to avoid an error.  */
33246 #ifdef __cplusplus
33247 extern "C"
33248 #endif
33249 /* We use char because int might match the return type of a gcc2
33250    builtin and then its argument prototype would still apply.  */
33251 char initialize_asn1_error_table_r ();
33252 int
33253 main ()
33254 {
33255 initialize_asn1_error_table_r ();
33256   ;
33257   return 0;
33258 }
33259 _ACEOF
33260 rm -f conftest.$ac_objext conftest$ac_exeext
33261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33262   (eval $ac_link) 2>conftest.er1
33263   ac_status=$?
33264   grep -v '^ *+' conftest.er1 >conftest.err
33265   rm -f conftest.er1
33266   cat conftest.err >&5
33267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268   (exit $ac_status); } &&
33269          { ac_try='test -z "$ac_c_werror_flag"
33270                          || test ! -s conftest.err'
33271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33272   (eval $ac_try) 2>&5
33273   ac_status=$?
33274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33275   (exit $ac_status); }; } &&
33276          { ac_try='test -s conftest$ac_exeext'
33277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33278   (eval $ac_try) 2>&5
33279   ac_status=$?
33280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281   (exit $ac_status); }; }; then
33282   ac_cv_search_initialize_asn1_error_table_r="-l$ac_lib"
33283 break
33284 else
33285   echo "$as_me: failed program was:" >&5
33286 sed 's/^/| /' conftest.$ac_ext >&5
33287
33288 fi
33289 rm -f conftest.err conftest.$ac_objext \
33290       conftest$ac_exeext conftest.$ac_ext
33291   done
33292 fi
33293 LIBS=$ac_func_search_save_LIBS
33294 fi
33295 echo "$as_me:$LINENO: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
33296 echo "${ECHO_T}$ac_cv_search_initialize_asn1_error_table_r" >&6
33297 if test "$ac_cv_search_initialize_asn1_error_table_r" != no; then
33298   test "$ac_cv_search_initialize_asn1_error_table_r" = "none required" || LIBS="$ac_cv_search_initialize_asn1_error_table_r $LIBS"
33299
33300 fi
33301
33302
33303   #
33304   # resolv              required, but not installed by Heimdal K 0.3d
33305   #
33306   # resolv              MIT K5 1.2.2-beta1
33307   #                     Linux 2.2.17
33308   #
33309   echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
33310 echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
33311 if test "${ac_cv_search___dn_expand+set}" = set; then
33312   echo $ECHO_N "(cached) $ECHO_C" >&6
33313 else
33314   ac_func_search_save_LIBS=$LIBS
33315 ac_cv_search___dn_expand=no
33316 cat >conftest.$ac_ext <<_ACEOF
33317 /* confdefs.h.  */
33318 _ACEOF
33319 cat confdefs.h >>conftest.$ac_ext
33320 cat >>conftest.$ac_ext <<_ACEOF
33321 /* end confdefs.h.  */
33322
33323 /* Override any gcc2 internal prototype to avoid an error.  */
33324 #ifdef __cplusplus
33325 extern "C"
33326 #endif
33327 /* We use char because int might match the return type of a gcc2
33328    builtin and then its argument prototype would still apply.  */
33329 char __dn_expand ();
33330 int
33331 main ()
33332 {
33333 __dn_expand ();
33334   ;
33335   return 0;
33336 }
33337 _ACEOF
33338 rm -f conftest.$ac_objext conftest$ac_exeext
33339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33340   (eval $ac_link) 2>conftest.er1
33341   ac_status=$?
33342   grep -v '^ *+' conftest.er1 >conftest.err
33343   rm -f conftest.er1
33344   cat conftest.err >&5
33345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346   (exit $ac_status); } &&
33347          { ac_try='test -z "$ac_c_werror_flag"
33348                          || test ! -s conftest.err'
33349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33350   (eval $ac_try) 2>&5
33351   ac_status=$?
33352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353   (exit $ac_status); }; } &&
33354          { ac_try='test -s conftest$ac_exeext'
33355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33356   (eval $ac_try) 2>&5
33357   ac_status=$?
33358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359   (exit $ac_status); }; }; then
33360   ac_cv_search___dn_expand="none required"
33361 else
33362   echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.$ac_ext >&5
33364
33365 fi
33366 rm -f conftest.err conftest.$ac_objext \
33367       conftest$ac_exeext conftest.$ac_ext
33368 if test "$ac_cv_search___dn_expand" = no; then
33369   for ac_lib in resolv; do
33370     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33371     cat >conftest.$ac_ext <<_ACEOF
33372 /* confdefs.h.  */
33373 _ACEOF
33374 cat confdefs.h >>conftest.$ac_ext
33375 cat >>conftest.$ac_ext <<_ACEOF
33376 /* end confdefs.h.  */
33377
33378 /* Override any gcc2 internal prototype to avoid an error.  */
33379 #ifdef __cplusplus
33380 extern "C"
33381 #endif
33382 /* We use char because int might match the return type of a gcc2
33383    builtin and then its argument prototype would still apply.  */
33384 char __dn_expand ();
33385 int
33386 main ()
33387 {
33388 __dn_expand ();
33389   ;
33390   return 0;
33391 }
33392 _ACEOF
33393 rm -f conftest.$ac_objext conftest$ac_exeext
33394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33395   (eval $ac_link) 2>conftest.er1
33396   ac_status=$?
33397   grep -v '^ *+' conftest.er1 >conftest.err
33398   rm -f conftest.er1
33399   cat conftest.err >&5
33400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401   (exit $ac_status); } &&
33402          { ac_try='test -z "$ac_c_werror_flag"
33403                          || test ! -s conftest.err'
33404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33405   (eval $ac_try) 2>&5
33406   ac_status=$?
33407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408   (exit $ac_status); }; } &&
33409          { ac_try='test -s conftest$ac_exeext'
33410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33411   (eval $ac_try) 2>&5
33412   ac_status=$?
33413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414   (exit $ac_status); }; }; then
33415   ac_cv_search___dn_expand="-l$ac_lib"
33416 break
33417 else
33418   echo "$as_me: failed program was:" >&5
33419 sed 's/^/| /' conftest.$ac_ext >&5
33420
33421 fi
33422 rm -f conftest.err conftest.$ac_objext \
33423       conftest$ac_exeext conftest.$ac_ext
33424   done
33425 fi
33426 LIBS=$ac_func_search_save_LIBS
33427 fi
33428 echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
33429 echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
33430 if test "$ac_cv_search___dn_expand" != no; then
33431   test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
33432
33433 fi
33434
33435
33436   #
33437   # crypt              Needed by roken under FreeBSD 4.6.
33438   #
33439   echo "$as_me:$LINENO: checking for library containing crypt" >&5
33440 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
33441 if test "${ac_cv_search_crypt+set}" = set; then
33442   echo $ECHO_N "(cached) $ECHO_C" >&6
33443 else
33444   ac_func_search_save_LIBS=$LIBS
33445 ac_cv_search_crypt=no
33446 cat >conftest.$ac_ext <<_ACEOF
33447 /* confdefs.h.  */
33448 _ACEOF
33449 cat confdefs.h >>conftest.$ac_ext
33450 cat >>conftest.$ac_ext <<_ACEOF
33451 /* end confdefs.h.  */
33452
33453 /* Override any gcc2 internal prototype to avoid an error.  */
33454 #ifdef __cplusplus
33455 extern "C"
33456 #endif
33457 /* We use char because int might match the return type of a gcc2
33458    builtin and then its argument prototype would still apply.  */
33459 char crypt ();
33460 int
33461 main ()
33462 {
33463 crypt ();
33464   ;
33465   return 0;
33466 }
33467 _ACEOF
33468 rm -f conftest.$ac_objext conftest$ac_exeext
33469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33470   (eval $ac_link) 2>conftest.er1
33471   ac_status=$?
33472   grep -v '^ *+' conftest.er1 >conftest.err
33473   rm -f conftest.er1
33474   cat conftest.err >&5
33475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476   (exit $ac_status); } &&
33477          { ac_try='test -z "$ac_c_werror_flag"
33478                          || test ! -s conftest.err'
33479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33480   (eval $ac_try) 2>&5
33481   ac_status=$?
33482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483   (exit $ac_status); }; } &&
33484          { ac_try='test -s conftest$ac_exeext'
33485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33486   (eval $ac_try) 2>&5
33487   ac_status=$?
33488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489   (exit $ac_status); }; }; then
33490   ac_cv_search_crypt="none required"
33491 else
33492   echo "$as_me: failed program was:" >&5
33493 sed 's/^/| /' conftest.$ac_ext >&5
33494
33495 fi
33496 rm -f conftest.err conftest.$ac_objext \
33497       conftest$ac_exeext conftest.$ac_ext
33498 if test "$ac_cv_search_crypt" = no; then
33499   for ac_lib in crypt; do
33500     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33501     cat >conftest.$ac_ext <<_ACEOF
33502 /* confdefs.h.  */
33503 _ACEOF
33504 cat confdefs.h >>conftest.$ac_ext
33505 cat >>conftest.$ac_ext <<_ACEOF
33506 /* end confdefs.h.  */
33507
33508 /* Override any gcc2 internal prototype to avoid an error.  */
33509 #ifdef __cplusplus
33510 extern "C"
33511 #endif
33512 /* We use char because int might match the return type of a gcc2
33513    builtin and then its argument prototype would still apply.  */
33514 char crypt ();
33515 int
33516 main ()
33517 {
33518 crypt ();
33519   ;
33520   return 0;
33521 }
33522 _ACEOF
33523 rm -f conftest.$ac_objext conftest$ac_exeext
33524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33525   (eval $ac_link) 2>conftest.er1
33526   ac_status=$?
33527   grep -v '^ *+' conftest.er1 >conftest.err
33528   rm -f conftest.er1
33529   cat conftest.err >&5
33530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531   (exit $ac_status); } &&
33532          { ac_try='test -z "$ac_c_werror_flag"
33533                          || test ! -s conftest.err'
33534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33535   (eval $ac_try) 2>&5
33536   ac_status=$?
33537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538   (exit $ac_status); }; } &&
33539          { ac_try='test -s conftest$ac_exeext'
33540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33541   (eval $ac_try) 2>&5
33542   ac_status=$?
33543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544   (exit $ac_status); }; }; then
33545   ac_cv_search_crypt="-l$ac_lib"
33546 break
33547 else
33548   echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33550
33551 fi
33552 rm -f conftest.err conftest.$ac_objext \
33553       conftest$ac_exeext conftest.$ac_ext
33554   done
33555 fi
33556 LIBS=$ac_func_search_save_LIBS
33557 fi
33558 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
33559 echo "${ECHO_T}$ac_cv_search_crypt" >&6
33560 if test "$ac_cv_search_crypt" != no; then
33561   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
33562
33563 fi
33564
33565
33566   #
33567   # roken               Heimdal K 0.3d          -lresolv
33568   # roken               FreeBSD 4.6             -lcrypt
33569   #
33570   echo "$as_me:$LINENO: checking for library containing roken_gethostbyaddr" >&5
33571 echo $ECHO_N "checking for library containing roken_gethostbyaddr... $ECHO_C" >&6
33572 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
33573   echo $ECHO_N "(cached) $ECHO_C" >&6
33574 else
33575   ac_func_search_save_LIBS=$LIBS
33576 ac_cv_search_roken_gethostbyaddr=no
33577 cat >conftest.$ac_ext <<_ACEOF
33578 /* confdefs.h.  */
33579 _ACEOF
33580 cat confdefs.h >>conftest.$ac_ext
33581 cat >>conftest.$ac_ext <<_ACEOF
33582 /* end confdefs.h.  */
33583
33584 /* Override any gcc2 internal prototype to avoid an error.  */
33585 #ifdef __cplusplus
33586 extern "C"
33587 #endif
33588 /* We use char because int might match the return type of a gcc2
33589    builtin and then its argument prototype would still apply.  */
33590 char roken_gethostbyaddr ();
33591 int
33592 main ()
33593 {
33594 roken_gethostbyaddr ();
33595   ;
33596   return 0;
33597 }
33598 _ACEOF
33599 rm -f conftest.$ac_objext conftest$ac_exeext
33600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33601   (eval $ac_link) 2>conftest.er1
33602   ac_status=$?
33603   grep -v '^ *+' conftest.er1 >conftest.err
33604   rm -f conftest.er1
33605   cat conftest.err >&5
33606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607   (exit $ac_status); } &&
33608          { ac_try='test -z "$ac_c_werror_flag"
33609                          || test ! -s conftest.err'
33610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33611   (eval $ac_try) 2>&5
33612   ac_status=$?
33613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614   (exit $ac_status); }; } &&
33615          { ac_try='test -s conftest$ac_exeext'
33616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33617   (eval $ac_try) 2>&5
33618   ac_status=$?
33619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620   (exit $ac_status); }; }; then
33621   ac_cv_search_roken_gethostbyaddr="none required"
33622 else
33623   echo "$as_me: failed program was:" >&5
33624 sed 's/^/| /' conftest.$ac_ext >&5
33625
33626 fi
33627 rm -f conftest.err conftest.$ac_objext \
33628       conftest$ac_exeext conftest.$ac_ext
33629 if test "$ac_cv_search_roken_gethostbyaddr" = no; then
33630   for ac_lib in roken; do
33631     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33632     cat >conftest.$ac_ext <<_ACEOF
33633 /* confdefs.h.  */
33634 _ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h.  */
33638
33639 /* Override any gcc2 internal prototype to avoid an error.  */
33640 #ifdef __cplusplus
33641 extern "C"
33642 #endif
33643 /* We use char because int might match the return type of a gcc2
33644    builtin and then its argument prototype would still apply.  */
33645 char roken_gethostbyaddr ();
33646 int
33647 main ()
33648 {
33649 roken_gethostbyaddr ();
33650   ;
33651   return 0;
33652 }
33653 _ACEOF
33654 rm -f conftest.$ac_objext conftest$ac_exeext
33655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33656   (eval $ac_link) 2>conftest.er1
33657   ac_status=$?
33658   grep -v '^ *+' conftest.er1 >conftest.err
33659   rm -f conftest.er1
33660   cat conftest.err >&5
33661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662   (exit $ac_status); } &&
33663          { ac_try='test -z "$ac_c_werror_flag"
33664                          || test ! -s conftest.err'
33665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33666   (eval $ac_try) 2>&5
33667   ac_status=$?
33668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669   (exit $ac_status); }; } &&
33670          { ac_try='test -s conftest$ac_exeext'
33671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33672   (eval $ac_try) 2>&5
33673   ac_status=$?
33674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675   (exit $ac_status); }; }; then
33676   ac_cv_search_roken_gethostbyaddr="-l$ac_lib"
33677 break
33678 else
33679   echo "$as_me: failed program was:" >&5
33680 sed 's/^/| /' conftest.$ac_ext >&5
33681
33682 fi
33683 rm -f conftest.err conftest.$ac_objext \
33684       conftest$ac_exeext conftest.$ac_ext
33685   done
33686 fi
33687 LIBS=$ac_func_search_save_LIBS
33688 fi
33689 echo "$as_me:$LINENO: result: $ac_cv_search_roken_gethostbyaddr" >&5
33690 echo "${ECHO_T}$ac_cv_search_roken_gethostbyaddr" >&6
33691 if test "$ac_cv_search_roken_gethostbyaddr" != no; then
33692   test "$ac_cv_search_roken_gethostbyaddr" = "none required" || LIBS="$ac_cv_search_roken_gethostbyaddr $LIBS"
33693
33694 fi
33695
33696
33697   #
33698   # k5crypto            MIT K5 v1.2.2-beta1
33699   #
33700   echo "$as_me:$LINENO: checking for library containing valid_enctype" >&5
33701 echo $ECHO_N "checking for library containing valid_enctype... $ECHO_C" >&6
33702 if test "${ac_cv_search_valid_enctype+set}" = set; then
33703   echo $ECHO_N "(cached) $ECHO_C" >&6
33704 else
33705   ac_func_search_save_LIBS=$LIBS
33706 ac_cv_search_valid_enctype=no
33707 cat >conftest.$ac_ext <<_ACEOF
33708 /* confdefs.h.  */
33709 _ACEOF
33710 cat confdefs.h >>conftest.$ac_ext
33711 cat >>conftest.$ac_ext <<_ACEOF
33712 /* end confdefs.h.  */
33713
33714 /* Override any gcc2 internal prototype to avoid an error.  */
33715 #ifdef __cplusplus
33716 extern "C"
33717 #endif
33718 /* We use char because int might match the return type of a gcc2
33719    builtin and then its argument prototype would still apply.  */
33720 char valid_enctype ();
33721 int
33722 main ()
33723 {
33724 valid_enctype ();
33725   ;
33726   return 0;
33727 }
33728 _ACEOF
33729 rm -f conftest.$ac_objext conftest$ac_exeext
33730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33731   (eval $ac_link) 2>conftest.er1
33732   ac_status=$?
33733   grep -v '^ *+' conftest.er1 >conftest.err
33734   rm -f conftest.er1
33735   cat conftest.err >&5
33736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737   (exit $ac_status); } &&
33738          { ac_try='test -z "$ac_c_werror_flag"
33739                          || test ! -s conftest.err'
33740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33741   (eval $ac_try) 2>&5
33742   ac_status=$?
33743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744   (exit $ac_status); }; } &&
33745          { ac_try='test -s conftest$ac_exeext'
33746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33747   (eval $ac_try) 2>&5
33748   ac_status=$?
33749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750   (exit $ac_status); }; }; then
33751   ac_cv_search_valid_enctype="none required"
33752 else
33753   echo "$as_me: failed program was:" >&5
33754 sed 's/^/| /' conftest.$ac_ext >&5
33755
33756 fi
33757 rm -f conftest.err conftest.$ac_objext \
33758       conftest$ac_exeext conftest.$ac_ext
33759 if test "$ac_cv_search_valid_enctype" = no; then
33760   for ac_lib in k5crypto; do
33761     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33762     cat >conftest.$ac_ext <<_ACEOF
33763 /* confdefs.h.  */
33764 _ACEOF
33765 cat confdefs.h >>conftest.$ac_ext
33766 cat >>conftest.$ac_ext <<_ACEOF
33767 /* end confdefs.h.  */
33768
33769 /* Override any gcc2 internal prototype to avoid an error.  */
33770 #ifdef __cplusplus
33771 extern "C"
33772 #endif
33773 /* We use char because int might match the return type of a gcc2
33774    builtin and then its argument prototype would still apply.  */
33775 char valid_enctype ();
33776 int
33777 main ()
33778 {
33779 valid_enctype ();
33780   ;
33781   return 0;
33782 }
33783 _ACEOF
33784 rm -f conftest.$ac_objext conftest$ac_exeext
33785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33786   (eval $ac_link) 2>conftest.er1
33787   ac_status=$?
33788   grep -v '^ *+' conftest.er1 >conftest.err
33789   rm -f conftest.er1
33790   cat conftest.err >&5
33791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792   (exit $ac_status); } &&
33793          { ac_try='test -z "$ac_c_werror_flag"
33794                          || test ! -s conftest.err'
33795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33796   (eval $ac_try) 2>&5
33797   ac_status=$?
33798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799   (exit $ac_status); }; } &&
33800          { ac_try='test -s conftest$ac_exeext'
33801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802   (eval $ac_try) 2>&5
33803   ac_status=$?
33804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805   (exit $ac_status); }; }; then
33806   ac_cv_search_valid_enctype="-l$ac_lib"
33807 break
33808 else
33809   echo "$as_me: failed program was:" >&5
33810 sed 's/^/| /' conftest.$ac_ext >&5
33811
33812 fi
33813 rm -f conftest.err conftest.$ac_objext \
33814       conftest$ac_exeext conftest.$ac_ext
33815   done
33816 fi
33817 LIBS=$ac_func_search_save_LIBS
33818 fi
33819 echo "$as_me:$LINENO: result: $ac_cv_search_valid_enctype" >&5
33820 echo "${ECHO_T}$ac_cv_search_valid_enctype" >&6
33821 if test "$ac_cv_search_valid_enctype" != no; then
33822   test "$ac_cv_search_valid_enctype" = "none required" || LIBS="$ac_cv_search_valid_enctype $LIBS"
33823
33824 fi
33825
33826
33827   #
33828   # gen                 ? ? ?                   Needed on Irix 5.3 with some
33829   #                     Irix 5.3                version of Kerberos.  I'm not
33830   #                                             sure which since Irix didn't
33831   #                                             get any testing this time
33832   #                                             around.  Original comment:
33833   #
33834   # This is necessary on Irix 5.3, in order to link against libkrb5 --
33835   # there, an_to_ln.o refers to things defined only in -lgen.
33836   #
33837   echo "$as_me:$LINENO: checking for library containing compile" >&5
33838 echo $ECHO_N "checking for library containing compile... $ECHO_C" >&6
33839 if test "${ac_cv_search_compile+set}" = set; then
33840   echo $ECHO_N "(cached) $ECHO_C" >&6
33841 else
33842   ac_func_search_save_LIBS=$LIBS
33843 ac_cv_search_compile=no
33844 cat >conftest.$ac_ext <<_ACEOF
33845 /* confdefs.h.  */
33846 _ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h.  */
33850
33851 /* Override any gcc2 internal prototype to avoid an error.  */
33852 #ifdef __cplusplus
33853 extern "C"
33854 #endif
33855 /* We use char because int might match the return type of a gcc2
33856    builtin and then its argument prototype would still apply.  */
33857 char compile ();
33858 int
33859 main ()
33860 {
33861 compile ();
33862   ;
33863   return 0;
33864 }
33865 _ACEOF
33866 rm -f conftest.$ac_objext conftest$ac_exeext
33867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33868   (eval $ac_link) 2>conftest.er1
33869   ac_status=$?
33870   grep -v '^ *+' conftest.er1 >conftest.err
33871   rm -f conftest.er1
33872   cat conftest.err >&5
33873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874   (exit $ac_status); } &&
33875          { ac_try='test -z "$ac_c_werror_flag"
33876                          || test ! -s conftest.err'
33877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33878   (eval $ac_try) 2>&5
33879   ac_status=$?
33880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881   (exit $ac_status); }; } &&
33882          { ac_try='test -s conftest$ac_exeext'
33883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33884   (eval $ac_try) 2>&5
33885   ac_status=$?
33886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887   (exit $ac_status); }; }; then
33888   ac_cv_search_compile="none required"
33889 else
33890   echo "$as_me: failed program was:" >&5
33891 sed 's/^/| /' conftest.$ac_ext >&5
33892
33893 fi
33894 rm -f conftest.err conftest.$ac_objext \
33895       conftest$ac_exeext conftest.$ac_ext
33896 if test "$ac_cv_search_compile" = no; then
33897   for ac_lib in gen; do
33898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33899     cat >conftest.$ac_ext <<_ACEOF
33900 /* confdefs.h.  */
33901 _ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h.  */
33905
33906 /* Override any gcc2 internal prototype to avoid an error.  */
33907 #ifdef __cplusplus
33908 extern "C"
33909 #endif
33910 /* We use char because int might match the return type of a gcc2
33911    builtin and then its argument prototype would still apply.  */
33912 char compile ();
33913 int
33914 main ()
33915 {
33916 compile ();
33917   ;
33918   return 0;
33919 }
33920 _ACEOF
33921 rm -f conftest.$ac_objext conftest$ac_exeext
33922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33923   (eval $ac_link) 2>conftest.er1
33924   ac_status=$?
33925   grep -v '^ *+' conftest.er1 >conftest.err
33926   rm -f conftest.er1
33927   cat conftest.err >&5
33928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929   (exit $ac_status); } &&
33930          { ac_try='test -z "$ac_c_werror_flag"
33931                          || test ! -s conftest.err'
33932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33933   (eval $ac_try) 2>&5
33934   ac_status=$?
33935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936   (exit $ac_status); }; } &&
33937          { ac_try='test -s conftest$ac_exeext'
33938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33939   (eval $ac_try) 2>&5
33940   ac_status=$?
33941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942   (exit $ac_status); }; }; then
33943   ac_cv_search_compile="-l$ac_lib"
33944 break
33945 else
33946   echo "$as_me: failed program was:" >&5
33947 sed 's/^/| /' conftest.$ac_ext >&5
33948
33949 fi
33950 rm -f conftest.err conftest.$ac_objext \
33951       conftest$ac_exeext conftest.$ac_ext
33952   done
33953 fi
33954 LIBS=$ac_func_search_save_LIBS
33955 fi
33956 echo "$as_me:$LINENO: result: $ac_cv_search_compile" >&5
33957 echo "${ECHO_T}$ac_cv_search_compile" >&6
33958 if test "$ac_cv_search_compile" != no; then
33959   test "$ac_cv_search_compile" = "none required" || LIBS="$ac_cv_search_compile $LIBS"
33960
33961 fi
33962
33963
33964   #
33965   # krb5                ? ? ?                   -lgen -l???
33966   #                     Irix 5.3
33967   #
33968   # krb5                MIT K5 v1.1.1
33969   #
33970   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err
33971   #                     Linux 2.2.17
33972   #
33973   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err -lresolv
33974   #
33975   # krb5                Heimdal K 0.3d          -lasn1 -lroken -ldes
33976   #
33977   echo "$as_me:$LINENO: checking for library containing krb5_free_context" >&5
33978 echo $ECHO_N "checking for library containing krb5_free_context... $ECHO_C" >&6
33979 if test "${ac_cv_search_krb5_free_context+set}" = set; then
33980   echo $ECHO_N "(cached) $ECHO_C" >&6
33981 else
33982   ac_func_search_save_LIBS=$LIBS
33983 ac_cv_search_krb5_free_context=no
33984 cat >conftest.$ac_ext <<_ACEOF
33985 /* confdefs.h.  */
33986 _ACEOF
33987 cat confdefs.h >>conftest.$ac_ext
33988 cat >>conftest.$ac_ext <<_ACEOF
33989 /* end confdefs.h.  */
33990
33991 /* Override any gcc2 internal prototype to avoid an error.  */
33992 #ifdef __cplusplus
33993 extern "C"
33994 #endif
33995 /* We use char because int might match the return type of a gcc2
33996    builtin and then its argument prototype would still apply.  */
33997 char krb5_free_context ();
33998 int
33999 main ()
34000 {
34001 krb5_free_context ();
34002   ;
34003   return 0;
34004 }
34005 _ACEOF
34006 rm -f conftest.$ac_objext conftest$ac_exeext
34007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34008   (eval $ac_link) 2>conftest.er1
34009   ac_status=$?
34010   grep -v '^ *+' conftest.er1 >conftest.err
34011   rm -f conftest.er1
34012   cat conftest.err >&5
34013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014   (exit $ac_status); } &&
34015          { ac_try='test -z "$ac_c_werror_flag"
34016                          || test ! -s conftest.err'
34017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34018   (eval $ac_try) 2>&5
34019   ac_status=$?
34020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021   (exit $ac_status); }; } &&
34022          { ac_try='test -s conftest$ac_exeext'
34023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34024   (eval $ac_try) 2>&5
34025   ac_status=$?
34026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027   (exit $ac_status); }; }; then
34028   ac_cv_search_krb5_free_context="none required"
34029 else
34030   echo "$as_me: failed program was:" >&5
34031 sed 's/^/| /' conftest.$ac_ext >&5
34032
34033 fi
34034 rm -f conftest.err conftest.$ac_objext \
34035       conftest$ac_exeext conftest.$ac_ext
34036 if test "$ac_cv_search_krb5_free_context" = no; then
34037   for ac_lib in krb5; do
34038     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34039     cat >conftest.$ac_ext <<_ACEOF
34040 /* confdefs.h.  */
34041 _ACEOF
34042 cat confdefs.h >>conftest.$ac_ext
34043 cat >>conftest.$ac_ext <<_ACEOF
34044 /* end confdefs.h.  */
34045
34046 /* Override any gcc2 internal prototype to avoid an error.  */
34047 #ifdef __cplusplus
34048 extern "C"
34049 #endif
34050 /* We use char because int might match the return type of a gcc2
34051    builtin and then its argument prototype would still apply.  */
34052 char krb5_free_context ();
34053 int
34054 main ()
34055 {
34056 krb5_free_context ();
34057   ;
34058   return 0;
34059 }
34060 _ACEOF
34061 rm -f conftest.$ac_objext conftest$ac_exeext
34062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34063   (eval $ac_link) 2>conftest.er1
34064   ac_status=$?
34065   grep -v '^ *+' conftest.er1 >conftest.err
34066   rm -f conftest.er1
34067   cat conftest.err >&5
34068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069   (exit $ac_status); } &&
34070          { ac_try='test -z "$ac_c_werror_flag"
34071                          || test ! -s conftest.err'
34072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34073   (eval $ac_try) 2>&5
34074   ac_status=$?
34075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076   (exit $ac_status); }; } &&
34077          { ac_try='test -s conftest$ac_exeext'
34078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34079   (eval $ac_try) 2>&5
34080   ac_status=$?
34081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082   (exit $ac_status); }; }; then
34083   ac_cv_search_krb5_free_context="-l$ac_lib"
34084 break
34085 else
34086   echo "$as_me: failed program was:" >&5
34087 sed 's/^/| /' conftest.$ac_ext >&5
34088
34089 fi
34090 rm -f conftest.err conftest.$ac_objext \
34091       conftest$ac_exeext conftest.$ac_ext
34092   done
34093 fi
34094 LIBS=$ac_func_search_save_LIBS
34095 fi
34096 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_free_context" >&5
34097 echo "${ECHO_T}$ac_cv_search_krb5_free_context" >&6
34098 if test "$ac_cv_search_krb5_free_context" != no; then
34099   test "$ac_cv_search_krb5_free_context" = "none required" || LIBS="$ac_cv_search_krb5_free_context $LIBS"
34100
34101 fi
34102
34103
34104   #
34105   # gssapi_krb5         Only lib needed with MIT K5 v1.2.1, so find it first in
34106   #                     order to prefer MIT Kerberos.  If both MIT & Heimdal
34107   #                     Kerberos are installed and in the path, this will leave
34108   #                     some of the libraries above in LIBS unnecessarily, but
34109   #                     noone would ever do that, right?
34110   #
34111   # gssapi_krb5         MIT K5 v1.2.2-beta1     -lkrb5
34112   #
34113   # gssapi              Heimdal K 0.3d          -lkrb5
34114   #
34115   echo "$as_me:$LINENO: checking for library containing gss_import_name" >&5
34116 echo $ECHO_N "checking for library containing gss_import_name... $ECHO_C" >&6
34117 if test "${ac_cv_search_gss_import_name+set}" = set; then
34118   echo $ECHO_N "(cached) $ECHO_C" >&6
34119 else
34120   ac_func_search_save_LIBS=$LIBS
34121 ac_cv_search_gss_import_name=no
34122 cat >conftest.$ac_ext <<_ACEOF
34123 /* confdefs.h.  */
34124 _ACEOF
34125 cat confdefs.h >>conftest.$ac_ext
34126 cat >>conftest.$ac_ext <<_ACEOF
34127 /* end confdefs.h.  */
34128
34129 /* Override any gcc2 internal prototype to avoid an error.  */
34130 #ifdef __cplusplus
34131 extern "C"
34132 #endif
34133 /* We use char because int might match the return type of a gcc2
34134    builtin and then its argument prototype would still apply.  */
34135 char gss_import_name ();
34136 int
34137 main ()
34138 {
34139 gss_import_name ();
34140   ;
34141   return 0;
34142 }
34143 _ACEOF
34144 rm -f conftest.$ac_objext conftest$ac_exeext
34145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34146   (eval $ac_link) 2>conftest.er1
34147   ac_status=$?
34148   grep -v '^ *+' conftest.er1 >conftest.err
34149   rm -f conftest.er1
34150   cat conftest.err >&5
34151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152   (exit $ac_status); } &&
34153          { ac_try='test -z "$ac_c_werror_flag"
34154                          || test ! -s conftest.err'
34155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34156   (eval $ac_try) 2>&5
34157   ac_status=$?
34158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159   (exit $ac_status); }; } &&
34160          { ac_try='test -s conftest$ac_exeext'
34161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34162   (eval $ac_try) 2>&5
34163   ac_status=$?
34164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165   (exit $ac_status); }; }; then
34166   ac_cv_search_gss_import_name="none required"
34167 else
34168   echo "$as_me: failed program was:" >&5
34169 sed 's/^/| /' conftest.$ac_ext >&5
34170
34171 fi
34172 rm -f conftest.err conftest.$ac_objext \
34173       conftest$ac_exeext conftest.$ac_ext
34174 if test "$ac_cv_search_gss_import_name" = no; then
34175   for ac_lib in gssapi_krb5 gssapi; do
34176     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
34177     cat >conftest.$ac_ext <<_ACEOF
34178 /* confdefs.h.  */
34179 _ACEOF
34180 cat confdefs.h >>conftest.$ac_ext
34181 cat >>conftest.$ac_ext <<_ACEOF
34182 /* end confdefs.h.  */
34183
34184 /* Override any gcc2 internal prototype to avoid an error.  */
34185 #ifdef __cplusplus
34186 extern "C"
34187 #endif
34188 /* We use char because int might match the return type of a gcc2
34189    builtin and then its argument prototype would still apply.  */
34190 char gss_import_name ();
34191 int
34192 main ()
34193 {
34194 gss_import_name ();
34195   ;
34196   return 0;
34197 }
34198 _ACEOF
34199 rm -f conftest.$ac_objext conftest$ac_exeext
34200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34201   (eval $ac_link) 2>conftest.er1
34202   ac_status=$?
34203   grep -v '^ *+' conftest.er1 >conftest.err
34204   rm -f conftest.er1
34205   cat conftest.err >&5
34206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207   (exit $ac_status); } &&
34208          { ac_try='test -z "$ac_c_werror_flag"
34209                          || test ! -s conftest.err'
34210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34211   (eval $ac_try) 2>&5
34212   ac_status=$?
34213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214   (exit $ac_status); }; } &&
34215          { ac_try='test -s conftest$ac_exeext'
34216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34217   (eval $ac_try) 2>&5
34218   ac_status=$?
34219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220   (exit $ac_status); }; }; then
34221   ac_cv_search_gss_import_name="-l$ac_lib"
34222 break
34223 else
34224   echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34226
34227 fi
34228 rm -f conftest.err conftest.$ac_objext \
34229       conftest$ac_exeext conftest.$ac_ext
34230   done
34231 fi
34232 LIBS=$ac_func_search_save_LIBS
34233 fi
34234 echo "$as_me:$LINENO: result: $ac_cv_search_gss_import_name" >&5
34235 echo "${ECHO_T}$ac_cv_search_gss_import_name" >&6
34236 if test "$ac_cv_search_gss_import_name" != no; then
34237   test "$ac_cv_search_gss_import_name" = "none required" || LIBS="$ac_cv_search_gss_import_name $LIBS"
34238
34239 fi
34240
34241 fi
34242
34243
34244
34245 #
34246 # Use --with-zlib to build with a zlib other than the version distributed
34247 # with CVS.
34248 #
34249 # defaults to the included snapshot of zlib
34250 #
34251
34252 # Check whether --with-external-zlib or --without-external-zlib was given.
34253 if test "${with_external_zlib+set}" = set; then
34254   withval="$with_external_zlib"
34255   with_external_zlib=$withval
34256 else
34257   with_external_zlib=no
34258 fi;
34259
34260 #
34261 # Try to locate a ZLIB installation if no location was specified, assuming
34262 # external ZLIB was enabled.
34263 #
34264 if test -n "$acx_zlib_cv_external_zlib"; then
34265   # Granted, this is a slightly ugly way to print this info, but the
34266   # AC_CHECK_HEADER used in the search for a ZLIB installation makes using
34267   # AC_CACHE_CHECK worse
34268   echo "$as_me:$LINENO: checking for external ZLIB" >&5
34269 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
34270 else :; fi
34271 if test "${acx_zlib_cv_external_zlib+set}" = set; then
34272   echo $ECHO_N "(cached) $ECHO_C" >&6
34273 else
34274
34275   #
34276   # --with but no location specified
34277   # assume zlib.h locates our install.
34278   #
34279   acx_zlib_save_CPPFLAGS=$CPPFLAGS
34280   for acx_zlib_cv_external_zlib in yes /usr/local no; do
34281     if test x$acx_zlib_cv_external_zlib = xno; then
34282       break
34283     fi
34284     if test x$acx_zlib_cv_external_zlib = xyes; then
34285       echo "$as_me:$LINENO: checking for external ZLIB" >&5
34286 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
34287       echo "$as_me:$LINENO: result: " >&5
34288 echo "${ECHO_T}" >&6
34289     else
34290       CPPFLAGS="$acx_zlib_save_CPPFLAGS -I$acx_zlib_cv_external_zlib/include"
34291       echo "$as_me:$LINENO: checking for external ZLIB in $acx_zlib_cv_external_zlib" >&5
34292 echo $ECHO_N "checking for external ZLIB in $acx_zlib_cv_external_zlib... $ECHO_C" >&6
34293       echo "$as_me:$LINENO: result: " >&5
34294 echo "${ECHO_T}" >&6
34295     fi
34296     unset ac_cv_header_zlib_h
34297
34298 for ac_header in zlib.h
34299 do
34300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34302   echo "$as_me:$LINENO: checking for $ac_header" >&5
34303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34305   echo $ECHO_N "(cached) $ECHO_C" >&6
34306 fi
34307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34309 else
34310   # Is the header compilable?
34311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34313 cat >conftest.$ac_ext <<_ACEOF
34314 /* confdefs.h.  */
34315 _ACEOF
34316 cat confdefs.h >>conftest.$ac_ext
34317 cat >>conftest.$ac_ext <<_ACEOF
34318 /* end confdefs.h.  */
34319 $ac_includes_default
34320 #include <$ac_header>
34321 _ACEOF
34322 rm -f conftest.$ac_objext
34323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34324   (eval $ac_compile) 2>conftest.er1
34325   ac_status=$?
34326   grep -v '^ *+' conftest.er1 >conftest.err
34327   rm -f conftest.er1
34328   cat conftest.err >&5
34329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330   (exit $ac_status); } &&
34331          { ac_try='test -z "$ac_c_werror_flag"
34332                          || test ! -s conftest.err'
34333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34334   (eval $ac_try) 2>&5
34335   ac_status=$?
34336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337   (exit $ac_status); }; } &&
34338          { ac_try='test -s conftest.$ac_objext'
34339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34340   (eval $ac_try) 2>&5
34341   ac_status=$?
34342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343   (exit $ac_status); }; }; then
34344   ac_header_compiler=yes
34345 else
34346   echo "$as_me: failed program was:" >&5
34347 sed 's/^/| /' conftest.$ac_ext >&5
34348
34349 ac_header_compiler=no
34350 fi
34351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34353 echo "${ECHO_T}$ac_header_compiler" >&6
34354
34355 # Is the header present?
34356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34358 cat >conftest.$ac_ext <<_ACEOF
34359 /* confdefs.h.  */
34360 _ACEOF
34361 cat confdefs.h >>conftest.$ac_ext
34362 cat >>conftest.$ac_ext <<_ACEOF
34363 /* end confdefs.h.  */
34364 #include <$ac_header>
34365 _ACEOF
34366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34368   ac_status=$?
34369   grep -v '^ *+' conftest.er1 >conftest.err
34370   rm -f conftest.er1
34371   cat conftest.err >&5
34372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373   (exit $ac_status); } >/dev/null; then
34374   if test -s conftest.err; then
34375     ac_cpp_err=$ac_c_preproc_warn_flag
34376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34377   else
34378     ac_cpp_err=
34379   fi
34380 else
34381   ac_cpp_err=yes
34382 fi
34383 if test -z "$ac_cpp_err"; then
34384   ac_header_preproc=yes
34385 else
34386   echo "$as_me: failed program was:" >&5
34387 sed 's/^/| /' conftest.$ac_ext >&5
34388
34389   ac_header_preproc=no
34390 fi
34391 rm -f conftest.err conftest.$ac_ext
34392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34393 echo "${ECHO_T}$ac_header_preproc" >&6
34394
34395 # So?  What about this header?
34396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34397   yes:no: )
34398     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34402     ac_header_preproc=yes
34403     ;;
34404   no:yes:* )
34405     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34407     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34408 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34409     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34411     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34412 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34415     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34417     (
34418       cat <<\_ASBOX
34419 ## ------------------------------ ##
34420 ## Report this to bug-cvs@gnu.org ##
34421 ## ------------------------------ ##
34422 _ASBOX
34423     ) |
34424       sed "s/^/$as_me: WARNING:     /" >&2
34425     ;;
34426 esac
34427 echo "$as_me:$LINENO: checking for $ac_header" >&5
34428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34430   echo $ECHO_N "(cached) $ECHO_C" >&6
34431 else
34432   eval "$as_ac_Header=\$ac_header_preproc"
34433 fi
34434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34436
34437 fi
34438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34439   cat >>confdefs.h <<_ACEOF
34440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34441 _ACEOF
34442
34443 fi
34444
34445 done
34446
34447     if test "$ac_cv_header_zlib_h" = yes; then
34448       break
34449     fi
34450   done
34451   CPPFLAGS=$acx_zlib_save_CPPFLAGS
34452 echo "$as_me:$LINENO: checking for external ZLIB" >&5
34453 echo $ECHO_N "checking for external ZLIB... $ECHO_C" >&6
34454
34455 fi
34456 echo "$as_me:$LINENO: result: $acx_zlib_cv_external_zlib" >&5
34457 echo "${ECHO_T}$acx_zlib_cv_external_zlib" >&6
34458
34459
34460 #
34461 # Output a pretty message naming our selected ZLIB "external" or "package"
34462 # so that any warnings printed by the version check make more sense.
34463 #
34464 echo "$as_me:$LINENO: checking selected ZLIB" >&5
34465 echo $ECHO_N "checking selected ZLIB... $ECHO_C" >&6
34466 if test "x$with_external_zlib" = xno; then
34467   echo "$as_me:$LINENO: result: package" >&5
34468 echo "${ECHO_T}package" >&6
34469 else
34470   echo "$as_me:$LINENO: result: external" >&5
34471 echo "${ECHO_T}external" >&6
34472 fi
34473
34474
34475 #
34476 # Verify that the ZLIB we aren't using isn't newer than the one we are.
34477 #
34478 if test "x$acx_zlib_cv_external_zlib" != xno; then
34479   LOCAL_ZLIB_VERSION=`sed -n '/^#define ZLIB_VERSION ".*"$/{
34480                               s/^#define ZLIB_VERSION "\(.*\)"$/\1/;
34481                               p;}' <$srcdir/zlib/zlib.h 2>&5`
34482   cat >conftest.$ac_ext <<_ACEOF
34483 /* confdefs.h.  */
34484 _ACEOF
34485 cat confdefs.h >>conftest.$ac_ext
34486 cat >>conftest.$ac_ext <<_ACEOF
34487 /* end confdefs.h.  */
34488 #include <zlib.h>
34489
34490 _ACEOF
34491 ac_extract_cpp_result=`(eval "$ac_cpp -dM conftest.$ac_ext") 2>&5 |
34492   sed -n "/^#define ZLIB_VERSION /{
34493             s/^#define ZLIB_VERSION //;
34494             s/^ *//;
34495             s/ *\$//;
34496             p;}" 2>&5`
34497 if test -n "$ac_extract_cpp_result"; then
34498   ZLIB_VERSION=$ac_extract_cpp_result
34499 fi
34500 rm -f conftest*
34501
34502   ZLIB_VERSION=`echo "$ZLIB_VERSION" |sed 's/"//g'`
34503   if test "x$LOCAL_ZLIB_VERSION" = "x$ZLIB_VERSION"; then
34504   # the strings are equal.  run ACTION-IF-EQUAL and bail
34505   :
34506 else
34507   # first unletter the versions
34508   # this only works for a single trailing letter
34509     asx_version_1=`echo "$LOCAL_ZLIB_VERSION" |
34510                  sed 's/\(abcedfghi\)/.\1/;
34511                       s/\(jklmnopqrs\)/.1\1/;
34512                       s/\(tuvwxyz\)/.2\1/;
34513                       y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
34514   asx_version_2=`echo "$ZLIB_VERSION" |
34515                  sed 's/\(abcedfghi\)/.\1/;
34516                       s/\(jklmnopqrs\)/.1\1/;
34517                       s/\(tuvwxyz\)/.2\1/;
34518                       y/abcdefghijklmnopqrstuvwxyz/12345678901234567890123456/;'`
34519   asx_count=1
34520   asx_save_IFS=$IFS
34521   IFS=.
34522   asx_retval=-1
34523   for vsub1 in $asx_version_1; do
34524     vsub2=`echo "$asx_version_2" |awk -F. "{print \\\$$asx_count}"`
34525     if test -z "$vsub2" || test $vsub1 -gt $vsub2; then
34526       asx_retval=1
34527       break
34528     elif test $vsub1 -lt $vsub2; then
34529       break
34530     fi
34531     asx_count=`expr $asx_count + 1`
34532   done
34533   IFS=$asx_save_IFS
34534   if test $asx_retval -eq -1; then
34535     if test "x$with_external_zlib" = xno; then
34536        { echo "$as_me:$LINENO: WARNING: Found external ZLIB with a more recent version than the
34537            package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION).  configure with the
34538            --with-external-zlib option to select the more recent version." >&5
34539 echo "$as_me: WARNING: Found external ZLIB with a more recent version than the
34540            package version ($ZLIB_VERSION > $LOCAL_ZLIB_VERSION).  configure with the
34541            --with-external-zlib option to select the more recent version." >&2;}
34542      fi
34543   else
34544 if test "x$with_external_zlib" != xno; then
34545        { echo "$as_me:$LINENO: WARNING: Package ZLIB is more recent than requested external version
34546            ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION).  configure with the --without-external-zlib
34547            option to select the more recent version." >&5
34548 echo "$as_me: WARNING: Package ZLIB is more recent than requested external version
34549            ($LOCAL_ZLIB_VERSION > $ZLIB_VERSION).  configure with the --without-external-zlib
34550            option to select the more recent version." >&2;}
34551      fi
34552   fi
34553
34554 fi
34555
34556 fi
34557
34558
34559 # Now set with_external_zlib to our discovered value or the user specified
34560 # value, as appropriate.
34561 if test x$with_external_zlib = xyes; then
34562   with_external_zlib=$acx_zlib_cv_external_zlib
34563 fi
34564 # $with_external_zlib could still be "no"
34565
34566
34567 #
34568 # Set up ZLIB includes for later use.
34569 #
34570 if test x$with_external_zlib != xyes \
34571    && test x$with_external_zlib != no; then
34572   if test -z "$CPPFLAGS"; then
34573     CPPFLAGS="-I$with_external_zlib/include"
34574   else
34575     CPPFLAGS="$CPPFLAGS -I$with_external_zlib/include"
34576   fi
34577   if test -z "$LDFLAGS"; then
34578     LDFLAGS="-L$with_external_zlib/lib"
34579   else
34580     LDFLAGS="$LDFLAGS -L$with_external_zlib/lib"
34581   fi
34582 fi
34583
34584 ZLIB_CPPFLAGS=
34585 ZLIB_LIBS=
34586 ZLIB_SUBDIRS=
34587 if test x$with_external_zlib = xno; then
34588   # We need ZLIB_CPPFLAGS so that later executions of cpp from configure
34589   # don't try to interpret $(top_srcdir)
34590   ZLIB_CPPFLAGS='-I$(top_srcdir)/zlib'
34591   ZLIB_LIBS='$(top_builddir)/zlib/libz.a'
34592   # ZLIB_SUBDIRS is only used in the top level Makefiles.
34593   ZLIB_SUBDIRS=zlib
34594 else
34595   # We know what to do now, so set up the CPPFLAGS, LDFLAGS, and LIBS for later
34596   # use.
34597   if test -z "$LIBS"; then
34598     LIBS=-lz
34599   else
34600     LIBS="$LIBS -lz"
34601   fi
34602
34603   #
34604   # Verify external installed zlib works
34605   #
34606   # Ideally, we would also check that the version is newer
34607   #
34608   echo "$as_me:$LINENO: checking that ZLIB library works" >&5
34609 echo $ECHO_N "checking that ZLIB library works... $ECHO_C" >&6
34610   cat >conftest.$ac_ext <<_ACEOF
34611 /* confdefs.h.  */
34612 _ACEOF
34613 cat confdefs.h >>conftest.$ac_ext
34614 cat >>conftest.$ac_ext <<_ACEOF
34615 /* end confdefs.h.  */
34616 #include <zlib.h>
34617 int
34618 main ()
34619 {
34620 int i = Z_OK; const char *version = zlibVersion();
34621   ;
34622   return 0;
34623 }
34624 _ACEOF
34625 rm -f conftest.$ac_objext conftest$ac_exeext
34626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34627   (eval $ac_link) 2>conftest.er1
34628   ac_status=$?
34629   grep -v '^ *+' conftest.er1 >conftest.err
34630   rm -f conftest.er1
34631   cat conftest.err >&5
34632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633   (exit $ac_status); } &&
34634          { ac_try='test -z "$ac_c_werror_flag"
34635                          || test ! -s conftest.err'
34636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34637   (eval $ac_try) 2>&5
34638   ac_status=$?
34639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640   (exit $ac_status); }; } &&
34641          { ac_try='test -s conftest$ac_exeext'
34642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34643   (eval $ac_try) 2>&5
34644   ac_status=$?
34645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646   (exit $ac_status); }; }; then
34647   echo "$as_me:$LINENO: result: yes" >&5
34648 echo "${ECHO_T}yes" >&6
34649 else
34650   echo "$as_me: failed program was:" >&5
34651 sed 's/^/| /' conftest.$ac_ext >&5
34652
34653 echo "$as_me:$LINENO: result: no" >&5
34654 echo "${ECHO_T}no" >&6
34655                { { echo "$as_me:$LINENO: error: ZLIB failed to link" >&5
34656 echo "$as_me: error: ZLIB failed to link" >&2;}
34657    { (exit 1); exit 1; }; }
34658 fi
34659 rm -f conftest.err conftest.$ac_objext \
34660       conftest$ac_exeext conftest.$ac_ext
34661 fi
34662
34663
34664
34665
34666 # What remote shell transport should our client cvs default to using?
34667
34668 # Check whether --with-rsh or --without-rsh was given.
34669 if test "${with_rsh+set}" = set; then
34670   withval="$with_rsh"
34671
34672 else
34673   with_rsh="rsh ssh"
34674 fi;
34675
34676 if test no = "$with_rsh"; then
34677   { echo "$as_me:$LINENO: WARNING: Failed to find usable remote shell. Using 'rsh'." >&5
34678 echo "$as_me: WARNING: Failed to find usable remote shell. Using 'rsh'." >&2;}
34679   with_rsh=rsh
34680 elif test yes = "$with_rsh"; then
34681   # Make --with-rsh mean the same thing as --with-rsh=rsh
34682   with_rsh=rsh
34683 fi
34684
34685 if echo $with_rsh |grep ^/ >/dev/null; then
34686   # If $with_rsh is an absolute path, issue a warning if the executable
34687   # doesn't exist or isn't usable, but then trust the user and use it
34688   # regardless
34689   with_default_rsh=$with_rsh
34690   echo "$as_me:$LINENO: checking for a remote shell" >&5
34691 echo $ECHO_N "checking for a remote shell... $ECHO_C" >&6
34692   if ! test -f $with_rsh \
34693       || ! test -x $with_rsh; then
34694     # warn the user that they may encounter problems
34695     { echo "$as_me:$LINENO: WARNING: $with_rsh is not a path to an executable file" >&5
34696 echo "$as_me: WARNING: $with_rsh is not a path to an executable file" >&2;}
34697   fi
34698 else
34699   # Search for a remote shell
34700   for ac_prog in $with_rsh
34701 do
34702   # Extract the first word of "$ac_prog", so it can be a program name with args.
34703 set dummy $ac_prog; ac_word=$2
34704 echo "$as_me:$LINENO: checking for $ac_word" >&5
34705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34706 if test "${ac_cv_prog_with_default_rsh+set}" = set; then
34707   echo $ECHO_N "(cached) $ECHO_C" >&6
34708 else
34709   if test -n "$with_default_rsh"; then
34710   ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test.
34711 else
34712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34713 for as_dir in $PATH
34714 do
34715   IFS=$as_save_IFS
34716   test -z "$as_dir" && as_dir=.
34717   for ac_exec_ext in '' $ac_executable_extensions; do
34718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34719     ac_cv_prog_with_default_rsh="$ac_prog"
34720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34721     break 2
34722   fi
34723 done
34724 done
34725
34726 fi
34727 fi
34728 with_default_rsh=$ac_cv_prog_with_default_rsh
34729 if test -n "$with_default_rsh"; then
34730   echo "$as_me:$LINENO: result: $with_default_rsh" >&5
34731 echo "${ECHO_T}$with_default_rsh" >&6
34732 else
34733   echo "$as_me:$LINENO: result: no" >&5
34734 echo "${ECHO_T}no" >&6
34735 fi
34736
34737   test -n "$with_default_rsh" && break
34738 done
34739 test -n "$with_default_rsh" || with_default_rsh=""rsh""
34740
34741 fi
34742
34743
34744 cat >>confdefs.h <<_ACEOF
34745 #define RSH_DFLT "$with_default_rsh"
34746 _ACEOF
34747
34748 RSH_DFLT=$with_default_rsh
34749
34750
34751
34752
34753
34754 # Let the confiscator request a specific editor
34755
34756 # Check whether --with-editor or --without-editor was given.
34757 if test "${with_editor+set}" = set; then
34758   withval="$with_editor"
34759
34760 else
34761   with_editor=yes
34762 fi;
34763
34764 # If --with-editor was supplied with an argument, let it override $EDITOR from
34765 # the user's environment.  We need to unset EDITOR here because AC_CHECK_PROGS
34766 # will let the value of EDITOR ride when it is set rather than searching.  We
34767 # ignore the --without-editor case since it will be caught below.
34768 if test -n "$EDITOR" && test yes != $with_editor; then
34769   $as_unset EDITOR || test "${EDITOR+set}" != set || { EDITOR=; export EDITOR; }
34770 fi
34771
34772 # Set the default when --with-editor wasn't supplied or when it was supplied
34773 # without an argument.
34774 if test yes = $with_editor; then
34775   with_editor="vim vi emacs nano pico edit"
34776 fi
34777
34778 if echo $with_editor |grep ^/ >/dev/null; then
34779   # If $with_editor is an absolute path, issue a warning if the executable
34780   # doesn't exist or isn't usable, but then trust the user and use it
34781   # regardless
34782   EDITOR=$with_editor
34783   echo "$as_me:$LINENO: checking for an editor" >&5
34784 echo $ECHO_N "checking for an editor... $ECHO_C" >&6
34785   echo "$as_me:$LINENO: result: $EDITOR" >&5
34786 echo "${ECHO_T}$EDITOR" >&6
34787   if ! test -f $with_editor \
34788       || ! test -x $with_editor; then
34789     # warn the user that they may encounter problems
34790     { echo "$as_me:$LINENO: WARNING: \`$with_editor' is not a path to an executable file" >&5
34791 echo "$as_me: WARNING: \`$with_editor' is not a path to an executable file" >&2;}
34792   fi
34793 elif test no != "${with_editor}"; then
34794   # Search for an editor
34795   for ac_prog in $with_editor
34796 do
34797   # Extract the first word of "$ac_prog", so it can be a program name with args.
34798 set dummy $ac_prog; ac_word=$2
34799 echo "$as_me:$LINENO: checking for $ac_word" >&5
34800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34801 if test "${ac_cv_prog_EDITOR+set}" = set; then
34802   echo $ECHO_N "(cached) $ECHO_C" >&6
34803 else
34804   if test -n "$EDITOR"; then
34805   ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
34806 else
34807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34808 for as_dir in $PATH
34809 do
34810   IFS=$as_save_IFS
34811   test -z "$as_dir" && as_dir=.
34812   for ac_exec_ext in '' $ac_executable_extensions; do
34813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34814     ac_cv_prog_EDITOR="$ac_prog"
34815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34816     break 2
34817   fi
34818 done
34819 done
34820
34821 fi
34822 fi
34823 EDITOR=$ac_cv_prog_EDITOR
34824 if test -n "$EDITOR"; then
34825   echo "$as_me:$LINENO: result: $EDITOR" >&5
34826 echo "${ECHO_T}$EDITOR" >&6
34827 else
34828   echo "$as_me:$LINENO: result: no" >&5
34829 echo "${ECHO_T}no" >&6
34830 fi
34831
34832   test -n "$EDITOR" && break
34833 done
34834 test -n "$EDITOR" || EDITOR="no"
34835
34836     if test no = "${EDITOR}"; then
34837       { { echo "$as_me:$LINENO: error:
34838     Failed to find a text file editor.  CVS cannot be compiled
34839     without a default log message editor.  Searched for
34840     \`$with_editor'.  Try \`configure --with-editor'." >&5
34841 echo "$as_me: error:
34842     Failed to find a text file editor.  CVS cannot be compiled
34843     without a default log message editor.  Searched for
34844     \`$with_editor'.  Try \`configure --with-editor'." >&2;}
34845    { (exit 1); exit 1; }; }
34846     fi
34847 else
34848   { { echo "$as_me:$LINENO: error:
34849     CVS cannot be compiled without a default log message editor.
34850     Try \`configure --with-editor'." >&5
34851 echo "$as_me: error:
34852     CVS cannot be compiled without a default log message editor.
34853     Try \`configure --with-editor'." >&2;}
34854    { (exit 1); exit 1; }; }
34855 fi
34856
34857
34858 cat >>confdefs.h <<_ACEOF
34859 #define EDITOR_DFLT "$EDITOR"
34860 _ACEOF
34861
34862
34863
34864
34865
34866
34867 # Check whether --with-hardcoded-pam-service-name or --without-hardcoded-pam-service-name was given.
34868 if test "${with_hardcoded_pam_service_name+set}" = set; then
34869   withval="$with_hardcoded_pam_service_name"
34870
34871 else
34872   with_hardcoded_pam_service_name=cvs
34873 fi;
34874
34875 if test "x$with_hardcoded_pam_service_name" = xno ||
34876    test "x$with_hardcoded_pam_service_name" = xprogram_name; then
34877
34878 cat >>confdefs.h <<\_ACEOF
34879 #define PAM_SERVICE_NAME program_name
34880 _ACEOF
34881
34882 else
34883   if test x"$with_hardcoded_pam_service_name" = xyes; then
34884     with_hardcoded_pam_service_name=cvs
34885   fi
34886   cat >>confdefs.h <<_ACEOF
34887 #define PAM_SERVICE_NAME "$with_hardcoded_pam_service_name"
34888 _ACEOF
34889
34890 fi
34891
34892
34893
34894
34895 # Check whether --with-tmpdir or --without-tmpdir was given.
34896 if test "${with_tmpdir+set}" = set; then
34897   withval="$with_tmpdir"
34898
34899 fi;
34900
34901 echo "$as_me:$LINENO: checking for temporary directory" >&5
34902 echo $ECHO_N "checking for temporary directory... $ECHO_C" >&6
34903 if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
34904   for with_tmpdir in /tmp /var/tmp no; do
34905     if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
34906         && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
34907       break
34908     fi
34909   done
34910   if test no = "$with_tmpdir"; then
34911     { echo "$as_me:$LINENO: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&5
34912 echo "$as_me: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&2;}
34913     with_tmpdir=/tmp
34914   fi
34915   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
34916 echo "${ECHO_T}$with_tmpdir" >&6
34917 elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
34918   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
34919 echo "${ECHO_T}$with_tmpdir" >&6
34920   { { echo "$as_me:$LINENO: error: --with-tmpdir requires an absolute path." >&5
34921 echo "$as_me: error: --with-tmpdir requires an absolute path." >&2;}
34922    { (exit 1); exit 1; }; }
34923 elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
34924         || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
34925   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
34926 echo "${ECHO_T}$with_tmpdir" >&6
34927   { echo "$as_me:$LINENO: WARNING: User supplied temporary directory ('$with_tmpdir') does not
34928      exist or lacks sufficient permissions for read/write." >&5
34929 echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not
34930      exist or lacks sufficient permissions for read/write." >&2;}
34931 fi
34932
34933
34934 cat >>confdefs.h <<_ACEOF
34935 #define TMPDIR_DFLT "$with_tmpdir"
34936 _ACEOF
34937
34938
34939
34940
34941
34942
34943 # Check whether --with-umask or --without-umask was given.
34944 if test "${with_umask+set}" = set; then
34945   withval="$with_umask"
34946
34947 fi;
34948
34949 if test -z "$with_umask" || test yes = "$with_umask"; then
34950   with_umask=002
34951 elif test no = "$with_umask"; then
34952   with_umask=000
34953 fi
34954
34955
34956 cat >>confdefs.h <<_ACEOF
34957 #define UMASK_DFLT $with_umask
34958 _ACEOF
34959
34960
34961
34962
34963 # Check whether --with-cvs-admin-group or --without-cvs-admin-group was given.
34964 if test "${with_cvs_admin_group+set}" = set; then
34965   withval="$with_cvs_admin_group"
34966
34967 else
34968   with_cvs_admin_group=cvsadmin
34969 fi;
34970
34971 if test yes = "$with_cvs_admin_group"; then
34972   with_cvs_admin_group=cvsadmin
34973 fi
34974 if test no != "$with_cvs_admin_group"; then
34975
34976 cat >>confdefs.h <<_ACEOF
34977 #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
34978 _ACEOF
34979
34980 fi
34981
34982
34983 # Check whether --enable-cvs-ndbm or --disable-cvs-ndbm was given.
34984 if test "${enable_cvs_ndbm+set}" = set; then
34985   enableval="$enable_cvs_ndbm"
34986
34987 else
34988   enable_cvs_ndbm=yes
34989 fi;
34990 if test no != "$enable_cvs_ndbm"; then
34991
34992 cat >>confdefs.h <<\_ACEOF
34993 #define MY_NDBM 1
34994 _ACEOF
34995
34996 fi
34997
34998
34999
35000
35001
35002
35003
35004
35005
35006 # Check for options requesting client and server feature. If none are
35007 # given and we have connect(), we want the full client & server arrangement.
35008 # Check whether --enable-client or --disable-client was given.
35009 if test "${enable_client+set}" = set; then
35010   enableval="$enable_client"
35011
35012 else
35013   if test "$ac_cv_search_connect" != no; then
35014     enable_client=yes
35015   fi
35016 fi;
35017 if test no != "$enable_client"; then
35018
35019 cat >>confdefs.h <<\_ACEOF
35020 #define CLIENT_SUPPORT 1
35021 _ACEOF
35022
35023 fi
35024
35025
35026
35027 # Check whether --enable-password-authenticated-client or --disable-password-authenticated-client was given.
35028 if test "${enable_password_authenticated_client+set}" = set; then
35029   enableval="$enable_password_authenticated_client"
35030
35031 fi;
35032
35033 if test no != "$enable_password_authenticated_client"; then
35034   if test no != "$enable_client"; then
35035
35036 cat >>confdefs.h <<\_ACEOF
35037 #define AUTH_CLIENT_SUPPORT 1
35038 _ACEOF
35039
35040   else
35041     { echo "$as_me:$LINENO: WARNING: --enable-password-authenticated-client is meaningless with
35042        the CVS client disabled (--disable-client)" >&5
35043 echo "$as_me: WARNING: --enable-password-authenticated-client is meaningless with
35044        the CVS client disabled (--disable-client)" >&2;}
35045   fi
35046 fi
35047
35048
35049
35050
35051 # Check whether --enable-server or --disable-server was given.
35052 if test "${enable_server+set}" = set; then
35053   enableval="$enable_server"
35054
35055 else
35056   if test "$ac_cv_search_connect" != no; then
35057      enable_server=yes
35058    fi
35059 fi;
35060
35061 if test no != "$enable_server"; then
35062
35063 cat >>confdefs.h <<\_ACEOF
35064 #define SERVER_SUPPORT 1
35065 _ACEOF
35066
35067
35068             echo "$as_me:$LINENO: checking for library containing crypt" >&5
35069 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
35070 if test "${ac_cv_search_crypt+set}" = set; then
35071   echo $ECHO_N "(cached) $ECHO_C" >&6
35072 else
35073   ac_func_search_save_LIBS=$LIBS
35074 ac_cv_search_crypt=no
35075 cat >conftest.$ac_ext <<_ACEOF
35076 /* confdefs.h.  */
35077 _ACEOF
35078 cat confdefs.h >>conftest.$ac_ext
35079 cat >>conftest.$ac_ext <<_ACEOF
35080 /* end confdefs.h.  */
35081
35082 /* Override any gcc2 internal prototype to avoid an error.  */
35083 #ifdef __cplusplus
35084 extern "C"
35085 #endif
35086 /* We use char because int might match the return type of a gcc2
35087    builtin and then its argument prototype would still apply.  */
35088 char crypt ();
35089 int
35090 main ()
35091 {
35092 crypt ();
35093   ;
35094   return 0;
35095 }
35096 _ACEOF
35097 rm -f conftest.$ac_objext conftest$ac_exeext
35098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35099   (eval $ac_link) 2>conftest.er1
35100   ac_status=$?
35101   grep -v '^ *+' conftest.er1 >conftest.err
35102   rm -f conftest.er1
35103   cat conftest.err >&5
35104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105   (exit $ac_status); } &&
35106          { ac_try='test -z "$ac_c_werror_flag"
35107                          || test ! -s conftest.err'
35108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35109   (eval $ac_try) 2>&5
35110   ac_status=$?
35111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112   (exit $ac_status); }; } &&
35113          { ac_try='test -s conftest$ac_exeext'
35114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35115   (eval $ac_try) 2>&5
35116   ac_status=$?
35117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118   (exit $ac_status); }; }; then
35119   ac_cv_search_crypt="none required"
35120 else
35121   echo "$as_me: failed program was:" >&5
35122 sed 's/^/| /' conftest.$ac_ext >&5
35123
35124 fi
35125 rm -f conftest.err conftest.$ac_objext \
35126       conftest$ac_exeext conftest.$ac_ext
35127 if test "$ac_cv_search_crypt" = no; then
35128   for ac_lib in crypt; do
35129     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
35130     cat >conftest.$ac_ext <<_ACEOF
35131 /* confdefs.h.  */
35132 _ACEOF
35133 cat confdefs.h >>conftest.$ac_ext
35134 cat >>conftest.$ac_ext <<_ACEOF
35135 /* end confdefs.h.  */
35136
35137 /* Override any gcc2 internal prototype to avoid an error.  */
35138 #ifdef __cplusplus
35139 extern "C"
35140 #endif
35141 /* We use char because int might match the return type of a gcc2
35142    builtin and then its argument prototype would still apply.  */
35143 char crypt ();
35144 int
35145 main ()
35146 {
35147 crypt ();
35148   ;
35149   return 0;
35150 }
35151 _ACEOF
35152 rm -f conftest.$ac_objext conftest$ac_exeext
35153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35154   (eval $ac_link) 2>conftest.er1
35155   ac_status=$?
35156   grep -v '^ *+' conftest.er1 >conftest.err
35157   rm -f conftest.er1
35158   cat conftest.err >&5
35159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160   (exit $ac_status); } &&
35161          { ac_try='test -z "$ac_c_werror_flag"
35162                          || test ! -s conftest.err'
35163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35164   (eval $ac_try) 2>&5
35165   ac_status=$?
35166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167   (exit $ac_status); }; } &&
35168          { ac_try='test -s conftest$ac_exeext'
35169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170   (eval $ac_try) 2>&5
35171   ac_status=$?
35172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173   (exit $ac_status); }; }; then
35174   ac_cv_search_crypt="-l$ac_lib"
35175 break
35176 else
35177   echo "$as_me: failed program was:" >&5
35178 sed 's/^/| /' conftest.$ac_ext >&5
35179
35180 fi
35181 rm -f conftest.err conftest.$ac_objext \
35182       conftest$ac_exeext conftest.$ac_ext
35183   done
35184 fi
35185 LIBS=$ac_func_search_save_LIBS
35186 fi
35187 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
35188 echo "${ECHO_T}$ac_cv_search_crypt" >&6
35189 if test "$ac_cv_search_crypt" != no; then
35190   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
35191
35192 cat >>confdefs.h <<\_ACEOF
35193 #define HAVE_CRYPT 1
35194 _ACEOF
35195
35196
35197 cat >>confdefs.h <<\_ACEOF
35198 #define AUTH_SERVER_SUPPORT 1
35199 _ACEOF
35200
35201 fi
35202
35203           # Check whether --enable-server-flow-control or --disable-server-flow-control was given.
35204 if test "${enable_server_flow_control+set}" = set; then
35205   enableval="$enable_server_flow_control"
35206   if test yes = $enable_server_flow_control; then
35207        enable_server_flow_control=1M,2M
35208      fi
35209 else
35210   enable_server_flow_control=1M,2M
35211 fi;
35212   if test no != $enable_server_flow_control; then
35213     ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
35214     ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
35215     ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
35216     ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
35217     test "" != "$ccvs_lwm" || ccvs_lwm_E="?"
35218     case $ccvs_lwm_E in
35219         G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
35220         M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
35221         k) ccvs_lwm="$ccvs_lwm * 1024";;
35222         b | '') ;;
35223         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
35224                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
35225 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
35226                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
35227    { (exit 1); exit 1; }; }
35228       esac
35229     ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
35230     ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
35231     test "" != "$ccvs_hwm" || ccvs_hwm_E="?"
35232     case $ccvs_hwm_E in
35233         G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
35234         M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
35235         k) ccvs_hwm="$ccvs_hwm * 1024";;
35236         b | '') ccvs_hwm="$ccvs_hwm";;
35237         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
35238                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
35239 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
35240                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
35241    { (exit 1); exit 1; }; }
35242       esac
35243
35244
35245 cat >>confdefs.h <<\_ACEOF
35246 #define SERVER_FLOWCONTROL 1
35247 _ACEOF
35248
35249
35250 cat >>confdefs.h <<_ACEOF
35251 #define SERVER_LO_WATER ($ccvs_lwm)
35252 _ACEOF
35253
35254
35255 cat >>confdefs.h <<_ACEOF
35256 #define SERVER_HI_WATER ($ccvs_hwm)
35257 _ACEOF
35258
35259   fi # enable_server_flow_control
35260 fi # enable_server
35261
35262
35263
35264
35265 # Check whether --enable-proxy or --disable-proxy was given.
35266 if test "${enable_proxy+set}" = set; then
35267   enableval="$enable_proxy"
35268
35269 else
35270   enable_proxy=yes
35271 fi;
35272
35273 if test no != "$enable_proxy"; then
35274
35275 cat >>confdefs.h <<\_ACEOF
35276 #define PROXY_SUPPORT 1
35277 _ACEOF
35278
35279 fi
35280
35281
35282
35283 # Check whether --enable-pam or --disable-pam was given.
35284 if test "${enable_pam+set}" = set; then
35285   enableval="$enable_pam"
35286
35287 else
35288   enable_pam=no
35289
35290 fi;
35291
35292 if test yes = $enable_pam; then
35293   if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
35294   echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
35295 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
35296 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
35297   echo $ECHO_N "(cached) $ECHO_C" >&6
35298 fi
35299 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
35300 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
35301 else
35302   # Is the header compilable?
35303 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
35304 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
35305 cat >conftest.$ac_ext <<_ACEOF
35306 /* confdefs.h.  */
35307 _ACEOF
35308 cat confdefs.h >>conftest.$ac_ext
35309 cat >>conftest.$ac_ext <<_ACEOF
35310 /* end confdefs.h.  */
35311 $ac_includes_default
35312 #include <security/pam_appl.h>
35313 _ACEOF
35314 rm -f conftest.$ac_objext
35315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35316   (eval $ac_compile) 2>conftest.er1
35317   ac_status=$?
35318   grep -v '^ *+' conftest.er1 >conftest.err
35319   rm -f conftest.er1
35320   cat conftest.err >&5
35321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322   (exit $ac_status); } &&
35323          { ac_try='test -z "$ac_c_werror_flag"
35324                          || test ! -s conftest.err'
35325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35326   (eval $ac_try) 2>&5
35327   ac_status=$?
35328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329   (exit $ac_status); }; } &&
35330          { ac_try='test -s conftest.$ac_objext'
35331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35332   (eval $ac_try) 2>&5
35333   ac_status=$?
35334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35335   (exit $ac_status); }; }; then
35336   ac_header_compiler=yes
35337 else
35338   echo "$as_me: failed program was:" >&5
35339 sed 's/^/| /' conftest.$ac_ext >&5
35340
35341 ac_header_compiler=no
35342 fi
35343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35345 echo "${ECHO_T}$ac_header_compiler" >&6
35346
35347 # Is the header present?
35348 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
35349 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
35350 cat >conftest.$ac_ext <<_ACEOF
35351 /* confdefs.h.  */
35352 _ACEOF
35353 cat confdefs.h >>conftest.$ac_ext
35354 cat >>conftest.$ac_ext <<_ACEOF
35355 /* end confdefs.h.  */
35356 #include <security/pam_appl.h>
35357 _ACEOF
35358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35360   ac_status=$?
35361   grep -v '^ *+' conftest.er1 >conftest.err
35362   rm -f conftest.er1
35363   cat conftest.err >&5
35364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365   (exit $ac_status); } >/dev/null; then
35366   if test -s conftest.err; then
35367     ac_cpp_err=$ac_c_preproc_warn_flag
35368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35369   else
35370     ac_cpp_err=
35371   fi
35372 else
35373   ac_cpp_err=yes
35374 fi
35375 if test -z "$ac_cpp_err"; then
35376   ac_header_preproc=yes
35377 else
35378   echo "$as_me: failed program was:" >&5
35379 sed 's/^/| /' conftest.$ac_ext >&5
35380
35381   ac_header_preproc=no
35382 fi
35383 rm -f conftest.err conftest.$ac_ext
35384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35385 echo "${ECHO_T}$ac_header_preproc" >&6
35386
35387 # So?  What about this header?
35388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35389   yes:no: )
35390     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
35391 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35392     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
35393 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
35394     ac_header_preproc=yes
35395     ;;
35396   no:yes:* )
35397     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
35398 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
35399     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&5
35400 echo "$as_me: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&2;}
35401     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
35402 echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
35403     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&5
35404 echo "$as_me: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
35405     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
35406 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
35407     { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
35408 echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
35409     (
35410       cat <<\_ASBOX
35411 ## ------------------------------ ##
35412 ## Report this to bug-cvs@gnu.org ##
35413 ## ------------------------------ ##
35414 _ASBOX
35415     ) |
35416       sed "s/^/$as_me: WARNING:     /" >&2
35417     ;;
35418 esac
35419 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
35420 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
35421 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
35422   echo $ECHO_N "(cached) $ECHO_C" >&6
35423 else
35424   ac_cv_header_security_pam_appl_h=$ac_header_preproc
35425 fi
35426 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
35427 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
35428
35429 fi
35430 if test $ac_cv_header_security_pam_appl_h = yes; then
35431
35432 cat >>confdefs.h <<\_ACEOF
35433 #define HAVE_PAM 1
35434 _ACEOF
35435
35436     echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
35437 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
35438 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
35439   echo $ECHO_N "(cached) $ECHO_C" >&6
35440 else
35441   ac_check_lib_save_LIBS=$LIBS
35442 LIBS="-lpam  $LIBS"
35443 cat >conftest.$ac_ext <<_ACEOF
35444 /* confdefs.h.  */
35445 _ACEOF
35446 cat confdefs.h >>conftest.$ac_ext
35447 cat >>conftest.$ac_ext <<_ACEOF
35448 /* end confdefs.h.  */
35449
35450 /* Override any gcc2 internal prototype to avoid an error.  */
35451 #ifdef __cplusplus
35452 extern "C"
35453 #endif
35454 /* We use char because int might match the return type of a gcc2
35455    builtin and then its argument prototype would still apply.  */
35456 char pam_start ();
35457 int
35458 main ()
35459 {
35460 pam_start ();
35461   ;
35462   return 0;
35463 }
35464 _ACEOF
35465 rm -f conftest.$ac_objext conftest$ac_exeext
35466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35467   (eval $ac_link) 2>conftest.er1
35468   ac_status=$?
35469   grep -v '^ *+' conftest.er1 >conftest.err
35470   rm -f conftest.er1
35471   cat conftest.err >&5
35472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473   (exit $ac_status); } &&
35474          { ac_try='test -z "$ac_c_werror_flag"
35475                          || test ! -s conftest.err'
35476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35477   (eval $ac_try) 2>&5
35478   ac_status=$?
35479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480   (exit $ac_status); }; } &&
35481          { ac_try='test -s conftest$ac_exeext'
35482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35483   (eval $ac_try) 2>&5
35484   ac_status=$?
35485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486   (exit $ac_status); }; }; then
35487   ac_cv_lib_pam_pam_start=yes
35488 else
35489   echo "$as_me: failed program was:" >&5
35490 sed 's/^/| /' conftest.$ac_ext >&5
35491
35492 ac_cv_lib_pam_pam_start=no
35493 fi
35494 rm -f conftest.err conftest.$ac_objext \
35495       conftest$ac_exeext conftest.$ac_ext
35496 LIBS=$ac_check_lib_save_LIBS
35497 fi
35498 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
35499 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
35500 if test $ac_cv_lib_pam_pam_start = yes; then
35501   LIBS="${LIBS} -lpam"
35502 else
35503   { { echo "$as_me:$LINENO: error: Could not find PAM libraries but the headers exist.
35504       Give the --disable-pam option to compile without PAM support (or fix
35505       your broken configuration)" >&5
35506 echo "$as_me: error: Could not find PAM libraries but the headers exist.
35507       Give the --disable-pam option to compile without PAM support (or fix
35508       your broken configuration)" >&2;}
35509    { (exit 1); exit 1; }; }
35510
35511 fi
35512
35513 else
35514   { { echo "$as_me:$LINENO: error: Could not find PAM headers" >&5
35515 echo "$as_me: error: Could not find PAM headers" >&2;}
35516    { (exit 1); exit 1; }; }
35517
35518 fi
35519
35520
35521 fi
35522
35523
35524
35525
35526 # Check whether --enable-case-sensitivity or --disable-case-sensitivity was given.
35527 if test "${enable_case_sensitivity+set}" = set; then
35528   enableval="$enable_case_sensitivity"
35529   case "$enable_case_sensitivity" in
35530        yes | no | auto) ;;
35531        *)
35532           { { echo "$as_me:$LINENO: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." >&5
35533 echo "$as_me: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." >&2;}
35534    { (exit 1); exit 1; }; }
35535           ;;
35536      esac
35537 else
35538   enable_case_sensitivity=auto
35539 fi;
35540
35541 acx_forced=' (forced)'
35542 echo "$as_me:$LINENO: checking for a case sensitive file system" >&5
35543 echo $ECHO_N "checking for a case sensitive file system... $ECHO_C" >&6
35544 if test $enable_case_sensitivity = auto; then
35545         if test "${acx_cv_case_sensitive+set}" = set; then
35546   echo $ECHO_N "(cached) $ECHO_C" >&6
35547 else
35548    rm -f ac_TEST_filenames_CASE_sensitive
35549     echo foo >ac_test_filenames_case_sensitive
35550     if test -f ac_TEST_filenames_CASE_sensitive; then
35551       acx_cv_case_sensitive=no
35552     else
35553       acx_cv_case_sensitive=yes
35554     fi
35555     rm ac_test_filenames_case_sensitive
35556
35557 fi
35558
35559   enable_case_sensitivity=$acx_cv_case_sensitive
35560   acx_forced=
35561 fi
35562 echo "$as_me:$LINENO: result: $enable_case_sensitivity$acx_forced" >&5
35563 echo "${ECHO_T}$enable_case_sensitivity$acx_forced" >&6
35564 if test $enable_case_sensitivity = no; then
35565
35566 cat >>confdefs.h <<\_ACEOF
35567 #define FILENAMES_CASE_INSENSITIVE 1
35568 _ACEOF
35569
35570       case $LIBOBJS in
35571     "fncase.$ac_objext"   | \
35572   *" fncase.$ac_objext"   | \
35573     "fncase.$ac_objext "* | \
35574   *" fncase.$ac_objext "* ) ;;
35575   *) LIBOBJS="$LIBOBJS fncase.$ac_objext" ;;
35576 esac
35577
35578 fi
35579
35580
35581
35582
35583 # Check whether --enable-encryption or --disable-encryption was given.
35584 if test "${enable_encryption+set}" = set; then
35585   enableval="$enable_encryption"
35586
35587 else
35588   enable_encryption=no
35589 fi;
35590 if test "$enable_encryption" = yes; then
35591   if test no != "$with_client" || test no != "$with_server"; then
35592
35593 cat >>confdefs.h <<\_ACEOF
35594 #define ENCRYPTION 1
35595 _ACEOF
35596
35597   else
35598     { echo "$as_me:$LINENO: WARNING: --enable-encryption is meaningless when neither the CVS client
35599        nor the CVS server is enabled (--disable-client and --disable-server)." >&5
35600 echo "$as_me: WARNING: --enable-encryption is meaningless when neither the CVS client
35601        nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
35602   fi
35603 fi
35604
35605
35606
35607
35608 # Check whether --enable-force-editor or --disable-force-editor was given.
35609 if test "${enable_force_editor+set}" = set; then
35610   enableval="$enable_force_editor"
35611
35612 else
35613   enable_force_editor=no
35614 fi;
35615
35616 if test yes = "$enable_force_editor"; then
35617
35618 cat >>confdefs.h <<\_ACEOF
35619 #define FORCE_USE_EDITOR 1
35620 _ACEOF
35621
35622 fi
35623
35624
35625
35626
35627 # Check for options requesting client and server feature. If none are
35628 # given and we have connect(), we want the full client & server arrangement.
35629 # Check whether --enable-lock-compatibility or --disable-lock-compatibility was given.
35630 if test "${enable_lock_compatibility+set}" = set; then
35631   enableval="$enable_lock_compatibility"
35632
35633 else
35634   enable_lock_compatibility=yes
35635 fi;
35636
35637 if test x$enable_lock_compatibility = xyes; then
35638
35639 cat >>confdefs.h <<\_ACEOF
35640 #define LOCK_COMPATIBILITY 1
35641 _ACEOF
35642
35643 fi
35644
35645
35646
35647
35648 # Check whether --enable-rootcommit or --disable-rootcommit was given.
35649 if test "${enable_rootcommit+set}" = set; then
35650   enableval="$enable_rootcommit"
35651
35652 else
35653   enable_rootcommit=no
35654 fi;
35655 if test "$enable_rootcommit" = no; then
35656
35657 cat >>confdefs.h <<\_ACEOF
35658 #define CVS_BADROOT 1
35659 _ACEOF
35660
35661 fi
35662
35663
35664 # Check whether --enable-old-info-support or --disable-old-info-support was given.
35665 if test "${enable_old_info_support+set}" = set; then
35666   enableval="$enable_old_info_support"
35667
35668 else
35669   enable_old_info_format_support=yes
35670 fi;
35671 if test "$enable_old_info_format_support" = yes; then
35672
35673 cat >>confdefs.h <<\_ACEOF
35674 #define SUPPORT_OLD_INFO_FMT_STRINGS 1
35675 _ACEOF
35676
35677 fi
35678
35679
35680
35681
35682
35683
35684
35685
35686 echo "$as_me:$LINENO: checking for cygwin32" >&5
35687 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6
35688 if test "${ccvs_cv_sys_cygwin32+set}" = set; then
35689   echo $ECHO_N "(cached) $ECHO_C" >&6
35690 else
35691   cat >conftest.$ac_ext <<_ACEOF
35692 /* confdefs.h.  */
35693 _ACEOF
35694 cat confdefs.h >>conftest.$ac_ext
35695 cat >>conftest.$ac_ext <<_ACEOF
35696 /* end confdefs.h.  */
35697
35698 int
35699 main ()
35700 {
35701 return __CYGWIN32__;
35702   ;
35703   return 0;
35704 }
35705 _ACEOF
35706 rm -f conftest.$ac_objext
35707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35708   (eval $ac_compile) 2>conftest.er1
35709   ac_status=$?
35710   grep -v '^ *+' conftest.er1 >conftest.err
35711   rm -f conftest.er1
35712   cat conftest.err >&5
35713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35714   (exit $ac_status); } &&
35715          { ac_try='test -z "$ac_c_werror_flag"
35716                          || test ! -s conftest.err'
35717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35718   (eval $ac_try) 2>&5
35719   ac_status=$?
35720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721   (exit $ac_status); }; } &&
35722          { ac_try='test -s conftest.$ac_objext'
35723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35724   (eval $ac_try) 2>&5
35725   ac_status=$?
35726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35727   (exit $ac_status); }; }; then
35728   ccvs_cv_sys_cygwin32=yes
35729 else
35730   echo "$as_me: failed program was:" >&5
35731 sed 's/^/| /' conftest.$ac_ext >&5
35732
35733 ccvs_cv_sys_cygwin32=no
35734 fi
35735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35736 fi
35737 echo "$as_me:$LINENO: result: $ccvs_cv_sys_cygwin32" >&5
35738 echo "${ECHO_T}$ccvs_cv_sys_cygwin32" >&6
35739 if test $ccvs_cv_sys_cygwin32 = yes; then
35740   LIBS="$LIBS -ladvapi32"
35741
35742
35743 cat >>confdefs.h <<\_ACEOF
35744 #define UTIME_EXPECTS_WRITABLE 1
35745 _ACEOF
35746
35747
35748
35749 cat >>confdefs.h <<\_ACEOF
35750 #define USE_SETMODE_STDOUT 1
35751 _ACEOF
35752
35753
35754 cat >>confdefs.h <<\_ACEOF
35755 #define HAVE_SETMODE 1
35756 _ACEOF
35757
35758 fi
35759
35760           ac_config_files="$ac_config_files contrib/validate_repo"
35761
35762           ac_config_files="$ac_config_files contrib/clmerge"
35763
35764           ac_config_files="$ac_config_files contrib/cln_hist"
35765
35766           ac_config_files="$ac_config_files contrib/commit_prep"
35767
35768           ac_config_files="$ac_config_files contrib/cvs_acls"
35769
35770           ac_config_files="$ac_config_files contrib/log"
35771
35772           ac_config_files="$ac_config_files contrib/log_accum"
35773
35774           ac_config_files="$ac_config_files contrib/mfpipe"
35775
35776           ac_config_files="$ac_config_files contrib/pvcs2rcs"
35777
35778           ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh"
35779
35780           ac_config_files="$ac_config_files contrib/rcslock"
35781
35782           ac_config_files="$ac_config_files contrib/sccs2rcs"
35783
35784           ac_config_files="$ac_config_files doc/mkman:doc/mkman.pl"
35785
35786           ac_config_files="$ac_config_files src/cvsbug"
35787
35788           ac_config_files="$ac_config_files windows-NT/fix-msvc-mak:windows-NT/plhead.pl:windows-NT/fix-msvc-mak.pl"
35789
35790           ac_config_files="$ac_config_files windows-NT/mkconfig:windows-NT/plhead.pl:windows-NT/mkconfig.pl"
35791
35792
35793                                                                                                                                                                           ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/pam/Makefile cvs.spec diff/Makefile doc/Makefile emx/Makefile lib/Makefile man/Makefile os2/Makefile src/Makefile src/sanity.config.sh tools/Makefile vms/Makefile windows-NT/Makefile windows-NT/SCC/Makefile zlib/Makefile"
35794
35795
35796 cat >confcache <<\_ACEOF
35797 # This file is a shell script that caches the results of configure
35798 # tests run on this system so they can be shared between configure
35799 # scripts and configure runs, see configure's option --config-cache.
35800 # It is not useful on other systems.  If it contains results you don't
35801 # want to keep, you may remove or edit it.
35802 #
35803 # config.status only pays attention to the cache file if you give it
35804 # the --recheck option to rerun configure.
35805 #
35806 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35807 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35808 # following values.
35809
35810 _ACEOF
35811
35812 # The following way of writing the cache mishandles newlines in values,
35813 # but we know of no workaround that is simple, portable, and efficient.
35814 # So, don't put newlines in cache variables' values.
35815 # Ultrix sh set writes to stderr and can't be redirected directly,
35816 # and sets the high bit in the cache file unless we assign to the vars.
35817 {
35818   (set) 2>&1 |
35819     case `(ac_space=' '; set | grep ac_space) 2>&1` in
35820     *ac_space=\ *)
35821       # `set' does not quote correctly, so add quotes (double-quote
35822       # substitution turns \\\\ into \\, and sed turns \\ into \).
35823       sed -n \
35824         "s/'/'\\\\''/g;
35825           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35826       ;;
35827     *)
35828       # `set' quotes correctly as required by POSIX, so do not add quotes.
35829       sed -n \
35830         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35831       ;;
35832     esac;
35833 } |
35834   sed '
35835      t clear
35836      : clear
35837      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35838      t end
35839      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35840      : end' >>confcache
35841 if diff $cache_file confcache >/dev/null 2>&1; then :; else
35842   if test -w $cache_file; then
35843     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35844     cat confcache >$cache_file
35845   else
35846     echo "not updating unwritable cache $cache_file"
35847   fi
35848 fi
35849 rm -f confcache
35850
35851 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35852 # Let make expand exec_prefix.
35853 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35854
35855 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35856 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35857 # trailing colons and then remove the whole line if VPATH becomes empty
35858 # (actually we leave an empty line to preserve line numbers).
35859 if test "x$srcdir" = x.; then
35860   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35861 s/:*\$(srcdir):*/:/;
35862 s/:*\${srcdir}:*/:/;
35863 s/:*@srcdir@:*/:/;
35864 s/^\([^=]*=[     ]*\):*/\1/;
35865 s/:*$//;
35866 s/^[^=]*=[       ]*$//;
35867 }'
35868 fi
35869
35870 DEFS=-DHAVE_CONFIG_H
35871
35872 ac_libobjs=
35873 ac_ltlibobjs=
35874 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35875   # 1. Remove the extension, and $U if already installed.
35876   ac_i=`echo "$ac_i" |
35877          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35878   # 2. Add them.
35879   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35880   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35881 done
35882 LIBOBJS=$ac_libobjs
35883
35884 LTLIBOBJS=$ac_ltlibobjs
35885
35886
35887 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
35888   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
35889 Usually this means the macro was only invoked conditionally." >&5
35890 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
35891 Usually this means the macro was only invoked conditionally." >&2;}
35892    { (exit 1); exit 1; }; }
35893 fi
35894 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35895   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
35896 Usually this means the macro was only invoked conditionally." >&5
35897 echo "$as_me: error: conditional \"AMDEP\" was never defined.
35898 Usually this means the macro was only invoked conditionally." >&2;}
35899    { (exit 1); exit 1; }; }
35900 fi
35901 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35902   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
35903 Usually this means the macro was only invoked conditionally." >&5
35904 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
35905 Usually this means the macro was only invoked conditionally." >&2;}
35906    { (exit 1); exit 1; }; }
35907 fi
35908 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35909   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
35910 Usually this means the macro was only invoked conditionally." >&5
35911 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
35912 Usually this means the macro was only invoked conditionally." >&2;}
35913    { (exit 1); exit 1; }; }
35914 fi
35915 if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
35916   { { echo "$as_me:$LINENO: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
35917 Usually this means the macro was only invoked conditionally." >&5
35918 echo "$as_me: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
35919 Usually this means the macro was only invoked conditionally." >&2;}
35920    { (exit 1); exit 1; }; }
35921 fi
35922
35923 : ${CONFIG_STATUS=./config.status}
35924 ac_clean_files_save=$ac_clean_files
35925 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35926 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35927 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35928 cat >$CONFIG_STATUS <<_ACEOF
35929 #! $SHELL
35930 # Generated by $as_me.
35931 # Run this file to recreate the current configuration.
35932 # Compiler output produced by configure, useful for debugging
35933 # configure, is in config.log if it exists.
35934
35935 debug=false
35936 ac_cs_recheck=false
35937 ac_cs_silent=false
35938 SHELL=\${CONFIG_SHELL-$SHELL}
35939 _ACEOF
35940
35941 cat >>$CONFIG_STATUS <<\_ACEOF
35942 ## --------------------- ##
35943 ## M4sh Initialization.  ##
35944 ## --------------------- ##
35945
35946 # Be Bourne compatible
35947 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35948   emulate sh
35949   NULLCMD=:
35950   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35951   # is contrary to our usage.  Disable this feature.
35952   alias -g '${1+"$@"}'='"$@"'
35953 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35954   set -o posix
35955 fi
35956 DUALCASE=1; export DUALCASE # for MKS sh
35957
35958 # Support unset when possible.
35959 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35960   as_unset=unset
35961 else
35962   as_unset=false
35963 fi
35964
35965
35966 # Work around bugs in pre-3.0 UWIN ksh.
35967 $as_unset ENV MAIL MAILPATH
35968 PS1='$ '
35969 PS2='> '
35970 PS4='+ '
35971
35972 # NLS nuisances.
35973 for as_var in \
35974   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35975   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35976   LC_TELEPHONE LC_TIME
35977 do
35978   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35979     eval $as_var=C; export $as_var
35980   else
35981     $as_unset $as_var
35982   fi
35983 done
35984
35985 # Required to use basename.
35986 if expr a : '\(a\)' >/dev/null 2>&1; then
35987   as_expr=expr
35988 else
35989   as_expr=false
35990 fi
35991
35992 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35993   as_basename=basename
35994 else
35995   as_basename=false
35996 fi
35997
35998
35999 # Name of the executable.
36000 as_me=`$as_basename "$0" ||
36001 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36002          X"$0" : 'X\(//\)$' \| \
36003          X"$0" : 'X\(/\)$' \| \
36004          .     : '\(.\)' 2>/dev/null ||
36005 echo X/"$0" |
36006     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36007           /^X\/\(\/\/\)$/{ s//\1/; q; }
36008           /^X\/\(\/\).*/{ s//\1/; q; }
36009           s/.*/./; q'`
36010
36011
36012 # PATH needs CR, and LINENO needs CR and PATH.
36013 # Avoid depending upon Character Ranges.
36014 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36015 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36016 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36017 as_cr_digits='0123456789'
36018 as_cr_alnum=$as_cr_Letters$as_cr_digits
36019
36020 # The user is always right.
36021 if test "${PATH_SEPARATOR+set}" != set; then
36022   echo "#! /bin/sh" >conf$$.sh
36023   echo  "exit 0"   >>conf$$.sh
36024   chmod +x conf$$.sh
36025   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36026     PATH_SEPARATOR=';'
36027   else
36028     PATH_SEPARATOR=:
36029   fi
36030   rm -f conf$$.sh
36031 fi
36032
36033
36034   as_lineno_1=$LINENO
36035   as_lineno_2=$LINENO
36036   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36037   test "x$as_lineno_1" != "x$as_lineno_2" &&
36038   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
36039   # Find who we are.  Look in the path if we contain no path at all
36040   # relative or not.
36041   case $0 in
36042     *[\\/]* ) as_myself=$0 ;;
36043     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36044 for as_dir in $PATH
36045 do
36046   IFS=$as_save_IFS
36047   test -z "$as_dir" && as_dir=.
36048   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36049 done
36050
36051        ;;
36052   esac
36053   # We did not find ourselves, most probably we were run as `sh COMMAND'
36054   # in which case we are not to be found in the path.
36055   if test "x$as_myself" = x; then
36056     as_myself=$0
36057   fi
36058   if test ! -f "$as_myself"; then
36059     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36060 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36061    { (exit 1); exit 1; }; }
36062   fi
36063   case $CONFIG_SHELL in
36064   '')
36065     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36066 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36067 do
36068   IFS=$as_save_IFS
36069   test -z "$as_dir" && as_dir=.
36070   for as_base in sh bash ksh sh5; do
36071          case $as_dir in
36072          /*)
36073            if ("$as_dir/$as_base" -c '
36074   as_lineno_1=$LINENO
36075   as_lineno_2=$LINENO
36076   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36077   test "x$as_lineno_1" != "x$as_lineno_2" &&
36078   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
36079              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
36080              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
36081              CONFIG_SHELL=$as_dir/$as_base
36082              export CONFIG_SHELL
36083              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36084            fi;;
36085          esac
36086        done
36087 done
36088 ;;
36089   esac
36090
36091   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36092   # uniformly replaced by the line number.  The first 'sed' inserts a
36093   # line-number line before each line; the second 'sed' does the real
36094   # work.  The second script uses 'N' to pair each line-number line
36095   # with the numbered line, and appends trailing '-' during
36096   # substitution so that $LINENO is not a special case at line end.
36097   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36098   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
36099   sed '=' <$as_myself |
36100     sed '
36101       N
36102       s,$,-,
36103       : loop
36104       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
36105       t loop
36106       s,-$,,
36107       s,^['$as_cr_digits']*\n,,
36108     ' >$as_me.lineno &&
36109   chmod +x $as_me.lineno ||
36110     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
36111 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36112    { (exit 1); exit 1; }; }
36113
36114   # Don't try to exec as it changes $[0], causing all sort of problems
36115   # (the dirname of $[0] is not the place where we might find the
36116   # original and so on.  Autoconf is especially sensible to this).
36117   . ./$as_me.lineno
36118   # Exit status is that of the last command.
36119   exit
36120 }
36121
36122
36123 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36124   *c*,-n*) ECHO_N= ECHO_C='
36125 ' ECHO_T='      ' ;;
36126   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36127   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
36128 esac
36129
36130 if expr a : '\(a\)' >/dev/null 2>&1; then
36131   as_expr=expr
36132 else
36133   as_expr=false
36134 fi
36135
36136 rm -f conf$$ conf$$.exe conf$$.file
36137 echo >conf$$.file
36138 if ln -s conf$$.file conf$$ 2>/dev/null; then
36139   # We could just check for DJGPP; but this test a) works b) is more generic
36140   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36141   if test -f conf$$.exe; then
36142     # Don't use ln at all; we don't have any links
36143     as_ln_s='cp -p'
36144   else
36145     as_ln_s='ln -s'
36146   fi
36147 elif ln conf$$.file conf$$ 2>/dev/null; then
36148   as_ln_s=ln
36149 else
36150   as_ln_s='cp -p'
36151 fi
36152 rm -f conf$$ conf$$.exe conf$$.file
36153
36154 if mkdir -p . 2>/dev/null; then
36155   as_mkdir_p=:
36156 else
36157   test -d ./-p && rmdir ./-p
36158   as_mkdir_p=false
36159 fi
36160
36161 as_executable_p="test -f"
36162
36163 # Sed expression to map a string onto a valid CPP name.
36164 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36165
36166 # Sed expression to map a string onto a valid variable name.
36167 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36168
36169
36170 # IFS
36171 # We need space, tab and new line, in precisely that order.
36172 as_nl='
36173 '
36174 IFS="   $as_nl"
36175
36176 # CDPATH.
36177 $as_unset CDPATH
36178
36179 exec 6>&1
36180
36181 # Open the log real soon, to keep \$[0] and so on meaningful, and to
36182 # report actual input values of CONFIG_FILES etc. instead of their
36183 # values after options handling.  Logging --version etc. is OK.
36184 exec 5>>config.log
36185 {
36186   echo
36187   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36188 ## Running $as_me. ##
36189 _ASBOX
36190 } >&5
36191 cat >&5 <<_CSEOF
36192
36193 This file was extended by Concurrent Versions System (CVS) $as_me 1.12.11, which was
36194 generated by GNU Autoconf 2.59.  Invocation command line was
36195
36196   CONFIG_FILES    = $CONFIG_FILES
36197   CONFIG_HEADERS  = $CONFIG_HEADERS
36198   CONFIG_LINKS    = $CONFIG_LINKS
36199   CONFIG_COMMANDS = $CONFIG_COMMANDS
36200   $ $0 $@
36201
36202 _CSEOF
36203 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36204 echo >&5
36205 _ACEOF
36206
36207 # Files that config.status was made for.
36208 if test -n "$ac_config_files"; then
36209   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36210 fi
36211
36212 if test -n "$ac_config_headers"; then
36213   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36214 fi
36215
36216 if test -n "$ac_config_links"; then
36217   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36218 fi
36219
36220 if test -n "$ac_config_commands"; then
36221   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36222 fi
36223
36224 cat >>$CONFIG_STATUS <<\_ACEOF
36225
36226 ac_cs_usage="\
36227 \`$as_me' instantiates files from templates according to the
36228 current configuration.
36229
36230 Usage: $0 [OPTIONS] [FILE]...
36231
36232   -h, --help       print this help, then exit
36233   -V, --version    print version number, then exit
36234   -q, --quiet      do not print progress messages
36235   -d, --debug      don't remove temporary files
36236       --recheck    update $as_me by reconfiguring in the same conditions
36237   --file=FILE[:TEMPLATE]
36238                    instantiate the configuration file FILE
36239   --header=FILE[:TEMPLATE]
36240                    instantiate the configuration header FILE
36241
36242 Configuration files:
36243 $config_files
36244
36245 Configuration headers:
36246 $config_headers
36247
36248 Configuration commands:
36249 $config_commands
36250
36251 Report bugs to <bug-autoconf@gnu.org>."
36252 _ACEOF
36253
36254 cat >>$CONFIG_STATUS <<_ACEOF
36255 ac_cs_version="\\
36256 Concurrent Versions System (CVS) config.status 1.12.11
36257 configured by $0, generated by GNU Autoconf 2.59,
36258   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36259
36260 Copyright (C) 2003 Free Software Foundation, Inc.
36261 This config.status script is free software; the Free Software Foundation
36262 gives unlimited permission to copy, distribute and modify it."
36263 srcdir=$srcdir
36264 INSTALL="$INSTALL"
36265 _ACEOF
36266
36267 cat >>$CONFIG_STATUS <<\_ACEOF
36268 # If no file are specified by the user, then we need to provide default
36269 # value.  By we need to know if files were specified by the user.
36270 ac_need_defaults=:
36271 while test $# != 0
36272 do
36273   case $1 in
36274   --*=*)
36275     ac_option=`expr "x$1" : 'x\([^=]*\)='`
36276     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36277     ac_shift=:
36278     ;;
36279   -*)
36280     ac_option=$1
36281     ac_optarg=$2
36282     ac_shift=shift
36283     ;;
36284   *) # This is not an option, so the user has probably given explicit
36285      # arguments.
36286      ac_option=$1
36287      ac_need_defaults=false;;
36288   esac
36289
36290   case $ac_option in
36291   # Handling of the options.
36292 _ACEOF
36293 cat >>$CONFIG_STATUS <<\_ACEOF
36294   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36295     ac_cs_recheck=: ;;
36296   --version | --vers* | -V )
36297     echo "$ac_cs_version"; exit 0 ;;
36298   --he | --h)
36299     # Conflict between --help and --header
36300     { { echo "$as_me:$LINENO: error: ambiguous option: $1
36301 Try \`$0 --help' for more information." >&5
36302 echo "$as_me: error: ambiguous option: $1
36303 Try \`$0 --help' for more information." >&2;}
36304    { (exit 1); exit 1; }; };;
36305   --help | --hel | -h )
36306     echo "$ac_cs_usage"; exit 0 ;;
36307   --debug | --d* | -d )
36308     debug=: ;;
36309   --file | --fil | --fi | --f )
36310     $ac_shift
36311     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36312     ac_need_defaults=false;;
36313   --header | --heade | --head | --hea )
36314     $ac_shift
36315     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36316     ac_need_defaults=false;;
36317   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36318   | -silent | --silent | --silen | --sile | --sil | --si | --s)
36319     ac_cs_silent=: ;;
36320
36321   # This is an error.
36322   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36323 Try \`$0 --help' for more information." >&5
36324 echo "$as_me: error: unrecognized option: $1
36325 Try \`$0 --help' for more information." >&2;}
36326    { (exit 1); exit 1; }; } ;;
36327
36328   *) ac_config_targets="$ac_config_targets $1" ;;
36329
36330   esac
36331   shift
36332 done
36333
36334 ac_configure_extra_args=
36335
36336 if $ac_cs_silent; then
36337   exec 6>/dev/null
36338   ac_configure_extra_args="$ac_configure_extra_args --silent"
36339 fi
36340
36341 _ACEOF
36342 cat >>$CONFIG_STATUS <<_ACEOF
36343 if \$ac_cs_recheck; then
36344   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36345   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36346 fi
36347
36348 _ACEOF
36349
36350 cat >>$CONFIG_STATUS <<_ACEOF
36351 #
36352 # INIT-COMMANDS section.
36353 #
36354
36355 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36356 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
36357     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
36358     # from automake.
36359     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
36360     # Capture the value of LINGUAS because we need it to compute CATALOGS.
36361     LINGUAS="${LINGUAS-%UNSET%}"
36362
36363
36364 _ACEOF
36365
36366
36367
36368 cat >>$CONFIG_STATUS <<\_ACEOF
36369 for ac_config_target in $ac_config_targets
36370 do
36371   case "$ac_config_target" in
36372   # Handling of arguments.
36373   "contrib/validate_repo" ) CONFIG_FILES="$CONFIG_FILES contrib/validate_repo" ;;
36374   "contrib/clmerge" ) CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;;
36375   "contrib/cln_hist" ) CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;;
36376   "contrib/commit_prep" ) CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;;
36377   "contrib/cvs_acls" ) CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;;
36378   "contrib/log" ) CONFIG_FILES="$CONFIG_FILES contrib/log" ;;
36379   "contrib/log_accum" ) CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;;
36380   "contrib/mfpipe" ) CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;;
36381   "contrib/pvcs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;;
36382   "contrib/rcs2log" ) CONFIG_FILES="$CONFIG_FILES contrib/rcs2log:contrib/rcs2log.sh" ;;
36383   "contrib/rcslock" ) CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;;
36384   "contrib/sccs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;;
36385   "doc/mkman" ) CONFIG_FILES="$CONFIG_FILES doc/mkman:doc/mkman.pl" ;;
36386   "src/cvsbug" ) CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;;
36387   "windows-NT/fix-msvc-mak" ) CONFIG_FILES="$CONFIG_FILES windows-NT/fix-msvc-mak:windows-NT/plhead.pl:windows-NT/fix-msvc-mak.pl" ;;
36388   "windows-NT/mkconfig" ) CONFIG_FILES="$CONFIG_FILES windows-NT/mkconfig:windows-NT/plhead.pl:windows-NT/mkconfig.pl" ;;
36389   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36390   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
36391   "contrib/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/pam/Makefile" ;;
36392   "cvs.spec" ) CONFIG_FILES="$CONFIG_FILES cvs.spec" ;;
36393   "diff/Makefile" ) CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
36394   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
36395   "emx/Makefile" ) CONFIG_FILES="$CONFIG_FILES emx/Makefile" ;;
36396   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
36397   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
36398   "os2/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/Makefile" ;;
36399   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
36400   "src/sanity.config.sh" ) CONFIG_FILES="$CONFIG_FILES src/sanity.config.sh" ;;
36401   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
36402   "vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES vms/Makefile" ;;
36403   "windows-NT/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/Makefile" ;;
36404   "windows-NT/SCC/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/SCC/Makefile" ;;
36405   "zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
36406   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36407   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
36408   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
36409   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36410 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36411    { (exit 1); exit 1; }; };;
36412   esac
36413 done
36414
36415 # If the user did not use the arguments to specify the items to instantiate,
36416 # then the envvar interface is used.  Set only those that are not.
36417 # We use the long form for the default assignment because of an extremely
36418 # bizarre bug on SunOS 4.1.3.
36419 if $ac_need_defaults; then
36420   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36421   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36422   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36423 fi
36424
36425 # Have a temporary directory for convenience.  Make it in the build tree
36426 # simply because there is no reason to put it here, and in addition,
36427 # creating and moving files from /tmp can sometimes cause problems.
36428 # Create a temporary directory, and hook for its removal unless debugging.
36429 $debug ||
36430 {
36431   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36432   trap '{ (exit 1); exit 1; }' 1 2 13 15
36433 }
36434
36435 # Create a (secure) tmp directory for tmp files.
36436
36437 {
36438   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36439   test -n "$tmp" && test -d "$tmp"
36440 }  ||
36441 {
36442   tmp=./confstat$$-$RANDOM
36443   (umask 077 && mkdir $tmp)
36444 } ||
36445 {
36446    echo "$me: cannot create a temporary directory in ." >&2
36447    { (exit 1); exit 1; }
36448 }
36449
36450 _ACEOF
36451
36452 cat >>$CONFIG_STATUS <<_ACEOF
36453
36454 #
36455 # CONFIG_FILES section.
36456 #
36457
36458 # No need to generate the scripts if there are no CONFIG_FILES.
36459 # This happens for instance when ./config.status config.h
36460 if test -n "\$CONFIG_FILES"; then
36461   # Protect against being on the right side of a sed subst in config.status.
36462   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36463    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36464 s,@SHELL@,$SHELL,;t t
36465 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36466 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36467 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36468 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36469 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36470 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36471 s,@exec_prefix@,$exec_prefix,;t t
36472 s,@prefix@,$prefix,;t t
36473 s,@program_transform_name@,$program_transform_name,;t t
36474 s,@bindir@,$bindir,;t t
36475 s,@sbindir@,$sbindir,;t t
36476 s,@libexecdir@,$libexecdir,;t t
36477 s,@datadir@,$datadir,;t t
36478 s,@sysconfdir@,$sysconfdir,;t t
36479 s,@sharedstatedir@,$sharedstatedir,;t t
36480 s,@localstatedir@,$localstatedir,;t t
36481 s,@libdir@,$libdir,;t t
36482 s,@includedir@,$includedir,;t t
36483 s,@oldincludedir@,$oldincludedir,;t t
36484 s,@infodir@,$infodir,;t t
36485 s,@mandir@,$mandir,;t t
36486 s,@build_alias@,$build_alias,;t t
36487 s,@host_alias@,$host_alias,;t t
36488 s,@target_alias@,$target_alias,;t t
36489 s,@DEFS@,$DEFS,;t t
36490 s,@ECHO_C@,$ECHO_C,;t t
36491 s,@ECHO_N@,$ECHO_N,;t t
36492 s,@ECHO_T@,$ECHO_T,;t t
36493 s,@LIBS@,$LIBS,;t t
36494 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36495 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36496 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36497 s,@CYGPATH_W@,$CYGPATH_W,;t t
36498 s,@PACKAGE@,$PACKAGE,;t t
36499 s,@VERSION@,$VERSION,;t t
36500 s,@ACLOCAL@,$ACLOCAL,;t t
36501 s,@AUTOCONF@,$AUTOCONF,;t t
36502 s,@AUTOMAKE@,$AUTOMAKE,;t t
36503 s,@AUTOHEADER@,$AUTOHEADER,;t t
36504 s,@MAKEINFO@,$MAKEINFO,;t t
36505 s,@install_sh@,$install_sh,;t t
36506 s,@STRIP@,$STRIP,;t t
36507 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36508 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
36509 s,@mkdir_p@,$mkdir_p,;t t
36510 s,@AWK@,$AWK,;t t
36511 s,@SET_MAKE@,$SET_MAKE,;t t
36512 s,@am__leading_dot@,$am__leading_dot,;t t
36513 s,@AMTAR@,$AMTAR,;t t
36514 s,@am__tar@,$am__tar,;t t
36515 s,@am__untar@,$am__untar,;t t
36516 s,@ac_prefix_program@,$ac_prefix_program,;t t
36517 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
36518 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
36519 s,@MAINT@,$MAINT,;t t
36520 s,@CC@,$CC,;t t
36521 s,@CFLAGS@,$CFLAGS,;t t
36522 s,@LDFLAGS@,$LDFLAGS,;t t
36523 s,@CPPFLAGS@,$CPPFLAGS,;t t
36524 s,@ac_ct_CC@,$ac_ct_CC,;t t
36525 s,@EXEEXT@,$EXEEXT,;t t
36526 s,@OBJEXT@,$OBJEXT,;t t
36527 s,@DEPDIR@,$DEPDIR,;t t
36528 s,@am__include@,$am__include,;t t
36529 s,@am__quote@,$am__quote,;t t
36530 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
36531 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
36532 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
36533 s,@CCDEPMODE@,$CCDEPMODE,;t t
36534 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
36535 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
36536 s,@CPP@,$CPP,;t t
36537 s,@EGREP@,$EGREP,;t t
36538 s,@RANLIB@,$RANLIB,;t t
36539 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36540 s,@LN_S@,$LN_S,;t t
36541 s,@PERL@,$PERL,;t t
36542 s,@CSH@,$CSH,;t t
36543 s,@MKTEMP@,$MKTEMP,;t t
36544 s,@SENDMAIL@,$SENDMAIL,;t t
36545 s,@PR@,$PR,;t t
36546 s,@ROFF@,$ROFF,;t t
36547 s,@PS2PDF@,$PS2PDF,;t t
36548 s,@TEXI2DVI@,$TEXI2DVI,;t t
36549 s,@MAKE_TARGETS_IN_VPATH_TRUE@,$MAKE_TARGETS_IN_VPATH_TRUE,;t t
36550 s,@MAKE_TARGETS_IN_VPATH_FALSE@,$MAKE_TARGETS_IN_VPATH_FALSE,;t t
36551 s,@LIBOBJS@,$LIBOBJS,;t t
36552 s,@ALLOCA@,$ALLOCA,;t t
36553 s,@ALLOCA_H@,$ALLOCA_H,;t t
36554 s,@FNMATCH_H@,$FNMATCH_H,;t t
36555 s,@STDBOOL_H@,$STDBOOL_H,;t t
36556 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
36557 s,@YACC@,$YACC,;t t
36558 s,@YFLAGS@,$YFLAGS,;t t
36559 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
36560 s,@GETOPT_H@,$GETOPT_H,;t t
36561 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
36562 s,@HAVE_LONG_64BIT@,$HAVE_LONG_64BIT,;t t
36563 s,@HAVE_LONGLONG_64BIT@,$HAVE_LONGLONG_64BIT,;t t
36564 s,@STDINT_H@,$STDINT_H,;t t
36565 s,@EOVERFLOW@,$EOVERFLOW,;t t
36566 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
36567 s,@USE_NLS@,$USE_NLS,;t t
36568 s,@MSGFMT@,$MSGFMT,;t t
36569 s,@GMSGFMT@,$GMSGFMT,;t t
36570 s,@XGETTEXT@,$XGETTEXT,;t t
36571 s,@MSGMERGE@,$MSGMERGE,;t t
36572 s,@build@,$build,;t t
36573 s,@build_cpu@,$build_cpu,;t t
36574 s,@build_vendor@,$build_vendor,;t t
36575 s,@build_os@,$build_os,;t t
36576 s,@host@,$host,;t t
36577 s,@host_cpu@,$host_cpu,;t t
36578 s,@host_vendor@,$host_vendor,;t t
36579 s,@host_os@,$host_os,;t t
36580 s,@LIBICONV@,$LIBICONV,;t t
36581 s,@LTLIBICONV@,$LTLIBICONV,;t t
36582 s,@INTLLIBS@,$INTLLIBS,;t t
36583 s,@LIBINTL@,$LIBINTL,;t t
36584 s,@LTLIBINTL@,$LTLIBINTL,;t t
36585 s,@POSUB@,$POSUB,;t t
36586 s,@HAVE_PUTENV@,$HAVE_PUTENV,;t t
36587 s,@cvs_client_objects@,$cvs_client_objects,;t t
36588 s,@KRB4@,$KRB4,;t t
36589 s,@ZLIB_SUBDIRS@,$ZLIB_SUBDIRS,;t t
36590 s,@ZLIB_CPPFLAGS@,$ZLIB_CPPFLAGS,;t t
36591 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
36592 s,@with_default_rsh@,$with_default_rsh,;t t
36593 s,@RSH_DFLT@,$RSH_DFLT,;t t
36594 s,@EDITOR@,$EDITOR,;t t
36595 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
36596 /@MKTEMP_SH_FUNCTION@/r $MKTEMP_SH_FUNCTION
36597 s,@MKTEMP_SH_FUNCTION@,,;t t
36598 CEOF
36599
36600 _ACEOF
36601
36602   cat >>$CONFIG_STATUS <<\_ACEOF
36603   # Split the substitutions into bite-sized pieces for seds with
36604   # small command number limits, like on Digital OSF/1 and HP-UX.
36605   ac_max_sed_lines=48
36606   ac_sed_frag=1 # Number of current file.
36607   ac_beg=1 # First line for current file.
36608   ac_end=$ac_max_sed_lines # Line after last line for current file.
36609   ac_more_lines=:
36610   ac_sed_cmds=
36611   while $ac_more_lines; do
36612     if test $ac_beg -gt 1; then
36613       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36614     else
36615       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36616     fi
36617     if test ! -s $tmp/subs.frag; then
36618       ac_more_lines=false
36619     else
36620       # The purpose of the label and of the branching condition is to
36621       # speed up the sed processing (if there are no `@' at all, there
36622       # is no need to browse any of the substitutions).
36623       # These are the two extra sed commands mentioned above.
36624       (echo ':t
36625   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36626       if test -z "$ac_sed_cmds"; then
36627         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36628       else
36629         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36630       fi
36631       ac_sed_frag=`expr $ac_sed_frag + 1`
36632       ac_beg=$ac_end
36633       ac_end=`expr $ac_end + $ac_max_sed_lines`
36634     fi
36635   done
36636   if test -z "$ac_sed_cmds"; then
36637     ac_sed_cmds=cat
36638   fi
36639 fi # test -n "$CONFIG_FILES"
36640
36641 _ACEOF
36642 cat >>$CONFIG_STATUS <<\_ACEOF
36643 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
36644   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36645   case $ac_file in
36646   - | *:- | *:-:* ) # input from stdin
36647         cat >$tmp/stdin
36648         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36649         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36650   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36651         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36652   * )   ac_file_in=$ac_file.in ;;
36653   esac
36654
36655   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36656   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36658          X"$ac_file" : 'X\(//\)[^/]' \| \
36659          X"$ac_file" : 'X\(//\)$' \| \
36660          X"$ac_file" : 'X\(/\)' \| \
36661          .     : '\(.\)' 2>/dev/null ||
36662 echo X"$ac_file" |
36663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36664           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36665           /^X\(\/\/\)$/{ s//\1/; q; }
36666           /^X\(\/\).*/{ s//\1/; q; }
36667           s/.*/./; q'`
36668   { if $as_mkdir_p; then
36669     mkdir -p "$ac_dir"
36670   else
36671     as_dir="$ac_dir"
36672     as_dirs=
36673     while test ! -d "$as_dir"; do
36674       as_dirs="$as_dir $as_dirs"
36675       as_dir=`(dirname "$as_dir") 2>/dev/null ||
36676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36677          X"$as_dir" : 'X\(//\)[^/]' \| \
36678          X"$as_dir" : 'X\(//\)$' \| \
36679          X"$as_dir" : 'X\(/\)' \| \
36680          .     : '\(.\)' 2>/dev/null ||
36681 echo X"$as_dir" |
36682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36683           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36684           /^X\(\/\/\)$/{ s//\1/; q; }
36685           /^X\(\/\).*/{ s//\1/; q; }
36686           s/.*/./; q'`
36687     done
36688     test ! -n "$as_dirs" || mkdir $as_dirs
36689   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36690 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36691    { (exit 1); exit 1; }; }; }
36692
36693   ac_builddir=.
36694
36695 if test "$ac_dir" != .; then
36696   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36697   # A "../" for each directory in $ac_dir_suffix.
36698   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36699 else
36700   ac_dir_suffix= ac_top_builddir=
36701 fi
36702
36703 case $srcdir in
36704   .)  # No --srcdir option.  We are building in place.
36705     ac_srcdir=.
36706     if test -z "$ac_top_builddir"; then
36707        ac_top_srcdir=.
36708     else
36709        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36710     fi ;;
36711   [\\/]* | ?:[\\/]* )  # Absolute path.
36712     ac_srcdir=$srcdir$ac_dir_suffix;
36713     ac_top_srcdir=$srcdir ;;
36714   *) # Relative path.
36715     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36716     ac_top_srcdir=$ac_top_builddir$srcdir ;;
36717 esac
36718
36719 # Do not use `cd foo && pwd` to compute absolute paths, because
36720 # the directories may not exist.
36721 case `pwd` in
36722 .) ac_abs_builddir="$ac_dir";;
36723 *)
36724   case "$ac_dir" in
36725   .) ac_abs_builddir=`pwd`;;
36726   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
36727   *) ac_abs_builddir=`pwd`/"$ac_dir";;
36728   esac;;
36729 esac
36730 case $ac_abs_builddir in
36731 .) ac_abs_top_builddir=${ac_top_builddir}.;;
36732 *)
36733   case ${ac_top_builddir}. in
36734   .) ac_abs_top_builddir=$ac_abs_builddir;;
36735   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
36736   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
36737   esac;;
36738 esac
36739 case $ac_abs_builddir in
36740 .) ac_abs_srcdir=$ac_srcdir;;
36741 *)
36742   case $ac_srcdir in
36743   .) ac_abs_srcdir=$ac_abs_builddir;;
36744   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
36745   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
36746   esac;;
36747 esac
36748 case $ac_abs_builddir in
36749 .) ac_abs_top_srcdir=$ac_top_srcdir;;
36750 *)
36751   case $ac_top_srcdir in
36752   .) ac_abs_top_srcdir=$ac_abs_builddir;;
36753   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
36754   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
36755   esac;;
36756 esac
36757
36758
36759   case $INSTALL in
36760   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36761   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
36762   esac
36763
36764   if test x"$ac_file" != x-; then
36765     { echo "$as_me:$LINENO: creating $ac_file" >&5
36766 echo "$as_me: creating $ac_file" >&6;}
36767     rm -f "$ac_file"
36768   fi
36769   # Let's still pretend it is `configure' which instantiates (i.e., don't
36770   # use $as_me), people would be surprised to read:
36771   #    /* config.h.  Generated by config.status.  */
36772   if test x"$ac_file" = x-; then
36773     configure_input=
36774   else
36775     configure_input="$ac_file.  "
36776   fi
36777   configure_input=$configure_input"Generated from `echo $ac_file_in |
36778                                      sed 's,.*/,,'` by configure."
36779
36780   # First look for the input files in the build tree, otherwise in the
36781   # src tree.
36782   ac_file_inputs=`IFS=:
36783     for f in $ac_file_in; do
36784       case $f in
36785       -) echo $tmp/stdin ;;
36786       [\\/$]*)
36787          # Absolute (can't be DOS-style, as IFS=:)
36788          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36789 echo "$as_me: error: cannot find input file: $f" >&2;}
36790    { (exit 1); exit 1; }; }
36791          echo "$f";;
36792       *) # Relative
36793          if test -f "$f"; then
36794            # Build tree
36795            echo "$f"
36796          elif test -f "$srcdir/$f"; then
36797            # Source tree
36798            echo "$srcdir/$f"
36799          else
36800            # /dev/null tree
36801            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36802 echo "$as_me: error: cannot find input file: $f" >&2;}
36803    { (exit 1); exit 1; }; }
36804          fi;;
36805       esac
36806     done` || { (exit 1); exit 1; }
36807 _ACEOF
36808 cat >>$CONFIG_STATUS <<_ACEOF
36809   sed "$ac_vpsub
36810 $extrasub
36811 _ACEOF
36812 cat >>$CONFIG_STATUS <<\_ACEOF
36813 :t
36814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36815 s,@configure_input@,$configure_input,;t t
36816 s,@srcdir@,$ac_srcdir,;t t
36817 s,@abs_srcdir@,$ac_abs_srcdir,;t t
36818 s,@top_srcdir@,$ac_top_srcdir,;t t
36819 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36820 s,@builddir@,$ac_builddir,;t t
36821 s,@abs_builddir@,$ac_abs_builddir,;t t
36822 s,@top_builddir@,$ac_top_builddir,;t t
36823 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36824 s,@INSTALL@,$ac_INSTALL,;t t
36825 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36826   rm -f $tmp/stdin
36827   if test x"$ac_file" != x-; then
36828     mv $tmp/out $ac_file
36829   else
36830     cat $tmp/out
36831     rm -f $tmp/out
36832   fi
36833
36834   # Run the commands associated with the file.
36835   case $ac_file in
36836     contrib/validate_repo ) chmod +x contrib/validate_repo ;;
36837     contrib/clmerge ) chmod +x contrib/clmerge ;;
36838     contrib/cln_hist ) chmod +x contrib/cln_hist ;;
36839     contrib/commit_prep ) chmod +x contrib/commit_prep ;;
36840     contrib/cvs_acls ) chmod +x contrib/cvs_acls ;;
36841     contrib/log ) chmod +x contrib/log ;;
36842     contrib/log_accum ) chmod +x contrib/log_accum ;;
36843     contrib/mfpipe ) chmod +x contrib/mfpipe ;;
36844     contrib/pvcs2rcs ) chmod +x contrib/pvcs2rcs ;;
36845     contrib/rcs2log ) chmod +x contrib/rcs2log ;;
36846     contrib/rcslock ) chmod +x contrib/rcslock ;;
36847     contrib/sccs2rcs ) chmod +x contrib/sccs2rcs ;;
36848     doc/mkman ) chmod +x doc/mkman ;;
36849     src/cvsbug ) chmod +x src/cvsbug ;;
36850     windows-NT/fix-msvc-mak ) chmod +x windows-NT/fix-msvc-mak ;;
36851     windows-NT/mkconfig ) chmod +x windows-NT/mkconfig ;;
36852   esac
36853 done
36854 _ACEOF
36855 cat >>$CONFIG_STATUS <<\_ACEOF
36856
36857 #
36858 # CONFIG_HEADER section.
36859 #
36860
36861 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36862 # NAME is the cpp macro being defined and VALUE is the value it is being given.
36863 #
36864 # ac_d sets the value in "#define NAME VALUE" lines.
36865 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
36866 ac_dB='[         ].*$,\1#\2'
36867 ac_dC=' '
36868 ac_dD=',;t'
36869 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36870 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
36871 ac_uB='$,\1#\2define\3'
36872 ac_uC=' '
36873 ac_uD=',;t'
36874
36875 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
36876   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36877   case $ac_file in
36878   - | *:- | *:-:* ) # input from stdin
36879         cat >$tmp/stdin
36880         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36881         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36882   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36883         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36884   * )   ac_file_in=$ac_file.in ;;
36885   esac
36886
36887   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36888 echo "$as_me: creating $ac_file" >&6;}
36889
36890   # First look for the input files in the build tree, otherwise in the
36891   # src tree.
36892   ac_file_inputs=`IFS=:
36893     for f in $ac_file_in; do
36894       case $f in
36895       -) echo $tmp/stdin ;;
36896       [\\/$]*)
36897          # Absolute (can't be DOS-style, as IFS=:)
36898          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36899 echo "$as_me: error: cannot find input file: $f" >&2;}
36900    { (exit 1); exit 1; }; }
36901          # Do quote $f, to prevent DOS paths from being IFS'd.
36902          echo "$f";;
36903       *) # Relative
36904          if test -f "$f"; then
36905            # Build tree
36906            echo "$f"
36907          elif test -f "$srcdir/$f"; then
36908            # Source tree
36909            echo "$srcdir/$f"
36910          else
36911            # /dev/null tree
36912            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36913 echo "$as_me: error: cannot find input file: $f" >&2;}
36914    { (exit 1); exit 1; }; }
36915          fi;;
36916       esac
36917     done` || { (exit 1); exit 1; }
36918   # Remove the trailing spaces.
36919   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
36920
36921 _ACEOF
36922
36923 # Transform confdefs.h into two sed scripts, `conftest.defines' and
36924 # `conftest.undefs', that substitutes the proper values into
36925 # config.h.in to produce config.h.  The first handles `#define'
36926 # templates, and the second `#undef' templates.
36927 # And first: Protect against being on the right side of a sed subst in
36928 # config.status.  Protect against being in an unquoted here document
36929 # in config.status.
36930 rm -f conftest.defines conftest.undefs
36931 # Using a here document instead of a string reduces the quoting nightmare.
36932 # Putting comments in sed scripts is not portable.
36933 #
36934 # `end' is used to avoid that the second main sed command (meant for
36935 # 0-ary CPP macros) applies to n-ary macro definitions.
36936 # See the Autoconf documentation for `clear'.
36937 cat >confdef2sed.sed <<\_ACEOF
36938 s/[\\&,]/\\&/g
36939 s,[\\$`],\\&,g
36940 t clear
36941 : clear
36942 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36943 t end
36944 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36945 : end
36946 _ACEOF
36947 # If some macros were called several times there might be several times
36948 # the same #defines, which is useless.  Nevertheless, we may not want to
36949 # sort them, since we want the *last* AC-DEFINE to be honored.
36950 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36951 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36952 rm -f confdef2sed.sed
36953
36954 # This sed command replaces #undef with comments.  This is necessary, for
36955 # example, in the case of _POSIX_SOURCE, which is predefined and required
36956 # on some systems where configure will not decide to define it.
36957 cat >>conftest.undefs <<\_ACEOF
36958 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36959 _ACEOF
36960
36961 # Break up conftest.defines because some shells have a limit on the size
36962 # of here documents, and old seds have small limits too (100 cmds).
36963 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36964 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36965 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36966 echo '  :' >>$CONFIG_STATUS
36967 rm -f conftest.tail
36968 while grep . conftest.defines >/dev/null
36969 do
36970   # Write a limited-size here document to $tmp/defines.sed.
36971   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36972   # Speed up: don't consider the non `#define' lines.
36973   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
36974   # Work around the forget-to-reset-the-flag bug.
36975   echo 't clr' >>$CONFIG_STATUS
36976   echo ': clr' >>$CONFIG_STATUS
36977   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36978   echo 'CEOF
36979   sed -f $tmp/defines.sed $tmp/in >$tmp/out
36980   rm -f $tmp/in
36981   mv $tmp/out $tmp/in
36982 ' >>$CONFIG_STATUS
36983   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36984   rm -f conftest.defines
36985   mv conftest.tail conftest.defines
36986 done
36987 rm -f conftest.defines
36988 echo '  fi # grep' >>$CONFIG_STATUS
36989 echo >>$CONFIG_STATUS
36990
36991 # Break up conftest.undefs because some shells have a limit on the size
36992 # of here documents, and old seds have small limits too (100 cmds).
36993 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
36994 rm -f conftest.tail
36995 while grep . conftest.undefs >/dev/null
36996 do
36997   # Write a limited-size here document to $tmp/undefs.sed.
36998   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36999   # Speed up: don't consider the non `#undef'
37000   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
37001   # Work around the forget-to-reset-the-flag bug.
37002   echo 't clr' >>$CONFIG_STATUS
37003   echo ': clr' >>$CONFIG_STATUS
37004   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
37005   echo 'CEOF
37006   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
37007   rm -f $tmp/in
37008   mv $tmp/out $tmp/in
37009 ' >>$CONFIG_STATUS
37010   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
37011   rm -f conftest.undefs
37012   mv conftest.tail conftest.undefs
37013 done
37014 rm -f conftest.undefs
37015
37016 cat >>$CONFIG_STATUS <<\_ACEOF
37017   # Let's still pretend it is `configure' which instantiates (i.e., don't
37018   # use $as_me), people would be surprised to read:
37019   #    /* config.h.  Generated by config.status.  */
37020   if test x"$ac_file" = x-; then
37021     echo "/* Generated by configure.  */" >$tmp/config.h
37022   else
37023     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
37024   fi
37025   cat $tmp/in >>$tmp/config.h
37026   rm -f $tmp/in
37027   if test x"$ac_file" != x-; then
37028     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
37029       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37030 echo "$as_me: $ac_file is unchanged" >&6;}
37031     else
37032       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37034          X"$ac_file" : 'X\(//\)[^/]' \| \
37035          X"$ac_file" : 'X\(//\)$' \| \
37036          X"$ac_file" : 'X\(/\)' \| \
37037          .     : '\(.\)' 2>/dev/null ||
37038 echo X"$ac_file" |
37039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37040           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37041           /^X\(\/\/\)$/{ s//\1/; q; }
37042           /^X\(\/\).*/{ s//\1/; q; }
37043           s/.*/./; q'`
37044       { if $as_mkdir_p; then
37045     mkdir -p "$ac_dir"
37046   else
37047     as_dir="$ac_dir"
37048     as_dirs=
37049     while test ! -d "$as_dir"; do
37050       as_dirs="$as_dir $as_dirs"
37051       as_dir=`(dirname "$as_dir") 2>/dev/null ||
37052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37053          X"$as_dir" : 'X\(//\)[^/]' \| \
37054          X"$as_dir" : 'X\(//\)$' \| \
37055          X"$as_dir" : 'X\(/\)' \| \
37056          .     : '\(.\)' 2>/dev/null ||
37057 echo X"$as_dir" |
37058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37060           /^X\(\/\/\)$/{ s//\1/; q; }
37061           /^X\(\/\).*/{ s//\1/; q; }
37062           s/.*/./; q'`
37063     done
37064     test ! -n "$as_dirs" || mkdir $as_dirs
37065   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37066 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37067    { (exit 1); exit 1; }; }; }
37068
37069       rm -f $ac_file
37070       mv $tmp/config.h $ac_file
37071     fi
37072   else
37073     cat $tmp/config.h
37074     rm -f $tmp/config.h
37075   fi
37076 # Compute $ac_file's index in $config_headers.
37077 _am_stamp_count=1
37078 for _am_header in $config_headers :; do
37079   case $_am_header in
37080     $ac_file | $ac_file:* )
37081       break ;;
37082     * )
37083       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37084   esac
37085 done
37086 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
37087 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37088          X$ac_file : 'X\(//\)[^/]' \| \
37089          X$ac_file : 'X\(//\)$' \| \
37090          X$ac_file : 'X\(/\)' \| \
37091          .     : '\(.\)' 2>/dev/null ||
37092 echo X$ac_file |
37093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37094           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37095           /^X\(\/\/\)$/{ s//\1/; q; }
37096           /^X\(\/\).*/{ s//\1/; q; }
37097           s/.*/./; q'`/stamp-h$_am_stamp_count
37098 done
37099 _ACEOF
37100 cat >>$CONFIG_STATUS <<\_ACEOF
37101
37102 #
37103 # CONFIG_COMMANDS section.
37104 #
37105 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37106   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37107   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37108   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37109 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37110          X"$ac_dest" : 'X\(//\)[^/]' \| \
37111          X"$ac_dest" : 'X\(//\)$' \| \
37112          X"$ac_dest" : 'X\(/\)' \| \
37113          .     : '\(.\)' 2>/dev/null ||
37114 echo X"$ac_dest" |
37115     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37116           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37117           /^X\(\/\/\)$/{ s//\1/; q; }
37118           /^X\(\/\).*/{ s//\1/; q; }
37119           s/.*/./; q'`
37120   { if $as_mkdir_p; then
37121     mkdir -p "$ac_dir"
37122   else
37123     as_dir="$ac_dir"
37124     as_dirs=
37125     while test ! -d "$as_dir"; do
37126       as_dirs="$as_dir $as_dirs"
37127       as_dir=`(dirname "$as_dir") 2>/dev/null ||
37128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37129          X"$as_dir" : 'X\(//\)[^/]' \| \
37130          X"$as_dir" : 'X\(//\)$' \| \
37131          X"$as_dir" : 'X\(/\)' \| \
37132          .     : '\(.\)' 2>/dev/null ||
37133 echo X"$as_dir" |
37134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37135           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37136           /^X\(\/\/\)$/{ s//\1/; q; }
37137           /^X\(\/\).*/{ s//\1/; q; }
37138           s/.*/./; q'`
37139     done
37140     test ! -n "$as_dirs" || mkdir $as_dirs
37141   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37143    { (exit 1); exit 1; }; }; }
37144
37145   ac_builddir=.
37146
37147 if test "$ac_dir" != .; then
37148   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37149   # A "../" for each directory in $ac_dir_suffix.
37150   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37151 else
37152   ac_dir_suffix= ac_top_builddir=
37153 fi
37154
37155 case $srcdir in
37156   .)  # No --srcdir option.  We are building in place.
37157     ac_srcdir=.
37158     if test -z "$ac_top_builddir"; then
37159        ac_top_srcdir=.
37160     else
37161        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37162     fi ;;
37163   [\\/]* | ?:[\\/]* )  # Absolute path.
37164     ac_srcdir=$srcdir$ac_dir_suffix;
37165     ac_top_srcdir=$srcdir ;;
37166   *) # Relative path.
37167     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37168     ac_top_srcdir=$ac_top_builddir$srcdir ;;
37169 esac
37170
37171 # Do not use `cd foo && pwd` to compute absolute paths, because
37172 # the directories may not exist.
37173 case `pwd` in
37174 .) ac_abs_builddir="$ac_dir";;
37175 *)
37176   case "$ac_dir" in
37177   .) ac_abs_builddir=`pwd`;;
37178   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
37179   *) ac_abs_builddir=`pwd`/"$ac_dir";;
37180   esac;;
37181 esac
37182 case $ac_abs_builddir in
37183 .) ac_abs_top_builddir=${ac_top_builddir}.;;
37184 *)
37185   case ${ac_top_builddir}. in
37186   .) ac_abs_top_builddir=$ac_abs_builddir;;
37187   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
37188   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
37189   esac;;
37190 esac
37191 case $ac_abs_builddir in
37192 .) ac_abs_srcdir=$ac_srcdir;;
37193 *)
37194   case $ac_srcdir in
37195   .) ac_abs_srcdir=$ac_abs_builddir;;
37196   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
37197   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
37198   esac;;
37199 esac
37200 case $ac_abs_builddir in
37201 .) ac_abs_top_srcdir=$ac_top_srcdir;;
37202 *)
37203   case $ac_top_srcdir in
37204   .) ac_abs_top_srcdir=$ac_abs_builddir;;
37205   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
37206   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
37207   esac;;
37208 esac
37209
37210
37211   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37212 echo "$as_me: executing $ac_dest commands" >&6;}
37213   case $ac_dest in
37214     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
37215   # Strip MF so we end up with the name of the file.
37216   mf=`echo "$mf" | sed -e 's/:.*$//'`
37217   # Check whether this is an Automake generated Makefile or not.
37218   # We used to match only the files named `Makefile.in', but
37219   # some people rename them; so instead we look at the file content.
37220   # Grep'ing the first line is not enough: some people post-process
37221   # each Makefile.in and add a new line on top of each file to say so.
37222   # So let's grep whole file.
37223   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
37224     dirpart=`(dirname "$mf") 2>/dev/null ||
37225 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37226          X"$mf" : 'X\(//\)[^/]' \| \
37227          X"$mf" : 'X\(//\)$' \| \
37228          X"$mf" : 'X\(/\)' \| \
37229          .     : '\(.\)' 2>/dev/null ||
37230 echo X"$mf" |
37231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37232           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37233           /^X\(\/\/\)$/{ s//\1/; q; }
37234           /^X\(\/\).*/{ s//\1/; q; }
37235           s/.*/./; q'`
37236   else
37237     continue
37238   fi
37239   # Extract the definition of DEPDIR, am__include, and am__quote
37240   # from the Makefile without running `make'.
37241   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37242   test -z "$DEPDIR" && continue
37243   am__include=`sed -n 's/^am__include = //p' < "$mf"`
37244   test -z "am__include" && continue
37245   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37246   # When using ansi2knr, U may be empty or an underscore; expand it
37247   U=`sed -n 's/^U = //p' < "$mf"`
37248   # Find all dependency output files, they are included files with
37249   # $(DEPDIR) in their names.  We invoke sed twice because it is the
37250   # simplest approach to changing $(DEPDIR) to its actual value in the
37251   # expansion.
37252   for file in `sed -n "
37253     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37254        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37255     # Make sure the directory exists.
37256     test -f "$dirpart/$file" && continue
37257     fdir=`(dirname "$file") 2>/dev/null ||
37258 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37259          X"$file" : 'X\(//\)[^/]' \| \
37260          X"$file" : 'X\(//\)$' \| \
37261          X"$file" : 'X\(/\)' \| \
37262          .     : '\(.\)' 2>/dev/null ||
37263 echo X"$file" |
37264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37265           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37266           /^X\(\/\/\)$/{ s//\1/; q; }
37267           /^X\(\/\).*/{ s//\1/; q; }
37268           s/.*/./; q'`
37269     { if $as_mkdir_p; then
37270     mkdir -p $dirpart/$fdir
37271   else
37272     as_dir=$dirpart/$fdir
37273     as_dirs=
37274     while test ! -d "$as_dir"; do
37275       as_dirs="$as_dir $as_dirs"
37276       as_dir=`(dirname "$as_dir") 2>/dev/null ||
37277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37278          X"$as_dir" : 'X\(//\)[^/]' \| \
37279          X"$as_dir" : 'X\(//\)$' \| \
37280          X"$as_dir" : 'X\(/\)' \| \
37281          .     : '\(.\)' 2>/dev/null ||
37282 echo X"$as_dir" |
37283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37284           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37285           /^X\(\/\/\)$/{ s//\1/; q; }
37286           /^X\(\/\).*/{ s//\1/; q; }
37287           s/.*/./; q'`
37288     done
37289     test ! -n "$as_dirs" || mkdir $as_dirs
37290   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
37291 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
37292    { (exit 1); exit 1; }; }; }
37293
37294     # echo "creating $dirpart/$file"
37295     echo '# dummy' > "$dirpart/$file"
37296   done
37297 done
37298  ;;
37299     default-1 )
37300     for ac_file in $CONFIG_FILES; do
37301       # Support "outfile[:infile[:infile...]]"
37302       case "$ac_file" in
37303         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
37304       esac
37305       # PO directories have a Makefile.in generated from Makefile.in.in.
37306       case "$ac_file" in */Makefile.in)
37307         # Adjust a relative srcdir.
37308         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
37309         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
37310         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
37311         # In autoconf-2.13 it is called $ac_given_srcdir.
37312         # In autoconf-2.50 it is called $srcdir.
37313         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
37314         case "$ac_given_srcdir" in
37315           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
37316           /*) top_srcdir="$ac_given_srcdir" ;;
37317           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
37318         esac
37319         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
37320           rm -f "$ac_dir/POTFILES"
37321           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
37322           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
37323           POMAKEFILEDEPS="POTFILES.in"
37324           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
37325           # on $ac_dir but don't depend on user-specified configuration
37326           # parameters.
37327           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
37328             # The LINGUAS file contains the set of available languages.
37329             if test -n "$OBSOLETE_ALL_LINGUAS"; then
37330               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
37331             fi
37332             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
37333             # Hide the ALL_LINGUAS assigment from automake.
37334             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
37335             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
37336           else
37337             # The set of available languages was given in configure.in.
37338             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
37339           fi
37340           # Compute POFILES
37341           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
37342           # Compute UPDATEPOFILES
37343           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
37344           # Compute DUMMYPOFILES
37345           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
37346           # Compute GMOFILES
37347           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
37348           case "$ac_given_srcdir" in
37349             .) srcdirpre= ;;
37350             *) srcdirpre='$(srcdir)/' ;;
37351           esac
37352           POFILES=
37353           UPDATEPOFILES=
37354           DUMMYPOFILES=
37355           GMOFILES=
37356           for lang in $ALL_LINGUAS; do
37357             POFILES="$POFILES $srcdirpre$lang.po"
37358             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
37359             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
37360             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
37361           done
37362           # CATALOGS depends on both $ac_dir and the user's LINGUAS
37363           # environment variable.
37364           INST_LINGUAS=
37365           if test -n "$ALL_LINGUAS"; then
37366             for presentlang in $ALL_LINGUAS; do
37367               useit=no
37368               if test "%UNSET%" != "$LINGUAS"; then
37369                 desiredlanguages="$LINGUAS"
37370               else
37371                 desiredlanguages="$ALL_LINGUAS"
37372               fi
37373               for desiredlang in $desiredlanguages; do
37374                 # Use the presentlang catalog if desiredlang is
37375                 #   a. equal to presentlang, or
37376                 #   b. a variant of presentlang (because in this case,
37377                 #      presentlang can be used as a fallback for messages
37378                 #      which are not translated in the desiredlang catalog).
37379                 case "$desiredlang" in
37380                   "$presentlang"*) useit=yes;;
37381                 esac
37382               done
37383               if test $useit = yes; then
37384                 INST_LINGUAS="$INST_LINGUAS $presentlang"
37385               fi
37386             done
37387           fi
37388           CATALOGS=
37389           if test -n "$INST_LINGUAS"; then
37390             for lang in $INST_LINGUAS; do
37391               CATALOGS="$CATALOGS $lang.gmo"
37392             done
37393           fi
37394           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
37395           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
37396           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
37397             if test -f "$f"; then
37398               case "$f" in
37399                 *.orig | *.bak | *~) ;;
37400                 *) cat "$f" >> "$ac_dir/Makefile" ;;
37401               esac
37402             fi
37403           done
37404         fi
37405         ;;
37406       esac
37407     done ;;
37408   esac
37409 done
37410 _ACEOF
37411
37412 cat >>$CONFIG_STATUS <<\_ACEOF
37413
37414 { (exit 0); exit 0; }
37415 _ACEOF
37416 chmod +x $CONFIG_STATUS
37417 ac_clean_files=$ac_clean_files_save
37418
37419
37420 # configure is writing to config.log, and then calls config.status.
37421 # config.status does its own redirection, appending to config.log.
37422 # Unfortunately, on DOS this fails, as config.log is still kept open
37423 # by configure, so config.status won't be able to write to it; its
37424 # output is simply discarded.  So we exec the FD to /dev/null,
37425 # effectively closing config.log, so it can be properly (re)opened and
37426 # appended to by config.status.  When coming back to configure, we
37427 # need to make the FD available again.
37428 if test "$no_create" != yes; then
37429   ac_cs_success=:
37430   ac_config_status_args=
37431   test "$silent" = yes &&
37432     ac_config_status_args="$ac_config_status_args --quiet"
37433   exec 5>/dev/null
37434   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37435   exec 5>>config.log
37436   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37437   # would make configure fail if this is the last instruction.
37438   $ac_cs_success || { (exit 1); exit 1; }
37439 fi
37440
37441
37442
37443
37444 # Report the state of this version of CVS if this is from dev.
37445