1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Spread 4.2.0.
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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" 	$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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME='Spread'
269PACKAGE_TARNAME='spread'
270PACKAGE_VERSION='4.2.0'
271PACKAGE_STRING='Spread 4.2.0'
272PACKAGE_BUGREPORT=''
273
274ac_subdirs_all="$ac_subdirs_all stdutil libspread-util"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_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 subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC LEX AR PERL LD THLDFLAGS THLIBS EGREP SP_MAJOR_VERSION SP_MINOR_VERSION SP_PATCH_VERSION NROFF MANTYPE mansubdir piddir docdir SHCC SHCFLAGS SHCPPFLAGS SHLD SHLDFLAGS SHLIBS LIBSPSO LIBSPCORESO LIBTSPCORESO SHLDOPTION SHLDNAME SHLDCONVERTSTATIC SHLDCONVERTSTATICEND LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures Spread 4.2.0 to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833
834System types:
835  --build=BUILD     configure for building on BUILD [guessed]
836  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841  case $ac_init_help in
842     short | recursive ) echo "Configuration of Spread 4.2.0:";;
843   esac
844  cat <<\_ACEOF
845
846Optional Packages:
847  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
848  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
849  --with-cflags           Specify additional flags to pass to compiler
850  --with-cppflags         Specify additional flags to pass to preprocessor
851  --with-ldflags          Specify additional flags to pass to linker
852  --with-libs             Specify additional libraries to link with
853  --with-mantype=man|cat|doc  Set man page type
854  --with-pid-dir=PATH     Specify location of spread.pid file
855  --with-unix-socket-dir=PATH     Specify location of Unix Domain Socket for client-daemon connections. If you are running Spread as a root user, you should define this to be a root only directory such as /var/run to avoid some security risks.
856  --with-docdir=DIR       Where to put the documentation
857
858Some influential environment variables:
859  CC          C compiler command
860  CFLAGS      C compiler flags
861  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
862              nonstandard directory <lib dir>
863  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
864              headers in a nonstandard directory <include dir>
865  CPP         C preprocessor
866
867Use these variables to override the choices made by `configure' or to help
868it to find libraries and programs with nonstandard names/locations.
869
870_ACEOF
871fi
872
873if test "$ac_init_help" = "recursive"; then
874  # If there are subdirs, report their specific --help.
875  ac_popdir=`pwd`
876  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877    test -d $ac_dir || continue
878    ac_builddir=.
879
880if test "$ac_dir" != .; then
881  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882  # A "../" for each directory in $ac_dir_suffix.
883  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884else
885  ac_dir_suffix= ac_top_builddir=
886fi
887
888case $srcdir in
889  .)  # No --srcdir option.  We are building in place.
890    ac_srcdir=.
891    if test -z "$ac_top_builddir"; then
892       ac_top_srcdir=.
893    else
894       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895    fi ;;
896  [\\/]* | ?:[\\/]* )  # Absolute path.
897    ac_srcdir=$srcdir$ac_dir_suffix;
898    ac_top_srcdir=$srcdir ;;
899  *) # Relative path.
900    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901    ac_top_srcdir=$ac_top_builddir$srcdir ;;
902esac
903
904# Do not use `cd foo && pwd` to compute absolute paths, because
905# the directories may not exist.
906case `pwd` in
907.) ac_abs_builddir="$ac_dir";;
908*)
909  case "$ac_dir" in
910  .) ac_abs_builddir=`pwd`;;
911  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
912  *) ac_abs_builddir=`pwd`/"$ac_dir";;
913  esac;;
914esac
915case $ac_abs_builddir in
916.) ac_abs_top_builddir=${ac_top_builddir}.;;
917*)
918  case ${ac_top_builddir}. in
919  .) ac_abs_top_builddir=$ac_abs_builddir;;
920  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
921  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
922  esac;;
923esac
924case $ac_abs_builddir in
925.) ac_abs_srcdir=$ac_srcdir;;
926*)
927  case $ac_srcdir in
928  .) ac_abs_srcdir=$ac_abs_builddir;;
929  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
930  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
931  esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_top_srcdir=$ac_top_srcdir;;
935*)
936  case $ac_top_srcdir in
937  .) ac_abs_top_srcdir=$ac_abs_builddir;;
938  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
939  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
940  esac;;
941esac
942
943    cd $ac_dir
944    # Check for guested configure; otherwise get Cygnus style configure.
945    if test -f $ac_srcdir/configure.gnu; then
946      echo
947      $SHELL $ac_srcdir/configure.gnu  --help=recursive
948    elif test -f $ac_srcdir/configure; then
949      echo
950      $SHELL $ac_srcdir/configure  --help=recursive
951    elif test -f $ac_srcdir/configure.ac ||
952	   test -f $ac_srcdir/configure.in; then
953      echo
954      $ac_configure --help
955    else
956      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957    fi
958    cd $ac_popdir
959  done
960fi
961
962test -n "$ac_init_help" && exit 0
963if $ac_init_version; then
964  cat <<\_ACEOF
965Spread configure 4.2.0
966generated by GNU Autoconf 2.59
967
968Copyright (C) 2003 Free Software Foundation, Inc.
969This configure script is free software; the Free Software Foundation
970gives unlimited permission to copy, distribute and modify it.
971_ACEOF
972  exit 0
973fi
974exec 5>config.log
975cat >&5 <<_ACEOF
976This file contains any messages produced by compilers while
977running configure, to aid debugging if configure makes a mistake.
978
979It was created by Spread $as_me 4.2.0, which was
980generated by GNU Autoconf 2.59.  Invocation command line was
981
982  $ $0 $@
983
984_ACEOF
985{
986cat <<_ASUNAME
987## --------- ##
988## Platform. ##
989## --------- ##
990
991hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
992uname -m = `(uname -m) 2>/dev/null || echo unknown`
993uname -r = `(uname -r) 2>/dev/null || echo unknown`
994uname -s = `(uname -s) 2>/dev/null || echo unknown`
995uname -v = `(uname -v) 2>/dev/null || echo unknown`
996
997/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
998/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
999
1000/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1001/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1002/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1003hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1004/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1005/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1006/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1007
1008_ASUNAME
1009
1010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1011for as_dir in $PATH
1012do
1013  IFS=$as_save_IFS
1014  test -z "$as_dir" && as_dir=.
1015  echo "PATH: $as_dir"
1016done
1017
1018} >&5
1019
1020cat >&5 <<_ACEOF
1021
1022
1023## ----------- ##
1024## Core tests. ##
1025## ----------- ##
1026
1027_ACEOF
1028
1029
1030# Keep a trace of the command line.
1031# Strip out --no-create and --no-recursion so they do not pile up.
1032# Strip out --silent because we don't want to record it for future runs.
1033# Also quote any args containing shell meta-characters.
1034# Make two passes to allow for proper duplicate-argument suppression.
1035ac_configure_args=
1036ac_configure_args0=
1037ac_configure_args1=
1038ac_sep=
1039ac_must_keep_next=false
1040for ac_pass in 1 2
1041do
1042  for ac_arg
1043  do
1044    case $ac_arg in
1045    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1046    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047    | -silent | --silent | --silen | --sile | --sil)
1048      continue ;;
1049    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051    esac
1052    case $ac_pass in
1053    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1054    2)
1055      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1056      if test $ac_must_keep_next = true; then
1057	ac_must_keep_next=false # Got value, back to normal.
1058      else
1059	case $ac_arg in
1060	  *=* | --config-cache | -C | -disable-* | --disable-* \
1061	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1062	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1063	  | -with-* | --with-* | -without-* | --without-* | --x)
1064	    case "$ac_configure_args0 " in
1065	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066	    esac
1067	    ;;
1068	  -* ) ac_must_keep_next=true ;;
1069	esac
1070      fi
1071      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1072      # Get rid of the leading space.
1073      ac_sep=" "
1074      ;;
1075    esac
1076  done
1077done
1078$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1079$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1080
1081# When interrupted or exit'd, cleanup temporary files, and complete
1082# config.log.  We remove comments because anyway the quotes in there
1083# would cause problems or look ugly.
1084# WARNING: Be sure not to use single quotes in there, as some shells,
1085# such as our DU 5.0 friend, will then `close' the trap.
1086trap 'exit_status=$?
1087  # Save into config.log some information that might help in debugging.
1088  {
1089    echo
1090
1091    cat <<\_ASBOX
1092## ---------------- ##
1093## Cache variables. ##
1094## ---------------- ##
1095_ASBOX
1096    echo
1097    # The following way of writing the cache mishandles newlines in values,
1098{
1099  (set) 2>&1 |
1100    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101    *ac_space=\ *)
1102      sed -n \
1103	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1104	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1105      ;;
1106    *)
1107      sed -n \
1108	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1109      ;;
1110    esac;
1111}
1112    echo
1113
1114    cat <<\_ASBOX
1115## ----------------- ##
1116## Output variables. ##
1117## ----------------- ##
1118_ASBOX
1119    echo
1120    for ac_var in $ac_subst_vars
1121    do
1122      eval ac_val=$`echo $ac_var`
1123      echo "$ac_var='"'"'$ac_val'"'"'"
1124    done | sort
1125    echo
1126
1127    if test -n "$ac_subst_files"; then
1128      cat <<\_ASBOX
1129## ------------- ##
1130## Output files. ##
1131## ------------- ##
1132_ASBOX
1133      echo
1134      for ac_var in $ac_subst_files
1135      do
1136	eval ac_val=$`echo $ac_var`
1137	echo "$ac_var='"'"'$ac_val'"'"'"
1138      done | sort
1139      echo
1140    fi
1141
1142    if test -s confdefs.h; then
1143      cat <<\_ASBOX
1144## ----------- ##
1145## confdefs.h. ##
1146## ----------- ##
1147_ASBOX
1148      echo
1149      sed "/^$/d" confdefs.h | sort
1150      echo
1151    fi
1152    test "$ac_signal" != 0 &&
1153      echo "$as_me: caught signal $ac_signal"
1154    echo "$as_me: exit $exit_status"
1155  } >&5
1156  rm -f core *.core &&
1157  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1158    exit $exit_status
1159     ' 0
1160for ac_signal in 1 2 13 15; do
1161  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1162done
1163ac_signal=0
1164
1165# confdefs.h avoids OS command line length limits that DEFS can exceed.
1166rm -rf conftest* confdefs.h
1167# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168echo >confdefs.h
1169
1170# Predefined preprocessor variables.
1171
1172cat >>confdefs.h <<_ACEOF
1173#define PACKAGE_NAME "$PACKAGE_NAME"
1174_ACEOF
1175
1176
1177cat >>confdefs.h <<_ACEOF
1178#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1179_ACEOF
1180
1181
1182cat >>confdefs.h <<_ACEOF
1183#define PACKAGE_VERSION "$PACKAGE_VERSION"
1184_ACEOF
1185
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_STRING "$PACKAGE_STRING"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1194_ACEOF
1195
1196
1197# Let the site file select an alternate cache file if it wants to.
1198# Prefer explicitly selected file to automatically selected ones.
1199if test -z "$CONFIG_SITE"; then
1200  if test "x$prefix" != xNONE; then
1201    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1202  else
1203    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204  fi
1205fi
1206for ac_site_file in $CONFIG_SITE; do
1207  if test -r "$ac_site_file"; then
1208    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1209echo "$as_me: loading site script $ac_site_file" >&6;}
1210    sed 's/^/| /' "$ac_site_file" >&5
1211    . "$ac_site_file"
1212  fi
1213done
1214
1215if test -r "$cache_file"; then
1216  # Some versions of bash will fail to source /dev/null (special
1217  # files actually), so we avoid doing that.
1218  if test -f "$cache_file"; then
1219    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1220echo "$as_me: loading cache $cache_file" >&6;}
1221    case $cache_file in
1222      [\\/]* | ?:[\\/]* ) . $cache_file;;
1223      *)                      . ./$cache_file;;
1224    esac
1225  fi
1226else
1227  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1228echo "$as_me: creating cache $cache_file" >&6;}
1229  >$cache_file
1230fi
1231
1232# Check that the precious variables saved in the cache have kept the same
1233# value.
1234ac_cache_corrupted=false
1235for ac_var in `(set) 2>&1 |
1236	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1237  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1238  eval ac_new_set=\$ac_env_${ac_var}_set
1239  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1240  eval ac_new_val="\$ac_env_${ac_var}_value"
1241  case $ac_old_set,$ac_new_set in
1242    set,)
1243      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1244echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1245      ac_cache_corrupted=: ;;
1246    ,set)
1247      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1248echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1249      ac_cache_corrupted=: ;;
1250    ,);;
1251    *)
1252      if test "x$ac_old_val" != "x$ac_new_val"; then
1253	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1254echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1255	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1256echo "$as_me:   former value:  $ac_old_val" >&2;}
1257	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1258echo "$as_me:   current value: $ac_new_val" >&2;}
1259	ac_cache_corrupted=:
1260      fi;;
1261  esac
1262  # Pass precious variables to config.status.
1263  if test "$ac_new_set" = set; then
1264    case $ac_new_val in
1265    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1267    *) ac_arg=$ac_var=$ac_new_val ;;
1268    esac
1269    case " $ac_configure_args " in
1270      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1271      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1272    esac
1273  fi
1274done
1275if $ac_cache_corrupted; then
1276  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1277echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1278  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1279echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1280   { (exit 1); exit 1; }; }
1281fi
1282
1283ac_ext=c
1284ac_cpp='$CPP $CPPFLAGS'
1285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1287ac_compiler_gnu=$ac_cv_c_compiler_gnu
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316ac_aux_dir=
1317for ac_dir in buildtools $srcdir/buildtools; do
1318  if test -f $ac_dir/install-sh; then
1319    ac_aux_dir=$ac_dir
1320    ac_install_sh="$ac_aux_dir/install-sh -c"
1321    break
1322  elif test -f $ac_dir/install.sh; then
1323    ac_aux_dir=$ac_dir
1324    ac_install_sh="$ac_aux_dir/install.sh -c"
1325    break
1326  elif test -f $ac_dir/shtool; then
1327    ac_aux_dir=$ac_dir
1328    ac_install_sh="$ac_aux_dir/shtool install -c"
1329    break
1330  fi
1331done
1332if test -z "$ac_aux_dir"; then
1333  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in buildtools $srcdir/buildtools" >&5
1334echo "$as_me: error: cannot find install-sh or install.sh in buildtools $srcdir/buildtools" >&2;}
1335   { (exit 1); exit 1; }; }
1336fi
1337ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1338ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1339ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1340
1341          ac_config_headers="$ac_config_headers daemon/config.h"
1342
1343
1344
1345
1346subdirs="$subdirs stdutil libspread-util"
1347
1348
1349# Make sure we can run config.sub.
1350$ac_config_sub sun4 >/dev/null 2>&1 ||
1351  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1352echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1353   { (exit 1); exit 1; }; }
1354
1355echo "$as_me:$LINENO: checking build system type" >&5
1356echo $ECHO_N "checking build system type... $ECHO_C" >&6
1357if test "${ac_cv_build+set}" = set; then
1358  echo $ECHO_N "(cached) $ECHO_C" >&6
1359else
1360  ac_cv_build_alias=$build_alias
1361test -z "$ac_cv_build_alias" &&
1362  ac_cv_build_alias=`$ac_config_guess`
1363test -z "$ac_cv_build_alias" &&
1364  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1365echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1366   { (exit 1); exit 1; }; }
1367ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1368  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1369echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1370   { (exit 1); exit 1; }; }
1371
1372fi
1373echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1374echo "${ECHO_T}$ac_cv_build" >&6
1375build=$ac_cv_build
1376build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1377build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1378build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379
1380
1381echo "$as_me:$LINENO: checking host system type" >&5
1382echo $ECHO_N "checking host system type... $ECHO_C" >&6
1383if test "${ac_cv_host+set}" = set; then
1384  echo $ECHO_N "(cached) $ECHO_C" >&6
1385else
1386  ac_cv_host_alias=$host_alias
1387test -z "$ac_cv_host_alias" &&
1388  ac_cv_host_alias=$ac_cv_build_alias
1389ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1390  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1391echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1392   { (exit 1); exit 1; }; }
1393
1394fi
1395echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1396echo "${ECHO_T}$ac_cv_host" >&6
1397host=$ac_cv_host
1398host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1399host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1400host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401
1402
1403
1404case "$host" in
1405mips-sgi-irix* )
1406	CC=cc
1407	CFLAGS="-n32 -signed"
1408	;;
1409esac
1410
1411ac_ext=c
1412ac_cpp='$CPP $CPPFLAGS'
1413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1415ac_compiler_gnu=$ac_cv_c_compiler_gnu
1416if test -n "$ac_tool_prefix"; then
1417  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1418set dummy ${ac_tool_prefix}gcc; ac_word=$2
1419echo "$as_me:$LINENO: checking for $ac_word" >&5
1420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421if test "${ac_cv_prog_CC+set}" = set; then
1422  echo $ECHO_N "(cached) $ECHO_C" >&6
1423else
1424  if test -n "$CC"; then
1425  ac_cv_prog_CC="$CC" # Let the user override the test.
1426else
1427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428for as_dir in $PATH
1429do
1430  IFS=$as_save_IFS
1431  test -z "$as_dir" && as_dir=.
1432  for ac_exec_ext in '' $ac_executable_extensions; do
1433  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1435    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436    break 2
1437  fi
1438done
1439done
1440
1441fi
1442fi
1443CC=$ac_cv_prog_CC
1444if test -n "$CC"; then
1445  echo "$as_me:$LINENO: result: $CC" >&5
1446echo "${ECHO_T}$CC" >&6
1447else
1448  echo "$as_me:$LINENO: result: no" >&5
1449echo "${ECHO_T}no" >&6
1450fi
1451
1452fi
1453if test -z "$ac_cv_prog_CC"; then
1454  ac_ct_CC=$CC
1455  # Extract the first word of "gcc", so it can be a program name with args.
1456set dummy gcc; ac_word=$2
1457echo "$as_me:$LINENO: checking for $ac_word" >&5
1458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1460  echo $ECHO_N "(cached) $ECHO_C" >&6
1461else
1462  if test -n "$ac_ct_CC"; then
1463  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1464else
1465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466for as_dir in $PATH
1467do
1468  IFS=$as_save_IFS
1469  test -z "$as_dir" && as_dir=.
1470  for ac_exec_ext in '' $ac_executable_extensions; do
1471  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472    ac_cv_prog_ac_ct_CC="gcc"
1473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474    break 2
1475  fi
1476done
1477done
1478
1479fi
1480fi
1481ac_ct_CC=$ac_cv_prog_ac_ct_CC
1482if test -n "$ac_ct_CC"; then
1483  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1484echo "${ECHO_T}$ac_ct_CC" >&6
1485else
1486  echo "$as_me:$LINENO: result: no" >&5
1487echo "${ECHO_T}no" >&6
1488fi
1489
1490  CC=$ac_ct_CC
1491else
1492  CC="$ac_cv_prog_CC"
1493fi
1494
1495if test -z "$CC"; then
1496  if test -n "$ac_tool_prefix"; then
1497  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1498set dummy ${ac_tool_prefix}cc; ac_word=$2
1499echo "$as_me:$LINENO: checking for $ac_word" >&5
1500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501if test "${ac_cv_prog_CC+set}" = set; then
1502  echo $ECHO_N "(cached) $ECHO_C" >&6
1503else
1504  if test -n "$CC"; then
1505  ac_cv_prog_CC="$CC" # Let the user override the test.
1506else
1507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508for as_dir in $PATH
1509do
1510  IFS=$as_save_IFS
1511  test -z "$as_dir" && as_dir=.
1512  for ac_exec_ext in '' $ac_executable_extensions; do
1513  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514    ac_cv_prog_CC="${ac_tool_prefix}cc"
1515    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1516    break 2
1517  fi
1518done
1519done
1520
1521fi
1522fi
1523CC=$ac_cv_prog_CC
1524if test -n "$CC"; then
1525  echo "$as_me:$LINENO: result: $CC" >&5
1526echo "${ECHO_T}$CC" >&6
1527else
1528  echo "$as_me:$LINENO: result: no" >&5
1529echo "${ECHO_T}no" >&6
1530fi
1531
1532fi
1533if test -z "$ac_cv_prog_CC"; then
1534  ac_ct_CC=$CC
1535  # Extract the first word of "cc", so it can be a program name with args.
1536set dummy cc; ac_word=$2
1537echo "$as_me:$LINENO: checking for $ac_word" >&5
1538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1540  echo $ECHO_N "(cached) $ECHO_C" >&6
1541else
1542  if test -n "$ac_ct_CC"; then
1543  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1544else
1545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546for as_dir in $PATH
1547do
1548  IFS=$as_save_IFS
1549  test -z "$as_dir" && as_dir=.
1550  for ac_exec_ext in '' $ac_executable_extensions; do
1551  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552    ac_cv_prog_ac_ct_CC="cc"
1553    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554    break 2
1555  fi
1556done
1557done
1558
1559fi
1560fi
1561ac_ct_CC=$ac_cv_prog_ac_ct_CC
1562if test -n "$ac_ct_CC"; then
1563  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1564echo "${ECHO_T}$ac_ct_CC" >&6
1565else
1566  echo "$as_me:$LINENO: result: no" >&5
1567echo "${ECHO_T}no" >&6
1568fi
1569
1570  CC=$ac_ct_CC
1571else
1572  CC="$ac_cv_prog_CC"
1573fi
1574
1575fi
1576if test -z "$CC"; then
1577  # Extract the first word of "cc", so it can be a program name with args.
1578set dummy cc; ac_word=$2
1579echo "$as_me:$LINENO: checking for $ac_word" >&5
1580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581if test "${ac_cv_prog_CC+set}" = set; then
1582  echo $ECHO_N "(cached) $ECHO_C" >&6
1583else
1584  if test -n "$CC"; then
1585  ac_cv_prog_CC="$CC" # Let the user override the test.
1586else
1587  ac_prog_rejected=no
1588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589for as_dir in $PATH
1590do
1591  IFS=$as_save_IFS
1592  test -z "$as_dir" && as_dir=.
1593  for ac_exec_ext in '' $ac_executable_extensions; do
1594  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1596       ac_prog_rejected=yes
1597       continue
1598     fi
1599    ac_cv_prog_CC="cc"
1600    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601    break 2
1602  fi
1603done
1604done
1605
1606if test $ac_prog_rejected = yes; then
1607  # We found a bogon in the path, so make sure we never use it.
1608  set dummy $ac_cv_prog_CC
1609  shift
1610  if test $# != 0; then
1611    # We chose a different compiler from the bogus one.
1612    # However, it has the same basename, so the bogon will be chosen
1613    # first if we set CC to just the basename; use the full file name.
1614    shift
1615    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1616  fi
1617fi
1618fi
1619fi
1620CC=$ac_cv_prog_CC
1621if test -n "$CC"; then
1622  echo "$as_me:$LINENO: result: $CC" >&5
1623echo "${ECHO_T}$CC" >&6
1624else
1625  echo "$as_me:$LINENO: result: no" >&5
1626echo "${ECHO_T}no" >&6
1627fi
1628
1629fi
1630if test -z "$CC"; then
1631  if test -n "$ac_tool_prefix"; then
1632  for ac_prog in cl
1633  do
1634    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1635set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1636echo "$as_me:$LINENO: checking for $ac_word" >&5
1637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638if test "${ac_cv_prog_CC+set}" = set; then
1639  echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641  if test -n "$CC"; then
1642  ac_cv_prog_CC="$CC" # Let the user override the test.
1643else
1644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647  IFS=$as_save_IFS
1648  test -z "$as_dir" && as_dir=.
1649  for ac_exec_ext in '' $ac_executable_extensions; do
1650  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1652    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653    break 2
1654  fi
1655done
1656done
1657
1658fi
1659fi
1660CC=$ac_cv_prog_CC
1661if test -n "$CC"; then
1662  echo "$as_me:$LINENO: result: $CC" >&5
1663echo "${ECHO_T}$CC" >&6
1664else
1665  echo "$as_me:$LINENO: result: no" >&5
1666echo "${ECHO_T}no" >&6
1667fi
1668
1669    test -n "$CC" && break
1670  done
1671fi
1672if test -z "$CC"; then
1673  ac_ct_CC=$CC
1674  for ac_prog in cl
1675do
1676  # Extract the first word of "$ac_prog", so it can be a program name with args.
1677set dummy $ac_prog; ac_word=$2
1678echo "$as_me:$LINENO: checking for $ac_word" >&5
1679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1681  echo $ECHO_N "(cached) $ECHO_C" >&6
1682else
1683  if test -n "$ac_ct_CC"; then
1684  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1685else
1686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687for as_dir in $PATH
1688do
1689  IFS=$as_save_IFS
1690  test -z "$as_dir" && as_dir=.
1691  for ac_exec_ext in '' $ac_executable_extensions; do
1692  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693    ac_cv_prog_ac_ct_CC="$ac_prog"
1694    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695    break 2
1696  fi
1697done
1698done
1699
1700fi
1701fi
1702ac_ct_CC=$ac_cv_prog_ac_ct_CC
1703if test -n "$ac_ct_CC"; then
1704  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1705echo "${ECHO_T}$ac_ct_CC" >&6
1706else
1707  echo "$as_me:$LINENO: result: no" >&5
1708echo "${ECHO_T}no" >&6
1709fi
1710
1711  test -n "$ac_ct_CC" && break
1712done
1713
1714  CC=$ac_ct_CC
1715fi
1716
1717fi
1718
1719
1720test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1721See \`config.log' for more details." >&5
1722echo "$as_me: error: no acceptable C compiler found in \$PATH
1723See \`config.log' for more details." >&2;}
1724   { (exit 1); exit 1; }; }
1725
1726# Provide some information about the compiler.
1727echo "$as_me:$LINENO:" \
1728     "checking for C compiler version" >&5
1729ac_compiler=`set X $ac_compile; echo $2`
1730{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1731  (eval $ac_compiler --version </dev/null >&5) 2>&5
1732  ac_status=$?
1733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734  (exit $ac_status); }
1735{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1736  (eval $ac_compiler -v </dev/null >&5) 2>&5
1737  ac_status=$?
1738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739  (exit $ac_status); }
1740{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1741  (eval $ac_compiler -V </dev/null >&5) 2>&5
1742  ac_status=$?
1743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744  (exit $ac_status); }
1745
1746cat >conftest.$ac_ext <<_ACEOF
1747/* confdefs.h.  */
1748_ACEOF
1749cat confdefs.h >>conftest.$ac_ext
1750cat >>conftest.$ac_ext <<_ACEOF
1751/* end confdefs.h.  */
1752
1753int
1754main ()
1755{
1756
1757  ;
1758  return 0;
1759}
1760_ACEOF
1761ac_clean_files_save=$ac_clean_files
1762ac_clean_files="$ac_clean_files a.out a.exe b.out"
1763# Try to create an executable without -o first, disregard a.out.
1764# It will help us diagnose broken compilers, and finding out an intuition
1765# of exeext.
1766echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1767echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1768ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1769if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1770  (eval $ac_link_default) 2>&5
1771  ac_status=$?
1772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773  (exit $ac_status); }; then
1774  # Find the output, starting from the most likely.  This scheme is
1775# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1776# resort.
1777
1778# Be careful to initialize this variable, since it used to be cached.
1779# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1780ac_cv_exeext=
1781# b.out is created by i960 compilers.
1782for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1783do
1784  test -f "$ac_file" || continue
1785  case $ac_file in
1786    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1787	;;
1788    conftest.$ac_ext )
1789	# This is the source file.
1790	;;
1791    [ab].out )
1792	# We found the default executable, but exeext='' is most
1793	# certainly right.
1794	break;;
1795    *.* )
1796	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1797	# FIXME: I believe we export ac_cv_exeext for Libtool,
1798	# but it would be cool to find out if it's true.  Does anybody
1799	# maintain Libtool? --akim.
1800	export ac_cv_exeext
1801	break;;
1802    * )
1803	break;;
1804  esac
1805done
1806else
1807  echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1811See \`config.log' for more details." >&5
1812echo "$as_me: error: C compiler cannot create executables
1813See \`config.log' for more details." >&2;}
1814   { (exit 77); exit 77; }; }
1815fi
1816
1817ac_exeext=$ac_cv_exeext
1818echo "$as_me:$LINENO: result: $ac_file" >&5
1819echo "${ECHO_T}$ac_file" >&6
1820
1821# Check the compiler produces executables we can run.  If not, either
1822# the compiler is broken, or we cross compile.
1823echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1824echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1825# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1826# If not cross compiling, check that we can run a simple program.
1827if test "$cross_compiling" != yes; then
1828  if { ac_try='./$ac_file'
1829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1830  (eval $ac_try) 2>&5
1831  ac_status=$?
1832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833  (exit $ac_status); }; }; then
1834    cross_compiling=no
1835  else
1836    if test "$cross_compiling" = maybe; then
1837	cross_compiling=yes
1838    else
1839	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1840If you meant to cross compile, use \`--host'.
1841See \`config.log' for more details." >&5
1842echo "$as_me: error: cannot run C compiled programs.
1843If you meant to cross compile, use \`--host'.
1844See \`config.log' for more details." >&2;}
1845   { (exit 1); exit 1; }; }
1846    fi
1847  fi
1848fi
1849echo "$as_me:$LINENO: result: yes" >&5
1850echo "${ECHO_T}yes" >&6
1851
1852rm -f a.out a.exe conftest$ac_cv_exeext b.out
1853ac_clean_files=$ac_clean_files_save
1854# Check the compiler produces executables we can run.  If not, either
1855# the compiler is broken, or we cross compile.
1856echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1857echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1858echo "$as_me:$LINENO: result: $cross_compiling" >&5
1859echo "${ECHO_T}$cross_compiling" >&6
1860
1861echo "$as_me:$LINENO: checking for suffix of executables" >&5
1862echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1864  (eval $ac_link) 2>&5
1865  ac_status=$?
1866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867  (exit $ac_status); }; then
1868  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1869# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1870# work properly (i.e., refer to `conftest.exe'), while it won't with
1871# `rm'.
1872for ac_file in conftest.exe conftest conftest.*; do
1873  test -f "$ac_file" || continue
1874  case $ac_file in
1875    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1876    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1877	  export ac_cv_exeext
1878	  break;;
1879    * ) break;;
1880  esac
1881done
1882else
1883  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1884See \`config.log' for more details." >&5
1885echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1886See \`config.log' for more details." >&2;}
1887   { (exit 1); exit 1; }; }
1888fi
1889
1890rm -f conftest$ac_cv_exeext
1891echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1892echo "${ECHO_T}$ac_cv_exeext" >&6
1893
1894rm -f conftest.$ac_ext
1895EXEEXT=$ac_cv_exeext
1896ac_exeext=$EXEEXT
1897echo "$as_me:$LINENO: checking for suffix of object files" >&5
1898echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1899if test "${ac_cv_objext+set}" = set; then
1900  echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902  cat >conftest.$ac_ext <<_ACEOF
1903/* confdefs.h.  */
1904_ACEOF
1905cat confdefs.h >>conftest.$ac_ext
1906cat >>conftest.$ac_ext <<_ACEOF
1907/* end confdefs.h.  */
1908
1909int
1910main ()
1911{
1912
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917rm -f conftest.o conftest.obj
1918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919  (eval $ac_compile) 2>&5
1920  ac_status=$?
1921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922  (exit $ac_status); }; then
1923  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1924  case $ac_file in
1925    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1926    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1927       break;;
1928  esac
1929done
1930else
1931  echo "$as_me: failed program was:" >&5
1932sed 's/^/| /' conftest.$ac_ext >&5
1933
1934{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1935See \`config.log' for more details." >&5
1936echo "$as_me: error: cannot compute suffix of object files: cannot compile
1937See \`config.log' for more details." >&2;}
1938   { (exit 1); exit 1; }; }
1939fi
1940
1941rm -f conftest.$ac_cv_objext conftest.$ac_ext
1942fi
1943echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1944echo "${ECHO_T}$ac_cv_objext" >&6
1945OBJEXT=$ac_cv_objext
1946ac_objext=$OBJEXT
1947echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1948echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1949if test "${ac_cv_c_compiler_gnu+set}" = set; then
1950  echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952  cat >conftest.$ac_ext <<_ACEOF
1953/* confdefs.h.  */
1954_ACEOF
1955cat confdefs.h >>conftest.$ac_ext
1956cat >>conftest.$ac_ext <<_ACEOF
1957/* end confdefs.h.  */
1958
1959int
1960main ()
1961{
1962#ifndef __GNUC__
1963       choke me
1964#endif
1965
1966  ;
1967  return 0;
1968}
1969_ACEOF
1970rm -f conftest.$ac_objext
1971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1972  (eval $ac_compile) 2>conftest.er1
1973  ac_status=$?
1974  grep -v '^ *+' conftest.er1 >conftest.err
1975  rm -f conftest.er1
1976  cat conftest.err >&5
1977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978  (exit $ac_status); } &&
1979	 { ac_try='test -z "$ac_c_werror_flag"
1980			 || test ! -s conftest.err'
1981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982  (eval $ac_try) 2>&5
1983  ac_status=$?
1984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985  (exit $ac_status); }; } &&
1986	 { ac_try='test -s conftest.$ac_objext'
1987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988  (eval $ac_try) 2>&5
1989  ac_status=$?
1990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991  (exit $ac_status); }; }; then
1992  ac_compiler_gnu=yes
1993else
1994  echo "$as_me: failed program was:" >&5
1995sed 's/^/| /' conftest.$ac_ext >&5
1996
1997ac_compiler_gnu=no
1998fi
1999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2000ac_cv_c_compiler_gnu=$ac_compiler_gnu
2001
2002fi
2003echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2004echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2005GCC=`test $ac_compiler_gnu = yes && echo yes`
2006ac_test_CFLAGS=${CFLAGS+set}
2007ac_save_CFLAGS=$CFLAGS
2008CFLAGS="-g"
2009echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2010echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2011if test "${ac_cv_prog_cc_g+set}" = set; then
2012  echo $ECHO_N "(cached) $ECHO_C" >&6
2013else
2014  cat >conftest.$ac_ext <<_ACEOF
2015/* confdefs.h.  */
2016_ACEOF
2017cat confdefs.h >>conftest.$ac_ext
2018cat >>conftest.$ac_ext <<_ACEOF
2019/* end confdefs.h.  */
2020
2021int
2022main ()
2023{
2024
2025  ;
2026  return 0;
2027}
2028_ACEOF
2029rm -f conftest.$ac_objext
2030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031  (eval $ac_compile) 2>conftest.er1
2032  ac_status=$?
2033  grep -v '^ *+' conftest.er1 >conftest.err
2034  rm -f conftest.er1
2035  cat conftest.err >&5
2036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037  (exit $ac_status); } &&
2038	 { ac_try='test -z "$ac_c_werror_flag"
2039			 || test ! -s conftest.err'
2040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041  (eval $ac_try) 2>&5
2042  ac_status=$?
2043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044  (exit $ac_status); }; } &&
2045	 { ac_try='test -s conftest.$ac_objext'
2046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047  (eval $ac_try) 2>&5
2048  ac_status=$?
2049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050  (exit $ac_status); }; }; then
2051  ac_cv_prog_cc_g=yes
2052else
2053  echo "$as_me: failed program was:" >&5
2054sed 's/^/| /' conftest.$ac_ext >&5
2055
2056ac_cv_prog_cc_g=no
2057fi
2058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2059fi
2060echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2061echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2062if test "$ac_test_CFLAGS" = set; then
2063  CFLAGS=$ac_save_CFLAGS
2064elif test $ac_cv_prog_cc_g = yes; then
2065  if test "$GCC" = yes; then
2066    CFLAGS="-g -O2"
2067  else
2068    CFLAGS="-g"
2069  fi
2070else
2071  if test "$GCC" = yes; then
2072    CFLAGS="-O2"
2073  else
2074    CFLAGS=
2075  fi
2076fi
2077echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2078echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2079if test "${ac_cv_prog_cc_stdc+set}" = set; then
2080  echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082  ac_cv_prog_cc_stdc=no
2083ac_save_CC=$CC
2084cat >conftest.$ac_ext <<_ACEOF
2085/* confdefs.h.  */
2086_ACEOF
2087cat confdefs.h >>conftest.$ac_ext
2088cat >>conftest.$ac_ext <<_ACEOF
2089/* end confdefs.h.  */
2090#include <stdarg.h>
2091#include <stdio.h>
2092#include <sys/types.h>
2093#include <sys/stat.h>
2094/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2095struct buf { int x; };
2096FILE * (*rcsopen) (struct buf *, struct stat *, int);
2097static char *e (p, i)
2098     char **p;
2099     int i;
2100{
2101  return p[i];
2102}
2103static char *f (char * (*g) (char **, int), char **p, ...)
2104{
2105  char *s;
2106  va_list v;
2107  va_start (v,p);
2108  s = g (p, va_arg (v,int));
2109  va_end (v);
2110  return s;
2111}
2112
2113/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2114   function prototypes and stuff, but not '\xHH' hex character constants.
2115   These don't provoke an error unfortunately, instead are silently treated
2116   as 'x'.  The following induces an error, until -std1 is added to get
2117   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2118   array size at least.  It's necessary to write '\x00'==0 to get something
2119   that's true only with -std1.  */
2120int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2121
2122int test (int i, double x);
2123struct s1 {int (*f) (int a);};
2124struct s2 {int (*f) (double a);};
2125int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2126int argc;
2127char **argv;
2128int
2129main ()
2130{
2131return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2132  ;
2133  return 0;
2134}
2135_ACEOF
2136# Don't try gcc -ansi; that turns off useful extensions and
2137# breaks some systems' header files.
2138# AIX			-qlanglvl=ansi
2139# Ultrix and OSF/1	-std1
2140# HP-UX 10.20 and later	-Ae
2141# HP-UX older versions	-Aa -D_HPUX_SOURCE
2142# SVR4			-Xc -D__EXTENSIONS__
2143for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2144do
2145  CC="$ac_save_CC $ac_arg"
2146  rm -f conftest.$ac_objext
2147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148  (eval $ac_compile) 2>conftest.er1
2149  ac_status=$?
2150  grep -v '^ *+' conftest.er1 >conftest.err
2151  rm -f conftest.er1
2152  cat conftest.err >&5
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); } &&
2155	 { ac_try='test -z "$ac_c_werror_flag"
2156			 || test ! -s conftest.err'
2157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158  (eval $ac_try) 2>&5
2159  ac_status=$?
2160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161  (exit $ac_status); }; } &&
2162	 { ac_try='test -s conftest.$ac_objext'
2163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164  (eval $ac_try) 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }; }; then
2168  ac_cv_prog_cc_stdc=$ac_arg
2169break
2170else
2171  echo "$as_me: failed program was:" >&5
2172sed 's/^/| /' conftest.$ac_ext >&5
2173
2174fi
2175rm -f conftest.err conftest.$ac_objext
2176done
2177rm -f conftest.$ac_ext conftest.$ac_objext
2178CC=$ac_save_CC
2179
2180fi
2181
2182case "x$ac_cv_prog_cc_stdc" in
2183  x|xno)
2184    echo "$as_me:$LINENO: result: none needed" >&5
2185echo "${ECHO_T}none needed" >&6 ;;
2186  *)
2187    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2188echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2189    CC="$CC $ac_cv_prog_cc_stdc" ;;
2190esac
2191
2192# Some people use a C++ compiler to compile C.  Since we use `exit',
2193# in C++ we need to declare it.  In case someone uses the same compiler
2194# for both compiling C and C++ we need to have the C++ compiler decide
2195# the declaration of exit, since it's the most demanding environment.
2196cat >conftest.$ac_ext <<_ACEOF
2197#ifndef __cplusplus
2198  choke me
2199#endif
2200_ACEOF
2201rm -f conftest.$ac_objext
2202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203  (eval $ac_compile) 2>conftest.er1
2204  ac_status=$?
2205  grep -v '^ *+' conftest.er1 >conftest.err
2206  rm -f conftest.er1
2207  cat conftest.err >&5
2208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209  (exit $ac_status); } &&
2210	 { ac_try='test -z "$ac_c_werror_flag"
2211			 || test ! -s conftest.err'
2212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213  (eval $ac_try) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }; } &&
2217	 { ac_try='test -s conftest.$ac_objext'
2218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219  (eval $ac_try) 2>&5
2220  ac_status=$?
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); }; }; then
2223  for ac_declaration in \
2224   '' \
2225   'extern "C" void std::exit (int) throw (); using std::exit;' \
2226   'extern "C" void std::exit (int); using std::exit;' \
2227   'extern "C" void exit (int) throw ();' \
2228   'extern "C" void exit (int);' \
2229   'void exit (int);'
2230do
2231  cat >conftest.$ac_ext <<_ACEOF
2232/* confdefs.h.  */
2233_ACEOF
2234cat confdefs.h >>conftest.$ac_ext
2235cat >>conftest.$ac_ext <<_ACEOF
2236/* end confdefs.h.  */
2237$ac_declaration
2238#include <stdlib.h>
2239int
2240main ()
2241{
2242exit (42);
2243  ;
2244  return 0;
2245}
2246_ACEOF
2247rm -f conftest.$ac_objext
2248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249  (eval $ac_compile) 2>conftest.er1
2250  ac_status=$?
2251  grep -v '^ *+' conftest.er1 >conftest.err
2252  rm -f conftest.er1
2253  cat conftest.err >&5
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); } &&
2256	 { ac_try='test -z "$ac_c_werror_flag"
2257			 || test ! -s conftest.err'
2258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259  (eval $ac_try) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; } &&
2263	 { ac_try='test -s conftest.$ac_objext'
2264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265  (eval $ac_try) 2>&5
2266  ac_status=$?
2267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268  (exit $ac_status); }; }; then
2269  :
2270else
2271  echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274continue
2275fi
2276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2277  cat >conftest.$ac_ext <<_ACEOF
2278/* confdefs.h.  */
2279_ACEOF
2280cat confdefs.h >>conftest.$ac_ext
2281cat >>conftest.$ac_ext <<_ACEOF
2282/* end confdefs.h.  */
2283$ac_declaration
2284int
2285main ()
2286{
2287exit (42);
2288  ;
2289  return 0;
2290}
2291_ACEOF
2292rm -f conftest.$ac_objext
2293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294  (eval $ac_compile) 2>conftest.er1
2295  ac_status=$?
2296  grep -v '^ *+' conftest.er1 >conftest.err
2297  rm -f conftest.er1
2298  cat conftest.err >&5
2299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300  (exit $ac_status); } &&
2301	 { ac_try='test -z "$ac_c_werror_flag"
2302			 || test ! -s conftest.err'
2303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304  (eval $ac_try) 2>&5
2305  ac_status=$?
2306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307  (exit $ac_status); }; } &&
2308	 { ac_try='test -s conftest.$ac_objext'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; }; then
2314  break
2315else
2316  echo "$as_me: failed program was:" >&5
2317sed 's/^/| /' conftest.$ac_ext >&5
2318
2319fi
2320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321done
2322rm -f conftest*
2323if test -n "$ac_declaration"; then
2324  echo '#ifdef __cplusplus' >>confdefs.h
2325  echo $ac_declaration      >>confdefs.h
2326  echo '#endif'             >>confdefs.h
2327fi
2328
2329else
2330  echo "$as_me: failed program was:" >&5
2331sed 's/^/| /' conftest.$ac_ext >&5
2332
2333fi
2334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335ac_ext=c
2336ac_cpp='$CPP $CPPFLAGS'
2337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340
2341
2342echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2343echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2344if test "${ac_cv_c_bigendian+set}" = set; then
2345  echo $ECHO_N "(cached) $ECHO_C" >&6
2346else
2347  # See if sys/param.h defines the BYTE_ORDER macro.
2348cat >conftest.$ac_ext <<_ACEOF
2349/* confdefs.h.  */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
2353/* end confdefs.h.  */
2354#include <sys/types.h>
2355#include <sys/param.h>
2356
2357int
2358main ()
2359{
2360#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2361 bogus endian macros
2362#endif
2363
2364  ;
2365  return 0;
2366}
2367_ACEOF
2368rm -f conftest.$ac_objext
2369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370  (eval $ac_compile) 2>conftest.er1
2371  ac_status=$?
2372  grep -v '^ *+' conftest.er1 >conftest.err
2373  rm -f conftest.er1
2374  cat conftest.err >&5
2375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376  (exit $ac_status); } &&
2377	 { ac_try='test -z "$ac_c_werror_flag"
2378			 || test ! -s conftest.err'
2379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380  (eval $ac_try) 2>&5
2381  ac_status=$?
2382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383  (exit $ac_status); }; } &&
2384	 { ac_try='test -s conftest.$ac_objext'
2385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386  (eval $ac_try) 2>&5
2387  ac_status=$?
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); }; }; then
2390  # It does; now see whether it defined to BIG_ENDIAN or not.
2391cat >conftest.$ac_ext <<_ACEOF
2392/* confdefs.h.  */
2393_ACEOF
2394cat confdefs.h >>conftest.$ac_ext
2395cat >>conftest.$ac_ext <<_ACEOF
2396/* end confdefs.h.  */
2397#include <sys/types.h>
2398#include <sys/param.h>
2399
2400int
2401main ()
2402{
2403#if BYTE_ORDER != BIG_ENDIAN
2404 not big endian
2405#endif
2406
2407  ;
2408  return 0;
2409}
2410_ACEOF
2411rm -f conftest.$ac_objext
2412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413  (eval $ac_compile) 2>conftest.er1
2414  ac_status=$?
2415  grep -v '^ *+' conftest.er1 >conftest.err
2416  rm -f conftest.er1
2417  cat conftest.err >&5
2418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419  (exit $ac_status); } &&
2420	 { ac_try='test -z "$ac_c_werror_flag"
2421			 || test ! -s conftest.err'
2422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423  (eval $ac_try) 2>&5
2424  ac_status=$?
2425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426  (exit $ac_status); }; } &&
2427	 { ac_try='test -s conftest.$ac_objext'
2428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429  (eval $ac_try) 2>&5
2430  ac_status=$?
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); }; }; then
2433  ac_cv_c_bigendian=yes
2434else
2435  echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438ac_cv_c_bigendian=no
2439fi
2440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441else
2442  echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445# It does not; compile a test program.
2446if test "$cross_compiling" = yes; then
2447  # try to guess the endianness by grepping values into an object file
2448  ac_cv_c_bigendian=unknown
2449  cat >conftest.$ac_ext <<_ACEOF
2450/* confdefs.h.  */
2451_ACEOF
2452cat confdefs.h >>conftest.$ac_ext
2453cat >>conftest.$ac_ext <<_ACEOF
2454/* end confdefs.h.  */
2455short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2456short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2457void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2458short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2459short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2460void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2461int
2462main ()
2463{
2464 _ascii (); _ebcdic ();
2465  ;
2466  return 0;
2467}
2468_ACEOF
2469rm -f conftest.$ac_objext
2470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471  (eval $ac_compile) 2>conftest.er1
2472  ac_status=$?
2473  grep -v '^ *+' conftest.er1 >conftest.err
2474  rm -f conftest.er1
2475  cat conftest.err >&5
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); } &&
2478	 { ac_try='test -z "$ac_c_werror_flag"
2479			 || test ! -s conftest.err'
2480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481  (eval $ac_try) 2>&5
2482  ac_status=$?
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); }; } &&
2485	 { ac_try='test -s conftest.$ac_objext'
2486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487  (eval $ac_try) 2>&5
2488  ac_status=$?
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); }; }; then
2491  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2492  ac_cv_c_bigendian=yes
2493fi
2494if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2495  if test "$ac_cv_c_bigendian" = unknown; then
2496    ac_cv_c_bigendian=no
2497  else
2498    # finding both strings is unlikely to happen, but who knows?
2499    ac_cv_c_bigendian=unknown
2500  fi
2501fi
2502else
2503  echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506fi
2507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508else
2509  cat >conftest.$ac_ext <<_ACEOF
2510/* confdefs.h.  */
2511_ACEOF
2512cat confdefs.h >>conftest.$ac_ext
2513cat >>conftest.$ac_ext <<_ACEOF
2514/* end confdefs.h.  */
2515int
2516main ()
2517{
2518  /* Are we little or big endian?  From Harbison&Steele.  */
2519  union
2520  {
2521    long l;
2522    char c[sizeof (long)];
2523  } u;
2524  u.l = 1;
2525  exit (u.c[sizeof (long) - 1] == 1);
2526}
2527_ACEOF
2528rm -f conftest$ac_exeext
2529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2530  (eval $ac_link) 2>&5
2531  ac_status=$?
2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535  (eval $ac_try) 2>&5
2536  ac_status=$?
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); }; }; then
2539  ac_cv_c_bigendian=no
2540else
2541  echo "$as_me: program exited with status $ac_status" >&5
2542echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545( exit $ac_status )
2546ac_cv_c_bigendian=yes
2547fi
2548rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2549fi
2550fi
2551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2552fi
2553echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2554echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2555case $ac_cv_c_bigendian in
2556  yes)
2557
2558cat >>confdefs.h <<\_ACEOF
2559#define WORDS_BIGENDIAN 1
2560_ACEOF
2561 ;;
2562  no)
2563     ;;
2564  *)
2565    { { echo "$as_me:$LINENO: error: unknown endianness
2566presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2567echo "$as_me: error: unknown endianness
2568presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2569   { (exit 1); exit 1; }; } ;;
2570esac
2571
2572
2573# Checks for programs.
2574ac_ext=c
2575ac_cpp='$CPP $CPPFLAGS'
2576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2580echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2581# On Suns, sometimes $CPP names a directory.
2582if test -n "$CPP" && test -d "$CPP"; then
2583  CPP=
2584fi
2585if test -z "$CPP"; then
2586  if test "${ac_cv_prog_CPP+set}" = set; then
2587  echo $ECHO_N "(cached) $ECHO_C" >&6
2588else
2589      # Double quotes because CPP needs to be expanded
2590    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2591    do
2592      ac_preproc_ok=false
2593for ac_c_preproc_warn_flag in '' yes
2594do
2595  # Use a header file that comes with gcc, so configuring glibc
2596  # with a fresh cross-compiler works.
2597  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2598  # <limits.h> exists even on freestanding compilers.
2599  # On the NeXT, cc -E runs the code through the compiler's parser,
2600  # not just through cpp. "Syntax error" is here to catch this case.
2601  cat >conftest.$ac_ext <<_ACEOF
2602/* confdefs.h.  */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
2606/* end confdefs.h.  */
2607#ifdef __STDC__
2608# include <limits.h>
2609#else
2610# include <assert.h>
2611#endif
2612		     Syntax error
2613_ACEOF
2614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2615  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2616  ac_status=$?
2617  grep -v '^ *+' conftest.er1 >conftest.err
2618  rm -f conftest.er1
2619  cat conftest.err >&5
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); } >/dev/null; then
2622  if test -s conftest.err; then
2623    ac_cpp_err=$ac_c_preproc_warn_flag
2624    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2625  else
2626    ac_cpp_err=
2627  fi
2628else
2629  ac_cpp_err=yes
2630fi
2631if test -z "$ac_cpp_err"; then
2632  :
2633else
2634  echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637  # Broken: fails on valid input.
2638continue
2639fi
2640rm -f conftest.err conftest.$ac_ext
2641
2642  # OK, works on sane cases.  Now check whether non-existent headers
2643  # can be detected and how.
2644  cat >conftest.$ac_ext <<_ACEOF
2645/* confdefs.h.  */
2646_ACEOF
2647cat confdefs.h >>conftest.$ac_ext
2648cat >>conftest.$ac_ext <<_ACEOF
2649/* end confdefs.h.  */
2650#include <ac_nonexistent.h>
2651_ACEOF
2652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2653  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2654  ac_status=$?
2655  grep -v '^ *+' conftest.er1 >conftest.err
2656  rm -f conftest.er1
2657  cat conftest.err >&5
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); } >/dev/null; then
2660  if test -s conftest.err; then
2661    ac_cpp_err=$ac_c_preproc_warn_flag
2662    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2663  else
2664    ac_cpp_err=
2665  fi
2666else
2667  ac_cpp_err=yes
2668fi
2669if test -z "$ac_cpp_err"; then
2670  # Broken: success on invalid input.
2671continue
2672else
2673  echo "$as_me: failed program was:" >&5
2674sed 's/^/| /' conftest.$ac_ext >&5
2675
2676  # Passes both tests.
2677ac_preproc_ok=:
2678break
2679fi
2680rm -f conftest.err conftest.$ac_ext
2681
2682done
2683# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2684rm -f conftest.err conftest.$ac_ext
2685if $ac_preproc_ok; then
2686  break
2687fi
2688
2689    done
2690    ac_cv_prog_CPP=$CPP
2691
2692fi
2693  CPP=$ac_cv_prog_CPP
2694else
2695  ac_cv_prog_CPP=$CPP
2696fi
2697echo "$as_me:$LINENO: result: $CPP" >&5
2698echo "${ECHO_T}$CPP" >&6
2699ac_preproc_ok=false
2700for ac_c_preproc_warn_flag in '' yes
2701do
2702  # Use a header file that comes with gcc, so configuring glibc
2703  # with a fresh cross-compiler works.
2704  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2705  # <limits.h> exists even on freestanding compilers.
2706  # On the NeXT, cc -E runs the code through the compiler's parser,
2707  # not just through cpp. "Syntax error" is here to catch this case.
2708  cat >conftest.$ac_ext <<_ACEOF
2709/* confdefs.h.  */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h.  */
2714#ifdef __STDC__
2715# include <limits.h>
2716#else
2717# include <assert.h>
2718#endif
2719		     Syntax error
2720_ACEOF
2721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2722  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2723  ac_status=$?
2724  grep -v '^ *+' conftest.er1 >conftest.err
2725  rm -f conftest.er1
2726  cat conftest.err >&5
2727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728  (exit $ac_status); } >/dev/null; then
2729  if test -s conftest.err; then
2730    ac_cpp_err=$ac_c_preproc_warn_flag
2731    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2732  else
2733    ac_cpp_err=
2734  fi
2735else
2736  ac_cpp_err=yes
2737fi
2738if test -z "$ac_cpp_err"; then
2739  :
2740else
2741  echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744  # Broken: fails on valid input.
2745continue
2746fi
2747rm -f conftest.err conftest.$ac_ext
2748
2749  # OK, works on sane cases.  Now check whether non-existent headers
2750  # can be detected and how.
2751  cat >conftest.$ac_ext <<_ACEOF
2752/* confdefs.h.  */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h.  */
2757#include <ac_nonexistent.h>
2758_ACEOF
2759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2760  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2761  ac_status=$?
2762  grep -v '^ *+' conftest.er1 >conftest.err
2763  rm -f conftest.er1
2764  cat conftest.err >&5
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); } >/dev/null; then
2767  if test -s conftest.err; then
2768    ac_cpp_err=$ac_c_preproc_warn_flag
2769    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2770  else
2771    ac_cpp_err=
2772  fi
2773else
2774  ac_cpp_err=yes
2775fi
2776if test -z "$ac_cpp_err"; then
2777  # Broken: success on invalid input.
2778continue
2779else
2780  echo "$as_me: failed program was:" >&5
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
2783  # Passes both tests.
2784ac_preproc_ok=:
2785break
2786fi
2787rm -f conftest.err conftest.$ac_ext
2788
2789done
2790# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2791rm -f conftest.err conftest.$ac_ext
2792if $ac_preproc_ok; then
2793  :
2794else
2795  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2796See \`config.log' for more details." >&5
2797echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2798See \`config.log' for more details." >&2;}
2799   { (exit 1); exit 1; }; }
2800fi
2801
2802ac_ext=c
2803ac_cpp='$CPP $CPPFLAGS'
2804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807
2808if test -n "$ac_tool_prefix"; then
2809  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2810set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2811echo "$as_me:$LINENO: checking for $ac_word" >&5
2812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813if test "${ac_cv_prog_RANLIB+set}" = set; then
2814  echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
2816  if test -n "$RANLIB"; then
2817  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822  IFS=$as_save_IFS
2823  test -z "$as_dir" && as_dir=.
2824  for ac_exec_ext in '' $ac_executable_extensions; do
2825  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2827    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828    break 2
2829  fi
2830done
2831done
2832
2833fi
2834fi
2835RANLIB=$ac_cv_prog_RANLIB
2836if test -n "$RANLIB"; then
2837  echo "$as_me:$LINENO: result: $RANLIB" >&5
2838echo "${ECHO_T}$RANLIB" >&6
2839else
2840  echo "$as_me:$LINENO: result: no" >&5
2841echo "${ECHO_T}no" >&6
2842fi
2843
2844fi
2845if test -z "$ac_cv_prog_RANLIB"; then
2846  ac_ct_RANLIB=$RANLIB
2847  # Extract the first word of "ranlib", so it can be a program name with args.
2848set dummy ranlib; ac_word=$2
2849echo "$as_me:$LINENO: checking for $ac_word" >&5
2850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2851if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2852  echo $ECHO_N "(cached) $ECHO_C" >&6
2853else
2854  if test -n "$ac_ct_RANLIB"; then
2855  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862  for ac_exec_ext in '' $ac_executable_extensions; do
2863  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864    ac_cv_prog_ac_ct_RANLIB="ranlib"
2865    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866    break 2
2867  fi
2868done
2869done
2870
2871  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2872fi
2873fi
2874ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2875if test -n "$ac_ct_RANLIB"; then
2876  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2877echo "${ECHO_T}$ac_ct_RANLIB" >&6
2878else
2879  echo "$as_me:$LINENO: result: no" >&5
2880echo "${ECHO_T}no" >&6
2881fi
2882
2883  RANLIB=$ac_ct_RANLIB
2884else
2885  RANLIB="$ac_cv_prog_RANLIB"
2886fi
2887
2888# Find a good install program.  We prefer a C program (faster),
2889# so one script is as good as another.  But avoid the broken or
2890# incompatible versions:
2891# SysV /etc/install, /usr/sbin/install
2892# SunOS /usr/etc/install
2893# IRIX /sbin/install
2894# AIX /bin/install
2895# AmigaOS /C/install, which installs bootblocks on floppy discs
2896# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2897# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2898# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2899# OS/2's system install, which has a completely different semantic
2900# ./install, which can be erroneously created by make from ./install.sh.
2901echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2902echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2903if test -z "$INSTALL"; then
2904if test "${ac_cv_path_install+set}" = set; then
2905  echo $ECHO_N "(cached) $ECHO_C" >&6
2906else
2907  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910  IFS=$as_save_IFS
2911  test -z "$as_dir" && as_dir=.
2912  # Account for people who put trailing slashes in PATH elements.
2913case $as_dir/ in
2914  ./ | .// | /cC/* | \
2915  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2916  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2917  /usr/ucb/* ) ;;
2918  *)
2919    # OSF1 and SCO ODT 3.0 have their own names for install.
2920    # Don't use installbsd from OSF since it installs stuff as root
2921    # by default.
2922    for ac_prog in ginstall scoinst install; do
2923      for ac_exec_ext in '' $ac_executable_extensions; do
2924	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2925	  if test $ac_prog = install &&
2926	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2927	    # AIX install.  It has an incompatible calling convention.
2928	    :
2929	  elif test $ac_prog = install &&
2930	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2931	    # program-specific install script used by HP pwplus--don't use.
2932	    :
2933	  else
2934	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2935	    break 3
2936	  fi
2937	fi
2938      done
2939    done
2940    ;;
2941esac
2942done
2943
2944
2945fi
2946  if test "${ac_cv_path_install+set}" = set; then
2947    INSTALL=$ac_cv_path_install
2948  else
2949    # As a last resort, use the slow shell script.  We don't cache a
2950    # path for INSTALL within a source directory, because that will
2951    # break other packages using the cache if that directory is
2952    # removed, or if the path is relative.
2953    INSTALL=$ac_install_sh
2954  fi
2955fi
2956echo "$as_me:$LINENO: result: $INSTALL" >&5
2957echo "${ECHO_T}$INSTALL" >&6
2958
2959# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2960# It thinks the first close brace ends the variable substitution.
2961test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2962
2963test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2964
2965test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2966
2967echo "$as_me:$LINENO: checking whether ln -s works" >&5
2968echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2969LN_S=$as_ln_s
2970if test "$LN_S" = "ln -s"; then
2971  echo "$as_me:$LINENO: result: yes" >&5
2972echo "${ECHO_T}yes" >&6
2973else
2974  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2975echo "${ECHO_T}no, using $LN_S" >&6
2976fi
2977
2978for ac_prog in 'bison -y' byacc
2979do
2980  # Extract the first word of "$ac_prog", so it can be a program name with args.
2981set dummy $ac_prog; ac_word=$2
2982echo "$as_me:$LINENO: checking for $ac_word" >&5
2983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984if test "${ac_cv_prog_YACC+set}" = set; then
2985  echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987  if test -n "$YACC"; then
2988  ac_cv_prog_YACC="$YACC" # Let the user override the test.
2989else
2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991for as_dir in $PATH
2992do
2993  IFS=$as_save_IFS
2994  test -z "$as_dir" && as_dir=.
2995  for ac_exec_ext in '' $ac_executable_extensions; do
2996  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997    ac_cv_prog_YACC="$ac_prog"
2998    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999    break 2
3000  fi
3001done
3002done
3003
3004fi
3005fi
3006YACC=$ac_cv_prog_YACC
3007if test -n "$YACC"; then
3008  echo "$as_me:$LINENO: result: $YACC" >&5
3009echo "${ECHO_T}$YACC" >&6
3010else
3011  echo "$as_me:$LINENO: result: no" >&5
3012echo "${ECHO_T}no" >&6
3013fi
3014
3015  test -n "$YACC" && break
3016done
3017test -n "$YACC" || YACC="yacc"
3018
3019# Extract the first word of "flex", so it can be a program name with args.
3020set dummy flex; ac_word=$2
3021echo "$as_me:$LINENO: checking for $ac_word" >&5
3022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3023if test "${ac_cv_path_LEX+set}" = set; then
3024  echo $ECHO_N "(cached) $ECHO_C" >&6
3025else
3026  case $LEX in
3027  [\\/]* | ?:[\\/]*)
3028  ac_cv_path_LEX="$LEX" # Let the user override the test with a path.
3029  ;;
3030  *)
3031  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032for as_dir in $PATH
3033do
3034  IFS=$as_save_IFS
3035  test -z "$as_dir" && as_dir=.
3036  for ac_exec_ext in '' $ac_executable_extensions; do
3037  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038    ac_cv_path_LEX="$as_dir/$ac_word$ac_exec_ext"
3039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040    break 2
3041  fi
3042done
3043done
3044
3045  ;;
3046esac
3047fi
3048LEX=$ac_cv_path_LEX
3049
3050if test -n "$LEX"; then
3051  echo "$as_me:$LINENO: result: $LEX" >&5
3052echo "${ECHO_T}$LEX" >&6
3053else
3054  echo "$as_me:$LINENO: result: no" >&5
3055echo "${ECHO_T}no" >&6
3056fi
3057
3058
3059# Extract the first word of "ar", so it can be a program name with args.
3060set dummy ar; ac_word=$2
3061echo "$as_me:$LINENO: checking for $ac_word" >&5
3062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3063if test "${ac_cv_path_AR+set}" = set; then
3064  echo $ECHO_N "(cached) $ECHO_C" >&6
3065else
3066  case $AR in
3067  [\\/]* | ?:[\\/]*)
3068  ac_cv_path_AR="$AR" # Let the user override the test with a path.
3069  ;;
3070  *)
3071  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
3075  test -z "$as_dir" && as_dir=.
3076  for ac_exec_ext in '' $ac_executable_extensions; do
3077  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3079    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083done
3084
3085  ;;
3086esac
3087fi
3088AR=$ac_cv_path_AR
3089
3090if test -n "$AR"; then
3091  echo "$as_me:$LINENO: result: $AR" >&5
3092echo "${ECHO_T}$AR" >&6
3093else
3094  echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6
3096fi
3097
3098for ac_prog in perl5 perl
3099do
3100  # Extract the first word of "$ac_prog", so it can be a program name with args.
3101set dummy $ac_prog; ac_word=$2
3102echo "$as_me:$LINENO: checking for $ac_word" >&5
3103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104if test "${ac_cv_path_PERL+set}" = set; then
3105  echo $ECHO_N "(cached) $ECHO_C" >&6
3106else
3107  case $PERL in
3108  [\\/]* | ?:[\\/]*)
3109  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3110  ;;
3111  *)
3112  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115  IFS=$as_save_IFS
3116  test -z "$as_dir" && as_dir=.
3117  for ac_exec_ext in '' $ac_executable_extensions; do
3118  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121    break 2
3122  fi
3123done
3124done
3125
3126  ;;
3127esac
3128fi
3129PERL=$ac_cv_path_PERL
3130
3131if test -n "$PERL"; then
3132  echo "$as_me:$LINENO: result: $PERL" >&5
3133echo "${ECHO_T}$PERL" >&6
3134else
3135  echo "$as_me:$LINENO: result: no" >&5
3136echo "${ECHO_T}no" >&6
3137fi
3138
3139  test -n "$PERL" && break
3140done
3141
3142
3143
3144if test -z "$AR" ; then
3145	{ { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
3146echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
3147   { (exit 1); exit 1; }; }
3148fi
3149
3150if test -z "$LD" ; then
3151	LD=$CC
3152fi
3153
3154
3155# C Compiler features
3156echo "$as_me:$LINENO: checking for inline" >&5
3157echo $ECHO_N "checking for inline... $ECHO_C" >&6
3158if test "${ac_cv_c_inline+set}" = set; then
3159  echo $ECHO_N "(cached) $ECHO_C" >&6
3160else
3161  ac_cv_c_inline=no
3162for ac_kw in inline __inline__ __inline; do
3163  cat >conftest.$ac_ext <<_ACEOF
3164/* confdefs.h.  */
3165_ACEOF
3166cat confdefs.h >>conftest.$ac_ext
3167cat >>conftest.$ac_ext <<_ACEOF
3168/* end confdefs.h.  */
3169#ifndef __cplusplus
3170typedef int foo_t;
3171static $ac_kw foo_t static_foo () {return 0; }
3172$ac_kw foo_t foo () {return 0; }
3173#endif
3174
3175_ACEOF
3176rm -f conftest.$ac_objext
3177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178  (eval $ac_compile) 2>conftest.er1
3179  ac_status=$?
3180  grep -v '^ *+' conftest.er1 >conftest.err
3181  rm -f conftest.er1
3182  cat conftest.err >&5
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); } &&
3185	 { ac_try='test -z "$ac_c_werror_flag"
3186			 || test ! -s conftest.err'
3187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188  (eval $ac_try) 2>&5
3189  ac_status=$?
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); }; } &&
3192	 { ac_try='test -s conftest.$ac_objext'
3193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194  (eval $ac_try) 2>&5
3195  ac_status=$?
3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197  (exit $ac_status); }; }; then
3198  ac_cv_c_inline=$ac_kw; break
3199else
3200  echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203fi
3204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3205done
3206
3207fi
3208echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3209echo "${ECHO_T}$ac_cv_c_inline" >&6
3210
3211
3212case $ac_cv_c_inline in
3213  inline | yes) ;;
3214  *)
3215    case $ac_cv_c_inline in
3216      no) ac_val=;;
3217      *) ac_val=$ac_cv_c_inline;;
3218    esac
3219    cat >>confdefs.h <<_ACEOF
3220#ifndef __cplusplus
3221#define inline $ac_val
3222#endif
3223_ACEOF
3224    ;;
3225esac
3226
3227if test "$GCC" = "yes"; then
3228	CFLAGS="$CFLAGS -Wall"
3229fi
3230
3231# Allow user to specify flags
3232
3233# Check whether --with-cflags or --without-cflags was given.
3234if test "${with_cflags+set}" = set; then
3235  withval="$with_cflags"
3236
3237		if test "x$withval" != "xno" ; then
3238			CFLAGS="$CFLAGS $withval"
3239		fi
3240
3241
3242fi;
3243
3244# Check whether --with-cppflags or --without-cppflags was given.
3245if test "${with_cppflags+set}" = set; then
3246  withval="$with_cppflags"
3247
3248		if test "x$withval" != "xno"; then
3249			CPPFLAGS="$CPPFLAGS $withval"
3250		fi
3251
3252
3253fi;
3254
3255# Check whether --with-ldflags or --without-ldflags was given.
3256if test "${with_ldflags+set}" = set; then
3257  withval="$with_ldflags"
3258
3259		if test "x$withval" != "xno" ; then
3260			LDFLAGS="$LDFLAGS $withval"
3261		fi
3262
3263
3264fi;
3265
3266# Check whether --with-libs or --without-libs was given.
3267if test "${with_libs+set}" = set; then
3268  withval="$with_libs"
3269
3270		if test "x$withval" != "xno" ; then
3271			LIBS="$LIBS $withval"
3272		fi
3273
3274
3275fi;
3276
3277# Checks for libraries.
3278 OLDLDFLAGS=$LDFLAGS
3279 LDFLAGS=
3280echo "$as_me:$LINENO: checking if we need -pthread for threads" >&5
3281echo $ECHO_N "checking if we need -pthread for threads... $ECHO_C" >&6
3282          if test "${ac_cv_ldflag_pthread+set}" = set; then
3283  echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
3285  ac_save_LDFLAGS="$LDFLAGS"
3286                        LDFLAGS="-pthread $LDFLAGS"
3287                        cat >conftest.$ac_ext <<_ACEOF
3288/* confdefs.h.  */
3289_ACEOF
3290cat confdefs.h >>conftest.$ac_ext
3291cat >>conftest.$ac_ext <<_ACEOF
3292/* end confdefs.h.  */
3293char pthread_create();
3294int
3295main ()
3296{
3297pthread_create();
3298  ;
3299  return 0;
3300}
3301_ACEOF
3302rm -f conftest.$ac_objext conftest$ac_exeext
3303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3304  (eval $ac_link) 2>conftest.er1
3305  ac_status=$?
3306  grep -v '^ *+' conftest.er1 >conftest.err
3307  rm -f conftest.er1
3308  cat conftest.err >&5
3309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310  (exit $ac_status); } &&
3311	 { ac_try='test -z "$ac_c_werror_flag"
3312			 || test ! -s conftest.err'
3313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314  (eval $ac_try) 2>&5
3315  ac_status=$?
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); }; } &&
3318	 { ac_try='test -s conftest$ac_exeext'
3319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320  (eval $ac_try) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; }; then
3324  eval "ac_cv_ldflag_pthread=yes"
3325else
3326  echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329eval "ac_cv_ldflag_pthread=no"
3330fi
3331rm -f conftest.err conftest.$ac_objext \
3332      conftest$ac_exeext conftest.$ac_ext,
3333                                    LDFLAGS="$ac_save_LDFLAGS"
3334
3335fi
3336
3337          if eval "test \"`echo $ac_cv_ldflag_pthread`\" = yes"; then
3338            echo "$as_me:$LINENO: result: yes" >&5
3339echo "${ECHO_T}yes" >&6
3340          else
3341            echo "$as_me:$LINENO: result: no" >&5
3342echo "${ECHO_T}no" >&6
3343          fi
3344
3345 THLDFLAGS=$LDFLAGS
3346
3347 LDFLAGS=$OLDLDFLAGS
3348
3349 OLDLIBS=$LIBS
3350 LIBS=
3351
3352echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
3353echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
3354if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
3355  echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357  ac_check_lib_save_LIBS=$LIBS
3358LIBS="-lpthread  $LIBS"
3359cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h.  */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h.  */
3365
3366/* Override any gcc2 internal prototype to avoid an error.  */
3367#ifdef __cplusplus
3368extern "C"
3369#endif
3370/* We use char because int might match the return type of a gcc2
3371   builtin and then its argument prototype would still apply.  */
3372char pthread_create ();
3373int
3374main ()
3375{
3376pthread_create ();
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext conftest$ac_exeext
3382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383  (eval $ac_link) 2>conftest.er1
3384  ac_status=$?
3385  grep -v '^ *+' conftest.er1 >conftest.err
3386  rm -f conftest.er1
3387  cat conftest.err >&5
3388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389  (exit $ac_status); } &&
3390	 { ac_try='test -z "$ac_c_werror_flag"
3391			 || test ! -s conftest.err'
3392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393  (eval $ac_try) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }; } &&
3397	 { ac_try='test -s conftest$ac_exeext'
3398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399  (eval $ac_try) 2>&5
3400  ac_status=$?
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); }; }; then
3403  ac_cv_lib_pthread_pthread_create=yes
3404else
3405  echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408ac_cv_lib_pthread_pthread_create=no
3409fi
3410rm -f conftest.err conftest.$ac_objext \
3411      conftest$ac_exeext conftest.$ac_ext
3412LIBS=$ac_check_lib_save_LIBS
3413fi
3414echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
3415echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
3416if test $ac_cv_lib_pthread_pthread_create = yes; then
3417  cat >>confdefs.h <<_ACEOF
3418#define HAVE_LIBPTHREAD 1
3419_ACEOF
3420
3421  LIBS="-lpthread $LIBS"
3422
3423fi
3424
3425
3426echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
3427echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
3428if test "${ac_cv_lib_thread_thr_create+set}" = set; then
3429  echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431  ac_check_lib_save_LIBS=$LIBS
3432LIBS="-lthread  $LIBS"
3433cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h.  */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h.  */
3439
3440/* Override any gcc2 internal prototype to avoid an error.  */
3441#ifdef __cplusplus
3442extern "C"
3443#endif
3444/* We use char because int might match the return type of a gcc2
3445   builtin and then its argument prototype would still apply.  */
3446char thr_create ();
3447int
3448main ()
3449{
3450thr_create ();
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455rm -f conftest.$ac_objext conftest$ac_exeext
3456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3457  (eval $ac_link) 2>conftest.er1
3458  ac_status=$?
3459  grep -v '^ *+' conftest.er1 >conftest.err
3460  rm -f conftest.er1
3461  cat conftest.err >&5
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); } &&
3464	 { ac_try='test -z "$ac_c_werror_flag"
3465			 || test ! -s conftest.err'
3466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467  (eval $ac_try) 2>&5
3468  ac_status=$?
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); }; } &&
3471	 { ac_try='test -s conftest$ac_exeext'
3472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473  (eval $ac_try) 2>&5
3474  ac_status=$?
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); }; }; then
3477  ac_cv_lib_thread_thr_create=yes
3478else
3479  echo "$as_me: failed program was:" >&5
3480sed 's/^/| /' conftest.$ac_ext >&5
3481
3482ac_cv_lib_thread_thr_create=no
3483fi
3484rm -f conftest.err conftest.$ac_objext \
3485      conftest$ac_exeext conftest.$ac_ext
3486LIBS=$ac_check_lib_save_LIBS
3487fi
3488echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
3489echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
3490if test $ac_cv_lib_thread_thr_create = yes; then
3491  cat >>confdefs.h <<_ACEOF
3492#define HAVE_LIBTHREAD 1
3493_ACEOF
3494
3495  LIBS="-lthread $LIBS"
3496
3497fi
3498
3499
3500echo "$as_me:$LINENO: checking for sem_wait in -lposix4" >&5
3501echo $ECHO_N "checking for sem_wait in -lposix4... $ECHO_C" >&6
3502if test "${ac_cv_lib_posix4_sem_wait+set}" = set; then
3503  echo $ECHO_N "(cached) $ECHO_C" >&6
3504else
3505  ac_check_lib_save_LIBS=$LIBS
3506LIBS="-lposix4  $LIBS"
3507cat >conftest.$ac_ext <<_ACEOF
3508/* confdefs.h.  */
3509_ACEOF
3510cat confdefs.h >>conftest.$ac_ext
3511cat >>conftest.$ac_ext <<_ACEOF
3512/* end confdefs.h.  */
3513
3514/* Override any gcc2 internal prototype to avoid an error.  */
3515#ifdef __cplusplus
3516extern "C"
3517#endif
3518/* We use char because int might match the return type of a gcc2
3519   builtin and then its argument prototype would still apply.  */
3520char sem_wait ();
3521int
3522main ()
3523{
3524sem_wait ();
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529rm -f conftest.$ac_objext conftest$ac_exeext
3530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3531  (eval $ac_link) 2>conftest.er1
3532  ac_status=$?
3533  grep -v '^ *+' conftest.er1 >conftest.err
3534  rm -f conftest.er1
3535  cat conftest.err >&5
3536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537  (exit $ac_status); } &&
3538	 { ac_try='test -z "$ac_c_werror_flag"
3539			 || test ! -s conftest.err'
3540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541  (eval $ac_try) 2>&5
3542  ac_status=$?
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); }; } &&
3545	 { ac_try='test -s conftest$ac_exeext'
3546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547  (eval $ac_try) 2>&5
3548  ac_status=$?
3549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550  (exit $ac_status); }; }; then
3551  ac_cv_lib_posix4_sem_wait=yes
3552else
3553  echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
3556ac_cv_lib_posix4_sem_wait=no
3557fi
3558rm -f conftest.err conftest.$ac_objext \
3559      conftest$ac_exeext conftest.$ac_ext
3560LIBS=$ac_check_lib_save_LIBS
3561fi
3562echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_wait" >&5
3563echo "${ECHO_T}$ac_cv_lib_posix4_sem_wait" >&6
3564if test $ac_cv_lib_posix4_sem_wait = yes; then
3565  cat >>confdefs.h <<_ACEOF
3566#define HAVE_LIBPOSIX4 1
3567_ACEOF
3568
3569  LIBS="-lposix4 $LIBS"
3570
3571fi
3572
3573 THLIBS=$LIBS
3574
3575
3576for ac_func in pthread_atfork
3577do
3578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3579echo "$as_me:$LINENO: checking for $ac_func" >&5
3580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3581if eval "test \"\${$as_ac_var+set}\" = set"; then
3582  echo $ECHO_N "(cached) $ECHO_C" >&6
3583else
3584  cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h.  */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h.  */
3590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3591   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3592#define $ac_func innocuous_$ac_func
3593
3594/* System header to define __stub macros and hopefully few prototypes,
3595    which can conflict with char $ac_func (); below.
3596    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3597    <limits.h> exists even on freestanding compilers.  */
3598
3599#ifdef __STDC__
3600# include <limits.h>
3601#else
3602# include <assert.h>
3603#endif
3604
3605#undef $ac_func
3606
3607/* Override any gcc2 internal prototype to avoid an error.  */
3608#ifdef __cplusplus
3609extern "C"
3610{
3611#endif
3612/* We use char because int might match the return type of a gcc2
3613   builtin and then its argument prototype would still apply.  */
3614char $ac_func ();
3615/* The GNU C library defines this for functions which it implements
3616    to always fail with ENOSYS.  Some functions are actually named
3617    something starting with __ and the normal name is an alias.  */
3618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3619choke me
3620#else
3621char (*f) () = $ac_func;
3622#endif
3623#ifdef __cplusplus
3624}
3625#endif
3626
3627int
3628main ()
3629{
3630return f != $ac_func;
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635rm -f conftest.$ac_objext conftest$ac_exeext
3636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3637  (eval $ac_link) 2>conftest.er1
3638  ac_status=$?
3639  grep -v '^ *+' conftest.er1 >conftest.err
3640  rm -f conftest.er1
3641  cat conftest.err >&5
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); } &&
3644	 { ac_try='test -z "$ac_c_werror_flag"
3645			 || test ! -s conftest.err'
3646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647  (eval $ac_try) 2>&5
3648  ac_status=$?
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); }; } &&
3651	 { ac_try='test -s conftest$ac_exeext'
3652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653  (eval $ac_try) 2>&5
3654  ac_status=$?
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); }; }; then
3657  eval "$as_ac_var=yes"
3658else
3659  echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662eval "$as_ac_var=no"
3663fi
3664rm -f conftest.err conftest.$ac_objext \
3665      conftest$ac_exeext conftest.$ac_ext
3666fi
3667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3669if test `eval echo '${'$as_ac_var'}'` = yes; then
3670  cat >>confdefs.h <<_ACEOF
3671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3672_ACEOF
3673
3674fi
3675done
3676
3677 LIBS=$OLDLIBS
3678
3679
3680echo "$as_me:$LINENO: checking for gethostbyaddr in -lnsl" >&5
3681echo $ECHO_N "checking for gethostbyaddr in -lnsl... $ECHO_C" >&6
3682if test "${ac_cv_lib_nsl_gethostbyaddr+set}" = set; then
3683  echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685  ac_check_lib_save_LIBS=$LIBS
3686LIBS="-lnsl  $LIBS"
3687cat >conftest.$ac_ext <<_ACEOF
3688/* confdefs.h.  */
3689_ACEOF
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3692/* end confdefs.h.  */
3693
3694/* Override any gcc2 internal prototype to avoid an error.  */
3695#ifdef __cplusplus
3696extern "C"
3697#endif
3698/* We use char because int might match the return type of a gcc2
3699   builtin and then its argument prototype would still apply.  */
3700char gethostbyaddr ();
3701int
3702main ()
3703{
3704gethostbyaddr ();
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709rm -f conftest.$ac_objext conftest$ac_exeext
3710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3711  (eval $ac_link) 2>conftest.er1
3712  ac_status=$?
3713  grep -v '^ *+' conftest.er1 >conftest.err
3714  rm -f conftest.er1
3715  cat conftest.err >&5
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); } &&
3718	 { ac_try='test -z "$ac_c_werror_flag"
3719			 || test ! -s conftest.err'
3720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721  (eval $ac_try) 2>&5
3722  ac_status=$?
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); }; } &&
3725	 { ac_try='test -s conftest$ac_exeext'
3726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727  (eval $ac_try) 2>&5
3728  ac_status=$?
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); }; }; then
3731  ac_cv_lib_nsl_gethostbyaddr=yes
3732else
3733  echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736ac_cv_lib_nsl_gethostbyaddr=no
3737fi
3738rm -f conftest.err conftest.$ac_objext \
3739      conftest$ac_exeext conftest.$ac_ext
3740LIBS=$ac_check_lib_save_LIBS
3741fi
3742echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
3743echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyaddr" >&6
3744if test $ac_cv_lib_nsl_gethostbyaddr = yes; then
3745  cat >>confdefs.h <<_ACEOF
3746#define HAVE_LIBNSL 1
3747_ACEOF
3748
3749  LIBS="-lnsl $LIBS"
3750
3751fi
3752
3753
3754echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3755echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3756if test "${ac_cv_lib_socket_socket+set}" = set; then
3757  echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759  ac_check_lib_save_LIBS=$LIBS
3760LIBS="-lsocket  $LIBS"
3761cat >conftest.$ac_ext <<_ACEOF
3762/* confdefs.h.  */
3763_ACEOF
3764cat confdefs.h >>conftest.$ac_ext
3765cat >>conftest.$ac_ext <<_ACEOF
3766/* end confdefs.h.  */
3767
3768/* Override any gcc2 internal prototype to avoid an error.  */
3769#ifdef __cplusplus
3770extern "C"
3771#endif
3772/* We use char because int might match the return type of a gcc2
3773   builtin and then its argument prototype would still apply.  */
3774char socket ();
3775int
3776main ()
3777{
3778socket ();
3779  ;
3780  return 0;
3781}
3782_ACEOF
3783rm -f conftest.$ac_objext conftest$ac_exeext
3784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3785  (eval $ac_link) 2>conftest.er1
3786  ac_status=$?
3787  grep -v '^ *+' conftest.er1 >conftest.err
3788  rm -f conftest.er1
3789  cat conftest.err >&5
3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791  (exit $ac_status); } &&
3792	 { ac_try='test -z "$ac_c_werror_flag"
3793			 || test ! -s conftest.err'
3794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795  (eval $ac_try) 2>&5
3796  ac_status=$?
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); }; } &&
3799	 { ac_try='test -s conftest$ac_exeext'
3800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801  (eval $ac_try) 2>&5
3802  ac_status=$?
3803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804  (exit $ac_status); }; }; then
3805  ac_cv_lib_socket_socket=yes
3806else
3807  echo "$as_me: failed program was:" >&5
3808sed 's/^/| /' conftest.$ac_ext >&5
3809
3810ac_cv_lib_socket_socket=no
3811fi
3812rm -f conftest.err conftest.$ac_objext \
3813      conftest$ac_exeext conftest.$ac_ext
3814LIBS=$ac_check_lib_save_LIBS
3815fi
3816echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3817echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3818if test $ac_cv_lib_socket_socket = yes; then
3819  cat >>confdefs.h <<_ACEOF
3820#define HAVE_LIBSOCKET 1
3821_ACEOF
3822
3823  LIBS="-lsocket $LIBS"
3824
3825fi
3826
3827echo "$as_me:$LINENO: checking for library containing shm_open" >&5
3828echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
3829if test "${ac_cv_search_shm_open+set}" = set; then
3830  echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
3832  ac_func_search_save_LIBS=$LIBS
3833ac_cv_search_shm_open=no
3834cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h.  */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h.  */
3840
3841/* Override any gcc2 internal prototype to avoid an error.  */
3842#ifdef __cplusplus
3843extern "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.  */
3847char shm_open ();
3848int
3849main ()
3850{
3851shm_open ();
3852  ;
3853  return 0;
3854}
3855_ACEOF
3856rm -f conftest.$ac_objext conftest$ac_exeext
3857if { (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"
3866			 || test ! -s conftest.err'
3867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868  (eval $ac_try) 2>&5
3869  ac_status=$?
3870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871  (exit $ac_status); }; } &&
3872	 { ac_try='test -s conftest$ac_exeext'
3873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874  (eval $ac_try) 2>&5
3875  ac_status=$?
3876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877  (exit $ac_status); }; }; then
3878  ac_cv_search_shm_open="none required"
3879else
3880  echo "$as_me: failed program was:" >&5
3881sed 's/^/| /' conftest.$ac_ext >&5
3882
3883fi
3884rm -f conftest.err conftest.$ac_objext \
3885      conftest$ac_exeext conftest.$ac_ext
3886if test "$ac_cv_search_shm_open" = no; then
3887  for ac_lib in rt posix4; do
3888    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3889    cat >conftest.$ac_ext <<_ACEOF
3890/* confdefs.h.  */
3891_ACEOF
3892cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF
3894/* end confdefs.h.  */
3895
3896/* Override any gcc2 internal prototype to avoid an error.  */
3897#ifdef __cplusplus
3898extern "C"
3899#endif
3900/* We use char because int might match the return type of a gcc2
3901   builtin and then its argument prototype would still apply.  */
3902char shm_open ();
3903int
3904main ()
3905{
3906shm_open ();
3907  ;
3908  return 0;
3909}
3910_ACEOF
3911rm -f conftest.$ac_objext conftest$ac_exeext
3912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3913  (eval $ac_link) 2>conftest.er1
3914  ac_status=$?
3915  grep -v '^ *+' conftest.er1 >conftest.err
3916  rm -f conftest.er1
3917  cat conftest.err >&5
3918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919  (exit $ac_status); } &&
3920	 { ac_try='test -z "$ac_c_werror_flag"
3921			 || test ! -s conftest.err'
3922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923  (eval $ac_try) 2>&5
3924  ac_status=$?
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); }; } &&
3927	 { ac_try='test -s conftest$ac_exeext'
3928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929  (eval $ac_try) 2>&5
3930  ac_status=$?
3931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932  (exit $ac_status); }; }; then
3933  ac_cv_search_shm_open="-l$ac_lib"
3934break
3935else
3936  echo "$as_me: failed program was:" >&5
3937sed 's/^/| /' conftest.$ac_ext >&5
3938
3939fi
3940rm -f conftest.err conftest.$ac_objext \
3941      conftest$ac_exeext conftest.$ac_ext
3942  done
3943fi
3944LIBS=$ac_func_search_save_LIBS
3945fi
3946echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
3947echo "${ECHO_T}$ac_cv_search_shm_open" >&6
3948if test "$ac_cv_search_shm_open" != no; then
3949  test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
3950
3951fi
3952
3953echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
3954echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
3955if test "${ac_cv_search_nanosleep+set}" = set; then
3956  echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
3958  ac_func_search_save_LIBS=$LIBS
3959ac_cv_search_nanosleep=no
3960cat >conftest.$ac_ext <<_ACEOF
3961/* confdefs.h.  */
3962_ACEOF
3963cat confdefs.h >>conftest.$ac_ext
3964cat >>conftest.$ac_ext <<_ACEOF
3965/* end confdefs.h.  */
3966
3967/* Override any gcc2 internal prototype to avoid an error.  */
3968#ifdef __cplusplus
3969extern "C"
3970#endif
3971/* We use char because int might match the return type of a gcc2
3972   builtin and then its argument prototype would still apply.  */
3973char nanosleep ();
3974int
3975main ()
3976{
3977nanosleep ();
3978  ;
3979  return 0;
3980}
3981_ACEOF
3982rm -f conftest.$ac_objext conftest$ac_exeext
3983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3984  (eval $ac_link) 2>conftest.er1
3985  ac_status=$?
3986  grep -v '^ *+' conftest.er1 >conftest.err
3987  rm -f conftest.er1
3988  cat conftest.err >&5
3989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990  (exit $ac_status); } &&
3991	 { ac_try='test -z "$ac_c_werror_flag"
3992			 || test ! -s conftest.err'
3993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994  (eval $ac_try) 2>&5
3995  ac_status=$?
3996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997  (exit $ac_status); }; } &&
3998	 { ac_try='test -s conftest$ac_exeext'
3999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000  (eval $ac_try) 2>&5
4001  ac_status=$?
4002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003  (exit $ac_status); }; }; then
4004  ac_cv_search_nanosleep="none required"
4005else
4006  echo "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009fi
4010rm -f conftest.err conftest.$ac_objext \
4011      conftest$ac_exeext conftest.$ac_ext
4012if test "$ac_cv_search_nanosleep" = no; then
4013  for ac_lib in rt posix4; do
4014    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4015    cat >conftest.$ac_ext <<_ACEOF
4016/* confdefs.h.  */
4017_ACEOF
4018cat confdefs.h >>conftest.$ac_ext
4019cat >>conftest.$ac_ext <<_ACEOF
4020/* end confdefs.h.  */
4021
4022/* Override any gcc2 internal prototype to avoid an error.  */
4023#ifdef __cplusplus
4024extern "C"
4025#endif
4026/* We use char because int might match the return type of a gcc2
4027   builtin and then its argument prototype would still apply.  */
4028char nanosleep ();
4029int
4030main ()
4031{
4032nanosleep ();
4033  ;
4034  return 0;
4035}
4036_ACEOF
4037rm -f conftest.$ac_objext conftest$ac_exeext
4038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4039  (eval $ac_link) 2>conftest.er1
4040  ac_status=$?
4041  grep -v '^ *+' conftest.er1 >conftest.err
4042  rm -f conftest.er1
4043  cat conftest.err >&5
4044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045  (exit $ac_status); } &&
4046	 { ac_try='test -z "$ac_c_werror_flag"
4047			 || test ! -s conftest.err'
4048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049  (eval $ac_try) 2>&5
4050  ac_status=$?
4051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052  (exit $ac_status); }; } &&
4053	 { ac_try='test -s conftest$ac_exeext'
4054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055  (eval $ac_try) 2>&5
4056  ac_status=$?
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); }; }; then
4059  ac_cv_search_nanosleep="-l$ac_lib"
4060break
4061else
4062  echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065fi
4066rm -f conftest.err conftest.$ac_objext \
4067      conftest$ac_exeext conftest.$ac_ext
4068  done
4069fi
4070LIBS=$ac_func_search_save_LIBS
4071fi
4072echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
4073echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
4074if test "$ac_cv_search_nanosleep" != no; then
4075  test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
4076
4077fi
4078
4079
4080echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4081echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4082if test "${ac_cv_lib_m_sqrt+set}" = set; then
4083  echo $ECHO_N "(cached) $ECHO_C" >&6
4084else
4085  ac_check_lib_save_LIBS=$LIBS
4086LIBS="-lm  $LIBS"
4087cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h.  */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h.  */
4093
4094/* Override any gcc2 internal prototype to avoid an error.  */
4095#ifdef __cplusplus
4096extern "C"
4097#endif
4098/* We use char because int might match the return type of a gcc2
4099   builtin and then its argument prototype would still apply.  */
4100char sqrt ();
4101int
4102main ()
4103{
4104sqrt ();
4105  ;
4106  return 0;
4107}
4108_ACEOF
4109rm -f conftest.$ac_objext conftest$ac_exeext
4110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4111  (eval $ac_link) 2>conftest.er1
4112  ac_status=$?
4113  grep -v '^ *+' conftest.er1 >conftest.err
4114  rm -f conftest.er1
4115  cat conftest.err >&5
4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117  (exit $ac_status); } &&
4118	 { ac_try='test -z "$ac_c_werror_flag"
4119			 || test ! -s conftest.err'
4120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121  (eval $ac_try) 2>&5
4122  ac_status=$?
4123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); }; } &&
4125	 { ac_try='test -s conftest$ac_exeext'
4126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127  (eval $ac_try) 2>&5
4128  ac_status=$?
4129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130  (exit $ac_status); }; }; then
4131  ac_cv_lib_m_sqrt=yes
4132else
4133  echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136ac_cv_lib_m_sqrt=no
4137fi
4138rm -f conftest.err conftest.$ac_objext \
4139      conftest$ac_exeext conftest.$ac_ext
4140LIBS=$ac_check_lib_save_LIBS
4141fi
4142echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4143echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4144if test $ac_cv_lib_m_sqrt = yes; then
4145  cat >>confdefs.h <<_ACEOF
4146#define HAVE_LIBM 1
4147_ACEOF
4148
4149  LIBS="-lm $LIBS"
4150
4151fi
4152
4153
4154
4155for ac_func in strftime
4156do
4157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4158echo "$as_me:$LINENO: checking for $ac_func" >&5
4159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4160if eval "test \"\${$as_ac_var+set}\" = set"; then
4161  echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163  cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h.  */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h.  */
4169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4170   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4171#define $ac_func innocuous_$ac_func
4172
4173/* System header to define __stub macros and hopefully few prototypes,
4174    which can conflict with char $ac_func (); below.
4175    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176    <limits.h> exists even on freestanding compilers.  */
4177
4178#ifdef __STDC__
4179# include <limits.h>
4180#else
4181# include <assert.h>
4182#endif
4183
4184#undef $ac_func
4185
4186/* Override any gcc2 internal prototype to avoid an error.  */
4187#ifdef __cplusplus
4188extern "C"
4189{
4190#endif
4191/* We use char because int might match the return type of a gcc2
4192   builtin and then its argument prototype would still apply.  */
4193char $ac_func ();
4194/* The GNU C library defines this for functions which it implements
4195    to always fail with ENOSYS.  Some functions are actually named
4196    something starting with __ and the normal name is an alias.  */
4197#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4198choke me
4199#else
4200char (*f) () = $ac_func;
4201#endif
4202#ifdef __cplusplus
4203}
4204#endif
4205
4206int
4207main ()
4208{
4209return f != $ac_func;
4210  ;
4211  return 0;
4212}
4213_ACEOF
4214rm -f conftest.$ac_objext conftest$ac_exeext
4215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216  (eval $ac_link) 2>conftest.er1
4217  ac_status=$?
4218  grep -v '^ *+' conftest.er1 >conftest.err
4219  rm -f conftest.er1
4220  cat conftest.err >&5
4221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222  (exit $ac_status); } &&
4223	 { ac_try='test -z "$ac_c_werror_flag"
4224			 || test ! -s conftest.err'
4225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226  (eval $ac_try) 2>&5
4227  ac_status=$?
4228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229  (exit $ac_status); }; } &&
4230	 { ac_try='test -s conftest$ac_exeext'
4231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232  (eval $ac_try) 2>&5
4233  ac_status=$?
4234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235  (exit $ac_status); }; }; then
4236  eval "$as_ac_var=yes"
4237else
4238  echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
4241eval "$as_ac_var=no"
4242fi
4243rm -f conftest.err conftest.$ac_objext \
4244      conftest$ac_exeext conftest.$ac_ext
4245fi
4246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4247echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4248if test `eval echo '${'$as_ac_var'}'` = yes; then
4249  cat >>confdefs.h <<_ACEOF
4250#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4251_ACEOF
4252
4253else
4254  # strftime is in -lintl on SCO UNIX.
4255echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
4256echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
4257if test "${ac_cv_lib_intl_strftime+set}" = set; then
4258  echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260  ac_check_lib_save_LIBS=$LIBS
4261LIBS="-lintl  $LIBS"
4262cat >conftest.$ac_ext <<_ACEOF
4263/* confdefs.h.  */
4264_ACEOF
4265cat confdefs.h >>conftest.$ac_ext
4266cat >>conftest.$ac_ext <<_ACEOF
4267/* end confdefs.h.  */
4268
4269/* Override any gcc2 internal prototype to avoid an error.  */
4270#ifdef __cplusplus
4271extern "C"
4272#endif
4273/* We use char because int might match the return type of a gcc2
4274   builtin and then its argument prototype would still apply.  */
4275char strftime ();
4276int
4277main ()
4278{
4279strftime ();
4280  ;
4281  return 0;
4282}
4283_ACEOF
4284rm -f conftest.$ac_objext conftest$ac_exeext
4285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4286  (eval $ac_link) 2>conftest.er1
4287  ac_status=$?
4288  grep -v '^ *+' conftest.er1 >conftest.err
4289  rm -f conftest.er1
4290  cat conftest.err >&5
4291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292  (exit $ac_status); } &&
4293	 { ac_try='test -z "$ac_c_werror_flag"
4294			 || test ! -s conftest.err'
4295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296  (eval $ac_try) 2>&5
4297  ac_status=$?
4298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299  (exit $ac_status); }; } &&
4300	 { ac_try='test -s conftest$ac_exeext'
4301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302  (eval $ac_try) 2>&5
4303  ac_status=$?
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); }; }; then
4306  ac_cv_lib_intl_strftime=yes
4307else
4308  echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311ac_cv_lib_intl_strftime=no
4312fi
4313rm -f conftest.err conftest.$ac_objext \
4314      conftest$ac_exeext conftest.$ac_ext
4315LIBS=$ac_check_lib_save_LIBS
4316fi
4317echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
4318echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
4319if test $ac_cv_lib_intl_strftime = yes; then
4320  cat >>confdefs.h <<\_ACEOF
4321#define HAVE_STRFTIME 1
4322_ACEOF
4323
4324LIBS="-lintl $LIBS"
4325fi
4326
4327fi
4328done
4329
4330
4331# Checks for header files.
4332
4333echo "$as_me:$LINENO: checking for egrep" >&5
4334echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4335if test "${ac_cv_prog_egrep+set}" = set; then
4336  echo $ECHO_N "(cached) $ECHO_C" >&6
4337else
4338  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4339    then ac_cv_prog_egrep='grep -E'
4340    else ac_cv_prog_egrep='egrep'
4341    fi
4342fi
4343echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4344echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4345 EGREP=$ac_cv_prog_egrep
4346
4347
4348echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4349echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4350if test "${ac_cv_header_stdc+set}" = set; then
4351  echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353  cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h.  */
4355_ACEOF
4356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
4358/* end confdefs.h.  */
4359#include <stdlib.h>
4360#include <stdarg.h>
4361#include <string.h>
4362#include <float.h>
4363
4364int
4365main ()
4366{
4367
4368  ;
4369  return 0;
4370}
4371_ACEOF
4372rm -f conftest.$ac_objext
4373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4374  (eval $ac_compile) 2>conftest.er1
4375  ac_status=$?
4376  grep -v '^ *+' conftest.er1 >conftest.err
4377  rm -f conftest.er1
4378  cat conftest.err >&5
4379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380  (exit $ac_status); } &&
4381	 { ac_try='test -z "$ac_c_werror_flag"
4382			 || test ! -s conftest.err'
4383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384  (eval $ac_try) 2>&5
4385  ac_status=$?
4386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387  (exit $ac_status); }; } &&
4388	 { ac_try='test -s conftest.$ac_objext'
4389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390  (eval $ac_try) 2>&5
4391  ac_status=$?
4392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393  (exit $ac_status); }; }; then
4394  ac_cv_header_stdc=yes
4395else
4396  echo "$as_me: failed program was:" >&5
4397sed 's/^/| /' conftest.$ac_ext >&5
4398
4399ac_cv_header_stdc=no
4400fi
4401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4402
4403if test $ac_cv_header_stdc = yes; then
4404  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405  cat >conftest.$ac_ext <<_ACEOF
4406/* confdefs.h.  */
4407_ACEOF
4408cat confdefs.h >>conftest.$ac_ext
4409cat >>conftest.$ac_ext <<_ACEOF
4410/* end confdefs.h.  */
4411#include <string.h>
4412
4413_ACEOF
4414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415  $EGREP "memchr" >/dev/null 2>&1; then
4416  :
4417else
4418  ac_cv_header_stdc=no
4419fi
4420rm -f conftest*
4421
4422fi
4423
4424if test $ac_cv_header_stdc = yes; then
4425  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426  cat >conftest.$ac_ext <<_ACEOF
4427/* confdefs.h.  */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4431/* end confdefs.h.  */
4432#include <stdlib.h>
4433
4434_ACEOF
4435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436  $EGREP "free" >/dev/null 2>&1; then
4437  :
4438else
4439  ac_cv_header_stdc=no
4440fi
4441rm -f conftest*
4442
4443fi
4444
4445if test $ac_cv_header_stdc = yes; then
4446  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447  if test "$cross_compiling" = yes; then
4448  :
4449else
4450  cat >conftest.$ac_ext <<_ACEOF
4451/* confdefs.h.  */
4452_ACEOF
4453cat confdefs.h >>conftest.$ac_ext
4454cat >>conftest.$ac_ext <<_ACEOF
4455/* end confdefs.h.  */
4456#include <ctype.h>
4457#if ((' ' & 0x0FF) == 0x020)
4458# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4460#else
4461# define ISLOWER(c) \
4462		   (('a' <= (c) && (c) <= 'i') \
4463		     || ('j' <= (c) && (c) <= 'r') \
4464		     || ('s' <= (c) && (c) <= 'z'))
4465# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4466#endif
4467
4468#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4469int
4470main ()
4471{
4472  int i;
4473  for (i = 0; i < 256; i++)
4474    if (XOR (islower (i), ISLOWER (i))
4475	|| toupper (i) != TOUPPER (i))
4476      exit(2);
4477  exit (0);
4478}
4479_ACEOF
4480rm -f conftest$ac_exeext
4481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482  (eval $ac_link) 2>&5
4483  ac_status=$?
4484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487  (eval $ac_try) 2>&5
4488  ac_status=$?
4489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490  (exit $ac_status); }; }; then
4491  :
4492else
4493  echo "$as_me: program exited with status $ac_status" >&5
4494echo "$as_me: failed program was:" >&5
4495sed 's/^/| /' conftest.$ac_ext >&5
4496
4497( exit $ac_status )
4498ac_cv_header_stdc=no
4499fi
4500rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4501fi
4502fi
4503fi
4504echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506if test $ac_cv_header_stdc = yes; then
4507
4508cat >>confdefs.h <<\_ACEOF
4509#define STDC_HEADERS 1
4510_ACEOF
4511
4512fi
4513
4514# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4525		  inttypes.h stdint.h unistd.h
4526do
4527as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4528echo "$as_me:$LINENO: checking for $ac_header" >&5
4529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4530if eval "test \"\${$as_ac_Header+set}\" = set"; then
4531  echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533  cat >conftest.$ac_ext <<_ACEOF
4534/* confdefs.h.  */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h.  */
4539$ac_includes_default
4540
4541#include <$ac_header>
4542_ACEOF
4543rm -f conftest.$ac_objext
4544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545  (eval $ac_compile) 2>conftest.er1
4546  ac_status=$?
4547  grep -v '^ *+' conftest.er1 >conftest.err
4548  rm -f conftest.er1
4549  cat conftest.err >&5
4550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551  (exit $ac_status); } &&
4552	 { ac_try='test -z "$ac_c_werror_flag"
4553			 || test ! -s conftest.err'
4554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555  (eval $ac_try) 2>&5
4556  ac_status=$?
4557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558  (exit $ac_status); }; } &&
4559	 { ac_try='test -s conftest.$ac_objext'
4560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561  (eval $ac_try) 2>&5
4562  ac_status=$?
4563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564  (exit $ac_status); }; }; then
4565  eval "$as_ac_Header=yes"
4566else
4567  echo "$as_me: failed program was:" >&5
4568sed 's/^/| /' conftest.$ac_ext >&5
4569
4570eval "$as_ac_Header=no"
4571fi
4572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573fi
4574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4576if test `eval echo '${'$as_ac_Header'}'` = yes; then
4577  cat >>confdefs.h <<_ACEOF
4578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579_ACEOF
4580
4581fi
4582
4583done
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618for ac_header in arpa/inet.h assert.h errno.h grp.h limits.h netdb.h netinet/in.h netinet/tcp.h process.h pthread.h pwd.h signal.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/inttypes.h sys/ioctl.h sys/param.h sys/socket.h sys/stat.h sys/time.h sys/timeb.h sys/types.h sys/uio.h sys/un.h sys/filio.h time.h unistd.h windows.h winsock.h
4619do
4620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4621if eval "test \"\${$as_ac_Header+set}\" = set"; then
4622  echo "$as_me:$LINENO: checking for $ac_header" >&5
4623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4624if eval "test \"\${$as_ac_Header+set}\" = set"; then
4625  echo $ECHO_N "(cached) $ECHO_C" >&6
4626fi
4627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4629else
4630  # Is the header compilable?
4631echo "$as_me:$LINENO: checking $ac_header usability" >&5
4632echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4633cat >conftest.$ac_ext <<_ACEOF
4634/* confdefs.h.  */
4635_ACEOF
4636cat confdefs.h >>conftest.$ac_ext
4637cat >>conftest.$ac_ext <<_ACEOF
4638/* end confdefs.h.  */
4639$ac_includes_default
4640#include <$ac_header>
4641_ACEOF
4642rm -f conftest.$ac_objext
4643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4644  (eval $ac_compile) 2>conftest.er1
4645  ac_status=$?
4646  grep -v '^ *+' conftest.er1 >conftest.err
4647  rm -f conftest.er1
4648  cat conftest.err >&5
4649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); } &&
4651	 { ac_try='test -z "$ac_c_werror_flag"
4652			 || test ! -s conftest.err'
4653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654  (eval $ac_try) 2>&5
4655  ac_status=$?
4656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657  (exit $ac_status); }; } &&
4658	 { ac_try='test -s conftest.$ac_objext'
4659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660  (eval $ac_try) 2>&5
4661  ac_status=$?
4662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663  (exit $ac_status); }; }; then
4664  ac_header_compiler=yes
4665else
4666  echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669ac_header_compiler=no
4670fi
4671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4672echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4673echo "${ECHO_T}$ac_header_compiler" >&6
4674
4675# Is the header present?
4676echo "$as_me:$LINENO: checking $ac_header presence" >&5
4677echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4678cat >conftest.$ac_ext <<_ACEOF
4679/* confdefs.h.  */
4680_ACEOF
4681cat confdefs.h >>conftest.$ac_ext
4682cat >>conftest.$ac_ext <<_ACEOF
4683/* end confdefs.h.  */
4684#include <$ac_header>
4685_ACEOF
4686if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4687  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4688  ac_status=$?
4689  grep -v '^ *+' conftest.er1 >conftest.err
4690  rm -f conftest.er1
4691  cat conftest.err >&5
4692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693  (exit $ac_status); } >/dev/null; then
4694  if test -s conftest.err; then
4695    ac_cpp_err=$ac_c_preproc_warn_flag
4696    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4697  else
4698    ac_cpp_err=
4699  fi
4700else
4701  ac_cpp_err=yes
4702fi
4703if test -z "$ac_cpp_err"; then
4704  ac_header_preproc=yes
4705else
4706  echo "$as_me: failed program was:" >&5
4707sed 's/^/| /' conftest.$ac_ext >&5
4708
4709  ac_header_preproc=no
4710fi
4711rm -f conftest.err conftest.$ac_ext
4712echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4713echo "${ECHO_T}$ac_header_preproc" >&6
4714
4715# So?  What about this header?
4716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4717  yes:no: )
4718    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4720    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4721echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4722    ac_header_preproc=yes
4723    ;;
4724  no:yes:* )
4725    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4726echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4727    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4728echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4729    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4730echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4731    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4732echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4733    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4734echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4735    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4736echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4737    (
4738      cat <<\_ASBOX
4739## --------------------------------- ##
4740## Report this to the Spread lists.  ##
4741## --------------------------------- ##
4742_ASBOX
4743    ) |
4744      sed "s/^/$as_me: WARNING:     /" >&2
4745    ;;
4746esac
4747echo "$as_me:$LINENO: checking for $ac_header" >&5
4748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4749if eval "test \"\${$as_ac_Header+set}\" = set"; then
4750  echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752  eval "$as_ac_Header=\$ac_header_preproc"
4753fi
4754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4756
4757fi
4758if test `eval echo '${'$as_ac_Header'}'` = yes; then
4759  cat >>confdefs.h <<_ACEOF
4760#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4761_ACEOF
4762
4763fi
4764
4765done
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777for ac_func in bcopy inet_aton inet_ntoa inet_ntop memmove setsid snprintf strerror lrand48
4778do
4779as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4780echo "$as_me:$LINENO: checking for $ac_func" >&5
4781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4782if eval "test \"\${$as_ac_var+set}\" = set"; then
4783  echo $ECHO_N "(cached) $ECHO_C" >&6
4784else
4785  cat >conftest.$ac_ext <<_ACEOF
4786/* confdefs.h.  */
4787_ACEOF
4788cat confdefs.h >>conftest.$ac_ext
4789cat >>conftest.$ac_ext <<_ACEOF
4790/* end confdefs.h.  */
4791/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4792   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4793#define $ac_func innocuous_$ac_func
4794
4795/* System header to define __stub macros and hopefully few prototypes,
4796    which can conflict with char $ac_func (); below.
4797    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798    <limits.h> exists even on freestanding compilers.  */
4799
4800#ifdef __STDC__
4801# include <limits.h>
4802#else
4803# include <assert.h>
4804#endif
4805
4806#undef $ac_func
4807
4808/* Override any gcc2 internal prototype to avoid an error.  */
4809#ifdef __cplusplus
4810extern "C"
4811{
4812#endif
4813/* We use char because int might match the return type of a gcc2
4814   builtin and then its argument prototype would still apply.  */
4815char $ac_func ();
4816/* The GNU C library defines this for functions which it implements
4817    to always fail with ENOSYS.  Some functions are actually named
4818    something starting with __ and the normal name is an alias.  */
4819#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4820choke me
4821#else
4822char (*f) () = $ac_func;
4823#endif
4824#ifdef __cplusplus
4825}
4826#endif
4827
4828int
4829main ()
4830{
4831return f != $ac_func;
4832  ;
4833  return 0;
4834}
4835_ACEOF
4836rm -f conftest.$ac_objext conftest$ac_exeext
4837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4838  (eval $ac_link) 2>conftest.er1
4839  ac_status=$?
4840  grep -v '^ *+' conftest.er1 >conftest.err
4841  rm -f conftest.er1
4842  cat conftest.err >&5
4843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844  (exit $ac_status); } &&
4845	 { ac_try='test -z "$ac_c_werror_flag"
4846			 || test ! -s conftest.err'
4847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848  (eval $ac_try) 2>&5
4849  ac_status=$?
4850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851  (exit $ac_status); }; } &&
4852	 { ac_try='test -s conftest$ac_exeext'
4853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854  (eval $ac_try) 2>&5
4855  ac_status=$?
4856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857  (exit $ac_status); }; }; then
4858  eval "$as_ac_var=yes"
4859else
4860  echo "$as_me: failed program was:" >&5
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
4863eval "$as_ac_var=no"
4864fi
4865rm -f conftest.err conftest.$ac_objext \
4866      conftest$ac_exeext conftest.$ac_ext
4867fi
4868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4869echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4870if test `eval echo '${'$as_ac_var'}'` = yes; then
4871  cat >>confdefs.h <<_ACEOF
4872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4873_ACEOF
4874
4875fi
4876done
4877
4878
4879
4880for ac_func in gettimeofday time
4881do
4882as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4883echo "$as_me:$LINENO: checking for $ac_func" >&5
4884echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4885if eval "test \"\${$as_ac_var+set}\" = set"; then
4886  echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888  cat >conftest.$ac_ext <<_ACEOF
4889/* confdefs.h.  */
4890_ACEOF
4891cat confdefs.h >>conftest.$ac_ext
4892cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h.  */
4894/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4895   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4896#define $ac_func innocuous_$ac_func
4897
4898/* System header to define __stub macros and hopefully few prototypes,
4899    which can conflict with char $ac_func (); below.
4900    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901    <limits.h> exists even on freestanding compilers.  */
4902
4903#ifdef __STDC__
4904# include <limits.h>
4905#else
4906# include <assert.h>
4907#endif
4908
4909#undef $ac_func
4910
4911/* Override any gcc2 internal prototype to avoid an error.  */
4912#ifdef __cplusplus
4913extern "C"
4914{
4915#endif
4916/* We use char because int might match the return type of a gcc2
4917   builtin and then its argument prototype would still apply.  */
4918char $ac_func ();
4919/* The GNU C library defines this for functions which it implements
4920    to always fail with ENOSYS.  Some functions are actually named
4921    something starting with __ and the normal name is an alias.  */
4922#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4923choke me
4924#else
4925char (*f) () = $ac_func;
4926#endif
4927#ifdef __cplusplus
4928}
4929#endif
4930
4931int
4932main ()
4933{
4934return f != $ac_func;
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939rm -f conftest.$ac_objext conftest$ac_exeext
4940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941  (eval $ac_link) 2>conftest.er1
4942  ac_status=$?
4943  grep -v '^ *+' conftest.er1 >conftest.err
4944  rm -f conftest.er1
4945  cat conftest.err >&5
4946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947  (exit $ac_status); } &&
4948	 { ac_try='test -z "$ac_c_werror_flag"
4949			 || test ! -s conftest.err'
4950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951  (eval $ac_try) 2>&5
4952  ac_status=$?
4953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954  (exit $ac_status); }; } &&
4955	 { ac_try='test -s conftest$ac_exeext'
4956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957  (eval $ac_try) 2>&5
4958  ac_status=$?
4959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960  (exit $ac_status); }; }; then
4961  eval "$as_ac_var=yes"
4962else
4963  echo "$as_me: failed program was:" >&5
4964sed 's/^/| /' conftest.$ac_ext >&5
4965
4966eval "$as_ac_var=no"
4967fi
4968rm -f conftest.err conftest.$ac_objext \
4969      conftest$ac_exeext conftest.$ac_ext
4970fi
4971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4972echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4973if test `eval echo '${'$as_ac_var'}'` = yes; then
4974  cat >>confdefs.h <<_ACEOF
4975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4976_ACEOF
4977
4978fi
4979done
4980
4981
4982# Check for clock_gettime(CLOCK_MONOTONIC, ...)
4983echo "$as_me:$LINENO: checking for clock_gettime(CLOCK_MONOTONIC)" >&5
4984echo $ECHO_N "checking for clock_gettime(CLOCK_MONOTONIC)... $ECHO_C" >&6
4985if test "${ac_cv_clock_gettime_monotonic+set}" = set; then
4986  echo $ECHO_N "(cached) $ECHO_C" >&6
4987else
4988
4989	cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h.  */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h.  */
4995 #include <time.h>
4996int
4997main ()
4998{
4999 struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t);
5000  ;
5001  return 0;
5002}
5003_ACEOF
5004rm -f conftest.$ac_objext
5005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006  (eval $ac_compile) 2>conftest.er1
5007  ac_status=$?
5008  grep -v '^ *+' conftest.er1 >conftest.err
5009  rm -f conftest.er1
5010  cat conftest.err >&5
5011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012  (exit $ac_status); } &&
5013	 { ac_try='test -z "$ac_c_werror_flag"
5014			 || test ! -s conftest.err'
5015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016  (eval $ac_try) 2>&5
5017  ac_status=$?
5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); }; } &&
5020	 { ac_try='test -s conftest.$ac_objext'
5021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022  (eval $ac_try) 2>&5
5023  ac_status=$?
5024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025  (exit $ac_status); }; }; then
5026   ac_cv_clock_gettime_monotonic="yes"
5027else
5028  echo "$as_me: failed program was:" >&5
5029sed 's/^/| /' conftest.$ac_ext >&5
5030
5031 ac_cv_clock_gettime_monotonic="no"
5032
5033fi
5034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035
5036fi
5037echo "$as_me:$LINENO: result: $ac_cv_clock_gettime_monotonic" >&5
5038echo "${ECHO_T}$ac_cv_clock_gettime_monotonic" >&6
5039if test "x$ac_cv_clock_gettime_monotonic" = "xyes" ; then
5040
5041cat >>confdefs.h <<\_ACEOF
5042#define HAVE_CLOCK_GETTIME_CLOCK_MONOTONIC 1
5043_ACEOF
5044
5045fi
5046
5047# Check for broken snprintf
5048if test "x$ac_cv_func_snprintf" = "xyes" ; then
5049	echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
5050echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6
5051	if test "$cross_compiling" = yes; then
5052  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5053See \`config.log' for more details." >&5
5054echo "$as_me: error: cannot run test program while cross compiling
5055See \`config.log' for more details." >&2;}
5056   { (exit 1); exit 1; }; }
5057else
5058  cat >conftest.$ac_ext <<_ACEOF
5059/* confdefs.h.  */
5060_ACEOF
5061cat confdefs.h >>conftest.$ac_ext
5062cat >>conftest.$ac_ext <<_ACEOF
5063/* end confdefs.h.  */
5064
5065#include <stdio.h>
5066int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
5067
5068_ACEOF
5069rm -f conftest$ac_exeext
5070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5071  (eval $ac_link) 2>&5
5072  ac_status=$?
5073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076  (eval $ac_try) 2>&5
5077  ac_status=$?
5078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079  (exit $ac_status); }; }; then
5080  echo "$as_me:$LINENO: result: yes" >&5
5081echo "${ECHO_T}yes" >&6
5082else
5083  echo "$as_me: program exited with status $ac_status" >&5
5084echo "$as_me: failed program was:" >&5
5085sed 's/^/| /' conftest.$ac_ext >&5
5086
5087( exit $ac_status )
5088
5089			echo "$as_me:$LINENO: result: no" >&5
5090echo "${ECHO_T}no" >&6
5091
5092cat >>confdefs.h <<\_ACEOF
5093#define BROKEN_SNPRINTF 1
5094_ACEOF
5095
5096			{ echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
5097echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
5098
5099
5100fi
5101rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5102fi
5103fi
5104
5105# Cheap hack to ensure NEWS-OS libraries are arranged right.
5106if test ! -z "$SONY" ; then
5107  LIBS="$LIBS -liberty";
5108fi
5109
5110# Checks for data types
5111echo "$as_me:$LINENO: checking for char" >&5
5112echo $ECHO_N "checking for char... $ECHO_C" >&6
5113if test "${ac_cv_type_char+set}" = set; then
5114  echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116  cat >conftest.$ac_ext <<_ACEOF
5117/* confdefs.h.  */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h.  */
5122$ac_includes_default
5123int
5124main ()
5125{
5126if ((char *) 0)
5127  return 0;
5128if (sizeof (char))
5129  return 0;
5130  ;
5131  return 0;
5132}
5133_ACEOF
5134rm -f conftest.$ac_objext
5135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5136  (eval $ac_compile) 2>conftest.er1
5137  ac_status=$?
5138  grep -v '^ *+' conftest.er1 >conftest.err
5139  rm -f conftest.er1
5140  cat conftest.err >&5
5141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142  (exit $ac_status); } &&
5143	 { ac_try='test -z "$ac_c_werror_flag"
5144			 || test ! -s conftest.err'
5145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146  (eval $ac_try) 2>&5
5147  ac_status=$?
5148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149  (exit $ac_status); }; } &&
5150	 { ac_try='test -s conftest.$ac_objext'
5151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152  (eval $ac_try) 2>&5
5153  ac_status=$?
5154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155  (exit $ac_status); }; }; then
5156  ac_cv_type_char=yes
5157else
5158  echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161ac_cv_type_char=no
5162fi
5163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5164fi
5165echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5166echo "${ECHO_T}$ac_cv_type_char" >&6
5167
5168echo "$as_me:$LINENO: checking size of char" >&5
5169echo $ECHO_N "checking size of char... $ECHO_C" >&6
5170if test "${ac_cv_sizeof_char+set}" = set; then
5171  echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173  if test "$ac_cv_type_char" = yes; then
5174  # The cast to unsigned long works around a bug in the HP C Compiler
5175  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5176  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5177  # This bug is HP SR number 8606223364.
5178  if test "$cross_compiling" = yes; then
5179  # Depending upon the size, compute the lo and hi bounds.
5180cat >conftest.$ac_ext <<_ACEOF
5181/* confdefs.h.  */
5182_ACEOF
5183cat confdefs.h >>conftest.$ac_ext
5184cat >>conftest.$ac_ext <<_ACEOF
5185/* end confdefs.h.  */
5186$ac_includes_default
5187int
5188main ()
5189{
5190static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5191test_array [0] = 0
5192
5193  ;
5194  return 0;
5195}
5196_ACEOF
5197rm -f conftest.$ac_objext
5198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5199  (eval $ac_compile) 2>conftest.er1
5200  ac_status=$?
5201  grep -v '^ *+' conftest.er1 >conftest.err
5202  rm -f conftest.er1
5203  cat conftest.err >&5
5204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205  (exit $ac_status); } &&
5206	 { ac_try='test -z "$ac_c_werror_flag"
5207			 || test ! -s conftest.err'
5208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209  (eval $ac_try) 2>&5
5210  ac_status=$?
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); }; } &&
5213	 { ac_try='test -s conftest.$ac_objext'
5214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215  (eval $ac_try) 2>&5
5216  ac_status=$?
5217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218  (exit $ac_status); }; }; then
5219  ac_lo=0 ac_mid=0
5220  while :; do
5221    cat >conftest.$ac_ext <<_ACEOF
5222/* confdefs.h.  */
5223_ACEOF
5224cat confdefs.h >>conftest.$ac_ext
5225cat >>conftest.$ac_ext <<_ACEOF
5226/* end confdefs.h.  */
5227$ac_includes_default
5228int
5229main ()
5230{
5231static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5232test_array [0] = 0
5233
5234  ;
5235  return 0;
5236}
5237_ACEOF
5238rm -f conftest.$ac_objext
5239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240  (eval $ac_compile) 2>conftest.er1
5241  ac_status=$?
5242  grep -v '^ *+' conftest.er1 >conftest.err
5243  rm -f conftest.er1
5244  cat conftest.err >&5
5245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246  (exit $ac_status); } &&
5247	 { ac_try='test -z "$ac_c_werror_flag"
5248			 || test ! -s conftest.err'
5249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250  (eval $ac_try) 2>&5
5251  ac_status=$?
5252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253  (exit $ac_status); }; } &&
5254	 { ac_try='test -s conftest.$ac_objext'
5255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256  (eval $ac_try) 2>&5
5257  ac_status=$?
5258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259  (exit $ac_status); }; }; then
5260  ac_hi=$ac_mid; break
5261else
5262  echo "$as_me: failed program was:" >&5
5263sed 's/^/| /' conftest.$ac_ext >&5
5264
5265ac_lo=`expr $ac_mid + 1`
5266		    if test $ac_lo -le $ac_mid; then
5267		      ac_lo= ac_hi=
5268		      break
5269		    fi
5270		    ac_mid=`expr 2 '*' $ac_mid + 1`
5271fi
5272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5273  done
5274else
5275  echo "$as_me: failed program was:" >&5
5276sed 's/^/| /' conftest.$ac_ext >&5
5277
5278cat >conftest.$ac_ext <<_ACEOF
5279/* confdefs.h.  */
5280_ACEOF
5281cat confdefs.h >>conftest.$ac_ext
5282cat >>conftest.$ac_ext <<_ACEOF
5283/* end confdefs.h.  */
5284$ac_includes_default
5285int
5286main ()
5287{
5288static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5289test_array [0] = 0
5290
5291  ;
5292  return 0;
5293}
5294_ACEOF
5295rm -f conftest.$ac_objext
5296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297  (eval $ac_compile) 2>conftest.er1
5298  ac_status=$?
5299  grep -v '^ *+' conftest.er1 >conftest.err
5300  rm -f conftest.er1
5301  cat conftest.err >&5
5302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303  (exit $ac_status); } &&
5304	 { ac_try='test -z "$ac_c_werror_flag"
5305			 || test ! -s conftest.err'
5306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307  (eval $ac_try) 2>&5
5308  ac_status=$?
5309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310  (exit $ac_status); }; } &&
5311	 { ac_try='test -s conftest.$ac_objext'
5312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313  (eval $ac_try) 2>&5
5314  ac_status=$?
5315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316  (exit $ac_status); }; }; then
5317  ac_hi=-1 ac_mid=-1
5318  while :; do
5319    cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h.  */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h.  */
5325$ac_includes_default
5326int
5327main ()
5328{
5329static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5330test_array [0] = 0
5331
5332  ;
5333  return 0;
5334}
5335_ACEOF
5336rm -f conftest.$ac_objext
5337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338  (eval $ac_compile) 2>conftest.er1
5339  ac_status=$?
5340  grep -v '^ *+' conftest.er1 >conftest.err
5341  rm -f conftest.er1
5342  cat conftest.err >&5
5343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344  (exit $ac_status); } &&
5345	 { ac_try='test -z "$ac_c_werror_flag"
5346			 || test ! -s conftest.err'
5347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348  (eval $ac_try) 2>&5
5349  ac_status=$?
5350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351  (exit $ac_status); }; } &&
5352	 { ac_try='test -s conftest.$ac_objext'
5353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354  (eval $ac_try) 2>&5
5355  ac_status=$?
5356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357  (exit $ac_status); }; }; then
5358  ac_lo=$ac_mid; break
5359else
5360  echo "$as_me: failed program was:" >&5
5361sed 's/^/| /' conftest.$ac_ext >&5
5362
5363ac_hi=`expr '(' $ac_mid ')' - 1`
5364		       if test $ac_mid -le $ac_hi; then
5365			 ac_lo= ac_hi=
5366			 break
5367		       fi
5368		       ac_mid=`expr 2 '*' $ac_mid`
5369fi
5370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5371  done
5372else
5373  echo "$as_me: failed program was:" >&5
5374sed 's/^/| /' conftest.$ac_ext >&5
5375
5376ac_lo= ac_hi=
5377fi
5378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5379fi
5380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5381# Binary search between lo and hi bounds.
5382while test "x$ac_lo" != "x$ac_hi"; do
5383  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5384  cat >conftest.$ac_ext <<_ACEOF
5385/* confdefs.h.  */
5386_ACEOF
5387cat confdefs.h >>conftest.$ac_ext
5388cat >>conftest.$ac_ext <<_ACEOF
5389/* end confdefs.h.  */
5390$ac_includes_default
5391int
5392main ()
5393{
5394static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5395test_array [0] = 0
5396
5397  ;
5398  return 0;
5399}
5400_ACEOF
5401rm -f conftest.$ac_objext
5402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403  (eval $ac_compile) 2>conftest.er1
5404  ac_status=$?
5405  grep -v '^ *+' conftest.er1 >conftest.err
5406  rm -f conftest.er1
5407  cat conftest.err >&5
5408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409  (exit $ac_status); } &&
5410	 { ac_try='test -z "$ac_c_werror_flag"
5411			 || test ! -s conftest.err'
5412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413  (eval $ac_try) 2>&5
5414  ac_status=$?
5415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416  (exit $ac_status); }; } &&
5417	 { ac_try='test -s conftest.$ac_objext'
5418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419  (eval $ac_try) 2>&5
5420  ac_status=$?
5421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422  (exit $ac_status); }; }; then
5423  ac_hi=$ac_mid
5424else
5425  echo "$as_me: failed program was:" >&5
5426sed 's/^/| /' conftest.$ac_ext >&5
5427
5428ac_lo=`expr '(' $ac_mid ')' + 1`
5429fi
5430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431done
5432case $ac_lo in
5433?*) ac_cv_sizeof_char=$ac_lo;;
5434'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5435See \`config.log' for more details." >&5
5436echo "$as_me: error: cannot compute sizeof (char), 77
5437See \`config.log' for more details." >&2;}
5438   { (exit 1); exit 1; }; } ;;
5439esac
5440else
5441  if test "$cross_compiling" = yes; then
5442  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5443See \`config.log' for more details." >&5
5444echo "$as_me: error: cannot run test program while cross compiling
5445See \`config.log' for more details." >&2;}
5446   { (exit 1); exit 1; }; }
5447else
5448  cat >conftest.$ac_ext <<_ACEOF
5449/* confdefs.h.  */
5450_ACEOF
5451cat confdefs.h >>conftest.$ac_ext
5452cat >>conftest.$ac_ext <<_ACEOF
5453/* end confdefs.h.  */
5454$ac_includes_default
5455long longval () { return (long) (sizeof (char)); }
5456unsigned long ulongval () { return (long) (sizeof (char)); }
5457#include <stdio.h>
5458#include <stdlib.h>
5459int
5460main ()
5461{
5462
5463  FILE *f = fopen ("conftest.val", "w");
5464  if (! f)
5465    exit (1);
5466  if (((long) (sizeof (char))) < 0)
5467    {
5468      long i = longval ();
5469      if (i != ((long) (sizeof (char))))
5470	exit (1);
5471      fprintf (f, "%ld\n", i);
5472    }
5473  else
5474    {
5475      unsigned long i = ulongval ();
5476      if (i != ((long) (sizeof (char))))
5477	exit (1);
5478      fprintf (f, "%lu\n", i);
5479    }
5480  exit (ferror (f) || fclose (f) != 0);
5481
5482  ;
5483  return 0;
5484}
5485_ACEOF
5486rm -f conftest$ac_exeext
5487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5488  (eval $ac_link) 2>&5
5489  ac_status=$?
5490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493  (eval $ac_try) 2>&5
5494  ac_status=$?
5495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496  (exit $ac_status); }; }; then
5497  ac_cv_sizeof_char=`cat conftest.val`
5498else
5499  echo "$as_me: program exited with status $ac_status" >&5
5500echo "$as_me: failed program was:" >&5
5501sed 's/^/| /' conftest.$ac_ext >&5
5502
5503( exit $ac_status )
5504{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5505See \`config.log' for more details." >&5
5506echo "$as_me: error: cannot compute sizeof (char), 77
5507See \`config.log' for more details." >&2;}
5508   { (exit 1); exit 1; }; }
5509fi
5510rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5511fi
5512fi
5513rm -f conftest.val
5514else
5515  ac_cv_sizeof_char=0
5516fi
5517fi
5518echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5519echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5520cat >>confdefs.h <<_ACEOF
5521#define SIZEOF_CHAR $ac_cv_sizeof_char
5522_ACEOF
5523
5524
5525echo "$as_me:$LINENO: checking for short int" >&5
5526echo $ECHO_N "checking for short int... $ECHO_C" >&6
5527if test "${ac_cv_type_short_int+set}" = set; then
5528  echo $ECHO_N "(cached) $ECHO_C" >&6
5529else
5530  cat >conftest.$ac_ext <<_ACEOF
5531/* confdefs.h.  */
5532_ACEOF
5533cat confdefs.h >>conftest.$ac_ext
5534cat >>conftest.$ac_ext <<_ACEOF
5535/* end confdefs.h.  */
5536$ac_includes_default
5537int
5538main ()
5539{
5540if ((short int *) 0)
5541  return 0;
5542if (sizeof (short int))
5543  return 0;
5544  ;
5545  return 0;
5546}
5547_ACEOF
5548rm -f conftest.$ac_objext
5549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5550  (eval $ac_compile) 2>conftest.er1
5551  ac_status=$?
5552  grep -v '^ *+' conftest.er1 >conftest.err
5553  rm -f conftest.er1
5554  cat conftest.err >&5
5555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556  (exit $ac_status); } &&
5557	 { ac_try='test -z "$ac_c_werror_flag"
5558			 || test ! -s conftest.err'
5559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560  (eval $ac_try) 2>&5
5561  ac_status=$?
5562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563  (exit $ac_status); }; } &&
5564	 { ac_try='test -s conftest.$ac_objext'
5565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566  (eval $ac_try) 2>&5
5567  ac_status=$?
5568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569  (exit $ac_status); }; }; then
5570  ac_cv_type_short_int=yes
5571else
5572  echo "$as_me: failed program was:" >&5
5573sed 's/^/| /' conftest.$ac_ext >&5
5574
5575ac_cv_type_short_int=no
5576fi
5577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5578fi
5579echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
5580echo "${ECHO_T}$ac_cv_type_short_int" >&6
5581
5582echo "$as_me:$LINENO: checking size of short int" >&5
5583echo $ECHO_N "checking size of short int... $ECHO_C" >&6
5584if test "${ac_cv_sizeof_short_int+set}" = set; then
5585  echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587  if test "$ac_cv_type_short_int" = yes; then
5588  # The cast to unsigned long works around a bug in the HP C Compiler
5589  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5590  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5591  # This bug is HP SR number 8606223364.
5592  if test "$cross_compiling" = yes; then
5593  # Depending upon the size, compute the lo and hi bounds.
5594cat >conftest.$ac_ext <<_ACEOF
5595/* confdefs.h.  */
5596_ACEOF
5597cat confdefs.h >>conftest.$ac_ext
5598cat >>conftest.$ac_ext <<_ACEOF
5599/* end confdefs.h.  */
5600$ac_includes_default
5601int
5602main ()
5603{
5604static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
5605test_array [0] = 0
5606
5607  ;
5608  return 0;
5609}
5610_ACEOF
5611rm -f conftest.$ac_objext
5612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613  (eval $ac_compile) 2>conftest.er1
5614  ac_status=$?
5615  grep -v '^ *+' conftest.er1 >conftest.err
5616  rm -f conftest.er1
5617  cat conftest.err >&5
5618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619  (exit $ac_status); } &&
5620	 { ac_try='test -z "$ac_c_werror_flag"
5621			 || test ! -s conftest.err'
5622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623  (eval $ac_try) 2>&5
5624  ac_status=$?
5625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626  (exit $ac_status); }; } &&
5627	 { ac_try='test -s conftest.$ac_objext'
5628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629  (eval $ac_try) 2>&5
5630  ac_status=$?
5631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632  (exit $ac_status); }; }; then
5633  ac_lo=0 ac_mid=0
5634  while :; do
5635    cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h.  */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h.  */
5641$ac_includes_default
5642int
5643main ()
5644{
5645static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
5646test_array [0] = 0
5647
5648  ;
5649  return 0;
5650}
5651_ACEOF
5652rm -f conftest.$ac_objext
5653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654  (eval $ac_compile) 2>conftest.er1
5655  ac_status=$?
5656  grep -v '^ *+' conftest.er1 >conftest.err
5657  rm -f conftest.er1
5658  cat conftest.err >&5
5659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660  (exit $ac_status); } &&
5661	 { ac_try='test -z "$ac_c_werror_flag"
5662			 || test ! -s conftest.err'
5663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664  (eval $ac_try) 2>&5
5665  ac_status=$?
5666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667  (exit $ac_status); }; } &&
5668	 { ac_try='test -s conftest.$ac_objext'
5669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670  (eval $ac_try) 2>&5
5671  ac_status=$?
5672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673  (exit $ac_status); }; }; then
5674  ac_hi=$ac_mid; break
5675else
5676  echo "$as_me: failed program was:" >&5
5677sed 's/^/| /' conftest.$ac_ext >&5
5678
5679ac_lo=`expr $ac_mid + 1`
5680		    if test $ac_lo -le $ac_mid; then
5681		      ac_lo= ac_hi=
5682		      break
5683		    fi
5684		    ac_mid=`expr 2 '*' $ac_mid + 1`
5685fi
5686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5687  done
5688else
5689  echo "$as_me: failed program was:" >&5
5690sed 's/^/| /' conftest.$ac_ext >&5
5691
5692cat >conftest.$ac_ext <<_ACEOF
5693/* confdefs.h.  */
5694_ACEOF
5695cat confdefs.h >>conftest.$ac_ext
5696cat >>conftest.$ac_ext <<_ACEOF
5697/* end confdefs.h.  */
5698$ac_includes_default
5699int
5700main ()
5701{
5702static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
5703test_array [0] = 0
5704
5705  ;
5706  return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext
5710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711  (eval $ac_compile) 2>conftest.er1
5712  ac_status=$?
5713  grep -v '^ *+' conftest.er1 >conftest.err
5714  rm -f conftest.er1
5715  cat conftest.err >&5
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); } &&
5718	 { ac_try='test -z "$ac_c_werror_flag"
5719			 || test ! -s conftest.err'
5720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721  (eval $ac_try) 2>&5
5722  ac_status=$?
5723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724  (exit $ac_status); }; } &&
5725	 { ac_try='test -s conftest.$ac_objext'
5726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727  (eval $ac_try) 2>&5
5728  ac_status=$?
5729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730  (exit $ac_status); }; }; then
5731  ac_hi=-1 ac_mid=-1
5732  while :; do
5733    cat >conftest.$ac_ext <<_ACEOF
5734/* confdefs.h.  */
5735_ACEOF
5736cat confdefs.h >>conftest.$ac_ext
5737cat >>conftest.$ac_ext <<_ACEOF
5738/* end confdefs.h.  */
5739$ac_includes_default
5740int
5741main ()
5742{
5743static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
5744test_array [0] = 0
5745
5746  ;
5747  return 0;
5748}
5749_ACEOF
5750rm -f conftest.$ac_objext
5751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752  (eval $ac_compile) 2>conftest.er1
5753  ac_status=$?
5754  grep -v '^ *+' conftest.er1 >conftest.err
5755  rm -f conftest.er1
5756  cat conftest.err >&5
5757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758  (exit $ac_status); } &&
5759	 { ac_try='test -z "$ac_c_werror_flag"
5760			 || test ! -s conftest.err'
5761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762  (eval $ac_try) 2>&5
5763  ac_status=$?
5764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765  (exit $ac_status); }; } &&
5766	 { ac_try='test -s conftest.$ac_objext'
5767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768  (eval $ac_try) 2>&5
5769  ac_status=$?
5770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771  (exit $ac_status); }; }; then
5772  ac_lo=$ac_mid; break
5773else
5774  echo "$as_me: failed program was:" >&5
5775sed 's/^/| /' conftest.$ac_ext >&5
5776
5777ac_hi=`expr '(' $ac_mid ')' - 1`
5778		       if test $ac_mid -le $ac_hi; then
5779			 ac_lo= ac_hi=
5780			 break
5781		       fi
5782		       ac_mid=`expr 2 '*' $ac_mid`
5783fi
5784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5785  done
5786else
5787  echo "$as_me: failed program was:" >&5
5788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790ac_lo= ac_hi=
5791fi
5792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5793fi
5794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5795# Binary search between lo and hi bounds.
5796while test "x$ac_lo" != "x$ac_hi"; do
5797  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5798  cat >conftest.$ac_ext <<_ACEOF
5799/* confdefs.h.  */
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
5803/* end confdefs.h.  */
5804$ac_includes_default
5805int
5806main ()
5807{
5808static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
5809test_array [0] = 0
5810
5811  ;
5812  return 0;
5813}
5814_ACEOF
5815rm -f conftest.$ac_objext
5816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817  (eval $ac_compile) 2>conftest.er1
5818  ac_status=$?
5819  grep -v '^ *+' conftest.er1 >conftest.err
5820  rm -f conftest.er1
5821  cat conftest.err >&5
5822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823  (exit $ac_status); } &&
5824	 { ac_try='test -z "$ac_c_werror_flag"
5825			 || test ! -s conftest.err'
5826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827  (eval $ac_try) 2>&5
5828  ac_status=$?
5829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830  (exit $ac_status); }; } &&
5831	 { ac_try='test -s conftest.$ac_objext'
5832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833  (eval $ac_try) 2>&5
5834  ac_status=$?
5835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836  (exit $ac_status); }; }; then
5837  ac_hi=$ac_mid
5838else
5839  echo "$as_me: failed program was:" >&5
5840sed 's/^/| /' conftest.$ac_ext >&5
5841
5842ac_lo=`expr '(' $ac_mid ')' + 1`
5843fi
5844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845done
5846case $ac_lo in
5847?*) ac_cv_sizeof_short_int=$ac_lo;;
5848'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
5849See \`config.log' for more details." >&5
5850echo "$as_me: error: cannot compute sizeof (short int), 77
5851See \`config.log' for more details." >&2;}
5852   { (exit 1); exit 1; }; } ;;
5853esac
5854else
5855  if test "$cross_compiling" = yes; then
5856  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5857See \`config.log' for more details." >&5
5858echo "$as_me: error: cannot run test program while cross compiling
5859See \`config.log' for more details." >&2;}
5860   { (exit 1); exit 1; }; }
5861else
5862  cat >conftest.$ac_ext <<_ACEOF
5863/* confdefs.h.  */
5864_ACEOF
5865cat confdefs.h >>conftest.$ac_ext
5866cat >>conftest.$ac_ext <<_ACEOF
5867/* end confdefs.h.  */
5868$ac_includes_default
5869long longval () { return (long) (sizeof (short int)); }
5870unsigned long ulongval () { return (long) (sizeof (short int)); }
5871#include <stdio.h>
5872#include <stdlib.h>
5873int
5874main ()
5875{
5876
5877  FILE *f = fopen ("conftest.val", "w");
5878  if (! f)
5879    exit (1);
5880  if (((long) (sizeof (short int))) < 0)
5881    {
5882      long i = longval ();
5883      if (i != ((long) (sizeof (short int))))
5884	exit (1);
5885      fprintf (f, "%ld\n", i);
5886    }
5887  else
5888    {
5889      unsigned long i = ulongval ();
5890      if (i != ((long) (sizeof (short int))))
5891	exit (1);
5892      fprintf (f, "%lu\n", i);
5893    }
5894  exit (ferror (f) || fclose (f) != 0);
5895
5896  ;
5897  return 0;
5898}
5899_ACEOF
5900rm -f conftest$ac_exeext
5901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5902  (eval $ac_link) 2>&5
5903  ac_status=$?
5904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907  (eval $ac_try) 2>&5
5908  ac_status=$?
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); }; }; then
5911  ac_cv_sizeof_short_int=`cat conftest.val`
5912else
5913  echo "$as_me: program exited with status $ac_status" >&5
5914echo "$as_me: failed program was:" >&5
5915sed 's/^/| /' conftest.$ac_ext >&5
5916
5917( exit $ac_status )
5918{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
5919See \`config.log' for more details." >&5
5920echo "$as_me: error: cannot compute sizeof (short int), 77
5921See \`config.log' for more details." >&2;}
5922   { (exit 1); exit 1; }; }
5923fi
5924rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5925fi
5926fi
5927rm -f conftest.val
5928else
5929  ac_cv_sizeof_short_int=0
5930fi
5931fi
5932echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
5933echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
5934cat >>confdefs.h <<_ACEOF
5935#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
5936_ACEOF
5937
5938
5939echo "$as_me:$LINENO: checking for int" >&5
5940echo $ECHO_N "checking for int... $ECHO_C" >&6
5941if test "${ac_cv_type_int+set}" = set; then
5942  echo $ECHO_N "(cached) $ECHO_C" >&6
5943else
5944  cat >conftest.$ac_ext <<_ACEOF
5945/* confdefs.h.  */
5946_ACEOF
5947cat confdefs.h >>conftest.$ac_ext
5948cat >>conftest.$ac_ext <<_ACEOF
5949/* end confdefs.h.  */
5950$ac_includes_default
5951int
5952main ()
5953{
5954if ((int *) 0)
5955  return 0;
5956if (sizeof (int))
5957  return 0;
5958  ;
5959  return 0;
5960}
5961_ACEOF
5962rm -f conftest.$ac_objext
5963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964  (eval $ac_compile) 2>conftest.er1
5965  ac_status=$?
5966  grep -v '^ *+' conftest.er1 >conftest.err
5967  rm -f conftest.er1
5968  cat conftest.err >&5
5969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970  (exit $ac_status); } &&
5971	 { ac_try='test -z "$ac_c_werror_flag"
5972			 || test ! -s conftest.err'
5973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974  (eval $ac_try) 2>&5
5975  ac_status=$?
5976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977  (exit $ac_status); }; } &&
5978	 { ac_try='test -s conftest.$ac_objext'
5979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980  (eval $ac_try) 2>&5
5981  ac_status=$?
5982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983  (exit $ac_status); }; }; then
5984  ac_cv_type_int=yes
5985else
5986  echo "$as_me: failed program was:" >&5
5987sed 's/^/| /' conftest.$ac_ext >&5
5988
5989ac_cv_type_int=no
5990fi
5991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992fi
5993echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5994echo "${ECHO_T}$ac_cv_type_int" >&6
5995
5996echo "$as_me:$LINENO: checking size of int" >&5
5997echo $ECHO_N "checking size of int... $ECHO_C" >&6
5998if test "${ac_cv_sizeof_int+set}" = set; then
5999  echo $ECHO_N "(cached) $ECHO_C" >&6
6000else
6001  if test "$ac_cv_type_int" = yes; then
6002  # The cast to unsigned long works around a bug in the HP C Compiler
6003  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6004  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6005  # This bug is HP SR number 8606223364.
6006  if test "$cross_compiling" = yes; then
6007  # Depending upon the size, compute the lo and hi bounds.
6008cat >conftest.$ac_ext <<_ACEOF
6009/* confdefs.h.  */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h.  */
6014$ac_includes_default
6015int
6016main ()
6017{
6018static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6019test_array [0] = 0
6020
6021  ;
6022  return 0;
6023}
6024_ACEOF
6025rm -f conftest.$ac_objext
6026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027  (eval $ac_compile) 2>conftest.er1
6028  ac_status=$?
6029  grep -v '^ *+' conftest.er1 >conftest.err
6030  rm -f conftest.er1
6031  cat conftest.err >&5
6032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033  (exit $ac_status); } &&
6034	 { ac_try='test -z "$ac_c_werror_flag"
6035			 || test ! -s conftest.err'
6036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037  (eval $ac_try) 2>&5
6038  ac_status=$?
6039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040  (exit $ac_status); }; } &&
6041	 { ac_try='test -s conftest.$ac_objext'
6042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043  (eval $ac_try) 2>&5
6044  ac_status=$?
6045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046  (exit $ac_status); }; }; then
6047  ac_lo=0 ac_mid=0
6048  while :; do
6049    cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h.  */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h.  */
6055$ac_includes_default
6056int
6057main ()
6058{
6059static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6060test_array [0] = 0
6061
6062  ;
6063  return 0;
6064}
6065_ACEOF
6066rm -f conftest.$ac_objext
6067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068  (eval $ac_compile) 2>conftest.er1
6069  ac_status=$?
6070  grep -v '^ *+' conftest.er1 >conftest.err
6071  rm -f conftest.er1
6072  cat conftest.err >&5
6073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074  (exit $ac_status); } &&
6075	 { ac_try='test -z "$ac_c_werror_flag"
6076			 || test ! -s conftest.err'
6077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078  (eval $ac_try) 2>&5
6079  ac_status=$?
6080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081  (exit $ac_status); }; } &&
6082	 { ac_try='test -s conftest.$ac_objext'
6083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084  (eval $ac_try) 2>&5
6085  ac_status=$?
6086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087  (exit $ac_status); }; }; then
6088  ac_hi=$ac_mid; break
6089else
6090  echo "$as_me: failed program was:" >&5
6091sed 's/^/| /' conftest.$ac_ext >&5
6092
6093ac_lo=`expr $ac_mid + 1`
6094		    if test $ac_lo -le $ac_mid; then
6095		      ac_lo= ac_hi=
6096		      break
6097		    fi
6098		    ac_mid=`expr 2 '*' $ac_mid + 1`
6099fi
6100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6101  done
6102else
6103  echo "$as_me: failed program was:" >&5
6104sed 's/^/| /' conftest.$ac_ext >&5
6105
6106cat >conftest.$ac_ext <<_ACEOF
6107/* confdefs.h.  */
6108_ACEOF
6109cat confdefs.h >>conftest.$ac_ext
6110cat >>conftest.$ac_ext <<_ACEOF
6111/* end confdefs.h.  */
6112$ac_includes_default
6113int
6114main ()
6115{
6116static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6117test_array [0] = 0
6118
6119  ;
6120  return 0;
6121}
6122_ACEOF
6123rm -f conftest.$ac_objext
6124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125  (eval $ac_compile) 2>conftest.er1
6126  ac_status=$?
6127  grep -v '^ *+' conftest.er1 >conftest.err
6128  rm -f conftest.er1
6129  cat conftest.err >&5
6130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131  (exit $ac_status); } &&
6132	 { ac_try='test -z "$ac_c_werror_flag"
6133			 || test ! -s conftest.err'
6134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135  (eval $ac_try) 2>&5
6136  ac_status=$?
6137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138  (exit $ac_status); }; } &&
6139	 { ac_try='test -s conftest.$ac_objext'
6140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141  (eval $ac_try) 2>&5
6142  ac_status=$?
6143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144  (exit $ac_status); }; }; then
6145  ac_hi=-1 ac_mid=-1
6146  while :; do
6147    cat >conftest.$ac_ext <<_ACEOF
6148/* confdefs.h.  */
6149_ACEOF
6150cat confdefs.h >>conftest.$ac_ext
6151cat >>conftest.$ac_ext <<_ACEOF
6152/* end confdefs.h.  */
6153$ac_includes_default
6154int
6155main ()
6156{
6157static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6158test_array [0] = 0
6159
6160  ;
6161  return 0;
6162}
6163_ACEOF
6164rm -f conftest.$ac_objext
6165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166  (eval $ac_compile) 2>conftest.er1
6167  ac_status=$?
6168  grep -v '^ *+' conftest.er1 >conftest.err
6169  rm -f conftest.er1
6170  cat conftest.err >&5
6171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172  (exit $ac_status); } &&
6173	 { ac_try='test -z "$ac_c_werror_flag"
6174			 || test ! -s conftest.err'
6175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176  (eval $ac_try) 2>&5
6177  ac_status=$?
6178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179  (exit $ac_status); }; } &&
6180	 { ac_try='test -s conftest.$ac_objext'
6181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182  (eval $ac_try) 2>&5
6183  ac_status=$?
6184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185  (exit $ac_status); }; }; then
6186  ac_lo=$ac_mid; break
6187else
6188  echo "$as_me: failed program was:" >&5
6189sed 's/^/| /' conftest.$ac_ext >&5
6190
6191ac_hi=`expr '(' $ac_mid ')' - 1`
6192		       if test $ac_mid -le $ac_hi; then
6193			 ac_lo= ac_hi=
6194			 break
6195		       fi
6196		       ac_mid=`expr 2 '*' $ac_mid`
6197fi
6198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6199  done
6200else
6201  echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204ac_lo= ac_hi=
6205fi
6206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207fi
6208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6209# Binary search between lo and hi bounds.
6210while test "x$ac_lo" != "x$ac_hi"; do
6211  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6212  cat >conftest.$ac_ext <<_ACEOF
6213/* confdefs.h.  */
6214_ACEOF
6215cat confdefs.h >>conftest.$ac_ext
6216cat >>conftest.$ac_ext <<_ACEOF
6217/* end confdefs.h.  */
6218$ac_includes_default
6219int
6220main ()
6221{
6222static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6223test_array [0] = 0
6224
6225  ;
6226  return 0;
6227}
6228_ACEOF
6229rm -f conftest.$ac_objext
6230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231  (eval $ac_compile) 2>conftest.er1
6232  ac_status=$?
6233  grep -v '^ *+' conftest.er1 >conftest.err
6234  rm -f conftest.er1
6235  cat conftest.err >&5
6236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237  (exit $ac_status); } &&
6238	 { ac_try='test -z "$ac_c_werror_flag"
6239			 || test ! -s conftest.err'
6240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241  (eval $ac_try) 2>&5
6242  ac_status=$?
6243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244  (exit $ac_status); }; } &&
6245	 { ac_try='test -s conftest.$ac_objext'
6246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247  (eval $ac_try) 2>&5
6248  ac_status=$?
6249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); }; }; then
6251  ac_hi=$ac_mid
6252else
6253  echo "$as_me: failed program was:" >&5
6254sed 's/^/| /' conftest.$ac_ext >&5
6255
6256ac_lo=`expr '(' $ac_mid ')' + 1`
6257fi
6258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259done
6260case $ac_lo in
6261?*) ac_cv_sizeof_int=$ac_lo;;
6262'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6263See \`config.log' for more details." >&5
6264echo "$as_me: error: cannot compute sizeof (int), 77
6265See \`config.log' for more details." >&2;}
6266   { (exit 1); exit 1; }; } ;;
6267esac
6268else
6269  if test "$cross_compiling" = yes; then
6270  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6271See \`config.log' for more details." >&5
6272echo "$as_me: error: cannot run test program while cross compiling
6273See \`config.log' for more details." >&2;}
6274   { (exit 1); exit 1; }; }
6275else
6276  cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h.  */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h.  */
6282$ac_includes_default
6283long longval () { return (long) (sizeof (int)); }
6284unsigned long ulongval () { return (long) (sizeof (int)); }
6285#include <stdio.h>
6286#include <stdlib.h>
6287int
6288main ()
6289{
6290
6291  FILE *f = fopen ("conftest.val", "w");
6292  if (! f)
6293    exit (1);
6294  if (((long) (sizeof (int))) < 0)
6295    {
6296      long i = longval ();
6297      if (i != ((long) (sizeof (int))))
6298	exit (1);
6299      fprintf (f, "%ld\n", i);
6300    }
6301  else
6302    {
6303      unsigned long i = ulongval ();
6304      if (i != ((long) (sizeof (int))))
6305	exit (1);
6306      fprintf (f, "%lu\n", i);
6307    }
6308  exit (ferror (f) || fclose (f) != 0);
6309
6310  ;
6311  return 0;
6312}
6313_ACEOF
6314rm -f conftest$ac_exeext
6315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316  (eval $ac_link) 2>&5
6317  ac_status=$?
6318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_int=`cat conftest.val`
6326else
6327  echo "$as_me: program exited with status $ac_status" >&5
6328echo "$as_me: failed program was:" >&5
6329sed 's/^/| /' conftest.$ac_ext >&5
6330
6331( exit $ac_status )
6332{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6333See \`config.log' for more details." >&5
6334echo "$as_me: error: cannot compute sizeof (int), 77
6335See \`config.log' for more details." >&2;}
6336   { (exit 1); exit 1; }; }
6337fi
6338rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6339fi
6340fi
6341rm -f conftest.val
6342else
6343  ac_cv_sizeof_int=0
6344fi
6345fi
6346echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6347echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6348cat >>confdefs.h <<_ACEOF
6349#define SIZEOF_INT $ac_cv_sizeof_int
6350_ACEOF
6351
6352
6353echo "$as_me:$LINENO: checking for long int" >&5
6354echo $ECHO_N "checking for long int... $ECHO_C" >&6
6355if test "${ac_cv_type_long_int+set}" = set; then
6356  echo $ECHO_N "(cached) $ECHO_C" >&6
6357else
6358  cat >conftest.$ac_ext <<_ACEOF
6359/* confdefs.h.  */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h.  */
6364$ac_includes_default
6365int
6366main ()
6367{
6368if ((long int *) 0)
6369  return 0;
6370if (sizeof (long int))
6371  return 0;
6372  ;
6373  return 0;
6374}
6375_ACEOF
6376rm -f conftest.$ac_objext
6377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378  (eval $ac_compile) 2>conftest.er1
6379  ac_status=$?
6380  grep -v '^ *+' conftest.er1 >conftest.err
6381  rm -f conftest.er1
6382  cat conftest.err >&5
6383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384  (exit $ac_status); } &&
6385	 { ac_try='test -z "$ac_c_werror_flag"
6386			 || test ! -s conftest.err'
6387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388  (eval $ac_try) 2>&5
6389  ac_status=$?
6390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391  (exit $ac_status); }; } &&
6392	 { ac_try='test -s conftest.$ac_objext'
6393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394  (eval $ac_try) 2>&5
6395  ac_status=$?
6396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397  (exit $ac_status); }; }; then
6398  ac_cv_type_long_int=yes
6399else
6400  echo "$as_me: failed program was:" >&5
6401sed 's/^/| /' conftest.$ac_ext >&5
6402
6403ac_cv_type_long_int=no
6404fi
6405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6406fi
6407echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
6408echo "${ECHO_T}$ac_cv_type_long_int" >&6
6409
6410echo "$as_me:$LINENO: checking size of long int" >&5
6411echo $ECHO_N "checking size of long int... $ECHO_C" >&6
6412if test "${ac_cv_sizeof_long_int+set}" = set; then
6413  echo $ECHO_N "(cached) $ECHO_C" >&6
6414else
6415  if test "$ac_cv_type_long_int" = yes; then
6416  # The cast to unsigned long works around a bug in the HP C Compiler
6417  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6418  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6419  # This bug is HP SR number 8606223364.
6420  if test "$cross_compiling" = yes; then
6421  # Depending upon the size, compute the lo and hi bounds.
6422cat >conftest.$ac_ext <<_ACEOF
6423/* confdefs.h.  */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h.  */
6428$ac_includes_default
6429int
6430main ()
6431{
6432static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
6433test_array [0] = 0
6434
6435  ;
6436  return 0;
6437}
6438_ACEOF
6439rm -f conftest.$ac_objext
6440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441  (eval $ac_compile) 2>conftest.er1
6442  ac_status=$?
6443  grep -v '^ *+' conftest.er1 >conftest.err
6444  rm -f conftest.er1
6445  cat conftest.err >&5
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); } &&
6448	 { ac_try='test -z "$ac_c_werror_flag"
6449			 || 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=0 ac_mid=0
6462  while :; do
6463    cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h.  */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h.  */
6469$ac_includes_default
6470int
6471main ()
6472{
6473static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
6474test_array [0] = 0
6475
6476  ;
6477  return 0;
6478}
6479_ACEOF
6480rm -f conftest.$ac_objext
6481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482  (eval $ac_compile) 2>conftest.er1
6483  ac_status=$?
6484  grep -v '^ *+' conftest.er1 >conftest.err
6485  rm -f conftest.er1
6486  cat conftest.err >&5
6487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488  (exit $ac_status); } &&
6489	 { ac_try='test -z "$ac_c_werror_flag"
6490			 || test ! -s conftest.err'
6491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492  (eval $ac_try) 2>&5
6493  ac_status=$?
6494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495  (exit $ac_status); }; } &&
6496	 { ac_try='test -s conftest.$ac_objext'
6497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498  (eval $ac_try) 2>&5
6499  ac_status=$?
6500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501  (exit $ac_status); }; }; then
6502  ac_hi=$ac_mid; break
6503else
6504  echo "$as_me: failed program was:" >&5
6505sed 's/^/| /' conftest.$ac_ext >&5
6506
6507ac_lo=`expr $ac_mid + 1`
6508		    if test $ac_lo -le $ac_mid; then
6509		      ac_lo= ac_hi=
6510		      break
6511		    fi
6512		    ac_mid=`expr 2 '*' $ac_mid + 1`
6513fi
6514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6515  done
6516else
6517  echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
6519
6520cat >conftest.$ac_ext <<_ACEOF
6521/* confdefs.h.  */
6522_ACEOF
6523cat confdefs.h >>conftest.$ac_ext
6524cat >>conftest.$ac_ext <<_ACEOF
6525/* end confdefs.h.  */
6526$ac_includes_default
6527int
6528main ()
6529{
6530static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
6531test_array [0] = 0
6532
6533  ;
6534  return 0;
6535}
6536_ACEOF
6537rm -f conftest.$ac_objext
6538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539  (eval $ac_compile) 2>conftest.er1
6540  ac_status=$?
6541  grep -v '^ *+' conftest.er1 >conftest.err
6542  rm -f conftest.er1
6543  cat conftest.err >&5
6544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545  (exit $ac_status); } &&
6546	 { ac_try='test -z "$ac_c_werror_flag"
6547			 || test ! -s conftest.err'
6548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549  (eval $ac_try) 2>&5
6550  ac_status=$?
6551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552  (exit $ac_status); }; } &&
6553	 { ac_try='test -s conftest.$ac_objext'
6554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555  (eval $ac_try) 2>&5
6556  ac_status=$?
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); }; }; then
6559  ac_hi=-1 ac_mid=-1
6560  while :; do
6561    cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h.  */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h.  */
6567$ac_includes_default
6568int
6569main ()
6570{
6571static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
6572test_array [0] = 0
6573
6574  ;
6575  return 0;
6576}
6577_ACEOF
6578rm -f conftest.$ac_objext
6579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580  (eval $ac_compile) 2>conftest.er1
6581  ac_status=$?
6582  grep -v '^ *+' conftest.er1 >conftest.err
6583  rm -f conftest.er1
6584  cat conftest.err >&5
6585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586  (exit $ac_status); } &&
6587	 { ac_try='test -z "$ac_c_werror_flag"
6588			 || test ! -s conftest.err'
6589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590  (eval $ac_try) 2>&5
6591  ac_status=$?
6592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593  (exit $ac_status); }; } &&
6594	 { ac_try='test -s conftest.$ac_objext'
6595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596  (eval $ac_try) 2>&5
6597  ac_status=$?
6598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599  (exit $ac_status); }; }; then
6600  ac_lo=$ac_mid; break
6601else
6602  echo "$as_me: failed program was:" >&5
6603sed 's/^/| /' conftest.$ac_ext >&5
6604
6605ac_hi=`expr '(' $ac_mid ')' - 1`
6606		       if test $ac_mid -le $ac_hi; then
6607			 ac_lo= ac_hi=
6608			 break
6609		       fi
6610		       ac_mid=`expr 2 '*' $ac_mid`
6611fi
6612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6613  done
6614else
6615  echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618ac_lo= ac_hi=
6619fi
6620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621fi
6622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623# Binary search between lo and hi bounds.
6624while test "x$ac_lo" != "x$ac_hi"; do
6625  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6626  cat >conftest.$ac_ext <<_ACEOF
6627/* confdefs.h.  */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
6631/* end confdefs.h.  */
6632$ac_includes_default
6633int
6634main ()
6635{
6636static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
6637test_array [0] = 0
6638
6639  ;
6640  return 0;
6641}
6642_ACEOF
6643rm -f conftest.$ac_objext
6644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645  (eval $ac_compile) 2>conftest.er1
6646  ac_status=$?
6647  grep -v '^ *+' conftest.er1 >conftest.err
6648  rm -f conftest.er1
6649  cat conftest.err >&5
6650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651  (exit $ac_status); } &&
6652	 { ac_try='test -z "$ac_c_werror_flag"
6653			 || test ! -s conftest.err'
6654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655  (eval $ac_try) 2>&5
6656  ac_status=$?
6657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658  (exit $ac_status); }; } &&
6659	 { ac_try='test -s conftest.$ac_objext'
6660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661  (eval $ac_try) 2>&5
6662  ac_status=$?
6663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664  (exit $ac_status); }; }; then
6665  ac_hi=$ac_mid
6666else
6667  echo "$as_me: failed program was:" >&5
6668sed 's/^/| /' conftest.$ac_ext >&5
6669
6670ac_lo=`expr '(' $ac_mid ')' + 1`
6671fi
6672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6673done
6674case $ac_lo in
6675?*) ac_cv_sizeof_long_int=$ac_lo;;
6676'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
6677See \`config.log' for more details." >&5
6678echo "$as_me: error: cannot compute sizeof (long int), 77
6679See \`config.log' for more details." >&2;}
6680   { (exit 1); exit 1; }; } ;;
6681esac
6682else
6683  if test "$cross_compiling" = yes; then
6684  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6685See \`config.log' for more details." >&5
6686echo "$as_me: error: cannot run test program while cross compiling
6687See \`config.log' for more details." >&2;}
6688   { (exit 1); exit 1; }; }
6689else
6690  cat >conftest.$ac_ext <<_ACEOF
6691/* confdefs.h.  */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h.  */
6696$ac_includes_default
6697long longval () { return (long) (sizeof (long int)); }
6698unsigned long ulongval () { return (long) (sizeof (long int)); }
6699#include <stdio.h>
6700#include <stdlib.h>
6701int
6702main ()
6703{
6704
6705  FILE *f = fopen ("conftest.val", "w");
6706  if (! f)
6707    exit (1);
6708  if (((long) (sizeof (long int))) < 0)
6709    {
6710      long i = longval ();
6711      if (i != ((long) (sizeof (long int))))
6712	exit (1);
6713      fprintf (f, "%ld\n", i);
6714    }
6715  else
6716    {
6717      unsigned long i = ulongval ();
6718      if (i != ((long) (sizeof (long int))))
6719	exit (1);
6720      fprintf (f, "%lu\n", i);
6721    }
6722  exit (ferror (f) || fclose (f) != 0);
6723
6724  ;
6725  return 0;
6726}
6727_ACEOF
6728rm -f conftest$ac_exeext
6729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6730  (eval $ac_link) 2>&5
6731  ac_status=$?
6732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735  (eval $ac_try) 2>&5
6736  ac_status=$?
6737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738  (exit $ac_status); }; }; then
6739  ac_cv_sizeof_long_int=`cat conftest.val`
6740else
6741  echo "$as_me: program exited with status $ac_status" >&5
6742echo "$as_me: failed program was:" >&5
6743sed 's/^/| /' conftest.$ac_ext >&5
6744
6745( exit $ac_status )
6746{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
6747See \`config.log' for more details." >&5
6748echo "$as_me: error: cannot compute sizeof (long int), 77
6749See \`config.log' for more details." >&2;}
6750   { (exit 1); exit 1; }; }
6751fi
6752rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6753fi
6754fi
6755rm -f conftest.val
6756else
6757  ac_cv_sizeof_long_int=0
6758fi
6759fi
6760echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
6761echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
6762cat >>confdefs.h <<_ACEOF
6763#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
6764_ACEOF
6765
6766
6767echo "$as_me:$LINENO: checking for long long int" >&5
6768echo $ECHO_N "checking for long long int... $ECHO_C" >&6
6769if test "${ac_cv_type_long_long_int+set}" = set; then
6770  echo $ECHO_N "(cached) $ECHO_C" >&6
6771else
6772  cat >conftest.$ac_ext <<_ACEOF
6773/* confdefs.h.  */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h.  */
6778$ac_includes_default
6779int
6780main ()
6781{
6782if ((long long int *) 0)
6783  return 0;
6784if (sizeof (long long int))
6785  return 0;
6786  ;
6787  return 0;
6788}
6789_ACEOF
6790rm -f conftest.$ac_objext
6791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6792  (eval $ac_compile) 2>conftest.er1
6793  ac_status=$?
6794  grep -v '^ *+' conftest.er1 >conftest.err
6795  rm -f conftest.er1
6796  cat conftest.err >&5
6797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798  (exit $ac_status); } &&
6799	 { ac_try='test -z "$ac_c_werror_flag"
6800			 || test ! -s conftest.err'
6801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802  (eval $ac_try) 2>&5
6803  ac_status=$?
6804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805  (exit $ac_status); }; } &&
6806	 { ac_try='test -s conftest.$ac_objext'
6807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808  (eval $ac_try) 2>&5
6809  ac_status=$?
6810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811  (exit $ac_status); }; }; then
6812  ac_cv_type_long_long_int=yes
6813else
6814  echo "$as_me: failed program was:" >&5
6815sed 's/^/| /' conftest.$ac_ext >&5
6816
6817ac_cv_type_long_long_int=no
6818fi
6819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6820fi
6821echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
6822echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
6823
6824echo "$as_me:$LINENO: checking size of long long int" >&5
6825echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
6826if test "${ac_cv_sizeof_long_long_int+set}" = set; then
6827  echo $ECHO_N "(cached) $ECHO_C" >&6
6828else
6829  if test "$ac_cv_type_long_long_int" = yes; then
6830  # The cast to unsigned long works around a bug in the HP C Compiler
6831  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6832  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6833  # This bug is HP SR number 8606223364.
6834  if test "$cross_compiling" = yes; then
6835  # Depending upon the size, compute the lo and hi bounds.
6836cat >conftest.$ac_ext <<_ACEOF
6837/* confdefs.h.  */
6838_ACEOF
6839cat confdefs.h >>conftest.$ac_ext
6840cat >>conftest.$ac_ext <<_ACEOF
6841/* end confdefs.h.  */
6842$ac_includes_default
6843int
6844main ()
6845{
6846static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
6847test_array [0] = 0
6848
6849  ;
6850  return 0;
6851}
6852_ACEOF
6853rm -f conftest.$ac_objext
6854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855  (eval $ac_compile) 2>conftest.er1
6856  ac_status=$?
6857  grep -v '^ *+' conftest.er1 >conftest.err
6858  rm -f conftest.er1
6859  cat conftest.err >&5
6860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861  (exit $ac_status); } &&
6862	 { ac_try='test -z "$ac_c_werror_flag"
6863			 || test ! -s conftest.err'
6864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865  (eval $ac_try) 2>&5
6866  ac_status=$?
6867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868  (exit $ac_status); }; } &&
6869	 { ac_try='test -s conftest.$ac_objext'
6870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871  (eval $ac_try) 2>&5
6872  ac_status=$?
6873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874  (exit $ac_status); }; }; then
6875  ac_lo=0 ac_mid=0
6876  while :; do
6877    cat >conftest.$ac_ext <<_ACEOF
6878/* confdefs.h.  */
6879_ACEOF
6880cat confdefs.h >>conftest.$ac_ext
6881cat >>conftest.$ac_ext <<_ACEOF
6882/* end confdefs.h.  */
6883$ac_includes_default
6884int
6885main ()
6886{
6887static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
6888test_array [0] = 0
6889
6890  ;
6891  return 0;
6892}
6893_ACEOF
6894rm -f conftest.$ac_objext
6895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896  (eval $ac_compile) 2>conftest.er1
6897  ac_status=$?
6898  grep -v '^ *+' conftest.er1 >conftest.err
6899  rm -f conftest.er1
6900  cat conftest.err >&5
6901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902  (exit $ac_status); } &&
6903	 { ac_try='test -z "$ac_c_werror_flag"
6904			 || test ! -s conftest.err'
6905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906  (eval $ac_try) 2>&5
6907  ac_status=$?
6908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909  (exit $ac_status); }; } &&
6910	 { ac_try='test -s conftest.$ac_objext'
6911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912  (eval $ac_try) 2>&5
6913  ac_status=$?
6914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915  (exit $ac_status); }; }; then
6916  ac_hi=$ac_mid; break
6917else
6918  echo "$as_me: failed program was:" >&5
6919sed 's/^/| /' conftest.$ac_ext >&5
6920
6921ac_lo=`expr $ac_mid + 1`
6922		    if test $ac_lo -le $ac_mid; then
6923		      ac_lo= ac_hi=
6924		      break
6925		    fi
6926		    ac_mid=`expr 2 '*' $ac_mid + 1`
6927fi
6928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6929  done
6930else
6931  echo "$as_me: failed program was:" >&5
6932sed 's/^/| /' conftest.$ac_ext >&5
6933
6934cat >conftest.$ac_ext <<_ACEOF
6935/* confdefs.h.  */
6936_ACEOF
6937cat confdefs.h >>conftest.$ac_ext
6938cat >>conftest.$ac_ext <<_ACEOF
6939/* end confdefs.h.  */
6940$ac_includes_default
6941int
6942main ()
6943{
6944static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
6945test_array [0] = 0
6946
6947  ;
6948  return 0;
6949}
6950_ACEOF
6951rm -f conftest.$ac_objext
6952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6953  (eval $ac_compile) 2>conftest.er1
6954  ac_status=$?
6955  grep -v '^ *+' conftest.er1 >conftest.err
6956  rm -f conftest.er1
6957  cat conftest.err >&5
6958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959  (exit $ac_status); } &&
6960	 { ac_try='test -z "$ac_c_werror_flag"
6961			 || test ! -s conftest.err'
6962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963  (eval $ac_try) 2>&5
6964  ac_status=$?
6965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966  (exit $ac_status); }; } &&
6967	 { ac_try='test -s conftest.$ac_objext'
6968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969  (eval $ac_try) 2>&5
6970  ac_status=$?
6971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972  (exit $ac_status); }; }; then
6973  ac_hi=-1 ac_mid=-1
6974  while :; do
6975    cat >conftest.$ac_ext <<_ACEOF
6976/* confdefs.h.  */
6977_ACEOF
6978cat confdefs.h >>conftest.$ac_ext
6979cat >>conftest.$ac_ext <<_ACEOF
6980/* end confdefs.h.  */
6981$ac_includes_default
6982int
6983main ()
6984{
6985static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
6986test_array [0] = 0
6987
6988  ;
6989  return 0;
6990}
6991_ACEOF
6992rm -f conftest.$ac_objext
6993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6994  (eval $ac_compile) 2>conftest.er1
6995  ac_status=$?
6996  grep -v '^ *+' conftest.er1 >conftest.err
6997  rm -f conftest.er1
6998  cat conftest.err >&5
6999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000  (exit $ac_status); } &&
7001	 { ac_try='test -z "$ac_c_werror_flag"
7002			 || test ! -s conftest.err'
7003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004  (eval $ac_try) 2>&5
7005  ac_status=$?
7006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007  (exit $ac_status); }; } &&
7008	 { ac_try='test -s conftest.$ac_objext'
7009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010  (eval $ac_try) 2>&5
7011  ac_status=$?
7012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013  (exit $ac_status); }; }; then
7014  ac_lo=$ac_mid; break
7015else
7016  echo "$as_me: failed program was:" >&5
7017sed 's/^/| /' conftest.$ac_ext >&5
7018
7019ac_hi=`expr '(' $ac_mid ')' - 1`
7020		       if test $ac_mid -le $ac_hi; then
7021			 ac_lo= ac_hi=
7022			 break
7023		       fi
7024		       ac_mid=`expr 2 '*' $ac_mid`
7025fi
7026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7027  done
7028else
7029  echo "$as_me: failed program was:" >&5
7030sed 's/^/| /' conftest.$ac_ext >&5
7031
7032ac_lo= ac_hi=
7033fi
7034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7035fi
7036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7037# Binary search between lo and hi bounds.
7038while test "x$ac_lo" != "x$ac_hi"; do
7039  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7040  cat >conftest.$ac_ext <<_ACEOF
7041/* confdefs.h.  */
7042_ACEOF
7043cat confdefs.h >>conftest.$ac_ext
7044cat >>conftest.$ac_ext <<_ACEOF
7045/* end confdefs.h.  */
7046$ac_includes_default
7047int
7048main ()
7049{
7050static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
7051test_array [0] = 0
7052
7053  ;
7054  return 0;
7055}
7056_ACEOF
7057rm -f conftest.$ac_objext
7058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059  (eval $ac_compile) 2>conftest.er1
7060  ac_status=$?
7061  grep -v '^ *+' conftest.er1 >conftest.err
7062  rm -f conftest.er1
7063  cat conftest.err >&5
7064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065  (exit $ac_status); } &&
7066	 { ac_try='test -z "$ac_c_werror_flag"
7067			 || test ! -s conftest.err'
7068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069  (eval $ac_try) 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; } &&
7073	 { ac_try='test -s conftest.$ac_objext'
7074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075  (eval $ac_try) 2>&5
7076  ac_status=$?
7077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078  (exit $ac_status); }; }; then
7079  ac_hi=$ac_mid
7080else
7081  echo "$as_me: failed program was:" >&5
7082sed 's/^/| /' conftest.$ac_ext >&5
7083
7084ac_lo=`expr '(' $ac_mid ')' + 1`
7085fi
7086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7087done
7088case $ac_lo in
7089?*) ac_cv_sizeof_long_long_int=$ac_lo;;
7090'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
7091See \`config.log' for more details." >&5
7092echo "$as_me: error: cannot compute sizeof (long long int), 77
7093See \`config.log' for more details." >&2;}
7094   { (exit 1); exit 1; }; } ;;
7095esac
7096else
7097  if test "$cross_compiling" = yes; then
7098  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7099See \`config.log' for more details." >&5
7100echo "$as_me: error: cannot run test program while cross compiling
7101See \`config.log' for more details." >&2;}
7102   { (exit 1); exit 1; }; }
7103else
7104  cat >conftest.$ac_ext <<_ACEOF
7105/* confdefs.h.  */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h.  */
7110$ac_includes_default
7111long longval () { return (long) (sizeof (long long int)); }
7112unsigned long ulongval () { return (long) (sizeof (long long int)); }
7113#include <stdio.h>
7114#include <stdlib.h>
7115int
7116main ()
7117{
7118
7119  FILE *f = fopen ("conftest.val", "w");
7120  if (! f)
7121    exit (1);
7122  if (((long) (sizeof (long long int))) < 0)
7123    {
7124      long i = longval ();
7125      if (i != ((long) (sizeof (long long int))))
7126	exit (1);
7127      fprintf (f, "%ld\n", i);
7128    }
7129  else
7130    {
7131      unsigned long i = ulongval ();
7132      if (i != ((long) (sizeof (long long int))))
7133	exit (1);
7134      fprintf (f, "%lu\n", i);
7135    }
7136  exit (ferror (f) || fclose (f) != 0);
7137
7138  ;
7139  return 0;
7140}
7141_ACEOF
7142rm -f conftest$ac_exeext
7143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7144  (eval $ac_link) 2>&5
7145  ac_status=$?
7146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149  (eval $ac_try) 2>&5
7150  ac_status=$?
7151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152  (exit $ac_status); }; }; then
7153  ac_cv_sizeof_long_long_int=`cat conftest.val`
7154else
7155  echo "$as_me: program exited with status $ac_status" >&5
7156echo "$as_me: failed program was:" >&5
7157sed 's/^/| /' conftest.$ac_ext >&5
7158
7159( exit $ac_status )
7160{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
7161See \`config.log' for more details." >&5
7162echo "$as_me: error: cannot compute sizeof (long long int), 77
7163See \`config.log' for more details." >&2;}
7164   { (exit 1); exit 1; }; }
7165fi
7166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7167fi
7168fi
7169rm -f conftest.val
7170else
7171  ac_cv_sizeof_long_long_int=0
7172fi
7173fi
7174echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
7175echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
7176cat >>confdefs.h <<_ACEOF
7177#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
7178_ACEOF
7179
7180
7181
7182# More checks for data types
7183echo "$as_me:$LINENO: checking for windows arch" >&5
7184echo $ECHO_N "checking for windows arch... $ECHO_C" >&6
7185if test "${ac_cv_arch_win+set}" = set; then
7186  echo $ECHO_N "(cached) $ECHO_C" >&6
7187else
7188
7189	cat >conftest.$ac_ext <<_ACEOF
7190/* confdefs.h.  */
7191_ACEOF
7192cat confdefs.h >>conftest.$ac_ext
7193cat >>conftest.$ac_ext <<_ACEOF
7194/* end confdefs.h.  */
7195 #include <process.h>
7196int
7197main ()
7198{
7199 CRITICAL_SECTION mutex; InitializeCriticalSection(mutex);
7200  ;
7201  return 0;
7202}
7203_ACEOF
7204rm -f conftest.$ac_objext
7205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206  (eval $ac_compile) 2>conftest.er1
7207  ac_status=$?
7208  grep -v '^ *+' conftest.er1 >conftest.err
7209  rm -f conftest.er1
7210  cat conftest.err >&5
7211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212  (exit $ac_status); } &&
7213	 { ac_try='test -z "$ac_c_werror_flag"
7214			 || test ! -s conftest.err'
7215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216  (eval $ac_try) 2>&5
7217  ac_status=$?
7218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219  (exit $ac_status); }; } &&
7220	 { ac_try='test -s conftest.$ac_objext'
7221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222  (eval $ac_try) 2>&5
7223  ac_status=$?
7224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225  (exit $ac_status); }; }; then
7226   ac_cv_arch_win="yes"
7227else
7228  echo "$as_me: failed program was:" >&5
7229sed 's/^/| /' conftest.$ac_ext >&5
7230
7231 ac_cv_arch_win="no"
7232
7233fi
7234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7235
7236fi
7237echo "$as_me:$LINENO: result: $ac_cv_arch_win" >&5
7238echo "${ECHO_T}$ac_cv_arch_win" >&6
7239if test "x$ac_cv_arch_win" = "xyes" ; then
7240
7241cat >>confdefs.h <<\_ACEOF
7242#define ARCH_PC_WIN95 1
7243_ACEOF
7244
7245fi
7246
7247echo "$as_me:$LINENO: checking for struct timezone type" >&5
7248echo $ECHO_N "checking for struct timezone type... $ECHO_C" >&6
7249if test "${ac_cv_have_struct_timezone+set}" = set; then
7250  echo $ECHO_N "(cached) $ECHO_C" >&6
7251else
7252
7253	cat >conftest.$ac_ext <<_ACEOF
7254/* confdefs.h.  */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h.  */
7259 #include <time.h>
7260		  #include <sys/time.h>
7261		  #include <sys/types.h>
7262int
7263main ()
7264{
7265 struct timezone opt;
7266  ;
7267  return 0;
7268}
7269_ACEOF
7270rm -f conftest.$ac_objext
7271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7272  (eval $ac_compile) 2>conftest.er1
7273  ac_status=$?
7274  grep -v '^ *+' conftest.er1 >conftest.err
7275  rm -f conftest.er1
7276  cat conftest.err >&5
7277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278  (exit $ac_status); } &&
7279	 { ac_try='test -z "$ac_c_werror_flag"
7280			 || test ! -s conftest.err'
7281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282  (eval $ac_try) 2>&5
7283  ac_status=$?
7284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285  (exit $ac_status); }; } &&
7286	 { ac_try='test -s conftest.$ac_objext'
7287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288  (eval $ac_try) 2>&5
7289  ac_status=$?
7290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291  (exit $ac_status); }; }; then
7292   ac_cv_have_struct_timezone="yes"
7293else
7294  echo "$as_me: failed program was:" >&5
7295sed 's/^/| /' conftest.$ac_ext >&5
7296
7297 ac_cv_have_struct_timezone="no"
7298
7299fi
7300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7301
7302fi
7303echo "$as_me:$LINENO: result: $ac_cv_have_struct_timezone" >&5
7304echo "${ECHO_T}$ac_cv_have_struct_timezone" >&6
7305if test "x$ac_cv_have_struct_timezone" = "xyes" ; then
7306
7307cat >>confdefs.h <<\_ACEOF
7308#define HAVE_STRUCT_TIMEZONE 1
7309_ACEOF
7310
7311fi
7312
7313echo "$as_me:$LINENO: checking for struct sockopt_len_t type" >&5
7314echo $ECHO_N "checking for struct sockopt_len_t type... $ECHO_C" >&6
7315if test "${ac_cv_have_sockopt_len_t+set}" = set; then
7316  echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318
7319	cat >conftest.$ac_ext <<_ACEOF
7320/* confdefs.h.  */
7321_ACEOF
7322cat confdefs.h >>conftest.$ac_ext
7323cat >>conftest.$ac_ext <<_ACEOF
7324/* end confdefs.h.  */
7325 #include <sys/types.h>
7326		  #include <sys/socket.h>
7327int
7328main ()
7329{
7330 static sockopt_len_t opt; opt=0;
7331  ;
7332  return 0;
7333}
7334_ACEOF
7335rm -f conftest.$ac_objext
7336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337  (eval $ac_compile) 2>conftest.er1
7338  ac_status=$?
7339  grep -v '^ *+' conftest.er1 >conftest.err
7340  rm -f conftest.er1
7341  cat conftest.err >&5
7342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343  (exit $ac_status); } &&
7344	 { ac_try='test -z "$ac_c_werror_flag"
7345			 || test ! -s conftest.err'
7346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347  (eval $ac_try) 2>&5
7348  ac_status=$?
7349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350  (exit $ac_status); }; } &&
7351	 { ac_try='test -s conftest.$ac_objext'
7352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353  (eval $ac_try) 2>&5
7354  ac_status=$?
7355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356  (exit $ac_status); }; }; then
7357   ac_cv_have_sockopt_len_t="yes"
7358else
7359  echo "$as_me: failed program was:" >&5
7360sed 's/^/| /' conftest.$ac_ext >&5
7361
7362 ac_cv_have_sockopt_len_t="no"
7363
7364fi
7365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7366
7367fi
7368echo "$as_me:$LINENO: result: $ac_cv_have_sockopt_len_t" >&5
7369echo "${ECHO_T}$ac_cv_have_sockopt_len_t" >&6
7370if test "x$ac_cv_have_sockopt_len_t" = "xyes" ; then
7371
7372cat >>confdefs.h <<\_ACEOF
7373#define HAVE_SOCKOPT_LEN_T 1
7374_ACEOF
7375
7376fi
7377
7378echo "$as_me:$LINENO: checking for struct msghdr type" >&5
7379echo $ECHO_N "checking for struct msghdr type... $ECHO_C" >&6
7380if test "${ac_cv_have_struct_msghdr+set}" = set; then
7381  echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383
7384	cat >conftest.$ac_ext <<_ACEOF
7385/* confdefs.h.  */
7386_ACEOF
7387cat confdefs.h >>conftest.$ac_ext
7388cat >>conftest.$ac_ext <<_ACEOF
7389/* end confdefs.h.  */
7390 #include <sys/types.h>
7391		  #include <sys/socket.h>
7392int
7393main ()
7394{
7395 static  struct  msghdr msg; msg.msg_namelen = 1;
7396  ;
7397  return 0;
7398}
7399_ACEOF
7400rm -f conftest.$ac_objext
7401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7402  (eval $ac_compile) 2>conftest.er1
7403  ac_status=$?
7404  grep -v '^ *+' conftest.er1 >conftest.err
7405  rm -f conftest.er1
7406  cat conftest.err >&5
7407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408  (exit $ac_status); } &&
7409	 { ac_try='test -z "$ac_c_werror_flag"
7410			 || test ! -s conftest.err'
7411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412  (eval $ac_try) 2>&5
7413  ac_status=$?
7414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415  (exit $ac_status); }; } &&
7416	 { ac_try='test -s conftest.$ac_objext'
7417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418  (eval $ac_try) 2>&5
7419  ac_status=$?
7420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421  (exit $ac_status); }; }; then
7422   ac_cv_have_struct_msghdr="yes"
7423else
7424  echo "$as_me: failed program was:" >&5
7425sed 's/^/| /' conftest.$ac_ext >&5
7426
7427 ac_cv_have_struct_msghdr="no"
7428
7429fi
7430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7431
7432fi
7433echo "$as_me:$LINENO: result: $ac_cv_have_struct_msghdr" >&5
7434echo "${ECHO_T}$ac_cv_have_struct_msghdr" >&6
7435if test "x$ac_cv_have_struct_msghdr" = "xno" ; then
7436
7437cat >>confdefs.h <<\_ACEOF
7438#define ARCH_SCATTER_NONE 1
7439_ACEOF
7440
7441else
7442  have_scatter="no"
7443  echo "$as_me:$LINENO: checking for struct msghdr control" >&5
7444echo $ECHO_N "checking for struct msghdr control... $ECHO_C" >&6
7445if test "${ac_cv_have_struct_msghdr_ctl+set}" = set; then
7446  echo $ECHO_N "(cached) $ECHO_C" >&6
7447else
7448
7449      cat >conftest.$ac_ext <<_ACEOF
7450/* confdefs.h.  */
7451_ACEOF
7452cat confdefs.h >>conftest.$ac_ext
7453cat >>conftest.$ac_ext <<_ACEOF
7454/* end confdefs.h.  */
7455 #include <sys/types.h>
7456	#include <sys/socket.h>
7457int
7458main ()
7459{
7460 static  struct  msghdr msg; msg.msg_controllen = 0;
7461  ;
7462  return 0;
7463}
7464_ACEOF
7465rm -f conftest.$ac_objext
7466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7467  (eval $ac_compile) 2>conftest.er1
7468  ac_status=$?
7469  grep -v '^ *+' conftest.er1 >conftest.err
7470  rm -f conftest.er1
7471  cat conftest.err >&5
7472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473  (exit $ac_status); } &&
7474	 { ac_try='test -z "$ac_c_werror_flag"
7475			 || test ! -s conftest.err'
7476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477  (eval $ac_try) 2>&5
7478  ac_status=$?
7479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480  (exit $ac_status); }; } &&
7481	 { ac_try='test -s conftest.$ac_objext'
7482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483  (eval $ac_try) 2>&5
7484  ac_status=$?
7485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486  (exit $ac_status); }; }; then
7487   ac_cv_have_struct_msghdr_ctl="yes"
7488else
7489  echo "$as_me: failed program was:" >&5
7490sed 's/^/| /' conftest.$ac_ext >&5
7491
7492 ac_cv_have_struct_msghdr_ctl="no"
7493
7494fi
7495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7496
7497fi
7498echo "$as_me:$LINENO: result: $ac_cv_have_struct_msghdr_ctl" >&5
7499echo "${ECHO_T}$ac_cv_have_struct_msghdr_ctl" >&6
7500  if test "x$ac_cv_have_struct_msghdr_ctl" = "xyes" ; then
7501
7502cat >>confdefs.h <<\_ACEOF
7503#define ARCH_SCATTER_CONTROL 1
7504_ACEOF
7505
7506       have_scatter="yes"
7507  fi
7508  if test "x$have_scatter" = "xno" ; then
7509     	echo "$as_me:$LINENO: checking for struct msghdr accrights" >&5
7510echo $ECHO_N "checking for struct msghdr accrights... $ECHO_C" >&6
7511if test "${ac_cv_have_struct_msghdr_acc+set}" = set; then
7512  echo $ECHO_N "(cached) $ECHO_C" >&6
7513else
7514
7515            cat >conftest.$ac_ext <<_ACEOF
7516/* confdefs.h.  */
7517_ACEOF
7518cat confdefs.h >>conftest.$ac_ext
7519cat >>conftest.$ac_ext <<_ACEOF
7520/* end confdefs.h.  */
7521 #include <sys/types.h>
7522	      #include <sys/socket.h>
7523int
7524main ()
7525{
7526 static  struct  msghdr msg; msg.msg_accrightslen = 0;
7527  ;
7528  return 0;
7529}
7530_ACEOF
7531rm -f conftest.$ac_objext
7532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533  (eval $ac_compile) 2>conftest.er1
7534  ac_status=$?
7535  grep -v '^ *+' conftest.er1 >conftest.err
7536  rm -f conftest.er1
7537  cat conftest.err >&5
7538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539  (exit $ac_status); } &&
7540	 { ac_try='test -z "$ac_c_werror_flag"
7541			 || test ! -s conftest.err'
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); }; } &&
7547	 { ac_try='test -s conftest.$ac_objext'
7548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549  (eval $ac_try) 2>&5
7550  ac_status=$?
7551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552  (exit $ac_status); }; }; then
7553   ac_cv_have_struct_msghdr_acc="yes"
7554else
7555  echo "$as_me: failed program was:" >&5
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
7558 ac_cv_have_struct_msghdr_acc="no"
7559
7560fi
7561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7562
7563fi
7564echo "$as_me:$LINENO: result: $ac_cv_have_struct_msghdr_acc" >&5
7565echo "${ECHO_T}$ac_cv_have_struct_msghdr_acc" >&6
7566	if test "x$ac_cv_have_struct_msghdr_acc" = "xyes" ; then
7567
7568cat >>confdefs.h <<\_ACEOF
7569#define ARCH_SCATTER_ACCRIGHTS 1
7570_ACEOF
7571
7572	   have_scatter="yes"
7573	fi
7574
7575  fi
7576  if test "x$have_scatter" = "xno" ; then
7577        { { echo "$as_me:$LINENO: error: *** cannot determine which scatter type to use ***" >&5
7578echo "$as_me: error: *** cannot determine which scatter type to use ***" >&2;}
7579   { (exit 1); exit 1; }; }
7580  fi
7581fi
7582
7583echo "$as_me:$LINENO: checking for u_int type" >&5
7584echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
7585if test "${ac_cv_have_u_int+set}" = set; then
7586  echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588
7589	cat >conftest.$ac_ext <<_ACEOF
7590/* confdefs.h.  */
7591_ACEOF
7592cat confdefs.h >>conftest.$ac_ext
7593cat >>conftest.$ac_ext <<_ACEOF
7594/* end confdefs.h.  */
7595 #include <sys/types.h>
7596int
7597main ()
7598{
7599 u_int a; a = 1;
7600  ;
7601  return 0;
7602}
7603_ACEOF
7604rm -f conftest.$ac_objext
7605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606  (eval $ac_compile) 2>conftest.er1
7607  ac_status=$?
7608  grep -v '^ *+' conftest.er1 >conftest.err
7609  rm -f conftest.er1
7610  cat conftest.err >&5
7611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612  (exit $ac_status); } &&
7613	 { ac_try='test -z "$ac_c_werror_flag"
7614			 || test ! -s conftest.err'
7615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616  (eval $ac_try) 2>&5
7617  ac_status=$?
7618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619  (exit $ac_status); }; } &&
7620	 { ac_try='test -s conftest.$ac_objext'
7621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622  (eval $ac_try) 2>&5
7623  ac_status=$?
7624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625  (exit $ac_status); }; }; then
7626   ac_cv_have_u_int="yes"
7627else
7628  echo "$as_me: failed program was:" >&5
7629sed 's/^/| /' conftest.$ac_ext >&5
7630
7631 ac_cv_have_u_int="no"
7632
7633fi
7634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7635
7636fi
7637echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
7638echo "${ECHO_T}$ac_cv_have_u_int" >&6
7639if test "x$ac_cv_have_u_int" = "xyes" ; then
7640
7641cat >>confdefs.h <<\_ACEOF
7642#define HAVE_U_INT 1
7643_ACEOF
7644
7645	have_u_int=1
7646fi
7647
7648echo "$as_me:$LINENO: checking for intXX_t types" >&5
7649echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
7650if test "${ac_cv_have_intxx_t+set}" = set; then
7651  echo $ECHO_N "(cached) $ECHO_C" >&6
7652else
7653
7654	cat >conftest.$ac_ext <<_ACEOF
7655/* confdefs.h.  */
7656_ACEOF
7657cat confdefs.h >>conftest.$ac_ext
7658cat >>conftest.$ac_ext <<_ACEOF
7659/* end confdefs.h.  */
7660 #include <sys/types.h>
7661int
7662main ()
7663{
7664 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7665  ;
7666  return 0;
7667}
7668_ACEOF
7669rm -f conftest.$ac_objext
7670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7671  (eval $ac_compile) 2>conftest.er1
7672  ac_status=$?
7673  grep -v '^ *+' conftest.er1 >conftest.err
7674  rm -f conftest.er1
7675  cat conftest.err >&5
7676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677  (exit $ac_status); } &&
7678	 { ac_try='test -z "$ac_c_werror_flag"
7679			 || test ! -s conftest.err'
7680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681  (eval $ac_try) 2>&5
7682  ac_status=$?
7683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684  (exit $ac_status); }; } &&
7685	 { ac_try='test -s conftest.$ac_objext'
7686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687  (eval $ac_try) 2>&5
7688  ac_status=$?
7689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690  (exit $ac_status); }; }; then
7691   ac_cv_have_intxx_t="yes"
7692else
7693  echo "$as_me: failed program was:" >&5
7694sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 ac_cv_have_intxx_t="no"
7697
7698fi
7699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7700
7701fi
7702echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
7703echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
7704if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7705
7706cat >>confdefs.h <<\_ACEOF
7707#define HAVE_INTXX_T 1
7708_ACEOF
7709
7710	have_intxx_t=1
7711fi
7712
7713echo "$as_me:$LINENO: checking for int64_t type" >&5
7714echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
7715if test "${ac_cv_have_int64_t+set}" = set; then
7716  echo $ECHO_N "(cached) $ECHO_C" >&6
7717else
7718
7719	cat >conftest.$ac_ext <<_ACEOF
7720/* confdefs.h.  */
7721_ACEOF
7722cat confdefs.h >>conftest.$ac_ext
7723cat >>conftest.$ac_ext <<_ACEOF
7724/* end confdefs.h.  */
7725 #include <sys/types.h>
7726int
7727main ()
7728{
7729 int64_t a; a = 1;
7730  ;
7731  return 0;
7732}
7733_ACEOF
7734rm -f conftest.$ac_objext
7735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736  (eval $ac_compile) 2>conftest.er1
7737  ac_status=$?
7738  grep -v '^ *+' conftest.er1 >conftest.err
7739  rm -f conftest.er1
7740  cat conftest.err >&5
7741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742  (exit $ac_status); } &&
7743	 { ac_try='test -z "$ac_c_werror_flag"
7744			 || test ! -s conftest.err'
7745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746  (eval $ac_try) 2>&5
7747  ac_status=$?
7748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749  (exit $ac_status); }; } &&
7750	 { ac_try='test -s conftest.$ac_objext'
7751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752  (eval $ac_try) 2>&5
7753  ac_status=$?
7754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755  (exit $ac_status); }; }; then
7756   ac_cv_have_int64_t="yes"
7757else
7758  echo "$as_me: failed program was:" >&5
7759sed 's/^/| /' conftest.$ac_ext >&5
7760
7761 ac_cv_have_int64_t="no"
7762
7763fi
7764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7765
7766fi
7767echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
7768echo "${ECHO_T}$ac_cv_have_int64_t" >&6
7769if test "x$ac_cv_have_int64_t" = "xyes" ; then
7770
7771cat >>confdefs.h <<\_ACEOF
7772#define HAVE_INT64_T 1
7773_ACEOF
7774
7775	have_int64_t=1
7776fi
7777
7778echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
7779echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
7780if test "${ac_cv_have_u_intxx_t+set}" = set; then
7781  echo $ECHO_N "(cached) $ECHO_C" >&6
7782else
7783
7784	cat >conftest.$ac_ext <<_ACEOF
7785/* confdefs.h.  */
7786_ACEOF
7787cat confdefs.h >>conftest.$ac_ext
7788cat >>conftest.$ac_ext <<_ACEOF
7789/* end confdefs.h.  */
7790 #include <sys/types.h>
7791int
7792main ()
7793{
7794 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7795  ;
7796  return 0;
7797}
7798_ACEOF
7799rm -f conftest.$ac_objext
7800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7801  (eval $ac_compile) 2>conftest.er1
7802  ac_status=$?
7803  grep -v '^ *+' conftest.er1 >conftest.err
7804  rm -f conftest.er1
7805  cat conftest.err >&5
7806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807  (exit $ac_status); } &&
7808	 { ac_try='test -z "$ac_c_werror_flag"
7809			 || test ! -s conftest.err'
7810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811  (eval $ac_try) 2>&5
7812  ac_status=$?
7813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814  (exit $ac_status); }; } &&
7815	 { ac_try='test -s conftest.$ac_objext'
7816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817  (eval $ac_try) 2>&5
7818  ac_status=$?
7819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820  (exit $ac_status); }; }; then
7821   ac_cv_have_u_intxx_t="yes"
7822else
7823  echo "$as_me: failed program was:" >&5
7824sed 's/^/| /' conftest.$ac_ext >&5
7825
7826 ac_cv_have_u_intxx_t="no"
7827
7828fi
7829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7830
7831fi
7832echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
7833echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
7834if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7835
7836cat >>confdefs.h <<\_ACEOF
7837#define HAVE_U_INTXX_T 1
7838_ACEOF
7839
7840	have_u_intxx_t=1
7841fi
7842
7843echo "$as_me:$LINENO: checking for u_int64_t types" >&5
7844echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
7845if test "${ac_cv_have_u_int64_t+set}" = set; then
7846  echo $ECHO_N "(cached) $ECHO_C" >&6
7847else
7848
7849	cat >conftest.$ac_ext <<_ACEOF
7850/* confdefs.h.  */
7851_ACEOF
7852cat confdefs.h >>conftest.$ac_ext
7853cat >>conftest.$ac_ext <<_ACEOF
7854/* end confdefs.h.  */
7855 #include <sys/types.h>
7856int
7857main ()
7858{
7859 u_int64_t a; a = 1;
7860  ;
7861  return 0;
7862}
7863_ACEOF
7864rm -f conftest.$ac_objext
7865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7866  (eval $ac_compile) 2>conftest.er1
7867  ac_status=$?
7868  grep -v '^ *+' conftest.er1 >conftest.err
7869  rm -f conftest.er1
7870  cat conftest.err >&5
7871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872  (exit $ac_status); } &&
7873	 { ac_try='test -z "$ac_c_werror_flag"
7874			 || test ! -s conftest.err'
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); }; } &&
7880	 { ac_try='test -s conftest.$ac_objext'
7881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882  (eval $ac_try) 2>&5
7883  ac_status=$?
7884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885  (exit $ac_status); }; }; then
7886   ac_cv_have_u_int64_t="yes"
7887else
7888  echo "$as_me: failed program was:" >&5
7889sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 ac_cv_have_u_int64_t="no"
7892
7893fi
7894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7895
7896fi
7897echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
7898echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
7899if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7900
7901cat >>confdefs.h <<\_ACEOF
7902#define HAVE_U_INT64_T 1
7903_ACEOF
7904
7905	have_u_int64_t=1
7906fi
7907
7908if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7909           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7910then
7911	echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7912echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
7913	cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h.  */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
7918/* end confdefs.h.  */
7919
7920#include <sys/bitypes.h>
7921
7922int
7923main ()
7924{
7925
7926			int8_t a; int16_t b; int32_t c;
7927			u_int8_t e; u_int16_t f; u_int32_t g;
7928			a = b = c = e = f = g = 1;
7929
7930  ;
7931  return 0;
7932}
7933_ACEOF
7934rm -f conftest.$ac_objext
7935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7936  (eval $ac_compile) 2>conftest.er1
7937  ac_status=$?
7938  grep -v '^ *+' conftest.er1 >conftest.err
7939  rm -f conftest.er1
7940  cat conftest.err >&5
7941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942  (exit $ac_status); } &&
7943	 { ac_try='test -z "$ac_c_werror_flag"
7944			 || test ! -s conftest.err'
7945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946  (eval $ac_try) 2>&5
7947  ac_status=$?
7948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949  (exit $ac_status); }; } &&
7950	 { ac_try='test -s conftest.$ac_objext'
7951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952  (eval $ac_try) 2>&5
7953  ac_status=$?
7954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955  (exit $ac_status); }; }; then
7956
7957			cat >>confdefs.h <<\_ACEOF
7958#define HAVE_U_INTXX_T 1
7959_ACEOF
7960
7961			cat >>confdefs.h <<\_ACEOF
7962#define HAVE_INTXX_T 1
7963_ACEOF
7964
7965			echo "$as_me:$LINENO: result: yes" >&5
7966echo "${ECHO_T}yes" >&6
7967
7968else
7969  echo "$as_me: failed program was:" >&5
7970sed 's/^/| /' conftest.$ac_ext >&5
7971
7972echo "$as_me:$LINENO: result: no" >&5
7973echo "${ECHO_T}no" >&6
7974
7975fi
7976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7977fi
7978
7979if test -z "$have_u_intxx_t" ; then
7980	echo "$as_me:$LINENO: checking for uintXX_t types" >&5
7981echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
7982if test "${ac_cv_have_uintxx_t+set}" = set; then
7983  echo $ECHO_N "(cached) $ECHO_C" >&6
7984else
7985
7986		cat >conftest.$ac_ext <<_ACEOF
7987/* confdefs.h.  */
7988_ACEOF
7989cat confdefs.h >>conftest.$ac_ext
7990cat >>conftest.$ac_ext <<_ACEOF
7991/* end confdefs.h.  */
7992
7993#include <sys/types.h>
7994
7995int
7996main ()
7997{
7998 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
7999  ;
8000  return 0;
8001}
8002_ACEOF
8003rm -f conftest.$ac_objext
8004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8005  (eval $ac_compile) 2>conftest.er1
8006  ac_status=$?
8007  grep -v '^ *+' conftest.er1 >conftest.err
8008  rm -f conftest.er1
8009  cat conftest.err >&5
8010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011  (exit $ac_status); } &&
8012	 { ac_try='test -z "$ac_c_werror_flag"
8013			 || test ! -s conftest.err'
8014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015  (eval $ac_try) 2>&5
8016  ac_status=$?
8017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018  (exit $ac_status); }; } &&
8019	 { ac_try='test -s conftest.$ac_objext'
8020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021  (eval $ac_try) 2>&5
8022  ac_status=$?
8023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024  (exit $ac_status); }; }; then
8025   ac_cv_have_uintxx_t="yes"
8026else
8027  echo "$as_me: failed program was:" >&5
8028sed 's/^/| /' conftest.$ac_ext >&5
8029
8030 ac_cv_have_uintxx_t="no"
8031
8032fi
8033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8034
8035fi
8036echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
8037echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
8038	if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
8039
8040cat >>confdefs.h <<\_ACEOF
8041#define HAVE_UINTXX_T 1
8042_ACEOF
8043
8044	fi
8045fi
8046
8047echo "$as_me:$LINENO: checking for socklen_t" >&5
8048echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
8049if test "${ac_cv_have_socklen_t+set}" = set; then
8050  echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052
8053	cat >conftest.$ac_ext <<_ACEOF
8054/* confdefs.h.  */
8055_ACEOF
8056cat confdefs.h >>conftest.$ac_ext
8057cat >>conftest.$ac_ext <<_ACEOF
8058/* end confdefs.h.  */
8059
8060#include <sys/types.h>
8061#include <sys/socket.h>
8062
8063int
8064main ()
8065{
8066socklen_t foo; foo = 1235;
8067  ;
8068  return 0;
8069}
8070_ACEOF
8071rm -f conftest.$ac_objext
8072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8073  (eval $ac_compile) 2>conftest.er1
8074  ac_status=$?
8075  grep -v '^ *+' conftest.er1 >conftest.err
8076  rm -f conftest.er1
8077  cat conftest.err >&5
8078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079  (exit $ac_status); } &&
8080	 { ac_try='test -z "$ac_c_werror_flag"
8081			 || test ! -s conftest.err'
8082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083  (eval $ac_try) 2>&5
8084  ac_status=$?
8085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086  (exit $ac_status); }; } &&
8087	 { ac_try='test -s conftest.$ac_objext'
8088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089  (eval $ac_try) 2>&5
8090  ac_status=$?
8091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092  (exit $ac_status); }; }; then
8093   ac_cv_have_socklen_t="yes"
8094else
8095  echo "$as_me: failed program was:" >&5
8096sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 ac_cv_have_socklen_t="no"
8099
8100fi
8101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8102
8103fi
8104echo "$as_me:$LINENO: result: $ac_cv_have_socklen_t" >&5
8105echo "${ECHO_T}$ac_cv_have_socklen_t" >&6
8106if test "x$ac_cv_have_socklen_t" = "xyes" ; then
8107
8108cat >>confdefs.h <<\_ACEOF
8109#define HAVE_SOCKLEN_T 1
8110_ACEOF
8111
8112fi
8113
8114echo "$as_me:$LINENO: checking for size_t" >&5
8115echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8116if test "${ac_cv_have_size_t+set}" = set; then
8117  echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119
8120	cat >conftest.$ac_ext <<_ACEOF
8121/* confdefs.h.  */
8122_ACEOF
8123cat confdefs.h >>conftest.$ac_ext
8124cat >>conftest.$ac_ext <<_ACEOF
8125/* end confdefs.h.  */
8126
8127#include <sys/types.h>
8128
8129int
8130main ()
8131{
8132 size_t foo; foo = 1235;
8133  ;
8134  return 0;
8135}
8136_ACEOF
8137rm -f conftest.$ac_objext
8138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139  (eval $ac_compile) 2>conftest.er1
8140  ac_status=$?
8141  grep -v '^ *+' conftest.er1 >conftest.err
8142  rm -f conftest.er1
8143  cat conftest.err >&5
8144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145  (exit $ac_status); } &&
8146	 { ac_try='test -z "$ac_c_werror_flag"
8147			 || test ! -s conftest.err'
8148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149  (eval $ac_try) 2>&5
8150  ac_status=$?
8151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152  (exit $ac_status); }; } &&
8153	 { ac_try='test -s conftest.$ac_objext'
8154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155  (eval $ac_try) 2>&5
8156  ac_status=$?
8157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158  (exit $ac_status); }; }; then
8159   ac_cv_have_size_t="yes"
8160else
8161  echo "$as_me: failed program was:" >&5
8162sed 's/^/| /' conftest.$ac_ext >&5
8163
8164 ac_cv_have_size_t="no"
8165
8166fi
8167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8168
8169fi
8170echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
8171echo "${ECHO_T}$ac_cv_have_size_t" >&6
8172if test "x$ac_cv_have_size_t" = "xyes" ; then
8173
8174cat >>confdefs.h <<\_ACEOF
8175#define HAVE_SIZE_T 1
8176_ACEOF
8177
8178fi
8179
8180echo "$as_me:$LINENO: checking for ssize_t" >&5
8181echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8182if test "${ac_cv_have_ssize_t+set}" = set; then
8183  echo $ECHO_N "(cached) $ECHO_C" >&6
8184else
8185
8186	cat >conftest.$ac_ext <<_ACEOF
8187/* confdefs.h.  */
8188_ACEOF
8189cat confdefs.h >>conftest.$ac_ext
8190cat >>conftest.$ac_ext <<_ACEOF
8191/* end confdefs.h.  */
8192
8193#include <sys/types.h>
8194
8195int
8196main ()
8197{
8198 ssize_t foo; foo = 1235;
8199  ;
8200  return 0;
8201}
8202_ACEOF
8203rm -f conftest.$ac_objext
8204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8205  (eval $ac_compile) 2>conftest.er1
8206  ac_status=$?
8207  grep -v '^ *+' conftest.er1 >conftest.err
8208  rm -f conftest.er1
8209  cat conftest.err >&5
8210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211  (exit $ac_status); } &&
8212	 { ac_try='test -z "$ac_c_werror_flag"
8213			 || test ! -s conftest.err'
8214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215  (eval $ac_try) 2>&5
8216  ac_status=$?
8217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218  (exit $ac_status); }; } &&
8219	 { ac_try='test -s conftest.$ac_objext'
8220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221  (eval $ac_try) 2>&5
8222  ac_status=$?
8223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224  (exit $ac_status); }; }; then
8225   ac_cv_have_ssize_t="yes"
8226else
8227  echo "$as_me: failed program was:" >&5
8228sed 's/^/| /' conftest.$ac_ext >&5
8229
8230 ac_cv_have_ssize_t="no"
8231
8232fi
8233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8234
8235fi
8236echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
8237echo "${ECHO_T}$ac_cv_have_ssize_t" >&6
8238if test "x$ac_cv_have_ssize_t" = "xyes" ; then
8239
8240cat >>confdefs.h <<\_ACEOF
8241#define HAVE_SSIZE_T 1
8242_ACEOF
8243
8244fi
8245
8246echo "$as_me:$LINENO: checking for clock_t" >&5
8247echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8248if test "${ac_cv_have_clock_t+set}" = set; then
8249  echo $ECHO_N "(cached) $ECHO_C" >&6
8250else
8251
8252	cat >conftest.$ac_ext <<_ACEOF
8253/* confdefs.h.  */
8254_ACEOF
8255cat confdefs.h >>conftest.$ac_ext
8256cat >>conftest.$ac_ext <<_ACEOF
8257/* end confdefs.h.  */
8258
8259#include <time.h>
8260
8261int
8262main ()
8263{
8264 clock_t foo; foo = 1235;
8265  ;
8266  return 0;
8267}
8268_ACEOF
8269rm -f conftest.$ac_objext
8270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8271  (eval $ac_compile) 2>conftest.er1
8272  ac_status=$?
8273  grep -v '^ *+' conftest.er1 >conftest.err
8274  rm -f conftest.er1
8275  cat conftest.err >&5
8276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277  (exit $ac_status); } &&
8278	 { ac_try='test -z "$ac_c_werror_flag"
8279			 || test ! -s conftest.err'
8280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281  (eval $ac_try) 2>&5
8282  ac_status=$?
8283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284  (exit $ac_status); }; } &&
8285	 { ac_try='test -s conftest.$ac_objext'
8286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287  (eval $ac_try) 2>&5
8288  ac_status=$?
8289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290  (exit $ac_status); }; }; then
8291   ac_cv_have_clock_t="yes"
8292else
8293  echo "$as_me: failed program was:" >&5
8294sed 's/^/| /' conftest.$ac_ext >&5
8295
8296 ac_cv_have_clock_t="no"
8297
8298fi
8299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8300
8301fi
8302echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
8303echo "${ECHO_T}$ac_cv_have_clock_t" >&6
8304if test "x$ac_cv_have_clock_t" = "xyes" ; then
8305
8306cat >>confdefs.h <<\_ACEOF
8307#define HAVE_CLOCK_T 1
8308_ACEOF
8309
8310fi
8311
8312echo "$as_me:$LINENO: checking for sa_family_t" >&5
8313echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
8314if test "${ac_cv_have_sa_family_t+set}" = set; then
8315  echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317
8318	cat >conftest.$ac_ext <<_ACEOF
8319/* confdefs.h.  */
8320_ACEOF
8321cat confdefs.h >>conftest.$ac_ext
8322cat >>conftest.$ac_ext <<_ACEOF
8323/* end confdefs.h.  */
8324
8325#include <sys/types.h>
8326#include <sys/socket.h>
8327
8328int
8329main ()
8330{
8331 sa_family_t foo; foo = 1235;
8332  ;
8333  return 0;
8334}
8335_ACEOF
8336rm -f conftest.$ac_objext
8337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8338  (eval $ac_compile) 2>conftest.er1
8339  ac_status=$?
8340  grep -v '^ *+' conftest.er1 >conftest.err
8341  rm -f conftest.er1
8342  cat conftest.err >&5
8343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344  (exit $ac_status); } &&
8345	 { ac_try='test -z "$ac_c_werror_flag"
8346			 || test ! -s conftest.err'
8347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348  (eval $ac_try) 2>&5
8349  ac_status=$?
8350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351  (exit $ac_status); }; } &&
8352	 { ac_try='test -s conftest.$ac_objext'
8353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354  (eval $ac_try) 2>&5
8355  ac_status=$?
8356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357  (exit $ac_status); }; }; then
8358   ac_cv_have_sa_family_t="yes"
8359else
8360  echo "$as_me: failed program was:" >&5
8361sed 's/^/| /' conftest.$ac_ext >&5
8362
8363 cat >conftest.$ac_ext <<_ACEOF
8364/* confdefs.h.  */
8365_ACEOF
8366cat confdefs.h >>conftest.$ac_ext
8367cat >>conftest.$ac_ext <<_ACEOF
8368/* end confdefs.h.  */
8369
8370#include <sys/types.h>
8371#include <sys/socket.h>
8372#include <netinet/in.h>
8373
8374int
8375main ()
8376{
8377 sa_family_t foo; foo = 1235;
8378  ;
8379  return 0;
8380}
8381_ACEOF
8382rm -f conftest.$ac_objext
8383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8384  (eval $ac_compile) 2>conftest.er1
8385  ac_status=$?
8386  grep -v '^ *+' conftest.er1 >conftest.err
8387  rm -f conftest.er1
8388  cat conftest.err >&5
8389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390  (exit $ac_status); } &&
8391	 { ac_try='test -z "$ac_c_werror_flag"
8392			 || test ! -s conftest.err'
8393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394  (eval $ac_try) 2>&5
8395  ac_status=$?
8396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397  (exit $ac_status); }; } &&
8398	 { ac_try='test -s conftest.$ac_objext'
8399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400  (eval $ac_try) 2>&5
8401  ac_status=$?
8402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403  (exit $ac_status); }; }; then
8404   ac_cv_have_sa_family_t="yes"
8405else
8406  echo "$as_me: failed program was:" >&5
8407sed 's/^/| /' conftest.$ac_ext >&5
8408
8409 ac_cv_have_sa_family_t="no"
8410
8411fi
8412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8413
8414fi
8415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8416
8417fi
8418echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
8419echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6
8420if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
8421
8422cat >>confdefs.h <<\_ACEOF
8423#define HAVE_SA_FAMILY_T 1
8424_ACEOF
8425
8426fi
8427
8428
8429echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
8430echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
8431if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
8432  echo $ECHO_N "(cached) $ECHO_C" >&6
8433else
8434
8435	cat >conftest.$ac_ext <<_ACEOF
8436/* confdefs.h.  */
8437_ACEOF
8438cat confdefs.h >>conftest.$ac_ext
8439cat >>conftest.$ac_ext <<_ACEOF
8440/* end confdefs.h.  */
8441
8442#include <sys/types.h>
8443#include <sys/socket.h>
8444
8445int
8446main ()
8447{
8448 struct sockaddr_storage s;
8449  ;
8450  return 0;
8451}
8452_ACEOF
8453rm -f conftest.$ac_objext
8454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8455  (eval $ac_compile) 2>conftest.er1
8456  ac_status=$?
8457  grep -v '^ *+' conftest.er1 >conftest.err
8458  rm -f conftest.er1
8459  cat conftest.err >&5
8460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461  (exit $ac_status); } &&
8462	 { ac_try='test -z "$ac_c_werror_flag"
8463			 || test ! -s conftest.err'
8464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465  (eval $ac_try) 2>&5
8466  ac_status=$?
8467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468  (exit $ac_status); }; } &&
8469	 { ac_try='test -s conftest.$ac_objext'
8470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471  (eval $ac_try) 2>&5
8472  ac_status=$?
8473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474  (exit $ac_status); }; }; then
8475   ac_cv_have_struct_sockaddr_storage="yes"
8476else
8477  echo "$as_me: failed program was:" >&5
8478sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 ac_cv_have_struct_sockaddr_storage="no"
8481
8482fi
8483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8484
8485fi
8486echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
8487echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6
8488if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
8489
8490cat >>confdefs.h <<\_ACEOF
8491#define HAVE_STRUCT_SOCKADDR_STORAGE 1
8492_ACEOF
8493
8494fi
8495
8496echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8497echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
8498if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
8499  echo $ECHO_N "(cached) $ECHO_C" >&6
8500else
8501
8502	cat >conftest.$ac_ext <<_ACEOF
8503/* confdefs.h.  */
8504_ACEOF
8505cat confdefs.h >>conftest.$ac_ext
8506cat >>conftest.$ac_ext <<_ACEOF
8507/* end confdefs.h.  */
8508
8509#include <sys/types.h>
8510#include <netinet/in.h>
8511
8512int
8513main ()
8514{
8515 struct sockaddr_in6 s; s.sin6_family = 0;
8516  ;
8517  return 0;
8518}
8519_ACEOF
8520rm -f conftest.$ac_objext
8521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522  (eval $ac_compile) 2>conftest.er1
8523  ac_status=$?
8524  grep -v '^ *+' conftest.er1 >conftest.err
8525  rm -f conftest.er1
8526  cat conftest.err >&5
8527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528  (exit $ac_status); } &&
8529	 { ac_try='test -z "$ac_c_werror_flag"
8530			 || test ! -s conftest.err'
8531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532  (eval $ac_try) 2>&5
8533  ac_status=$?
8534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535  (exit $ac_status); }; } &&
8536	 { ac_try='test -s conftest.$ac_objext'
8537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538  (eval $ac_try) 2>&5
8539  ac_status=$?
8540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541  (exit $ac_status); }; }; then
8542   ac_cv_have_struct_sockaddr_in6="yes"
8543else
8544  echo "$as_me: failed program was:" >&5
8545sed 's/^/| /' conftest.$ac_ext >&5
8546
8547 ac_cv_have_struct_sockaddr_in6="no"
8548
8549fi
8550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8551
8552fi
8553echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
8554echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6
8555if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
8556
8557cat >>confdefs.h <<\_ACEOF
8558#define HAVE_STRUCT_SOCKADDR_IN6 1
8559_ACEOF
8560
8561fi
8562
8563echo "$as_me:$LINENO: checking for struct in6_addr" >&5
8564echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
8565if test "${ac_cv_have_struct_in6_addr+set}" = set; then
8566  echo $ECHO_N "(cached) $ECHO_C" >&6
8567else
8568
8569	cat >conftest.$ac_ext <<_ACEOF
8570/* confdefs.h.  */
8571_ACEOF
8572cat confdefs.h >>conftest.$ac_ext
8573cat >>conftest.$ac_ext <<_ACEOF
8574/* end confdefs.h.  */
8575
8576#include <sys/types.h>
8577#include <netinet/in.h>
8578
8579int
8580main ()
8581{
8582 struct in6_addr s; s.s6_addr[0] = 0;
8583  ;
8584  return 0;
8585}
8586_ACEOF
8587rm -f conftest.$ac_objext
8588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589  (eval $ac_compile) 2>conftest.er1
8590  ac_status=$?
8591  grep -v '^ *+' conftest.er1 >conftest.err
8592  rm -f conftest.er1
8593  cat conftest.err >&5
8594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595  (exit $ac_status); } &&
8596	 { ac_try='test -z "$ac_c_werror_flag"
8597			 || test ! -s conftest.err'
8598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599  (eval $ac_try) 2>&5
8600  ac_status=$?
8601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602  (exit $ac_status); }; } &&
8603	 { ac_try='test -s conftest.$ac_objext'
8604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605  (eval $ac_try) 2>&5
8606  ac_status=$?
8607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608  (exit $ac_status); }; }; then
8609   ac_cv_have_struct_in6_addr="yes"
8610else
8611  echo "$as_me: failed program was:" >&5
8612sed 's/^/| /' conftest.$ac_ext >&5
8613
8614 ac_cv_have_struct_in6_addr="no"
8615
8616fi
8617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8618
8619fi
8620echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
8621echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6
8622if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
8623
8624cat >>confdefs.h <<\_ACEOF
8625#define HAVE_STRUCT_IN6_ADDR 1
8626_ACEOF
8627
8628fi
8629
8630echo "$as_me:$LINENO: checking for struct addrinfo" >&5
8631echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
8632if test "${ac_cv_have_struct_addrinfo+set}" = set; then
8633  echo $ECHO_N "(cached) $ECHO_C" >&6
8634else
8635
8636	cat >conftest.$ac_ext <<_ACEOF
8637/* confdefs.h.  */
8638_ACEOF
8639cat confdefs.h >>conftest.$ac_ext
8640cat >>conftest.$ac_ext <<_ACEOF
8641/* end confdefs.h.  */
8642
8643#include <sys/types.h>
8644#include <sys/socket.h>
8645#include <netdb.h>
8646
8647int
8648main ()
8649{
8650 struct addrinfo s; s.ai_flags = AI_PASSIVE;
8651  ;
8652  return 0;
8653}
8654_ACEOF
8655rm -f conftest.$ac_objext
8656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8657  (eval $ac_compile) 2>conftest.er1
8658  ac_status=$?
8659  grep -v '^ *+' conftest.er1 >conftest.err
8660  rm -f conftest.er1
8661  cat conftest.err >&5
8662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663  (exit $ac_status); } &&
8664	 { ac_try='test -z "$ac_c_werror_flag"
8665			 || test ! -s conftest.err'
8666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667  (eval $ac_try) 2>&5
8668  ac_status=$?
8669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670  (exit $ac_status); }; } &&
8671	 { ac_try='test -s conftest.$ac_objext'
8672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673  (eval $ac_try) 2>&5
8674  ac_status=$?
8675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676  (exit $ac_status); }; }; then
8677   ac_cv_have_struct_addrinfo="yes"
8678else
8679  echo "$as_me: failed program was:" >&5
8680sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 ac_cv_have_struct_addrinfo="no"
8683
8684fi
8685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8686
8687fi
8688echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
8689echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6
8690if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
8691
8692cat >>confdefs.h <<\_ACEOF
8693#define HAVE_STRUCT_ADDRINFO 1
8694_ACEOF
8695
8696fi
8697
8698echo "$as_me:$LINENO: checking for struct timeval" >&5
8699echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
8700if test "${ac_cv_have_struct_timeval+set}" = set; then
8701  echo $ECHO_N "(cached) $ECHO_C" >&6
8702else
8703
8704	cat >conftest.$ac_ext <<_ACEOF
8705/* confdefs.h.  */
8706_ACEOF
8707cat confdefs.h >>conftest.$ac_ext
8708cat >>conftest.$ac_ext <<_ACEOF
8709/* end confdefs.h.  */
8710 #include <sys/time.h>
8711int
8712main ()
8713{
8714 struct timeval tv; tv.tv_sec = 1;
8715  ;
8716  return 0;
8717}
8718_ACEOF
8719rm -f conftest.$ac_objext
8720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8721  (eval $ac_compile) 2>conftest.er1
8722  ac_status=$?
8723  grep -v '^ *+' conftest.er1 >conftest.err
8724  rm -f conftest.er1
8725  cat conftest.err >&5
8726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727  (exit $ac_status); } &&
8728	 { ac_try='test -z "$ac_c_werror_flag"
8729			 || test ! -s conftest.err'
8730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731  (eval $ac_try) 2>&5
8732  ac_status=$?
8733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734  (exit $ac_status); }; } &&
8735	 { ac_try='test -s conftest.$ac_objext'
8736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737  (eval $ac_try) 2>&5
8738  ac_status=$?
8739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740  (exit $ac_status); }; }; then
8741   ac_cv_have_struct_timeval="yes"
8742else
8743  echo "$as_me: failed program was:" >&5
8744sed 's/^/| /' conftest.$ac_ext >&5
8745
8746 ac_cv_have_struct_timeval="no"
8747
8748fi
8749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8750
8751fi
8752echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
8753echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6
8754if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
8755
8756cat >>confdefs.h <<\_ACEOF
8757#define HAVE_STRUCT_TIMEVAL 1
8758_ACEOF
8759
8760	have_struct_timeval=1
8761fi
8762
8763echo "$as_me:$LINENO: checking for sun_len field in struct sockaddr_un" >&5
8764echo $ECHO_N "checking for sun_len field in struct sockaddr_un... $ECHO_C" >&6
8765if test "${ac_cv_have_sun_len_in_struct_sockaddr_un+set}" = set; then
8766  echo $ECHO_N "(cached) $ECHO_C" >&6
8767else
8768
8769	cat >conftest.$ac_ext <<_ACEOF
8770/* confdefs.h.  */
8771_ACEOF
8772cat confdefs.h >>conftest.$ac_ext
8773cat >>conftest.$ac_ext <<_ACEOF
8774/* end confdefs.h.  */
8775
8776#include <sys/types.h>
8777#include <sys/socket.h>
8778
8779int
8780main ()
8781{
8782 struct sockaddr_un s; s.sun_len = 1;
8783  ;
8784  return 0;
8785}
8786_ACEOF
8787rm -f conftest.$ac_objext
8788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8789  (eval $ac_compile) 2>conftest.er1
8790  ac_status=$?
8791  grep -v '^ *+' conftest.er1 >conftest.err
8792  rm -f conftest.er1
8793  cat conftest.err >&5
8794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795  (exit $ac_status); } &&
8796	 { ac_try='test -z "$ac_c_werror_flag"
8797			 || test ! -s conftest.err'
8798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799  (eval $ac_try) 2>&5
8800  ac_status=$?
8801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802  (exit $ac_status); }; } &&
8803	 { ac_try='test -s conftest.$ac_objext'
8804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805  (eval $ac_try) 2>&5
8806  ac_status=$?
8807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808  (exit $ac_status); }; }; then
8809   ac_cv_have_sun_len_in_struct_sockaddr_un="yes"
8810else
8811  echo "$as_me: failed program was:" >&5
8812sed 's/^/| /' conftest.$ac_ext >&5
8813
8814 ac_cv_have_sun_len_in_struct_sockaddr_un="no"
8815fi
8816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8817
8818fi
8819echo "$as_me:$LINENO: result: $ac_cv_have_sun_len_in_struct_sockaddr_un" >&5
8820echo "${ECHO_T}$ac_cv_have_sun_len_in_struct_sockaddr_un" >&6
8821if test "x$ac_cv_have_sun_len_in_struct_sockaddr_un" = "xyes" ; then
8822
8823cat >>confdefs.h <<\_ACEOF
8824#define HAVE_SUN_LEN_IN_SOCKADDR_UN 1
8825_ACEOF
8826
8827fi
8828
8829echo "$as_me:$LINENO: checking for sin_len field in sockaddr_in" >&5
8830echo $ECHO_N "checking for sin_len field in sockaddr_in... $ECHO_C" >&6
8831if test "${ac_cv_have_sin_len_in_struct_sockaddr_in+set}" = set; then
8832  echo $ECHO_N "(cached) $ECHO_C" >&6
8833else
8834
8835	cat >conftest.$ac_ext <<_ACEOF
8836/* confdefs.h.  */
8837_ACEOF
8838cat confdefs.h >>conftest.$ac_ext
8839cat >>conftest.$ac_ext <<_ACEOF
8840/* end confdefs.h.  */
8841
8842#include <sys/types.h>
8843#include <sys/socket.h>
8844#include <netinet/in.h>
8845
8846int
8847main ()
8848{
8849 struct sockaddr_in s; s.sin_len = sizeof(s);
8850  ;
8851  return 0;
8852}
8853_ACEOF
8854rm -f conftest.$ac_objext
8855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8856  (eval $ac_compile) 2>conftest.er1
8857  ac_status=$?
8858  grep -v '^ *+' conftest.er1 >conftest.err
8859  rm -f conftest.er1
8860  cat conftest.err >&5
8861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862  (exit $ac_status); } &&
8863	 { ac_try='test -z "$ac_c_werror_flag"
8864			 || test ! -s conftest.err'
8865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866  (eval $ac_try) 2>&5
8867  ac_status=$?
8868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869  (exit $ac_status); }; } &&
8870	 { ac_try='test -s conftest.$ac_objext'
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_have_sin_len_in_struct_sockaddr_in="yes"
8877else
8878  echo "$as_me: failed program was:" >&5
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
8881 ac_cv_have_sin_len_in_struct_sockaddr_in="no"
8882fi
8883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8884
8885fi
8886echo "$as_me:$LINENO: result: $ac_cv_have_sin_len_in_struct_sockaddr_in" >&5
8887echo "${ECHO_T}$ac_cv_have_sin_len_in_struct_sockaddr_in" >&6
8888if test x"$ac_cv_have_sin_len_in_struct_sockaddr_in" = "xyes"; then
8889
8890cat >>confdefs.h <<\_ACEOF
8891#define HAVE_SIN_LEN_IN_SOCKADDR_IN 1
8892_ACEOF
8893
8894fi
8895
8896echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
8897echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
8898if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
8899  echo $ECHO_N "(cached) $ECHO_C" >&6
8900else
8901
8902	cat >conftest.$ac_ext <<_ACEOF
8903/* confdefs.h.  */
8904_ACEOF
8905cat confdefs.h >>conftest.$ac_ext
8906cat >>conftest.$ac_ext <<_ACEOF
8907/* end confdefs.h.  */
8908
8909#include <sys/types.h>
8910#include <sys/socket.h>
8911
8912int
8913main ()
8914{
8915 struct sockaddr_storage s; s.ss_family = 1;
8916  ;
8917  return 0;
8918}
8919_ACEOF
8920rm -f conftest.$ac_objext
8921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922  (eval $ac_compile) 2>conftest.er1
8923  ac_status=$?
8924  grep -v '^ *+' conftest.er1 >conftest.err
8925  rm -f conftest.er1
8926  cat conftest.err >&5
8927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928  (exit $ac_status); } &&
8929	 { ac_try='test -z "$ac_c_werror_flag"
8930			 || test ! -s conftest.err'
8931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932  (eval $ac_try) 2>&5
8933  ac_status=$?
8934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935  (exit $ac_status); }; } &&
8936	 { ac_try='test -s conftest.$ac_objext'
8937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938  (eval $ac_try) 2>&5
8939  ac_status=$?
8940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941  (exit $ac_status); }; }; then
8942   ac_cv_have_ss_family_in_struct_ss="yes"
8943else
8944  echo "$as_me: failed program was:" >&5
8945sed 's/^/| /' conftest.$ac_ext >&5
8946
8947 ac_cv_have_ss_family_in_struct_ss="no"
8948fi
8949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8950
8951fi
8952echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
8953echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
8954if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
8955
8956cat >>confdefs.h <<\_ACEOF
8957#define HAVE_SS_FAMILY_IN_SS 1
8958_ACEOF
8959
8960fi
8961
8962echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
8963echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
8964if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
8965  echo $ECHO_N "(cached) $ECHO_C" >&6
8966else
8967
8968	cat >conftest.$ac_ext <<_ACEOF
8969/* confdefs.h.  */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h.  */
8974
8975#include <sys/types.h>
8976#include <sys/socket.h>
8977
8978int
8979main ()
8980{
8981 struct sockaddr_storage s; s.__ss_family = 1;
8982  ;
8983  return 0;
8984}
8985_ACEOF
8986rm -f conftest.$ac_objext
8987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8988  (eval $ac_compile) 2>conftest.er1
8989  ac_status=$?
8990  grep -v '^ *+' conftest.er1 >conftest.err
8991  rm -f conftest.er1
8992  cat conftest.err >&5
8993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994  (exit $ac_status); } &&
8995	 { ac_try='test -z "$ac_c_werror_flag"
8996			 || test ! -s conftest.err'
8997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998  (eval $ac_try) 2>&5
8999  ac_status=$?
9000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001  (exit $ac_status); }; } &&
9002	 { ac_try='test -s conftest.$ac_objext'
9003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004  (eval $ac_try) 2>&5
9005  ac_status=$?
9006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007  (exit $ac_status); }; }; then
9008   ac_cv_have___ss_family_in_struct_ss="yes"
9009else
9010  echo "$as_me: failed program was:" >&5
9011sed 's/^/| /' conftest.$ac_ext >&5
9012
9013 ac_cv_have___ss_family_in_struct_ss="no"
9014
9015fi
9016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9017
9018fi
9019echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
9020echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
9021if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
9022
9023cat >>confdefs.h <<\_ACEOF
9024#define HAVE___SS_FAMILY_IN_SS 1
9025_ACEOF
9026
9027fi
9028
9029echo "$as_me:$LINENO: checking for pid_t" >&5
9030echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9031if test "${ac_cv_have_pid_t+set}" = set; then
9032  echo $ECHO_N "(cached) $ECHO_C" >&6
9033else
9034
9035        cat >conftest.$ac_ext <<_ACEOF
9036/* confdefs.h.  */
9037_ACEOF
9038cat confdefs.h >>conftest.$ac_ext
9039cat >>conftest.$ac_ext <<_ACEOF
9040/* end confdefs.h.  */
9041
9042#include <sys/types.h>
9043
9044int
9045main ()
9046{
9047 pid_t foo; foo = 1235;
9048  ;
9049  return 0;
9050}
9051_ACEOF
9052rm -f conftest.$ac_objext
9053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9054  (eval $ac_compile) 2>conftest.er1
9055  ac_status=$?
9056  grep -v '^ *+' conftest.er1 >conftest.err
9057  rm -f conftest.er1
9058  cat conftest.err >&5
9059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060  (exit $ac_status); } &&
9061	 { ac_try='test -z "$ac_c_werror_flag"
9062			 || test ! -s conftest.err'
9063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064  (eval $ac_try) 2>&5
9065  ac_status=$?
9066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067  (exit $ac_status); }; } &&
9068	 { ac_try='test -s conftest.$ac_objext'
9069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070  (eval $ac_try) 2>&5
9071  ac_status=$?
9072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073  (exit $ac_status); }; }; then
9074   ac_cv_have_pid_t="yes"
9075else
9076  echo "$as_me: failed program was:" >&5
9077sed 's/^/| /' conftest.$ac_ext >&5
9078
9079 ac_cv_have_pid_t="no"
9080
9081fi
9082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9083
9084fi
9085echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
9086echo "${ECHO_T}$ac_cv_have_pid_t" >&6
9087if test "x$ac_cv_have_pid_t" = "xyes" ; then
9088
9089cat >>confdefs.h <<\_ACEOF
9090#define HAVE_PID_T 1
9091_ACEOF
9092
9093fi
9094
9095echo "$as_me:$LINENO: checking if libc defines __progname" >&5
9096echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6
9097if test "${ac_cv_libc_defines___progname+set}" = set; then
9098  echo $ECHO_N "(cached) $ECHO_C" >&6
9099else
9100
9101	cat >conftest.$ac_ext <<_ACEOF
9102/* confdefs.h.  */
9103_ACEOF
9104cat confdefs.h >>conftest.$ac_ext
9105cat >>conftest.$ac_ext <<_ACEOF
9106/* end confdefs.h.  */
9107
9108int
9109main ()
9110{
9111 extern char *__progname; printf("%s", __progname);
9112  ;
9113  return 0;
9114}
9115_ACEOF
9116rm -f conftest.$ac_objext conftest$ac_exeext
9117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118  (eval $ac_link) 2>conftest.er1
9119  ac_status=$?
9120  grep -v '^ *+' conftest.er1 >conftest.err
9121  rm -f conftest.er1
9122  cat conftest.err >&5
9123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124  (exit $ac_status); } &&
9125	 { ac_try='test -z "$ac_c_werror_flag"
9126			 || test ! -s conftest.err'
9127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128  (eval $ac_try) 2>&5
9129  ac_status=$?
9130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131  (exit $ac_status); }; } &&
9132	 { ac_try='test -s conftest$ac_exeext'
9133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134  (eval $ac_try) 2>&5
9135  ac_status=$?
9136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137  (exit $ac_status); }; }; then
9138   ac_cv_libc_defines___progname="yes"
9139else
9140  echo "$as_me: failed program was:" >&5
9141sed 's/^/| /' conftest.$ac_ext >&5
9142
9143 ac_cv_libc_defines___progname="no"
9144
9145fi
9146rm -f conftest.err conftest.$ac_objext \
9147      conftest$ac_exeext conftest.$ac_ext
9148
9149fi
9150echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
9151echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6
9152if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
9153
9154cat >>confdefs.h <<\_ACEOF
9155#define HAVE___PROGNAME 1
9156_ACEOF
9157
9158fi
9159
9160
9161echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
9162echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6
9163if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
9164  echo $ECHO_N "(cached) $ECHO_C" >&6
9165else
9166
9167	cat >conftest.$ac_ext <<_ACEOF
9168/* confdefs.h.  */
9169_ACEOF
9170cat confdefs.h >>conftest.$ac_ext
9171cat >>conftest.$ac_ext <<_ACEOF
9172/* end confdefs.h.  */
9173
9174int
9175main ()
9176{
9177 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
9178  ;
9179  return 0;
9180}
9181_ACEOF
9182rm -f conftest.$ac_objext conftest$ac_exeext
9183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184  (eval $ac_link) 2>conftest.er1
9185  ac_status=$?
9186  grep -v '^ *+' conftest.er1 >conftest.err
9187  rm -f conftest.er1
9188  cat conftest.err >&5
9189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190  (exit $ac_status); } &&
9191	 { ac_try='test -z "$ac_c_werror_flag"
9192			 || test ! -s conftest.err'
9193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194  (eval $ac_try) 2>&5
9195  ac_status=$?
9196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197  (exit $ac_status); }; } &&
9198	 { ac_try='test -s conftest$ac_exeext'
9199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200  (eval $ac_try) 2>&5
9201  ac_status=$?
9202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203  (exit $ac_status); }; }; then
9204   ac_cv_libc_defines_sys_errlist="yes"
9205else
9206  echo "$as_me: failed program was:" >&5
9207sed 's/^/| /' conftest.$ac_ext >&5
9208
9209 ac_cv_libc_defines_sys_errlist="no"
9210
9211fi
9212rm -f conftest.err conftest.$ac_objext \
9213      conftest$ac_exeext conftest.$ac_ext
9214
9215fi
9216echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
9217echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6
9218if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
9219
9220cat >>confdefs.h <<\_ACEOF
9221#define HAVE_SYS_ERRLIST 1
9222_ACEOF
9223
9224fi
9225
9226
9227echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
9228echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6
9229if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
9230  echo $ECHO_N "(cached) $ECHO_C" >&6
9231else
9232
9233	cat >conftest.$ac_ext <<_ACEOF
9234/* confdefs.h.  */
9235_ACEOF
9236cat confdefs.h >>conftest.$ac_ext
9237cat >>conftest.$ac_ext <<_ACEOF
9238/* end confdefs.h.  */
9239
9240int
9241main ()
9242{
9243 extern int sys_nerr; printf("%i", sys_nerr);
9244  ;
9245  return 0;
9246}
9247_ACEOF
9248rm -f conftest.$ac_objext conftest$ac_exeext
9249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250  (eval $ac_link) 2>conftest.er1
9251  ac_status=$?
9252  grep -v '^ *+' conftest.er1 >conftest.err
9253  rm -f conftest.er1
9254  cat conftest.err >&5
9255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256  (exit $ac_status); } &&
9257	 { ac_try='test -z "$ac_c_werror_flag"
9258			 || test ! -s conftest.err'
9259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260  (eval $ac_try) 2>&5
9261  ac_status=$?
9262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263  (exit $ac_status); }; } &&
9264	 { ac_try='test -s conftest$ac_exeext'
9265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266  (eval $ac_try) 2>&5
9267  ac_status=$?
9268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269  (exit $ac_status); }; }; then
9270   ac_cv_libc_defines_sys_nerr="yes"
9271else
9272  echo "$as_me: failed program was:" >&5
9273sed 's/^/| /' conftest.$ac_ext >&5
9274
9275 ac_cv_libc_defines_sys_nerr="no"
9276
9277fi
9278rm -f conftest.err conftest.$ac_objext \
9279      conftest$ac_exeext conftest.$ac_ext
9280
9281fi
9282echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
9283echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6
9284if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
9285
9286cat >>confdefs.h <<\_ACEOF
9287#define HAVE_SYS_NERR 1
9288_ACEOF
9289
9290fi
9291
9292for i in `grep "SP_....._VERSION" ${srcdir}/daemon/spread_params.h | sed -e 's/#define//g' -e 's/[ 	]//g' -e 's/VERSION/VERSION=/g;'`
9293do
9294  eval $i
9295done
9296echo "$as_me:$LINENO: checking Check Spread's major version" >&5
9297echo $ECHO_N "checking Check Spread's major version... $ECHO_C" >&6
9298echo "$as_me:$LINENO: result: $SP_MAJOR_VERSION" >&5
9299echo "${ECHO_T}$SP_MAJOR_VERSION" >&6
9300
9301echo "$as_me:$LINENO: checking Check Spread's minor version" >&5
9302echo $ECHO_N "checking Check Spread's minor version... $ECHO_C" >&6
9303echo "$as_me:$LINENO: result: $SP_MINOR_VERSION" >&5
9304echo "${ECHO_T}$SP_MINOR_VERSION" >&6
9305
9306echo "$as_me:$LINENO: checking Check Spread's patch version" >&5
9307echo $ECHO_N "checking Check Spread's patch version... $ECHO_C" >&6
9308echo "$as_me:$LINENO: result: $SP_PATCH_VERSION" >&5
9309echo "${ECHO_T}$SP_PATCH_VERSION" >&6
9310
9311
9312# Options from here on. Some of these are preset by platform above
9313
9314
9315# Check whether --with-catman or --without-catman was given.
9316if test "${with_catman+set}" = set; then
9317  withval="$with_catman"
9318
9319		case "$withval" in
9320		man|cat|doc)
9321			MANTYPE=$withval
9322			;;
9323		*)
9324			{ { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
9325echo "$as_me: error: invalid man type: $withval" >&2;}
9326   { (exit 1); exit 1; }; }
9327			;;
9328		esac
9329
9330
9331fi;
9332if test -z "$MANTYPE"; then
9333	for ac_prog in nroff awf
9334do
9335  # Extract the first word of "$ac_prog", so it can be a program name with args.
9336set dummy $ac_prog; ac_word=$2
9337echo "$as_me:$LINENO: checking for $ac_word" >&5
9338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9339if test "${ac_cv_path_NROFF+set}" = set; then
9340  echo $ECHO_N "(cached) $ECHO_C" >&6
9341else
9342  case $NROFF in
9343  [\\/]* | ?:[\\/]*)
9344  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
9345  ;;
9346  *)
9347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9348as_dummy="/usr/bin:/usr/ucb"
9349for as_dir in $as_dummy
9350do
9351  IFS=$as_save_IFS
9352  test -z "$as_dir" && as_dir=.
9353  for ac_exec_ext in '' $ac_executable_extensions; do
9354  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9355    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
9356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9357    break 2
9358  fi
9359done
9360done
9361
9362  ;;
9363esac
9364fi
9365NROFF=$ac_cv_path_NROFF
9366
9367if test -n "$NROFF"; then
9368  echo "$as_me:$LINENO: result: $NROFF" >&5
9369echo "${ECHO_T}$NROFF" >&6
9370else
9371  echo "$as_me:$LINENO: result: no" >&5
9372echo "${ECHO_T}no" >&6
9373fi
9374
9375  test -n "$NROFF" && break
9376done
9377test -n "$NROFF" || NROFF="/bin/false"
9378
9379	if ${NROFF} -mdoc ${srcdir}/docs/spread.1 >/dev/null 2>&1; then
9380		MANTYPE=doc
9381	elif ${NROFF} -man ${srcdir}/docs/spread.1 >/dev/null 2>&1; then
9382		MANTYPE=man
9383	else
9384		MANTYPE=cat
9385	fi
9386fi
9387
9388if test "$MANTYPE" = "doc"; then
9389	mansubdir=man;
9390else
9391	mansubdir=$MANTYPE;
9392fi
9393
9394
9395# Where to place spread.pid
9396piddir=/var/run
9397
9398# Check whether --with-pid-dir or --without-pid-dir was given.
9399if test "${with_pid_dir+set}" = set; then
9400  withval="$with_pid_dir"
9401
9402		if test "x$withval" != "xno" ; then
9403			piddir=$withval
9404		fi
9405
9406
9407fi;
9408
9409# make sure the directory exists
9410if test ! -d $piddir ; then
9411	piddir=`eval echo ${sysconfdir}`
9412	case $piddir in
9413 		NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
9414	esac
9415fi
9416
9417
9418cat >>confdefs.h <<_ACEOF
9419#define _PATH_SPREAD_PIDDIR "$piddir"
9420_ACEOF
9421
9422
9423
9424# Where to place spread.pid
9425unixsocketdir=/tmp
9426
9427# Check whether --with-unix-socket-dir or --without-unix-socket-dir was given.
9428if test "${with_unix_socket_dir+set}" = set; then
9429  withval="$with_unix_socket_dir"
9430
9431		if test "x$withval" != "xno" ; then
9432			unixsocketdir=$withval
9433		fi
9434
9435
9436fi;
9437
9438# make sure the directory exists
9439if test ! -d $unixsocketdir ; then
9440	piddir=`eval echo ${sysconfdir}`
9441	case $unixsocketdir in
9442 		NONE/*) unixsocketdir=`echo $unixsocketdir | sed "s~NONE~$ac_default_prefix~"` ;;
9443	esac
9444fi
9445
9446
9447cat >>confdefs.h <<_ACEOF
9448#define SP_UNIX_SOCKET "$unixsocketdir"
9449_ACEOF
9450
9451
9452# Where to find spread.conf and other config files
9453etcdir=`eval echo ${sysconfdir}`
9454case $etcdir in
9455	NONE/*) etcdir=`echo $etcdir | sed "s~NONE~$ac_default_prefix~"` ;;
9456esac
9457
9458
9459cat >>confdefs.h <<_ACEOF
9460#define SPREAD_ETCDIR "$etcdir"
9461_ACEOF
9462
9463
9464# autoconf does not have docdir option, so add one
9465
9466# Check whether --with-docdir or --without-docdir was given.
9467if test "${with_docdir+set}" = set; then
9468  withval="$with_docdir"
9469
9470		if test "x$withval" = xyes || test "x$withval" = xno; then
9471		   docdir='${datadir}/doc/spread'
9472		else
9473		   docdir="$withval"
9474		fi
9475
9476else
9477
9478	  docdir='${datadir}/doc/spread'
9479
9480
9481fi;
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492LIBSPSO=none
9493LIBSPCORESO=none
9494LIBTSPCORESO=none
9495case "$host" in
9496*-*-darwin*)
9497	SHCC=$CC
9498	SHCFLAGS="$CFLAGS -fPIC -fno-common"
9499	SHCPPFLAGS="$CPPFLAGS"
9500	SHLD="$CC -dynamiclib"
9501	SHLDFLAGS="$SHLDFLAGS $LDFLAGS"
9502	SHLIBS=$LIBS
9503	SHLDOPTION="-Wl,"
9504	SHLDNAME="-headerpad_max_install_names -install_name "
9505	SHLDCONVERTSTATIC=
9506	SHLDCONVERTSTATICEND=
9507	LIBSPSO="libspread.dylib"
9508	LIBSPCORESO="libspread-core.dylib"
9509	LIBTSPCORESO="libtspread-core.dylib"
9510        ;;
9511mips-sgi-irix*)
9512	LIBSPSO=none
9513	LIBSPCORESO=none
9514	LIBTSPCORESO=none
9515	;;
9516*-*-solaris*)
9517	SHCC=$CC
9518	SHCFLAGS="$CFLAGS -fPIC"
9519	SHCPPFLAGS="$CPPFLAGS"
9520	SHLD="$CC -shared"
9521	SHLDFLAGS="$SHLDFLAGS $LDFLAGS"
9522	SHLIBS=$LIBS
9523	SHLDOPTION="-Wl,"
9524	SHLDNAME="-h,"
9525	SHLDCONVERTSTATIC="-Wl,-whole-archive"
9526	SHLDCONVERTSTATICEND="-Wl,-no-whole-archive"
9527	LIBSPSO="libspread.so"
9528	LIBSPCORESO="libspread-core.so"
9529	LIBTSPCORESO="libtspread-core.so"
9530	;;
9531*-*-*)
9532	SHCC=$CC
9533	SHCFLAGS="$CFLAGS -fPIC"
9534	SHCPPFLAGS="$CPPFLAGS"
9535	SHLD="$CC -shared"
9536	SHLDFLAGS="$SHLDFLAGS $LDFLAGS"
9537	SHLIBS=$LIBS
9538	SHLDOPTION="-Wl,"
9539	SHLDNAME="-soname,"
9540	SHLDCONVERTSTATIC="-Wl,-whole-archive"
9541	SHLDCONVERTSTATICEND="-Wl,-no-whole-archive"
9542	LIBSPSO="libspread.so"
9543	LIBSPCORESO="libspread-core.so"
9544	LIBTSPCORESO="libtspread-core.so"
9545	;;
9546esac
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562echo "Spread srcdir: $srcdir"
9563
9564if test ! "$srcdir" = "." ; then
9565   ac_sources="stdutil/Makefile"
9566ac_dests="stdutil/Makefile"
9567while test -n "$ac_sources"; do
9568  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9569  set $ac_sources; ac_source=$1; shift; ac_sources=$*
9570  ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
9571done
9572          ac_config_links="$ac_config_links $ac_config_links_1"
9573
9574fi
9575
9576                                                  ac_config_files="$ac_config_files Makefile daemon/Makefile docs/Makefile libspread/Makefile examples/Makefile"
9577cat >confcache <<\_ACEOF
9578# This file is a shell script that caches the results of configure
9579# tests run on this system so they can be shared between configure
9580# scripts and configure runs, see configure's option --config-cache.
9581# It is not useful on other systems.  If it contains results you don't
9582# want to keep, you may remove or edit it.
9583#
9584# config.status only pays attention to the cache file if you give it
9585# the --recheck option to rerun configure.
9586#
9587# `ac_cv_env_foo' variables (set or unset) will be overridden when
9588# loading this file, other *unset* `ac_cv_foo' will be assigned the
9589# following values.
9590
9591_ACEOF
9592
9593# The following way of writing the cache mishandles newlines in values,
9594# but we know of no workaround that is simple, portable, and efficient.
9595# So, don't put newlines in cache variables' values.
9596# Ultrix sh set writes to stderr and can't be redirected directly,
9597# and sets the high bit in the cache file unless we assign to the vars.
9598{
9599  (set) 2>&1 |
9600    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9601    *ac_space=\ *)
9602      # `set' does not quote correctly, so add quotes (double-quote
9603      # substitution turns \\\\ into \\, and sed turns \\ into \).
9604      sed -n \
9605	"s/'/'\\\\''/g;
9606	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9607      ;;
9608    *)
9609      # `set' quotes correctly as required by POSIX, so do not add quotes.
9610      sed -n \
9611	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9612      ;;
9613    esac;
9614} |
9615  sed '
9616     t clear
9617     : clear
9618     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9619     t end
9620     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9621     : end' >>confcache
9622if diff $cache_file confcache >/dev/null 2>&1; then :; else
9623  if test -w $cache_file; then
9624    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9625    cat confcache >$cache_file
9626  else
9627    echo "not updating unwritable cache $cache_file"
9628  fi
9629fi
9630rm -f confcache
9631
9632test "x$prefix" = xNONE && prefix=$ac_default_prefix
9633# Let make expand exec_prefix.
9634test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9635
9636# VPATH may cause trouble with some makes, so we remove $(srcdir),
9637# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9638# trailing colons and then remove the whole line if VPATH becomes empty
9639# (actually we leave an empty line to preserve line numbers).
9640if test "x$srcdir" = x.; then
9641  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
9642s/:*\$(srcdir):*/:/;
9643s/:*\${srcdir}:*/:/;
9644s/:*@srcdir@:*/:/;
9645s/^\([^=]*=[	 ]*\):*/\1/;
9646s/:*$//;
9647s/^[^=]*=[	 ]*$//;
9648}'
9649fi
9650
9651DEFS=-DHAVE_CONFIG_H
9652
9653ac_libobjs=
9654ac_ltlibobjs=
9655for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9656  # 1. Remove the extension, and $U if already installed.
9657  ac_i=`echo "$ac_i" |
9658	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9659  # 2. Add them.
9660  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9661  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9662done
9663LIBOBJS=$ac_libobjs
9664
9665LTLIBOBJS=$ac_ltlibobjs
9666
9667
9668
9669: ${CONFIG_STATUS=./config.status}
9670ac_clean_files_save=$ac_clean_files
9671ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9672{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9673echo "$as_me: creating $CONFIG_STATUS" >&6;}
9674cat >$CONFIG_STATUS <<_ACEOF
9675#! $SHELL
9676# Generated by $as_me.
9677# Run this file to recreate the current configuration.
9678# Compiler output produced by configure, useful for debugging
9679# configure, is in config.log if it exists.
9680
9681debug=false
9682ac_cs_recheck=false
9683ac_cs_silent=false
9684SHELL=\${CONFIG_SHELL-$SHELL}
9685_ACEOF
9686
9687cat >>$CONFIG_STATUS <<\_ACEOF
9688## --------------------- ##
9689## M4sh Initialization.  ##
9690## --------------------- ##
9691
9692# Be Bourne compatible
9693if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9694  emulate sh
9695  NULLCMD=:
9696  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9697  # is contrary to our usage.  Disable this feature.
9698  alias -g '${1+"$@"}'='"$@"'
9699elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9700  set -o posix
9701fi
9702DUALCASE=1; export DUALCASE # for MKS sh
9703
9704# Support unset when possible.
9705if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9706  as_unset=unset
9707else
9708  as_unset=false
9709fi
9710
9711
9712# Work around bugs in pre-3.0 UWIN ksh.
9713$as_unset ENV MAIL MAILPATH
9714PS1='$ '
9715PS2='> '
9716PS4='+ '
9717
9718# NLS nuisances.
9719for as_var in \
9720  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9721  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9722  LC_TELEPHONE LC_TIME
9723do
9724  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9725    eval $as_var=C; export $as_var
9726  else
9727    $as_unset $as_var
9728  fi
9729done
9730
9731# Required to use basename.
9732if expr a : '\(a\)' >/dev/null 2>&1; then
9733  as_expr=expr
9734else
9735  as_expr=false
9736fi
9737
9738if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9739  as_basename=basename
9740else
9741  as_basename=false
9742fi
9743
9744
9745# Name of the executable.
9746as_me=`$as_basename "$0" ||
9747$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9748	 X"$0" : 'X\(//\)$' \| \
9749	 X"$0" : 'X\(/\)$' \| \
9750	 .     : '\(.\)' 2>/dev/null ||
9751echo X/"$0" |
9752    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9753  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
9754  	  /^X\/\(\/\).*/{ s//\1/; q; }
9755  	  s/.*/./; q'`
9756
9757
9758# PATH needs CR, and LINENO needs CR and PATH.
9759# Avoid depending upon Character Ranges.
9760as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9761as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9762as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9763as_cr_digits='0123456789'
9764as_cr_alnum=$as_cr_Letters$as_cr_digits
9765
9766# The user is always right.
9767if test "${PATH_SEPARATOR+set}" != set; then
9768  echo "#! /bin/sh" >conf$$.sh
9769  echo  "exit 0"   >>conf$$.sh
9770  chmod +x conf$$.sh
9771  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9772    PATH_SEPARATOR=';'
9773  else
9774    PATH_SEPARATOR=:
9775  fi
9776  rm -f conf$$.sh
9777fi
9778
9779
9780  as_lineno_1=$LINENO
9781  as_lineno_2=$LINENO
9782  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9783  test "x$as_lineno_1" != "x$as_lineno_2" &&
9784  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9785  # Find who we are.  Look in the path if we contain no path at all
9786  # relative or not.
9787  case $0 in
9788    *[\\/]* ) as_myself=$0 ;;
9789    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790for as_dir in $PATH
9791do
9792  IFS=$as_save_IFS
9793  test -z "$as_dir" && as_dir=.
9794  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9795done
9796
9797       ;;
9798  esac
9799  # We did not find ourselves, most probably we were run as `sh COMMAND'
9800  # in which case we are not to be found in the path.
9801  if test "x$as_myself" = x; then
9802    as_myself=$0
9803  fi
9804  if test ! -f "$as_myself"; then
9805    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9806echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9807   { (exit 1); exit 1; }; }
9808  fi
9809  case $CONFIG_SHELL in
9810  '')
9811    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9813do
9814  IFS=$as_save_IFS
9815  test -z "$as_dir" && as_dir=.
9816  for as_base in sh bash ksh sh5; do
9817	 case $as_dir in
9818	 /*)
9819	   if ("$as_dir/$as_base" -c '
9820  as_lineno_1=$LINENO
9821  as_lineno_2=$LINENO
9822  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9823  test "x$as_lineno_1" != "x$as_lineno_2" &&
9824  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9825	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9826	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9827	     CONFIG_SHELL=$as_dir/$as_base
9828	     export CONFIG_SHELL
9829	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9830	   fi;;
9831	 esac
9832       done
9833done
9834;;
9835  esac
9836
9837  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9838  # uniformly replaced by the line number.  The first 'sed' inserts a
9839  # line-number line before each line; the second 'sed' does the real
9840  # work.  The second script uses 'N' to pair each line-number line
9841  # with the numbered line, and appends trailing '-' during
9842  # substitution so that $LINENO is not a special case at line end.
9843  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9844  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9845  sed '=' <$as_myself |
9846    sed '
9847      N
9848      s,$,-,
9849      : loop
9850      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9851      t loop
9852      s,-$,,
9853      s,^['$as_cr_digits']*\n,,
9854    ' >$as_me.lineno &&
9855  chmod +x $as_me.lineno ||
9856    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9857echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9858   { (exit 1); exit 1; }; }
9859
9860  # Don't try to exec as it changes $[0], causing all sort of problems
9861  # (the dirname of $[0] is not the place where we might find the
9862  # original and so on.  Autoconf is especially sensible to this).
9863  . ./$as_me.lineno
9864  # Exit status is that of the last command.
9865  exit
9866}
9867
9868
9869case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9870  *c*,-n*) ECHO_N= ECHO_C='
9871' ECHO_T='	' ;;
9872  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9873  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9874esac
9875
9876if expr a : '\(a\)' >/dev/null 2>&1; then
9877  as_expr=expr
9878else
9879  as_expr=false
9880fi
9881
9882rm -f conf$$ conf$$.exe conf$$.file
9883echo >conf$$.file
9884if ln -s conf$$.file conf$$ 2>/dev/null; then
9885  # We could just check for DJGPP; but this test a) works b) is more generic
9886  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9887  if test -f conf$$.exe; then
9888    # Don't use ln at all; we don't have any links
9889    as_ln_s='cp -p'
9890  else
9891    as_ln_s='ln -s'
9892  fi
9893elif ln conf$$.file conf$$ 2>/dev/null; then
9894  as_ln_s=ln
9895else
9896  as_ln_s='cp -p'
9897fi
9898rm -f conf$$ conf$$.exe conf$$.file
9899
9900if mkdir -p . 2>/dev/null; then
9901  as_mkdir_p=:
9902else
9903  test -d ./-p && rmdir ./-p
9904  as_mkdir_p=false
9905fi
9906
9907as_executable_p="test -f"
9908
9909# Sed expression to map a string onto a valid CPP name.
9910as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9911
9912# Sed expression to map a string onto a valid variable name.
9913as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9914
9915
9916# IFS
9917# We need space, tab and new line, in precisely that order.
9918as_nl='
9919'
9920IFS=" 	$as_nl"
9921
9922# CDPATH.
9923$as_unset CDPATH
9924
9925exec 6>&1
9926
9927# Open the log real soon, to keep \$[0] and so on meaningful, and to
9928# report actual input values of CONFIG_FILES etc. instead of their
9929# values after options handling.  Logging --version etc. is OK.
9930exec 5>>config.log
9931{
9932  echo
9933  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9934## Running $as_me. ##
9935_ASBOX
9936} >&5
9937cat >&5 <<_CSEOF
9938
9939This file was extended by Spread $as_me 4.2.0, which was
9940generated by GNU Autoconf 2.59.  Invocation command line was
9941
9942  CONFIG_FILES    = $CONFIG_FILES
9943  CONFIG_HEADERS  = $CONFIG_HEADERS
9944  CONFIG_LINKS    = $CONFIG_LINKS
9945  CONFIG_COMMANDS = $CONFIG_COMMANDS
9946  $ $0 $@
9947
9948_CSEOF
9949echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9950echo >&5
9951_ACEOF
9952
9953# Files that config.status was made for.
9954if test -n "$ac_config_files"; then
9955  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9956fi
9957
9958if test -n "$ac_config_headers"; then
9959  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9960fi
9961
9962if test -n "$ac_config_links"; then
9963  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9964fi
9965
9966if test -n "$ac_config_commands"; then
9967  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9968fi
9969
9970cat >>$CONFIG_STATUS <<\_ACEOF
9971
9972ac_cs_usage="\
9973\`$as_me' instantiates files from templates according to the
9974current configuration.
9975
9976Usage: $0 [OPTIONS] [FILE]...
9977
9978  -h, --help       print this help, then exit
9979  -V, --version    print version number, then exit
9980  -q, --quiet      do not print progress messages
9981  -d, --debug      don't remove temporary files
9982      --recheck    update $as_me by reconfiguring in the same conditions
9983  --file=FILE[:TEMPLATE]
9984		   instantiate the configuration file FILE
9985  --header=FILE[:TEMPLATE]
9986		   instantiate the configuration header FILE
9987
9988Configuration files:
9989$config_files
9990
9991Configuration headers:
9992$config_headers
9993
9994Configuration links:
9995$config_links
9996
9997Report bugs to <bug-autoconf@gnu.org>."
9998_ACEOF
9999
10000cat >>$CONFIG_STATUS <<_ACEOF
10001ac_cs_version="\\
10002Spread config.status 4.2.0
10003configured by $0, generated by GNU Autoconf 2.59,
10004  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10005
10006Copyright (C) 2003 Free Software Foundation, Inc.
10007This config.status script is free software; the Free Software Foundation
10008gives unlimited permission to copy, distribute and modify it."
10009srcdir=$srcdir
10010INSTALL="$INSTALL"
10011_ACEOF
10012
10013cat >>$CONFIG_STATUS <<\_ACEOF
10014# If no file are specified by the user, then we need to provide default
10015# value.  By we need to know if files were specified by the user.
10016ac_need_defaults=:
10017while test $# != 0
10018do
10019  case $1 in
10020  --*=*)
10021    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10022    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10023    ac_shift=:
10024    ;;
10025  -*)
10026    ac_option=$1
10027    ac_optarg=$2
10028    ac_shift=shift
10029    ;;
10030  *) # This is not an option, so the user has probably given explicit
10031     # arguments.
10032     ac_option=$1
10033     ac_need_defaults=false;;
10034  esac
10035
10036  case $ac_option in
10037  # Handling of the options.
10038_ACEOF
10039cat >>$CONFIG_STATUS <<\_ACEOF
10040  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10041    ac_cs_recheck=: ;;
10042  --version | --vers* | -V )
10043    echo "$ac_cs_version"; exit 0 ;;
10044  --he | --h)
10045    # Conflict between --help and --header
10046    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10047Try \`$0 --help' for more information." >&5
10048echo "$as_me: error: ambiguous option: $1
10049Try \`$0 --help' for more information." >&2;}
10050   { (exit 1); exit 1; }; };;
10051  --help | --hel | -h )
10052    echo "$ac_cs_usage"; exit 0 ;;
10053  --debug | --d* | -d )
10054    debug=: ;;
10055  --file | --fil | --fi | --f )
10056    $ac_shift
10057    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10058    ac_need_defaults=false;;
10059  --header | --heade | --head | --hea )
10060    $ac_shift
10061    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10062    ac_need_defaults=false;;
10063  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10064  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10065    ac_cs_silent=: ;;
10066
10067  # This is an error.
10068  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10069Try \`$0 --help' for more information." >&5
10070echo "$as_me: error: unrecognized option: $1
10071Try \`$0 --help' for more information." >&2;}
10072   { (exit 1); exit 1; }; } ;;
10073
10074  *) ac_config_targets="$ac_config_targets $1" ;;
10075
10076  esac
10077  shift
10078done
10079
10080ac_configure_extra_args=
10081
10082if $ac_cs_silent; then
10083  exec 6>/dev/null
10084  ac_configure_extra_args="$ac_configure_extra_args --silent"
10085fi
10086
10087_ACEOF
10088cat >>$CONFIG_STATUS <<_ACEOF
10089if \$ac_cs_recheck; then
10090  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10091  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10092fi
10093
10094_ACEOF
10095
10096
10097
10098
10099
10100cat >>$CONFIG_STATUS <<\_ACEOF
10101for ac_config_target in $ac_config_targets
10102do
10103  case "$ac_config_target" in
10104  # Handling of arguments.
10105  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10106  "daemon/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;;
10107  "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
10108  "libspread/Makefile" ) CONFIG_FILES="$CONFIG_FILES libspread/Makefile" ;;
10109  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
10110  "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
10111  "daemon/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS daemon/config.h" ;;
10112  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10113echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10114   { (exit 1); exit 1; }; };;
10115  esac
10116done
10117
10118# If the user did not use the arguments to specify the items to instantiate,
10119# then the envvar interface is used.  Set only those that are not.
10120# We use the long form for the default assignment because of an extremely
10121# bizarre bug on SunOS 4.1.3.
10122if $ac_need_defaults; then
10123  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10124  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10125  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
10126fi
10127
10128# Have a temporary directory for convenience.  Make it in the build tree
10129# simply because there is no reason to put it here, and in addition,
10130# creating and moving files from /tmp can sometimes cause problems.
10131# Create a temporary directory, and hook for its removal unless debugging.
10132$debug ||
10133{
10134  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10135  trap '{ (exit 1); exit 1; }' 1 2 13 15
10136}
10137
10138# Create a (secure) tmp directory for tmp files.
10139
10140{
10141  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10142  test -n "$tmp" && test -d "$tmp"
10143}  ||
10144{
10145  tmp=./confstat$$-$RANDOM
10146  (umask 077 && mkdir $tmp)
10147} ||
10148{
10149   echo "$me: cannot create a temporary directory in ." >&2
10150   { (exit 1); exit 1; }
10151}
10152
10153_ACEOF
10154
10155cat >>$CONFIG_STATUS <<_ACEOF
10156
10157#
10158# CONFIG_FILES section.
10159#
10160
10161# No need to generate the scripts if there are no CONFIG_FILES.
10162# This happens for instance when ./config.status config.h
10163if test -n "\$CONFIG_FILES"; then
10164  # Protect against being on the right side of a sed subst in config.status.
10165  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10166   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10167s,@SHELL@,$SHELL,;t t
10168s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10169s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10170s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10171s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10172s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10173s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10174s,@exec_prefix@,$exec_prefix,;t t
10175s,@prefix@,$prefix,;t t
10176s,@program_transform_name@,$program_transform_name,;t t
10177s,@bindir@,$bindir,;t t
10178s,@sbindir@,$sbindir,;t t
10179s,@libexecdir@,$libexecdir,;t t
10180s,@datadir@,$datadir,;t t
10181s,@sysconfdir@,$sysconfdir,;t t
10182s,@sharedstatedir@,$sharedstatedir,;t t
10183s,@localstatedir@,$localstatedir,;t t
10184s,@libdir@,$libdir,;t t
10185s,@includedir@,$includedir,;t t
10186s,@oldincludedir@,$oldincludedir,;t t
10187s,@infodir@,$infodir,;t t
10188s,@mandir@,$mandir,;t t
10189s,@build_alias@,$build_alias,;t t
10190s,@host_alias@,$host_alias,;t t
10191s,@target_alias@,$target_alias,;t t
10192s,@DEFS@,$DEFS,;t t
10193s,@ECHO_C@,$ECHO_C,;t t
10194s,@ECHO_N@,$ECHO_N,;t t
10195s,@ECHO_T@,$ECHO_T,;t t
10196s,@LIBS@,$LIBS,;t t
10197s,@subdirs@,$subdirs,;t t
10198s,@build@,$build,;t t
10199s,@build_cpu@,$build_cpu,;t t
10200s,@build_vendor@,$build_vendor,;t t
10201s,@build_os@,$build_os,;t t
10202s,@host@,$host,;t t
10203s,@host_cpu@,$host_cpu,;t t
10204s,@host_vendor@,$host_vendor,;t t
10205s,@host_os@,$host_os,;t t
10206s,@CC@,$CC,;t t
10207s,@CFLAGS@,$CFLAGS,;t t
10208s,@LDFLAGS@,$LDFLAGS,;t t
10209s,@CPPFLAGS@,$CPPFLAGS,;t t
10210s,@ac_ct_CC@,$ac_ct_CC,;t t
10211s,@EXEEXT@,$EXEEXT,;t t
10212s,@OBJEXT@,$OBJEXT,;t t
10213s,@CPP@,$CPP,;t t
10214s,@RANLIB@,$RANLIB,;t t
10215s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10216s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10217s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10218s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10219s,@LN_S@,$LN_S,;t t
10220s,@YACC@,$YACC,;t t
10221s,@LEX@,$LEX,;t t
10222s,@AR@,$AR,;t t
10223s,@PERL@,$PERL,;t t
10224s,@LD@,$LD,;t t
10225s,@THLDFLAGS@,$THLDFLAGS,;t t
10226s,@THLIBS@,$THLIBS,;t t
10227s,@EGREP@,$EGREP,;t t
10228s,@SP_MAJOR_VERSION@,$SP_MAJOR_VERSION,;t t
10229s,@SP_MINOR_VERSION@,$SP_MINOR_VERSION,;t t
10230s,@SP_PATCH_VERSION@,$SP_PATCH_VERSION,;t t
10231s,@NROFF@,$NROFF,;t t
10232s,@MANTYPE@,$MANTYPE,;t t
10233s,@mansubdir@,$mansubdir,;t t
10234s,@piddir@,$piddir,;t t
10235s,@docdir@,$docdir,;t t
10236s,@SHCC@,$SHCC,;t t
10237s,@SHCFLAGS@,$SHCFLAGS,;t t
10238s,@SHCPPFLAGS@,$SHCPPFLAGS,;t t
10239s,@SHLD@,$SHLD,;t t
10240s,@SHLDFLAGS@,$SHLDFLAGS,;t t
10241s,@SHLIBS@,$SHLIBS,;t t
10242s,@LIBSPSO@,$LIBSPSO,;t t
10243s,@LIBSPCORESO@,$LIBSPCORESO,;t t
10244s,@LIBTSPCORESO@,$LIBTSPCORESO,;t t
10245s,@SHLDOPTION@,$SHLDOPTION,;t t
10246s,@SHLDNAME@,$SHLDNAME,;t t
10247s,@SHLDCONVERTSTATIC@,$SHLDCONVERTSTATIC,;t t
10248s,@SHLDCONVERTSTATICEND@,$SHLDCONVERTSTATICEND,;t t
10249s,@LIBOBJS@,$LIBOBJS,;t t
10250s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10251CEOF
10252
10253_ACEOF
10254
10255  cat >>$CONFIG_STATUS <<\_ACEOF
10256  # Split the substitutions into bite-sized pieces for seds with
10257  # small command number limits, like on Digital OSF/1 and HP-UX.
10258  ac_max_sed_lines=48
10259  ac_sed_frag=1 # Number of current file.
10260  ac_beg=1 # First line for current file.
10261  ac_end=$ac_max_sed_lines # Line after last line for current file.
10262  ac_more_lines=:
10263  ac_sed_cmds=
10264  while $ac_more_lines; do
10265    if test $ac_beg -gt 1; then
10266      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10267    else
10268      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10269    fi
10270    if test ! -s $tmp/subs.frag; then
10271      ac_more_lines=false
10272    else
10273      # The purpose of the label and of the branching condition is to
10274      # speed up the sed processing (if there are no `@' at all, there
10275      # is no need to browse any of the substitutions).
10276      # These are the two extra sed commands mentioned above.
10277      (echo ':t
10278  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10279      if test -z "$ac_sed_cmds"; then
10280	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10281      else
10282	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10283      fi
10284      ac_sed_frag=`expr $ac_sed_frag + 1`
10285      ac_beg=$ac_end
10286      ac_end=`expr $ac_end + $ac_max_sed_lines`
10287    fi
10288  done
10289  if test -z "$ac_sed_cmds"; then
10290    ac_sed_cmds=cat
10291  fi
10292fi # test -n "$CONFIG_FILES"
10293
10294_ACEOF
10295cat >>$CONFIG_STATUS <<\_ACEOF
10296for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10297  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10298  case $ac_file in
10299  - | *:- | *:-:* ) # input from stdin
10300	cat >$tmp/stdin
10301	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10302	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10303  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10304	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10305  * )   ac_file_in=$ac_file.in ;;
10306  esac
10307
10308  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10309  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10310$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10311	 X"$ac_file" : 'X\(//\)[^/]' \| \
10312	 X"$ac_file" : 'X\(//\)$' \| \
10313	 X"$ac_file" : 'X\(/\)' \| \
10314	 .     : '\(.\)' 2>/dev/null ||
10315echo X"$ac_file" |
10316    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10317  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10318  	  /^X\(\/\/\)$/{ s//\1/; q; }
10319  	  /^X\(\/\).*/{ s//\1/; q; }
10320  	  s/.*/./; q'`
10321  { if $as_mkdir_p; then
10322    mkdir -p "$ac_dir"
10323  else
10324    as_dir="$ac_dir"
10325    as_dirs=
10326    while test ! -d "$as_dir"; do
10327      as_dirs="$as_dir $as_dirs"
10328      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10330	 X"$as_dir" : 'X\(//\)[^/]' \| \
10331	 X"$as_dir" : 'X\(//\)$' \| \
10332	 X"$as_dir" : 'X\(/\)' \| \
10333	 .     : '\(.\)' 2>/dev/null ||
10334echo X"$as_dir" |
10335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10336  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10337  	  /^X\(\/\/\)$/{ s//\1/; q; }
10338  	  /^X\(\/\).*/{ s//\1/; q; }
10339  	  s/.*/./; q'`
10340    done
10341    test ! -n "$as_dirs" || mkdir $as_dirs
10342  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10343echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10344   { (exit 1); exit 1; }; }; }
10345
10346  ac_builddir=.
10347
10348if test "$ac_dir" != .; then
10349  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10350  # A "../" for each directory in $ac_dir_suffix.
10351  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10352else
10353  ac_dir_suffix= ac_top_builddir=
10354fi
10355
10356case $srcdir in
10357  .)  # No --srcdir option.  We are building in place.
10358    ac_srcdir=.
10359    if test -z "$ac_top_builddir"; then
10360       ac_top_srcdir=.
10361    else
10362       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10363    fi ;;
10364  [\\/]* | ?:[\\/]* )  # Absolute path.
10365    ac_srcdir=$srcdir$ac_dir_suffix;
10366    ac_top_srcdir=$srcdir ;;
10367  *) # Relative path.
10368    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10369    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10370esac
10371
10372# Do not use `cd foo && pwd` to compute absolute paths, because
10373# the directories may not exist.
10374case `pwd` in
10375.) ac_abs_builddir="$ac_dir";;
10376*)
10377  case "$ac_dir" in
10378  .) ac_abs_builddir=`pwd`;;
10379  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10380  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10381  esac;;
10382esac
10383case $ac_abs_builddir in
10384.) ac_abs_top_builddir=${ac_top_builddir}.;;
10385*)
10386  case ${ac_top_builddir}. in
10387  .) ac_abs_top_builddir=$ac_abs_builddir;;
10388  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10389  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10390  esac;;
10391esac
10392case $ac_abs_builddir in
10393.) ac_abs_srcdir=$ac_srcdir;;
10394*)
10395  case $ac_srcdir in
10396  .) ac_abs_srcdir=$ac_abs_builddir;;
10397  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10398  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10399  esac;;
10400esac
10401case $ac_abs_builddir in
10402.) ac_abs_top_srcdir=$ac_top_srcdir;;
10403*)
10404  case $ac_top_srcdir in
10405  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10406  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10407  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10408  esac;;
10409esac
10410
10411
10412  case $INSTALL in
10413  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10414  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10415  esac
10416
10417  if test x"$ac_file" != x-; then
10418    { echo "$as_me:$LINENO: creating $ac_file" >&5
10419echo "$as_me: creating $ac_file" >&6;}
10420    rm -f "$ac_file"
10421  fi
10422  # Let's still pretend it is `configure' which instantiates (i.e., don't
10423  # use $as_me), people would be surprised to read:
10424  #    /* config.h.  Generated by config.status.  */
10425  if test x"$ac_file" = x-; then
10426    configure_input=
10427  else
10428    configure_input="$ac_file.  "
10429  fi
10430  configure_input=$configure_input"Generated from `echo $ac_file_in |
10431				     sed 's,.*/,,'` by configure."
10432
10433  # First look for the input files in the build tree, otherwise in the
10434  # src tree.
10435  ac_file_inputs=`IFS=:
10436    for f in $ac_file_in; do
10437      case $f in
10438      -) echo $tmp/stdin ;;
10439      [\\/$]*)
10440	 # Absolute (can't be DOS-style, as IFS=:)
10441	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10442echo "$as_me: error: cannot find input file: $f" >&2;}
10443   { (exit 1); exit 1; }; }
10444	 echo "$f";;
10445      *) # Relative
10446	 if test -f "$f"; then
10447	   # Build tree
10448	   echo "$f"
10449	 elif test -f "$srcdir/$f"; then
10450	   # Source tree
10451	   echo "$srcdir/$f"
10452	 else
10453	   # /dev/null tree
10454	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10455echo "$as_me: error: cannot find input file: $f" >&2;}
10456   { (exit 1); exit 1; }; }
10457	 fi;;
10458      esac
10459    done` || { (exit 1); exit 1; }
10460_ACEOF
10461cat >>$CONFIG_STATUS <<_ACEOF
10462  sed "$ac_vpsub
10463$extrasub
10464_ACEOF
10465cat >>$CONFIG_STATUS <<\_ACEOF
10466:t
10467/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10468s,@configure_input@,$configure_input,;t t
10469s,@srcdir@,$ac_srcdir,;t t
10470s,@abs_srcdir@,$ac_abs_srcdir,;t t
10471s,@top_srcdir@,$ac_top_srcdir,;t t
10472s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10473s,@builddir@,$ac_builddir,;t t
10474s,@abs_builddir@,$ac_abs_builddir,;t t
10475s,@top_builddir@,$ac_top_builddir,;t t
10476s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10477s,@INSTALL@,$ac_INSTALL,;t t
10478" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10479  rm -f $tmp/stdin
10480  if test x"$ac_file" != x-; then
10481    mv $tmp/out $ac_file
10482  else
10483    cat $tmp/out
10484    rm -f $tmp/out
10485  fi
10486
10487done
10488_ACEOF
10489cat >>$CONFIG_STATUS <<\_ACEOF
10490
10491#
10492# CONFIG_HEADER section.
10493#
10494
10495# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10496# NAME is the cpp macro being defined and VALUE is the value it is being given.
10497#
10498# ac_d sets the value in "#define NAME VALUE" lines.
10499ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
10500ac_dB='[	 ].*$,\1#\2'
10501ac_dC=' '
10502ac_dD=',;t'
10503# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10504ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
10505ac_uB='$,\1#\2define\3'
10506ac_uC=' '
10507ac_uD=',;t'
10508
10509for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10510  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10511  case $ac_file in
10512  - | *:- | *:-:* ) # input from stdin
10513	cat >$tmp/stdin
10514	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10515	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10516  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10517	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10518  * )   ac_file_in=$ac_file.in ;;
10519  esac
10520
10521  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10522echo "$as_me: creating $ac_file" >&6;}
10523
10524  # First look for the input files in the build tree, otherwise in the
10525  # src tree.
10526  ac_file_inputs=`IFS=:
10527    for f in $ac_file_in; do
10528      case $f in
10529      -) echo $tmp/stdin ;;
10530      [\\/$]*)
10531	 # Absolute (can't be DOS-style, as IFS=:)
10532	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10533echo "$as_me: error: cannot find input file: $f" >&2;}
10534   { (exit 1); exit 1; }; }
10535	 # Do quote $f, to prevent DOS paths from being IFS'd.
10536	 echo "$f";;
10537      *) # Relative
10538	 if test -f "$f"; then
10539	   # Build tree
10540	   echo "$f"
10541	 elif test -f "$srcdir/$f"; then
10542	   # Source tree
10543	   echo "$srcdir/$f"
10544	 else
10545	   # /dev/null tree
10546	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10547echo "$as_me: error: cannot find input file: $f" >&2;}
10548   { (exit 1); exit 1; }; }
10549	 fi;;
10550      esac
10551    done` || { (exit 1); exit 1; }
10552  # Remove the trailing spaces.
10553  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
10554
10555_ACEOF
10556
10557# Transform confdefs.h into two sed scripts, `conftest.defines' and
10558# `conftest.undefs', that substitutes the proper values into
10559# config.h.in to produce config.h.  The first handles `#define'
10560# templates, and the second `#undef' templates.
10561# And first: Protect against being on the right side of a sed subst in
10562# config.status.  Protect against being in an unquoted here document
10563# in config.status.
10564rm -f conftest.defines conftest.undefs
10565# Using a here document instead of a string reduces the quoting nightmare.
10566# Putting comments in sed scripts is not portable.
10567#
10568# `end' is used to avoid that the second main sed command (meant for
10569# 0-ary CPP macros) applies to n-ary macro definitions.
10570# See the Autoconf documentation for `clear'.
10571cat >confdef2sed.sed <<\_ACEOF
10572s/[\\&,]/\\&/g
10573s,[\\$`],\\&,g
10574t clear
10575: clear
10576s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10577t end
10578s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10579: end
10580_ACEOF
10581# If some macros were called several times there might be several times
10582# the same #defines, which is useless.  Nevertheless, we may not want to
10583# sort them, since we want the *last* AC-DEFINE to be honored.
10584uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10585sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10586rm -f confdef2sed.sed
10587
10588# This sed command replaces #undef with comments.  This is necessary, for
10589# example, in the case of _POSIX_SOURCE, which is predefined and required
10590# on some systems where configure will not decide to define it.
10591cat >>conftest.undefs <<\_ACEOF
10592s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10593_ACEOF
10594
10595# Break up conftest.defines because some shells have a limit on the size
10596# of here documents, and old seds have small limits too (100 cmds).
10597echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10598echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10599echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10600echo '  :' >>$CONFIG_STATUS
10601rm -f conftest.tail
10602while grep . conftest.defines >/dev/null
10603do
10604  # Write a limited-size here document to $tmp/defines.sed.
10605  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10606  # Speed up: don't consider the non `#define' lines.
10607  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
10608  # Work around the forget-to-reset-the-flag bug.
10609  echo 't clr' >>$CONFIG_STATUS
10610  echo ': clr' >>$CONFIG_STATUS
10611  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10612  echo 'CEOF
10613  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10614  rm -f $tmp/in
10615  mv $tmp/out $tmp/in
10616' >>$CONFIG_STATUS
10617  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10618  rm -f conftest.defines
10619  mv conftest.tail conftest.defines
10620done
10621rm -f conftest.defines
10622echo '  fi # grep' >>$CONFIG_STATUS
10623echo >>$CONFIG_STATUS
10624
10625# Break up conftest.undefs because some shells have a limit on the size
10626# of here documents, and old seds have small limits too (100 cmds).
10627echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10628rm -f conftest.tail
10629while grep . conftest.undefs >/dev/null
10630do
10631  # Write a limited-size here document to $tmp/undefs.sed.
10632  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10633  # Speed up: don't consider the non `#undef'
10634  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
10635  # Work around the forget-to-reset-the-flag bug.
10636  echo 't clr' >>$CONFIG_STATUS
10637  echo ': clr' >>$CONFIG_STATUS
10638  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10639  echo 'CEOF
10640  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10641  rm -f $tmp/in
10642  mv $tmp/out $tmp/in
10643' >>$CONFIG_STATUS
10644  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10645  rm -f conftest.undefs
10646  mv conftest.tail conftest.undefs
10647done
10648rm -f conftest.undefs
10649
10650cat >>$CONFIG_STATUS <<\_ACEOF
10651  # Let's still pretend it is `configure' which instantiates (i.e., don't
10652  # use $as_me), people would be surprised to read:
10653  #    /* config.h.  Generated by config.status.  */
10654  if test x"$ac_file" = x-; then
10655    echo "/* Generated by configure.  */" >$tmp/config.h
10656  else
10657    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10658  fi
10659  cat $tmp/in >>$tmp/config.h
10660  rm -f $tmp/in
10661  if test x"$ac_file" != x-; then
10662    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10663      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10664echo "$as_me: $ac_file is unchanged" >&6;}
10665    else
10666      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10667$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10668	 X"$ac_file" : 'X\(//\)[^/]' \| \
10669	 X"$ac_file" : 'X\(//\)$' \| \
10670	 X"$ac_file" : 'X\(/\)' \| \
10671	 .     : '\(.\)' 2>/dev/null ||
10672echo X"$ac_file" |
10673    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10674  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10675  	  /^X\(\/\/\)$/{ s//\1/; q; }
10676  	  /^X\(\/\).*/{ s//\1/; q; }
10677  	  s/.*/./; q'`
10678      { if $as_mkdir_p; then
10679    mkdir -p "$ac_dir"
10680  else
10681    as_dir="$ac_dir"
10682    as_dirs=
10683    while test ! -d "$as_dir"; do
10684      as_dirs="$as_dir $as_dirs"
10685      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10687	 X"$as_dir" : 'X\(//\)[^/]' \| \
10688	 X"$as_dir" : 'X\(//\)$' \| \
10689	 X"$as_dir" : 'X\(/\)' \| \
10690	 .     : '\(.\)' 2>/dev/null ||
10691echo X"$as_dir" |
10692    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10693  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10694  	  /^X\(\/\/\)$/{ s//\1/; q; }
10695  	  /^X\(\/\).*/{ s//\1/; q; }
10696  	  s/.*/./; q'`
10697    done
10698    test ! -n "$as_dirs" || mkdir $as_dirs
10699  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10700echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10701   { (exit 1); exit 1; }; }; }
10702
10703      rm -f $ac_file
10704      mv $tmp/config.h $ac_file
10705    fi
10706  else
10707    cat $tmp/config.h
10708    rm -f $tmp/config.h
10709  fi
10710done
10711_ACEOF
10712cat >>$CONFIG_STATUS <<\_ACEOF
10713
10714#
10715# CONFIG_LINKS section.
10716#
10717
10718for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
10719  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10720  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10721
10722  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
10723echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
10724
10725  if test ! -r $srcdir/$ac_source; then
10726    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
10727echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
10728   { (exit 1); exit 1; }; }
10729  fi
10730  rm -f $ac_dest
10731
10732  # Make relative symlinks.
10733  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
10734$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10735	 X"$ac_dest" : 'X\(//\)[^/]' \| \
10736	 X"$ac_dest" : 'X\(//\)$' \| \
10737	 X"$ac_dest" : 'X\(/\)' \| \
10738	 .     : '\(.\)' 2>/dev/null ||
10739echo X"$ac_dest" |
10740    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10741  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10742  	  /^X\(\/\/\)$/{ s//\1/; q; }
10743  	  /^X\(\/\).*/{ s//\1/; q; }
10744  	  s/.*/./; q'`
10745  { if $as_mkdir_p; then
10746    mkdir -p "$ac_dest_dir"
10747  else
10748    as_dir="$ac_dest_dir"
10749    as_dirs=
10750    while test ! -d "$as_dir"; do
10751      as_dirs="$as_dir $as_dirs"
10752      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10753$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10754	 X"$as_dir" : 'X\(//\)[^/]' \| \
10755	 X"$as_dir" : 'X\(//\)$' \| \
10756	 X"$as_dir" : 'X\(/\)' \| \
10757	 .     : '\(.\)' 2>/dev/null ||
10758echo X"$as_dir" |
10759    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10760  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10761  	  /^X\(\/\/\)$/{ s//\1/; q; }
10762  	  /^X\(\/\).*/{ s//\1/; q; }
10763  	  s/.*/./; q'`
10764    done
10765    test ! -n "$as_dirs" || mkdir $as_dirs
10766  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
10767echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
10768   { (exit 1); exit 1; }; }; }
10769
10770  ac_builddir=.
10771
10772if test "$ac_dest_dir" != .; then
10773  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
10774  # A "../" for each directory in $ac_dir_suffix.
10775  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10776else
10777  ac_dir_suffix= ac_top_builddir=
10778fi
10779
10780case $srcdir in
10781  .)  # No --srcdir option.  We are building in place.
10782    ac_srcdir=.
10783    if test -z "$ac_top_builddir"; then
10784       ac_top_srcdir=.
10785    else
10786       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10787    fi ;;
10788  [\\/]* | ?:[\\/]* )  # Absolute path.
10789    ac_srcdir=$srcdir$ac_dir_suffix;
10790    ac_top_srcdir=$srcdir ;;
10791  *) # Relative path.
10792    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10793    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10794esac
10795
10796# Do not use `cd foo && pwd` to compute absolute paths, because
10797# the directories may not exist.
10798case `pwd` in
10799.) ac_abs_builddir="$ac_dest_dir";;
10800*)
10801  case "$ac_dest_dir" in
10802  .) ac_abs_builddir=`pwd`;;
10803  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
10804  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
10805  esac;;
10806esac
10807case $ac_abs_builddir in
10808.) ac_abs_top_builddir=${ac_top_builddir}.;;
10809*)
10810  case ${ac_top_builddir}. in
10811  .) ac_abs_top_builddir=$ac_abs_builddir;;
10812  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10813  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10814  esac;;
10815esac
10816case $ac_abs_builddir in
10817.) ac_abs_srcdir=$ac_srcdir;;
10818*)
10819  case $ac_srcdir in
10820  .) ac_abs_srcdir=$ac_abs_builddir;;
10821  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10822  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10823  esac;;
10824esac
10825case $ac_abs_builddir in
10826.) ac_abs_top_srcdir=$ac_top_srcdir;;
10827*)
10828  case $ac_top_srcdir in
10829  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10830  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10831  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10832  esac;;
10833esac
10834
10835
10836  case $srcdir in
10837  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
10838      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
10839  esac
10840
10841  # Try a symlink, then a hard link, then a copy.
10842  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10843    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
10844    cp -p $srcdir/$ac_source $ac_dest ||
10845    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
10846echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
10847   { (exit 1); exit 1; }; }
10848done
10849_ACEOF
10850
10851cat >>$CONFIG_STATUS <<\_ACEOF
10852
10853{ (exit 0); exit 0; }
10854_ACEOF
10855chmod +x $CONFIG_STATUS
10856ac_clean_files=$ac_clean_files_save
10857
10858
10859# configure is writing to config.log, and then calls config.status.
10860# config.status does its own redirection, appending to config.log.
10861# Unfortunately, on DOS this fails, as config.log is still kept open
10862# by configure, so config.status won't be able to write to it; its
10863# output is simply discarded.  So we exec the FD to /dev/null,
10864# effectively closing config.log, so it can be properly (re)opened and
10865# appended to by config.status.  When coming back to configure, we
10866# need to make the FD available again.
10867if test "$no_create" != yes; then
10868  ac_cs_success=:
10869  ac_config_status_args=
10870  test "$silent" = yes &&
10871    ac_config_status_args="$ac_config_status_args --quiet"
10872  exec 5>/dev/null
10873  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10874  exec 5>>config.log
10875  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10876  # would make configure fail if this is the last instruction.
10877  $ac_cs_success || { (exit 1); exit 1; }
10878fi
10879
10880#
10881# CONFIG_SUBDIRS section.
10882#
10883if test "$no_recursion" != yes; then
10884
10885  # Remove --cache-file and --srcdir arguments so they do not pile up.
10886  ac_sub_configure_args=
10887  ac_prev=
10888  for ac_arg in $ac_configure_args; do
10889    if test -n "$ac_prev"; then
10890      ac_prev=
10891      continue
10892    fi
10893    case $ac_arg in
10894    -cache-file | --cache-file | --cache-fil | --cache-fi \
10895    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10896      ac_prev=cache_file ;;
10897    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10898    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10899    | --c=*)
10900      ;;
10901    --config-cache | -C)
10902      ;;
10903    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10904      ac_prev=srcdir ;;
10905    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10906      ;;
10907    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10908      ac_prev=prefix ;;
10909    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10910      ;;
10911    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10912    esac
10913  done
10914
10915  # Always prepend --prefix to ensure using the same prefix
10916  # in subdir configurations.
10917  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
10918
10919  ac_popdir=`pwd`
10920  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10921
10922    # Do not complain, so a configure script can configure whichever
10923    # parts of a large source tree are present.
10924    test -d $srcdir/$ac_dir || continue
10925
10926    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
10927echo "$as_me: configuring in $ac_dir" >&6;}
10928    { if $as_mkdir_p; then
10929    mkdir -p "$ac_dir"
10930  else
10931    as_dir="$ac_dir"
10932    as_dirs=
10933    while test ! -d "$as_dir"; do
10934      as_dirs="$as_dir $as_dirs"
10935      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10936$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10937	 X"$as_dir" : 'X\(//\)[^/]' \| \
10938	 X"$as_dir" : 'X\(//\)$' \| \
10939	 X"$as_dir" : 'X\(/\)' \| \
10940	 .     : '\(.\)' 2>/dev/null ||
10941echo X"$as_dir" |
10942    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10943  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10944  	  /^X\(\/\/\)$/{ s//\1/; q; }
10945  	  /^X\(\/\).*/{ s//\1/; q; }
10946  	  s/.*/./; q'`
10947    done
10948    test ! -n "$as_dirs" || mkdir $as_dirs
10949  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10950echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10951   { (exit 1); exit 1; }; }; }
10952
10953    ac_builddir=.
10954
10955if test "$ac_dir" != .; then
10956  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10957  # A "../" for each directory in $ac_dir_suffix.
10958  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10959else
10960  ac_dir_suffix= ac_top_builddir=
10961fi
10962
10963case $srcdir in
10964  .)  # No --srcdir option.  We are building in place.
10965    ac_srcdir=.
10966    if test -z "$ac_top_builddir"; then
10967       ac_top_srcdir=.
10968    else
10969       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10970    fi ;;
10971  [\\/]* | ?:[\\/]* )  # Absolute path.
10972    ac_srcdir=$srcdir$ac_dir_suffix;
10973    ac_top_srcdir=$srcdir ;;
10974  *) # Relative path.
10975    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10976    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10977esac
10978
10979# Do not use `cd foo && pwd` to compute absolute paths, because
10980# the directories may not exist.
10981case `pwd` in
10982.) ac_abs_builddir="$ac_dir";;
10983*)
10984  case "$ac_dir" in
10985  .) ac_abs_builddir=`pwd`;;
10986  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10987  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10988  esac;;
10989esac
10990case $ac_abs_builddir in
10991.) ac_abs_top_builddir=${ac_top_builddir}.;;
10992*)
10993  case ${ac_top_builddir}. in
10994  .) ac_abs_top_builddir=$ac_abs_builddir;;
10995  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10996  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10997  esac;;
10998esac
10999case $ac_abs_builddir in
11000.) ac_abs_srcdir=$ac_srcdir;;
11001*)
11002  case $ac_srcdir in
11003  .) ac_abs_srcdir=$ac_abs_builddir;;
11004  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11005  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11006  esac;;
11007esac
11008case $ac_abs_builddir in
11009.) ac_abs_top_srcdir=$ac_top_srcdir;;
11010*)
11011  case $ac_top_srcdir in
11012  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11013  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11014  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11015  esac;;
11016esac
11017
11018
11019    cd $ac_dir
11020
11021    # Check for guested configure; otherwise get Cygnus style configure.
11022    if test -f $ac_srcdir/configure.gnu; then
11023      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
11024    elif test -f $ac_srcdir/configure; then
11025      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
11026    elif test -f $ac_srcdir/configure.in; then
11027      ac_sub_configure=$ac_configure
11028    else
11029      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
11030echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11031      ac_sub_configure=
11032    fi
11033
11034    # The recursion is here.
11035    if test -n "$ac_sub_configure"; then
11036      # Make the cache file name correct relative to the subdirectory.
11037      case $cache_file in
11038      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11039      *) # Relative path.
11040	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
11041      esac
11042
11043      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11044echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11045      # The eval makes quoting arguments work.
11046      eval $ac_sub_configure $ac_sub_configure_args \
11047	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
11048	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
11049echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
11050   { (exit 1); exit 1; }; }
11051    fi
11052
11053    cd $ac_popdir
11054  done
11055fi
11056
11057
11058# Print summary of options
11059
11060# Someone please show me a better way :)
11061A=`eval echo ${prefix}` ; A=`eval echo ${A}`
11062B=`eval echo ${bindir}` ; B=`eval echo ${B}`
11063C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
11064D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
11065E=`eval echo ${libdir}` ; E=`eval echo ${E}`
11066F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
11067G=`eval echo ${piddir}` ; G=`eval echo ${G}`
11068H=`eval echo ${LIBSPSO}`; H=`eval echo ${H}`
11069Hb=`eval echo ${LIBSPCORESO}`; Hb=`eval echo ${Hb}`
11070I=`eval echo ${LIBTSPCORESO}`; I=`eval echo ${I}`
11071J=`eval echo ${includedir}`; J=`eval echo ${J}`
11072K=`eval echo ${docdir}`; K=`eval echo ${K}`
11073
11074echo ""
11075echo "Spread has been configured with the following options:"
11076echo "                         User binaries: $B"
11077echo "                       System binaries: $C"
11078echo "                   Configuration files: $D"
11079echo "                        User libraries: $E"
11080echo "                 Shared Spread Library: $H"
11081echo "            Shared Spread Core Library: $Hb"
11082echo "Shared Thread-safe Spread Core Library: $I"
11083echo "                          Header files: $J"
11084echo "                          Manual pages: $F"
11085echo "                         Documentation: $K"
11086echo "                              PID file: $G"
11087echo "                        Manpage format: $MANTYPE"
11088
11089echo ""
11090
11091echo "              Host: ${host}"
11092echo "          Compiler: ${CC}"
11093echo "    Compiler flags: ${CFLAGS}"
11094echo "Preprocessor flags: ${CPPFLAGS}"
11095echo "      Linker flags: ${LDFLAGS}"
11096echo "         Libraries: ${LIBS}"
11097
11098echo ""
11099
11100