Regenerate configure because of last commit.
[ircu2.10.12-pk.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="ircd/ircd.c"
275 ac_default_prefix=$HOME
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RMPROG SHPROG LEX LEXLIB LEX_OUTPUT_ROOT YACC ENGINE_C INSTALL_RULE SYMLINK IRCDMODE IRCDOWN IRCDGRP DPATH LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 System types:
836   --build=BUILD     configure for building on BUILD [guessed]
837   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional Features:
846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848   --enable-poll           Force poll to be used regardless of whether or not
849                           it is a system call
850   --enable-debug          Turn on debugging mode
851   --disable-asserts       Disable assertion checking
852   --disable-symbols       Disable debugging symbols (remove -g from CFLAGS)
853   --enable-profile        Enable profiling support (add -pg to CFLAGS)
854   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
855   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
856   --disable-inlines       Disable inlining for a few critical functions
857   --disable-devpoll       Disable the /dev/poll-based engine
858   --disable-kqueue        Disable the kqueue-based engine
859   --disable-epoll         Disable the epoll-based engine
860
861 Optional Packages:
862   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
863   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
864   --with-optimization=-O2 Explicitly set the compiler optimization flags
865                           (default: -O3)
866   --with-leak-detect          Turn on the leak detector(requires patched boehm)
867   --without-ipv6          disable IPv6 support (default is autodetect)
868   --with-symlink=name     Name to give the symlink; if name is "no," no
869                           symlink will be created.
870   --with-mode=mode        Permissions (in octal) to give the binary
871   --with-owner=owner      Specify owner of the installed binary
872   --with-group=group      Specify group owner of the installed binary
873   --with-domain=domain    Domain name to use in local statistics gathering
874   --with-chroot=dir       Specify that the server will be operated under
875                           a different root directory given by dir.  See
876                           doc/readme.chroot for more information.
877   --with-dpath=dir        Directory for all server data files
878   --with-cpath=file       Set server configuration file
879   --with-lpath=file       Set the debugging log file
880   --with-maxcon=maxcon    Maximum number of connections server will accept
881
882 Some influential environment variables:
883   CC          C compiler command
884   CFLAGS      C compiler flags
885   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
886               nonstandard directory <lib dir>
887   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
888               headers in a nonstandard directory <include dir>
889   CPP         C preprocessor
890
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
893
894 _ACEOF
895 fi
896
897 if test "$ac_init_help" = "recursive"; then
898   # If there are subdirs, report their specific --help.
899   ac_popdir=`pwd`
900   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901     test -d $ac_dir || continue
902     ac_builddir=.
903
904 if test "$ac_dir" != .; then
905   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906   # A "../" for each directory in $ac_dir_suffix.
907   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 else
909   ac_dir_suffix= ac_top_builddir=
910 fi
911
912 case $srcdir in
913   .)  # No --srcdir option.  We are building in place.
914     ac_srcdir=.
915     if test -z "$ac_top_builddir"; then
916        ac_top_srcdir=.
917     else
918        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919     fi ;;
920   [\\/]* | ?:[\\/]* )  # Absolute path.
921     ac_srcdir=$srcdir$ac_dir_suffix;
922     ac_top_srcdir=$srcdir ;;
923   *) # Relative path.
924     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925     ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 esac
927
928 # Do not use `cd foo && pwd` to compute absolute paths, because
929 # the directories may not exist.
930 case `pwd` in
931 .) ac_abs_builddir="$ac_dir";;
932 *)
933   case "$ac_dir" in
934   .) ac_abs_builddir=`pwd`;;
935   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
936   *) ac_abs_builddir=`pwd`/"$ac_dir";;
937   esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *)
942   case ${ac_top_builddir}. in
943   .) ac_abs_top_builddir=$ac_abs_builddir;;
944   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
945   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
946   esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_srcdir=$ac_srcdir;;
950 *)
951   case $ac_srcdir in
952   .) ac_abs_srcdir=$ac_abs_builddir;;
953   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
954   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
955   esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *)
960   case $ac_top_srcdir in
961   .) ac_abs_top_srcdir=$ac_abs_builddir;;
962   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
963   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
964   esac;;
965 esac
966
967     cd $ac_dir
968     # Check for guested configure; otherwise get Cygnus style configure.
969     if test -f $ac_srcdir/configure.gnu; then
970       echo
971       $SHELL $ac_srcdir/configure.gnu  --help=recursive
972     elif test -f $ac_srcdir/configure; then
973       echo
974       $SHELL $ac_srcdir/configure  --help=recursive
975     elif test -f $ac_srcdir/configure.ac ||
976            test -f $ac_srcdir/configure.in; then
977       echo
978       $ac_configure --help
979     else
980       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981     fi
982     cd "$ac_popdir"
983   done
984 fi
985
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
988   cat <<\_ACEOF
989
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994   exit 0
995 fi
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1000
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.59.  Invocation command line was
1003
1004   $ $0 $@
1005
1006 _ACEOF
1007 {
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1012
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1021
1022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1029
1030 _ASUNAME
1031
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1034 do
1035   IFS=$as_save_IFS
1036   test -z "$as_dir" && as_dir=.
1037   echo "PATH: $as_dir"
1038 done
1039
1040 } >&5
1041
1042 cat >&5 <<_ACEOF
1043
1044
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1048
1049 _ACEOF
1050
1051
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1063 do
1064   for ac_arg
1065   do
1066     case $ac_arg in
1067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069     | -silent | --silent | --silen | --sile | --sil)
1070       continue ;;
1071     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073     esac
1074     case $ac_pass in
1075     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076     2)
1077       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078       if test $ac_must_keep_next = true; then
1079         ac_must_keep_next=false # Got value, back to normal.
1080       else
1081         case $ac_arg in
1082           *=* | --config-cache | -C | -disable-* | --disable-* \
1083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085           | -with-* | --with-* | -without-* | --without-* | --x)
1086             case "$ac_configure_args0 " in
1087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088             esac
1089             ;;
1090           -* ) ac_must_keep_next=true ;;
1091         esac
1092       fi
1093       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094       # Get rid of the leading space.
1095       ac_sep=" "
1096       ;;
1097     esac
1098   done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log.  We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109   # Save into config.log some information that might help in debugging.
1110   {
1111     echo
1112
1113     cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118     echo
1119     # The following way of writing the cache mishandles newlines in values,
1120 {
1121   (set) 2>&1 |
1122     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123     *ac_space=\ *)
1124       sed -n \
1125         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127       ;;
1128     *)
1129       sed -n \
1130         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131       ;;
1132     esac;
1133 }
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141     echo
1142     for ac_var in $ac_subst_vars
1143     do
1144       eval ac_val=$`echo $ac_var`
1145       echo "$ac_var='"'"'$ac_val'"'"'"
1146     done | sort
1147     echo
1148
1149     if test -n "$ac_subst_files"; then
1150       cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155       echo
1156       for ac_var in $ac_subst_files
1157       do
1158         eval ac_val=$`echo $ac_var`
1159         echo "$ac_var='"'"'$ac_val'"'"'"
1160       done | sort
1161       echo
1162     fi
1163
1164     if test -s confdefs.h; then
1165       cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170       echo
1171       sed "/^$/d" confdefs.h | sort
1172       echo
1173     fi
1174     test "$ac_signal" != 0 &&
1175       echo "$as_me: caught signal $ac_signal"
1176     echo "$as_me: exit $exit_status"
1177   } >&5
1178   rm -f core *.core &&
1179   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180     exit $exit_status
1181      ' 0
1182 for ac_signal in 1 2 13 15; do
1183   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1186
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1191
1192 # Predefined preprocessor variables.
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1217
1218
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222   if test "x$prefix" != xNONE; then
1223     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224   else
1225     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226   fi
1227 fi
1228 for ac_site_file in $CONFIG_SITE; do
1229   if test -r "$ac_site_file"; then
1230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232     sed 's/^/| /' "$ac_site_file" >&5
1233     . "$ac_site_file"
1234   fi
1235 done
1236
1237 if test -r "$cache_file"; then
1238   # Some versions of bash will fail to source /dev/null (special
1239   # files actually), so we avoid doing that.
1240   if test -f "$cache_file"; then
1241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243     case $cache_file in
1244       [\\/]* | ?:[\\/]* ) . $cache_file;;
1245       *)                      . ./$cache_file;;
1246     esac
1247   fi
1248 else
1249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251   >$cache_file
1252 fi
1253
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260   eval ac_new_set=\$ac_env_${ac_var}_set
1261   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262   eval ac_new_val="\$ac_env_${ac_var}_value"
1263   case $ac_old_set,$ac_new_set in
1264     set,)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,set)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,);;
1273     *)
1274       if test "x$ac_old_val" != "x$ac_new_val"; then
1275         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1278 echo "$as_me:   former value:  $ac_old_val" >&2;}
1279         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1280 echo "$as_me:   current value: $ac_new_val" >&2;}
1281         ac_cache_corrupted=:
1282       fi;;
1283   esac
1284   # Pass precious variables to config.status.
1285   if test "$ac_new_set" = set; then
1286     case $ac_new_val in
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     *) ac_arg=$ac_var=$ac_new_val ;;
1290     esac
1291     case " $ac_configure_args " in
1292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1293       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294     esac
1295   fi
1296 done
1297 if $ac_cache_corrupted; then
1298   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331 echo "$as_me:$LINENO: checking for installation prefix" >&5
1332 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6
1333 if test "${unet_cv_prefix+set}" = set; then
1334   echo $ECHO_N "(cached) $ECHO_C" >&6
1335 else
1336   unet_cv_prefix=$HOME
1337 fi
1338
1339 if test x"$prefix" != xNONE; then
1340     unet_cv_prefix=$prefix
1341 fi
1342 echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1343 echo "${ECHO_T}$unet_cv_prefix" >&6
1344 ac_default_prefix=$unet_cv_prefix
1345
1346           ac_config_headers="$ac_config_headers config.h"
1347
1348
1349
1350
1351 ac_aux_dir=
1352 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1353   if test -f $ac_dir/install-sh; then
1354     ac_aux_dir=$ac_dir
1355     ac_install_sh="$ac_aux_dir/install-sh -c"
1356     break
1357   elif test -f $ac_dir/install.sh; then
1358     ac_aux_dir=$ac_dir
1359     ac_install_sh="$ac_aux_dir/install.sh -c"
1360     break
1361   elif test -f $ac_dir/shtool; then
1362     ac_aux_dir=$ac_dir
1363     ac_install_sh="$ac_aux_dir/shtool install -c"
1364     break
1365   fi
1366 done
1367 if test -z "$ac_aux_dir"; then
1368   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1369 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1370    { (exit 1); exit 1; }; }
1371 fi
1372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1374 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1375
1376 # Make sure we can run config.sub.
1377 $ac_config_sub sun4 >/dev/null 2>&1 ||
1378   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1379 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1380    { (exit 1); exit 1; }; }
1381
1382 echo "$as_me:$LINENO: checking build system type" >&5
1383 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1384 if test "${ac_cv_build+set}" = set; then
1385   echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387   ac_cv_build_alias=$build_alias
1388 test -z "$ac_cv_build_alias" &&
1389   ac_cv_build_alias=`$ac_config_guess`
1390 test -z "$ac_cv_build_alias" &&
1391   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1392 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1393    { (exit 1); exit 1; }; }
1394 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1395   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1397    { (exit 1); exit 1; }; }
1398
1399 fi
1400 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1401 echo "${ECHO_T}$ac_cv_build" >&6
1402 build=$ac_cv_build
1403 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406
1407
1408 echo "$as_me:$LINENO: checking host system type" >&5
1409 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1410 if test "${ac_cv_host+set}" = set; then
1411   echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413   ac_cv_host_alias=$host_alias
1414 test -z "$ac_cv_host_alias" &&
1415   ac_cv_host_alias=$ac_cv_build_alias
1416 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1417   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1419    { (exit 1); exit 1; }; }
1420
1421 fi
1422 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1423 echo "${ECHO_T}$ac_cv_host" >&6
1424 host=$ac_cv_host
1425 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430
1431 ac_ext=c
1432 ac_cpp='$CPP $CPPFLAGS'
1433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436 if test -n "$ac_tool_prefix"; then
1437   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442   echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444   if test -n "$CC"; then
1445   ac_cv_prog_CC="$CC" # Let the user override the test.
1446 else
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1449 do
1450   IFS=$as_save_IFS
1451   test -z "$as_dir" && as_dir=.
1452   for ac_exec_ext in '' $ac_executable_extensions; do
1453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456     break 2
1457   fi
1458 done
1459 done
1460
1461 fi
1462 fi
1463 CC=$ac_cv_prog_CC
1464 if test -n "$CC"; then
1465   echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1467 else
1468   echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1470 fi
1471
1472 fi
1473 if test -z "$ac_cv_prog_CC"; then
1474   ac_ct_CC=$CC
1475   # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480   echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482   if test -n "$ac_ct_CC"; then
1483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 else
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1487 do
1488   IFS=$as_save_IFS
1489   test -z "$as_dir" && as_dir=.
1490   for ac_exec_ext in '' $ac_executable_extensions; do
1491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492     ac_cv_prog_ac_ct_CC="gcc"
1493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494     break 2
1495   fi
1496 done
1497 done
1498
1499 fi
1500 fi
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1505 else
1506   echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1508 fi
1509
1510   CC=$ac_ct_CC
1511 else
1512   CC="$ac_cv_prog_CC"
1513 fi
1514
1515 if test -z "$CC"; then
1516   if test -n "$ac_tool_prefix"; then
1517   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522   echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524   if test -n "$CC"; then
1525   ac_cv_prog_CC="$CC" # Let the user override the test.
1526 else
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530   IFS=$as_save_IFS
1531   test -z "$as_dir" && as_dir=.
1532   for ac_exec_ext in '' $ac_executable_extensions; do
1533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534     ac_cv_prog_CC="${ac_tool_prefix}cc"
1535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536     break 2
1537   fi
1538 done
1539 done
1540
1541 fi
1542 fi
1543 CC=$ac_cv_prog_CC
1544 if test -n "$CC"; then
1545   echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1547 else
1548   echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1550 fi
1551
1552 fi
1553 if test -z "$ac_cv_prog_CC"; then
1554   ac_ct_CC=$CC
1555   # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560   echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562   if test -n "$ac_ct_CC"; then
1563   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568   IFS=$as_save_IFS
1569   test -z "$as_dir" && as_dir=.
1570   for ac_exec_ext in '' $ac_executable_extensions; do
1571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572     ac_cv_prog_ac_ct_CC="cc"
1573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574     break 2
1575   fi
1576 done
1577 done
1578
1579 fi
1580 fi
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1585 else
1586   echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590   CC=$ac_ct_CC
1591 else
1592   CC="$ac_cv_prog_CC"
1593 fi
1594
1595 fi
1596 if test -z "$CC"; then
1597   # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   if test -n "$CC"; then
1605   ac_cv_prog_CC="$CC" # Let the user override the test.
1606 else
1607   ac_prog_rejected=no
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   for ac_exec_ext in '' $ac_executable_extensions; do
1614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616        ac_prog_rejected=yes
1617        continue
1618      fi
1619     ac_cv_prog_CC="cc"
1620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621     break 2
1622   fi
1623 done
1624 done
1625
1626 if test $ac_prog_rejected = yes; then
1627   # We found a bogon in the path, so make sure we never use it.
1628   set dummy $ac_cv_prog_CC
1629   shift
1630   if test $# != 0; then
1631     # We chose a different compiler from the bogus one.
1632     # However, it has the same basename, so the bogon will be chosen
1633     # first if we set CC to just the basename; use the full file name.
1634     shift
1635     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1636   fi
1637 fi
1638 fi
1639 fi
1640 CC=$ac_cv_prog_CC
1641 if test -n "$CC"; then
1642   echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1644 else
1645   echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647 fi
1648
1649 fi
1650 if test -z "$CC"; then
1651   if test -n "$ac_tool_prefix"; then
1652   for ac_prog in cl
1653   do
1654     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_CC+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   if test -n "$CC"; then
1662   ac_cv_prog_CC="$CC" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667   IFS=$as_save_IFS
1668   test -z "$as_dir" && as_dir=.
1669   for ac_exec_ext in '' $ac_executable_extensions; do
1670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673     break 2
1674   fi
1675 done
1676 done
1677
1678 fi
1679 fi
1680 CC=$ac_cv_prog_CC
1681 if test -n "$CC"; then
1682   echo "$as_me:$LINENO: result: $CC" >&5
1683 echo "${ECHO_T}$CC" >&6
1684 else
1685   echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1687 fi
1688
1689     test -n "$CC" && break
1690   done
1691 fi
1692 if test -z "$CC"; then
1693   ac_ct_CC=$CC
1694   for ac_prog in cl
1695 do
1696   # Extract the first word of "$ac_prog", so it can be a program name with args.
1697 set dummy $ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701   echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703   if test -n "$ac_ct_CC"; then
1704   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705 else
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1708 do
1709   IFS=$as_save_IFS
1710   test -z "$as_dir" && as_dir=.
1711   for ac_exec_ext in '' $ac_executable_extensions; do
1712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713     ac_cv_prog_ac_ct_CC="$ac_prog"
1714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715     break 2
1716   fi
1717 done
1718 done
1719
1720 fi
1721 fi
1722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1723 if test -n "$ac_ct_CC"; then
1724   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1725 echo "${ECHO_T}$ac_ct_CC" >&6
1726 else
1727   echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1729 fi
1730
1731   test -n "$ac_ct_CC" && break
1732 done
1733
1734   CC=$ac_ct_CC
1735 fi
1736
1737 fi
1738
1739
1740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&5
1742 echo "$as_me: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&2;}
1744    { (exit 1); exit 1; }; }
1745
1746 # Provide some information about the compiler.
1747 echo "$as_me:$LINENO:" \
1748      "checking for C compiler version" >&5
1749 ac_compiler=`set X $ac_compile; echo $2`
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751   (eval $ac_compiler --version </dev/null >&5) 2>&5
1752   ac_status=$?
1753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754   (exit $ac_status); }
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1756   (eval $ac_compiler -v </dev/null >&5) 2>&5
1757   ac_status=$?
1758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759   (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761   (eval $ac_compiler -V </dev/null >&5) 2>&5
1762   ac_status=$?
1763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764   (exit $ac_status); }
1765
1766 cat >conftest.$ac_ext <<_ACEOF
1767 /* confdefs.h.  */
1768 _ACEOF
1769 cat confdefs.h >>conftest.$ac_ext
1770 cat >>conftest.$ac_ext <<_ACEOF
1771 /* end confdefs.h.  */
1772
1773 int
1774 main ()
1775 {
1776
1777   ;
1778   return 0;
1779 }
1780 _ACEOF
1781 ac_clean_files_save=$ac_clean_files
1782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1783 # Try to create an executable without -o first, disregard a.out.
1784 # It will help us diagnose broken compilers, and finding out an intuition
1785 # of exeext.
1786 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1787 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790   (eval $ac_link_default) 2>&5
1791   ac_status=$?
1792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793   (exit $ac_status); }; then
1794   # Find the output, starting from the most likely.  This scheme is
1795 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1796 # resort.
1797
1798 # Be careful to initialize this variable, since it used to be cached.
1799 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1800 ac_cv_exeext=
1801 # b.out is created by i960 compilers.
1802 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 do
1804   test -f "$ac_file" || continue
1805   case $ac_file in
1806     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807         ;;
1808     conftest.$ac_ext )
1809         # This is the source file.
1810         ;;
1811     [ab].out )
1812         # We found the default executable, but exeext='' is most
1813         # certainly right.
1814         break;;
1815     *.* )
1816         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817         # FIXME: I believe we export ac_cv_exeext for Libtool,
1818         # but it would be cool to find out if it's true.  Does anybody
1819         # maintain Libtool? --akim.
1820         export ac_cv_exeext
1821         break;;
1822     * )
1823         break;;
1824   esac
1825 done
1826 else
1827   echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&2;}
1834    { (exit 77); exit 77; }; }
1835 fi
1836
1837 ac_exeext=$ac_cv_exeext
1838 echo "$as_me:$LINENO: result: $ac_file" >&5
1839 echo "${ECHO_T}$ac_file" >&6
1840
1841 # Check the compiler produces executables we can run.  If not, either
1842 # the compiler is broken, or we cross compile.
1843 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1846 # If not cross compiling, check that we can run a simple program.
1847 if test "$cross_compiling" != yes; then
1848   if { ac_try='./$ac_file'
1849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850   (eval $ac_try) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }; }; then
1854     cross_compiling=no
1855   else
1856     if test "$cross_compiling" = maybe; then
1857         cross_compiling=yes
1858     else
1859         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&2;}
1865    { (exit 1); exit 1; }; }
1866     fi
1867   fi
1868 fi
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1871
1872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1873 ac_clean_files=$ac_clean_files_save
1874 # Check the compiler produces executables we can run.  If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1878 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1879 echo "${ECHO_T}$cross_compiling" >&6
1880
1881 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1884   (eval $ac_link) 2>&5
1885   ac_status=$?
1886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887   (exit $ac_status); }; then
1888   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1889 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1890 # work properly (i.e., refer to `conftest.exe'), while it won't with
1891 # `rm'.
1892 for ac_file in conftest.exe conftest conftest.*; do
1893   test -f "$ac_file" || continue
1894   case $ac_file in
1895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1896     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1897           export ac_cv_exeext
1898           break;;
1899     * ) break;;
1900   esac
1901 done
1902 else
1903   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&2;}
1907    { (exit 1); exit 1; }; }
1908 fi
1909
1910 rm -f conftest$ac_cv_exeext
1911 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1912 echo "${ECHO_T}$ac_cv_exeext" >&6
1913
1914 rm -f conftest.$ac_ext
1915 EXEEXT=$ac_cv_exeext
1916 ac_exeext=$EXEEXT
1917 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1918 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1919 if test "${ac_cv_objext+set}" = set; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   cat >conftest.$ac_ext <<_ACEOF
1923 /* confdefs.h.  */
1924 _ACEOF
1925 cat confdefs.h >>conftest.$ac_ext
1926 cat >>conftest.$ac_ext <<_ACEOF
1927 /* end confdefs.h.  */
1928
1929 int
1930 main ()
1931 {
1932
1933   ;
1934   return 0;
1935 }
1936 _ACEOF
1937 rm -f conftest.o conftest.obj
1938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939   (eval $ac_compile) 2>&5
1940   ac_status=$?
1941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942   (exit $ac_status); }; then
1943   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1944   case $ac_file in
1945     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1946     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1947        break;;
1948   esac
1949 done
1950 else
1951   echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962 fi
1963 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1964 echo "${ECHO_T}$ac_cv_objext" >&6
1965 OBJEXT=$ac_cv_objext
1966 ac_objext=$OBJEXT
1967 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1968 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1969 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   cat >conftest.$ac_ext <<_ACEOF
1973 /* confdefs.h.  */
1974 _ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h.  */
1978
1979 int
1980 main ()
1981 {
1982 #ifndef __GNUC__
1983        choke me
1984 #endif
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992   (eval $ac_compile) 2>conftest.er1
1993   ac_status=$?
1994   grep -v '^ *+' conftest.er1 >conftest.err
1995   rm -f conftest.er1
1996   cat conftest.err >&5
1997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998   (exit $ac_status); } &&
1999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001   (eval $ac_try) 2>&5
2002   ac_status=$?
2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004   (exit $ac_status); }; } &&
2005          { ac_try='test -s conftest.$ac_objext'
2006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007   (eval $ac_try) 2>&5
2008   ac_status=$?
2009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010   (exit $ac_status); }; }; then
2011   ac_compiler_gnu=yes
2012 else
2013   echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_compiler_gnu=no
2017 fi
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020
2021 fi
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2027 CFLAGS="-g"
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   cat >conftest.$ac_ext <<_ACEOF
2034 /* confdefs.h.  */
2035 _ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h.  */
2039
2040 int
2041 main ()
2042 {
2043
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050   (eval $ac_compile) 2>conftest.er1
2051   ac_status=$?
2052   grep -v '^ *+' conftest.er1 >conftest.err
2053   rm -f conftest.er1
2054   cat conftest.err >&5
2055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056   (exit $ac_status); } &&
2057          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059   (eval $ac_try) 2>&5
2060   ac_status=$?
2061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062   (exit $ac_status); }; } &&
2063          { ac_try='test -s conftest.$ac_objext'
2064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065   (eval $ac_try) 2>&5
2066   ac_status=$?
2067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068   (exit $ac_status); }; }; then
2069   ac_cv_prog_cc_g=yes
2070 else
2071   echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_cv_prog_cc_g=no
2075 fi
2076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077 fi
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080 if test "$ac_test_CFLAGS" = set; then
2081   CFLAGS=$ac_save_CFLAGS
2082 elif test $ac_cv_prog_cc_g = yes; then
2083   if test "$GCC" = yes; then
2084     CFLAGS="-g -O2"
2085   else
2086     CFLAGS="-g"
2087   fi
2088 else
2089   if test "$GCC" = yes; then
2090     CFLAGS="-O2"
2091   else
2092     CFLAGS=
2093   fi
2094 fi
2095 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098   echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100   ac_cv_prog_cc_stdc=no
2101 ac_save_CC=$CC
2102 cat >conftest.$ac_ext <<_ACEOF
2103 /* confdefs.h.  */
2104 _ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h.  */
2108 #include <stdarg.h>
2109 #include <stdio.h>
2110 #include <sys/types.h>
2111 #include <sys/stat.h>
2112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2113 struct buf { int x; };
2114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115 static char *e (p, i)
2116      char **p;
2117      int i;
2118 {
2119   return p[i];
2120 }
2121 static char *f (char * (*g) (char **, int), char **p, ...)
2122 {
2123   char *s;
2124   va_list v;
2125   va_start (v,p);
2126   s = g (p, va_arg (v,int));
2127   va_end (v);
2128   return s;
2129 }
2130
2131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2132    function prototypes and stuff, but not '\xHH' hex character constants.
2133    These don't provoke an error unfortunately, instead are silently treated
2134    as 'x'.  The following induces an error, until -std1 is added to get
2135    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2136    array size at least.  It's necessary to write '\x00'==0 to get something
2137    that's true only with -std1.  */
2138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2139
2140 int test (int i, double x);
2141 struct s1 {int (*f) (int a);};
2142 struct s2 {int (*f) (double a);};
2143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2144 int argc;
2145 char **argv;
2146 int
2147 main ()
2148 {
2149 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2150   ;
2151   return 0;
2152 }
2153 _ACEOF
2154 # Don't try gcc -ansi; that turns off useful extensions and
2155 # breaks some systems' header files.
2156 # AIX                   -qlanglvl=ansi
2157 # Ultrix and OSF/1      -std1
2158 # HP-UX 10.20 and later -Ae
2159 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2160 # SVR4                  -Xc -D__EXTENSIONS__
2161 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2162 do
2163   CC="$ac_save_CC $ac_arg"
2164   rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166   (eval $ac_compile) 2>conftest.er1
2167   ac_status=$?
2168   grep -v '^ *+' conftest.er1 >conftest.err
2169   rm -f conftest.er1
2170   cat conftest.err >&5
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); } &&
2173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175   (eval $ac_try) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }; } &&
2179          { ac_try='test -s conftest.$ac_objext'
2180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181   (eval $ac_try) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); }; }; then
2185   ac_cv_prog_cc_stdc=$ac_arg
2186 break
2187 else
2188   echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2190
2191 fi
2192 rm -f conftest.err conftest.$ac_objext
2193 done
2194 rm -f conftest.$ac_ext conftest.$ac_objext
2195 CC=$ac_save_CC
2196
2197 fi
2198
2199 case "x$ac_cv_prog_cc_stdc" in
2200   x|xno)
2201     echo "$as_me:$LINENO: result: none needed" >&5
2202 echo "${ECHO_T}none needed" >&6 ;;
2203   *)
2204     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206     CC="$CC $ac_cv_prog_cc_stdc" ;;
2207 esac
2208
2209 # Some people use a C++ compiler to compile C.  Since we use `exit',
2210 # in C++ we need to declare it.  In case someone uses the same compiler
2211 # for both compiling C and C++ we need to have the C++ compiler decide
2212 # the declaration of exit, since it's the most demanding environment.
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #ifndef __cplusplus
2215   choke me
2216 #endif
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220   (eval $ac_compile) 2>conftest.er1
2221   ac_status=$?
2222   grep -v '^ *+' conftest.er1 >conftest.err
2223   rm -f conftest.er1
2224   cat conftest.err >&5
2225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226   (exit $ac_status); } &&
2227          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229   (eval $ac_try) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }; } &&
2233          { ac_try='test -s conftest.$ac_objext'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; }; then
2239   for ac_declaration in \
2240    '' \
2241    'extern "C" void std::exit (int) throw (); using std::exit;' \
2242    'extern "C" void std::exit (int); using std::exit;' \
2243    'extern "C" void exit (int) throw ();' \
2244    'extern "C" void exit (int);' \
2245    'void exit (int);'
2246 do
2247   cat >conftest.$ac_ext <<_ACEOF
2248 /* confdefs.h.  */
2249 _ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h.  */
2253 $ac_declaration
2254 #include <stdlib.h>
2255 int
2256 main ()
2257 {
2258 exit (42);
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265   (eval $ac_compile) 2>conftest.er1
2266   ac_status=$?
2267   grep -v '^ *+' conftest.er1 >conftest.err
2268   rm -f conftest.er1
2269   cat conftest.err >&5
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); } &&
2272          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274   (eval $ac_try) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }; } &&
2278          { ac_try='test -s conftest.$ac_objext'
2279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280   (eval $ac_try) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; }; then
2284   :
2285 else
2286   echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2288
2289 continue
2290 fi
2291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292   cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298 $ac_declaration
2299 int
2300 main ()
2301 {
2302 exit (42);
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309   (eval $ac_compile) 2>conftest.er1
2310   ac_status=$?
2311   grep -v '^ *+' conftest.er1 >conftest.err
2312   rm -f conftest.er1
2313   cat conftest.err >&5
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); } &&
2316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318   (eval $ac_try) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }; } &&
2322          { ac_try='test -s conftest.$ac_objext'
2323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324   (eval $ac_try) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; }; then
2328   break
2329 else
2330   echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2332
2333 fi
2334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335 done
2336 rm -f conftest*
2337 if test -n "$ac_declaration"; then
2338   echo '#ifdef __cplusplus' >>confdefs.h
2339   echo $ac_declaration      >>confdefs.h
2340   echo '#endif'             >>confdefs.h
2341 fi
2342
2343 else
2344   echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 fi
2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2349 ac_ext=c
2350 ac_cpp='$CPP $CPPFLAGS'
2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354
2355
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 if test -n "$ac_tool_prefix"; then
2362   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2364 echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   if test -n "$CC"; then
2370   ac_cv_prog_CC="$CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375   IFS=$as_save_IFS
2376   test -z "$as_dir" && as_dir=.
2377   for ac_exec_ext in '' $ac_executable_extensions; do
2378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2379     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381     break 2
2382   fi
2383 done
2384 done
2385
2386 fi
2387 fi
2388 CC=$ac_cv_prog_CC
2389 if test -n "$CC"; then
2390   echo "$as_me:$LINENO: result: $CC" >&5
2391 echo "${ECHO_T}$CC" >&6
2392 else
2393   echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6
2395 fi
2396
2397 fi
2398 if test -z "$ac_cv_prog_CC"; then
2399   ac_ct_CC=$CC
2400   # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   if test -n "$ac_ct_CC"; then
2408   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415   for ac_exec_ext in '' $ac_executable_extensions; do
2416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417     ac_cv_prog_ac_ct_CC="gcc"
2418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422 done
2423
2424 fi
2425 fi
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 echo "${ECHO_T}$ac_ct_CC" >&6
2430 else
2431   echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2433 fi
2434
2435   CC=$ac_ct_CC
2436 else
2437   CC="$ac_cv_prog_CC"
2438 fi
2439
2440 if test -z "$CC"; then
2441   if test -n "$ac_tool_prefix"; then
2442   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}cc; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447   echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449   if test -n "$CC"; then
2450   ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457   for ac_exec_ext in '' $ac_executable_extensions; do
2458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459     ac_cv_prog_CC="${ac_tool_prefix}cc"
2460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464 done
2465
2466 fi
2467 fi
2468 CC=$ac_cv_prog_CC
2469 if test -n "$CC"; then
2470   echo "$as_me:$LINENO: result: $CC" >&5
2471 echo "${ECHO_T}$CC" >&6
2472 else
2473   echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2475 fi
2476
2477 fi
2478 if test -z "$ac_cv_prog_CC"; then
2479   ac_ct_CC=$CC
2480   # Extract the first word of "cc", so it can be a program name with args.
2481 set dummy cc; ac_word=$2
2482 echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   if test -n "$ac_ct_CC"; then
2488   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   for ac_exec_ext in '' $ac_executable_extensions; do
2496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497     ac_cv_prog_ac_ct_CC="cc"
2498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502 done
2503
2504 fi
2505 fi
2506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507 if test -n "$ac_ct_CC"; then
2508   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509 echo "${ECHO_T}$ac_ct_CC" >&6
2510 else
2511   echo "$as_me:$LINENO: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2513 fi
2514
2515   CC=$ac_ct_CC
2516 else
2517   CC="$ac_cv_prog_CC"
2518 fi
2519
2520 fi
2521 if test -z "$CC"; then
2522   # Extract the first word of "cc", so it can be a program name with args.
2523 set dummy cc; ac_word=$2
2524 echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_prog_CC+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   if test -n "$CC"; then
2530   ac_cv_prog_CC="$CC" # Let the user override the test.
2531 else
2532   ac_prog_rejected=no
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for ac_exec_ext in '' $ac_executable_extensions; do
2539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2541        ac_prog_rejected=yes
2542        continue
2543      fi
2544     ac_cv_prog_CC="cc"
2545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546     break 2
2547   fi
2548 done
2549 done
2550
2551 if test $ac_prog_rejected = yes; then
2552   # We found a bogon in the path, so make sure we never use it.
2553   set dummy $ac_cv_prog_CC
2554   shift
2555   if test $# != 0; then
2556     # We chose a different compiler from the bogus one.
2557     # However, it has the same basename, so the bogon will be chosen
2558     # first if we set CC to just the basename; use the full file name.
2559     shift
2560     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2561   fi
2562 fi
2563 fi
2564 fi
2565 CC=$ac_cv_prog_CC
2566 if test -n "$CC"; then
2567   echo "$as_me:$LINENO: result: $CC" >&5
2568 echo "${ECHO_T}$CC" >&6
2569 else
2570   echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2572 fi
2573
2574 fi
2575 if test -z "$CC"; then
2576   if test -n "$ac_tool_prefix"; then
2577   for ac_prog in cl
2578   do
2579     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2581 echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584   echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586   if test -n "$CC"; then
2587   ac_cv_prog_CC="$CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592   IFS=$as_save_IFS
2593   test -z "$as_dir" && as_dir=.
2594   for ac_exec_ext in '' $ac_executable_extensions; do
2595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598     break 2
2599   fi
2600 done
2601 done
2602
2603 fi
2604 fi
2605 CC=$ac_cv_prog_CC
2606 if test -n "$CC"; then
2607   echo "$as_me:$LINENO: result: $CC" >&5
2608 echo "${ECHO_T}$CC" >&6
2609 else
2610   echo "$as_me:$LINENO: result: no" >&5
2611 echo "${ECHO_T}no" >&6
2612 fi
2613
2614     test -n "$CC" && break
2615   done
2616 fi
2617 if test -z "$CC"; then
2618   ac_ct_CC=$CC
2619   for ac_prog in cl
2620 do
2621   # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   if test -n "$ac_ct_CC"; then
2629   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634   IFS=$as_save_IFS
2635   test -z "$as_dir" && as_dir=.
2636   for ac_exec_ext in '' $ac_executable_extensions; do
2637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638     ac_cv_prog_ac_ct_CC="$ac_prog"
2639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640     break 2
2641   fi
2642 done
2643 done
2644
2645 fi
2646 fi
2647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648 if test -n "$ac_ct_CC"; then
2649   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2650 echo "${ECHO_T}$ac_ct_CC" >&6
2651 else
2652   echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6
2654 fi
2655
2656   test -n "$ac_ct_CC" && break
2657 done
2658
2659   CC=$ac_ct_CC
2660 fi
2661
2662 fi
2663
2664
2665 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&5
2667 echo "$as_me: error: no acceptable C compiler found in \$PATH
2668 See \`config.log' for more details." >&2;}
2669    { (exit 1); exit 1; }; }
2670
2671 # Provide some information about the compiler.
2672 echo "$as_me:$LINENO:" \
2673      "checking for C compiler version" >&5
2674 ac_compiler=`set X $ac_compile; echo $2`
2675 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2676   (eval $ac_compiler --version </dev/null >&5) 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }
2680 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2681   (eval $ac_compiler -v </dev/null >&5) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }
2685 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2686   (eval $ac_compiler -V </dev/null >&5) 2>&5
2687   ac_status=$?
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); }
2690
2691 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2692 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2693 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2694   echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696   cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702
2703 int
2704 main ()
2705 {
2706 #ifndef __GNUC__
2707        choke me
2708 #endif
2709
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716   (eval $ac_compile) 2>conftest.er1
2717   ac_status=$?
2718   grep -v '^ *+' conftest.er1 >conftest.err
2719   rm -f conftest.er1
2720   cat conftest.err >&5
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); } &&
2723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725   (eval $ac_try) 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }; } &&
2729          { ac_try='test -s conftest.$ac_objext'
2730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731   (eval $ac_try) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; }; then
2735   ac_compiler_gnu=yes
2736 else
2737   echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2739
2740 ac_compiler_gnu=no
2741 fi
2742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2744
2745 fi
2746 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2747 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2748 GCC=`test $ac_compiler_gnu = yes && echo yes`
2749 ac_test_CFLAGS=${CFLAGS+set}
2750 ac_save_CFLAGS=$CFLAGS
2751 CFLAGS="-g"
2752 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2753 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2754 if test "${ac_cv_prog_cc_g+set}" = set; then
2755   echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757   cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763
2764 int
2765 main ()
2766 {
2767
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; } &&
2787          { ac_try='test -s conftest.$ac_objext'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; }; then
2793   ac_cv_prog_cc_g=yes
2794 else
2795   echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2797
2798 ac_cv_prog_cc_g=no
2799 fi
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801 fi
2802 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2803 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2804 if test "$ac_test_CFLAGS" = set; then
2805   CFLAGS=$ac_save_CFLAGS
2806 elif test $ac_cv_prog_cc_g = yes; then
2807   if test "$GCC" = yes; then
2808     CFLAGS="-g -O2"
2809   else
2810     CFLAGS="-g"
2811   fi
2812 else
2813   if test "$GCC" = yes; then
2814     CFLAGS="-O2"
2815   else
2816     CFLAGS=
2817   fi
2818 fi
2819 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2820 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2821 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2822   echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824   ac_cv_prog_cc_stdc=no
2825 ac_save_CC=$CC
2826 cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h.  */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h.  */
2832 #include <stdarg.h>
2833 #include <stdio.h>
2834 #include <sys/types.h>
2835 #include <sys/stat.h>
2836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2837 struct buf { int x; };
2838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2839 static char *e (p, i)
2840      char **p;
2841      int i;
2842 {
2843   return p[i];
2844 }
2845 static char *f (char * (*g) (char **, int), char **p, ...)
2846 {
2847   char *s;
2848   va_list v;
2849   va_start (v,p);
2850   s = g (p, va_arg (v,int));
2851   va_end (v);
2852   return s;
2853 }
2854
2855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2856    function prototypes and stuff, but not '\xHH' hex character constants.
2857    These don't provoke an error unfortunately, instead are silently treated
2858    as 'x'.  The following induces an error, until -std1 is added to get
2859    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2860    array size at least.  It's necessary to write '\x00'==0 to get something
2861    that's true only with -std1.  */
2862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2863
2864 int test (int i, double x);
2865 struct s1 {int (*f) (int a);};
2866 struct s2 {int (*f) (double a);};
2867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2868 int argc;
2869 char **argv;
2870 int
2871 main ()
2872 {
2873 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 # Don't try gcc -ansi; that turns off useful extensions and
2879 # breaks some systems' header files.
2880 # AIX                   -qlanglvl=ansi
2881 # Ultrix and OSF/1      -std1
2882 # HP-UX 10.20 and later -Ae
2883 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2884 # SVR4                  -Xc -D__EXTENSIONS__
2885 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2886 do
2887   CC="$ac_save_CC $ac_arg"
2888   rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890   (eval $ac_compile) 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } &&
2897          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899   (eval $ac_try) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }; } &&
2903          { ac_try='test -s conftest.$ac_objext'
2904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905   (eval $ac_try) 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }; }; then
2909   ac_cv_prog_cc_stdc=$ac_arg
2910 break
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915 fi
2916 rm -f conftest.err conftest.$ac_objext
2917 done
2918 rm -f conftest.$ac_ext conftest.$ac_objext
2919 CC=$ac_save_CC
2920
2921 fi
2922
2923 case "x$ac_cv_prog_cc_stdc" in
2924   x|xno)
2925     echo "$as_me:$LINENO: result: none needed" >&5
2926 echo "${ECHO_T}none needed" >&6 ;;
2927   *)
2928     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2929 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2930     CC="$CC $ac_cv_prog_cc_stdc" ;;
2931 esac
2932
2933 # Some people use a C++ compiler to compile C.  Since we use `exit',
2934 # in C++ we need to declare it.  In case someone uses the same compiler
2935 # for both compiling C and C++ we need to have the C++ compiler decide
2936 # the declaration of exit, since it's the most demanding environment.
2937 cat >conftest.$ac_ext <<_ACEOF
2938 #ifndef __cplusplus
2939   choke me
2940 #endif
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944   (eval $ac_compile) 2>conftest.er1
2945   ac_status=$?
2946   grep -v '^ *+' conftest.er1 >conftest.err
2947   rm -f conftest.er1
2948   cat conftest.err >&5
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); } &&
2951          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953   (eval $ac_try) 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }; } &&
2957          { ac_try='test -s conftest.$ac_objext'
2958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959   (eval $ac_try) 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; }; then
2963   for ac_declaration in \
2964    '' \
2965    'extern "C" void std::exit (int) throw (); using std::exit;' \
2966    'extern "C" void std::exit (int); using std::exit;' \
2967    'extern "C" void exit (int) throw ();' \
2968    'extern "C" void exit (int);' \
2969    'void exit (int);'
2970 do
2971   cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h.  */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h.  */
2977 $ac_declaration
2978 #include <stdlib.h>
2979 int
2980 main ()
2981 {
2982 exit (42);
2983   ;
2984   return 0;
2985 }
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989   (eval $ac_compile) 2>conftest.er1
2990   ac_status=$?
2991   grep -v '^ *+' conftest.er1 >conftest.err
2992   rm -f conftest.er1
2993   cat conftest.err >&5
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); } &&
2996          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998   (eval $ac_try) 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }; } &&
3002          { ac_try='test -s conftest.$ac_objext'
3003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004   (eval $ac_try) 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); }; }; then
3008   :
3009 else
3010   echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013 continue
3014 fi
3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016   cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h.  */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h.  */
3022 $ac_declaration
3023 int
3024 main ()
3025 {
3026 exit (42);
3027   ;
3028   return 0;
3029 }
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033   (eval $ac_compile) 2>conftest.er1
3034   ac_status=$?
3035   grep -v '^ *+' conftest.er1 >conftest.err
3036   rm -f conftest.er1
3037   cat conftest.err >&5
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); } &&
3040          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042   (eval $ac_try) 2>&5
3043   ac_status=$?
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); }; } &&
3046          { ac_try='test -s conftest.$ac_objext'
3047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048   (eval $ac_try) 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); }; }; then
3052   break
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 fi
3058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3059 done
3060 rm -f conftest*
3061 if test -n "$ac_declaration"; then
3062   echo '#ifdef __cplusplus' >>confdefs.h
3063   echo $ac_declaration      >>confdefs.h
3064   echo '#endif'             >>confdefs.h
3065 fi
3066
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 fi
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
3079
3080 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3081
3082
3083 # Check whether --with-optimization or --without-optimization was given.
3084 if test "${with_optimization+set}" = set; then
3085   withval="$with_optimization"
3086   unet_cv_optimization=$withval
3087 else
3088   unet_cv_optimization='-O3'
3089 fi;
3090 echo "$as_me:$LINENO: checking optimization level" >&5
3091 echo $ECHO_N "checking optimization level... $ECHO_C" >&6
3092 if test "${unet_cv_optimization+set}" = set; then
3093   echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095   unet_cv_optimization='-O3'
3096 fi
3097 echo "$as_me:$LINENO: result: $unet_cv_optimization" >&5
3098 echo "${ECHO_T}$unet_cv_optimization" >&6
3099 if test "x$unet_cv_optimization" = "xno" ; then
3100     unet_cv_optimization=""
3101 fi
3102 if test x"$CFLAGS" != x; then
3103     CFLAGS=`echo "$CFLAGS" | sed -e s/-O2/$unet_cv_optimization/`
3104 fi
3105 if test x"$CFLAGS" != x; then
3106     unet_old_cflags=$CFLAGS
3107     CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
3108 fi
3109 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3110     # If -g was already there, force symbols to be enabled
3111     unet_cv_enable_symbols=yes
3112 fi
3113 if test x"$CFLAGS" != x; then
3114     unet_old_cflags=$CFLAGS
3115     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
3116 fi
3117 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3118     # If -pg was already there, force profiling to be enabled
3119     unet_cv_enable_profile=yes
3120 fi
3121 if test x"$CFLAGS" != x; then
3122     unet_old_cflags=$CFLAGS
3123     CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
3124 fi
3125 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3126     # If -Wall was already there, force warnings to be enabled
3127     unet_cv_enable_warnings=yes
3128 fi
3129 if test x"$CFLAGS" != x; then
3130     unet_old_cflags=$CFLAGS
3131     CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
3132 fi
3133 if test x"$CFLAGS" != x"$unet_old_cflags"; then
3134     # If -pedantic was already there, force pedatic to be enabled
3135     unet_cv_enable_pedantic=yes
3136 fi
3137
3138
3139
3140 echo "$as_me:$LINENO: checking for library containing crypt" >&5
3141 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
3142 if test "${ac_cv_search_crypt+set}" = set; then
3143   echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145   ac_func_search_save_LIBS=$LIBS
3146 ac_cv_search_crypt=no
3147 cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h.  */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h.  */
3153
3154 /* Override any gcc2 internal prototype to avoid an error.  */
3155 #ifdef __cplusplus
3156 extern "C"
3157 #endif
3158 /* We use char because int might match the return type of a gcc2
3159    builtin and then its argument prototype would still apply.  */
3160 char crypt ();
3161 int
3162 main ()
3163 {
3164 crypt ();
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 rm -f conftest.$ac_objext conftest$ac_exeext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171   (eval $ac_link) 2>conftest.er1
3172   ac_status=$?
3173   grep -v '^ *+' conftest.er1 >conftest.err
3174   rm -f conftest.er1
3175   cat conftest.err >&5
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } &&
3178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180   (eval $ac_try) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; } &&
3184          { ac_try='test -s conftest$ac_exeext'
3185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186   (eval $ac_try) 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); }; }; then
3190   ac_cv_search_crypt="none required"
3191 else
3192   echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3194
3195 fi
3196 rm -f conftest.err conftest.$ac_objext \
3197       conftest$ac_exeext conftest.$ac_ext
3198 if test "$ac_cv_search_crypt" = no; then
3199   for ac_lib in descrypt crypt; do
3200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3201     cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h.  */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h.  */
3207
3208 /* Override any gcc2 internal prototype to avoid an error.  */
3209 #ifdef __cplusplus
3210 extern "C"
3211 #endif
3212 /* We use char because int might match the return type of a gcc2
3213    builtin and then its argument prototype would still apply.  */
3214 char crypt ();
3215 int
3216 main ()
3217 {
3218 crypt ();
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext conftest$ac_exeext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3225   (eval $ac_link) 2>conftest.er1
3226   ac_status=$?
3227   grep -v '^ *+' conftest.er1 >conftest.err
3228   rm -f conftest.er1
3229   cat conftest.err >&5
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } &&
3232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234   (eval $ac_try) 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; } &&
3238          { ac_try='test -s conftest$ac_exeext'
3239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240   (eval $ac_try) 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); }; }; then
3244   ac_cv_search_crypt="-l$ac_lib"
3245 break
3246 else
3247   echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250 fi
3251 rm -f conftest.err conftest.$ac_objext \
3252       conftest$ac_exeext conftest.$ac_ext
3253   done
3254 fi
3255 LIBS=$ac_func_search_save_LIBS
3256 fi
3257 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3258 echo "${ECHO_T}$ac_cv_search_crypt" >&6
3259 if test "$ac_cv_search_crypt" != no; then
3260   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3261
3262 else
3263   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3264 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3265    { (exit 1); exit 1; }; }
3266 fi
3267
3268
3269
3270    # Most operating systems have gethostbyname() in the default searched
3271    # libraries (i.e. libc):
3272    echo "$as_me:$LINENO: checking for gethostbyname" >&5
3273 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3274 if test "${ac_cv_func_gethostbyname+set}" = set; then
3275   echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277   cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3285 #define gethostbyname innocuous_gethostbyname
3286
3287 /* System header to define __stub macros and hopefully few prototypes,
3288     which can conflict with char gethostbyname (); below.
3289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3290     <limits.h> exists even on freestanding compilers.  */
3291
3292 #ifdef __STDC__
3293 # include <limits.h>
3294 #else
3295 # include <assert.h>
3296 #endif
3297
3298 #undef gethostbyname
3299
3300 /* Override any gcc2 internal prototype to avoid an error.  */
3301 #ifdef __cplusplus
3302 extern "C"
3303 {
3304 #endif
3305 /* We use char because int might match the return type of a gcc2
3306    builtin and then its argument prototype would still apply.  */
3307 char gethostbyname ();
3308 /* The GNU C library defines this for functions which it implements
3309     to always fail with ENOSYS.  Some functions are actually named
3310     something starting with __ and the normal name is an alias.  */
3311 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3312 choke me
3313 #else
3314 char (*f) () = gethostbyname;
3315 #endif
3316 #ifdef __cplusplus
3317 }
3318 #endif
3319
3320 int
3321 main ()
3322 {
3323 return f != gethostbyname;
3324   ;
3325   return 0;
3326 }
3327 _ACEOF
3328 rm -f conftest.$ac_objext conftest$ac_exeext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3330   (eval $ac_link) 2>conftest.er1
3331   ac_status=$?
3332   grep -v '^ *+' conftest.er1 >conftest.err
3333   rm -f conftest.er1
3334   cat conftest.err >&5
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); } &&
3337          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339   (eval $ac_try) 2>&5
3340   ac_status=$?
3341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); }; } &&
3343          { ac_try='test -s conftest$ac_exeext'
3344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345   (eval $ac_try) 2>&5
3346   ac_status=$?
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }; }; then
3349   ac_cv_func_gethostbyname=yes
3350 else
3351   echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354 ac_cv_func_gethostbyname=no
3355 fi
3356 rm -f conftest.err conftest.$ac_objext \
3357       conftest$ac_exeext conftest.$ac_ext
3358 fi
3359 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3360 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3361 if test $ac_cv_func_gethostbyname = yes; then
3362   :
3363 else
3364   # Some OSes (eg. Solaris) place it in libnsl:
3365
3366 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3367 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3368 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3369   echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371   ac_check_lib_save_LIBS=$LIBS
3372 LIBS="-lnsl  $LIBS"
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h.  */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h.  */
3379
3380 /* Override any gcc2 internal prototype to avoid an error.  */
3381 #ifdef __cplusplus
3382 extern "C"
3383 #endif
3384 /* We use char because int might match the return type of a gcc2
3385    builtin and then its argument prototype would still apply.  */
3386 char gethostbyname ();
3387 int
3388 main ()
3389 {
3390 gethostbyname ();
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.$ac_objext conftest$ac_exeext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3397   (eval $ac_link) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } &&
3404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406   (eval $ac_try) 2>&5
3407   ac_status=$?
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); }; } &&
3410          { ac_try='test -s conftest$ac_exeext'
3411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412   (eval $ac_try) 2>&5
3413   ac_status=$?
3414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); }; }; then
3416   ac_cv_lib_nsl_gethostbyname=yes
3417 else
3418   echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421 ac_cv_lib_nsl_gethostbyname=no
3422 fi
3423 rm -f conftest.err conftest.$ac_objext \
3424       conftest$ac_exeext conftest.$ac_ext
3425 LIBS=$ac_check_lib_save_LIBS
3426 fi
3427 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3428 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3429 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3430   cat >>confdefs.h <<_ACEOF
3431 #define HAVE_LIBNSL 1
3432 _ACEOF
3433
3434   LIBS="-lnsl $LIBS"
3435
3436 else
3437   # Some strange OSes (SINIX) have it in libsocket:
3438
3439 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3440 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3441 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3442   echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444   ac_check_lib_save_LIBS=$LIBS
3445 LIBS="-lsocket  $LIBS"
3446 cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452
3453 /* Override any gcc2 internal prototype to avoid an error.  */
3454 #ifdef __cplusplus
3455 extern "C"
3456 #endif
3457 /* We use char because int might match the return type of a gcc2
3458    builtin and then its argument prototype would still apply.  */
3459 char gethostbyname ();
3460 int
3461 main ()
3462 {
3463 gethostbyname ();
3464   ;
3465   return 0;
3466 }
3467 _ACEOF
3468 rm -f conftest.$ac_objext conftest$ac_exeext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3470   (eval $ac_link) 2>conftest.er1
3471   ac_status=$?
3472   grep -v '^ *+' conftest.er1 >conftest.err
3473   rm -f conftest.er1
3474   cat conftest.err >&5
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); } &&
3477          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479   (eval $ac_try) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }; } &&
3483          { ac_try='test -s conftest$ac_exeext'
3484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485   (eval $ac_try) 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }; }; then
3489   ac_cv_lib_socket_gethostbyname=yes
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 ac_cv_lib_socket_gethostbyname=no
3495 fi
3496 rm -f conftest.err conftest.$ac_objext \
3497       conftest$ac_exeext conftest.$ac_ext
3498 LIBS=$ac_check_lib_save_LIBS
3499 fi
3500 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3501 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3502 if test $ac_cv_lib_socket_gethostbyname = yes; then
3503   cat >>confdefs.h <<_ACEOF
3504 #define HAVE_LIBSOCKET 1
3505 _ACEOF
3506
3507   LIBS="-lsocket $LIBS"
3508
3509 else
3510   # Unfortunately libsocket sometimes depends on libnsl.
3511           # AC_CHECK_LIB's API is essentially broken so the following
3512           # ugliness is necessary:
3513           echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3514 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3515 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   ac_check_lib_save_LIBS=$LIBS
3519 LIBS="-lsocket -lnsl $LIBS"
3520 cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526
3527 /* Override any gcc2 internal prototype to avoid an error.  */
3528 #ifdef __cplusplus
3529 extern "C"
3530 #endif
3531 /* We use char because int might match the return type of a gcc2
3532    builtin and then its argument prototype would still apply.  */
3533 char gethostbyname ();
3534 int
3535 main ()
3536 {
3537 gethostbyname ();
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext conftest$ac_exeext
3543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3544   (eval $ac_link) 2>conftest.er1
3545   ac_status=$?
3546   grep -v '^ *+' conftest.er1 >conftest.err
3547   rm -f conftest.er1
3548   cat conftest.err >&5
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); } &&
3551          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553   (eval $ac_try) 2>&5
3554   ac_status=$?
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); }; } &&
3557          { ac_try='test -s conftest$ac_exeext'
3558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559   (eval $ac_try) 2>&5
3560   ac_status=$?
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); }; }; then
3563   ac_cv_lib_socket_gethostbyname=yes
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 ac_cv_lib_socket_gethostbyname=no
3569 fi
3570 rm -f conftest.err conftest.$ac_objext \
3571       conftest$ac_exeext conftest.$ac_ext
3572 LIBS=$ac_check_lib_save_LIBS
3573 fi
3574 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3575 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3576 if test $ac_cv_lib_socket_gethostbyname = yes; then
3577   LIBS="-lsocket -lnsl $LIBS"
3578 else
3579
3580 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3581 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3582 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   ac_check_lib_save_LIBS=$LIBS
3586 LIBS="-lresolv  $LIBS"
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593
3594 /* Override any gcc2 internal prototype to avoid an error.  */
3595 #ifdef __cplusplus
3596 extern "C"
3597 #endif
3598 /* We use char because int might match the return type of a gcc2
3599    builtin and then its argument prototype would still apply.  */
3600 char gethostbyname ();
3601 int
3602 main ()
3603 {
3604 gethostbyname ();
3605   ;
3606   return 0;
3607 }
3608 _ACEOF
3609 rm -f conftest.$ac_objext conftest$ac_exeext
3610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3611   (eval $ac_link) 2>conftest.er1
3612   ac_status=$?
3613   grep -v '^ *+' conftest.er1 >conftest.err
3614   rm -f conftest.er1
3615   cat conftest.err >&5
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); } &&
3618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
3624          { ac_try='test -s conftest$ac_exeext'
3625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626   (eval $ac_try) 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }; }; then
3630   ac_cv_lib_resolv_gethostbyname=yes
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 ac_cv_lib_resolv_gethostbyname=no
3636 fi
3637 rm -f conftest.err conftest.$ac_objext \
3638       conftest$ac_exeext conftest.$ac_ext
3639 LIBS=$ac_check_lib_save_LIBS
3640 fi
3641 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3642 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3643 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3644   cat >>confdefs.h <<_ACEOF
3645 #define HAVE_LIBRESOLV 1
3646 _ACEOF
3647
3648   LIBS="-lresolv $LIBS"
3649
3650 fi
3651
3652 fi
3653
3654
3655 fi
3656
3657
3658 fi
3659
3660
3661 fi
3662
3663   echo "$as_me:$LINENO: checking for socket" >&5
3664 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3665 if test "${ac_cv_func_socket+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3676 #define socket innocuous_socket
3677
3678 /* System header to define __stub macros and hopefully few prototypes,
3679     which can conflict with char socket (); below.
3680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3681     <limits.h> exists even on freestanding compilers.  */
3682
3683 #ifdef __STDC__
3684 # include <limits.h>
3685 #else
3686 # include <assert.h>
3687 #endif
3688
3689 #undef socket
3690
3691 /* Override any gcc2 internal prototype to avoid an error.  */
3692 #ifdef __cplusplus
3693 extern "C"
3694 {
3695 #endif
3696 /* We use char because int might match the return type of a gcc2
3697    builtin and then its argument prototype would still apply.  */
3698 char socket ();
3699 /* The GNU C library defines this for functions which it implements
3700     to always fail with ENOSYS.  Some functions are actually named
3701     something starting with __ and the normal name is an alias.  */
3702 #if defined (__stub_socket) || defined (__stub___socket)
3703 choke me
3704 #else
3705 char (*f) () = socket;
3706 #endif
3707 #ifdef __cplusplus
3708 }
3709 #endif
3710
3711 int
3712 main ()
3713 {
3714 return f != socket;
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 rm -f conftest.$ac_objext conftest$ac_exeext
3720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3721   (eval $ac_link) 2>conftest.er1
3722   ac_status=$?
3723   grep -v '^ *+' conftest.er1 >conftest.err
3724   rm -f conftest.er1
3725   cat conftest.err >&5
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } &&
3728          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; } &&
3734          { ac_try='test -s conftest$ac_exeext'
3735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736   (eval $ac_try) 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); }; }; then
3740   ac_cv_func_socket=yes
3741 else
3742   echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 ac_cv_func_socket=no
3746 fi
3747 rm -f conftest.err conftest.$ac_objext \
3748       conftest$ac_exeext conftest.$ac_ext
3749 fi
3750 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3751 echo "${ECHO_T}$ac_cv_func_socket" >&6
3752 if test $ac_cv_func_socket = yes; then
3753   :
3754 else
3755
3756 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3757 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3758 if test "${ac_cv_lib_socket_socket+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   ac_check_lib_save_LIBS=$LIBS
3762 LIBS="-lsocket  $LIBS"
3763 cat >conftest.$ac_ext <<_ACEOF
3764 /* confdefs.h.  */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h.  */
3769
3770 /* Override any gcc2 internal prototype to avoid an error.  */
3771 #ifdef __cplusplus
3772 extern "C"
3773 #endif
3774 /* We use char because int might match the return type of a gcc2
3775    builtin and then its argument prototype would still apply.  */
3776 char socket ();
3777 int
3778 main ()
3779 {
3780 socket ();
3781   ;
3782   return 0;
3783 }
3784 _ACEOF
3785 rm -f conftest.$ac_objext conftest$ac_exeext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3787   (eval $ac_link) 2>conftest.er1
3788   ac_status=$?
3789   grep -v '^ *+' conftest.er1 >conftest.err
3790   rm -f conftest.er1
3791   cat conftest.err >&5
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); } &&
3794          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796   (eval $ac_try) 2>&5
3797   ac_status=$?
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); }; } &&
3800          { ac_try='test -s conftest$ac_exeext'
3801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802   (eval $ac_try) 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }; }; then
3806   ac_cv_lib_socket_socket=yes
3807 else
3808   echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 ac_cv_lib_socket_socket=no
3812 fi
3813 rm -f conftest.err conftest.$ac_objext \
3814       conftest$ac_exeext conftest.$ac_ext
3815 LIBS=$ac_check_lib_save_LIBS
3816 fi
3817 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3818 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3819 if test $ac_cv_lib_socket_socket = yes; then
3820   cat >>confdefs.h <<_ACEOF
3821 #define HAVE_LIBSOCKET 1
3822 _ACEOF
3823
3824   LIBS="-lsocket $LIBS"
3825
3826 else
3827   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3828 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3829 if test "${ac_cv_lib_socket_socket+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   ac_check_lib_save_LIBS=$LIBS
3833 LIBS="-lsocket -lnsl $LIBS"
3834 cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h.  */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h.  */
3840
3841 /* Override any gcc2 internal prototype to avoid an error.  */
3842 #ifdef __cplusplus
3843 extern "C"
3844 #endif
3845 /* We use char because int might match the return type of a gcc2
3846    builtin and then its argument prototype would still apply.  */
3847 char socket ();
3848 int
3849 main ()
3850 {
3851 socket ();
3852   ;
3853   return 0;
3854 }
3855 _ACEOF
3856 rm -f conftest.$ac_objext conftest$ac_exeext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3858   (eval $ac_link) 2>conftest.er1
3859   ac_status=$?
3860   grep -v '^ *+' conftest.er1 >conftest.err
3861   rm -f conftest.er1
3862   cat conftest.err >&5
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); } &&
3865          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867   (eval $ac_try) 2>&5
3868   ac_status=$?
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); }; } &&
3871          { ac_try='test -s conftest$ac_exeext'
3872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873   (eval $ac_try) 2>&5
3874   ac_status=$?
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); }; }; then
3877   ac_cv_lib_socket_socket=yes
3878 else
3879   echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3881
3882 ac_cv_lib_socket_socket=no
3883 fi
3884 rm -f conftest.err conftest.$ac_objext \
3885       conftest$ac_exeext conftest.$ac_ext
3886 LIBS=$ac_check_lib_save_LIBS
3887 fi
3888 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3889 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3890 if test $ac_cv_lib_socket_socket = yes; then
3891   LIBS="-lsocket -lnsl $LIBS"
3892 fi
3893
3894 fi
3895
3896 fi
3897
3898
3899
3900 ac_ext=c
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3906 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3907 # On Suns, sometimes $CPP names a directory.
3908 if test -n "$CPP" && test -d "$CPP"; then
3909   CPP=
3910 fi
3911 if test -z "$CPP"; then
3912   if test "${ac_cv_prog_CPP+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915       # Double quotes because CPP needs to be expanded
3916     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3917     do
3918       ac_preproc_ok=false
3919 for ac_c_preproc_warn_flag in '' yes
3920 do
3921   # Use a header file that comes with gcc, so configuring glibc
3922   # with a fresh cross-compiler works.
3923   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3924   # <limits.h> exists even on freestanding compilers.
3925   # On the NeXT, cc -E runs the code through the compiler's parser,
3926   # not just through cpp. "Syntax error" is here to catch this case.
3927   cat >conftest.$ac_ext <<_ACEOF
3928 /* confdefs.h.  */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h.  */
3933 #ifdef __STDC__
3934 # include <limits.h>
3935 #else
3936 # include <assert.h>
3937 #endif
3938                      Syntax error
3939 _ACEOF
3940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3942   ac_status=$?
3943   grep -v '^ *+' conftest.er1 >conftest.err
3944   rm -f conftest.er1
3945   cat conftest.err >&5
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); } >/dev/null; then
3948   if test -s conftest.err; then
3949     ac_cpp_err=$ac_c_preproc_warn_flag
3950     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3951   else
3952     ac_cpp_err=
3953   fi
3954 else
3955   ac_cpp_err=yes
3956 fi
3957 if test -z "$ac_cpp_err"; then
3958   :
3959 else
3960   echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3962
3963   # Broken: fails on valid input.
3964 continue
3965 fi
3966 rm -f conftest.err conftest.$ac_ext
3967
3968   # OK, works on sane cases.  Now check whether non-existent headers
3969   # can be detected and how.
3970   cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h.  */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h.  */
3976 #include <ac_nonexistent.h>
3977 _ACEOF
3978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3980   ac_status=$?
3981   grep -v '^ *+' conftest.er1 >conftest.err
3982   rm -f conftest.er1
3983   cat conftest.err >&5
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); } >/dev/null; then
3986   if test -s conftest.err; then
3987     ac_cpp_err=$ac_c_preproc_warn_flag
3988     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3989   else
3990     ac_cpp_err=
3991   fi
3992 else
3993   ac_cpp_err=yes
3994 fi
3995 if test -z "$ac_cpp_err"; then
3996   # Broken: success on invalid input.
3997 continue
3998 else
3999   echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002   # Passes both tests.
4003 ac_preproc_ok=:
4004 break
4005 fi
4006 rm -f conftest.err conftest.$ac_ext
4007
4008 done
4009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4010 rm -f conftest.err conftest.$ac_ext
4011 if $ac_preproc_ok; then
4012   break
4013 fi
4014
4015     done
4016     ac_cv_prog_CPP=$CPP
4017
4018 fi
4019   CPP=$ac_cv_prog_CPP
4020 else
4021   ac_cv_prog_CPP=$CPP
4022 fi
4023 echo "$as_me:$LINENO: result: $CPP" >&5
4024 echo "${ECHO_T}$CPP" >&6
4025 ac_preproc_ok=false
4026 for ac_c_preproc_warn_flag in '' yes
4027 do
4028   # Use a header file that comes with gcc, so configuring glibc
4029   # with a fresh cross-compiler works.
4030   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031   # <limits.h> exists even on freestanding compilers.
4032   # On the NeXT, cc -E runs the code through the compiler's parser,
4033   # not just through cpp. "Syntax error" is here to catch this case.
4034   cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040 #ifdef __STDC__
4041 # include <limits.h>
4042 #else
4043 # include <assert.h>
4044 #endif
4045                      Syntax error
4046 _ACEOF
4047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4049   ac_status=$?
4050   grep -v '^ *+' conftest.er1 >conftest.err
4051   rm -f conftest.er1
4052   cat conftest.err >&5
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); } >/dev/null; then
4055   if test -s conftest.err; then
4056     ac_cpp_err=$ac_c_preproc_warn_flag
4057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4058   else
4059     ac_cpp_err=
4060   fi
4061 else
4062   ac_cpp_err=yes
4063 fi
4064 if test -z "$ac_cpp_err"; then
4065   :
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070   # Broken: fails on valid input.
4071 continue
4072 fi
4073 rm -f conftest.err conftest.$ac_ext
4074
4075   # OK, works on sane cases.  Now check whether non-existent headers
4076   # can be detected and how.
4077   cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h.  */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h.  */
4083 #include <ac_nonexistent.h>
4084 _ACEOF
4085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } >/dev/null; then
4093   if test -s conftest.err; then
4094     ac_cpp_err=$ac_c_preproc_warn_flag
4095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096   else
4097     ac_cpp_err=
4098   fi
4099 else
4100   ac_cpp_err=yes
4101 fi
4102 if test -z "$ac_cpp_err"; then
4103   # Broken: success on invalid input.
4104 continue
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109   # Passes both tests.
4110 ac_preproc_ok=:
4111 break
4112 fi
4113 rm -f conftest.err conftest.$ac_ext
4114
4115 done
4116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117 rm -f conftest.err conftest.$ac_ext
4118 if $ac_preproc_ok; then
4119   :
4120 else
4121   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4122 See \`config.log' for more details." >&5
4123 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4124 See \`config.log' for more details." >&2;}
4125    { (exit 1); exit 1; }; }
4126 fi
4127
4128 ac_ext=c
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133
4134
4135 echo "$as_me:$LINENO: checking for egrep" >&5
4136 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4137 if test "${ac_cv_prog_egrep+set}" = set; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4141     then ac_cv_prog_egrep='grep -E'
4142     else ac_cv_prog_egrep='egrep'
4143     fi
4144 fi
4145 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4146 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4147  EGREP=$ac_cv_prog_egrep
4148
4149
4150 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4151 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4152 if test "${ac_cv_header_stdc+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h.  */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h.  */
4161 #include <stdlib.h>
4162 #include <stdarg.h>
4163 #include <string.h>
4164 #include <float.h>
4165
4166 int
4167 main ()
4168 {
4169
4170   ;
4171   return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176   (eval $ac_compile) 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } &&
4183          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185   (eval $ac_try) 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }; } &&
4189          { ac_try='test -s conftest.$ac_objext'
4190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191   (eval $ac_try) 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; }; then
4195   ac_cv_header_stdc=yes
4196 else
4197   echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200 ac_cv_header_stdc=no
4201 fi
4202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4203
4204 if test $ac_cv_header_stdc = yes; then
4205   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4206   cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212 #include <string.h>
4213
4214 _ACEOF
4215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216   $EGREP "memchr" >/dev/null 2>&1; then
4217   :
4218 else
4219   ac_cv_header_stdc=no
4220 fi
4221 rm -f conftest*
4222
4223 fi
4224
4225 if test $ac_cv_header_stdc = yes; then
4226   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4227   cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h.  */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h.  */
4233 #include <stdlib.h>
4234
4235 _ACEOF
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237   $EGREP "free" >/dev/null 2>&1; then
4238   :
4239 else
4240   ac_cv_header_stdc=no
4241 fi
4242 rm -f conftest*
4243
4244 fi
4245
4246 if test $ac_cv_header_stdc = yes; then
4247   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4248   if test "$cross_compiling" = yes; then
4249   :
4250 else
4251   cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257 #include <ctype.h>
4258 #if ((' ' & 0x0FF) == 0x020)
4259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4261 #else
4262 # define ISLOWER(c) \
4263                    (('a' <= (c) && (c) <= 'i') \
4264                      || ('j' <= (c) && (c) <= 'r') \
4265                      || ('s' <= (c) && (c) <= 'z'))
4266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4267 #endif
4268
4269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4270 int
4271 main ()
4272 {
4273   int i;
4274   for (i = 0; i < 256; i++)
4275     if (XOR (islower (i), ISLOWER (i))
4276         || toupper (i) != TOUPPER (i))
4277       exit(2);
4278   exit (0);
4279 }
4280 _ACEOF
4281 rm -f conftest$ac_exeext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283   (eval $ac_link) 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288   (eval $ac_try) 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); }; }; then
4292   :
4293 else
4294   echo "$as_me: program exited with status $ac_status" >&5
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 ( exit $ac_status )
4299 ac_cv_header_stdc=no
4300 fi
4301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4302 fi
4303 fi
4304 fi
4305 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4306 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4307 if test $ac_cv_header_stdc = yes; then
4308
4309 cat >>confdefs.h <<\_ACEOF
4310 #define STDC_HEADERS 1
4311 _ACEOF
4312
4313 fi
4314
4315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4326                   inttypes.h stdint.h unistd.h
4327 do
4328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 echo "$as_me:$LINENO: checking for $ac_header" >&5
4330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h.  */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h.  */
4340 $ac_includes_default
4341
4342 #include <$ac_header>
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346   (eval $ac_compile) 2>conftest.er1
4347   ac_status=$?
4348   grep -v '^ *+' conftest.er1 >conftest.err
4349   rm -f conftest.er1
4350   cat conftest.err >&5
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } &&
4353          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355   (eval $ac_try) 2>&5
4356   ac_status=$?
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); }; } &&
4359          { ac_try='test -s conftest.$ac_objext'
4360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361   (eval $ac_try) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; }; then
4365   eval "$as_ac_Header=yes"
4366 else
4367   echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 eval "$as_ac_Header=no"
4371 fi
4372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373 fi
4374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4377   cat >>confdefs.h <<_ACEOF
4378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4379 _ACEOF
4380
4381 fi
4382
4383 done
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
4397 do
4398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4400   echo "$as_me:$LINENO: checking for $ac_header" >&5
4401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4403   echo $ECHO_N "(cached) $ECHO_C" >&6
4404 fi
4405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4407 else
4408   # Is the header compilable?
4409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4411 cat >conftest.$ac_ext <<_ACEOF
4412 /* confdefs.h.  */
4413 _ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h.  */
4417 $ac_includes_default
4418 #include <$ac_header>
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"                   || test ! -s conftest.err'
4430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431   (eval $ac_try) 2>&5
4432   ac_status=$?
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); }; } &&
4435          { ac_try='test -s conftest.$ac_objext'
4436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437   (eval $ac_try) 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); }; }; then
4441   ac_header_compiler=yes
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446 ac_header_compiler=no
4447 fi
4448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4450 echo "${ECHO_T}$ac_header_compiler" >&6
4451
4452 # Is the header present?
4453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h.  */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h.  */
4461 #include <$ac_header>
4462 _ACEOF
4463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4465   ac_status=$?
4466   grep -v '^ *+' conftest.er1 >conftest.err
4467   rm -f conftest.er1
4468   cat conftest.err >&5
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); } >/dev/null; then
4471   if test -s conftest.err; then
4472     ac_cpp_err=$ac_c_preproc_warn_flag
4473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4474   else
4475     ac_cpp_err=
4476   fi
4477 else
4478   ac_cpp_err=yes
4479 fi
4480 if test -z "$ac_cpp_err"; then
4481   ac_header_preproc=yes
4482 else
4483   echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4485
4486   ac_header_preproc=no
4487 fi
4488 rm -f conftest.err conftest.$ac_ext
4489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4490 echo "${ECHO_T}$ac_header_preproc" >&6
4491
4492 # So?  What about this header?
4493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4494   yes:no: )
4495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4499     ac_header_preproc=yes
4500     ;;
4501   no:yes:* )
4502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4514     (
4515       cat <<\_ASBOX
4516 ## ------------------------------------------ ##
4517 ## Report this to the AC_PACKAGE_NAME lists.  ##
4518 ## ------------------------------------------ ##
4519 _ASBOX
4520     ) |
4521       sed "s/^/$as_me: WARNING:     /" >&2
4522     ;;
4523 esac
4524 echo "$as_me:$LINENO: checking for $ac_header" >&5
4525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   eval "$as_ac_Header=\$ac_header_preproc"
4530 fi
4531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4533
4534 fi
4535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4536   cat >>confdefs.h <<_ACEOF
4537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4538 _ACEOF
4539
4540 fi
4541
4542 done
4543
4544
4545 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4546 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4547 if test "${ac_cv_c_bigendian+set}" = set; then
4548   echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550   # See if sys/param.h defines the BYTE_ORDER macro.
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h.  */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h.  */
4557 #include <sys/types.h>
4558 #include <sys/param.h>
4559
4560 int
4561 main ()
4562 {
4563 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4564  bogus endian macros
4565 #endif
4566
4567   ;
4568   return 0;
4569 }
4570 _ACEOF
4571 rm -f conftest.$ac_objext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573   (eval $ac_compile) 2>conftest.er1
4574   ac_status=$?
4575   grep -v '^ *+' conftest.er1 >conftest.err
4576   rm -f conftest.er1
4577   cat conftest.err >&5
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); } &&
4580          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582   (eval $ac_try) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); }; } &&
4586          { ac_try='test -s conftest.$ac_objext'
4587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588   (eval $ac_try) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; }; then
4592   # It does; now see whether it defined to BIG_ENDIAN or not.
4593 cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h.  */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h.  */
4599 #include <sys/types.h>
4600 #include <sys/param.h>
4601
4602 int
4603 main ()
4604 {
4605 #if BYTE_ORDER != BIG_ENDIAN
4606  not big endian
4607 #endif
4608
4609   ;
4610   return 0;
4611 }
4612 _ACEOF
4613 rm -f conftest.$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615   (eval $ac_compile) 2>conftest.er1
4616   ac_status=$?
4617   grep -v '^ *+' conftest.er1 >conftest.err
4618   rm -f conftest.er1
4619   cat conftest.err >&5
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); } &&
4622          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624   (eval $ac_try) 2>&5
4625   ac_status=$?
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); }; } &&
4628          { ac_try='test -s conftest.$ac_objext'
4629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630   (eval $ac_try) 2>&5
4631   ac_status=$?
4632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); }; }; then
4634   ac_cv_c_bigendian=yes
4635 else
4636   echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639 ac_cv_c_bigendian=no
4640 fi
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 else
4643   echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646 # It does not; compile a test program.
4647 if test "$cross_compiling" = yes; then
4648   # try to guess the endianness by grepping values into an object file
4649   ac_cv_c_bigendian=unknown
4650   cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4657 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4658 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4659 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4660 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4661 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4662 int
4663 main ()
4664 {
4665  _ascii (); _ebcdic ();
4666   ;
4667   return 0;
4668 }
4669 _ACEOF
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672   (eval $ac_compile) 2>conftest.er1
4673   ac_status=$?
4674   grep -v '^ *+' conftest.er1 >conftest.err
4675   rm -f conftest.er1
4676   cat conftest.err >&5
4677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); } &&
4679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681   (eval $ac_try) 2>&5
4682   ac_status=$?
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); }; } &&
4685          { ac_try='test -s conftest.$ac_objext'
4686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687   (eval $ac_try) 2>&5
4688   ac_status=$?
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); }; }; then
4691   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4692   ac_cv_c_bigendian=yes
4693 fi
4694 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4695   if test "$ac_cv_c_bigendian" = unknown; then
4696     ac_cv_c_bigendian=no
4697   else
4698     # finding both strings is unlikely to happen, but who knows?
4699     ac_cv_c_bigendian=unknown
4700   fi
4701 fi
4702 else
4703   echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 fi
4707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708 else
4709   cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715 int
4716 main ()
4717 {
4718   /* Are we little or big endian?  From Harbison&Steele.  */
4719   union
4720   {
4721     long l;
4722     char c[sizeof (long)];
4723   } u;
4724   u.l = 1;
4725   exit (u.c[sizeof (long) - 1] == 1);
4726 }
4727 _ACEOF
4728 rm -f conftest$ac_exeext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4730   (eval $ac_link) 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735   (eval $ac_try) 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); }; }; then
4739   ac_cv_c_bigendian=no
4740 else
4741   echo "$as_me: program exited with status $ac_status" >&5
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4744
4745 ( exit $ac_status )
4746 ac_cv_c_bigendian=yes
4747 fi
4748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4749 fi
4750 fi
4751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4752 fi
4753 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4754 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4755 case $ac_cv_c_bigendian in
4756   yes)
4757
4758 cat >>confdefs.h <<\_ACEOF
4759 #define WORDS_BIGENDIAN 1
4760 _ACEOF
4761  ;;
4762   no)
4763      ;;
4764   *)
4765     { { echo "$as_me:$LINENO: error: unknown endianness
4766 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4767 echo "$as_me: error: unknown endianness
4768 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4769    { (exit 1); exit 1; }; } ;;
4770 esac
4771
4772 echo "$as_me:$LINENO: checking for size_t" >&5
4773 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4774 if test "${ac_cv_type_size_t+set}" = set; then
4775   echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777   cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h.  */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h.  */
4783 $ac_includes_default
4784 int
4785 main ()
4786 {
4787 if ((size_t *) 0)
4788   return 0;
4789 if (sizeof (size_t))
4790   return 0;
4791   ;
4792   return 0;
4793 }
4794 _ACEOF
4795 rm -f conftest.$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797   (eval $ac_compile) 2>conftest.er1
4798   ac_status=$?
4799   grep -v '^ *+' conftest.er1 >conftest.err
4800   rm -f conftest.er1
4801   cat conftest.err >&5
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); } &&
4804          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; } &&
4810          { ac_try='test -s conftest.$ac_objext'
4811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812   (eval $ac_try) 2>&5
4813   ac_status=$?
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); }; }; then
4816   ac_cv_type_size_t=yes
4817 else
4818   echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821 ac_cv_type_size_t=no
4822 fi
4823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824 fi
4825 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4826 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4827 if test $ac_cv_type_size_t = yes; then
4828   :
4829 else
4830
4831 cat >>confdefs.h <<_ACEOF
4832 #define size_t unsigned
4833 _ACEOF
4834
4835 fi
4836
4837 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4838 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4839 if test "${ac_cv_header_time+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848 #include <sys/types.h>
4849 #include <sys/time.h>
4850 #include <time.h>
4851
4852 int
4853 main ()
4854 {
4855 if ((struct tm *) 0)
4856 return 0;
4857   ;
4858   return 0;
4859 }
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863   (eval $ac_compile) 2>conftest.er1
4864   ac_status=$?
4865   grep -v '^ *+' conftest.er1 >conftest.err
4866   rm -f conftest.er1
4867   cat conftest.err >&5
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } &&
4870          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872   (eval $ac_try) 2>&5
4873   ac_status=$?
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); }; } &&
4876          { ac_try='test -s conftest.$ac_objext'
4877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878   (eval $ac_try) 2>&5
4879   ac_status=$?
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); }; }; then
4882   ac_cv_header_time=yes
4883 else
4884   echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887 ac_cv_header_time=no
4888 fi
4889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4890 fi
4891 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4892 echo "${ECHO_T}$ac_cv_header_time" >&6
4893 if test $ac_cv_header_time = yes; then
4894
4895 cat >>confdefs.h <<\_ACEOF
4896 #define TIME_WITH_SYS_TIME 1
4897 _ACEOF
4898
4899 fi
4900
4901 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4902 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4903 if test "${ac_cv_struct_tm+set}" = set; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906   cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h.  */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h.  */
4912 #include <sys/types.h>
4913 #include <time.h>
4914
4915 int
4916 main ()
4917 {
4918 struct tm *tp; tp->tm_sec;
4919   ;
4920   return 0;
4921 }
4922 _ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925   (eval $ac_compile) 2>conftest.er1
4926   ac_status=$?
4927   grep -v '^ *+' conftest.er1 >conftest.err
4928   rm -f conftest.er1
4929   cat conftest.err >&5
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); } &&
4932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934   (eval $ac_try) 2>&5
4935   ac_status=$?
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); }; } &&
4938          { ac_try='test -s conftest.$ac_objext'
4939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940   (eval $ac_try) 2>&5
4941   ac_status=$?
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); }; }; then
4944   ac_cv_struct_tm=time.h
4945 else
4946   echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 ac_cv_struct_tm=sys/time.h
4950 fi
4951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952 fi
4953 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4954 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4955 if test $ac_cv_struct_tm = sys/time.h; then
4956
4957 cat >>confdefs.h <<\_ACEOF
4958 #define TM_IN_SYS_TIME 1
4959 _ACEOF
4960
4961 fi
4962
4963 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4964 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4965 if test "${ac_cv_type_uid_t+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h.  */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h.  */
4974 #include <sys/types.h>
4975
4976 _ACEOF
4977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4978   $EGREP "uid_t" >/dev/null 2>&1; then
4979   ac_cv_type_uid_t=yes
4980 else
4981   ac_cv_type_uid_t=no
4982 fi
4983 rm -f conftest*
4984
4985 fi
4986 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4987 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4988 if test $ac_cv_type_uid_t = no; then
4989
4990 cat >>confdefs.h <<\_ACEOF
4991 #define uid_t int
4992 _ACEOF
4993
4994
4995 cat >>confdefs.h <<\_ACEOF
4996 #define gid_t int
4997 _ACEOF
4998
4999 fi
5000
5001 echo "$as_me:$LINENO: checking for short" >&5
5002 echo $ECHO_N "checking for short... $ECHO_C" >&6
5003 if test "${ac_cv_type_short+set}" = set; then
5004   echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006   cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h.  */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h.  */
5012 $ac_includes_default
5013 int
5014 main ()
5015 {
5016 if ((short *) 0)
5017   return 0;
5018 if (sizeof (short))
5019   return 0;
5020   ;
5021   return 0;
5022 }
5023 _ACEOF
5024 rm -f conftest.$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026   (eval $ac_compile) 2>conftest.er1
5027   ac_status=$?
5028   grep -v '^ *+' conftest.er1 >conftest.err
5029   rm -f conftest.er1
5030   cat conftest.err >&5
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); } &&
5033          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035   (eval $ac_try) 2>&5
5036   ac_status=$?
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); }; } &&
5039          { ac_try='test -s conftest.$ac_objext'
5040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041   (eval $ac_try) 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }; }; then
5045   ac_cv_type_short=yes
5046 else
5047   echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 ac_cv_type_short=no
5051 fi
5052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5053 fi
5054 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5055 echo "${ECHO_T}$ac_cv_type_short" >&6
5056
5057 echo "$as_me:$LINENO: checking size of short" >&5
5058 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5059 if test "${ac_cv_sizeof_short+set}" = set; then
5060   echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062   if test "$ac_cv_type_short" = yes; then
5063   # The cast to unsigned long works around a bug in the HP C Compiler
5064   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5065   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5066   # This bug is HP SR number 8606223364.
5067   if test "$cross_compiling" = yes; then
5068   # Depending upon the size, compute the lo and hi bounds.
5069 cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h.  */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h.  */
5075 $ac_includes_default
5076 int
5077 main ()
5078 {
5079 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5080 test_array [0] = 0
5081
5082   ;
5083   return 0;
5084 }
5085 _ACEOF
5086 rm -f conftest.$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088   (eval $ac_compile) 2>conftest.er1
5089   ac_status=$?
5090   grep -v '^ *+' conftest.er1 >conftest.err
5091   rm -f conftest.er1
5092   cat conftest.err >&5
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } &&
5095          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097   (eval $ac_try) 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }; } &&
5101          { ac_try='test -s conftest.$ac_objext'
5102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103   (eval $ac_try) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); }; }; then
5107   ac_lo=0 ac_mid=0
5108   while :; do
5109     cat >conftest.$ac_ext <<_ACEOF
5110 /* confdefs.h.  */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h.  */
5115 $ac_includes_default
5116 int
5117 main ()
5118 {
5119 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5120 test_array [0] = 0
5121
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest.$ac_objext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5128   (eval $ac_compile) 2>conftest.er1
5129   ac_status=$?
5130   grep -v '^ *+' conftest.er1 >conftest.err
5131   rm -f conftest.er1
5132   cat conftest.err >&5
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } &&
5135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137   (eval $ac_try) 2>&5
5138   ac_status=$?
5139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140   (exit $ac_status); }; } &&
5141          { ac_try='test -s conftest.$ac_objext'
5142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143   (eval $ac_try) 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); }; }; then
5147   ac_hi=$ac_mid; break
5148 else
5149   echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 ac_lo=`expr $ac_mid + 1`
5153                     if test $ac_lo -le $ac_mid; then
5154                       ac_lo= ac_hi=
5155                       break
5156                     fi
5157                     ac_mid=`expr 2 '*' $ac_mid + 1`
5158 fi
5159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5160   done
5161 else
5162   echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5164
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h.  */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h.  */
5171 $ac_includes_default
5172 int
5173 main ()
5174 {
5175 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5176 test_array [0] = 0
5177
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184   (eval $ac_compile) 2>conftest.er1
5185   ac_status=$?
5186   grep -v '^ *+' conftest.er1 >conftest.err
5187   rm -f conftest.er1
5188   cat conftest.err >&5
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); } &&
5191          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193   (eval $ac_try) 2>&5
5194   ac_status=$?
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); }; } &&
5197          { ac_try='test -s conftest.$ac_objext'
5198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199   (eval $ac_try) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); }; }; then
5203   ac_hi=-1 ac_mid=-1
5204   while :; do
5205     cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h.  */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h.  */
5211 $ac_includes_default
5212 int
5213 main ()
5214 {
5215 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5216 test_array [0] = 0
5217
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest.$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224   (eval $ac_compile) 2>conftest.er1
5225   ac_status=$?
5226   grep -v '^ *+' conftest.er1 >conftest.err
5227   rm -f conftest.er1
5228   cat conftest.err >&5
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); } &&
5231          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233   (eval $ac_try) 2>&5
5234   ac_status=$?
5235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); }; } &&
5237          { ac_try='test -s conftest.$ac_objext'
5238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239   (eval $ac_try) 2>&5
5240   ac_status=$?
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); }; }; then
5243   ac_lo=$ac_mid; break
5244 else
5245   echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5247
5248 ac_hi=`expr '(' $ac_mid ')' - 1`
5249                        if test $ac_mid -le $ac_hi; then
5250                          ac_lo= ac_hi=
5251                          break
5252                        fi
5253                        ac_mid=`expr 2 '*' $ac_mid`
5254 fi
5255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5256   done
5257 else
5258   echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5260
5261 ac_lo= ac_hi=
5262 fi
5263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5264 fi
5265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5266 # Binary search between lo and hi bounds.
5267 while test "x$ac_lo" != "x$ac_hi"; do
5268   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5269   cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275 $ac_includes_default
5276 int
5277 main ()
5278 {
5279 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5280 test_array [0] = 0
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288   (eval $ac_compile) 2>conftest.er1
5289   ac_status=$?
5290   grep -v '^ *+' conftest.er1 >conftest.err
5291   rm -f conftest.er1
5292   cat conftest.err >&5
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } &&
5295          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297   (eval $ac_try) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; } &&
5301          { ac_try='test -s conftest.$ac_objext'
5302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303   (eval $ac_try) 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; }; then
5307   ac_hi=$ac_mid
5308 else
5309   echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312 ac_lo=`expr '(' $ac_mid ')' + 1`
5313 fi
5314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5315 done
5316 case $ac_lo in
5317 ?*) ac_cv_sizeof_short=$ac_lo;;
5318 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5319 See \`config.log' for more details." >&5
5320 echo "$as_me: error: cannot compute sizeof (short), 77
5321 See \`config.log' for more details." >&2;}
5322    { (exit 1); exit 1; }; } ;;
5323 esac
5324 else
5325   if test "$cross_compiling" = yes; then
5326   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5327 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5328    { (exit 1); exit 1; }; }
5329 else
5330   cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h.  */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h.  */
5336 $ac_includes_default
5337 long longval () { return (long) (sizeof (short)); }
5338 unsigned long ulongval () { return (long) (sizeof (short)); }
5339 #include <stdio.h>
5340 #include <stdlib.h>
5341 int
5342 main ()
5343 {
5344
5345   FILE *f = fopen ("conftest.val", "w");
5346   if (! f)
5347     exit (1);
5348   if (((long) (sizeof (short))) < 0)
5349     {
5350       long i = longval ();
5351       if (i != ((long) (sizeof (short))))
5352         exit (1);
5353       fprintf (f, "%ld\n", i);
5354     }
5355   else
5356     {
5357       unsigned long i = ulongval ();
5358       if (i != ((long) (sizeof (short))))
5359         exit (1);
5360       fprintf (f, "%lu\n", i);
5361     }
5362   exit (ferror (f) || fclose (f) != 0);
5363
5364   ;
5365   return 0;
5366 }
5367 _ACEOF
5368 rm -f conftest$ac_exeext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5370   (eval $ac_link) 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_cv_sizeof_short=`cat conftest.val`
5380 else
5381   echo "$as_me: program exited with status $ac_status" >&5
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 ( exit $ac_status )
5386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5387 See \`config.log' for more details." >&5
5388 echo "$as_me: error: cannot compute sizeof (short), 77
5389 See \`config.log' for more details." >&2;}
5390    { (exit 1); exit 1; }; }
5391 fi
5392 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5393 fi
5394 fi
5395 rm -f conftest.val
5396 else
5397   ac_cv_sizeof_short=0
5398 fi
5399 fi
5400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5401 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5402 cat >>confdefs.h <<_ACEOF
5403 #define SIZEOF_SHORT $ac_cv_sizeof_short
5404 _ACEOF
5405
5406
5407 echo "$as_me:$LINENO: checking for int" >&5
5408 echo $ECHO_N "checking for int... $ECHO_C" >&6
5409 if test "${ac_cv_type_int+set}" = set; then
5410   echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412   cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h.  */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h.  */
5418 $ac_includes_default
5419 int
5420 main ()
5421 {
5422 if ((int *) 0)
5423   return 0;
5424 if (sizeof (int))
5425   return 0;
5426   ;
5427   return 0;
5428 }
5429 _ACEOF
5430 rm -f conftest.$ac_objext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432   (eval $ac_compile) 2>conftest.er1
5433   ac_status=$?
5434   grep -v '^ *+' conftest.er1 >conftest.err
5435   rm -f conftest.er1
5436   cat conftest.err >&5
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } &&
5439          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441   (eval $ac_try) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; } &&
5445          { ac_try='test -s conftest.$ac_objext'
5446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447   (eval $ac_try) 2>&5
5448   ac_status=$?
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); }; }; then
5451   ac_cv_type_int=yes
5452 else
5453   echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456 ac_cv_type_int=no
5457 fi
5458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459 fi
5460 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5461 echo "${ECHO_T}$ac_cv_type_int" >&6
5462
5463 echo "$as_me:$LINENO: checking size of int" >&5
5464 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5465 if test "${ac_cv_sizeof_int+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468   if test "$ac_cv_type_int" = yes; then
5469   # The cast to unsigned long works around a bug in the HP C Compiler
5470   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5471   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5472   # This bug is HP SR number 8606223364.
5473   if test "$cross_compiling" = yes; then
5474   # Depending upon the size, compute the lo and hi bounds.
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h.  */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h.  */
5481 $ac_includes_default
5482 int
5483 main ()
5484 {
5485 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5486 test_array [0] = 0
5487
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5494   (eval $ac_compile) 2>conftest.er1
5495   ac_status=$?
5496   grep -v '^ *+' conftest.er1 >conftest.err
5497   rm -f conftest.er1
5498   cat conftest.err >&5
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); } &&
5501          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503   (eval $ac_try) 2>&5
5504   ac_status=$?
5505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); }; } &&
5507          { ac_try='test -s conftest.$ac_objext'
5508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509   (eval $ac_try) 2>&5
5510   ac_status=$?
5511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512   (exit $ac_status); }; }; then
5513   ac_lo=0 ac_mid=0
5514   while :; do
5515     cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h.  */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h.  */
5521 $ac_includes_default
5522 int
5523 main ()
5524 {
5525 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5526 test_array [0] = 0
5527
5528   ;
5529   return 0;
5530 }
5531 _ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5534   (eval $ac_compile) 2>conftest.er1
5535   ac_status=$?
5536   grep -v '^ *+' conftest.er1 >conftest.err
5537   rm -f conftest.er1
5538   cat conftest.err >&5
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } &&
5541          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543   (eval $ac_try) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); }; } &&
5547          { ac_try='test -s conftest.$ac_objext'
5548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549   (eval $ac_try) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; }; then
5553   ac_hi=$ac_mid; break
5554 else
5555   echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5557
5558 ac_lo=`expr $ac_mid + 1`
5559                     if test $ac_lo -le $ac_mid; then
5560                       ac_lo= ac_hi=
5561                       break
5562                     fi
5563                     ac_mid=`expr 2 '*' $ac_mid + 1`
5564 fi
5565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5566   done
5567 else
5568   echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5570
5571 cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577 $ac_includes_default
5578 int
5579 main ()
5580 {
5581 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5582 test_array [0] = 0
5583
5584   ;
5585   return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest.$ac_objext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5590   (eval $ac_compile) 2>conftest.er1
5591   ac_status=$?
5592   grep -v '^ *+' conftest.er1 >conftest.err
5593   rm -f conftest.er1
5594   cat conftest.err >&5
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); } &&
5597          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599   (eval $ac_try) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }; } &&
5603          { ac_try='test -s conftest.$ac_objext'
5604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605   (eval $ac_try) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); }; }; then
5609   ac_hi=-1 ac_mid=-1
5610   while :; do
5611     cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h.  */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h.  */
5617 $ac_includes_default
5618 int
5619 main ()
5620 {
5621 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5622 test_array [0] = 0
5623
5624   ;
5625   return 0;
5626 }
5627 _ACEOF
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630   (eval $ac_compile) 2>conftest.er1
5631   ac_status=$?
5632   grep -v '^ *+' conftest.er1 >conftest.err
5633   rm -f conftest.er1
5634   cat conftest.err >&5
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } &&
5637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639   (eval $ac_try) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); }; } &&
5643          { ac_try='test -s conftest.$ac_objext'
5644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645   (eval $ac_try) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); }; }; then
5649   ac_lo=$ac_mid; break
5650 else
5651   echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654 ac_hi=`expr '(' $ac_mid ')' - 1`
5655                        if test $ac_mid -le $ac_hi; then
5656                          ac_lo= ac_hi=
5657                          break
5658                        fi
5659                        ac_mid=`expr 2 '*' $ac_mid`
5660 fi
5661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5662   done
5663 else
5664   echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5666
5667 ac_lo= ac_hi=
5668 fi
5669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5670 fi
5671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5672 # Binary search between lo and hi bounds.
5673 while test "x$ac_lo" != "x$ac_hi"; do
5674   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5675   cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h.  */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h.  */
5681 $ac_includes_default
5682 int
5683 main ()
5684 {
5685 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5686 test_array [0] = 0
5687
5688   ;
5689   return 0;
5690 }
5691 _ACEOF
5692 rm -f conftest.$ac_objext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694   (eval $ac_compile) 2>conftest.er1
5695   ac_status=$?
5696   grep -v '^ *+' conftest.er1 >conftest.err
5697   rm -f conftest.er1
5698   cat conftest.err >&5
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } &&
5701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703   (eval $ac_try) 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }; } &&
5707          { ac_try='test -s conftest.$ac_objext'
5708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709   (eval $ac_try) 2>&5
5710   ac_status=$?
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); }; }; then
5713   ac_hi=$ac_mid
5714 else
5715   echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718 ac_lo=`expr '(' $ac_mid ')' + 1`
5719 fi
5720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5721 done
5722 case $ac_lo in
5723 ?*) ac_cv_sizeof_int=$ac_lo;;
5724 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5725 See \`config.log' for more details." >&5
5726 echo "$as_me: error: cannot compute sizeof (int), 77
5727 See \`config.log' for more details." >&2;}
5728    { (exit 1); exit 1; }; } ;;
5729 esac
5730 else
5731   if test "$cross_compiling" = yes; then
5732   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5733 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5734    { (exit 1); exit 1; }; }
5735 else
5736   cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h.  */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h.  */
5742 $ac_includes_default
5743 long longval () { return (long) (sizeof (int)); }
5744 unsigned long ulongval () { return (long) (sizeof (int)); }
5745 #include <stdio.h>
5746 #include <stdlib.h>
5747 int
5748 main ()
5749 {
5750
5751   FILE *f = fopen ("conftest.val", "w");
5752   if (! f)
5753     exit (1);
5754   if (((long) (sizeof (int))) < 0)
5755     {
5756       long i = longval ();
5757       if (i != ((long) (sizeof (int))))
5758         exit (1);
5759       fprintf (f, "%ld\n", i);
5760     }
5761   else
5762     {
5763       unsigned long i = ulongval ();
5764       if (i != ((long) (sizeof (int))))
5765         exit (1);
5766       fprintf (f, "%lu\n", i);
5767     }
5768   exit (ferror (f) || fclose (f) != 0);
5769
5770   ;
5771   return 0;
5772 }
5773 _ACEOF
5774 rm -f conftest$ac_exeext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776   (eval $ac_link) 2>&5
5777   ac_status=$?
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; }; then
5785   ac_cv_sizeof_int=`cat conftest.val`
5786 else
5787   echo "$as_me: program exited with status $ac_status" >&5
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791 ( exit $ac_status )
5792 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5793 See \`config.log' for more details." >&5
5794 echo "$as_me: error: cannot compute sizeof (int), 77
5795 See \`config.log' for more details." >&2;}
5796    { (exit 1); exit 1; }; }
5797 fi
5798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5799 fi
5800 fi
5801 rm -f conftest.val
5802 else
5803   ac_cv_sizeof_int=0
5804 fi
5805 fi
5806 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5807 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5808 cat >>confdefs.h <<_ACEOF
5809 #define SIZEOF_INT $ac_cv_sizeof_int
5810 _ACEOF
5811
5812
5813 echo "$as_me:$LINENO: checking for long" >&5
5814 echo $ECHO_N "checking for long... $ECHO_C" >&6
5815 if test "${ac_cv_type_long+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h.  */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h.  */
5824 $ac_includes_default
5825 int
5826 main ()
5827 {
5828 if ((long *) 0)
5829   return 0;
5830 if (sizeof (long))
5831   return 0;
5832   ;
5833   return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838   (eval $ac_compile) 2>conftest.er1
5839   ac_status=$?
5840   grep -v '^ *+' conftest.er1 >conftest.err
5841   rm -f conftest.er1
5842   cat conftest.err >&5
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847   (eval $ac_try) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }; } &&
5851          { ac_try='test -s conftest.$ac_objext'
5852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853   (eval $ac_try) 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); }; }; then
5857   ac_cv_type_long=yes
5858 else
5859   echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5861
5862 ac_cv_type_long=no
5863 fi
5864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5865 fi
5866 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5867 echo "${ECHO_T}$ac_cv_type_long" >&6
5868
5869 echo "$as_me:$LINENO: checking size of long" >&5
5870 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5871 if test "${ac_cv_sizeof_long+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   if test "$ac_cv_type_long" = yes; then
5875   # The cast to unsigned long works around a bug in the HP C Compiler
5876   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5877   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5878   # This bug is HP SR number 8606223364.
5879   if test "$cross_compiling" = yes; then
5880   # Depending upon the size, compute the lo and hi bounds.
5881 cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h.  */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h.  */
5887 $ac_includes_default
5888 int
5889 main ()
5890 {
5891 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5892 test_array [0] = 0
5893
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900   (eval $ac_compile) 2>conftest.er1
5901   ac_status=$?
5902   grep -v '^ *+' conftest.er1 >conftest.err
5903   rm -f conftest.er1
5904   cat conftest.err >&5
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); } &&
5907          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909   (eval $ac_try) 2>&5
5910   ac_status=$?
5911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912   (exit $ac_status); }; } &&
5913          { ac_try='test -s conftest.$ac_objext'
5914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915   (eval $ac_try) 2>&5
5916   ac_status=$?
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); }; }; then
5919   ac_lo=0 ac_mid=0
5920   while :; do
5921     cat >conftest.$ac_ext <<_ACEOF
5922 /* confdefs.h.  */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h.  */
5927 $ac_includes_default
5928 int
5929 main ()
5930 {
5931 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5932 test_array [0] = 0
5933
5934   ;
5935   return 0;
5936 }
5937 _ACEOF
5938 rm -f conftest.$ac_objext
5939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940   (eval $ac_compile) 2>conftest.er1
5941   ac_status=$?
5942   grep -v '^ *+' conftest.er1 >conftest.err
5943   rm -f conftest.er1
5944   cat conftest.err >&5
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); } &&
5947          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949   (eval $ac_try) 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); }; } &&
5953          { ac_try='test -s conftest.$ac_objext'
5954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955   (eval $ac_try) 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); }; }; then
5959   ac_hi=$ac_mid; break
5960 else
5961   echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 ac_lo=`expr $ac_mid + 1`
5965                     if test $ac_lo -le $ac_mid; then
5966                       ac_lo= ac_hi=
5967                       break
5968                     fi
5969                     ac_mid=`expr 2 '*' $ac_mid + 1`
5970 fi
5971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5972   done
5973 else
5974   echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5976
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h.  */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h.  */
5983 $ac_includes_default
5984 int
5985 main ()
5986 {
5987 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5988 test_array [0] = 0
5989
5990   ;
5991   return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest.$ac_objext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5996   (eval $ac_compile) 2>conftest.er1
5997   ac_status=$?
5998   grep -v '^ *+' conftest.er1 >conftest.err
5999   rm -f conftest.er1
6000   cat conftest.err >&5
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); } &&
6003          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005   (eval $ac_try) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; } &&
6009          { ac_try='test -s conftest.$ac_objext'
6010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011   (eval $ac_try) 2>&5
6012   ac_status=$?
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); }; }; then
6015   ac_hi=-1 ac_mid=-1
6016   while :; do
6017     cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h.  */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h.  */
6023 $ac_includes_default
6024 int
6025 main ()
6026 {
6027 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6028 test_array [0] = 0
6029
6030   ;
6031   return 0;
6032 }
6033 _ACEOF
6034 rm -f conftest.$ac_objext
6035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036   (eval $ac_compile) 2>conftest.er1
6037   ac_status=$?
6038   grep -v '^ *+' conftest.er1 >conftest.err
6039   rm -f conftest.er1
6040   cat conftest.err >&5
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); } &&
6043          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045   (eval $ac_try) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; } &&
6049          { ac_try='test -s conftest.$ac_objext'
6050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051   (eval $ac_try) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }; }; then
6055   ac_lo=$ac_mid; break
6056 else
6057   echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 ac_hi=`expr '(' $ac_mid ')' - 1`
6061                        if test $ac_mid -le $ac_hi; then
6062                          ac_lo= ac_hi=
6063                          break
6064                        fi
6065                        ac_mid=`expr 2 '*' $ac_mid`
6066 fi
6067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6068   done
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073 ac_lo= ac_hi=
6074 fi
6075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6076 fi
6077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6078 # Binary search between lo and hi bounds.
6079 while test "x$ac_lo" != "x$ac_hi"; do
6080   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6081   cat >conftest.$ac_ext <<_ACEOF
6082 /* confdefs.h.  */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h.  */
6087 $ac_includes_default
6088 int
6089 main ()
6090 {
6091 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6092 test_array [0] = 0
6093
6094   ;
6095   return 0;
6096 }
6097 _ACEOF
6098 rm -f conftest.$ac_objext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100   (eval $ac_compile) 2>conftest.er1
6101   ac_status=$?
6102   grep -v '^ *+' conftest.er1 >conftest.err
6103   rm -f conftest.er1
6104   cat conftest.err >&5
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); } &&
6107          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109   (eval $ac_try) 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); }; } &&
6113          { ac_try='test -s conftest.$ac_objext'
6114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115   (eval $ac_try) 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); }; }; then
6119   ac_hi=$ac_mid
6120 else
6121   echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6123
6124 ac_lo=`expr '(' $ac_mid ')' + 1`
6125 fi
6126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6127 done
6128 case $ac_lo in
6129 ?*) ac_cv_sizeof_long=$ac_lo;;
6130 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6131 See \`config.log' for more details." >&5
6132 echo "$as_me: error: cannot compute sizeof (long), 77
6133 See \`config.log' for more details." >&2;}
6134    { (exit 1); exit 1; }; } ;;
6135 esac
6136 else
6137   if test "$cross_compiling" = yes; then
6138   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6139 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6140    { (exit 1); exit 1; }; }
6141 else
6142   cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h.  */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h.  */
6148 $ac_includes_default
6149 long longval () { return (long) (sizeof (long)); }
6150 unsigned long ulongval () { return (long) (sizeof (long)); }
6151 #include <stdio.h>
6152 #include <stdlib.h>
6153 int
6154 main ()
6155 {
6156
6157   FILE *f = fopen ("conftest.val", "w");
6158   if (! f)
6159     exit (1);
6160   if (((long) (sizeof (long))) < 0)
6161     {
6162       long i = longval ();
6163       if (i != ((long) (sizeof (long))))
6164         exit (1);
6165       fprintf (f, "%ld\n", i);
6166     }
6167   else
6168     {
6169       unsigned long i = ulongval ();
6170       if (i != ((long) (sizeof (long))))
6171         exit (1);
6172       fprintf (f, "%lu\n", i);
6173     }
6174   exit (ferror (f) || fclose (f) != 0);
6175
6176   ;
6177   return 0;
6178 }
6179 _ACEOF
6180 rm -f conftest$ac_exeext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182   (eval $ac_link) 2>&5
6183   ac_status=$?
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187   (eval $ac_try) 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); }; }; then
6191   ac_cv_sizeof_long=`cat conftest.val`
6192 else
6193   echo "$as_me: program exited with status $ac_status" >&5
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6196
6197 ( exit $ac_status )
6198 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6199 See \`config.log' for more details." >&5
6200 echo "$as_me: error: cannot compute sizeof (long), 77
6201 See \`config.log' for more details." >&2;}
6202    { (exit 1); exit 1; }; }
6203 fi
6204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6205 fi
6206 fi
6207 rm -f conftest.val
6208 else
6209   ac_cv_sizeof_long=0
6210 fi
6211 fi
6212 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6213 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6214 cat >>confdefs.h <<_ACEOF
6215 #define SIZEOF_LONG $ac_cv_sizeof_long
6216 _ACEOF
6217
6218
6219 echo "$as_me:$LINENO: checking for void *" >&5
6220 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6221 if test "${ac_cv_type_void_p+set}" = set; then
6222   echo $ECHO_N "(cached) $ECHO_C" >&6
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 $ac_includes_default
6231 int
6232 main ()
6233 {
6234 if ((void * *) 0)
6235   return 0;
6236 if (sizeof (void *))
6237   return 0;
6238   ;
6239   return 0;
6240 }
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244   (eval $ac_compile) 2>conftest.er1
6245   ac_status=$?
6246   grep -v '^ *+' conftest.er1 >conftest.err
6247   rm -f conftest.er1
6248   cat conftest.err >&5
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); } &&
6251          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253   (eval $ac_try) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); }; } &&
6257          { ac_try='test -s conftest.$ac_objext'
6258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259   (eval $ac_try) 2>&5
6260   ac_status=$?
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); }; }; then
6263   ac_cv_type_void_p=yes
6264 else
6265   echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6267
6268 ac_cv_type_void_p=no
6269 fi
6270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6271 fi
6272 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6273 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6274
6275 echo "$as_me:$LINENO: checking size of void *" >&5
6276 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6277 if test "${ac_cv_sizeof_void_p+set}" = set; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280   if test "$ac_cv_type_void_p" = yes; then
6281   # The cast to unsigned long works around a bug in the HP C Compiler
6282   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6283   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6284   # This bug is HP SR number 8606223364.
6285   if test "$cross_compiling" = yes; then
6286   # Depending upon the size, compute the lo and hi bounds.
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293 $ac_includes_default
6294 int
6295 main ()
6296 {
6297 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6298 test_array [0] = 0
6299
6300   ;
6301   return 0;
6302 }
6303 _ACEOF
6304 rm -f conftest.$ac_objext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306   (eval $ac_compile) 2>conftest.er1
6307   ac_status=$?
6308   grep -v '^ *+' conftest.er1 >conftest.err
6309   rm -f conftest.er1
6310   cat conftest.err >&5
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); } &&
6313          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315   (eval $ac_try) 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }; } &&
6319          { ac_try='test -s conftest.$ac_objext'
6320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321   (eval $ac_try) 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); }; }; then
6325   ac_lo=0 ac_mid=0
6326   while :; do
6327     cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h.  */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h.  */
6333 $ac_includes_default
6334 int
6335 main ()
6336 {
6337 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6338 test_array [0] = 0
6339
6340   ;
6341   return 0;
6342 }
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346   (eval $ac_compile) 2>conftest.er1
6347   ac_status=$?
6348   grep -v '^ *+' conftest.er1 >conftest.err
6349   rm -f conftest.er1
6350   cat conftest.err >&5
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); } &&
6353          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355   (eval $ac_try) 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); }; } &&
6359          { ac_try='test -s conftest.$ac_objext'
6360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361   (eval $ac_try) 2>&5
6362   ac_status=$?
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); }; }; then
6365   ac_hi=$ac_mid; break
6366 else
6367   echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6369
6370 ac_lo=`expr $ac_mid + 1`
6371                     if test $ac_lo -le $ac_mid; then
6372                       ac_lo= ac_hi=
6373                       break
6374                     fi
6375                     ac_mid=`expr 2 '*' $ac_mid + 1`
6376 fi
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6378   done
6379 else
6380   echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h.  */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h.  */
6389 $ac_includes_default
6390 int
6391 main ()
6392 {
6393 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6394 test_array [0] = 0
6395
6396   ;
6397   return 0;
6398 }
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402   (eval $ac_compile) 2>conftest.er1
6403   ac_status=$?
6404   grep -v '^ *+' conftest.er1 >conftest.err
6405   rm -f conftest.er1
6406   cat conftest.err >&5
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); } &&
6409          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411   (eval $ac_try) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); }; } &&
6415          { ac_try='test -s conftest.$ac_objext'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; }; then
6421   ac_hi=-1 ac_mid=-1
6422   while :; do
6423     cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h.  */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h.  */
6429 $ac_includes_default
6430 int
6431 main ()
6432 {
6433 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6434 test_array [0] = 0
6435
6436   ;
6437   return 0;
6438 }
6439 _ACEOF
6440 rm -f conftest.$ac_objext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442   (eval $ac_compile) 2>conftest.er1
6443   ac_status=$?
6444   grep -v '^ *+' conftest.er1 >conftest.err
6445   rm -f conftest.er1
6446   cat conftest.err >&5
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } &&
6449          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451   (eval $ac_try) 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); }; } &&
6455          { ac_try='test -s conftest.$ac_objext'
6456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457   (eval $ac_try) 2>&5
6458   ac_status=$?
6459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); }; }; then
6461   ac_lo=$ac_mid; break
6462 else
6463   echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6465
6466 ac_hi=`expr '(' $ac_mid ')' - 1`
6467                        if test $ac_mid -le $ac_hi; then
6468                          ac_lo= ac_hi=
6469                          break
6470                        fi
6471                        ac_mid=`expr 2 '*' $ac_mid`
6472 fi
6473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6474   done
6475 else
6476   echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6478
6479 ac_lo= ac_hi=
6480 fi
6481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6482 fi
6483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6484 # Binary search between lo and hi bounds.
6485 while test "x$ac_lo" != "x$ac_hi"; do
6486   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6487   cat >conftest.$ac_ext <<_ACEOF
6488 /* confdefs.h.  */
6489 _ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h.  */
6493 $ac_includes_default
6494 int
6495 main ()
6496 {
6497 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6498 test_array [0] = 0
6499
6500   ;
6501   return 0;
6502 }
6503 _ACEOF
6504 rm -f conftest.$ac_objext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506   (eval $ac_compile) 2>conftest.er1
6507   ac_status=$?
6508   grep -v '^ *+' conftest.er1 >conftest.err
6509   rm -f conftest.er1
6510   cat conftest.err >&5
6511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); } &&
6513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515   (eval $ac_try) 2>&5
6516   ac_status=$?
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); }; } &&
6519          { ac_try='test -s conftest.$ac_objext'
6520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521   (eval $ac_try) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); }; }; then
6525   ac_hi=$ac_mid
6526 else
6527   echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ac_lo=`expr '(' $ac_mid ')' + 1`
6531 fi
6532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533 done
6534 case $ac_lo in
6535 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6536 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6537 See \`config.log' for more details." >&5
6538 echo "$as_me: error: cannot compute sizeof (void *), 77
6539 See \`config.log' for more details." >&2;}
6540    { (exit 1); exit 1; }; } ;;
6541 esac
6542 else
6543   if test "$cross_compiling" = yes; then
6544   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6545 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6546    { (exit 1); exit 1; }; }
6547 else
6548   cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h.  */
6554 $ac_includes_default
6555 long longval () { return (long) (sizeof (void *)); }
6556 unsigned long ulongval () { return (long) (sizeof (void *)); }
6557 #include <stdio.h>
6558 #include <stdlib.h>
6559 int
6560 main ()
6561 {
6562
6563   FILE *f = fopen ("conftest.val", "w");
6564   if (! f)
6565     exit (1);
6566   if (((long) (sizeof (void *))) < 0)
6567     {
6568       long i = longval ();
6569       if (i != ((long) (sizeof (void *))))
6570         exit (1);
6571       fprintf (f, "%ld\n", i);
6572     }
6573   else
6574     {
6575       unsigned long i = ulongval ();
6576       if (i != ((long) (sizeof (void *))))
6577         exit (1);
6578       fprintf (f, "%lu\n", i);
6579     }
6580   exit (ferror (f) || fclose (f) != 0);
6581
6582   ;
6583   return 0;
6584 }
6585 _ACEOF
6586 rm -f conftest$ac_exeext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588   (eval $ac_link) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593   (eval $ac_try) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); }; }; then
6597   ac_cv_sizeof_void_p=`cat conftest.val`
6598 else
6599   echo "$as_me: program exited with status $ac_status" >&5
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6602
6603 ( exit $ac_status )
6604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6605 See \`config.log' for more details." >&5
6606 echo "$as_me: error: cannot compute sizeof (void *), 77
6607 See \`config.log' for more details." >&2;}
6608    { (exit 1); exit 1; }; }
6609 fi
6610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6611 fi
6612 fi
6613 rm -f conftest.val
6614 else
6615   ac_cv_sizeof_void_p=0
6616 fi
6617 fi
6618 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6619 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6620 cat >>confdefs.h <<_ACEOF
6621 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6622 _ACEOF
6623
6624
6625 echo "$as_me:$LINENO: checking for int64_t" >&5
6626 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6627 if test "${ac_cv_type_int64_t+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h.  */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h.  */
6636 $ac_includes_default
6637 int
6638 main ()
6639 {
6640 if ((int64_t *) 0)
6641   return 0;
6642 if (sizeof (int64_t))
6643   return 0;
6644   ;
6645   return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650   (eval $ac_compile) 2>conftest.er1
6651   ac_status=$?
6652   grep -v '^ *+' conftest.er1 >conftest.err
6653   rm -f conftest.er1
6654   cat conftest.err >&5
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); } &&
6657          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659   (eval $ac_try) 2>&5
6660   ac_status=$?
6661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662   (exit $ac_status); }; } &&
6663          { ac_try='test -s conftest.$ac_objext'
6664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665   (eval $ac_try) 2>&5
6666   ac_status=$?
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); }; }; then
6669   ac_cv_type_int64_t=yes
6670 else
6671   echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6673
6674 ac_cv_type_int64_t=no
6675 fi
6676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6677 fi
6678 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6679 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6680
6681 echo "$as_me:$LINENO: checking size of int64_t" >&5
6682 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6683 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6684   echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686   if test "$ac_cv_type_int64_t" = yes; then
6687   # The cast to unsigned long works around a bug in the HP C Compiler
6688   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6689   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6690   # This bug is HP SR number 8606223364.
6691   if test "$cross_compiling" = yes; then
6692   # Depending upon the size, compute the lo and hi bounds.
6693 cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h.  */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h.  */
6699 $ac_includes_default
6700 int
6701 main ()
6702 {
6703 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6704 test_array [0] = 0
6705
6706   ;
6707   return 0;
6708 }
6709 _ACEOF
6710 rm -f conftest.$ac_objext
6711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6712   (eval $ac_compile) 2>conftest.er1
6713   ac_status=$?
6714   grep -v '^ *+' conftest.er1 >conftest.err
6715   rm -f conftest.er1
6716   cat conftest.err >&5
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); } &&
6719          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721   (eval $ac_try) 2>&5
6722   ac_status=$?
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); }; } &&
6725          { ac_try='test -s conftest.$ac_objext'
6726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727   (eval $ac_try) 2>&5
6728   ac_status=$?
6729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730   (exit $ac_status); }; }; then
6731   ac_lo=0 ac_mid=0
6732   while :; do
6733     cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h.  */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h.  */
6739 $ac_includes_default
6740 int
6741 main ()
6742 {
6743 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6744 test_array [0] = 0
6745
6746   ;
6747   return 0;
6748 }
6749 _ACEOF
6750 rm -f conftest.$ac_objext
6751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6752   (eval $ac_compile) 2>conftest.er1
6753   ac_status=$?
6754   grep -v '^ *+' conftest.er1 >conftest.err
6755   rm -f conftest.er1
6756   cat conftest.err >&5
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); } &&
6759          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761   (eval $ac_try) 2>&5
6762   ac_status=$?
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); }; } &&
6765          { ac_try='test -s conftest.$ac_objext'
6766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767   (eval $ac_try) 2>&5
6768   ac_status=$?
6769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770   (exit $ac_status); }; }; then
6771   ac_hi=$ac_mid; break
6772 else
6773   echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776 ac_lo=`expr $ac_mid + 1`
6777                     if test $ac_lo -le $ac_mid; then
6778                       ac_lo= ac_hi=
6779                       break
6780                     fi
6781                     ac_mid=`expr 2 '*' $ac_mid + 1`
6782 fi
6783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6784   done
6785 else
6786   echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789 cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795 $ac_includes_default
6796 int
6797 main ()
6798 {
6799 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6800 test_array [0] = 0
6801
6802   ;
6803   return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808   (eval $ac_compile) 2>conftest.er1
6809   ac_status=$?
6810   grep -v '^ *+' conftest.er1 >conftest.err
6811   rm -f conftest.er1
6812   cat conftest.err >&5
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); } &&
6815          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817   (eval $ac_try) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; } &&
6821          { ac_try='test -s conftest.$ac_objext'
6822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823   (eval $ac_try) 2>&5
6824   ac_status=$?
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); }; }; then
6827   ac_hi=-1 ac_mid=-1
6828   while :; do
6829     cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h.  */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h.  */
6835 $ac_includes_default
6836 int
6837 main ()
6838 {
6839 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
6840 test_array [0] = 0
6841
6842   ;
6843   return 0;
6844 }
6845 _ACEOF
6846 rm -f conftest.$ac_objext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6848   (eval $ac_compile) 2>conftest.er1
6849   ac_status=$?
6850   grep -v '^ *+' conftest.er1 >conftest.err
6851   rm -f conftest.er1
6852   cat conftest.err >&5
6853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854   (exit $ac_status); } &&
6855          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857   (eval $ac_try) 2>&5
6858   ac_status=$?
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); }; } &&
6861          { ac_try='test -s conftest.$ac_objext'
6862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863   (eval $ac_try) 2>&5
6864   ac_status=$?
6865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); }; }; then
6867   ac_lo=$ac_mid; break
6868 else
6869   echo "$as_me: failed program was:" >&5
6870 sed 's/^/| /' conftest.$ac_ext >&5
6871
6872 ac_hi=`expr '(' $ac_mid ')' - 1`
6873                        if test $ac_mid -le $ac_hi; then
6874                          ac_lo= ac_hi=
6875                          break
6876                        fi
6877                        ac_mid=`expr 2 '*' $ac_mid`
6878 fi
6879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6880   done
6881 else
6882   echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 ac_lo= ac_hi=
6886 fi
6887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6888 fi
6889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6890 # Binary search between lo and hi bounds.
6891 while test "x$ac_lo" != "x$ac_hi"; do
6892   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6893   cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h.  */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h.  */
6899 $ac_includes_default
6900 int
6901 main ()
6902 {
6903 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6904 test_array [0] = 0
6905
6906   ;
6907   return 0;
6908 }
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912   (eval $ac_compile) 2>conftest.er1
6913   ac_status=$?
6914   grep -v '^ *+' conftest.er1 >conftest.err
6915   rm -f conftest.er1
6916   cat conftest.err >&5
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); } &&
6919          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
6925          { ac_try='test -s conftest.$ac_objext'
6926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927   (eval $ac_try) 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); }; }; then
6931   ac_hi=$ac_mid
6932 else
6933   echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6935
6936 ac_lo=`expr '(' $ac_mid ')' + 1`
6937 fi
6938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6939 done
6940 case $ac_lo in
6941 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6942 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
6943 See \`config.log' for more details." >&5
6944 echo "$as_me: error: cannot compute sizeof (int64_t), 77
6945 See \`config.log' for more details." >&2;}
6946    { (exit 1); exit 1; }; } ;;
6947 esac
6948 else
6949   if test "$cross_compiling" = yes; then
6950   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6951 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6952    { (exit 1); exit 1; }; }
6953 else
6954   cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h.  */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h.  */
6960 $ac_includes_default
6961 long longval () { return (long) (sizeof (int64_t)); }
6962 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
6963 #include <stdio.h>
6964 #include <stdlib.h>
6965 int
6966 main ()
6967 {
6968
6969   FILE *f = fopen ("conftest.val", "w");
6970   if (! f)
6971     exit (1);
6972   if (((long) (sizeof (int64_t))) < 0)
6973     {
6974       long i = longval ();
6975       if (i != ((long) (sizeof (int64_t))))
6976         exit (1);
6977       fprintf (f, "%ld\n", i);
6978     }
6979   else
6980     {
6981       unsigned long i = ulongval ();
6982       if (i != ((long) (sizeof (int64_t))))
6983         exit (1);
6984       fprintf (f, "%lu\n", i);
6985     }
6986   exit (ferror (f) || fclose (f) != 0);
6987
6988   ;
6989   return 0;
6990 }
6991 _ACEOF
6992 rm -f conftest$ac_exeext
6993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6994   (eval $ac_link) 2>&5
6995   ac_status=$?
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999   (eval $ac_try) 2>&5
7000   ac_status=$?
7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002   (exit $ac_status); }; }; then
7003   ac_cv_sizeof_int64_t=`cat conftest.val`
7004 else
7005   echo "$as_me: program exited with status $ac_status" >&5
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 ( exit $ac_status )
7010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7011 See \`config.log' for more details." >&5
7012 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7013 See \`config.log' for more details." >&2;}
7014    { (exit 1); exit 1; }; }
7015 fi
7016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7017 fi
7018 fi
7019 rm -f conftest.val
7020 else
7021   ac_cv_sizeof_int64_t=0
7022 fi
7023 fi
7024 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7025 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
7026 cat >>confdefs.h <<_ACEOF
7027 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7028 _ACEOF
7029
7030
7031 echo "$as_me:$LINENO: checking for long long" >&5
7032 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7033 if test "${ac_cv_type_long_long+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 $ac_includes_default
7043 int
7044 main ()
7045 {
7046 if ((long long *) 0)
7047   return 0;
7048 if (sizeof (long long))
7049   return 0;
7050   ;
7051   return 0;
7052 }
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056   (eval $ac_compile) 2>conftest.er1
7057   ac_status=$?
7058   grep -v '^ *+' conftest.er1 >conftest.err
7059   rm -f conftest.er1
7060   cat conftest.err >&5
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); } &&
7063          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065   (eval $ac_try) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); }; } &&
7069          { ac_try='test -s conftest.$ac_objext'
7070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071   (eval $ac_try) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); }; }; then
7075   ac_cv_type_long_long=yes
7076 else
7077   echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 ac_cv_type_long_long=no
7081 fi
7082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7083 fi
7084 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7085 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7086
7087 echo "$as_me:$LINENO: checking size of long long" >&5
7088 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7089 if test "${ac_cv_sizeof_long_long+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   if test "$ac_cv_type_long_long" = yes; then
7093   # The cast to unsigned long works around a bug in the HP C Compiler
7094   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7095   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7096   # This bug is HP SR number 8606223364.
7097   if test "$cross_compiling" = yes; then
7098   # Depending upon the size, compute the lo and hi bounds.
7099 cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h.  */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h.  */
7105 $ac_includes_default
7106 int
7107 main ()
7108 {
7109 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7110 test_array [0] = 0
7111
7112   ;
7113   return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118   (eval $ac_compile) 2>conftest.er1
7119   ac_status=$?
7120   grep -v '^ *+' conftest.er1 >conftest.err
7121   rm -f conftest.er1
7122   cat conftest.err >&5
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } &&
7125          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127   (eval $ac_try) 2>&5
7128   ac_status=$?
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); }; } &&
7131          { ac_try='test -s conftest.$ac_objext'
7132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133   (eval $ac_try) 2>&5
7134   ac_status=$?
7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); }; }; then
7137   ac_lo=0 ac_mid=0
7138   while :; do
7139     cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h.  */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h.  */
7145 $ac_includes_default
7146 int
7147 main ()
7148 {
7149 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7150 test_array [0] = 0
7151
7152   ;
7153   return 0;
7154 }
7155 _ACEOF
7156 rm -f conftest.$ac_objext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158   (eval $ac_compile) 2>conftest.er1
7159   ac_status=$?
7160   grep -v '^ *+' conftest.er1 >conftest.err
7161   rm -f conftest.er1
7162   cat conftest.err >&5
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); } &&
7165          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167   (eval $ac_try) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; } &&
7171          { ac_try='test -s conftest.$ac_objext'
7172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173   (eval $ac_try) 2>&5
7174   ac_status=$?
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); }; }; then
7177   ac_hi=$ac_mid; break
7178 else
7179   echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182 ac_lo=`expr $ac_mid + 1`
7183                     if test $ac_lo -le $ac_mid; then
7184                       ac_lo= ac_hi=
7185                       break
7186                     fi
7187                     ac_mid=`expr 2 '*' $ac_mid + 1`
7188 fi
7189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7190   done
7191 else
7192   echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7194
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h.  */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h.  */
7201 $ac_includes_default
7202 int
7203 main ()
7204 {
7205 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7206 test_array [0] = 0
7207
7208   ;
7209   return 0;
7210 }
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214   (eval $ac_compile) 2>conftest.er1
7215   ac_status=$?
7216   grep -v '^ *+' conftest.er1 >conftest.err
7217   rm -f conftest.er1
7218   cat conftest.err >&5
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); } &&
7221          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223   (eval $ac_try) 2>&5
7224   ac_status=$?
7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226   (exit $ac_status); }; } &&
7227          { ac_try='test -s conftest.$ac_objext'
7228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229   (eval $ac_try) 2>&5
7230   ac_status=$?
7231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232   (exit $ac_status); }; }; then
7233   ac_hi=-1 ac_mid=-1
7234   while :; do
7235     cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h.  */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h.  */
7241 $ac_includes_default
7242 int
7243 main ()
7244 {
7245 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7246 test_array [0] = 0
7247
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254   (eval $ac_compile) 2>conftest.er1
7255   ac_status=$?
7256   grep -v '^ *+' conftest.er1 >conftest.err
7257   rm -f conftest.er1
7258   cat conftest.err >&5
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); } &&
7261          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263   (eval $ac_try) 2>&5
7264   ac_status=$?
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); }; } &&
7267          { ac_try='test -s conftest.$ac_objext'
7268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269   (eval $ac_try) 2>&5
7270   ac_status=$?
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); }; }; then
7273   ac_lo=$ac_mid; break
7274 else
7275   echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7277
7278 ac_hi=`expr '(' $ac_mid ')' - 1`
7279                        if test $ac_mid -le $ac_hi; then
7280                          ac_lo= ac_hi=
7281                          break
7282                        fi
7283                        ac_mid=`expr 2 '*' $ac_mid`
7284 fi
7285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7286   done
7287 else
7288   echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291 ac_lo= ac_hi=
7292 fi
7293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7294 fi
7295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7296 # Binary search between lo and hi bounds.
7297 while test "x$ac_lo" != "x$ac_hi"; do
7298   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7299   cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h.  */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h.  */
7305 $ac_includes_default
7306 int
7307 main ()
7308 {
7309 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7310 test_array [0] = 0
7311
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318   (eval $ac_compile) 2>conftest.er1
7319   ac_status=$?
7320   grep -v '^ *+' conftest.er1 >conftest.err
7321   rm -f conftest.er1
7322   cat conftest.err >&5
7323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324   (exit $ac_status); } &&
7325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327   (eval $ac_try) 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); }; } &&
7331          { ac_try='test -s conftest.$ac_objext'
7332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333   (eval $ac_try) 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); }; }; then
7337   ac_hi=$ac_mid
7338 else
7339   echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7341
7342 ac_lo=`expr '(' $ac_mid ')' + 1`
7343 fi
7344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7345 done
7346 case $ac_lo in
7347 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7348 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7349 See \`config.log' for more details." >&5
7350 echo "$as_me: error: cannot compute sizeof (long long), 77
7351 See \`config.log' for more details." >&2;}
7352    { (exit 1); exit 1; }; } ;;
7353 esac
7354 else
7355   if test "$cross_compiling" = yes; then
7356   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7357 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7358    { (exit 1); exit 1; }; }
7359 else
7360   cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h.  */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h.  */
7366 $ac_includes_default
7367 long longval () { return (long) (sizeof (long long)); }
7368 unsigned long ulongval () { return (long) (sizeof (long long)); }
7369 #include <stdio.h>
7370 #include <stdlib.h>
7371 int
7372 main ()
7373 {
7374
7375   FILE *f = fopen ("conftest.val", "w");
7376   if (! f)
7377     exit (1);
7378   if (((long) (sizeof (long long))) < 0)
7379     {
7380       long i = longval ();
7381       if (i != ((long) (sizeof (long long))))
7382         exit (1);
7383       fprintf (f, "%ld\n", i);
7384     }
7385   else
7386     {
7387       unsigned long i = ulongval ();
7388       if (i != ((long) (sizeof (long long))))
7389         exit (1);
7390       fprintf (f, "%lu\n", i);
7391     }
7392   exit (ferror (f) || fclose (f) != 0);
7393
7394   ;
7395   return 0;
7396 }
7397 _ACEOF
7398 rm -f conftest$ac_exeext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7400   (eval $ac_link) 2>&5
7401   ac_status=$?
7402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405   (eval $ac_try) 2>&5
7406   ac_status=$?
7407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408   (exit $ac_status); }; }; then
7409   ac_cv_sizeof_long_long=`cat conftest.val`
7410 else
7411   echo "$as_me: program exited with status $ac_status" >&5
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7414
7415 ( exit $ac_status )
7416 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7417 See \`config.log' for more details." >&5
7418 echo "$as_me: error: cannot compute sizeof (long long), 77
7419 See \`config.log' for more details." >&2;}
7420    { (exit 1); exit 1; }; }
7421 fi
7422 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7423 fi
7424 fi
7425 rm -f conftest.val
7426 else
7427   ac_cv_sizeof_long_long=0
7428 fi
7429 fi
7430 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7431 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7432 cat >>confdefs.h <<_ACEOF
7433 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7434 _ACEOF
7435
7436
7437 if test "$ac_cv_sizeof_int" = 2 ; then
7438   echo "$as_me:$LINENO: checking for int16_t" >&5
7439 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7440 if test "${ac_cv_type_int16_t+set}" = set; then
7441   echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443   cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h.  */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h.  */
7449 $ac_includes_default
7450 int
7451 main ()
7452 {
7453 if ((int16_t *) 0)
7454   return 0;
7455 if (sizeof (int16_t))
7456   return 0;
7457   ;
7458   return 0;
7459 }
7460 _ACEOF
7461 rm -f conftest.$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463   (eval $ac_compile) 2>conftest.er1
7464   ac_status=$?
7465   grep -v '^ *+' conftest.er1 >conftest.err
7466   rm -f conftest.er1
7467   cat conftest.err >&5
7468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); } &&
7470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472   (eval $ac_try) 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); }; } &&
7476          { ac_try='test -s conftest.$ac_objext'
7477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478   (eval $ac_try) 2>&5
7479   ac_status=$?
7480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481   (exit $ac_status); }; }; then
7482   ac_cv_type_int16_t=yes
7483 else
7484   echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487 ac_cv_type_int16_t=no
7488 fi
7489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7490 fi
7491 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7492 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7493 if test $ac_cv_type_int16_t = yes; then
7494   :
7495 else
7496
7497 cat >>confdefs.h <<_ACEOF
7498 #define int16_t int
7499 _ACEOF
7500
7501 fi
7502
7503   echo "$as_me:$LINENO: checking for uint16_t" >&5
7504 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7505 if test "${ac_cv_type_uint16_t+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h.  */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h.  */
7514 $ac_includes_default
7515 int
7516 main ()
7517 {
7518 if ((uint16_t *) 0)
7519   return 0;
7520 if (sizeof (uint16_t))
7521   return 0;
7522   ;
7523   return 0;
7524 }
7525 _ACEOF
7526 rm -f conftest.$ac_objext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528   (eval $ac_compile) 2>conftest.er1
7529   ac_status=$?
7530   grep -v '^ *+' conftest.er1 >conftest.err
7531   rm -f conftest.er1
7532   cat conftest.err >&5
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); } &&
7535          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
7541          { ac_try='test -s conftest.$ac_objext'
7542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543   (eval $ac_try) 2>&5
7544   ac_status=$?
7545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); }; }; then
7547   ac_cv_type_uint16_t=yes
7548 else
7549   echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7551
7552 ac_cv_type_uint16_t=no
7553 fi
7554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7555 fi
7556 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7557 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7558 if test $ac_cv_type_uint16_t = yes; then
7559   :
7560 else
7561
7562 cat >>confdefs.h <<_ACEOF
7563 #define uint16_t unsigned int
7564 _ACEOF
7565
7566 fi
7567
7568 elif test "$ac_cv_sizeof_short" = 2 ; then
7569   echo "$as_me:$LINENO: checking for int16_t" >&5
7570 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
7571 if test "${ac_cv_type_int16_t+set}" = set; then
7572   echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574   cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h.  */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h.  */
7580 $ac_includes_default
7581 int
7582 main ()
7583 {
7584 if ((int16_t *) 0)
7585   return 0;
7586 if (sizeof (int16_t))
7587   return 0;
7588   ;
7589   return 0;
7590 }
7591 _ACEOF
7592 rm -f conftest.$ac_objext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7594   (eval $ac_compile) 2>conftest.er1
7595   ac_status=$?
7596   grep -v '^ *+' conftest.er1 >conftest.err
7597   rm -f conftest.er1
7598   cat conftest.err >&5
7599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600   (exit $ac_status); } &&
7601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603   (eval $ac_try) 2>&5
7604   ac_status=$?
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); }; } &&
7607          { ac_try='test -s conftest.$ac_objext'
7608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609   (eval $ac_try) 2>&5
7610   ac_status=$?
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); }; }; then
7613   ac_cv_type_int16_t=yes
7614 else
7615   echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7617
7618 ac_cv_type_int16_t=no
7619 fi
7620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7621 fi
7622 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7623 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
7624 if test $ac_cv_type_int16_t = yes; then
7625   :
7626 else
7627
7628 cat >>confdefs.h <<_ACEOF
7629 #define int16_t short
7630 _ACEOF
7631
7632 fi
7633
7634   echo "$as_me:$LINENO: checking for uint16_t" >&5
7635 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7636 if test "${ac_cv_type_uint16_t+set}" = set; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639   cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h.  */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h.  */
7645 $ac_includes_default
7646 int
7647 main ()
7648 {
7649 if ((uint16_t *) 0)
7650   return 0;
7651 if (sizeof (uint16_t))
7652   return 0;
7653   ;
7654   return 0;
7655 }
7656 _ACEOF
7657 rm -f conftest.$ac_objext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7659   (eval $ac_compile) 2>conftest.er1
7660   ac_status=$?
7661   grep -v '^ *+' conftest.er1 >conftest.err
7662   rm -f conftest.er1
7663   cat conftest.err >&5
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); } &&
7666          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668   (eval $ac_try) 2>&5
7669   ac_status=$?
7670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671   (exit $ac_status); }; } &&
7672          { ac_try='test -s conftest.$ac_objext'
7673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674   (eval $ac_try) 2>&5
7675   ac_status=$?
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); }; }; then
7678   ac_cv_type_uint16_t=yes
7679 else
7680   echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7682
7683 ac_cv_type_uint16_t=no
7684 fi
7685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7686 fi
7687 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7688 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
7689 if test $ac_cv_type_uint16_t = yes; then
7690   :
7691 else
7692
7693 cat >>confdefs.h <<_ACEOF
7694 #define uint16_t unsigned short
7695 _ACEOF
7696
7697 fi
7698
7699 else
7700   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7701 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7702    { (exit 1); exit 1; }; }
7703 fi
7704 if test "$ac_cv_sizeof_int" = 4 ; then
7705   echo "$as_me:$LINENO: checking for int32_t" >&5
7706 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7707 if test "${ac_cv_type_int32_t+set}" = set; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710   cat >conftest.$ac_ext <<_ACEOF
7711 /* confdefs.h.  */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h.  */
7716 $ac_includes_default
7717 int
7718 main ()
7719 {
7720 if ((int32_t *) 0)
7721   return 0;
7722 if (sizeof (int32_t))
7723   return 0;
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730   (eval $ac_compile) 2>conftest.er1
7731   ac_status=$?
7732   grep -v '^ *+' conftest.er1 >conftest.err
7733   rm -f conftest.er1
7734   cat conftest.err >&5
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); } &&
7737          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739   (eval $ac_try) 2>&5
7740   ac_status=$?
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); }; } &&
7743          { ac_try='test -s conftest.$ac_objext'
7744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745   (eval $ac_try) 2>&5
7746   ac_status=$?
7747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748   (exit $ac_status); }; }; then
7749   ac_cv_type_int32_t=yes
7750 else
7751   echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7753
7754 ac_cv_type_int32_t=no
7755 fi
7756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7757 fi
7758 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7759 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7760 if test $ac_cv_type_int32_t = yes; then
7761   :
7762 else
7763
7764 cat >>confdefs.h <<_ACEOF
7765 #define int32_t int
7766 _ACEOF
7767
7768 fi
7769
7770   echo "$as_me:$LINENO: checking for uint32_t" >&5
7771 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7772 if test "${ac_cv_type_uint32_t+set}" = set; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775   cat >conftest.$ac_ext <<_ACEOF
7776 /* confdefs.h.  */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h.  */
7781 $ac_includes_default
7782 int
7783 main ()
7784 {
7785 if ((uint32_t *) 0)
7786   return 0;
7787 if (sizeof (uint32_t))
7788   return 0;
7789   ;
7790   return 0;
7791 }
7792 _ACEOF
7793 rm -f conftest.$ac_objext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795   (eval $ac_compile) 2>conftest.er1
7796   ac_status=$?
7797   grep -v '^ *+' conftest.er1 >conftest.err
7798   rm -f conftest.er1
7799   cat conftest.err >&5
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); } &&
7802          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804   (eval $ac_try) 2>&5
7805   ac_status=$?
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); }; } &&
7808          { ac_try='test -s conftest.$ac_objext'
7809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810   (eval $ac_try) 2>&5
7811   ac_status=$?
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); }; }; then
7814   ac_cv_type_uint32_t=yes
7815 else
7816   echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819 ac_cv_type_uint32_t=no
7820 fi
7821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7822 fi
7823 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7824 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7825 if test $ac_cv_type_uint32_t = yes; then
7826   :
7827 else
7828
7829 cat >>confdefs.h <<_ACEOF
7830 #define uint32_t unsigned int
7831 _ACEOF
7832
7833 fi
7834
7835 elif test "$ac_cv_sizeof_short" = 4 ; then
7836   echo "$as_me:$LINENO: checking for int32_t" >&5
7837 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7838 if test "${ac_cv_type_int32_t+set}" = set; then
7839   echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841   cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h.  */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h.  */
7847 $ac_includes_default
7848 int
7849 main ()
7850 {
7851 if ((int32_t *) 0)
7852   return 0;
7853 if (sizeof (int32_t))
7854   return 0;
7855   ;
7856   return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7861   (eval $ac_compile) 2>conftest.er1
7862   ac_status=$?
7863   grep -v '^ *+' conftest.er1 >conftest.err
7864   rm -f conftest.er1
7865   cat conftest.err >&5
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); } &&
7868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870   (eval $ac_try) 2>&5
7871   ac_status=$?
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); }; } &&
7874          { ac_try='test -s conftest.$ac_objext'
7875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876   (eval $ac_try) 2>&5
7877   ac_status=$?
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); }; }; then
7880   ac_cv_type_int32_t=yes
7881 else
7882   echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7884
7885 ac_cv_type_int32_t=no
7886 fi
7887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7888 fi
7889 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7890 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
7891 if test $ac_cv_type_int32_t = yes; then
7892   :
7893 else
7894
7895 cat >>confdefs.h <<_ACEOF
7896 #define int32_t short
7897 _ACEOF
7898
7899 fi
7900
7901   echo "$as_me:$LINENO: checking for uint32_t" >&5
7902 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7903 if test "${ac_cv_type_uint32_t+set}" = set; then
7904   echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906   cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h.  */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h.  */
7912 $ac_includes_default
7913 int
7914 main ()
7915 {
7916 if ((uint32_t *) 0)
7917   return 0;
7918 if (sizeof (uint32_t))
7919   return 0;
7920   ;
7921   return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7926   (eval $ac_compile) 2>conftest.er1
7927   ac_status=$?
7928   grep -v '^ *+' conftest.er1 >conftest.err
7929   rm -f conftest.er1
7930   cat conftest.err >&5
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } &&
7933          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935   (eval $ac_try) 2>&5
7936   ac_status=$?
7937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938   (exit $ac_status); }; } &&
7939          { ac_try='test -s conftest.$ac_objext'
7940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941   (eval $ac_try) 2>&5
7942   ac_status=$?
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); }; }; then
7945   ac_cv_type_uint32_t=yes
7946 else
7947   echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7949
7950 ac_cv_type_uint32_t=no
7951 fi
7952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7953 fi
7954 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7955 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7956 if test $ac_cv_type_uint32_t = yes; then
7957   :
7958 else
7959
7960 cat >>confdefs.h <<_ACEOF
7961 #define uint32_t unsigned short
7962 _ACEOF
7963
7964 fi
7965
7966 elif test "$ac_cv_sizeof_long" = 4 ; then
7967   echo "$as_me:$LINENO: checking for int32_t" >&5
7968 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
7969 if test "${ac_cv_type_int32_t+set}" = set; then
7970   echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972   cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h.  */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h.  */
7978 $ac_includes_default
7979 int
7980 main ()
7981 {
7982 if ((int32_t *) 0)
7983   return 0;
7984 if (sizeof (int32_t))
7985   return 0;
7986   ;
7987   return 0;
7988 }
7989 _ACEOF
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992   (eval $ac_compile) 2>conftest.er1
7993   ac_status=$?
7994   grep -v '^ *+' conftest.er1 >conftest.err
7995   rm -f conftest.er1
7996   cat conftest.err >&5
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); } &&
7999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001   (eval $ac_try) 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); }; } &&
8005          { ac_try='test -s conftest.$ac_objext'
8006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007   (eval $ac_try) 2>&5
8008   ac_status=$?
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); }; }; then
8011   ac_cv_type_int32_t=yes
8012 else
8013   echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016 ac_cv_type_int32_t=no
8017 fi
8018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8019 fi
8020 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8021 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
8022 if test $ac_cv_type_int32_t = yes; then
8023   :
8024 else
8025
8026 cat >>confdefs.h <<_ACEOF
8027 #define int32_t long
8028 _ACEOF
8029
8030 fi
8031
8032   echo "$as_me:$LINENO: checking for uint32_t" >&5
8033 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
8034 if test "${ac_cv_type_uint32_t+set}" = set; then
8035   echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037   cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h.  */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h.  */
8043 $ac_includes_default
8044 int
8045 main ()
8046 {
8047 if ((uint32_t *) 0)
8048   return 0;
8049 if (sizeof (uint32_t))
8050   return 0;
8051   ;
8052   return 0;
8053 }
8054 _ACEOF
8055 rm -f conftest.$ac_objext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8057   (eval $ac_compile) 2>conftest.er1
8058   ac_status=$?
8059   grep -v '^ *+' conftest.er1 >conftest.err
8060   rm -f conftest.er1
8061   cat conftest.err >&5
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); } &&
8064          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066   (eval $ac_try) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); }; } &&
8070          { ac_try='test -s conftest.$ac_objext'
8071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072   (eval $ac_try) 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; }; then
8076   ac_cv_type_uint32_t=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081 ac_cv_type_uint32_t=no
8082 fi
8083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8084 fi
8085 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8086 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8087 if test $ac_cv_type_uint32_t = yes; then
8088   :
8089 else
8090
8091 cat >>confdefs.h <<_ACEOF
8092 #define uint32_t unsigned long
8093 _ACEOF
8094
8095 fi
8096
8097 else
8098   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8099 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8100    { (exit 1); exit 1; }; }
8101 fi
8102 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8103   echo "$as_me:$LINENO: checking for int64_t" >&5
8104 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8105 if test "${ac_cv_type_int64_t+set}" = set; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108   cat >conftest.$ac_ext <<_ACEOF
8109 /* confdefs.h.  */
8110 _ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h.  */
8114 $ac_includes_default
8115 int
8116 main ()
8117 {
8118 if ((int64_t *) 0)
8119   return 0;
8120 if (sizeof (int64_t))
8121   return 0;
8122   ;
8123   return 0;
8124 }
8125 _ACEOF
8126 rm -f conftest.$ac_objext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128   (eval $ac_compile) 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } &&
8135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137   (eval $ac_try) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; } &&
8141          { ac_try='test -s conftest.$ac_objext'
8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143   (eval $ac_try) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; }; then
8147   ac_cv_type_int64_t=yes
8148 else
8149   echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152 ac_cv_type_int64_t=no
8153 fi
8154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8155 fi
8156 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8157 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8158
8159   echo "$as_me:$LINENO: checking for uint64_t" >&5
8160 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8161 if test "${ac_cv_type_uint64_t+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170 $ac_includes_default
8171 int
8172 main ()
8173 {
8174 if ((uint64_t *) 0)
8175   return 0;
8176 if (sizeof (uint64_t))
8177   return 0;
8178   ;
8179   return 0;
8180 }
8181 _ACEOF
8182 rm -f conftest.$ac_objext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8184   (eval $ac_compile) 2>conftest.er1
8185   ac_status=$?
8186   grep -v '^ *+' conftest.er1 >conftest.err
8187   rm -f conftest.er1
8188   cat conftest.err >&5
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); } &&
8191          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193   (eval $ac_try) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; } &&
8197          { ac_try='test -s conftest.$ac_objext'
8198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199   (eval $ac_try) 2>&5
8200   ac_status=$?
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); }; }; then
8203   ac_cv_type_uint64_t=yes
8204 else
8205   echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208 ac_cv_type_uint64_t=no
8209 fi
8210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8213 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8214
8215 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8216   echo "$as_me:$LINENO: checking for int64_t" >&5
8217 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
8218 if test "${ac_cv_type_int64_t+set}" = set; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221   cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h.  */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h.  */
8227 $ac_includes_default
8228 int
8229 main ()
8230 {
8231 if ((int64_t *) 0)
8232   return 0;
8233 if (sizeof (int64_t))
8234   return 0;
8235   ;
8236   return 0;
8237 }
8238 _ACEOF
8239 rm -f conftest.$ac_objext
8240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8241   (eval $ac_compile) 2>conftest.er1
8242   ac_status=$?
8243   grep -v '^ *+' conftest.er1 >conftest.err
8244   rm -f conftest.er1
8245   cat conftest.err >&5
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); } &&
8248          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250   (eval $ac_try) 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); }; } &&
8254          { ac_try='test -s conftest.$ac_objext'
8255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256   (eval $ac_try) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); }; }; then
8260   ac_cv_type_int64_t=yes
8261 else
8262   echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8264
8265 ac_cv_type_int64_t=no
8266 fi
8267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8268 fi
8269 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8270 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
8271 if test $ac_cv_type_int64_t = yes; then
8272   :
8273 else
8274
8275 cat >>confdefs.h <<_ACEOF
8276 #define int64_t long long
8277 _ACEOF
8278
8279 fi
8280
8281   echo "$as_me:$LINENO: checking for uint64_t" >&5
8282 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
8283 if test "${ac_cv_type_uint64_t+set}" = set; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286   cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h.  */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h.  */
8292 $ac_includes_default
8293 int
8294 main ()
8295 {
8296 if ((uint64_t *) 0)
8297   return 0;
8298 if (sizeof (uint64_t))
8299   return 0;
8300   ;
8301   return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest.$ac_objext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8306   (eval $ac_compile) 2>conftest.er1
8307   ac_status=$?
8308   grep -v '^ *+' conftest.er1 >conftest.err
8309   rm -f conftest.er1
8310   cat conftest.err >&5
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); } &&
8313          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315   (eval $ac_try) 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; } &&
8319          { ac_try='test -s conftest.$ac_objext'
8320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321   (eval $ac_try) 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); }; }; then
8325   ac_cv_type_uint64_t=yes
8326 else
8327   echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330 ac_cv_type_uint64_t=no
8331 fi
8332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8335 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8336 if test $ac_cv_type_uint64_t = yes; then
8337   :
8338 else
8339
8340 cat >>confdefs.h <<_ACEOF
8341 #define uint64_t unsigned long long
8342 _ACEOF
8343
8344 fi
8345
8346 else
8347   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8348 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8349    { (exit 1); exit 1; }; }
8350 fi
8351 echo "$as_me:$LINENO: checking for socklen_t" >&5
8352 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8353 if test "${ac_cv_type_socklen_t+set}" = set; then
8354   echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356   cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362 $ac_includes_default
8363 int
8364 main ()
8365 {
8366 if ((socklen_t *) 0)
8367   return 0;
8368 if (sizeof (socklen_t))
8369   return 0;
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8376   (eval $ac_compile) 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385   (eval $ac_try) 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); }; } &&
8389          { ac_try='test -s conftest.$ac_objext'
8390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391   (eval $ac_try) 2>&5
8392   ac_status=$?
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); }; }; then
8395   ac_cv_type_socklen_t=yes
8396 else
8397   echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8399
8400 ac_cv_type_socklen_t=no
8401 fi
8402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8403 fi
8404 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8405 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
8406 if test $ac_cv_type_socklen_t = yes; then
8407   :
8408 else
8409
8410 cat >>confdefs.h <<_ACEOF
8411 #define socklen_t unsigned int
8412 _ACEOF
8413
8414 fi
8415
8416 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8417 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8418 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h.  */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h.  */
8427 #include <sys/types.h>
8428 #include <netinet/in.h>
8429
8430 int
8431 main ()
8432 {
8433 if ((struct sockaddr_in6 *) 0)
8434   return 0;
8435 if (sizeof (struct sockaddr_in6))
8436   return 0;
8437   ;
8438   return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8443   (eval $ac_compile) 2>conftest.er1
8444   ac_status=$?
8445   grep -v '^ *+' conftest.er1 >conftest.err
8446   rm -f conftest.er1
8447   cat conftest.err >&5
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); } &&
8450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452   (eval $ac_try) 2>&5
8453   ac_status=$?
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); }; } &&
8456          { ac_try='test -s conftest.$ac_objext'
8457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458   (eval $ac_try) 2>&5
8459   ac_status=$?
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); }; }; then
8462   ac_cv_type_struct_sockaddr_in6=yes
8463 else
8464   echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8466
8467 ac_cv_type_struct_sockaddr_in6=no
8468 fi
8469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8470 fi
8471 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8472 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
8473 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8474   unet_have_sockaddr_in6="yes"
8475 else
8476   unet_have_sockaddr_in6="no"
8477 fi
8478
8479
8480
8481
8482
8483
8484 for ac_func in kqueue setrlimit getrusage times
8485 do
8486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8487 echo "$as_me:$LINENO: checking for $ac_func" >&5
8488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8489 if eval "test \"\${$as_ac_var+set}\" = set"; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8500 #define $ac_func innocuous_$ac_func
8501
8502 /* System header to define __stub macros and hopefully few prototypes,
8503     which can conflict with char $ac_func (); below.
8504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8505     <limits.h> exists even on freestanding compilers.  */
8506
8507 #ifdef __STDC__
8508 # include <limits.h>
8509 #else
8510 # include <assert.h>
8511 #endif
8512
8513 #undef $ac_func
8514
8515 /* Override any gcc2 internal prototype to avoid an error.  */
8516 #ifdef __cplusplus
8517 extern "C"
8518 {
8519 #endif
8520 /* We use char because int might match the return type of a gcc2
8521    builtin and then its argument prototype would still apply.  */
8522 char $ac_func ();
8523 /* The GNU C library defines this for functions which it implements
8524     to always fail with ENOSYS.  Some functions are actually named
8525     something starting with __ and the normal name is an alias.  */
8526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8527 choke me
8528 #else
8529 char (*f) () = $ac_func;
8530 #endif
8531 #ifdef __cplusplus
8532 }
8533 #endif
8534
8535 int
8536 main ()
8537 {
8538 return f != $ac_func;
8539   ;
8540   return 0;
8541 }
8542 _ACEOF
8543 rm -f conftest.$ac_objext conftest$ac_exeext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8545   (eval $ac_link) 2>conftest.er1
8546   ac_status=$?
8547   grep -v '^ *+' conftest.er1 >conftest.err
8548   rm -f conftest.er1
8549   cat conftest.err >&5
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); } &&
8552          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554   (eval $ac_try) 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); }; } &&
8558          { ac_try='test -s conftest$ac_exeext'
8559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560   (eval $ac_try) 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; }; then
8564   eval "$as_ac_var=yes"
8565 else
8566   echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569 eval "$as_ac_var=no"
8570 fi
8571 rm -f conftest.err conftest.$ac_objext \
8572       conftest$ac_exeext conftest.$ac_ext
8573 fi
8574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8576 if test `eval echo '${'$as_ac_var'}'` = yes; then
8577   cat >>confdefs.h <<_ACEOF
8578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8579 _ACEOF
8580
8581 fi
8582 done
8583
8584
8585 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8586 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8587 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8588   echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590   cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h.  */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h.  */
8596 #include <sys/types.h>
8597 #include <sys/wait.h>
8598 #ifndef WEXITSTATUS
8599 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8600 #endif
8601 #ifndef WIFEXITED
8602 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8603 #endif
8604
8605 int
8606 main ()
8607 {
8608   int s;
8609   wait (&s);
8610   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 rm -f conftest.$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617   (eval $ac_compile) 2>conftest.er1
8618   ac_status=$?
8619   grep -v '^ *+' conftest.er1 >conftest.err
8620   rm -f conftest.er1
8621   cat conftest.err >&5
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } &&
8624          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626   (eval $ac_try) 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; } &&
8630          { ac_try='test -s conftest.$ac_objext'
8631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632   (eval $ac_try) 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; }; then
8636   ac_cv_header_sys_wait_h=yes
8637 else
8638   echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8640
8641 ac_cv_header_sys_wait_h=no
8642 fi
8643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8644 fi
8645 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8646 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8647 if test $ac_cv_header_sys_wait_h = yes; then
8648
8649 cat >>confdefs.h <<\_ACEOF
8650 #define HAVE_SYS_WAIT_H 1
8651 _ACEOF
8652
8653 fi
8654
8655
8656 for ac_header in unistd.h
8657 do
8658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8660   echo "$as_me:$LINENO: checking for $ac_header" >&5
8661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 fi
8665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8667 else
8668   # Is the header compilable?
8669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h.  */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h.  */
8677 $ac_includes_default
8678 #include <$ac_header>
8679 _ACEOF
8680 rm -f conftest.$ac_objext
8681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8682   (eval $ac_compile) 2>conftest.er1
8683   ac_status=$?
8684   grep -v '^ *+' conftest.er1 >conftest.err
8685   rm -f conftest.er1
8686   cat conftest.err >&5
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); } &&
8689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691   (eval $ac_try) 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; } &&
8695          { ac_try='test -s conftest.$ac_objext'
8696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697   (eval $ac_try) 2>&5
8698   ac_status=$?
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); }; }; then
8701   ac_header_compiler=yes
8702 else
8703   echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8705
8706 ac_header_compiler=no
8707 fi
8708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8710 echo "${ECHO_T}$ac_header_compiler" >&6
8711
8712 # Is the header present?
8713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8715 cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h.  */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h.  */
8721 #include <$ac_header>
8722 _ACEOF
8723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8725   ac_status=$?
8726   grep -v '^ *+' conftest.er1 >conftest.err
8727   rm -f conftest.er1
8728   cat conftest.err >&5
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); } >/dev/null; then
8731   if test -s conftest.err; then
8732     ac_cpp_err=$ac_c_preproc_warn_flag
8733     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8734   else
8735     ac_cpp_err=
8736   fi
8737 else
8738   ac_cpp_err=yes
8739 fi
8740 if test -z "$ac_cpp_err"; then
8741   ac_header_preproc=yes
8742 else
8743   echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746   ac_header_preproc=no
8747 fi
8748 rm -f conftest.err conftest.$ac_ext
8749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8750 echo "${ECHO_T}$ac_header_preproc" >&6
8751
8752 # So?  What about this header?
8753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8754   yes:no: )
8755     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8759     ac_header_preproc=yes
8760     ;;
8761   no:yes:* )
8762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8764     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8765 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8766     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8768     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8769 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8772     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8774     (
8775       cat <<\_ASBOX
8776 ## ------------------------------------------ ##
8777 ## Report this to the AC_PACKAGE_NAME lists.  ##
8778 ## ------------------------------------------ ##
8779 _ASBOX
8780     ) |
8781       sed "s/^/$as_me: WARNING:     /" >&2
8782     ;;
8783 esac
8784 echo "$as_me:$LINENO: checking for $ac_header" >&5
8785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8787   echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789   eval "$as_ac_Header=\$ac_header_preproc"
8790 fi
8791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8793
8794 fi
8795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8796   cat >>confdefs.h <<_ACEOF
8797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8798 _ACEOF
8799
8800 fi
8801
8802 done
8803
8804 echo "$as_me:$LINENO: checking for restartable system calls" >&5
8805 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
8806 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
8807   echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809   if test "$cross_compiling" = yes; then
8810   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8811 See \`config.log' for more details." >&5
8812 echo "$as_me: error: cannot run test program while cross compiling
8813 See \`config.log' for more details." >&2;}
8814    { (exit 1); exit 1; }; }
8815 else
8816   cat >conftest.$ac_ext <<_ACEOF
8817 /* confdefs.h.  */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h.  */
8822 /* Exit 0 (true) if wait returns something other than -1,
8823    i.e. the pid of the child, which means that wait was restarted
8824    after getting the signal.  */
8825
8826 #include <sys/types.h>
8827 #include <signal.h>
8828 #if HAVE_UNISTD_H
8829 # include <unistd.h>
8830 #endif
8831 #if HAVE_SYS_WAIT_H
8832 # include <sys/wait.h>
8833 #endif
8834
8835 /* Some platforms explicitly require an extern "C" signal handler
8836    when using C++. */
8837 #ifdef __cplusplus
8838 extern "C" void ucatch (int dummy) { }
8839 #else
8840 void ucatch (dummy) int dummy; { }
8841 #endif
8842
8843 int
8844 main ()
8845 {
8846   int i = fork (), status;
8847
8848   if (i == 0)
8849     {
8850       sleep (3);
8851       kill (getppid (), SIGINT);
8852       sleep (3);
8853       exit (0);
8854     }
8855
8856   signal (SIGINT, ucatch);
8857
8858   status = wait (&i);
8859   if (status == -1)
8860     wait (&i);
8861
8862   exit (status == -1);
8863 }
8864 _ACEOF
8865 rm -f conftest$ac_exeext
8866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8867   (eval $ac_link) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872   (eval $ac_try) 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); }; }; then
8876   ac_cv_sys_restartable_syscalls=yes
8877 else
8878   echo "$as_me: program exited with status $ac_status" >&5
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8881
8882 ( exit $ac_status )
8883 ac_cv_sys_restartable_syscalls=no
8884 fi
8885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8886 fi
8887 fi
8888 echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
8889 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
8890 if test $ac_cv_sys_restartable_syscalls = yes; then
8891
8892 cat >>confdefs.h <<\_ACEOF
8893 #define HAVE_RESTARTABLE_SYSCALLS 1
8894 _ACEOF
8895
8896 fi
8897
8898
8899 echo "$as_me:$LINENO: checking for donuts" >&5
8900 echo $ECHO_N "checking for donuts... $ECHO_C" >&6
8901 echo "$as_me:$LINENO: result: yes" >&5
8902 echo "${ECHO_T}yes" >&6
8903
8904 for ac_prog in gawk mawk nawk awk
8905 do
8906   # Extract the first word of "$ac_prog", so it can be a program name with args.
8907 set dummy $ac_prog; ac_word=$2
8908 echo "$as_me:$LINENO: checking for $ac_word" >&5
8909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8910 if test "${ac_cv_prog_AWK+set}" = set; then
8911   echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913   if test -n "$AWK"; then
8914   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8915 else
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8918 do
8919   IFS=$as_save_IFS
8920   test -z "$as_dir" && as_dir=.
8921   for ac_exec_ext in '' $ac_executable_extensions; do
8922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923     ac_cv_prog_AWK="$ac_prog"
8924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8925     break 2
8926   fi
8927 done
8928 done
8929
8930 fi
8931 fi
8932 AWK=$ac_cv_prog_AWK
8933 if test -n "$AWK"; then
8934   echo "$as_me:$LINENO: result: $AWK" >&5
8935 echo "${ECHO_T}$AWK" >&6
8936 else
8937   echo "$as_me:$LINENO: result: no" >&5
8938 echo "${ECHO_T}no" >&6
8939 fi
8940
8941   test -n "$AWK" && break
8942 done
8943
8944 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8945 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8946 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8947 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8948   echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950   cat >conftest.make <<\_ACEOF
8951 all:
8952         @echo 'ac_maketemp="$(MAKE)"'
8953 _ACEOF
8954 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8955 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8956 if test -n "$ac_maketemp"; then
8957   eval ac_cv_prog_make_${ac_make}_set=yes
8958 else
8959   eval ac_cv_prog_make_${ac_make}_set=no
8960 fi
8961 rm -f conftest.make
8962 fi
8963 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8964   echo "$as_me:$LINENO: result: yes" >&5
8965 echo "${ECHO_T}yes" >&6
8966   SET_MAKE=
8967 else
8968   echo "$as_me:$LINENO: result: no" >&5
8969 echo "${ECHO_T}no" >&6
8970   SET_MAKE="MAKE=${MAKE-make}"
8971 fi
8972
8973 # Find a good install program.  We prefer a C program (faster),
8974 # so one script is as good as another.  But avoid the broken or
8975 # incompatible versions:
8976 # SysV /etc/install, /usr/sbin/install
8977 # SunOS /usr/etc/install
8978 # IRIX /sbin/install
8979 # AIX /bin/install
8980 # AmigaOS /C/install, which installs bootblocks on floppy discs
8981 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8984 # OS/2's system install, which has a completely different semantic
8985 # ./install, which can be erroneously created by make from ./install.sh.
8986 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8987 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8988 if test -z "$INSTALL"; then
8989 if test "${ac_cv_path_install+set}" = set; then
8990   echo $ECHO_N "(cached) $ECHO_C" >&6
8991 else
8992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993 for as_dir in $PATH
8994 do
8995   IFS=$as_save_IFS
8996   test -z "$as_dir" && as_dir=.
8997   # Account for people who put trailing slashes in PATH elements.
8998 case $as_dir/ in
8999   ./ | .// | /cC/* | \
9000   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9001   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9002   /usr/ucb/* ) ;;
9003   *)
9004     # OSF1 and SCO ODT 3.0 have their own names for install.
9005     # Don't use installbsd from OSF since it installs stuff as root
9006     # by default.
9007     for ac_prog in ginstall scoinst install; do
9008       for ac_exec_ext in '' $ac_executable_extensions; do
9009         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9010           if test $ac_prog = install &&
9011             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9012             # AIX install.  It has an incompatible calling convention.
9013             :
9014           elif test $ac_prog = install &&
9015             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9016             # program-specific install script used by HP pwplus--don't use.
9017             :
9018           else
9019             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9020             break 3
9021           fi
9022         fi
9023       done
9024     done
9025     ;;
9026 esac
9027 done
9028
9029
9030 fi
9031   if test "${ac_cv_path_install+set}" = set; then
9032     INSTALL=$ac_cv_path_install
9033   else
9034     # As a last resort, use the slow shell script.  We don't cache a
9035     # path for INSTALL within a source directory, because that will
9036     # break other packages using the cache if that directory is
9037     # removed, or if the path is relative.
9038     INSTALL=$ac_install_sh
9039   fi
9040 fi
9041 echo "$as_me:$LINENO: result: $INSTALL" >&5
9042 echo "${ECHO_T}$INSTALL" >&6
9043
9044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9045 # It thinks the first close brace ends the variable substitution.
9046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9047
9048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9049
9050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9051
9052 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9053 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9054 LN_S=$as_ln_s
9055 if test "$LN_S" = "ln -s"; then
9056   echo "$as_me:$LINENO: result: yes" >&5
9057 echo "${ECHO_T}yes" >&6
9058 else
9059   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9060 echo "${ECHO_T}no, using $LN_S" >&6
9061 fi
9062
9063 for ac_prog in rm
9064 do
9065   # Extract the first word of "$ac_prog", so it can be a program name with args.
9066 set dummy $ac_prog; ac_word=$2
9067 echo "$as_me:$LINENO: checking for $ac_word" >&5
9068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9069 if test "${ac_cv_path_RMPROG+set}" = set; then
9070   echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072   case $RMPROG in
9073   [\\/]* | ?:[\\/]*)
9074   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9075   ;;
9076   *)
9077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9079 do
9080   IFS=$as_save_IFS
9081   test -z "$as_dir" && as_dir=.
9082   for ac_exec_ext in '' $ac_executable_extensions; do
9083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9084     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9086     break 2
9087   fi
9088 done
9089 done
9090
9091   ;;
9092 esac
9093 fi
9094 RMPROG=$ac_cv_path_RMPROG
9095
9096 if test -n "$RMPROG"; then
9097   echo "$as_me:$LINENO: result: $RMPROG" >&5
9098 echo "${ECHO_T}$RMPROG" >&6
9099 else
9100   echo "$as_me:$LINENO: result: no" >&5
9101 echo "${ECHO_T}no" >&6
9102 fi
9103
9104   test -n "$RMPROG" && break
9105 done
9106 test -n "$RMPROG" || RMPROG="/bin/rm"
9107
9108 for ac_prog in sh
9109 do
9110   # Extract the first word of "$ac_prog", so it can be a program name with args.
9111 set dummy $ac_prog; ac_word=$2
9112 echo "$as_me:$LINENO: checking for $ac_word" >&5
9113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9114 if test "${ac_cv_path_SHPROG+set}" = set; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117   case $SHPROG in
9118   [\\/]* | ?:[\\/]*)
9119   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9120   ;;
9121   *)
9122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 for as_dir in $PATH
9124 do
9125   IFS=$as_save_IFS
9126   test -z "$as_dir" && as_dir=.
9127   for ac_exec_ext in '' $ac_executable_extensions; do
9128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9129     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9131     break 2
9132   fi
9133 done
9134 done
9135
9136   ;;
9137 esac
9138 fi
9139 SHPROG=$ac_cv_path_SHPROG
9140
9141 if test -n "$SHPROG"; then
9142   echo "$as_me:$LINENO: result: $SHPROG" >&5
9143 echo "${ECHO_T}$SHPROG" >&6
9144 else
9145   echo "$as_me:$LINENO: result: no" >&5
9146 echo "${ECHO_T}no" >&6
9147 fi
9148
9149   test -n "$SHPROG" && break
9150 done
9151 test -n "$SHPROG" || SHPROG="/bin/sh"
9152
9153
9154 for ac_prog in flex lex
9155 do
9156   # Extract the first word of "$ac_prog", so it can be a program name with args.
9157 set dummy $ac_prog; ac_word=$2
9158 echo "$as_me:$LINENO: checking for $ac_word" >&5
9159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9160 if test "${ac_cv_prog_LEX+set}" = set; then
9161   echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163   if test -n "$LEX"; then
9164   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9165 else
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 for as_dir in $PATH
9168 do
9169   IFS=$as_save_IFS
9170   test -z "$as_dir" && as_dir=.
9171   for ac_exec_ext in '' $ac_executable_extensions; do
9172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9173     ac_cv_prog_LEX="$ac_prog"
9174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9175     break 2
9176   fi
9177 done
9178 done
9179
9180 fi
9181 fi
9182 LEX=$ac_cv_prog_LEX
9183 if test -n "$LEX"; then
9184   echo "$as_me:$LINENO: result: $LEX" >&5
9185 echo "${ECHO_T}$LEX" >&6
9186 else
9187   echo "$as_me:$LINENO: result: no" >&5
9188 echo "${ECHO_T}no" >&6
9189 fi
9190
9191   test -n "$LEX" && break
9192 done
9193 test -n "$LEX" || LEX=":"
9194
9195 if test -z "$LEXLIB"
9196 then
9197   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9198 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9199 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9200   echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202   ac_check_lib_save_LIBS=$LIBS
9203 LIBS="-lfl  $LIBS"
9204 cat >conftest.$ac_ext <<_ACEOF
9205 /* confdefs.h.  */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h.  */
9210
9211 /* Override any gcc2 internal prototype to avoid an error.  */
9212 #ifdef __cplusplus
9213 extern "C"
9214 #endif
9215 /* We use char because int might match the return type of a gcc2
9216    builtin and then its argument prototype would still apply.  */
9217 char yywrap ();
9218 int
9219 main ()
9220 {
9221 yywrap ();
9222   ;
9223   return 0;
9224 }
9225 _ACEOF
9226 rm -f conftest.$ac_objext conftest$ac_exeext
9227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9228   (eval $ac_link) 2>conftest.er1
9229   ac_status=$?
9230   grep -v '^ *+' conftest.er1 >conftest.err
9231   rm -f conftest.er1
9232   cat conftest.err >&5
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); } &&
9235          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237   (eval $ac_try) 2>&5
9238   ac_status=$?
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); }; } &&
9241          { ac_try='test -s conftest$ac_exeext'
9242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243   (eval $ac_try) 2>&5
9244   ac_status=$?
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); }; }; then
9247   ac_cv_lib_fl_yywrap=yes
9248 else
9249   echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9251
9252 ac_cv_lib_fl_yywrap=no
9253 fi
9254 rm -f conftest.err conftest.$ac_objext \
9255       conftest$ac_exeext conftest.$ac_ext
9256 LIBS=$ac_check_lib_save_LIBS
9257 fi
9258 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9259 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9260 if test $ac_cv_lib_fl_yywrap = yes; then
9261   LEXLIB="-lfl"
9262 else
9263   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9264 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9265 if test "${ac_cv_lib_l_yywrap+set}" = set; then
9266   echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268   ac_check_lib_save_LIBS=$LIBS
9269 LIBS="-ll  $LIBS"
9270 cat >conftest.$ac_ext <<_ACEOF
9271 /* confdefs.h.  */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h.  */
9276
9277 /* Override any gcc2 internal prototype to avoid an error.  */
9278 #ifdef __cplusplus
9279 extern "C"
9280 #endif
9281 /* We use char because int might match the return type of a gcc2
9282    builtin and then its argument prototype would still apply.  */
9283 char yywrap ();
9284 int
9285 main ()
9286 {
9287 yywrap ();
9288   ;
9289   return 0;
9290 }
9291 _ACEOF
9292 rm -f conftest.$ac_objext conftest$ac_exeext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9294   (eval $ac_link) 2>conftest.er1
9295   ac_status=$?
9296   grep -v '^ *+' conftest.er1 >conftest.err
9297   rm -f conftest.er1
9298   cat conftest.err >&5
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); } &&
9301          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303   (eval $ac_try) 2>&5
9304   ac_status=$?
9305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306   (exit $ac_status); }; } &&
9307          { ac_try='test -s conftest$ac_exeext'
9308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309   (eval $ac_try) 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); }; }; then
9313   ac_cv_lib_l_yywrap=yes
9314 else
9315   echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9317
9318 ac_cv_lib_l_yywrap=no
9319 fi
9320 rm -f conftest.err conftest.$ac_objext \
9321       conftest$ac_exeext conftest.$ac_ext
9322 LIBS=$ac_check_lib_save_LIBS
9323 fi
9324 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9325 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9326 if test $ac_cv_lib_l_yywrap = yes; then
9327   LEXLIB="-ll"
9328 fi
9329
9330 fi
9331
9332 fi
9333
9334 if test "x$LEX" != "x:"; then
9335   echo "$as_me:$LINENO: checking lex output file root" >&5
9336 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9337 if test "${ac_cv_prog_lex_root+set}" = set; then
9338   echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340   # The minimal lex program is just a single line: %%.  But some broken lexes
9341 # (Solaris, I think it was) want two %% lines, so accommodate them.
9342 cat >conftest.l <<_ACEOF
9343 %%
9344 %%
9345 _ACEOF
9346 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9347   (eval $LEX conftest.l) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); }
9351 if test -f lex.yy.c; then
9352   ac_cv_prog_lex_root=lex.yy
9353 elif test -f lexyy.c; then
9354   ac_cv_prog_lex_root=lexyy
9355 else
9356   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9357 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9358    { (exit 1); exit 1; }; }
9359 fi
9360 fi
9361 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9362 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
9363 rm -f conftest.l
9364 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9365
9366 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9367 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9368 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9369   echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371   # POSIX says lex can declare yytext either as a pointer or an array; the
9372 # default is implementation-dependent. Figure out which it is, since
9373 # not all implementations provide the %pointer and %array declarations.
9374 ac_cv_prog_lex_yytext_pointer=no
9375 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
9376 ac_save_LIBS=$LIBS
9377 LIBS="$LIBS $LEXLIB"
9378 cat >conftest.$ac_ext <<_ACEOF
9379 `cat $LEX_OUTPUT_ROOT.c`
9380 _ACEOF
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383   (eval $ac_link) 2>conftest.er1
9384   ac_status=$?
9385   grep -v '^ *+' conftest.er1 >conftest.err
9386   rm -f conftest.er1
9387   cat conftest.err >&5
9388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389   (exit $ac_status); } &&
9390          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392   (eval $ac_try) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); }; } &&
9396          { ac_try='test -s conftest$ac_exeext'
9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398   (eval $ac_try) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; }; then
9402   ac_cv_prog_lex_yytext_pointer=yes
9403 else
9404   echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407 fi
9408 rm -f conftest.err conftest.$ac_objext \
9409       conftest$ac_exeext conftest.$ac_ext
9410 LIBS=$ac_save_LIBS
9411 rm -f "${LEX_OUTPUT_ROOT}.c"
9412
9413 fi
9414 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9415 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9416 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9417
9418 cat >>confdefs.h <<\_ACEOF
9419 #define YYTEXT_POINTER 1
9420 _ACEOF
9421
9422 fi
9423
9424 fi
9425 if test "$LEX" = ":" ; then
9426   { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9427 echo "$as_me: error: Cannot find flex." >&2;}
9428    { (exit 1); exit 1; }; }
9429 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9430   :
9431 else
9432   { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9433 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9434    { (exit 1); exit 1; }; }
9435 fi
9436
9437 if test -z "$LEXLIB" ; then
9438   { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
9439   It's possible the compiler you're using ($CC) is incompatible with the
9440   installed library.
9441 See \`config.log' for more details." >&5
9442 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
9443   It's possible the compiler you're using ($CC) is incompatible with the
9444   installed library.
9445 See \`config.log' for more details." >&2;}
9446    { (exit 1); exit 1; }; }
9447 fi
9448
9449 LIBS="$LEXLIB $LIBS"
9450
9451 for ac_prog in 'bison -y' byacc
9452 do
9453   # Extract the first word of "$ac_prog", so it can be a program name with args.
9454 set dummy $ac_prog; ac_word=$2
9455 echo "$as_me:$LINENO: checking for $ac_word" >&5
9456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9457 if test "${ac_cv_prog_YACC+set}" = set; then
9458   echo $ECHO_N "(cached) $ECHO_C" >&6
9459 else
9460   if test -n "$YACC"; then
9461   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9462 else
9463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9464 for as_dir in $PATH
9465 do
9466   IFS=$as_save_IFS
9467   test -z "$as_dir" && as_dir=.
9468   for ac_exec_ext in '' $ac_executable_extensions; do
9469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9470     ac_cv_prog_YACC="$ac_prog"
9471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9472     break 2
9473   fi
9474 done
9475 done
9476
9477 fi
9478 fi
9479 YACC=$ac_cv_prog_YACC
9480 if test -n "$YACC"; then
9481   echo "$as_me:$LINENO: result: $YACC" >&5
9482 echo "${ECHO_T}$YACC" >&6
9483 else
9484   echo "$as_me:$LINENO: result: no" >&5
9485 echo "${ECHO_T}no" >&6
9486 fi
9487
9488   test -n "$YACC" && break
9489 done
9490 test -n "$YACC" || YACC="yacc"
9491
9492 if test "$YACC" = ":" ; then
9493   { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9494 echo "$as_me: error: Cannot find yacc." >&2;}
9495    { (exit 1); exit 1; }; }
9496 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9497   :
9498 else
9499   { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9500 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9501 fi
9502
9503 echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9504 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6
9505 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508   if test "$cross_compiling" = yes; then
9509   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9510 See \`config.log' for more details." >&5
9511 echo "$as_me: error: cannot run test program while cross compiling
9512 See \`config.log' for more details." >&2;}
9513    { (exit 1); exit 1; }; }
9514 else
9515   cat >conftest.$ac_ext <<_ACEOF
9516 /* confdefs.h.  */
9517 _ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h.  */
9521 #include <sys/types.h>
9522 #include <sys/socket.h>
9523 #include <fcntl.h>
9524 #include <sys/ioctl.h>
9525 #include <sys/file.h>
9526 #include <signal.h>
9527 $ac_cv_type_signal alarmed() { exit(1); }
9528 int main(void)
9529 {
9530   char b[12];
9531   struct sockaddr x;
9532   size_t l = sizeof(x);
9533   int f = socket(AF_INET, SOCK_DGRAM, 0);
9534   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9535   {
9536     signal(SIGALRM, alarmed);
9537     alarm(2);
9538     recvfrom(f, b, 12, 0, &x, &l);
9539     alarm(0);
9540     exit(0);
9541   }
9542   exit(1);
9543 }
9544 _ACEOF
9545 rm -f conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547   (eval $ac_link) 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552   (eval $ac_try) 2>&5
9553   ac_status=$?
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); }; }; then
9556   unet_cv_sys_nonblocking_posix=yes
9557 else
9558   echo "$as_me: program exited with status $ac_status" >&5
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9561
9562 ( exit $ac_status )
9563 unet_cv_sys_nonblocking_posix=no
9564 fi
9565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9566 fi
9567 fi
9568 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9569 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6
9570 if test $unet_cv_sys_nonblocking_posix = yes; then
9571
9572 cat >>confdefs.h <<\_ACEOF
9573 #define NBLOCK_POSIX
9574 _ACEOF
9575
9576 else
9577 echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9578 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6
9579 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9580   echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582   if test "$cross_compiling" = yes; then
9583   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9584 See \`config.log' for more details." >&5
9585 echo "$as_me: error: cannot run test program while cross compiling
9586 See \`config.log' for more details." >&2;}
9587    { (exit 1); exit 1; }; }
9588 else
9589   cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h.  */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h.  */
9595 #include <sys/types.h>
9596 #include <sys/socket.h>
9597 #include <fcntl.h>
9598 #include <sys/ioctl.h>
9599 #include <sys/file.h>
9600 #include <signal.h>
9601 $ac_cv_type_signal alarmed() { exit(1); }
9602 int main(void)
9603 {
9604   char b[12];
9605   struct sockaddr x;
9606   size_t l = sizeof(x);
9607   int f = socket(AF_INET, SOCK_DGRAM, 0);
9608   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9609   {
9610     signal(SIGALRM, alarmed);
9611     alarm(2);
9612     recvfrom(f, b, 12, 0, &x, &l);
9613     alarm(0);
9614     exit(0);
9615   }
9616   exit(1);
9617 }
9618 _ACEOF
9619 rm -f conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621   (eval $ac_link) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626   (eval $ac_try) 2>&5
9627   ac_status=$?
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); }; }; then
9630   unet_cv_sys_nonblocking_bsd=yes
9631 else
9632   echo "$as_me: program exited with status $ac_status" >&5
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9635
9636 ( exit $ac_status )
9637 unet_cv_sys_nonblocking_bsd=no
9638 fi
9639 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9640 fi
9641 fi
9642 echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9643 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6
9644 if test $unet_cv_sys_nonblocking_bsd = yes; then
9645
9646 cat >>confdefs.h <<\_ACEOF
9647 #define NBLOCK_BSD
9648 _ACEOF
9649
9650 else
9651
9652 cat >>confdefs.h <<\_ACEOF
9653 #define NBLOCK_SYSV
9654 _ACEOF
9655
9656 fi
9657 fi
9658 echo "$as_me:$LINENO: checking for posix signals" >&5
9659 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6
9660 if test "${unet_cv_sys_signal_posix+set}" = set; then
9661   echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663   cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h.  */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h.  */
9669 #include <signal.h>
9670 int
9671 main ()
9672 {
9673 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9674   ;
9675   return 0;
9676 }
9677 _ACEOF
9678 rm -f conftest.$ac_objext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9680   (eval $ac_compile) 2>conftest.er1
9681   ac_status=$?
9682   grep -v '^ *+' conftest.er1 >conftest.err
9683   rm -f conftest.er1
9684   cat conftest.err >&5
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); } &&
9687          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689   (eval $ac_try) 2>&5
9690   ac_status=$?
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); }; } &&
9693          { ac_try='test -s conftest.$ac_objext'
9694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; }; then
9699   unet_cv_sys_signal_posix=yes
9700 else
9701   echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704 unet_cv_sys_signal_posix=no
9705 fi
9706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9707 fi
9708 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9709 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6
9710 if test $unet_cv_sys_signal_posix = yes; then
9711
9712 cat >>confdefs.h <<\_ACEOF
9713 #define POSIX_SIGNALS
9714 _ACEOF
9715
9716 else
9717 echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9718 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6
9719 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   if test "$cross_compiling" = yes; then
9723   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9724 See \`config.log' for more details." >&5
9725 echo "$as_me: error: cannot run test program while cross compiling
9726 See \`config.log' for more details." >&2;}
9727    { (exit 1); exit 1; }; }
9728 else
9729   cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h.  */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h.  */
9735 #include <signal.h>
9736 int calls = 0;
9737 $ac_cv_type_signal handler()
9738 {
9739   if (calls) return;
9740   calls++;
9741   kill(getpid(), SIGTERM);
9742   sleep(1);
9743 }
9744 int main(void)
9745 {
9746   signal(SIGTERM, handler);
9747   kill(getpid(), SIGTERM);
9748   exit (0);
9749 }
9750 _ACEOF
9751 rm -f conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753   (eval $ac_link) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; }; then
9762   unet_cv_sys_signal_bsd=yes
9763 else
9764   echo "$as_me: program exited with status $ac_status" >&5
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768 ( exit $ac_status )
9769 unet_cv_sys_signal_bsd=no
9770 fi
9771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9772 fi
9773 fi
9774 echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9775 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6
9776 if test $unet_cv_sys_signal_bsd = yes; then
9777
9778 cat >>confdefs.h <<\_ACEOF
9779 #define BSD_RELIABLE_SIGNALS
9780 _ACEOF
9781
9782 else
9783
9784 cat >>confdefs.h <<\_ACEOF
9785 #define SYSV_UNRELIABLE_SIGNALS
9786 _ACEOF
9787
9788 fi
9789 fi
9790
9791 echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9792 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6
9793 case "$host" in
9794     *-linux*)
9795         echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9796 echo "${ECHO_T}Linux ($host) found." >&6
9797         unet_poll_syscall=yes
9798         ;;
9799
9800     *-solaris*)
9801         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9802 echo "${ECHO_T}Solaris ($host) found." >&6
9803         if test x"$ac_cv_header_poll_h" = xyes; then
9804             unet_poll_syscall=yes
9805         else
9806             unet_poll_syscall=no
9807         fi
9808         ;;
9809
9810     *-sunos*)
9811         echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9812 echo "${ECHO_T}Solaris ($host) found." >&6
9813         unet_poll_syscall=no
9814         ;;
9815
9816     *-openbsd*)
9817         echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9818 echo "${ECHO_T}OpenBSD ($host) found." >&6
9819         if test x"$ac_cv_header_poll_h" = xyes; then
9820             unet_poll_syscall=yes
9821         else
9822             unet_poll_syscall=no
9823         fi
9824         ;;
9825
9826     *-*bsd*)
9827         echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9828 echo "${ECHO_T}Generic BSD ($host) found." >&6
9829         if test x"$ac_cv_header_poll_h" = xyes; then
9830             unet_poll_syscall=yes
9831         else
9832             unet_poll_syscall=no
9833         fi
9834         ;;
9835
9836     *-darwin*)
9837         echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9838 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6
9839         unet_poll_syscall=no
9840         ;;
9841
9842     *)
9843         echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9844 echo "${ECHO_T}Unknown system type $host found." >&6
9845         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9846 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9847         unet_poll_syscall=no
9848         ;;
9849 esac
9850
9851 echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9852 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6
9853 # Check whether --enable-poll or --disable-poll was given.
9854 if test "${enable_poll+set}" = set; then
9855   enableval="$enable_poll"
9856   unet_cv_enable_poll=$enable_poll
9857 else
9858   if test "${unet_cv_enable_poll+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   unet_cv_enable_poll=$unet_poll_syscall
9862 fi
9863
9864 fi;
9865
9866 # Force poll to be disabled if there is no poll.h
9867 if test x"$ac_cv_header_poll_h" != xyes; then
9868     unet_cv_enable_poll=no
9869 fi
9870
9871 echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9872 echo "${ECHO_T}$unet_cv_enable_poll" >&6
9873
9874 if test x"$unet_cv_enable_poll" = xyes; then
9875
9876 cat >>confdefs.h <<\_ACEOF
9877 #define USE_POLL 1
9878 _ACEOF
9879
9880     ENGINE_C=engine_poll.c
9881 else
9882     ENGINE_C=engine_select.c
9883 fi
9884
9885
9886 echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9887 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6
9888 # Check whether --enable-debug or --disable-debug was given.
9889 if test "${enable_debug+set}" = set; then
9890   enableval="$enable_debug"
9891   unet_cv_enable_debug=$enable_debug
9892 else
9893   if test "${unet_cv_enable_debug+set}" = set; then
9894   echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896   unet_cv_enable_debug=no
9897 fi
9898
9899 fi;
9900 echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9901 echo "${ECHO_T}$unet_cv_enable_debug" >&6
9902
9903 if test x"$unet_cv_enable_debug" = xyes; then
9904
9905 cat >>confdefs.h <<\_ACEOF
9906 #define DEBUGMODE 1
9907 _ACEOF
9908
9909 fi
9910
9911 echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
9912 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6
9913
9914 # Check whether --with-leak-detect or --without-leak-detect was given.
9915 if test "${with_leak_detect+set}" = set; then
9916   withval="$with_leak_detect"
9917   unet_cv_with_leak_detect=$with_leak_detect
9918 else
9919   if test "${unet_cv_with_leak_detect+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   unet_cv_with_leak_detect=no
9923 fi
9924
9925 fi;
9926 echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
9927 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6
9928
9929 if test x"$unet_cv_with_leak_detect" != xno; then
9930     LIBS="-lgc $LIBS"
9931     CFLAGS="-DMDEBUG $CFLAGS"
9932     if test x"$unet_cv_with_leak_detect" != xyes; then
9933        LIBS="-L$unet_cv_with_leak_detect $LIBS"
9934     fi
9935 fi
9936
9937
9938 # Check whether --with-ipv6 or --without-ipv6 was given.
9939 if test "${with_ipv6+set}" = set; then
9940   withval="$with_ipv6"
9941   ac_cv_use_ipv6=$withval
9942 else
9943   ac_cv_use_ipv6=$unet_have_sockaddr_in6
9944 fi;
9945 echo "$as_me:$LINENO: checking whether to use IPv6" >&5
9946 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6
9947 if test "${ac_cv_use_ipv6+set}" = set; then
9948   echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950   ac_cv_use_ipv6=no
9951 fi
9952 echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
9953 echo "${ECHO_T}$ac_cv_use_ipv6" >&6
9954 if test x"$ac_cv_use_ipv6" != "xno" ; then
9955
9956 cat >>confdefs.h <<\_ACEOF
9957 #define IPV6 1
9958 _ACEOF
9959
9960 fi
9961
9962 echo "$as_me:$LINENO: checking whether to enable asserts" >&5
9963 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6
9964 # Check whether --enable-asserts or --disable-asserts was given.
9965 if test "${enable_asserts+set}" = set; then
9966   enableval="$enable_asserts"
9967   unet_cv_enable_asserts=$enable_asserts
9968 else
9969   if test "${unet_cv_enable_asserts+set}" = set; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   unet_cv_enable_asserts=yes
9973 fi
9974
9975 fi;
9976 echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
9977 echo "${ECHO_T}$unet_cv_enable_asserts" >&6
9978
9979 if test x"$unet_cv_enable_asserts" = xno; then
9980
9981 cat >>confdefs.h <<\_ACEOF
9982 #define NDEBUG 1
9983 _ACEOF
9984
9985 fi
9986
9987 echo "$as_me:$LINENO: checking whether to enable debugging symbols" >&5
9988 echo $ECHO_N "checking whether to enable debugging symbols... $ECHO_C" >&6
9989 # Check whether --enable-symbols or --disable-symbols was given.
9990 if test "${enable_symbols+set}" = set; then
9991   enableval="$enable_symbols"
9992   unet_cv_enable_symbols=$enable_symbols
9993 else
9994   if test "${unet_cv_enable_symbols+set}" = set; then
9995   echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997   unet_cv_enable_symbols=yes
9998 fi
9999
10000 fi;
10001 echo "$as_me:$LINENO: result: $unet_cv_enable_symbols" >&5
10002 echo "${ECHO_T}$unet_cv_enable_symbols" >&6
10003
10004 if test x"$unet_cv_enable_symbols" = xyes; then
10005     CFLAGS="-g $CFLAGS"
10006 fi
10007
10008 echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
10009 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6
10010 # Check whether --enable-profile or --disable-profile was given.
10011 if test "${enable_profile+set}" = set; then
10012   enableval="$enable_profile"
10013   unet_cv_enable_profile=$enable_profile
10014 else
10015   if test "${unet_cv_enable_profile+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   unet_cv_enable_profile=no
10019 fi
10020
10021 fi;
10022 echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10023 echo "${ECHO_T}$unet_cv_enable_profile" >&6
10024
10025 if test x"$unet_cv_enable_profile" = xyes; then
10026     CFLAGS="-pg $CFLAGS"
10027     LDFLAGS="-pg $LDFLAGS"
10028 fi
10029
10030 echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10031 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6
10032 # Check whether --enable-pedantic or --disable-pedantic was given.
10033 if test "${enable_pedantic+set}" = set; then
10034   enableval="$enable_pedantic"
10035   unet_cv_enable_pedantic=$enable_pedantic
10036 else
10037   if test "${unet_cv_enable_pedantic+set}" = set; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   unet_cv_enable_pedantic=no
10041 fi
10042
10043 fi;
10044 echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10045 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6
10046
10047 if test x"$unet_cv_enable_pedantic" = xyes; then
10048     CFLAGS="-pedantic $CFLAGS"
10049 fi
10050
10051 echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10052 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6
10053 # Check whether --enable-warnings or --disable-warnings was given.
10054 if test "${enable_warnings+set}" = set; then
10055   enableval="$enable_warnings"
10056   unet_cv_enable_warnings=$enable_warnings
10057 else
10058   if test "${unet_cv_enable_warnings+set}" = set; then
10059   echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061   unet_cv_enable_warnings=no
10062 fi
10063
10064 fi;
10065 echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10066 echo "${ECHO_T}$unet_cv_enable_warnings" >&6
10067
10068 if test x"$unet_cv_enable_warnings" = xyes; then
10069     CFLAGS="-Wall $CFLAGS"
10070 fi
10071
10072 echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10073 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6
10074 # Check whether --enable-inlines or --disable-inlines was given.
10075 if test "${enable_inlines+set}" = set; then
10076   enableval="$enable_inlines"
10077   unet_cv_enable_inlines=$enable_inlines
10078 else
10079   if test "${unet_cv_enable_inlines+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   unet_cv_enable_inlines=yes
10083 fi
10084
10085 fi;
10086 echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10087 echo "${ECHO_T}$unet_cv_enable_inlines" >&6
10088
10089 if test x"$unet_cv_enable_inlines" = xyes; then
10090
10091 cat >>confdefs.h <<\_ACEOF
10092 #define FORCEINLINE 1
10093 _ACEOF
10094
10095 fi
10096
10097 echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10098 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6
10099 # Check whether --enable-devpoll or --disable-devpoll was given.
10100 if test "${enable_devpoll+set}" = set; then
10101   enableval="$enable_devpoll"
10102   unet_cv_enable_devpoll=$enable_devpoll
10103 else
10104   if test "${unet_cv_enable_devpoll+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107   unet_cv_enable_devpoll=yes
10108 fi
10109
10110 fi;
10111
10112 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10113     unet_cv_enable_devpoll=no
10114 fi
10115
10116 echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10117 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6
10118
10119 if test x"$unet_cv_enable_devpoll" != xno; then
10120
10121 cat >>confdefs.h <<\_ACEOF
10122 #define USE_DEVPOLL 1
10123 _ACEOF
10124
10125     ENGINE_C="engine_devpoll.c $ENGINE_C"
10126 fi
10127
10128 echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10129 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6
10130 # Check whether --enable-kqueue or --disable-kqueue was given.
10131 if test "${enable_kqueue+set}" = set; then
10132   enableval="$enable_kqueue"
10133   unet_cv_enable_kqueue=$enable_kqueue
10134 else
10135   if test "${unet_cv_enable_kqueue+set}" = set; then
10136   echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138   unet_cv_enable_kqueue=yes
10139 fi
10140
10141 fi;
10142
10143 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10144     unet_cv_enable_kqueue=no
10145 fi
10146
10147 echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10148 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6
10149
10150 if test x"$unet_cv_enable_kqueue" != xno; then
10151
10152 cat >>confdefs.h <<\_ACEOF
10153 #define USE_KQUEUE 1
10154 _ACEOF
10155
10156     ENGINE_C="engine_kqueue.c $ENGINE_C"
10157 fi
10158
10159 echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10160 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6
10161 # Check whether --enable-epoll or --disable-epoll was given.
10162 if test "${enable_epoll+set}" = set; then
10163   enableval="$enable_epoll"
10164   unet_cv_enable_epoll=$enable_epoll
10165 else
10166   if test "${unet_cv_enable_epoll+set}" = set; then
10167   echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169   unet_cv_enable_epoll=yes
10170 fi
10171
10172 fi;
10173
10174 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10175     unet_cv_enable_epoll=no
10176 fi
10177
10178 echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10179 echo "${ECHO_T}$unet_cv_enable_epoll" >&6
10180
10181 if test x"$unet_cv_enable_epoll" != xno; then
10182     echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10183 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6
10184     cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h.  */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h.  */
10190 #include <sys/epoll.h>
10191 int
10192 main ()
10193 {
10194 epoll_create(10);
10195   ;
10196   return 0;
10197 }
10198 _ACEOF
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201   (eval $ac_link) 2>conftest.er1
10202   ac_status=$?
10203   grep -v '^ *+' conftest.er1 >conftest.err
10204   rm -f conftest.er1
10205   cat conftest.err >&5
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); } &&
10208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210   (eval $ac_try) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; } &&
10214          { ac_try='test -s conftest$ac_exeext'
10215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216   (eval $ac_try) 2>&5
10217   ac_status=$?
10218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219   (exit $ac_status); }; }; then
10220   echo "$as_me:$LINENO: result: yes" >&5
10221 echo "${ECHO_T}yes" >&6
10222 else
10223   echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 echo "$as_me:$LINENO: result: no" >&5
10227 echo "${ECHO_T}no" >&6
10228
10229 cat >>confdefs.h <<\_ACEOF
10230 #define EPOLL_NEED_BODY 1
10231 _ACEOF
10232
10233 fi
10234 rm -f conftest.err conftest.$ac_objext \
10235       conftest$ac_exeext conftest.$ac_ext
10236
10237 cat >>confdefs.h <<\_ACEOF
10238 #define USE_EPOLL 1
10239 _ACEOF
10240
10241     ENGINE_C="engine_epoll.c $ENGINE_C"
10242 fi
10243
10244 echo "$as_me:$LINENO: checking for va_copy" >&5
10245 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10246 if test "${unet_cv_c_va_copy+set}" = set; then
10247   echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10249   cat >conftest.$ac_ext <<_ACEOF
10250 /* confdefs.h.  */
10251 _ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h.  */
10255 #include <stdarg.h>
10256 int
10257 main ()
10258 {
10259 va_list ap1, ap2; va_copy(ap1, ap2);
10260   ;
10261   return 0;
10262 }
10263 _ACEOF
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266   (eval $ac_link) 2>conftest.er1
10267   ac_status=$?
10268   grep -v '^ *+' conftest.er1 >conftest.err
10269   rm -f conftest.er1
10270   cat conftest.err >&5
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); } &&
10273          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275   (eval $ac_try) 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); }; } &&
10279          { ac_try='test -s conftest$ac_exeext'
10280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281   (eval $ac_try) 2>&5
10282   ac_status=$?
10283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); }; }; then
10285   unet_cv_c_va_copy="yes"
10286 else
10287   echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10289
10290 unet_cv_c_va_copy="no"
10291
10292 fi
10293 rm -f conftest.err conftest.$ac_objext \
10294       conftest$ac_exeext conftest.$ac_ext
10295 fi
10296 echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10297 echo "${ECHO_T}$unet_cv_c_va_copy" >&6
10298 if test "$unet_cv_c_va_copy" = "yes" ; then
10299
10300 cat >>confdefs.h <<\_ACEOF
10301 #define HAVE_VA_COPY 1
10302 _ACEOF
10303
10304 fi
10305
10306 echo "$as_me:$LINENO: checking for __va_copy" >&5
10307 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10308 if test "${unet_cv_c___va_copy+set}" = set; then
10309   echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311   cat >conftest.$ac_ext <<_ACEOF
10312 /* confdefs.h.  */
10313 _ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h.  */
10317 #include <stdarg.h>
10318 int
10319 main ()
10320 {
10321 va_list ap1, ap2; __va_copy(ap1, ap2);
10322   ;
10323   return 0;
10324 }
10325 _ACEOF
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10328   (eval $ac_link) 2>conftest.er1
10329   ac_status=$?
10330   grep -v '^ *+' conftest.er1 >conftest.err
10331   rm -f conftest.er1
10332   cat conftest.err >&5
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); } &&
10335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337   (eval $ac_try) 2>&5
10338   ac_status=$?
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); }; } &&
10341          { ac_try='test -s conftest$ac_exeext'
10342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343   (eval $ac_try) 2>&5
10344   ac_status=$?
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); }; }; then
10347   unet_cv_c___va_copy="yes"
10348 else
10349   echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10351
10352 unet_cv_c___va_copy="no"
10353
10354 fi
10355 rm -f conftest.err conftest.$ac_objext \
10356       conftest$ac_exeext conftest.$ac_ext
10357 fi
10358 echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10359 echo "${ECHO_T}$unet_cv_c___va_copy" >&6
10360 if test "$unet_cv_c___va_copy" = "yes" ; then
10361
10362 cat >>confdefs.h <<\_ACEOF
10363 #define HAVE___VA_COPY 1
10364 _ACEOF
10365
10366 fi
10367
10368 echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10369 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6
10370
10371 # Check whether --with-symlink or --without-symlink was given.
10372 if test "${with_symlink+set}" = set; then
10373   withval="$with_symlink"
10374   unet_cv_with_symlink=$with_symlink
10375 else
10376   if test "${unet_cv_with_symlink+set}" = set; then
10377   echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379   unet_cv_with_symlink="ircd"
10380 fi
10381
10382 fi;
10383
10384 if test x"$unet_cv_with_symlink" = xyes; then
10385     unet_cv_with_symlink="ircd"
10386 fi
10387
10388 echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10389 echo "${ECHO_T}$unet_cv_with_symlink" >&6
10390
10391 if test x"$unet_cv_with_symlink" = xno; then
10392     INSTALL_RULE=install-no-symlink
10393     SYMLINK=
10394 else
10395     INSTALL_RULE=install-with-symlink
10396     SYMLINK=$unet_cv_with_symlink
10397 fi
10398
10399
10400
10401 echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10402 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6
10403
10404 # Check whether --with-mode or --without-mode was given.
10405 if test "${with_mode+set}" = set; then
10406   withval="$with_mode"
10407   unet_cv_with_mode=$with_mode
10408 else
10409   if test "${unet_cv_with_mode+set}" = set; then
10410   echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412   unet_cv_with_mode=711
10413 fi
10414
10415 fi;
10416
10417 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10418     unet_cv_with_mode=711
10419 fi
10420
10421 echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10422 echo "${ECHO_T}$unet_cv_with_mode" >&6
10423
10424 IRCDMODE=$unet_cv_with_mode
10425
10426
10427 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10428 echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10429 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6
10430
10431 # Check whether --with-owner or --without-owner was given.
10432 if test "${with_owner+set}" = set; then
10433   withval="$with_owner"
10434   unet_cv_with_owner=$with_owner
10435 else
10436   if test "${unet_cv_with_owner+set}" = set; then
10437   echo $ECHO_N "(cached) $ECHO_C" >&6
10438 else
10439   unet_cv_with_owner=$unet_uid
10440 fi
10441
10442 fi;
10443
10444 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10445     unet_cv_with_owner=$unet_uid
10446 fi
10447
10448 echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10449 echo "${ECHO_T}$unet_cv_with_owner" >&6
10450
10451 IRCDOWN=$unet_cv_with_owner
10452
10453
10454 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10455 echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10456 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6
10457
10458 # Check whether --with-group or --without-group was given.
10459 if test "${with_group+set}" = set; then
10460   withval="$with_group"
10461   unet_cv_with_group=$with_group
10462 else
10463   if test "${unet_cv_with_group+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466   unet_cv_with_group=$unet_gid
10467 fi
10468
10469 fi;
10470
10471 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10472     unet_cv_with_group=$unet_gid
10473 fi
10474
10475 echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10476 echo "${ECHO_T}$unet_cv_with_group" >&6
10477
10478 IRCDGRP=$unet_cv_with_group
10479
10480
10481 unet_domain=
10482 if test -f /etc/resolv.conf; then
10483     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10484     if test x"$unet_domain" = x; then
10485         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10486     fi
10487 fi
10488 echo "$as_me:$LINENO: checking for site domain name" >&5
10489 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6
10490
10491 # Check whether --with-domain or --without-domain was given.
10492 if test "${with_domain+set}" = set; then
10493   withval="$with_domain"
10494   unet_cv_with_domain=$with_domain
10495 else
10496   if test "${unet_cv_with_domain+set}" = set; then
10497   echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499   unet_cv_with_domain=$unet_domain
10500 fi
10501
10502 fi;
10503
10504 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10505     unet_cv_with_domain=$unet_domain
10506 fi
10507 if test x"$unet_cv_with_domain" = xno; then
10508     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10509 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10510    { (exit 1); exit 1; }; }
10511 fi
10512
10513 echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10514 echo "${ECHO_T}$unet_cv_with_domain" >&6
10515
10516
10517 cat >>confdefs.h <<_ACEOF
10518 #define DOMAINNAME "*$unet_cv_with_domain"
10519 _ACEOF
10520
10521
10522 echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10523 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6
10524
10525 # Check whether --with-chroot or --without-chroot was given.
10526 if test "${with_chroot+set}" = set; then
10527   withval="$with_chroot"
10528   unet_cv_with_chroot=$with_chroot
10529 else
10530   if test "${unet_cv_with_chroot+set}" = set; then
10531   echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533   unet_cv_with_chroot=no
10534 fi
10535
10536 fi;
10537
10538 if test x"$unet_cv_with_chroot" = xyes; then
10539     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
10540 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
10541    { (exit 1); exit 1; }; }
10542 fi
10543
10544 # Ensure there are no trailing /'s to mess us up
10545 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10546
10547 echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10548 echo "${ECHO_T}$unet_cv_with_chroot" >&6
10549
10550 # Deal with the annoying value "NONE" here
10551 unet_save_prefix=$prefix
10552 if test x"$prefix" = xNONE; then
10553     prefix=$ac_default_prefix
10554 else
10555     prefix=$prefix
10556 fi
10557
10558 unet_save_exec_prefix=$exec_prefix
10559 if test x"$exec_prefix" = xNONE; then
10560     exec_prefix=$prefix
10561 else
10562     exec_prefix=$exec_prefix
10563 fi
10564
10565 # Obtain the actual interesting directories
10566 unet_bindir=`eval echo "$bindir"`
10567 unet_libdir=`eval echo "$libdir"`
10568
10569 # Restore the original settings of $prefix and $exec_prefix
10570 prefix=$unet_save_prefix
10571 exec_prefix=$unet_save_exec_prefix
10572
10573 echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10574 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6
10575 if test x"$unet_cv_with_symlink" = xno; then
10576     unet_spath="$unet_bindir/ircd"
10577 else
10578     unet_spath="$unet_bindir/$unet_cv_with_symlink"
10579 fi
10580 echo "$as_me:$LINENO: result: $unet_spath" >&5
10581 echo "${ECHO_T}$unet_spath" >&6
10582
10583 if test x"$unet_cv_with_chroot" != xno; then
10584     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10585         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10586     else
10587         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10588 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10589     fi
10590 fi
10591
10592
10593 cat >>confdefs.h <<_ACEOF
10594 #define SPATH "$unet_spath"
10595 _ACEOF
10596
10597
10598 echo "$as_me:$LINENO: checking what the data directory should be" >&5
10599 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6
10600
10601 # Check whether --with-dpath or --without-dpath was given.
10602 if test "${with_dpath+set}" = set; then
10603   withval="$with_dpath"
10604   unet_cv_with_dpath=$with_dpath
10605 else
10606   if test "${unet_cv_with_dpath+set}" = set; then
10607   echo $ECHO_N "(cached) $ECHO_C" >&6
10608 else
10609   unet_cv_with_dpath=$unet_libdir
10610 fi
10611
10612 fi;
10613
10614 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10615     unet_cv_with_dpath=$unet_libdir
10616 fi
10617
10618 # Ensure there are no trailing /'s to mess us up
10619 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10620
10621 echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10622 echo "${ECHO_T}$unet_cv_with_dpath" >&6
10623
10624 if test x"$unet_cv_with_chroot" != xno; then
10625     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10626         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10627     else
10628         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10629 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10630    { (exit 1); exit 1; }; }
10631     fi
10632 else
10633     unet_dpath=$unet_cv_with_dpath
10634 fi
10635
10636
10637 cat >>confdefs.h <<_ACEOF
10638 #define DPATH "$unet_dpath"
10639 _ACEOF
10640
10641
10642 DPATH=$unet_cv_with_dpath
10643
10644
10645 echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10646 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6
10647
10648 # Check whether --with-cpath or --without-cpath was given.
10649 if test "${with_cpath+set}" = set; then
10650   withval="$with_cpath"
10651   unet_cv_with_cpath=$with_cpath
10652 else
10653   if test "${unet_cv_with_cpath+set}" = set; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   unet_cv_with_cpath="ircd.conf"
10657 fi
10658
10659 fi;
10660
10661 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10662     unet_cv_with_cpath="ircd.conf"
10663 fi
10664
10665 echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10666 echo "${ECHO_T}$unet_cv_with_cpath" >&6
10667
10668 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10669     # Absolute path; check against chroot stuff
10670     if test x"$unet_cv_with_chroot" != xno; then
10671         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10672             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10673         else
10674             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10675 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10676    { (exit 1); exit 1; }; }
10677         fi
10678     else
10679         unet_cpath=$unet_cv_with_cpath
10680     fi
10681 else
10682     unet_cpath=$unet_cv_with_cpath
10683 fi
10684
10685
10686 cat >>confdefs.h <<_ACEOF
10687 #define CPATH "$unet_cpath"
10688 _ACEOF
10689
10690
10691 echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10692 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6
10693
10694 # Check whether --with-lpath or --without-lpath was given.
10695 if test "${with_lpath+set}" = set; then
10696   withval="$with_lpath"
10697   unet_cv_with_lpath=$with_lpath
10698 else
10699   if test "${unet_cv_with_lpath+set}" = set; then
10700   echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702   unet_cv_with_lpath="ircd.log"
10703 fi
10704
10705 fi;
10706
10707 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10708     unet_cv_with_lpath="ircd.log"
10709 fi
10710
10711 echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10712 echo "${ECHO_T}$unet_cv_with_lpath" >&6
10713
10714 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10715     # Absolute path; check against chroot stuff
10716     if test x"$unet_cv_with_chroot" != xno; then
10717         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10718             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10719         else
10720             { echo "$as_me:$LINENO: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
10721 echo "$as_me: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&2;}
10722             unet_cv_with_lpath="ircd.log"
10723             unet_lpath="ircd.log"
10724         fi
10725     else
10726         unet_lpath=$unet_cv_with_lpath
10727     fi
10728 else
10729     unet_lpath=$unet_cv_with_lpath
10730 fi
10731
10732
10733 cat >>confdefs.h <<_ACEOF
10734 #define LPATH "$unet_lpath"
10735 _ACEOF
10736
10737
10738 unet_maxcon=`ulimit -Hn`
10739 if test x"$unet_maxcon" = xunlimited; then
10740     unet_maxcon=`ulimit -Sn`
10741 fi
10742 unet_maxcon=`expr $unet_maxcon - 4`
10743 echo "$as_me:$LINENO: checking max connections" >&5
10744 echo $ECHO_N "checking max connections... $ECHO_C" >&6
10745
10746 # Check whether --with-maxcon or --without-maxcon was given.
10747 if test "${with_maxcon+set}" = set; then
10748   withval="$with_maxcon"
10749   unet_cv_with_maxcon=$with_maxcon
10750 else
10751   if test "${unet_cv_with_maxcon+set}" = set; then
10752   echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754   unet_cv_with_maxcon=$unet_maxcon
10755 fi
10756
10757 fi;
10758
10759 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10760     unet_cv_with_maxcon=$unet_maxcon
10761 fi
10762
10763 echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10764 echo "${ECHO_T}$unet_cv_with_maxcon" >&6
10765
10766
10767 cat >>confdefs.h <<_ACEOF
10768 #define MAXCONNECTIONS $unet_cv_with_maxcon
10769 _ACEOF
10770
10771
10772                                         ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
10773           ac_config_commands="$ac_config_commands default"
10774 cat >confcache <<\_ACEOF
10775 # This file is a shell script that caches the results of configure
10776 # tests run on this system so they can be shared between configure
10777 # scripts and configure runs, see configure's option --config-cache.
10778 # It is not useful on other systems.  If it contains results you don't
10779 # want to keep, you may remove or edit it.
10780 #
10781 # config.status only pays attention to the cache file if you give it
10782 # the --recheck option to rerun configure.
10783 #
10784 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10785 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10786 # following values.
10787
10788 _ACEOF
10789
10790 # The following way of writing the cache mishandles newlines in values,
10791 # but we know of no workaround that is simple, portable, and efficient.
10792 # So, don't put newlines in cache variables' values.
10793 # Ultrix sh set writes to stderr and can't be redirected directly,
10794 # and sets the high bit in the cache file unless we assign to the vars.
10795 {
10796   (set) 2>&1 |
10797     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10798     *ac_space=\ *)
10799       # `set' does not quote correctly, so add quotes (double-quote
10800       # substitution turns \\\\ into \\, and sed turns \\ into \).
10801       sed -n \
10802         "s/'/'\\\\''/g;
10803           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10804       ;;
10805     *)
10806       # `set' quotes correctly as required by POSIX, so do not add quotes.
10807       sed -n \
10808         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10809       ;;
10810     esac;
10811 } |
10812   sed '
10813      t clear
10814      : clear
10815      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10816      t end
10817      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10818      : end' >>confcache
10819 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10820   if test -w $cache_file; then
10821     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10822     cat confcache >$cache_file
10823   else
10824     echo "not updating unwritable cache $cache_file"
10825   fi
10826 fi
10827 rm -f confcache
10828
10829 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10830 # Let make expand exec_prefix.
10831 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10832
10833 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10834 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10835 # trailing colons and then remove the whole line if VPATH becomes empty
10836 # (actually we leave an empty line to preserve line numbers).
10837 if test "x$srcdir" = x.; then
10838   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10839 s/:*\$(srcdir):*/:/;
10840 s/:*\${srcdir}:*/:/;
10841 s/:*@srcdir@:*/:/;
10842 s/^\([^=]*=[     ]*\):*/\1/;
10843 s/:*$//;
10844 s/^[^=]*=[       ]*$//;
10845 }'
10846 fi
10847
10848 DEFS=-DHAVE_CONFIG_H
10849
10850 ac_libobjs=
10851 ac_ltlibobjs=
10852 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10853   # 1. Remove the extension, and $U if already installed.
10854   ac_i=`echo "$ac_i" |
10855          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10856   # 2. Add them.
10857   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10858   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10859 done
10860 LIBOBJS=$ac_libobjs
10861
10862 LTLIBOBJS=$ac_ltlibobjs
10863
10864
10865
10866 : ${CONFIG_STATUS=./config.status}
10867 ac_clean_files_save=$ac_clean_files
10868 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10869 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10870 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10871 cat >$CONFIG_STATUS <<_ACEOF
10872 #! $SHELL
10873 # Generated by $as_me.
10874 # Run this file to recreate the current configuration.
10875 # Compiler output produced by configure, useful for debugging
10876 # configure, is in config.log if it exists.
10877
10878 debug=false
10879 ac_cs_recheck=false
10880 ac_cs_silent=false
10881 SHELL=\${CONFIG_SHELL-$SHELL}
10882 _ACEOF
10883
10884 cat >>$CONFIG_STATUS <<\_ACEOF
10885 ## --------------------- ##
10886 ## M4sh Initialization.  ##
10887 ## --------------------- ##
10888
10889 # Be Bourne compatible
10890 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10891   emulate sh
10892   NULLCMD=:
10893   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10894   # is contrary to our usage.  Disable this feature.
10895   alias -g '${1+"$@"}'='"$@"'
10896 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10897   set -o posix
10898 fi
10899 DUALCASE=1; export DUALCASE # for MKS sh
10900
10901 # Support unset when possible.
10902 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10903   as_unset=unset
10904 else
10905   as_unset=false
10906 fi
10907
10908
10909 # Work around bugs in pre-3.0 UWIN ksh.
10910 $as_unset ENV MAIL MAILPATH
10911 PS1='$ '
10912 PS2='> '
10913 PS4='+ '
10914
10915 # NLS nuisances.
10916 for as_var in \
10917   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10918   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10919   LC_TELEPHONE LC_TIME
10920 do
10921   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10922     eval $as_var=C; export $as_var
10923   else
10924     $as_unset $as_var
10925   fi
10926 done
10927
10928 # Required to use basename.
10929 if expr a : '\(a\)' >/dev/null 2>&1; then
10930   as_expr=expr
10931 else
10932   as_expr=false
10933 fi
10934
10935 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10936   as_basename=basename
10937 else
10938   as_basename=false
10939 fi
10940
10941
10942 # Name of the executable.
10943 as_me=`$as_basename "$0" ||
10944 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10945          X"$0" : 'X\(//\)$' \| \
10946          X"$0" : 'X\(/\)$' \| \
10947          .     : '\(.\)' 2>/dev/null ||
10948 echo X/"$0" |
10949     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10950           /^X\/\(\/\/\)$/{ s//\1/; q; }
10951           /^X\/\(\/\).*/{ s//\1/; q; }
10952           s/.*/./; q'`
10953
10954
10955 # PATH needs CR, and LINENO needs CR and PATH.
10956 # Avoid depending upon Character Ranges.
10957 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10958 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10959 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10960 as_cr_digits='0123456789'
10961 as_cr_alnum=$as_cr_Letters$as_cr_digits
10962
10963 # The user is always right.
10964 if test "${PATH_SEPARATOR+set}" != set; then
10965   echo "#! /bin/sh" >conf$$.sh
10966   echo  "exit 0"   >>conf$$.sh
10967   chmod +x conf$$.sh
10968   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10969     PATH_SEPARATOR=';'
10970   else
10971     PATH_SEPARATOR=:
10972   fi
10973   rm -f conf$$.sh
10974 fi
10975
10976
10977   as_lineno_1=$LINENO
10978   as_lineno_2=$LINENO
10979   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10980   test "x$as_lineno_1" != "x$as_lineno_2" &&
10981   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10982   # Find who we are.  Look in the path if we contain no path at all
10983   # relative or not.
10984   case $0 in
10985     *[\\/]* ) as_myself=$0 ;;
10986     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in $PATH
10988 do
10989   IFS=$as_save_IFS
10990   test -z "$as_dir" && as_dir=.
10991   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10992 done
10993
10994        ;;
10995   esac
10996   # We did not find ourselves, most probably we were run as `sh COMMAND'
10997   # in which case we are not to be found in the path.
10998   if test "x$as_myself" = x; then
10999     as_myself=$0
11000   fi
11001   if test ! -f "$as_myself"; then
11002     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11003 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11004    { (exit 1); exit 1; }; }
11005   fi
11006   case $CONFIG_SHELL in
11007   '')
11008     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11010 do
11011   IFS=$as_save_IFS
11012   test -z "$as_dir" && as_dir=.
11013   for as_base in sh bash ksh sh5; do
11014          case $as_dir in
11015          /*)
11016            if ("$as_dir/$as_base" -c '
11017   as_lineno_1=$LINENO
11018   as_lineno_2=$LINENO
11019   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11020   test "x$as_lineno_1" != "x$as_lineno_2" &&
11021   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11022              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11023              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11024              CONFIG_SHELL=$as_dir/$as_base
11025              export CONFIG_SHELL
11026              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11027            fi;;
11028          esac
11029        done
11030 done
11031 ;;
11032   esac
11033
11034   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11035   # uniformly replaced by the line number.  The first 'sed' inserts a
11036   # line-number line before each line; the second 'sed' does the real
11037   # work.  The second script uses 'N' to pair each line-number line
11038   # with the numbered line, and appends trailing '-' during
11039   # substitution so that $LINENO is not a special case at line end.
11040   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11041   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11042   sed '=' <$as_myself |
11043     sed '
11044       N
11045       s,$,-,
11046       : loop
11047       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11048       t loop
11049       s,-$,,
11050       s,^['$as_cr_digits']*\n,,
11051     ' >$as_me.lineno &&
11052   chmod +x $as_me.lineno ||
11053     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11054 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11055    { (exit 1); exit 1; }; }
11056
11057   # Don't try to exec as it changes $[0], causing all sort of problems
11058   # (the dirname of $[0] is not the place where we might find the
11059   # original and so on.  Autoconf is especially sensible to this).
11060   . ./$as_me.lineno
11061   # Exit status is that of the last command.
11062   exit
11063 }
11064
11065
11066 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11067   *c*,-n*) ECHO_N= ECHO_C='
11068 ' ECHO_T='      ' ;;
11069   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11070   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11071 esac
11072
11073 if expr a : '\(a\)' >/dev/null 2>&1; then
11074   as_expr=expr
11075 else
11076   as_expr=false
11077 fi
11078
11079 rm -f conf$$ conf$$.exe conf$$.file
11080 echo >conf$$.file
11081 if ln -s conf$$.file conf$$ 2>/dev/null; then
11082   # We could just check for DJGPP; but this test a) works b) is more generic
11083   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11084   if test -f conf$$.exe; then
11085     # Don't use ln at all; we don't have any links
11086     as_ln_s='cp -p'
11087   else
11088     as_ln_s='ln -s'
11089   fi
11090 elif ln conf$$.file conf$$ 2>/dev/null; then
11091   as_ln_s=ln
11092 else
11093   as_ln_s='cp -p'
11094 fi
11095 rm -f conf$$ conf$$.exe conf$$.file
11096
11097 if mkdir -p . 2>/dev/null; then
11098   as_mkdir_p=:
11099 else
11100   test -d ./-p && rmdir ./-p
11101   as_mkdir_p=false
11102 fi
11103
11104 as_executable_p="test -f"
11105
11106 # Sed expression to map a string onto a valid CPP name.
11107 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11108
11109 # Sed expression to map a string onto a valid variable name.
11110 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11111
11112
11113 # IFS
11114 # We need space, tab and new line, in precisely that order.
11115 as_nl='
11116 '
11117 IFS="   $as_nl"
11118
11119 # CDPATH.
11120 $as_unset CDPATH
11121
11122 exec 6>&1
11123
11124 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11125 # report actual input values of CONFIG_FILES etc. instead of their
11126 # values after options handling.  Logging --version etc. is OK.
11127 exec 5>>config.log
11128 {
11129   echo
11130   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11131 ## Running $as_me. ##
11132 _ASBOX
11133 } >&5
11134 cat >&5 <<_CSEOF
11135
11136 This file was extended by $as_me, which was
11137 generated by GNU Autoconf 2.59.  Invocation command line was
11138
11139   CONFIG_FILES    = $CONFIG_FILES
11140   CONFIG_HEADERS  = $CONFIG_HEADERS
11141   CONFIG_LINKS    = $CONFIG_LINKS
11142   CONFIG_COMMANDS = $CONFIG_COMMANDS
11143   $ $0 $@
11144
11145 _CSEOF
11146 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11147 echo >&5
11148 _ACEOF
11149
11150 # Files that config.status was made for.
11151 if test -n "$ac_config_files"; then
11152   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11153 fi
11154
11155 if test -n "$ac_config_headers"; then
11156   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11157 fi
11158
11159 if test -n "$ac_config_links"; then
11160   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11161 fi
11162
11163 if test -n "$ac_config_commands"; then
11164   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11165 fi
11166
11167 cat >>$CONFIG_STATUS <<\_ACEOF
11168
11169 ac_cs_usage="\
11170 \`$as_me' instantiates files from templates according to the
11171 current configuration.
11172
11173 Usage: $0 [OPTIONS] [FILE]...
11174
11175   -h, --help       print this help, then exit
11176   -V, --version    print version number, then exit
11177   -q, --quiet      do not print progress messages
11178   -d, --debug      don't remove temporary files
11179       --recheck    update $as_me by reconfiguring in the same conditions
11180   --file=FILE[:TEMPLATE]
11181                    instantiate the configuration file FILE
11182   --header=FILE[:TEMPLATE]
11183                    instantiate the configuration header FILE
11184
11185 Configuration files:
11186 $config_files
11187
11188 Configuration headers:
11189 $config_headers
11190
11191 Configuration commands:
11192 $config_commands
11193
11194 Report bugs to <bug-autoconf@gnu.org>."
11195 _ACEOF
11196
11197 cat >>$CONFIG_STATUS <<_ACEOF
11198 ac_cs_version="\\
11199 config.status
11200 configured by $0, generated by GNU Autoconf 2.59,
11201   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11202
11203 Copyright (C) 2003 Free Software Foundation, Inc.
11204 This config.status script is free software; the Free Software Foundation
11205 gives unlimited permission to copy, distribute and modify it."
11206 srcdir=$srcdir
11207 INSTALL="$INSTALL"
11208 _ACEOF
11209
11210 cat >>$CONFIG_STATUS <<\_ACEOF
11211 # If no file are specified by the user, then we need to provide default
11212 # value.  By we need to know if files were specified by the user.
11213 ac_need_defaults=:
11214 while test $# != 0
11215 do
11216   case $1 in
11217   --*=*)
11218     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11219     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11220     ac_shift=:
11221     ;;
11222   -*)
11223     ac_option=$1
11224     ac_optarg=$2
11225     ac_shift=shift
11226     ;;
11227   *) # This is not an option, so the user has probably given explicit
11228      # arguments.
11229      ac_option=$1
11230      ac_need_defaults=false;;
11231   esac
11232
11233   case $ac_option in
11234   # Handling of the options.
11235 _ACEOF
11236 cat >>$CONFIG_STATUS <<\_ACEOF
11237   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11238     ac_cs_recheck=: ;;
11239   --version | --vers* | -V )
11240     echo "$ac_cs_version"; exit 0 ;;
11241   --he | --h)
11242     # Conflict between --help and --header
11243     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11244 Try \`$0 --help' for more information." >&5
11245 echo "$as_me: error: ambiguous option: $1
11246 Try \`$0 --help' for more information." >&2;}
11247    { (exit 1); exit 1; }; };;
11248   --help | --hel | -h )
11249     echo "$ac_cs_usage"; exit 0 ;;
11250   --debug | --d* | -d )
11251     debug=: ;;
11252   --file | --fil | --fi | --f )
11253     $ac_shift
11254     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11255     ac_need_defaults=false;;
11256   --header | --heade | --head | --hea )
11257     $ac_shift
11258     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11259     ac_need_defaults=false;;
11260   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11261   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11262     ac_cs_silent=: ;;
11263
11264   # This is an error.
11265   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11266 Try \`$0 --help' for more information." >&5
11267 echo "$as_me: error: unrecognized option: $1
11268 Try \`$0 --help' for more information." >&2;}
11269    { (exit 1); exit 1; }; } ;;
11270
11271   *) ac_config_targets="$ac_config_targets $1" ;;
11272
11273   esac
11274   shift
11275 done
11276
11277 ac_configure_extra_args=
11278
11279 if $ac_cs_silent; then
11280   exec 6>/dev/null
11281   ac_configure_extra_args="$ac_configure_extra_args --silent"
11282 fi
11283
11284 _ACEOF
11285 cat >>$CONFIG_STATUS <<_ACEOF
11286 if \$ac_cs_recheck; then
11287   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11288   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11289 fi
11290
11291 _ACEOF
11292
11293
11294
11295
11296
11297 cat >>$CONFIG_STATUS <<\_ACEOF
11298 for ac_config_target in $ac_config_targets
11299 do
11300   case "$ac_config_target" in
11301   # Handling of arguments.
11302   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11303   "ircd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11304   "ircd/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11305   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11306   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11307   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11308   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11309 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11310    { (exit 1); exit 1; }; };;
11311   esac
11312 done
11313
11314 # If the user did not use the arguments to specify the items to instantiate,
11315 # then the envvar interface is used.  Set only those that are not.
11316 # We use the long form for the default assignment because of an extremely
11317 # bizarre bug on SunOS 4.1.3.
11318 if $ac_need_defaults; then
11319   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11320   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11321   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11322 fi
11323
11324 # Have a temporary directory for convenience.  Make it in the build tree
11325 # simply because there is no reason to put it here, and in addition,
11326 # creating and moving files from /tmp can sometimes cause problems.
11327 # Create a temporary directory, and hook for its removal unless debugging.
11328 $debug ||
11329 {
11330   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11331   trap '{ (exit 1); exit 1; }' 1 2 13 15
11332 }
11333
11334 # Create a (secure) tmp directory for tmp files.
11335
11336 {
11337   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11338   test -n "$tmp" && test -d "$tmp"
11339 }  ||
11340 {
11341   tmp=./confstat$$-$RANDOM
11342   (umask 077 && mkdir $tmp)
11343 } ||
11344 {
11345    echo "$me: cannot create a temporary directory in ." >&2
11346    { (exit 1); exit 1; }
11347 }
11348
11349 _ACEOF
11350
11351 cat >>$CONFIG_STATUS <<_ACEOF
11352
11353 #
11354 # CONFIG_FILES section.
11355 #
11356
11357 # No need to generate the scripts if there are no CONFIG_FILES.
11358 # This happens for instance when ./config.status config.h
11359 if test -n "\$CONFIG_FILES"; then
11360   # Protect against being on the right side of a sed subst in config.status.
11361   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11362    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11363 s,@SHELL@,$SHELL,;t t
11364 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11365 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11366 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11367 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11368 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11369 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11370 s,@exec_prefix@,$exec_prefix,;t t
11371 s,@prefix@,$prefix,;t t
11372 s,@program_transform_name@,$program_transform_name,;t t
11373 s,@bindir@,$bindir,;t t
11374 s,@sbindir@,$sbindir,;t t
11375 s,@libexecdir@,$libexecdir,;t t
11376 s,@datadir@,$datadir,;t t
11377 s,@sysconfdir@,$sysconfdir,;t t
11378 s,@sharedstatedir@,$sharedstatedir,;t t
11379 s,@localstatedir@,$localstatedir,;t t
11380 s,@libdir@,$libdir,;t t
11381 s,@includedir@,$includedir,;t t
11382 s,@oldincludedir@,$oldincludedir,;t t
11383 s,@infodir@,$infodir,;t t
11384 s,@mandir@,$mandir,;t t
11385 s,@build_alias@,$build_alias,;t t
11386 s,@host_alias@,$host_alias,;t t
11387 s,@target_alias@,$target_alias,;t t
11388 s,@DEFS@,$DEFS,;t t
11389 s,@ECHO_C@,$ECHO_C,;t t
11390 s,@ECHO_N@,$ECHO_N,;t t
11391 s,@ECHO_T@,$ECHO_T,;t t
11392 s,@LIBS@,$LIBS,;t t
11393 s,@build@,$build,;t t
11394 s,@build_cpu@,$build_cpu,;t t
11395 s,@build_vendor@,$build_vendor,;t t
11396 s,@build_os@,$build_os,;t t
11397 s,@host@,$host,;t t
11398 s,@host_cpu@,$host_cpu,;t t
11399 s,@host_vendor@,$host_vendor,;t t
11400 s,@host_os@,$host_os,;t t
11401 s,@CC@,$CC,;t t
11402 s,@CFLAGS@,$CFLAGS,;t t
11403 s,@LDFLAGS@,$LDFLAGS,;t t
11404 s,@CPPFLAGS@,$CPPFLAGS,;t t
11405 s,@ac_ct_CC@,$ac_ct_CC,;t t
11406 s,@EXEEXT@,$EXEEXT,;t t
11407 s,@OBJEXT@,$OBJEXT,;t t
11408 s,@CPP@,$CPP,;t t
11409 s,@EGREP@,$EGREP,;t t
11410 s,@AWK@,$AWK,;t t
11411 s,@SET_MAKE@,$SET_MAKE,;t t
11412 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11413 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11414 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11415 s,@LN_S@,$LN_S,;t t
11416 s,@RMPROG@,$RMPROG,;t t
11417 s,@SHPROG@,$SHPROG,;t t
11418 s,@LEX@,$LEX,;t t
11419 s,@LEXLIB@,$LEXLIB,;t t
11420 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11421 s,@YACC@,$YACC,;t t
11422 s,@ENGINE_C@,$ENGINE_C,;t t
11423 s,@INSTALL_RULE@,$INSTALL_RULE,;t t
11424 s,@SYMLINK@,$SYMLINK,;t t
11425 s,@IRCDMODE@,$IRCDMODE,;t t
11426 s,@IRCDOWN@,$IRCDOWN,;t t
11427 s,@IRCDGRP@,$IRCDGRP,;t t
11428 s,@DPATH@,$DPATH,;t t
11429 s,@LIBOBJS@,$LIBOBJS,;t t
11430 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11431 CEOF
11432
11433 _ACEOF
11434
11435   cat >>$CONFIG_STATUS <<\_ACEOF
11436   # Split the substitutions into bite-sized pieces for seds with
11437   # small command number limits, like on Digital OSF/1 and HP-UX.
11438   ac_max_sed_lines=48
11439   ac_sed_frag=1 # Number of current file.
11440   ac_beg=1 # First line for current file.
11441   ac_end=$ac_max_sed_lines # Line after last line for current file.
11442   ac_more_lines=:
11443   ac_sed_cmds=
11444   while $ac_more_lines; do
11445     if test $ac_beg -gt 1; then
11446       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11447     else
11448       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11449     fi
11450     if test ! -s $tmp/subs.frag; then
11451       ac_more_lines=false
11452     else
11453       # The purpose of the label and of the branching condition is to
11454       # speed up the sed processing (if there are no `@' at all, there
11455       # is no need to browse any of the substitutions).
11456       # These are the two extra sed commands mentioned above.
11457       (echo ':t
11458   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11459       if test -z "$ac_sed_cmds"; then
11460         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11461       else
11462         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11463       fi
11464       ac_sed_frag=`expr $ac_sed_frag + 1`
11465       ac_beg=$ac_end
11466       ac_end=`expr $ac_end + $ac_max_sed_lines`
11467     fi
11468   done
11469   if test -z "$ac_sed_cmds"; then
11470     ac_sed_cmds=cat
11471   fi
11472 fi # test -n "$CONFIG_FILES"
11473
11474 _ACEOF
11475 cat >>$CONFIG_STATUS <<\_ACEOF
11476 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11477   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11478   case $ac_file in
11479   - | *:- | *:-:* ) # input from stdin
11480         cat >$tmp/stdin
11481         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11482         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11483   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11484         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11485   * )   ac_file_in=$ac_file.in ;;
11486   esac
11487
11488   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11489   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11491          X"$ac_file" : 'X\(//\)[^/]' \| \
11492          X"$ac_file" : 'X\(//\)$' \| \
11493          X"$ac_file" : 'X\(/\)' \| \
11494          .     : '\(.\)' 2>/dev/null ||
11495 echo X"$ac_file" |
11496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11497           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11498           /^X\(\/\/\)$/{ s//\1/; q; }
11499           /^X\(\/\).*/{ s//\1/; q; }
11500           s/.*/./; q'`
11501   { if $as_mkdir_p; then
11502     mkdir -p "$ac_dir"
11503   else
11504     as_dir="$ac_dir"
11505     as_dirs=
11506     while test ! -d "$as_dir"; do
11507       as_dirs="$as_dir $as_dirs"
11508       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11510          X"$as_dir" : 'X\(//\)[^/]' \| \
11511          X"$as_dir" : 'X\(//\)$' \| \
11512          X"$as_dir" : 'X\(/\)' \| \
11513          .     : '\(.\)' 2>/dev/null ||
11514 echo X"$as_dir" |
11515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11516           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11517           /^X\(\/\/\)$/{ s//\1/; q; }
11518           /^X\(\/\).*/{ s//\1/; q; }
11519           s/.*/./; q'`
11520     done
11521     test ! -n "$as_dirs" || mkdir $as_dirs
11522   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11523 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11524    { (exit 1); exit 1; }; }; }
11525
11526   ac_builddir=.
11527
11528 if test "$ac_dir" != .; then
11529   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11530   # A "../" for each directory in $ac_dir_suffix.
11531   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11532 else
11533   ac_dir_suffix= ac_top_builddir=
11534 fi
11535
11536 case $srcdir in
11537   .)  # No --srcdir option.  We are building in place.
11538     ac_srcdir=.
11539     if test -z "$ac_top_builddir"; then
11540        ac_top_srcdir=.
11541     else
11542        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11543     fi ;;
11544   [\\/]* | ?:[\\/]* )  # Absolute path.
11545     ac_srcdir=$srcdir$ac_dir_suffix;
11546     ac_top_srcdir=$srcdir ;;
11547   *) # Relative path.
11548     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11549     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11550 esac
11551
11552 # Do not use `cd foo && pwd` to compute absolute paths, because
11553 # the directories may not exist.
11554 case `pwd` in
11555 .) ac_abs_builddir="$ac_dir";;
11556 *)
11557   case "$ac_dir" in
11558   .) ac_abs_builddir=`pwd`;;
11559   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11560   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11561   esac;;
11562 esac
11563 case $ac_abs_builddir in
11564 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11565 *)
11566   case ${ac_top_builddir}. in
11567   .) ac_abs_top_builddir=$ac_abs_builddir;;
11568   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11569   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11570   esac;;
11571 esac
11572 case $ac_abs_builddir in
11573 .) ac_abs_srcdir=$ac_srcdir;;
11574 *)
11575   case $ac_srcdir in
11576   .) ac_abs_srcdir=$ac_abs_builddir;;
11577   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11578   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11579   esac;;
11580 esac
11581 case $ac_abs_builddir in
11582 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11583 *)
11584   case $ac_top_srcdir in
11585   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11586   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11587   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11588   esac;;
11589 esac
11590
11591
11592   case $INSTALL in
11593   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11594   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11595   esac
11596
11597   # Let's still pretend it is `configure' which instantiates (i.e., don't
11598   # use $as_me), people would be surprised to read:
11599   #    /* config.h.  Generated by config.status.  */
11600   if test x"$ac_file" = x-; then
11601     configure_input=
11602   else
11603     configure_input="$ac_file.  "
11604   fi
11605   configure_input=$configure_input"Generated from `echo $ac_file_in |
11606                                      sed 's,.*/,,'` by configure."
11607
11608   # First look for the input files in the build tree, otherwise in the
11609   # src tree.
11610   ac_file_inputs=`IFS=:
11611     for f in $ac_file_in; do
11612       case $f in
11613       -) echo $tmp/stdin ;;
11614       [\\/$]*)
11615          # Absolute (can't be DOS-style, as IFS=:)
11616          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11617 echo "$as_me: error: cannot find input file: $f" >&2;}
11618    { (exit 1); exit 1; }; }
11619          echo "$f";;
11620       *) # Relative
11621          if test -f "$f"; then
11622            # Build tree
11623            echo "$f"
11624          elif test -f "$srcdir/$f"; then
11625            # Source tree
11626            echo "$srcdir/$f"
11627          else
11628            # /dev/null tree
11629            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11630 echo "$as_me: error: cannot find input file: $f" >&2;}
11631    { (exit 1); exit 1; }; }
11632          fi;;
11633       esac
11634     done` || { (exit 1); exit 1; }
11635
11636   if test x"$ac_file" != x-; then
11637     { echo "$as_me:$LINENO: creating $ac_file" >&5
11638 echo "$as_me: creating $ac_file" >&6;}
11639     rm -f "$ac_file"
11640   fi
11641 _ACEOF
11642 cat >>$CONFIG_STATUS <<_ACEOF
11643   sed "$ac_vpsub
11644 $extrasub
11645 _ACEOF
11646 cat >>$CONFIG_STATUS <<\_ACEOF
11647 :t
11648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11649 s,@configure_input@,$configure_input,;t t
11650 s,@srcdir@,$ac_srcdir,;t t
11651 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11652 s,@top_srcdir@,$ac_top_srcdir,;t t
11653 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11654 s,@builddir@,$ac_builddir,;t t
11655 s,@abs_builddir@,$ac_abs_builddir,;t t
11656 s,@top_builddir@,$ac_top_builddir,;t t
11657 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11658 s,@INSTALL@,$ac_INSTALL,;t t
11659 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11660   rm -f $tmp/stdin
11661   if test x"$ac_file" != x-; then
11662     mv $tmp/out $ac_file
11663   else
11664     cat $tmp/out
11665     rm -f $tmp/out
11666   fi
11667
11668 done
11669 _ACEOF
11670 cat >>$CONFIG_STATUS <<\_ACEOF
11671
11672 #
11673 # CONFIG_HEADER section.
11674 #
11675
11676 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11677 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11678 #
11679 # ac_d sets the value in "#define NAME VALUE" lines.
11680 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11681 ac_dB='[         ].*$,\1#\2'
11682 ac_dC=' '
11683 ac_dD=',;t'
11684 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11685 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11686 ac_uB='$,\1#\2define\3'
11687 ac_uC=' '
11688 ac_uD=',;t'
11689
11690 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11691   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11692   case $ac_file in
11693   - | *:- | *:-:* ) # input from stdin
11694         cat >$tmp/stdin
11695         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11696         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11697   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11698         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11699   * )   ac_file_in=$ac_file.in ;;
11700   esac
11701
11702   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11703 echo "$as_me: creating $ac_file" >&6;}
11704
11705   # First look for the input files in the build tree, otherwise in the
11706   # src tree.
11707   ac_file_inputs=`IFS=:
11708     for f in $ac_file_in; do
11709       case $f in
11710       -) echo $tmp/stdin ;;
11711       [\\/$]*)
11712          # Absolute (can't be DOS-style, as IFS=:)
11713          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11714 echo "$as_me: error: cannot find input file: $f" >&2;}
11715    { (exit 1); exit 1; }; }
11716          # Do quote $f, to prevent DOS paths from being IFS'd.
11717          echo "$f";;
11718       *) # Relative
11719          if test -f "$f"; then
11720            # Build tree
11721            echo "$f"
11722          elif test -f "$srcdir/$f"; then
11723            # Source tree
11724            echo "$srcdir/$f"
11725          else
11726            # /dev/null tree
11727            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11728 echo "$as_me: error: cannot find input file: $f" >&2;}
11729    { (exit 1); exit 1; }; }
11730          fi;;
11731       esac
11732     done` || { (exit 1); exit 1; }
11733   # Remove the trailing spaces.
11734   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11735
11736 _ACEOF
11737
11738 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11739 # `conftest.undefs', that substitutes the proper values into
11740 # config.h.in to produce config.h.  The first handles `#define'
11741 # templates, and the second `#undef' templates.
11742 # And first: Protect against being on the right side of a sed subst in
11743 # config.status.  Protect against being in an unquoted here document
11744 # in config.status.
11745 rm -f conftest.defines conftest.undefs
11746 # Using a here document instead of a string reduces the quoting nightmare.
11747 # Putting comments in sed scripts is not portable.
11748 #
11749 # `end' is used to avoid that the second main sed command (meant for
11750 # 0-ary CPP macros) applies to n-ary macro definitions.
11751 # See the Autoconf documentation for `clear'.
11752 cat >confdef2sed.sed <<\_ACEOF
11753 s/[\\&,]/\\&/g
11754 s,[\\$`],\\&,g
11755 t clear
11756 : clear
11757 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11758 t end
11759 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11760 : end
11761 _ACEOF
11762 # If some macros were called several times there might be several times
11763 # the same #defines, which is useless.  Nevertheless, we may not want to
11764 # sort them, since we want the *last* AC-DEFINE to be honored.
11765 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11766 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11767 rm -f confdef2sed.sed
11768
11769 # This sed command replaces #undef with comments.  This is necessary, for
11770 # example, in the case of _POSIX_SOURCE, which is predefined and required
11771 # on some systems where configure will not decide to define it.
11772 cat >>conftest.undefs <<\_ACEOF
11773 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11774 _ACEOF
11775
11776 # Break up conftest.defines because some shells have a limit on the size
11777 # of here documents, and old seds have small limits too (100 cmds).
11778 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11779 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11780 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11781 echo '  :' >>$CONFIG_STATUS
11782 rm -f conftest.tail
11783 while grep . conftest.defines >/dev/null
11784 do
11785   # Write a limited-size here document to $tmp/defines.sed.
11786   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11787   # Speed up: don't consider the non `#define' lines.
11788   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11789   # Work around the forget-to-reset-the-flag bug.
11790   echo 't clr' >>$CONFIG_STATUS
11791   echo ': clr' >>$CONFIG_STATUS
11792   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11793   echo 'CEOF
11794   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11795   rm -f $tmp/in
11796   mv $tmp/out $tmp/in
11797 ' >>$CONFIG_STATUS
11798   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11799   rm -f conftest.defines
11800   mv conftest.tail conftest.defines
11801 done
11802 rm -f conftest.defines
11803 echo '  fi # grep' >>$CONFIG_STATUS
11804 echo >>$CONFIG_STATUS
11805
11806 # Break up conftest.undefs because some shells have a limit on the size
11807 # of here documents, and old seds have small limits too (100 cmds).
11808 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11809 rm -f conftest.tail
11810 while grep . conftest.undefs >/dev/null
11811 do
11812   # Write a limited-size here document to $tmp/undefs.sed.
11813   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11814   # Speed up: don't consider the non `#undef'
11815   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11816   # Work around the forget-to-reset-the-flag bug.
11817   echo 't clr' >>$CONFIG_STATUS
11818   echo ': clr' >>$CONFIG_STATUS
11819   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11820   echo 'CEOF
11821   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11822   rm -f $tmp/in
11823   mv $tmp/out $tmp/in
11824 ' >>$CONFIG_STATUS
11825   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11826   rm -f conftest.undefs
11827   mv conftest.tail conftest.undefs
11828 done
11829 rm -f conftest.undefs
11830
11831 cat >>$CONFIG_STATUS <<\_ACEOF
11832   # Let's still pretend it is `configure' which instantiates (i.e., don't
11833   # use $as_me), people would be surprised to read:
11834   #    /* config.h.  Generated by config.status.  */
11835   if test x"$ac_file" = x-; then
11836     echo "/* Generated by configure.  */" >$tmp/config.h
11837   else
11838     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11839   fi
11840   cat $tmp/in >>$tmp/config.h
11841   rm -f $tmp/in
11842   if test x"$ac_file" != x-; then
11843     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11844       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11845 echo "$as_me: $ac_file is unchanged" >&6;}
11846     else
11847       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11848 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11849          X"$ac_file" : 'X\(//\)[^/]' \| \
11850          X"$ac_file" : 'X\(//\)$' \| \
11851          X"$ac_file" : 'X\(/\)' \| \
11852          .     : '\(.\)' 2>/dev/null ||
11853 echo X"$ac_file" |
11854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11855           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11856           /^X\(\/\/\)$/{ s//\1/; q; }
11857           /^X\(\/\).*/{ s//\1/; q; }
11858           s/.*/./; q'`
11859       { if $as_mkdir_p; then
11860     mkdir -p "$ac_dir"
11861   else
11862     as_dir="$ac_dir"
11863     as_dirs=
11864     while test ! -d "$as_dir"; do
11865       as_dirs="$as_dir $as_dirs"
11866       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11868          X"$as_dir" : 'X\(//\)[^/]' \| \
11869          X"$as_dir" : 'X\(//\)$' \| \
11870          X"$as_dir" : 'X\(/\)' \| \
11871          .     : '\(.\)' 2>/dev/null ||
11872 echo X"$as_dir" |
11873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11875           /^X\(\/\/\)$/{ s//\1/; q; }
11876           /^X\(\/\).*/{ s//\1/; q; }
11877           s/.*/./; q'`
11878     done
11879     test ! -n "$as_dirs" || mkdir $as_dirs
11880   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11881 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11882    { (exit 1); exit 1; }; }; }
11883
11884       rm -f $ac_file
11885       mv $tmp/config.h $ac_file
11886     fi
11887   else
11888     cat $tmp/config.h
11889     rm -f $tmp/config.h
11890   fi
11891 done
11892 _ACEOF
11893 cat >>$CONFIG_STATUS <<\_ACEOF
11894
11895 #
11896 # CONFIG_COMMANDS section.
11897 #
11898 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11899   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11900   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11901   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11902 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11903          X"$ac_dest" : 'X\(//\)[^/]' \| \
11904          X"$ac_dest" : 'X\(//\)$' \| \
11905          X"$ac_dest" : 'X\(/\)' \| \
11906          .     : '\(.\)' 2>/dev/null ||
11907 echo X"$ac_dest" |
11908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11909           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11910           /^X\(\/\/\)$/{ s//\1/; q; }
11911           /^X\(\/\).*/{ s//\1/; q; }
11912           s/.*/./; q'`
11913   { if $as_mkdir_p; then
11914     mkdir -p "$ac_dir"
11915   else
11916     as_dir="$ac_dir"
11917     as_dirs=
11918     while test ! -d "$as_dir"; do
11919       as_dirs="$as_dir $as_dirs"
11920       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11922          X"$as_dir" : 'X\(//\)[^/]' \| \
11923          X"$as_dir" : 'X\(//\)$' \| \
11924          X"$as_dir" : 'X\(/\)' \| \
11925          .     : '\(.\)' 2>/dev/null ||
11926 echo X"$as_dir" |
11927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11928           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11929           /^X\(\/\/\)$/{ s//\1/; q; }
11930           /^X\(\/\).*/{ s//\1/; q; }
11931           s/.*/./; q'`
11932     done
11933     test ! -n "$as_dirs" || mkdir $as_dirs
11934   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11935 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11936    { (exit 1); exit 1; }; }; }
11937
11938   ac_builddir=.
11939
11940 if test "$ac_dir" != .; then
11941   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11942   # A "../" for each directory in $ac_dir_suffix.
11943   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11944 else
11945   ac_dir_suffix= ac_top_builddir=
11946 fi
11947
11948 case $srcdir in
11949   .)  # No --srcdir option.  We are building in place.
11950     ac_srcdir=.
11951     if test -z "$ac_top_builddir"; then
11952        ac_top_srcdir=.
11953     else
11954        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11955     fi ;;
11956   [\\/]* | ?:[\\/]* )  # Absolute path.
11957     ac_srcdir=$srcdir$ac_dir_suffix;
11958     ac_top_srcdir=$srcdir ;;
11959   *) # Relative path.
11960     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11961     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11962 esac
11963
11964 # Do not use `cd foo && pwd` to compute absolute paths, because
11965 # the directories may not exist.
11966 case `pwd` in
11967 .) ac_abs_builddir="$ac_dir";;
11968 *)
11969   case "$ac_dir" in
11970   .) ac_abs_builddir=`pwd`;;
11971   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11972   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11973   esac;;
11974 esac
11975 case $ac_abs_builddir in
11976 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11977 *)
11978   case ${ac_top_builddir}. in
11979   .) ac_abs_top_builddir=$ac_abs_builddir;;
11980   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11981   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11982   esac;;
11983 esac
11984 case $ac_abs_builddir in
11985 .) ac_abs_srcdir=$ac_srcdir;;
11986 *)
11987   case $ac_srcdir in
11988   .) ac_abs_srcdir=$ac_abs_builddir;;
11989   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11990   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11991   esac;;
11992 esac
11993 case $ac_abs_builddir in
11994 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11995 *)
11996   case $ac_top_srcdir in
11997   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11998   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11999   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12000   esac;;
12001 esac
12002
12003
12004   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12005 echo "$as_me: executing $ac_dest commands" >&6;}
12006   case $ac_dest in
12007     default ) echo timestamp > stamp-h ;;
12008   esac
12009 done
12010 _ACEOF
12011
12012 cat >>$CONFIG_STATUS <<\_ACEOF
12013
12014 { (exit 0); exit 0; }
12015 _ACEOF
12016 chmod +x $CONFIG_STATUS
12017 ac_clean_files=$ac_clean_files_save
12018
12019
12020 # configure is writing to config.log, and then calls config.status.
12021 # config.status does its own redirection, appending to config.log.
12022 # Unfortunately, on DOS this fails, as config.log is still kept open
12023 # by configure, so config.status won't be able to write to it; its
12024 # output is simply discarded.  So we exec the FD to /dev/null,
12025 # effectively closing config.log, so it can be properly (re)opened and
12026 # appended to by config.status.  When coming back to configure, we
12027 # need to make the FD available again.
12028 if test "$no_create" != yes; then
12029   ac_cs_success=:
12030   ac_config_status_args=
12031   test "$silent" = yes &&
12032     ac_config_status_args="$ac_config_status_args --quiet"
12033   exec 5>/dev/null
12034   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12035   exec 5>>config.log
12036   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12037   # would make configure fail if this is the last instruction.
12038   $ac_cs_success || { (exit 1); exit 1; }
12039 fi
12040
12041
12042           ac_config_commands="$ac_config_commands default-1"
12043