1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
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=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="src/nsca.c"
275ac_default_prefix=/usr/local/nagios
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290#  include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295#  include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306#  include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE CPP EGREP SOCKETLIBS LIBWRAPLIBS LIBMCRYPT_CONFIG LIBMCRYPT_CFLAGS LIBMCRYPT_LIBS nsca_user nsca_grp nsca_port PERL LIBOBJS LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357  # If the previous option needs an argument, assign it.
358  if test -n "$ac_prev"; then
359    eval "$ac_prev=\$ac_option"
360    ac_prev=
361    continue
362  fi
363
364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366  # Accept the important Cygnus configure options, so we can diagnose typos.
367
368  case $ac_option in
369
370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371    ac_prev=bindir ;;
372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373    bindir=$ac_optarg ;;
374
375  -build | --build | --buil | --bui | --bu)
376    ac_prev=build_alias ;;
377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378    build_alias=$ac_optarg ;;
379
380  -cache-file | --cache-file | --cache-fil | --cache-fi \
381  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382    ac_prev=cache_file ;;
383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385    cache_file=$ac_optarg ;;
386
387  --config-cache | -C)
388    cache_file=config.cache ;;
389
390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391    ac_prev=datadir ;;
392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393  | --da=*)
394    datadir=$ac_optarg ;;
395
396  -disable-* | --disable-*)
397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398    # Reject names that are not valid shell variable names.
399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401   { (exit 1); exit 1; }; }
402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403    eval "enable_$ac_feature=no" ;;
404
405  -enable-* | --enable-*)
406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407    # Reject names that are not valid shell variable names.
408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    case $ac_option in
413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414      *) ac_optarg=yes ;;
415    esac
416    eval "enable_$ac_feature='$ac_optarg'" ;;
417
418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420  | --exec | --exe | --ex)
421    ac_prev=exec_prefix ;;
422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424  | --exec=* | --exe=* | --ex=*)
425    exec_prefix=$ac_optarg ;;
426
427  -gas | --gas | --ga | --g)
428    # Obsolete; use --with-gas.
429    with_gas=yes ;;
430
431  -help | --help | --hel | --he | -h)
432    ac_init_help=long ;;
433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434    ac_init_help=recursive ;;
435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436    ac_init_help=short ;;
437
438  -host | --host | --hos | --ho)
439    ac_prev=host_alias ;;
440  -host=* | --host=* | --hos=* | --ho=*)
441    host_alias=$ac_optarg ;;
442
443  -includedir | --includedir | --includedi | --included | --include \
444  | --includ | --inclu | --incl | --inc)
445    ac_prev=includedir ;;
446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447  | --includ=* | --inclu=* | --incl=* | --inc=*)
448    includedir=$ac_optarg ;;
449
450  -infodir | --infodir | --infodi | --infod | --info | --inf)
451    ac_prev=infodir ;;
452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453    infodir=$ac_optarg ;;
454
455  -libdir | --libdir | --libdi | --libd)
456    ac_prev=libdir ;;
457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458    libdir=$ac_optarg ;;
459
460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461  | --libexe | --libex | --libe)
462    ac_prev=libexecdir ;;
463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464  | --libexe=* | --libex=* | --libe=*)
465    libexecdir=$ac_optarg ;;
466
467  -localstatedir | --localstatedir | --localstatedi | --localstated \
468  | --localstate | --localstat | --localsta | --localst \
469  | --locals | --local | --loca | --loc | --lo)
470    ac_prev=localstatedir ;;
471  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474    localstatedir=$ac_optarg ;;
475
476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477    ac_prev=mandir ;;
478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479    mandir=$ac_optarg ;;
480
481  -nfp | --nfp | --nf)
482    # Obsolete; use --without-fp.
483    with_fp=no ;;
484
485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486  | --no-cr | --no-c | -n)
487    no_create=yes ;;
488
489  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491    no_recursion=yes ;;
492
493  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495  | --oldin | --oldi | --old | --ol | --o)
496    ac_prev=oldincludedir ;;
497  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500    oldincludedir=$ac_optarg ;;
501
502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503    ac_prev=prefix ;;
504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505    prefix=$ac_optarg ;;
506
507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508  | --program-pre | --program-pr | --program-p)
509    ac_prev=program_prefix ;;
510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512    program_prefix=$ac_optarg ;;
513
514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515  | --program-suf | --program-su | --program-s)
516    ac_prev=program_suffix ;;
517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519    program_suffix=$ac_optarg ;;
520
521  -program-transform-name | --program-transform-name \
522  | --program-transform-nam | --program-transform-na \
523  | --program-transform-n | --program-transform- \
524  | --program-transform | --program-transfor \
525  | --program-transfo | --program-transf \
526  | --program-trans | --program-tran \
527  | --progr-tra | --program-tr | --program-t)
528    ac_prev=program_transform_name ;;
529  -program-transform-name=* | --program-transform-name=* \
530  | --program-transform-nam=* | --program-transform-na=* \
531  | --program-transform-n=* | --program-transform-=* \
532  | --program-transform=* | --program-transfor=* \
533  | --program-transfo=* | --program-transf=* \
534  | --program-trans=* | --program-tran=* \
535  | --progr-tra=* | --program-tr=* | --program-t=*)
536    program_transform_name=$ac_optarg ;;
537
538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539  | -silent | --silent | --silen | --sile | --sil)
540    silent=yes ;;
541
542  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543    ac_prev=sbindir ;;
544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545  | --sbi=* | --sb=*)
546    sbindir=$ac_optarg ;;
547
548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550  | --sharedst | --shareds | --shared | --share | --shar \
551  | --sha | --sh)
552    ac_prev=sharedstatedir ;;
553  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556  | --sha=* | --sh=*)
557    sharedstatedir=$ac_optarg ;;
558
559  -site | --site | --sit)
560    ac_prev=site ;;
561  -site=* | --site=* | --sit=*)
562    site=$ac_optarg ;;
563
564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565    ac_prev=srcdir ;;
566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567    srcdir=$ac_optarg ;;
568
569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570  | --syscon | --sysco | --sysc | --sys | --sy)
571    ac_prev=sysconfdir ;;
572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574    sysconfdir=$ac_optarg ;;
575
576  -target | --target | --targe | --targ | --tar | --ta | --t)
577    ac_prev=target_alias ;;
578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579    target_alias=$ac_optarg ;;
580
581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582    verbose=yes ;;
583
584  -version | --version | --versio | --versi | --vers | -V)
585    ac_init_version=: ;;
586
587  -with-* | --with-*)
588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589    # Reject names that are not valid shell variable names.
590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591      { echo "$as_me: error: invalid package name: $ac_package" >&2
592   { (exit 1); exit 1; }; }
593    ac_package=`echo $ac_package| sed 's/-/_/g'`
594    case $ac_option in
595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596      *) ac_optarg=yes ;;
597    esac
598    eval "with_$ac_package='$ac_optarg'" ;;
599
600  -without-* | --without-*)
601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602    # Reject names that are not valid shell variable names.
603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604      { echo "$as_me: error: invalid package name: $ac_package" >&2
605   { (exit 1); exit 1; }; }
606    ac_package=`echo $ac_package | sed 's/-/_/g'`
607    eval "with_$ac_package=no" ;;
608
609  --x)
610    # Obsolete; use --with-x.
611    with_x=yes ;;
612
613  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614  | --x-incl | --x-inc | --x-in | --x-i)
615    ac_prev=x_includes ;;
616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618    x_includes=$ac_optarg ;;
619
620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622    ac_prev=x_libraries ;;
623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625    x_libraries=$ac_optarg ;;
626
627  -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629   { (exit 1); exit 1; }; }
630    ;;
631
632  *=*)
633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634    # Reject names that are not valid shell variable names.
635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637   { (exit 1); exit 1; }; }
638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639    eval "$ac_envvar='$ac_optarg'"
640    export $ac_envvar ;;
641
642  *)
643    # FIXME: should be removed in autoconf 3.0.
644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648    ;;
649
650  esac
651done
652
653if test -n "$ac_prev"; then
654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655  { echo "$as_me: error: missing argument to $ac_option" >&2
656   { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662  eval ac_val=$`echo $ac_var`
663  case $ac_val in
664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666   { (exit 1); exit 1; }; };;
667  esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672	      localstatedir libdir includedir oldincludedir infodir mandir
673do
674  eval ac_val=$`echo $ac_var`
675  case $ac_val in
676    [\\/$]* | ?:[\\/]* ) ;;
677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678   { (exit 1); exit 1; }; };;
679  esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691  if test "x$build_alias" = x; then
692    cross_compiling=maybe
693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694    If a cross compiler is detected then cross compile mode will be used." >&2
695  elif test "x$build_alias" != "x$host_alias"; then
696    cross_compiling=yes
697  fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708  ac_srcdir_defaulted=yes
709  # Try the directory containing this script, then its parent.
710  ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712	 X"$0" : 'X\(//\)[^/]' \| \
713	 X"$0" : 'X\(//\)$' \| \
714	 X"$0" : 'X\(/\)' \| \
715	 .     : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719  	  /^X\(\/\/\)$/{ s//\1/; q; }
720  	  /^X\(\/\).*/{ s//\1/; q; }
721  	  s/.*/./; q'`
722  srcdir=$ac_confdir
723  if test ! -r $srcdir/$ac_unique_file; then
724    srcdir=..
725  fi
726else
727  ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730  if test "$ac_srcdir_defaulted" = yes; then
731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732   { (exit 1); exit 1; }; }
733  else
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735   { (exit 1); exit 1; }; }
736  fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740   { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779  # Omit some internal or obsolete options to make the list less imposing.
780  # This message is too long to be a string in the A/UX 3.1 sh.
781  cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792  -h, --help              display this help and exit
793      --help=short        display options specific to this package
794      --help=recursive    display the short help of all the included packages
795  -V, --version           display version information and exit
796  -q, --quiet, --silent   do not print \`checking...' messages
797      --cache-file=FILE   cache test results in FILE [disabled]
798  -C, --config-cache      alias for \`--cache-file=config.cache'
799  -n, --no-create         do not create output files
800      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804  cat <<_ACEOF
805Installation directories:
806  --prefix=PREFIX         install architecture-independent files in PREFIX
807			  [$ac_default_prefix]
808  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809			  [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819  --bindir=DIR           user executables [EPREFIX/bin]
820  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821  --libexecdir=DIR       program executables [EPREFIX/libexec]
822  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826  --libdir=DIR           object code libraries [EPREFIX/lib]
827  --includedir=DIR       C header files [PREFIX/include]
828  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829  --infodir=DIR          info documentation [PREFIX/info]
830  --mandir=DIR           man documentation [PREFIX/man]
831_ACEOF
832
833  cat <<\_ACEOF
834
835System types:
836  --build=BUILD     configure for building on BUILD [guessed]
837  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842
843  cat <<\_ACEOF
844
845Optional Packages:
846  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
847  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
848--with-mcrypt-lib=DIR sets location of the mcrypt client library
849--with-mcrypt-inc=DIR sets location of the mcrypt client include files
850  --with-libmcrypt-prefix=PFX   Prefix where libmcrypt is installed (optional)
851--with-nsca-user=<user> sets user name to run NSCA
852--with-nsca-grp=<grp> sets group name to run NSCA
853--with-nsca-port=<port> sets port number for NSCA to listen on
854
855Some influential environment variables:
856  CC          C compiler command
857  CFLAGS      C compiler flags
858  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
859              nonstandard directory <lib dir>
860  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
861              headers in a nonstandard directory <include dir>
862  CPP         C preprocessor
863
864Use these variables to override the choices made by `configure' or to help
865it to find libraries and programs with nonstandard names/locations.
866
867_ACEOF
868fi
869
870if test "$ac_init_help" = "recursive"; then
871  # If there are subdirs, report their specific --help.
872  ac_popdir=`pwd`
873  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874    test -d $ac_dir || continue
875    ac_builddir=.
876
877if test "$ac_dir" != .; then
878  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
879  # A "../" for each directory in $ac_dir_suffix.
880  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
881else
882  ac_dir_suffix= ac_top_builddir=
883fi
884
885case $srcdir in
886  .)  # No --srcdir option.  We are building in place.
887    ac_srcdir=.
888    if test -z "$ac_top_builddir"; then
889       ac_top_srcdir=.
890    else
891       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
892    fi ;;
893  [\\/]* | ?:[\\/]* )  # Absolute path.
894    ac_srcdir=$srcdir$ac_dir_suffix;
895    ac_top_srcdir=$srcdir ;;
896  *) # Relative path.
897    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898    ac_top_srcdir=$ac_top_builddir$srcdir ;;
899esac
900
901# Do not use `cd foo && pwd` to compute absolute paths, because
902# the directories may not exist.
903case `pwd` in
904.) ac_abs_builddir="$ac_dir";;
905*)
906  case "$ac_dir" in
907  .) ac_abs_builddir=`pwd`;;
908  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
909  *) ac_abs_builddir=`pwd`/"$ac_dir";;
910  esac;;
911esac
912case $ac_abs_builddir in
913.) ac_abs_top_builddir=${ac_top_builddir}.;;
914*)
915  case ${ac_top_builddir}. in
916  .) ac_abs_top_builddir=$ac_abs_builddir;;
917  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
918  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
919  esac;;
920esac
921case $ac_abs_builddir in
922.) ac_abs_srcdir=$ac_srcdir;;
923*)
924  case $ac_srcdir in
925  .) ac_abs_srcdir=$ac_abs_builddir;;
926  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
927  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
928  esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_srcdir=$ac_top_srcdir;;
932*)
933  case $ac_top_srcdir in
934  .) ac_abs_top_srcdir=$ac_abs_builddir;;
935  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
936  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
937  esac;;
938esac
939
940    cd $ac_dir
941    # Check for guested configure; otherwise get Cygnus style configure.
942    if test -f $ac_srcdir/configure.gnu; then
943      echo
944      $SHELL $ac_srcdir/configure.gnu  --help=recursive
945    elif test -f $ac_srcdir/configure; then
946      echo
947      $SHELL $ac_srcdir/configure  --help=recursive
948    elif test -f $ac_srcdir/configure.ac ||
949	   test -f $ac_srcdir/configure.in; then
950      echo
951      $ac_configure --help
952    else
953      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954    fi
955    cd $ac_popdir
956  done
957fi
958
959test -n "$ac_init_help" && exit 0
960if $ac_init_version; then
961  cat <<\_ACEOF
962
963Copyright (C) 2003 Free Software Foundation, Inc.
964This configure script is free software; the Free Software Foundation
965gives unlimited permission to copy, distribute and modify it.
966_ACEOF
967  exit 0
968fi
969exec 5>config.log
970cat >&5 <<_ACEOF
971This file contains any messages produced by compilers while
972running configure, to aid debugging if configure makes a mistake.
973
974It was created by $as_me, which was
975generated by GNU Autoconf 2.59.  Invocation command line was
976
977  $ $0 $@
978
979_ACEOF
980{
981cat <<_ASUNAME
982## --------- ##
983## Platform. ##
984## --------- ##
985
986hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
987uname -m = `(uname -m) 2>/dev/null || echo unknown`
988uname -r = `(uname -r) 2>/dev/null || echo unknown`
989uname -s = `(uname -s) 2>/dev/null || echo unknown`
990uname -v = `(uname -v) 2>/dev/null || echo unknown`
991
992/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
993/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
994
995/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
996/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
997/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
998hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
999/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1000/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1001/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1002
1003_ASUNAME
1004
1005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006for as_dir in $PATH
1007do
1008  IFS=$as_save_IFS
1009  test -z "$as_dir" && as_dir=.
1010  echo "PATH: $as_dir"
1011done
1012
1013} >&5
1014
1015cat >&5 <<_ACEOF
1016
1017
1018## ----------- ##
1019## Core tests. ##
1020## ----------- ##
1021
1022_ACEOF
1023
1024
1025# Keep a trace of the command line.
1026# Strip out --no-create and --no-recursion so they do not pile up.
1027# Strip out --silent because we don't want to record it for future runs.
1028# Also quote any args containing shell meta-characters.
1029# Make two passes to allow for proper duplicate-argument suppression.
1030ac_configure_args=
1031ac_configure_args0=
1032ac_configure_args1=
1033ac_sep=
1034ac_must_keep_next=false
1035for ac_pass in 1 2
1036do
1037  for ac_arg
1038  do
1039    case $ac_arg in
1040    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1041    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042    | -silent | --silent | --silen | --sile | --sil)
1043      continue ;;
1044    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1045      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1046    esac
1047    case $ac_pass in
1048    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1049    2)
1050      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1051      if test $ac_must_keep_next = true; then
1052	ac_must_keep_next=false # Got value, back to normal.
1053      else
1054	case $ac_arg in
1055	  *=* | --config-cache | -C | -disable-* | --disable-* \
1056	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1057	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1058	  | -with-* | --with-* | -without-* | --without-* | --x)
1059	    case "$ac_configure_args0 " in
1060	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1061	    esac
1062	    ;;
1063	  -* ) ac_must_keep_next=true ;;
1064	esac
1065      fi
1066      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1067      # Get rid of the leading space.
1068      ac_sep=" "
1069      ;;
1070    esac
1071  done
1072done
1073$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1074$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075
1076# When interrupted or exit'd, cleanup temporary files, and complete
1077# config.log.  We remove comments because anyway the quotes in there
1078# would cause problems or look ugly.
1079# WARNING: Be sure not to use single quotes in there, as some shells,
1080# such as our DU 5.0 friend, will then `close' the trap.
1081trap 'exit_status=$?
1082  # Save into config.log some information that might help in debugging.
1083  {
1084    echo
1085
1086    cat <<\_ASBOX
1087## ---------------- ##
1088## Cache variables. ##
1089## ---------------- ##
1090_ASBOX
1091    echo
1092    # The following way of writing the cache mishandles newlines in values,
1093{
1094  (set) 2>&1 |
1095    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1096    *ac_space=\ *)
1097      sed -n \
1098	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1099	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100      ;;
1101    *)
1102      sed -n \
1103	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1104      ;;
1105    esac;
1106}
1107    echo
1108
1109    cat <<\_ASBOX
1110## ----------------- ##
1111## Output variables. ##
1112## ----------------- ##
1113_ASBOX
1114    echo
1115    for ac_var in $ac_subst_vars
1116    do
1117      eval ac_val=$`echo $ac_var`
1118      echo "$ac_var='"'"'$ac_val'"'"'"
1119    done | sort
1120    echo
1121
1122    if test -n "$ac_subst_files"; then
1123      cat <<\_ASBOX
1124## ------------- ##
1125## Output files. ##
1126## ------------- ##
1127_ASBOX
1128      echo
1129      for ac_var in $ac_subst_files
1130      do
1131	eval ac_val=$`echo $ac_var`
1132	echo "$ac_var='"'"'$ac_val'"'"'"
1133      done | sort
1134      echo
1135    fi
1136
1137    if test -s confdefs.h; then
1138      cat <<\_ASBOX
1139## ----------- ##
1140## confdefs.h. ##
1141## ----------- ##
1142_ASBOX
1143      echo
1144      sed "/^$/d" confdefs.h | sort
1145      echo
1146    fi
1147    test "$ac_signal" != 0 &&
1148      echo "$as_me: caught signal $ac_signal"
1149    echo "$as_me: exit $exit_status"
1150  } >&5
1151  rm -f core *.core &&
1152  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1153    exit $exit_status
1154     ' 0
1155for ac_signal in 1 2 13 15; do
1156  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1157done
1158ac_signal=0
1159
1160# confdefs.h avoids OS command line length limits that DEFS can exceed.
1161rm -rf conftest* confdefs.h
1162# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1163echo >confdefs.h
1164
1165# Predefined preprocessor variables.
1166
1167cat >>confdefs.h <<_ACEOF
1168#define PACKAGE_NAME "$PACKAGE_NAME"
1169_ACEOF
1170
1171
1172cat >>confdefs.h <<_ACEOF
1173#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1174_ACEOF
1175
1176
1177cat >>confdefs.h <<_ACEOF
1178#define PACKAGE_VERSION "$PACKAGE_VERSION"
1179_ACEOF
1180
1181
1182cat >>confdefs.h <<_ACEOF
1183#define PACKAGE_STRING "$PACKAGE_STRING"
1184_ACEOF
1185
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1189_ACEOF
1190
1191
1192# Let the site file select an alternate cache file if it wants to.
1193# Prefer explicitly selected file to automatically selected ones.
1194if test -z "$CONFIG_SITE"; then
1195  if test "x$prefix" != xNONE; then
1196    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1197  else
1198    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1199  fi
1200fi
1201for ac_site_file in $CONFIG_SITE; do
1202  if test -r "$ac_site_file"; then
1203    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1204echo "$as_me: loading site script $ac_site_file" >&6;}
1205    sed 's/^/| /' "$ac_site_file" >&5
1206    . "$ac_site_file"
1207  fi
1208done
1209
1210
1211# Check that the precious variables saved in the cache have kept the same
1212# value.
1213ac_cache_corrupted=false
1214for ac_var in `(set) 2>&1 |
1215	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1216  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1217  eval ac_new_set=\$ac_env_${ac_var}_set
1218  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1219  eval ac_new_val="\$ac_env_${ac_var}_value"
1220  case $ac_old_set,$ac_new_set in
1221    set,)
1222      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1223echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1224      ac_cache_corrupted=: ;;
1225    ,set)
1226      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1227echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1228      ac_cache_corrupted=: ;;
1229    ,);;
1230    *)
1231      if test "x$ac_old_val" != "x$ac_new_val"; then
1232	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1233echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1234	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1235echo "$as_me:   former value:  $ac_old_val" >&2;}
1236	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1237echo "$as_me:   current value: $ac_new_val" >&2;}
1238	ac_cache_corrupted=:
1239      fi;;
1240  esac
1241  # Pass precious variables to config.status.
1242  if test "$ac_new_set" = set; then
1243    case $ac_new_val in
1244    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1246    *) ac_arg=$ac_var=$ac_new_val ;;
1247    esac
1248    case " $ac_configure_args " in
1249      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1250      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1251    esac
1252  fi
1253done
1254if $ac_cache_corrupted; then
1255  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1256echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1257  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1258echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1259   { (exit 1); exit 1; }; }
1260fi
1261
1262ac_ext=c
1263ac_cpp='$CPP $CPPFLAGS'
1264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1266ac_compiler_gnu=$ac_cv_c_compiler_gnu
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286          ac_config_headers="$ac_config_headers include/config.h"
1287
1288
1289
1290PKG_NAME=nsca
1291PKG_VERSION="2.7.2"
1292PKG_HOME_URL="http://www.nagios.org/"
1293PKG_REL_DATE="07-03-2007"
1294
1295ac_aux_dir=
1296for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1297  if test -f $ac_dir/install-sh; then
1298    ac_aux_dir=$ac_dir
1299    ac_install_sh="$ac_aux_dir/install-sh -c"
1300    break
1301  elif test -f $ac_dir/install.sh; then
1302    ac_aux_dir=$ac_dir
1303    ac_install_sh="$ac_aux_dir/install.sh -c"
1304    break
1305  elif test -f $ac_dir/shtool; then
1306    ac_aux_dir=$ac_dir
1307    ac_install_sh="$ac_aux_dir/shtool install -c"
1308    break
1309  fi
1310done
1311if test -z "$ac_aux_dir"; then
1312  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1313echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1314   { (exit 1); exit 1; }; }
1315fi
1316ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1317ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1318ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1319
1320# Find a good install program.  We prefer a C program (faster),
1321# so one script is as good as another.  But avoid the broken or
1322# incompatible versions:
1323# SysV /etc/install, /usr/sbin/install
1324# SunOS /usr/etc/install
1325# IRIX /sbin/install
1326# AIX /bin/install
1327# AmigaOS /C/install, which installs bootblocks on floppy discs
1328# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1329# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1330# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1331# OS/2's system install, which has a completely different semantic
1332# ./install, which can be erroneously created by make from ./install.sh.
1333echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1334echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1335if test -z "$INSTALL"; then
1336if test "${ac_cv_path_install+set}" = set; then
1337  echo $ECHO_N "(cached) $ECHO_C" >&6
1338else
1339  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1340for as_dir in $PATH
1341do
1342  IFS=$as_save_IFS
1343  test -z "$as_dir" && as_dir=.
1344  # Account for people who put trailing slashes in PATH elements.
1345case $as_dir/ in
1346  ./ | .// | /cC/* | \
1347  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1348  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1349  /usr/ucb/* ) ;;
1350  *)
1351    # OSF1 and SCO ODT 3.0 have their own names for install.
1352    # Don't use installbsd from OSF since it installs stuff as root
1353    # by default.
1354    for ac_prog in ginstall scoinst install; do
1355      for ac_exec_ext in '' $ac_executable_extensions; do
1356	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1357	  if test $ac_prog = install &&
1358	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1359	    # AIX install.  It has an incompatible calling convention.
1360	    :
1361	  elif test $ac_prog = install &&
1362	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1363	    # program-specific install script used by HP pwplus--don't use.
1364	    :
1365	  else
1366	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1367	    break 3
1368	  fi
1369	fi
1370      done
1371    done
1372    ;;
1373esac
1374done
1375
1376
1377fi
1378  if test "${ac_cv_path_install+set}" = set; then
1379    INSTALL=$ac_cv_path_install
1380  else
1381    # As a last resort, use the slow shell script.  We don't cache a
1382    # path for INSTALL within a source directory, because that will
1383    # break other packages using the cache if that directory is
1384    # removed, or if the path is relative.
1385    INSTALL=$ac_install_sh
1386  fi
1387fi
1388echo "$as_me:$LINENO: result: $INSTALL" >&5
1389echo "${ECHO_T}$INSTALL" >&6
1390
1391# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1392# It thinks the first close brace ends the variable substitution.
1393test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1394
1395test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1396
1397test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1398
1399
1400
1401# Make sure we can run config.sub.
1402$ac_config_sub sun4 >/dev/null 2>&1 ||
1403  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405   { (exit 1); exit 1; }; }
1406
1407echo "$as_me:$LINENO: checking build system type" >&5
1408echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409if test "${ac_cv_build+set}" = set; then
1410  echo $ECHO_N "(cached) $ECHO_C" >&6
1411else
1412  ac_cv_build_alias=$build_alias
1413test -z "$ac_cv_build_alias" &&
1414  ac_cv_build_alias=`$ac_config_guess`
1415test -z "$ac_cv_build_alias" &&
1416  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418   { (exit 1); exit 1; }; }
1419ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422   { (exit 1); exit 1; }; }
1423
1424fi
1425echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426echo "${ECHO_T}$ac_cv_build" >&6
1427build=$ac_cv_build
1428build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431
1432
1433echo "$as_me:$LINENO: checking host system type" >&5
1434echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435if test "${ac_cv_host+set}" = set; then
1436  echo $ECHO_N "(cached) $ECHO_C" >&6
1437else
1438  ac_cv_host_alias=$host_alias
1439test -z "$ac_cv_host_alias" &&
1440  ac_cv_host_alias=$ac_cv_build_alias
1441ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444   { (exit 1); exit 1; }; }
1445
1446fi
1447echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448echo "${ECHO_T}$ac_cv_host" >&6
1449host=$ac_cv_host
1450host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453
1454
1455
1456ac_ext=c
1457ac_cpp='$CPP $CPPFLAGS'
1458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1460ac_compiler_gnu=$ac_cv_c_compiler_gnu
1461if test -n "$ac_tool_prefix"; then
1462  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1463set dummy ${ac_tool_prefix}gcc; ac_word=$2
1464echo "$as_me:$LINENO: checking for $ac_word" >&5
1465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466if test "${ac_cv_prog_CC+set}" = set; then
1467  echo $ECHO_N "(cached) $ECHO_C" >&6
1468else
1469  if test -n "$CC"; then
1470  ac_cv_prog_CC="$CC" # Let the user override the test.
1471else
1472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475  IFS=$as_save_IFS
1476  test -z "$as_dir" && as_dir=.
1477  for ac_exec_ext in '' $ac_executable_extensions; do
1478  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1480    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481    break 2
1482  fi
1483done
1484done
1485
1486fi
1487fi
1488CC=$ac_cv_prog_CC
1489if test -n "$CC"; then
1490  echo "$as_me:$LINENO: result: $CC" >&5
1491echo "${ECHO_T}$CC" >&6
1492else
1493  echo "$as_me:$LINENO: result: no" >&5
1494echo "${ECHO_T}no" >&6
1495fi
1496
1497fi
1498if test -z "$ac_cv_prog_CC"; then
1499  ac_ct_CC=$CC
1500  # Extract the first word of "gcc", so it can be a program name with args.
1501set dummy gcc; ac_word=$2
1502echo "$as_me:$LINENO: checking for $ac_word" >&5
1503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505  echo $ECHO_N "(cached) $ECHO_C" >&6
1506else
1507  if test -n "$ac_ct_CC"; then
1508  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509else
1510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
1513  IFS=$as_save_IFS
1514  test -z "$as_dir" && as_dir=.
1515  for ac_exec_ext in '' $ac_executable_extensions; do
1516  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517    ac_cv_prog_ac_ct_CC="gcc"
1518    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519    break 2
1520  fi
1521done
1522done
1523
1524fi
1525fi
1526ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527if test -n "$ac_ct_CC"; then
1528  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1529echo "${ECHO_T}$ac_ct_CC" >&6
1530else
1531  echo "$as_me:$LINENO: result: no" >&5
1532echo "${ECHO_T}no" >&6
1533fi
1534
1535  CC=$ac_ct_CC
1536else
1537  CC="$ac_cv_prog_CC"
1538fi
1539
1540if test -z "$CC"; then
1541  if test -n "$ac_tool_prefix"; then
1542  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1543set dummy ${ac_tool_prefix}cc; ac_word=$2
1544echo "$as_me:$LINENO: checking for $ac_word" >&5
1545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546if test "${ac_cv_prog_CC+set}" = set; then
1547  echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549  if test -n "$CC"; then
1550  ac_cv_prog_CC="$CC" # Let the user override the test.
1551else
1552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553for as_dir in $PATH
1554do
1555  IFS=$as_save_IFS
1556  test -z "$as_dir" && as_dir=.
1557  for ac_exec_ext in '' $ac_executable_extensions; do
1558  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559    ac_cv_prog_CC="${ac_tool_prefix}cc"
1560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561    break 2
1562  fi
1563done
1564done
1565
1566fi
1567fi
1568CC=$ac_cv_prog_CC
1569if test -n "$CC"; then
1570  echo "$as_me:$LINENO: result: $CC" >&5
1571echo "${ECHO_T}$CC" >&6
1572else
1573  echo "$as_me:$LINENO: result: no" >&5
1574echo "${ECHO_T}no" >&6
1575fi
1576
1577fi
1578if test -z "$ac_cv_prog_CC"; then
1579  ac_ct_CC=$CC
1580  # Extract the first word of "cc", so it can be a program name with args.
1581set dummy cc; ac_word=$2
1582echo "$as_me:$LINENO: checking for $ac_word" >&5
1583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1585  echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587  if test -n "$ac_ct_CC"; then
1588  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1589else
1590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591for as_dir in $PATH
1592do
1593  IFS=$as_save_IFS
1594  test -z "$as_dir" && as_dir=.
1595  for ac_exec_ext in '' $ac_executable_extensions; do
1596  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597    ac_cv_prog_ac_ct_CC="cc"
1598    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599    break 2
1600  fi
1601done
1602done
1603
1604fi
1605fi
1606ac_ct_CC=$ac_cv_prog_ac_ct_CC
1607if test -n "$ac_ct_CC"; then
1608  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1609echo "${ECHO_T}$ac_ct_CC" >&6
1610else
1611  echo "$as_me:$LINENO: result: no" >&5
1612echo "${ECHO_T}no" >&6
1613fi
1614
1615  CC=$ac_ct_CC
1616else
1617  CC="$ac_cv_prog_CC"
1618fi
1619
1620fi
1621if test -z "$CC"; then
1622  # Extract the first word of "cc", so it can be a program name with args.
1623set dummy cc; ac_word=$2
1624echo "$as_me:$LINENO: checking for $ac_word" >&5
1625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626if test "${ac_cv_prog_CC+set}" = set; then
1627  echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629  if test -n "$CC"; then
1630  ac_cv_prog_CC="$CC" # Let the user override the test.
1631else
1632  ac_prog_rejected=no
1633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634for as_dir in $PATH
1635do
1636  IFS=$as_save_IFS
1637  test -z "$as_dir" && as_dir=.
1638  for ac_exec_ext in '' $ac_executable_extensions; do
1639  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1641       ac_prog_rejected=yes
1642       continue
1643     fi
1644    ac_cv_prog_CC="cc"
1645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646    break 2
1647  fi
1648done
1649done
1650
1651if test $ac_prog_rejected = yes; then
1652  # We found a bogon in the path, so make sure we never use it.
1653  set dummy $ac_cv_prog_CC
1654  shift
1655  if test $# != 0; then
1656    # We chose a different compiler from the bogus one.
1657    # However, it has the same basename, so the bogon will be chosen
1658    # first if we set CC to just the basename; use the full file name.
1659    shift
1660    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1661  fi
1662fi
1663fi
1664fi
1665CC=$ac_cv_prog_CC
1666if test -n "$CC"; then
1667  echo "$as_me:$LINENO: result: $CC" >&5
1668echo "${ECHO_T}$CC" >&6
1669else
1670  echo "$as_me:$LINENO: result: no" >&5
1671echo "${ECHO_T}no" >&6
1672fi
1673
1674fi
1675if test -z "$CC"; then
1676  if test -n "$ac_tool_prefix"; then
1677  for ac_prog in cl
1678  do
1679    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1680set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1681echo "$as_me:$LINENO: checking for $ac_word" >&5
1682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683if test "${ac_cv_prog_CC+set}" = set; then
1684  echo $ECHO_N "(cached) $ECHO_C" >&6
1685else
1686  if test -n "$CC"; then
1687  ac_cv_prog_CC="$CC" # Let the user override the test.
1688else
1689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690for as_dir in $PATH
1691do
1692  IFS=$as_save_IFS
1693  test -z "$as_dir" && as_dir=.
1694  for ac_exec_ext in '' $ac_executable_extensions; do
1695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698    break 2
1699  fi
1700done
1701done
1702
1703fi
1704fi
1705CC=$ac_cv_prog_CC
1706if test -n "$CC"; then
1707  echo "$as_me:$LINENO: result: $CC" >&5
1708echo "${ECHO_T}$CC" >&6
1709else
1710  echo "$as_me:$LINENO: result: no" >&5
1711echo "${ECHO_T}no" >&6
1712fi
1713
1714    test -n "$CC" && break
1715  done
1716fi
1717if test -z "$CC"; then
1718  ac_ct_CC=$CC
1719  for ac_prog in cl
1720do
1721  # Extract the first word of "$ac_prog", so it can be a program name with args.
1722set dummy $ac_prog; ac_word=$2
1723echo "$as_me:$LINENO: checking for $ac_word" >&5
1724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1726  echo $ECHO_N "(cached) $ECHO_C" >&6
1727else
1728  if test -n "$ac_ct_CC"; then
1729  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1730else
1731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732for as_dir in $PATH
1733do
1734  IFS=$as_save_IFS
1735  test -z "$as_dir" && as_dir=.
1736  for ac_exec_ext in '' $ac_executable_extensions; do
1737  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738    ac_cv_prog_ac_ct_CC="$ac_prog"
1739    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740    break 2
1741  fi
1742done
1743done
1744
1745fi
1746fi
1747ac_ct_CC=$ac_cv_prog_ac_ct_CC
1748if test -n "$ac_ct_CC"; then
1749  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1750echo "${ECHO_T}$ac_ct_CC" >&6
1751else
1752  echo "$as_me:$LINENO: result: no" >&5
1753echo "${ECHO_T}no" >&6
1754fi
1755
1756  test -n "$ac_ct_CC" && break
1757done
1758
1759  CC=$ac_ct_CC
1760fi
1761
1762fi
1763
1764
1765test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1766See \`config.log' for more details." >&5
1767echo "$as_me: error: no acceptable C compiler found in \$PATH
1768See \`config.log' for more details." >&2;}
1769   { (exit 1); exit 1; }; }
1770
1771# Provide some information about the compiler.
1772echo "$as_me:$LINENO:" \
1773     "checking for C compiler version" >&5
1774ac_compiler=`set X $ac_compile; echo $2`
1775{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1776  (eval $ac_compiler --version </dev/null >&5) 2>&5
1777  ac_status=$?
1778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779  (exit $ac_status); }
1780{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1781  (eval $ac_compiler -v </dev/null >&5) 2>&5
1782  ac_status=$?
1783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784  (exit $ac_status); }
1785{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1786  (eval $ac_compiler -V </dev/null >&5) 2>&5
1787  ac_status=$?
1788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789  (exit $ac_status); }
1790
1791cat >conftest.$ac_ext <<_ACEOF
1792/* confdefs.h.  */
1793_ACEOF
1794cat confdefs.h >>conftest.$ac_ext
1795cat >>conftest.$ac_ext <<_ACEOF
1796/* end confdefs.h.  */
1797
1798int
1799main ()
1800{
1801
1802  ;
1803  return 0;
1804}
1805_ACEOF
1806ac_clean_files_save=$ac_clean_files
1807ac_clean_files="$ac_clean_files a.out a.exe b.out"
1808# Try to create an executable without -o first, disregard a.out.
1809# It will help us diagnose broken compilers, and finding out an intuition
1810# of exeext.
1811echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1812echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1813ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1814if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1815  (eval $ac_link_default) 2>&5
1816  ac_status=$?
1817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818  (exit $ac_status); }; then
1819  # Find the output, starting from the most likely.  This scheme is
1820# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1821# resort.
1822
1823# Be careful to initialize this variable, since it used to be cached.
1824# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1825ac_cv_exeext=
1826# b.out is created by i960 compilers.
1827for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1828do
1829  test -f "$ac_file" || continue
1830  case $ac_file in
1831    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1832	;;
1833    conftest.$ac_ext )
1834	# This is the source file.
1835	;;
1836    [ab].out )
1837	# We found the default executable, but exeext='' is most
1838	# certainly right.
1839	break;;
1840    *.* )
1841	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1842	# FIXME: I believe we export ac_cv_exeext for Libtool,
1843	# but it would be cool to find out if it's true.  Does anybody
1844	# maintain Libtool? --akim.
1845	export ac_cv_exeext
1846	break;;
1847    * )
1848	break;;
1849  esac
1850done
1851else
1852  echo "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1856See \`config.log' for more details." >&5
1857echo "$as_me: error: C compiler cannot create executables
1858See \`config.log' for more details." >&2;}
1859   { (exit 77); exit 77; }; }
1860fi
1861
1862ac_exeext=$ac_cv_exeext
1863echo "$as_me:$LINENO: result: $ac_file" >&5
1864echo "${ECHO_T}$ac_file" >&6
1865
1866# Check the compiler produces executables we can run.  If not, either
1867# the compiler is broken, or we cross compile.
1868echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1869echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1870# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1871# If not cross compiling, check that we can run a simple program.
1872if test "$cross_compiling" != yes; then
1873  if { ac_try='./$ac_file'
1874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1875  (eval $ac_try) 2>&5
1876  ac_status=$?
1877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878  (exit $ac_status); }; }; then
1879    cross_compiling=no
1880  else
1881    if test "$cross_compiling" = maybe; then
1882	cross_compiling=yes
1883    else
1884	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1885If you meant to cross compile, use \`--host'.
1886See \`config.log' for more details." >&5
1887echo "$as_me: error: cannot run C compiled programs.
1888If you meant to cross compile, use \`--host'.
1889See \`config.log' for more details." >&2;}
1890   { (exit 1); exit 1; }; }
1891    fi
1892  fi
1893fi
1894echo "$as_me:$LINENO: result: yes" >&5
1895echo "${ECHO_T}yes" >&6
1896
1897rm -f a.out a.exe conftest$ac_cv_exeext b.out
1898ac_clean_files=$ac_clean_files_save
1899# Check the compiler produces executables we can run.  If not, either
1900# the compiler is broken, or we cross compile.
1901echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1902echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1903echo "$as_me:$LINENO: result: $cross_compiling" >&5
1904echo "${ECHO_T}$cross_compiling" >&6
1905
1906echo "$as_me:$LINENO: checking for suffix of executables" >&5
1907echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1909  (eval $ac_link) 2>&5
1910  ac_status=$?
1911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912  (exit $ac_status); }; then
1913  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1914# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1915# work properly (i.e., refer to `conftest.exe'), while it won't with
1916# `rm'.
1917for ac_file in conftest.exe conftest conftest.*; do
1918  test -f "$ac_file" || continue
1919  case $ac_file in
1920    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1921    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1922	  export ac_cv_exeext
1923	  break;;
1924    * ) break;;
1925  esac
1926done
1927else
1928  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1929See \`config.log' for more details." >&5
1930echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1931See \`config.log' for more details." >&2;}
1932   { (exit 1); exit 1; }; }
1933fi
1934
1935rm -f conftest$ac_cv_exeext
1936echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1937echo "${ECHO_T}$ac_cv_exeext" >&6
1938
1939rm -f conftest.$ac_ext
1940EXEEXT=$ac_cv_exeext
1941ac_exeext=$EXEEXT
1942echo "$as_me:$LINENO: checking for suffix of object files" >&5
1943echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1944if test "${ac_cv_objext+set}" = set; then
1945  echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
1947  cat >conftest.$ac_ext <<_ACEOF
1948/* confdefs.h.  */
1949_ACEOF
1950cat confdefs.h >>conftest.$ac_ext
1951cat >>conftest.$ac_ext <<_ACEOF
1952/* end confdefs.h.  */
1953
1954int
1955main ()
1956{
1957
1958  ;
1959  return 0;
1960}
1961_ACEOF
1962rm -f conftest.o conftest.obj
1963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1964  (eval $ac_compile) 2>&5
1965  ac_status=$?
1966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967  (exit $ac_status); }; then
1968  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1969  case $ac_file in
1970    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1971    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1972       break;;
1973  esac
1974done
1975else
1976  echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1980See \`config.log' for more details." >&5
1981echo "$as_me: error: cannot compute suffix of object files: cannot compile
1982See \`config.log' for more details." >&2;}
1983   { (exit 1); exit 1; }; }
1984fi
1985
1986rm -f conftest.$ac_cv_objext conftest.$ac_ext
1987fi
1988echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1989echo "${ECHO_T}$ac_cv_objext" >&6
1990OBJEXT=$ac_cv_objext
1991ac_objext=$OBJEXT
1992echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1993echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1994if test "${ac_cv_c_compiler_gnu+set}" = set; then
1995  echo $ECHO_N "(cached) $ECHO_C" >&6
1996else
1997  cat >conftest.$ac_ext <<_ACEOF
1998/* confdefs.h.  */
1999_ACEOF
2000cat confdefs.h >>conftest.$ac_ext
2001cat >>conftest.$ac_ext <<_ACEOF
2002/* end confdefs.h.  */
2003
2004int
2005main ()
2006{
2007#ifndef __GNUC__
2008       choke me
2009#endif
2010
2011  ;
2012  return 0;
2013}
2014_ACEOF
2015rm -f conftest.$ac_objext
2016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2017  (eval $ac_compile) 2>conftest.er1
2018  ac_status=$?
2019  grep -v '^ *+' conftest.er1 >conftest.err
2020  rm -f conftest.er1
2021  cat conftest.err >&5
2022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023  (exit $ac_status); } &&
2024	 { ac_try='test -z "$ac_c_werror_flag"
2025			 || test ! -s conftest.err'
2026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2027  (eval $ac_try) 2>&5
2028  ac_status=$?
2029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030  (exit $ac_status); }; } &&
2031	 { ac_try='test -s conftest.$ac_objext'
2032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033  (eval $ac_try) 2>&5
2034  ac_status=$?
2035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036  (exit $ac_status); }; }; then
2037  ac_compiler_gnu=yes
2038else
2039  echo "$as_me: failed program was:" >&5
2040sed 's/^/| /' conftest.$ac_ext >&5
2041
2042ac_compiler_gnu=no
2043fi
2044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2045ac_cv_c_compiler_gnu=$ac_compiler_gnu
2046
2047fi
2048echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2049echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2050GCC=`test $ac_compiler_gnu = yes && echo yes`
2051ac_test_CFLAGS=${CFLAGS+set}
2052ac_save_CFLAGS=$CFLAGS
2053CFLAGS="-g"
2054echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2055echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2056if test "${ac_cv_prog_cc_g+set}" = set; then
2057  echo $ECHO_N "(cached) $ECHO_C" >&6
2058else
2059  cat >conftest.$ac_ext <<_ACEOF
2060/* confdefs.h.  */
2061_ACEOF
2062cat confdefs.h >>conftest.$ac_ext
2063cat >>conftest.$ac_ext <<_ACEOF
2064/* end confdefs.h.  */
2065
2066int
2067main ()
2068{
2069
2070  ;
2071  return 0;
2072}
2073_ACEOF
2074rm -f conftest.$ac_objext
2075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076  (eval $ac_compile) 2>conftest.er1
2077  ac_status=$?
2078  grep -v '^ *+' conftest.er1 >conftest.err
2079  rm -f conftest.er1
2080  cat conftest.err >&5
2081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082  (exit $ac_status); } &&
2083	 { ac_try='test -z "$ac_c_werror_flag"
2084			 || test ! -s conftest.err'
2085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086  (eval $ac_try) 2>&5
2087  ac_status=$?
2088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089  (exit $ac_status); }; } &&
2090	 { ac_try='test -s conftest.$ac_objext'
2091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092  (eval $ac_try) 2>&5
2093  ac_status=$?
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); }; }; then
2096  ac_cv_prog_cc_g=yes
2097else
2098  echo "$as_me: failed program was:" >&5
2099sed 's/^/| /' conftest.$ac_ext >&5
2100
2101ac_cv_prog_cc_g=no
2102fi
2103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2104fi
2105echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2106echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107if test "$ac_test_CFLAGS" = set; then
2108  CFLAGS=$ac_save_CFLAGS
2109elif test $ac_cv_prog_cc_g = yes; then
2110  if test "$GCC" = yes; then
2111    CFLAGS="-g -O2"
2112  else
2113    CFLAGS="-g"
2114  fi
2115else
2116  if test "$GCC" = yes; then
2117    CFLAGS="-O2"
2118  else
2119    CFLAGS=
2120  fi
2121fi
2122echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124if test "${ac_cv_prog_cc_stdc+set}" = set; then
2125  echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
2127  ac_cv_prog_cc_stdc=no
2128ac_save_CC=$CC
2129cat >conftest.$ac_ext <<_ACEOF
2130/* confdefs.h.  */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
2134/* end confdefs.h.  */
2135#include <stdarg.h>
2136#include <stdio.h>
2137#include <sys/types.h>
2138#include <sys/stat.h>
2139/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2140struct buf { int x; };
2141FILE * (*rcsopen) (struct buf *, struct stat *, int);
2142static char *e (p, i)
2143     char **p;
2144     int i;
2145{
2146  return p[i];
2147}
2148static char *f (char * (*g) (char **, int), char **p, ...)
2149{
2150  char *s;
2151  va_list v;
2152  va_start (v,p);
2153  s = g (p, va_arg (v,int));
2154  va_end (v);
2155  return s;
2156}
2157
2158/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2159   function prototypes and stuff, but not '\xHH' hex character constants.
2160   These don't provoke an error unfortunately, instead are silently treated
2161   as 'x'.  The following induces an error, until -std1 is added to get
2162   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2163   array size at least.  It's necessary to write '\x00'==0 to get something
2164   that's true only with -std1.  */
2165int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2166
2167int test (int i, double x);
2168struct s1 {int (*f) (int a);};
2169struct s2 {int (*f) (double a);};
2170int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171int argc;
2172char **argv;
2173int
2174main ()
2175{
2176return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181# Don't try gcc -ansi; that turns off useful extensions and
2182# breaks some systems' header files.
2183# AIX			-qlanglvl=ansi
2184# Ultrix and OSF/1	-std1
2185# HP-UX 10.20 and later	-Ae
2186# HP-UX older versions	-Aa -D_HPUX_SOURCE
2187# SVR4			-Xc -D__EXTENSIONS__
2188for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189do
2190  CC="$ac_save_CC $ac_arg"
2191  rm -f conftest.$ac_objext
2192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193  (eval $ac_compile) 2>conftest.er1
2194  ac_status=$?
2195  grep -v '^ *+' conftest.er1 >conftest.err
2196  rm -f conftest.er1
2197  cat conftest.err >&5
2198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199  (exit $ac_status); } &&
2200	 { ac_try='test -z "$ac_c_werror_flag"
2201			 || test ! -s conftest.err'
2202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203  (eval $ac_try) 2>&5
2204  ac_status=$?
2205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206  (exit $ac_status); }; } &&
2207	 { ac_try='test -s conftest.$ac_objext'
2208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209  (eval $ac_try) 2>&5
2210  ac_status=$?
2211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212  (exit $ac_status); }; }; then
2213  ac_cv_prog_cc_stdc=$ac_arg
2214break
2215else
2216  echo "$as_me: failed program was:" >&5
2217sed 's/^/| /' conftest.$ac_ext >&5
2218
2219fi
2220rm -f conftest.err conftest.$ac_objext
2221done
2222rm -f conftest.$ac_ext conftest.$ac_objext
2223CC=$ac_save_CC
2224
2225fi
2226
2227case "x$ac_cv_prog_cc_stdc" in
2228  x|xno)
2229    echo "$as_me:$LINENO: result: none needed" >&5
2230echo "${ECHO_T}none needed" >&6 ;;
2231  *)
2232    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2233echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2234    CC="$CC $ac_cv_prog_cc_stdc" ;;
2235esac
2236
2237# Some people use a C++ compiler to compile C.  Since we use `exit',
2238# in C++ we need to declare it.  In case someone uses the same compiler
2239# for both compiling C and C++ we need to have the C++ compiler decide
2240# the declaration of exit, since it's the most demanding environment.
2241cat >conftest.$ac_ext <<_ACEOF
2242#ifndef __cplusplus
2243  choke me
2244#endif
2245_ACEOF
2246rm -f conftest.$ac_objext
2247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248  (eval $ac_compile) 2>conftest.er1
2249  ac_status=$?
2250  grep -v '^ *+' conftest.er1 >conftest.err
2251  rm -f conftest.er1
2252  cat conftest.err >&5
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); } &&
2255	 { ac_try='test -z "$ac_c_werror_flag"
2256			 || test ! -s conftest.err'
2257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258  (eval $ac_try) 2>&5
2259  ac_status=$?
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); }; } &&
2262	 { ac_try='test -s conftest.$ac_objext'
2263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264  (eval $ac_try) 2>&5
2265  ac_status=$?
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); }; }; then
2268  for ac_declaration in \
2269   '' \
2270   'extern "C" void std::exit (int) throw (); using std::exit;' \
2271   'extern "C" void std::exit (int); using std::exit;' \
2272   'extern "C" void exit (int) throw ();' \
2273   'extern "C" void exit (int);' \
2274   'void exit (int);'
2275do
2276  cat >conftest.$ac_ext <<_ACEOF
2277/* confdefs.h.  */
2278_ACEOF
2279cat confdefs.h >>conftest.$ac_ext
2280cat >>conftest.$ac_ext <<_ACEOF
2281/* end confdefs.h.  */
2282$ac_declaration
2283#include <stdlib.h>
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  :
2315else
2316  echo "$as_me: failed program was:" >&5
2317sed 's/^/| /' conftest.$ac_ext >&5
2318
2319continue
2320fi
2321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2322  cat >conftest.$ac_ext <<_ACEOF
2323/* confdefs.h.  */
2324_ACEOF
2325cat confdefs.h >>conftest.$ac_ext
2326cat >>conftest.$ac_ext <<_ACEOF
2327/* end confdefs.h.  */
2328$ac_declaration
2329int
2330main ()
2331{
2332exit (42);
2333  ;
2334  return 0;
2335}
2336_ACEOF
2337rm -f conftest.$ac_objext
2338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339  (eval $ac_compile) 2>conftest.er1
2340  ac_status=$?
2341  grep -v '^ *+' conftest.er1 >conftest.err
2342  rm -f conftest.er1
2343  cat conftest.err >&5
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); } &&
2346	 { ac_try='test -z "$ac_c_werror_flag"
2347			 || test ! -s conftest.err'
2348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349  (eval $ac_try) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; } &&
2353	 { ac_try='test -s conftest.$ac_objext'
2354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355  (eval $ac_try) 2>&5
2356  ac_status=$?
2357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358  (exit $ac_status); }; }; then
2359  break
2360else
2361  echo "$as_me: failed program was:" >&5
2362sed 's/^/| /' conftest.$ac_ext >&5
2363
2364fi
2365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2366done
2367rm -f conftest*
2368if test -n "$ac_declaration"; then
2369  echo '#ifdef __cplusplus' >>confdefs.h
2370  echo $ac_declaration      >>confdefs.h
2371  echo '#endif'             >>confdefs.h
2372fi
2373
2374else
2375  echo "$as_me: failed program was:" >&5
2376sed 's/^/| /' conftest.$ac_ext >&5
2377
2378fi
2379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380ac_ext=c
2381ac_cpp='$CPP $CPPFLAGS'
2382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385
2386echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2387echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2388set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2389if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2390  echo $ECHO_N "(cached) $ECHO_C" >&6
2391else
2392  cat >conftest.make <<\_ACEOF
2393all:
2394	@echo 'ac_maketemp="$(MAKE)"'
2395_ACEOF
2396# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2397eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2398if test -n "$ac_maketemp"; then
2399  eval ac_cv_prog_make_${ac_make}_set=yes
2400else
2401  eval ac_cv_prog_make_${ac_make}_set=no
2402fi
2403rm -f conftest.make
2404fi
2405if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2406  echo "$as_me:$LINENO: result: yes" >&5
2407echo "${ECHO_T}yes" >&6
2408  SET_MAKE=
2409else
2410  echo "$as_me:$LINENO: result: no" >&5
2411echo "${ECHO_T}no" >&6
2412  SET_MAKE="MAKE=${MAKE-make}"
2413fi
2414
2415
2416
2417ac_ext=c
2418ac_cpp='$CPP $CPPFLAGS'
2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2423echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2424# On Suns, sometimes $CPP names a directory.
2425if test -n "$CPP" && test -d "$CPP"; then
2426  CPP=
2427fi
2428if test -z "$CPP"; then
2429  if test "${ac_cv_prog_CPP+set}" = set; then
2430  echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432      # Double quotes because CPP needs to be expanded
2433    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2434    do
2435      ac_preproc_ok=false
2436for ac_c_preproc_warn_flag in '' yes
2437do
2438  # Use a header file that comes with gcc, so configuring glibc
2439  # with a fresh cross-compiler works.
2440  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2441  # <limits.h> exists even on freestanding compilers.
2442  # On the NeXT, cc -E runs the code through the compiler's parser,
2443  # not just through cpp. "Syntax error" is here to catch this case.
2444  cat >conftest.$ac_ext <<_ACEOF
2445/* confdefs.h.  */
2446_ACEOF
2447cat confdefs.h >>conftest.$ac_ext
2448cat >>conftest.$ac_ext <<_ACEOF
2449/* end confdefs.h.  */
2450#ifdef __STDC__
2451# include <limits.h>
2452#else
2453# include <assert.h>
2454#endif
2455		     Syntax error
2456_ACEOF
2457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2458  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2459  ac_status=$?
2460  grep -v '^ *+' conftest.er1 >conftest.err
2461  rm -f conftest.er1
2462  cat conftest.err >&5
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); } >/dev/null; then
2465  if test -s conftest.err; then
2466    ac_cpp_err=$ac_c_preproc_warn_flag
2467    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2468  else
2469    ac_cpp_err=
2470  fi
2471else
2472  ac_cpp_err=yes
2473fi
2474if test -z "$ac_cpp_err"; then
2475  :
2476else
2477  echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480  # Broken: fails on valid input.
2481continue
2482fi
2483rm -f conftest.err conftest.$ac_ext
2484
2485  # OK, works on sane cases.  Now check whether non-existent headers
2486  # can be detected and how.
2487  cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h.  */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h.  */
2493#include <ac_nonexistent.h>
2494_ACEOF
2495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2496  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2497  ac_status=$?
2498  grep -v '^ *+' conftest.er1 >conftest.err
2499  rm -f conftest.er1
2500  cat conftest.err >&5
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); } >/dev/null; then
2503  if test -s conftest.err; then
2504    ac_cpp_err=$ac_c_preproc_warn_flag
2505    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2506  else
2507    ac_cpp_err=
2508  fi
2509else
2510  ac_cpp_err=yes
2511fi
2512if test -z "$ac_cpp_err"; then
2513  # Broken: success on invalid input.
2514continue
2515else
2516  echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5
2518
2519  # Passes both tests.
2520ac_preproc_ok=:
2521break
2522fi
2523rm -f conftest.err conftest.$ac_ext
2524
2525done
2526# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2527rm -f conftest.err conftest.$ac_ext
2528if $ac_preproc_ok; then
2529  break
2530fi
2531
2532    done
2533    ac_cv_prog_CPP=$CPP
2534
2535fi
2536  CPP=$ac_cv_prog_CPP
2537else
2538  ac_cv_prog_CPP=$CPP
2539fi
2540echo "$as_me:$LINENO: result: $CPP" >&5
2541echo "${ECHO_T}$CPP" >&6
2542ac_preproc_ok=false
2543for ac_c_preproc_warn_flag in '' yes
2544do
2545  # Use a header file that comes with gcc, so configuring glibc
2546  # with a fresh cross-compiler works.
2547  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2548  # <limits.h> exists even on freestanding compilers.
2549  # On the NeXT, cc -E runs the code through the compiler's parser,
2550  # not just through cpp. "Syntax error" is here to catch this case.
2551  cat >conftest.$ac_ext <<_ACEOF
2552/* confdefs.h.  */
2553_ACEOF
2554cat confdefs.h >>conftest.$ac_ext
2555cat >>conftest.$ac_ext <<_ACEOF
2556/* end confdefs.h.  */
2557#ifdef __STDC__
2558# include <limits.h>
2559#else
2560# include <assert.h>
2561#endif
2562		     Syntax error
2563_ACEOF
2564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2565  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2566  ac_status=$?
2567  grep -v '^ *+' conftest.er1 >conftest.err
2568  rm -f conftest.er1
2569  cat conftest.err >&5
2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571  (exit $ac_status); } >/dev/null; then
2572  if test -s conftest.err; then
2573    ac_cpp_err=$ac_c_preproc_warn_flag
2574    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2575  else
2576    ac_cpp_err=
2577  fi
2578else
2579  ac_cpp_err=yes
2580fi
2581if test -z "$ac_cpp_err"; then
2582  :
2583else
2584  echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587  # Broken: fails on valid input.
2588continue
2589fi
2590rm -f conftest.err conftest.$ac_ext
2591
2592  # OK, works on sane cases.  Now check whether non-existent headers
2593  # can be detected and how.
2594  cat >conftest.$ac_ext <<_ACEOF
2595/* confdefs.h.  */
2596_ACEOF
2597cat confdefs.h >>conftest.$ac_ext
2598cat >>conftest.$ac_ext <<_ACEOF
2599/* end confdefs.h.  */
2600#include <ac_nonexistent.h>
2601_ACEOF
2602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2603  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2604  ac_status=$?
2605  grep -v '^ *+' conftest.er1 >conftest.err
2606  rm -f conftest.er1
2607  cat conftest.err >&5
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); } >/dev/null; then
2610  if test -s conftest.err; then
2611    ac_cpp_err=$ac_c_preproc_warn_flag
2612    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2613  else
2614    ac_cpp_err=
2615  fi
2616else
2617  ac_cpp_err=yes
2618fi
2619if test -z "$ac_cpp_err"; then
2620  # Broken: success on invalid input.
2621continue
2622else
2623  echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626  # Passes both tests.
2627ac_preproc_ok=:
2628break
2629fi
2630rm -f conftest.err conftest.$ac_ext
2631
2632done
2633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2634rm -f conftest.err conftest.$ac_ext
2635if $ac_preproc_ok; then
2636  :
2637else
2638  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2639See \`config.log' for more details." >&5
2640echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2641See \`config.log' for more details." >&2;}
2642   { (exit 1); exit 1; }; }
2643fi
2644
2645ac_ext=c
2646ac_cpp='$CPP $CPPFLAGS'
2647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650
2651
2652echo "$as_me:$LINENO: checking for egrep" >&5
2653echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2654if test "${ac_cv_prog_egrep+set}" = set; then
2655  echo $ECHO_N "(cached) $ECHO_C" >&6
2656else
2657  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2658    then ac_cv_prog_egrep='grep -E'
2659    else ac_cv_prog_egrep='egrep'
2660    fi
2661fi
2662echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2663echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2664 EGREP=$ac_cv_prog_egrep
2665
2666
2667echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2668echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2669if test "${ac_cv_header_stdc+set}" = set; then
2670  echo $ECHO_N "(cached) $ECHO_C" >&6
2671else
2672  cat >conftest.$ac_ext <<_ACEOF
2673/* confdefs.h.  */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h.  */
2678#include <stdlib.h>
2679#include <stdarg.h>
2680#include <string.h>
2681#include <float.h>
2682
2683int
2684main ()
2685{
2686
2687  ;
2688  return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693  (eval $ac_compile) 2>conftest.er1
2694  ac_status=$?
2695  grep -v '^ *+' conftest.er1 >conftest.err
2696  rm -f conftest.er1
2697  cat conftest.err >&5
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); } &&
2700	 { ac_try='test -z "$ac_c_werror_flag"
2701			 || test ! -s conftest.err'
2702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703  (eval $ac_try) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; } &&
2707	 { ac_try='test -s conftest.$ac_objext'
2708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709  (eval $ac_try) 2>&5
2710  ac_status=$?
2711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712  (exit $ac_status); }; }; then
2713  ac_cv_header_stdc=yes
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718ac_cv_header_stdc=no
2719fi
2720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721
2722if test $ac_cv_header_stdc = yes; then
2723  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2724  cat >conftest.$ac_ext <<_ACEOF
2725/* confdefs.h.  */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h.  */
2730#include <string.h>
2731
2732_ACEOF
2733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2734  $EGREP "memchr" >/dev/null 2>&1; then
2735  :
2736else
2737  ac_cv_header_stdc=no
2738fi
2739rm -f conftest*
2740
2741fi
2742
2743if test $ac_cv_header_stdc = yes; then
2744  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2745  cat >conftest.$ac_ext <<_ACEOF
2746/* confdefs.h.  */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h.  */
2751#include <stdlib.h>
2752
2753_ACEOF
2754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2755  $EGREP "free" >/dev/null 2>&1; then
2756  :
2757else
2758  ac_cv_header_stdc=no
2759fi
2760rm -f conftest*
2761
2762fi
2763
2764if test $ac_cv_header_stdc = yes; then
2765  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2766  if test "$cross_compiling" = yes; then
2767  :
2768else
2769  cat >conftest.$ac_ext <<_ACEOF
2770/* confdefs.h.  */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h.  */
2775#include <ctype.h>
2776#if ((' ' & 0x0FF) == 0x020)
2777# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2778# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2779#else
2780# define ISLOWER(c) \
2781		   (('a' <= (c) && (c) <= 'i') \
2782		     || ('j' <= (c) && (c) <= 'r') \
2783		     || ('s' <= (c) && (c) <= 'z'))
2784# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2785#endif
2786
2787#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2788int
2789main ()
2790{
2791  int i;
2792  for (i = 0; i < 256; i++)
2793    if (XOR (islower (i), ISLOWER (i))
2794	|| toupper (i) != TOUPPER (i))
2795      exit(2);
2796  exit (0);
2797}
2798_ACEOF
2799rm -f conftest$ac_exeext
2800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2801  (eval $ac_link) 2>&5
2802  ac_status=$?
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806  (eval $ac_try) 2>&5
2807  ac_status=$?
2808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809  (exit $ac_status); }; }; then
2810  :
2811else
2812  echo "$as_me: program exited with status $ac_status" >&5
2813echo "$as_me: failed program was:" >&5
2814sed 's/^/| /' conftest.$ac_ext >&5
2815
2816( exit $ac_status )
2817ac_cv_header_stdc=no
2818fi
2819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2820fi
2821fi
2822fi
2823echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2824echo "${ECHO_T}$ac_cv_header_stdc" >&6
2825if test $ac_cv_header_stdc = yes; then
2826
2827cat >>confdefs.h <<\_ACEOF
2828#define STDC_HEADERS 1
2829_ACEOF
2830
2831fi
2832
2833echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
2834echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2835if test "${ac_cv_header_time+set}" = set; then
2836  echo $ECHO_N "(cached) $ECHO_C" >&6
2837else
2838  cat >conftest.$ac_ext <<_ACEOF
2839/* confdefs.h.  */
2840_ACEOF
2841cat confdefs.h >>conftest.$ac_ext
2842cat >>conftest.$ac_ext <<_ACEOF
2843/* end confdefs.h.  */
2844#include <sys/types.h>
2845#include <sys/time.h>
2846#include <time.h>
2847
2848int
2849main ()
2850{
2851if ((struct tm *) 0)
2852return 0;
2853  ;
2854  return 0;
2855}
2856_ACEOF
2857rm -f conftest.$ac_objext
2858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859  (eval $ac_compile) 2>conftest.er1
2860  ac_status=$?
2861  grep -v '^ *+' conftest.er1 >conftest.err
2862  rm -f conftest.er1
2863  cat conftest.err >&5
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); } &&
2866	 { ac_try='test -z "$ac_c_werror_flag"
2867			 || test ! -s conftest.err'
2868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869  (eval $ac_try) 2>&5
2870  ac_status=$?
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); }; } &&
2873	 { ac_try='test -s conftest.$ac_objext'
2874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875  (eval $ac_try) 2>&5
2876  ac_status=$?
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); }; }; then
2879  ac_cv_header_time=yes
2880else
2881  echo "$as_me: failed program was:" >&5
2882sed 's/^/| /' conftest.$ac_ext >&5
2883
2884ac_cv_header_time=no
2885fi
2886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2887fi
2888echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
2889echo "${ECHO_T}$ac_cv_header_time" >&6
2890if test $ac_cv_header_time = yes; then
2891
2892cat >>confdefs.h <<\_ACEOF
2893#define TIME_WITH_SYS_TIME 1
2894_ACEOF
2895
2896fi
2897
2898echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
2899echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
2900if test "${ac_cv_header_sys_wait_h+set}" = set; then
2901  echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903  cat >conftest.$ac_ext <<_ACEOF
2904/* confdefs.h.  */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h.  */
2909#include <sys/types.h>
2910#include <sys/wait.h>
2911#ifndef WEXITSTATUS
2912# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2913#endif
2914#ifndef WIFEXITED
2915# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2916#endif
2917
2918int
2919main ()
2920{
2921  int s;
2922  wait (&s);
2923  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2924  ;
2925  return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext
2929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930  (eval $ac_compile) 2>conftest.er1
2931  ac_status=$?
2932  grep -v '^ *+' conftest.er1 >conftest.err
2933  rm -f conftest.er1
2934  cat conftest.err >&5
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); } &&
2937	 { ac_try='test -z "$ac_c_werror_flag"
2938			 || test ! -s conftest.err'
2939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940  (eval $ac_try) 2>&5
2941  ac_status=$?
2942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943  (exit $ac_status); }; } &&
2944	 { ac_try='test -s conftest.$ac_objext'
2945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946  (eval $ac_try) 2>&5
2947  ac_status=$?
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); }; }; then
2950  ac_cv_header_sys_wait_h=yes
2951else
2952  echo "$as_me: failed program was:" >&5
2953sed 's/^/| /' conftest.$ac_ext >&5
2954
2955ac_cv_header_sys_wait_h=no
2956fi
2957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2958fi
2959echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
2960echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
2961if test $ac_cv_header_sys_wait_h = yes; then
2962
2963cat >>confdefs.h <<\_ACEOF
2964#define HAVE_SYS_WAIT_H 1
2965_ACEOF
2966
2967fi
2968
2969# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2980		  inttypes.h stdint.h unistd.h
2981do
2982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2983echo "$as_me:$LINENO: checking for $ac_header" >&5
2984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2985if eval "test \"\${$as_ac_Header+set}\" = set"; then
2986  echo $ECHO_N "(cached) $ECHO_C" >&6
2987else
2988  cat >conftest.$ac_ext <<_ACEOF
2989/* confdefs.h.  */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h.  */
2994$ac_includes_default
2995
2996#include <$ac_header>
2997_ACEOF
2998rm -f conftest.$ac_objext
2999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3000  (eval $ac_compile) 2>conftest.er1
3001  ac_status=$?
3002  grep -v '^ *+' conftest.er1 >conftest.err
3003  rm -f conftest.er1
3004  cat conftest.err >&5
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); } &&
3007	 { ac_try='test -z "$ac_c_werror_flag"
3008			 || test ! -s conftest.err'
3009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010  (eval $ac_try) 2>&5
3011  ac_status=$?
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); }; } &&
3014	 { ac_try='test -s conftest.$ac_objext'
3015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016  (eval $ac_try) 2>&5
3017  ac_status=$?
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); }; }; then
3020  eval "$as_ac_Header=yes"
3021else
3022  echo "$as_me: failed program was:" >&5
3023sed 's/^/| /' conftest.$ac_ext >&5
3024
3025eval "$as_ac_Header=no"
3026fi
3027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3028fi
3029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3031if test `eval echo '${'$as_ac_Header'}'` = yes; then
3032  cat >>confdefs.h <<_ACEOF
3033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3034_ACEOF
3035
3036fi
3037
3038done
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068for ac_header in db.h ctype.h errno.h fcntl.h grp.h inttypes.h netdb.h pwd.h regex.h signal.h stdint.h strings.h string.h syslog.h tcpd.h unistd.h arpa/inet.h netinet/in.h sys/config.h sys/int_types.h sys/poll.h sys/types.h sys/time.h sys/resource.h sys/socket.h sys/stat.h sys/wait.h
3069do
3070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3071if eval "test \"\${$as_ac_Header+set}\" = set"; then
3072  echo "$as_me:$LINENO: checking for $ac_header" >&5
3073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3074if eval "test \"\${$as_ac_Header+set}\" = set"; then
3075  echo $ECHO_N "(cached) $ECHO_C" >&6
3076fi
3077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3078echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3079else
3080  # Is the header compilable?
3081echo "$as_me:$LINENO: checking $ac_header usability" >&5
3082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3083cat >conftest.$ac_ext <<_ACEOF
3084/* confdefs.h.  */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h.  */
3089$ac_includes_default
3090#include <$ac_header>
3091_ACEOF
3092rm -f conftest.$ac_objext
3093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094  (eval $ac_compile) 2>conftest.er1
3095  ac_status=$?
3096  grep -v '^ *+' conftest.er1 >conftest.err
3097  rm -f conftest.er1
3098  cat conftest.err >&5
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); } &&
3101	 { ac_try='test -z "$ac_c_werror_flag"
3102			 || test ! -s conftest.err'
3103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104  (eval $ac_try) 2>&5
3105  ac_status=$?
3106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107  (exit $ac_status); }; } &&
3108	 { ac_try='test -s conftest.$ac_objext'
3109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110  (eval $ac_try) 2>&5
3111  ac_status=$?
3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); }; }; then
3114  ac_header_compiler=yes
3115else
3116  echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119ac_header_compiler=no
3120fi
3121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3122echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3123echo "${ECHO_T}$ac_header_compiler" >&6
3124
3125# Is the header present?
3126echo "$as_me:$LINENO: checking $ac_header presence" >&5
3127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3128cat >conftest.$ac_ext <<_ACEOF
3129/* confdefs.h.  */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h.  */
3134#include <$ac_header>
3135_ACEOF
3136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3137  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3138  ac_status=$?
3139  grep -v '^ *+' conftest.er1 >conftest.err
3140  rm -f conftest.er1
3141  cat conftest.err >&5
3142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); } >/dev/null; then
3144  if test -s conftest.err; then
3145    ac_cpp_err=$ac_c_preproc_warn_flag
3146    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3147  else
3148    ac_cpp_err=
3149  fi
3150else
3151  ac_cpp_err=yes
3152fi
3153if test -z "$ac_cpp_err"; then
3154  ac_header_preproc=yes
3155else
3156  echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159  ac_header_preproc=no
3160fi
3161rm -f conftest.err conftest.$ac_ext
3162echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3163echo "${ECHO_T}$ac_header_preproc" >&6
3164
3165# So?  What about this header?
3166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3167  yes:no: )
3168    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3169echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3170    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3171echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3172    ac_header_preproc=yes
3173    ;;
3174  no:yes:* )
3175    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3176echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3177    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3178echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3179    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3180echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3181    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3182echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3183    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3185    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3186echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3187    (
3188      cat <<\_ASBOX
3189## ------------------------------------------ ##
3190## Report this to the AC_PACKAGE_NAME lists.  ##
3191## ------------------------------------------ ##
3192_ASBOX
3193    ) |
3194      sed "s/^/$as_me: WARNING:     /" >&2
3195    ;;
3196esac
3197echo "$as_me:$LINENO: checking for $ac_header" >&5
3198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3199if eval "test \"\${$as_ac_Header+set}\" = set"; then
3200  echo $ECHO_N "(cached) $ECHO_C" >&6
3201else
3202  eval "$as_ac_Header=\$ac_header_preproc"
3203fi
3204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3206
3207fi
3208if test `eval echo '${'$as_ac_Header'}'` = yes; then
3209  cat >>confdefs.h <<_ACEOF
3210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3211_ACEOF
3212
3213fi
3214
3215done
3216
3217
3218echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3219echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3220if test "${ac_cv_c_const+set}" = set; then
3221  echo $ECHO_N "(cached) $ECHO_C" >&6
3222else
3223  cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h.  */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h.  */
3229
3230int
3231main ()
3232{
3233/* FIXME: Include the comments suggested by Paul. */
3234#ifndef __cplusplus
3235  /* Ultrix mips cc rejects this.  */
3236  typedef int charset[2];
3237  const charset x;
3238  /* SunOS 4.1.1 cc rejects this.  */
3239  char const *const *ccp;
3240  char **p;
3241  /* NEC SVR4.0.2 mips cc rejects this.  */
3242  struct point {int x, y;};
3243  static struct point const zero = {0,0};
3244  /* AIX XL C 1.02.0.0 rejects this.
3245     It does not let you subtract one const X* pointer from another in
3246     an arm of an if-expression whose if-part is not a constant
3247     expression */
3248  const char *g = "string";
3249  ccp = &g + (g ? g-g : 0);
3250  /* HPUX 7.0 cc rejects these. */
3251  ++ccp;
3252  p = (char**) ccp;
3253  ccp = (char const *const *) p;
3254  { /* SCO 3.2v4 cc rejects this.  */
3255    char *t;
3256    char const *s = 0 ? (char *) 0 : (char const *) 0;
3257
3258    *t++ = 0;
3259  }
3260  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3261    int x[] = {25, 17};
3262    const int *foo = &x[0];
3263    ++foo;
3264  }
3265  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3266    typedef const int *iptr;
3267    iptr p = 0;
3268    ++p;
3269  }
3270  { /* AIX XL C 1.02.0.0 rejects this saying
3271       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3272    struct s { int j; const int *ap[3]; };
3273    struct s *b; b->j = 5;
3274  }
3275  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3276    const int foo = 10;
3277  }
3278#endif
3279
3280  ;
3281  return 0;
3282}
3283_ACEOF
3284rm -f conftest.$ac_objext
3285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286  (eval $ac_compile) 2>conftest.er1
3287  ac_status=$?
3288  grep -v '^ *+' conftest.er1 >conftest.err
3289  rm -f conftest.er1
3290  cat conftest.err >&5
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); } &&
3293	 { ac_try='test -z "$ac_c_werror_flag"
3294			 || test ! -s conftest.err'
3295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296  (eval $ac_try) 2>&5
3297  ac_status=$?
3298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299  (exit $ac_status); }; } &&
3300	 { ac_try='test -s conftest.$ac_objext'
3301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302  (eval $ac_try) 2>&5
3303  ac_status=$?
3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305  (exit $ac_status); }; }; then
3306  ac_cv_c_const=yes
3307else
3308  echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
3311ac_cv_c_const=no
3312fi
3313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3314fi
3315echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3316echo "${ECHO_T}$ac_cv_c_const" >&6
3317if test $ac_cv_c_const = no; then
3318
3319cat >>confdefs.h <<\_ACEOF
3320#define const
3321_ACEOF
3322
3323fi
3324
3325echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3326echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3327if test "${ac_cv_struct_tm+set}" = set; then
3328  echo $ECHO_N "(cached) $ECHO_C" >&6
3329else
3330  cat >conftest.$ac_ext <<_ACEOF
3331/* confdefs.h.  */
3332_ACEOF
3333cat confdefs.h >>conftest.$ac_ext
3334cat >>conftest.$ac_ext <<_ACEOF
3335/* end confdefs.h.  */
3336#include <sys/types.h>
3337#include <time.h>
3338
3339int
3340main ()
3341{
3342struct tm *tp; tp->tm_sec;
3343  ;
3344  return 0;
3345}
3346_ACEOF
3347rm -f conftest.$ac_objext
3348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349  (eval $ac_compile) 2>conftest.er1
3350  ac_status=$?
3351  grep -v '^ *+' conftest.er1 >conftest.err
3352  rm -f conftest.er1
3353  cat conftest.err >&5
3354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355  (exit $ac_status); } &&
3356	 { ac_try='test -z "$ac_c_werror_flag"
3357			 || test ! -s conftest.err'
3358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359  (eval $ac_try) 2>&5
3360  ac_status=$?
3361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362  (exit $ac_status); }; } &&
3363	 { ac_try='test -s conftest.$ac_objext'
3364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365  (eval $ac_try) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }; }; then
3369  ac_cv_struct_tm=time.h
3370else
3371  echo "$as_me: failed program was:" >&5
3372sed 's/^/| /' conftest.$ac_ext >&5
3373
3374ac_cv_struct_tm=sys/time.h
3375fi
3376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3377fi
3378echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3379echo "${ECHO_T}$ac_cv_struct_tm" >&6
3380if test $ac_cv_struct_tm = sys/time.h; then
3381
3382cat >>confdefs.h <<\_ACEOF
3383#define TM_IN_SYS_TIME 1
3384_ACEOF
3385
3386fi
3387
3388echo "$as_me:$LINENO: checking for mode_t" >&5
3389echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3390if test "${ac_cv_type_mode_t+set}" = set; then
3391  echo $ECHO_N "(cached) $ECHO_C" >&6
3392else
3393  cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h.  */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h.  */
3399$ac_includes_default
3400int
3401main ()
3402{
3403if ((mode_t *) 0)
3404  return 0;
3405if (sizeof (mode_t))
3406  return 0;
3407  ;
3408  return 0;
3409}
3410_ACEOF
3411rm -f conftest.$ac_objext
3412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3413  (eval $ac_compile) 2>conftest.er1
3414  ac_status=$?
3415  grep -v '^ *+' conftest.er1 >conftest.err
3416  rm -f conftest.er1
3417  cat conftest.err >&5
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); } &&
3420	 { ac_try='test -z "$ac_c_werror_flag"
3421			 || test ! -s conftest.err'
3422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423  (eval $ac_try) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }; } &&
3427	 { ac_try='test -s conftest.$ac_objext'
3428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429  (eval $ac_try) 2>&5
3430  ac_status=$?
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); }; }; then
3433  ac_cv_type_mode_t=yes
3434else
3435  echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438ac_cv_type_mode_t=no
3439fi
3440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3441fi
3442echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3443echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3444if test $ac_cv_type_mode_t = yes; then
3445  :
3446else
3447
3448cat >>confdefs.h <<_ACEOF
3449#define mode_t int
3450_ACEOF
3451
3452fi
3453
3454echo "$as_me:$LINENO: checking for pid_t" >&5
3455echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3456if test "${ac_cv_type_pid_t+set}" = set; then
3457  echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459  cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h.  */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h.  */
3465$ac_includes_default
3466int
3467main ()
3468{
3469if ((pid_t *) 0)
3470  return 0;
3471if (sizeof (pid_t))
3472  return 0;
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477rm -f conftest.$ac_objext
3478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479  (eval $ac_compile) 2>conftest.er1
3480  ac_status=$?
3481  grep -v '^ *+' conftest.er1 >conftest.err
3482  rm -f conftest.er1
3483  cat conftest.err >&5
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); } &&
3486	 { ac_try='test -z "$ac_c_werror_flag"
3487			 || test ! -s conftest.err'
3488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489  (eval $ac_try) 2>&5
3490  ac_status=$?
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); }; } &&
3493	 { ac_try='test -s conftest.$ac_objext'
3494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495  (eval $ac_try) 2>&5
3496  ac_status=$?
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); }; }; then
3499  ac_cv_type_pid_t=yes
3500else
3501  echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504ac_cv_type_pid_t=no
3505fi
3506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507fi
3508echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3509echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3510if test $ac_cv_type_pid_t = yes; then
3511  :
3512else
3513
3514cat >>confdefs.h <<_ACEOF
3515#define pid_t int
3516_ACEOF
3517
3518fi
3519
3520echo "$as_me:$LINENO: checking for size_t" >&5
3521echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3522if test "${ac_cv_type_size_t+set}" = set; then
3523  echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525  cat >conftest.$ac_ext <<_ACEOF
3526/* confdefs.h.  */
3527_ACEOF
3528cat confdefs.h >>conftest.$ac_ext
3529cat >>conftest.$ac_ext <<_ACEOF
3530/* end confdefs.h.  */
3531$ac_includes_default
3532int
3533main ()
3534{
3535if ((size_t *) 0)
3536  return 0;
3537if (sizeof (size_t))
3538  return 0;
3539  ;
3540  return 0;
3541}
3542_ACEOF
3543rm -f conftest.$ac_objext
3544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545  (eval $ac_compile) 2>conftest.er1
3546  ac_status=$?
3547  grep -v '^ *+' conftest.er1 >conftest.err
3548  rm -f conftest.er1
3549  cat conftest.err >&5
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); } &&
3552	 { ac_try='test -z "$ac_c_werror_flag"
3553			 || test ! -s conftest.err'
3554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555  (eval $ac_try) 2>&5
3556  ac_status=$?
3557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558  (exit $ac_status); }; } &&
3559	 { ac_try='test -s conftest.$ac_objext'
3560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561  (eval $ac_try) 2>&5
3562  ac_status=$?
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); }; }; then
3565  ac_cv_type_size_t=yes
3566else
3567  echo "$as_me: failed program was:" >&5
3568sed 's/^/| /' conftest.$ac_ext >&5
3569
3570ac_cv_type_size_t=no
3571fi
3572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3573fi
3574echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3575echo "${ECHO_T}$ac_cv_type_size_t" >&6
3576if test $ac_cv_type_size_t = yes; then
3577  :
3578else
3579
3580cat >>confdefs.h <<_ACEOF
3581#define size_t unsigned
3582_ACEOF
3583
3584fi
3585
3586echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3587echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3588if test "${ac_cv_type_signal+set}" = set; then
3589  echo $ECHO_N "(cached) $ECHO_C" >&6
3590else
3591  cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h.  */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h.  */
3597#include <sys/types.h>
3598#include <signal.h>
3599#ifdef signal
3600# undef signal
3601#endif
3602#ifdef __cplusplus
3603extern "C" void (*signal (int, void (*)(int)))(int);
3604#else
3605void (*signal ()) ();
3606#endif
3607
3608int
3609main ()
3610{
3611int i;
3612  ;
3613  return 0;
3614}
3615_ACEOF
3616rm -f conftest.$ac_objext
3617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618  (eval $ac_compile) 2>conftest.er1
3619  ac_status=$?
3620  grep -v '^ *+' conftest.er1 >conftest.err
3621  rm -f conftest.er1
3622  cat conftest.err >&5
3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624  (exit $ac_status); } &&
3625	 { ac_try='test -z "$ac_c_werror_flag"
3626			 || test ! -s conftest.err'
3627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628  (eval $ac_try) 2>&5
3629  ac_status=$?
3630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631  (exit $ac_status); }; } &&
3632	 { ac_try='test -s conftest.$ac_objext'
3633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634  (eval $ac_try) 2>&5
3635  ac_status=$?
3636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637  (exit $ac_status); }; }; then
3638  ac_cv_type_signal=void
3639else
3640  echo "$as_me: failed program was:" >&5
3641sed 's/^/| /' conftest.$ac_ext >&5
3642
3643ac_cv_type_signal=int
3644fi
3645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3646fi
3647echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3648echo "${ECHO_T}$ac_cv_type_signal" >&6
3649
3650cat >>confdefs.h <<_ACEOF
3651#define RETSIGTYPE $ac_cv_type_signal
3652_ACEOF
3653
3654
3655echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
3656echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
3657if test "${ac_cv_type_uid_t+set}" = set; then
3658  echo $ECHO_N "(cached) $ECHO_C" >&6
3659else
3660  cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h.  */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h.  */
3666#include <sys/types.h>
3667
3668_ACEOF
3669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3670  $EGREP "uid_t" >/dev/null 2>&1; then
3671  ac_cv_type_uid_t=yes
3672else
3673  ac_cv_type_uid_t=no
3674fi
3675rm -f conftest*
3676
3677fi
3678echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
3679echo "${ECHO_T}$ac_cv_type_uid_t" >&6
3680if test $ac_cv_type_uid_t = no; then
3681
3682cat >>confdefs.h <<\_ACEOF
3683#define uid_t int
3684_ACEOF
3685
3686
3687cat >>confdefs.h <<\_ACEOF
3688#define gid_t int
3689_ACEOF
3690
3691fi
3692
3693echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
3694echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
3695if test "${ac_cv_type_getgroups+set}" = set; then
3696  echo $ECHO_N "(cached) $ECHO_C" >&6
3697else
3698  if test "$cross_compiling" = yes; then
3699  ac_cv_type_getgroups=cross
3700else
3701  cat >conftest.$ac_ext <<_ACEOF
3702/* confdefs.h.  */
3703_ACEOF
3704cat confdefs.h >>conftest.$ac_ext
3705cat >>conftest.$ac_ext <<_ACEOF
3706/* end confdefs.h.  */
3707/* Thanks to Mike Rendell for this test.  */
3708#include <sys/types.h>
3709#define NGID 256
3710#undef MAX
3711#define MAX(x, y) ((x) > (y) ? (x) : (y))
3712
3713int
3714main ()
3715{
3716  gid_t gidset[NGID];
3717  int i, n;
3718  union { gid_t gval; long lval; }  val;
3719
3720  val.lval = -1;
3721  for (i = 0; i < NGID; i++)
3722    gidset[i] = val.gval;
3723  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3724		 gidset);
3725  /* Exit non-zero if getgroups seems to require an array of ints.  This
3726     happens when gid_t is short but getgroups modifies an array of ints.  */
3727  exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3728}
3729_ACEOF
3730rm -f conftest$ac_exeext
3731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3732  (eval $ac_link) 2>&5
3733  ac_status=$?
3734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737  (eval $ac_try) 2>&5
3738  ac_status=$?
3739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740  (exit $ac_status); }; }; then
3741  ac_cv_type_getgroups=gid_t
3742else
3743  echo "$as_me: program exited with status $ac_status" >&5
3744echo "$as_me: failed program was:" >&5
3745sed 's/^/| /' conftest.$ac_ext >&5
3746
3747( exit $ac_status )
3748ac_cv_type_getgroups=int
3749fi
3750rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3751fi
3752if test $ac_cv_type_getgroups = cross; then
3753        cat >conftest.$ac_ext <<_ACEOF
3754/* confdefs.h.  */
3755_ACEOF
3756cat confdefs.h >>conftest.$ac_ext
3757cat >>conftest.$ac_ext <<_ACEOF
3758/* end confdefs.h.  */
3759#include <unistd.h>
3760
3761_ACEOF
3762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3763  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3764  ac_cv_type_getgroups=gid_t
3765else
3766  ac_cv_type_getgroups=int
3767fi
3768rm -f conftest*
3769
3770fi
3771fi
3772echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
3773echo "${ECHO_T}$ac_cv_type_getgroups" >&6
3774
3775cat >>confdefs.h <<_ACEOF
3776#define GETGROUPS_T $ac_cv_type_getgroups
3777_ACEOF
3778
3779
3780
3781echo "$as_me:$LINENO: checking for int" >&5
3782echo $ECHO_N "checking for int... $ECHO_C" >&6
3783if test "${ac_cv_type_int+set}" = set; then
3784  echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786  cat >conftest.$ac_ext <<_ACEOF
3787/* confdefs.h.  */
3788_ACEOF
3789cat confdefs.h >>conftest.$ac_ext
3790cat >>conftest.$ac_ext <<_ACEOF
3791/* end confdefs.h.  */
3792$ac_includes_default
3793int
3794main ()
3795{
3796if ((int *) 0)
3797  return 0;
3798if (sizeof (int))
3799  return 0;
3800  ;
3801  return 0;
3802}
3803_ACEOF
3804rm -f conftest.$ac_objext
3805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806  (eval $ac_compile) 2>conftest.er1
3807  ac_status=$?
3808  grep -v '^ *+' conftest.er1 >conftest.err
3809  rm -f conftest.er1
3810  cat conftest.err >&5
3811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812  (exit $ac_status); } &&
3813	 { ac_try='test -z "$ac_c_werror_flag"
3814			 || test ! -s conftest.err'
3815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816  (eval $ac_try) 2>&5
3817  ac_status=$?
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); }; } &&
3820	 { ac_try='test -s conftest.$ac_objext'
3821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822  (eval $ac_try) 2>&5
3823  ac_status=$?
3824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825  (exit $ac_status); }; }; then
3826  ac_cv_type_int=yes
3827else
3828  echo "$as_me: failed program was:" >&5
3829sed 's/^/| /' conftest.$ac_ext >&5
3830
3831ac_cv_type_int=no
3832fi
3833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3834fi
3835echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3836echo "${ECHO_T}$ac_cv_type_int" >&6
3837
3838echo "$as_me:$LINENO: checking size of int" >&5
3839echo $ECHO_N "checking size of int... $ECHO_C" >&6
3840if test "${ac_cv_sizeof_int+set}" = set; then
3841  echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843  if test "$ac_cv_type_int" = yes; then
3844  # The cast to unsigned long works around a bug in the HP C Compiler
3845  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3846  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3847  # This bug is HP SR number 8606223364.
3848  if test "$cross_compiling" = yes; then
3849  # Depending upon the size, compute the lo and hi bounds.
3850cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h.  */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h.  */
3856$ac_includes_default
3857int
3858main ()
3859{
3860static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3861test_array [0] = 0
3862
3863  ;
3864  return 0;
3865}
3866_ACEOF
3867rm -f conftest.$ac_objext
3868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869  (eval $ac_compile) 2>conftest.er1
3870  ac_status=$?
3871  grep -v '^ *+' conftest.er1 >conftest.err
3872  rm -f conftest.er1
3873  cat conftest.err >&5
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); } &&
3876	 { ac_try='test -z "$ac_c_werror_flag"
3877			 || test ! -s conftest.err'
3878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879  (eval $ac_try) 2>&5
3880  ac_status=$?
3881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882  (exit $ac_status); }; } &&
3883	 { ac_try='test -s conftest.$ac_objext'
3884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885  (eval $ac_try) 2>&5
3886  ac_status=$?
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); }; }; then
3889  ac_lo=0 ac_mid=0
3890  while :; do
3891    cat >conftest.$ac_ext <<_ACEOF
3892/* confdefs.h.  */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h.  */
3897$ac_includes_default
3898int
3899main ()
3900{
3901static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3902test_array [0] = 0
3903
3904  ;
3905  return 0;
3906}
3907_ACEOF
3908rm -f conftest.$ac_objext
3909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910  (eval $ac_compile) 2>conftest.er1
3911  ac_status=$?
3912  grep -v '^ *+' conftest.er1 >conftest.err
3913  rm -f conftest.er1
3914  cat conftest.err >&5
3915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916  (exit $ac_status); } &&
3917	 { ac_try='test -z "$ac_c_werror_flag"
3918			 || test ! -s conftest.err'
3919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920  (eval $ac_try) 2>&5
3921  ac_status=$?
3922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923  (exit $ac_status); }; } &&
3924	 { ac_try='test -s conftest.$ac_objext'
3925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926  (eval $ac_try) 2>&5
3927  ac_status=$?
3928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929  (exit $ac_status); }; }; then
3930  ac_hi=$ac_mid; break
3931else
3932  echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935ac_lo=`expr $ac_mid + 1`
3936		    if test $ac_lo -le $ac_mid; then
3937		      ac_lo= ac_hi=
3938		      break
3939		    fi
3940		    ac_mid=`expr 2 '*' $ac_mid + 1`
3941fi
3942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3943  done
3944else
3945  echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948cat >conftest.$ac_ext <<_ACEOF
3949/* confdefs.h.  */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h.  */
3954$ac_includes_default
3955int
3956main ()
3957{
3958static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3959test_array [0] = 0
3960
3961  ;
3962  return 0;
3963}
3964_ACEOF
3965rm -f conftest.$ac_objext
3966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967  (eval $ac_compile) 2>conftest.er1
3968  ac_status=$?
3969  grep -v '^ *+' conftest.er1 >conftest.err
3970  rm -f conftest.er1
3971  cat conftest.err >&5
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); } &&
3974	 { ac_try='test -z "$ac_c_werror_flag"
3975			 || test ! -s conftest.err'
3976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977  (eval $ac_try) 2>&5
3978  ac_status=$?
3979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980  (exit $ac_status); }; } &&
3981	 { ac_try='test -s conftest.$ac_objext'
3982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983  (eval $ac_try) 2>&5
3984  ac_status=$?
3985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986  (exit $ac_status); }; }; then
3987  ac_hi=-1 ac_mid=-1
3988  while :; do
3989    cat >conftest.$ac_ext <<_ACEOF
3990/* confdefs.h.  */
3991_ACEOF
3992cat confdefs.h >>conftest.$ac_ext
3993cat >>conftest.$ac_ext <<_ACEOF
3994/* end confdefs.h.  */
3995$ac_includes_default
3996int
3997main ()
3998{
3999static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4000test_array [0] = 0
4001
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext
4007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008  (eval $ac_compile) 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015	 { ac_try='test -z "$ac_c_werror_flag"
4016			 || test ! -s conftest.err'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; } &&
4022	 { ac_try='test -s conftest.$ac_objext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  ac_lo=$ac_mid; break
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033ac_hi=`expr '(' $ac_mid ')' - 1`
4034		       if test $ac_mid -le $ac_hi; then
4035			 ac_lo= ac_hi=
4036			 break
4037		       fi
4038		       ac_mid=`expr 2 '*' $ac_mid`
4039fi
4040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4041  done
4042else
4043  echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046ac_lo= ac_hi=
4047fi
4048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4049fi
4050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051# Binary search between lo and hi bounds.
4052while test "x$ac_lo" != "x$ac_hi"; do
4053  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4054  cat >conftest.$ac_ext <<_ACEOF
4055/* confdefs.h.  */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h.  */
4060$ac_includes_default
4061int
4062main ()
4063{
4064static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4065test_array [0] = 0
4066
4067  ;
4068  return 0;
4069}
4070_ACEOF
4071rm -f conftest.$ac_objext
4072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073  (eval $ac_compile) 2>conftest.er1
4074  ac_status=$?
4075  grep -v '^ *+' conftest.er1 >conftest.err
4076  rm -f conftest.er1
4077  cat conftest.err >&5
4078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079  (exit $ac_status); } &&
4080	 { ac_try='test -z "$ac_c_werror_flag"
4081			 || test ! -s conftest.err'
4082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083  (eval $ac_try) 2>&5
4084  ac_status=$?
4085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086  (exit $ac_status); }; } &&
4087	 { ac_try='test -s conftest.$ac_objext'
4088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089  (eval $ac_try) 2>&5
4090  ac_status=$?
4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092  (exit $ac_status); }; }; then
4093  ac_hi=$ac_mid
4094else
4095  echo "$as_me: failed program was:" >&5
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
4098ac_lo=`expr '(' $ac_mid ')' + 1`
4099fi
4100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101done
4102case $ac_lo in
4103?*) ac_cv_sizeof_int=$ac_lo;;
4104'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4105See \`config.log' for more details." >&5
4106echo "$as_me: error: cannot compute sizeof (int), 77
4107See \`config.log' for more details." >&2;}
4108   { (exit 1); exit 1; }; } ;;
4109esac
4110else
4111  if test "$cross_compiling" = yes; then
4112  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4113See \`config.log' for more details." >&5
4114echo "$as_me: error: cannot run test program while cross compiling
4115See \`config.log' for more details." >&2;}
4116   { (exit 1); exit 1; }; }
4117else
4118  cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h.  */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h.  */
4124$ac_includes_default
4125long longval () { return (long) (sizeof (int)); }
4126unsigned long ulongval () { return (long) (sizeof (int)); }
4127#include <stdio.h>
4128#include <stdlib.h>
4129int
4130main ()
4131{
4132
4133  FILE *f = fopen ("conftest.val", "w");
4134  if (! f)
4135    exit (1);
4136  if (((long) (sizeof (int))) < 0)
4137    {
4138      long i = longval ();
4139      if (i != ((long) (sizeof (int))))
4140	exit (1);
4141      fprintf (f, "%ld\n", i);
4142    }
4143  else
4144    {
4145      unsigned long i = ulongval ();
4146      if (i != ((long) (sizeof (int))))
4147	exit (1);
4148      fprintf (f, "%lu\n", i);
4149    }
4150  exit (ferror (f) || fclose (f) != 0);
4151
4152  ;
4153  return 0;
4154}
4155_ACEOF
4156rm -f conftest$ac_exeext
4157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4158  (eval $ac_link) 2>&5
4159  ac_status=$?
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163  (eval $ac_try) 2>&5
4164  ac_status=$?
4165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166  (exit $ac_status); }; }; then
4167  ac_cv_sizeof_int=`cat conftest.val`
4168else
4169  echo "$as_me: program exited with status $ac_status" >&5
4170echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173( exit $ac_status )
4174{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4175See \`config.log' for more details." >&5
4176echo "$as_me: error: cannot compute sizeof (int), 77
4177See \`config.log' for more details." >&2;}
4178   { (exit 1); exit 1; }; }
4179fi
4180rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4181fi
4182fi
4183rm -f conftest.val
4184else
4185  ac_cv_sizeof_int=0
4186fi
4187fi
4188echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4189echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4190cat >>confdefs.h <<_ACEOF
4191#define SIZEOF_INT $ac_cv_sizeof_int
4192_ACEOF
4193
4194
4195echo "$as_me:$LINENO: checking for short" >&5
4196echo $ECHO_N "checking for short... $ECHO_C" >&6
4197if test "${ac_cv_type_short+set}" = set; then
4198  echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200  cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h.  */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h.  */
4206$ac_includes_default
4207int
4208main ()
4209{
4210if ((short *) 0)
4211  return 0;
4212if (sizeof (short))
4213  return 0;
4214  ;
4215  return 0;
4216}
4217_ACEOF
4218rm -f conftest.$ac_objext
4219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220  (eval $ac_compile) 2>conftest.er1
4221  ac_status=$?
4222  grep -v '^ *+' conftest.er1 >conftest.err
4223  rm -f conftest.er1
4224  cat conftest.err >&5
4225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226  (exit $ac_status); } &&
4227	 { ac_try='test -z "$ac_c_werror_flag"
4228			 || test ! -s conftest.err'
4229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230  (eval $ac_try) 2>&5
4231  ac_status=$?
4232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233  (exit $ac_status); }; } &&
4234	 { ac_try='test -s conftest.$ac_objext'
4235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236  (eval $ac_try) 2>&5
4237  ac_status=$?
4238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239  (exit $ac_status); }; }; then
4240  ac_cv_type_short=yes
4241else
4242  echo "$as_me: failed program was:" >&5
4243sed 's/^/| /' conftest.$ac_ext >&5
4244
4245ac_cv_type_short=no
4246fi
4247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248fi
4249echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4250echo "${ECHO_T}$ac_cv_type_short" >&6
4251
4252echo "$as_me:$LINENO: checking size of short" >&5
4253echo $ECHO_N "checking size of short... $ECHO_C" >&6
4254if test "${ac_cv_sizeof_short+set}" = set; then
4255  echo $ECHO_N "(cached) $ECHO_C" >&6
4256else
4257  if test "$ac_cv_type_short" = yes; then
4258  # The cast to unsigned long works around a bug in the HP C Compiler
4259  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4260  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4261  # This bug is HP SR number 8606223364.
4262  if test "$cross_compiling" = yes; then
4263  # Depending upon the size, compute the lo and hi bounds.
4264cat >conftest.$ac_ext <<_ACEOF
4265/* confdefs.h.  */
4266_ACEOF
4267cat confdefs.h >>conftest.$ac_ext
4268cat >>conftest.$ac_ext <<_ACEOF
4269/* end confdefs.h.  */
4270$ac_includes_default
4271int
4272main ()
4273{
4274static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4275test_array [0] = 0
4276
4277  ;
4278  return 0;
4279}
4280_ACEOF
4281rm -f conftest.$ac_objext
4282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283  (eval $ac_compile) 2>conftest.er1
4284  ac_status=$?
4285  grep -v '^ *+' conftest.er1 >conftest.err
4286  rm -f conftest.er1
4287  cat conftest.err >&5
4288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289  (exit $ac_status); } &&
4290	 { ac_try='test -z "$ac_c_werror_flag"
4291			 || test ! -s conftest.err'
4292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293  (eval $ac_try) 2>&5
4294  ac_status=$?
4295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296  (exit $ac_status); }; } &&
4297	 { ac_try='test -s conftest.$ac_objext'
4298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299  (eval $ac_try) 2>&5
4300  ac_status=$?
4301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302  (exit $ac_status); }; }; then
4303  ac_lo=0 ac_mid=0
4304  while :; do
4305    cat >conftest.$ac_ext <<_ACEOF
4306/* confdefs.h.  */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h.  */
4311$ac_includes_default
4312int
4313main ()
4314{
4315static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4316test_array [0] = 0
4317
4318  ;
4319  return 0;
4320}
4321_ACEOF
4322rm -f conftest.$ac_objext
4323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324  (eval $ac_compile) 2>conftest.er1
4325  ac_status=$?
4326  grep -v '^ *+' conftest.er1 >conftest.err
4327  rm -f conftest.er1
4328  cat conftest.err >&5
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); } &&
4331	 { ac_try='test -z "$ac_c_werror_flag"
4332			 || test ! -s conftest.err'
4333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334  (eval $ac_try) 2>&5
4335  ac_status=$?
4336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337  (exit $ac_status); }; } &&
4338	 { ac_try='test -s conftest.$ac_objext'
4339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340  (eval $ac_try) 2>&5
4341  ac_status=$?
4342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343  (exit $ac_status); }; }; then
4344  ac_hi=$ac_mid; break
4345else
4346  echo "$as_me: failed program was:" >&5
4347sed 's/^/| /' conftest.$ac_ext >&5
4348
4349ac_lo=`expr $ac_mid + 1`
4350		    if test $ac_lo -le $ac_mid; then
4351		      ac_lo= ac_hi=
4352		      break
4353		    fi
4354		    ac_mid=`expr 2 '*' $ac_mid + 1`
4355fi
4356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4357  done
4358else
4359  echo "$as_me: failed program was:" >&5
4360sed 's/^/| /' conftest.$ac_ext >&5
4361
4362cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h.  */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h.  */
4368$ac_includes_default
4369int
4370main ()
4371{
4372static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4373test_array [0] = 0
4374
4375  ;
4376  return 0;
4377}
4378_ACEOF
4379rm -f conftest.$ac_objext
4380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381  (eval $ac_compile) 2>conftest.er1
4382  ac_status=$?
4383  grep -v '^ *+' conftest.er1 >conftest.err
4384  rm -f conftest.er1
4385  cat conftest.err >&5
4386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387  (exit $ac_status); } &&
4388	 { ac_try='test -z "$ac_c_werror_flag"
4389			 || test ! -s conftest.err'
4390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391  (eval $ac_try) 2>&5
4392  ac_status=$?
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); }; } &&
4395	 { ac_try='test -s conftest.$ac_objext'
4396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397  (eval $ac_try) 2>&5
4398  ac_status=$?
4399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400  (exit $ac_status); }; }; then
4401  ac_hi=-1 ac_mid=-1
4402  while :; do
4403    cat >conftest.$ac_ext <<_ACEOF
4404/* confdefs.h.  */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h.  */
4409$ac_includes_default
4410int
4411main ()
4412{
4413static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4414test_array [0] = 0
4415
4416  ;
4417  return 0;
4418}
4419_ACEOF
4420rm -f conftest.$ac_objext
4421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422  (eval $ac_compile) 2>conftest.er1
4423  ac_status=$?
4424  grep -v '^ *+' conftest.er1 >conftest.err
4425  rm -f conftest.er1
4426  cat conftest.err >&5
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); } &&
4429	 { ac_try='test -z "$ac_c_werror_flag"
4430			 || test ! -s conftest.err'
4431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432  (eval $ac_try) 2>&5
4433  ac_status=$?
4434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435  (exit $ac_status); }; } &&
4436	 { ac_try='test -s conftest.$ac_objext'
4437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438  (eval $ac_try) 2>&5
4439  ac_status=$?
4440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441  (exit $ac_status); }; }; then
4442  ac_lo=$ac_mid; break
4443else
4444  echo "$as_me: failed program was:" >&5
4445sed 's/^/| /' conftest.$ac_ext >&5
4446
4447ac_hi=`expr '(' $ac_mid ')' - 1`
4448		       if test $ac_mid -le $ac_hi; then
4449			 ac_lo= ac_hi=
4450			 break
4451		       fi
4452		       ac_mid=`expr 2 '*' $ac_mid`
4453fi
4454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4455  done
4456else
4457  echo "$as_me: failed program was:" >&5
4458sed 's/^/| /' conftest.$ac_ext >&5
4459
4460ac_lo= ac_hi=
4461fi
4462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4463fi
4464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4465# Binary search between lo and hi bounds.
4466while test "x$ac_lo" != "x$ac_hi"; do
4467  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4468  cat >conftest.$ac_ext <<_ACEOF
4469/* confdefs.h.  */
4470_ACEOF
4471cat confdefs.h >>conftest.$ac_ext
4472cat >>conftest.$ac_ext <<_ACEOF
4473/* end confdefs.h.  */
4474$ac_includes_default
4475int
4476main ()
4477{
4478static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4479test_array [0] = 0
4480
4481  ;
4482  return 0;
4483}
4484_ACEOF
4485rm -f conftest.$ac_objext
4486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487  (eval $ac_compile) 2>conftest.er1
4488  ac_status=$?
4489  grep -v '^ *+' conftest.er1 >conftest.err
4490  rm -f conftest.er1
4491  cat conftest.err >&5
4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); } &&
4494	 { ac_try='test -z "$ac_c_werror_flag"
4495			 || test ! -s conftest.err'
4496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497  (eval $ac_try) 2>&5
4498  ac_status=$?
4499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500  (exit $ac_status); }; } &&
4501	 { ac_try='test -s conftest.$ac_objext'
4502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503  (eval $ac_try) 2>&5
4504  ac_status=$?
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); }; }; then
4507  ac_hi=$ac_mid
4508else
4509  echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512ac_lo=`expr '(' $ac_mid ')' + 1`
4513fi
4514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4515done
4516case $ac_lo in
4517?*) ac_cv_sizeof_short=$ac_lo;;
4518'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4519See \`config.log' for more details." >&5
4520echo "$as_me: error: cannot compute sizeof (short), 77
4521See \`config.log' for more details." >&2;}
4522   { (exit 1); exit 1; }; } ;;
4523esac
4524else
4525  if test "$cross_compiling" = yes; then
4526  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4527See \`config.log' for more details." >&5
4528echo "$as_me: error: cannot run test program while cross compiling
4529See \`config.log' for more details." >&2;}
4530   { (exit 1); exit 1; }; }
4531else
4532  cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h.  */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h.  */
4538$ac_includes_default
4539long longval () { return (long) (sizeof (short)); }
4540unsigned long ulongval () { return (long) (sizeof (short)); }
4541#include <stdio.h>
4542#include <stdlib.h>
4543int
4544main ()
4545{
4546
4547  FILE *f = fopen ("conftest.val", "w");
4548  if (! f)
4549    exit (1);
4550  if (((long) (sizeof (short))) < 0)
4551    {
4552      long i = longval ();
4553      if (i != ((long) (sizeof (short))))
4554	exit (1);
4555      fprintf (f, "%ld\n", i);
4556    }
4557  else
4558    {
4559      unsigned long i = ulongval ();
4560      if (i != ((long) (sizeof (short))))
4561	exit (1);
4562      fprintf (f, "%lu\n", i);
4563    }
4564  exit (ferror (f) || fclose (f) != 0);
4565
4566  ;
4567  return 0;
4568}
4569_ACEOF
4570rm -f conftest$ac_exeext
4571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4572  (eval $ac_link) 2>&5
4573  ac_status=$?
4574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577  (eval $ac_try) 2>&5
4578  ac_status=$?
4579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580  (exit $ac_status); }; }; then
4581  ac_cv_sizeof_short=`cat conftest.val`
4582else
4583  echo "$as_me: program exited with status $ac_status" >&5
4584echo "$as_me: failed program was:" >&5
4585sed 's/^/| /' conftest.$ac_ext >&5
4586
4587( exit $ac_status )
4588{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4589See \`config.log' for more details." >&5
4590echo "$as_me: error: cannot compute sizeof (short), 77
4591See \`config.log' for more details." >&2;}
4592   { (exit 1); exit 1; }; }
4593fi
4594rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4595fi
4596fi
4597rm -f conftest.val
4598else
4599  ac_cv_sizeof_short=0
4600fi
4601fi
4602echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4603echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4604cat >>confdefs.h <<_ACEOF
4605#define SIZEOF_SHORT $ac_cv_sizeof_short
4606_ACEOF
4607
4608
4609echo "$as_me:$LINENO: checking for long" >&5
4610echo $ECHO_N "checking for long... $ECHO_C" >&6
4611if test "${ac_cv_type_long+set}" = set; then
4612  echo $ECHO_N "(cached) $ECHO_C" >&6
4613else
4614  cat >conftest.$ac_ext <<_ACEOF
4615/* confdefs.h.  */
4616_ACEOF
4617cat confdefs.h >>conftest.$ac_ext
4618cat >>conftest.$ac_ext <<_ACEOF
4619/* end confdefs.h.  */
4620$ac_includes_default
4621int
4622main ()
4623{
4624if ((long *) 0)
4625  return 0;
4626if (sizeof (long))
4627  return 0;
4628  ;
4629  return 0;
4630}
4631_ACEOF
4632rm -f conftest.$ac_objext
4633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634  (eval $ac_compile) 2>conftest.er1
4635  ac_status=$?
4636  grep -v '^ *+' conftest.er1 >conftest.err
4637  rm -f conftest.er1
4638  cat conftest.err >&5
4639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640  (exit $ac_status); } &&
4641	 { ac_try='test -z "$ac_c_werror_flag"
4642			 || test ! -s conftest.err'
4643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644  (eval $ac_try) 2>&5
4645  ac_status=$?
4646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647  (exit $ac_status); }; } &&
4648	 { ac_try='test -s conftest.$ac_objext'
4649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650  (eval $ac_try) 2>&5
4651  ac_status=$?
4652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653  (exit $ac_status); }; }; then
4654  ac_cv_type_long=yes
4655else
4656  echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
4659ac_cv_type_long=no
4660fi
4661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4662fi
4663echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4664echo "${ECHO_T}$ac_cv_type_long" >&6
4665
4666echo "$as_me:$LINENO: checking size of long" >&5
4667echo $ECHO_N "checking size of long... $ECHO_C" >&6
4668if test "${ac_cv_sizeof_long+set}" = set; then
4669  echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671  if test "$ac_cv_type_long" = yes; then
4672  # The cast to unsigned long works around a bug in the HP C Compiler
4673  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4674  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4675  # This bug is HP SR number 8606223364.
4676  if test "$cross_compiling" = yes; then
4677  # Depending upon the size, compute the lo and hi bounds.
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$ac_includes_default
4685int
4686main ()
4687{
4688static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4689test_array [0] = 0
4690
4691  ;
4692  return 0;
4693}
4694_ACEOF
4695rm -f conftest.$ac_objext
4696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697  (eval $ac_compile) 2>conftest.er1
4698  ac_status=$?
4699  grep -v '^ *+' conftest.er1 >conftest.err
4700  rm -f conftest.er1
4701  cat conftest.err >&5
4702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); } &&
4704	 { ac_try='test -z "$ac_c_werror_flag"
4705			 || test ! -s conftest.err'
4706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707  (eval $ac_try) 2>&5
4708  ac_status=$?
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); }; } &&
4711	 { ac_try='test -s conftest.$ac_objext'
4712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713  (eval $ac_try) 2>&5
4714  ac_status=$?
4715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716  (exit $ac_status); }; }; then
4717  ac_lo=0 ac_mid=0
4718  while :; do
4719    cat >conftest.$ac_ext <<_ACEOF
4720/* confdefs.h.  */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h.  */
4725$ac_includes_default
4726int
4727main ()
4728{
4729static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4730test_array [0] = 0
4731
4732  ;
4733  return 0;
4734}
4735_ACEOF
4736rm -f conftest.$ac_objext
4737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738  (eval $ac_compile) 2>conftest.er1
4739  ac_status=$?
4740  grep -v '^ *+' conftest.er1 >conftest.err
4741  rm -f conftest.er1
4742  cat conftest.err >&5
4743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744  (exit $ac_status); } &&
4745	 { ac_try='test -z "$ac_c_werror_flag"
4746			 || test ! -s conftest.err'
4747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748  (eval $ac_try) 2>&5
4749  ac_status=$?
4750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751  (exit $ac_status); }; } &&
4752	 { ac_try='test -s conftest.$ac_objext'
4753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754  (eval $ac_try) 2>&5
4755  ac_status=$?
4756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757  (exit $ac_status); }; }; then
4758  ac_hi=$ac_mid; break
4759else
4760  echo "$as_me: failed program was:" >&5
4761sed 's/^/| /' conftest.$ac_ext >&5
4762
4763ac_lo=`expr $ac_mid + 1`
4764		    if test $ac_lo -le $ac_mid; then
4765		      ac_lo= ac_hi=
4766		      break
4767		    fi
4768		    ac_mid=`expr 2 '*' $ac_mid + 1`
4769fi
4770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4771  done
4772else
4773  echo "$as_me: failed program was:" >&5
4774sed 's/^/| /' conftest.$ac_ext >&5
4775
4776cat >conftest.$ac_ext <<_ACEOF
4777/* confdefs.h.  */
4778_ACEOF
4779cat confdefs.h >>conftest.$ac_ext
4780cat >>conftest.$ac_ext <<_ACEOF
4781/* end confdefs.h.  */
4782$ac_includes_default
4783int
4784main ()
4785{
4786static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4787test_array [0] = 0
4788
4789  ;
4790  return 0;
4791}
4792_ACEOF
4793rm -f conftest.$ac_objext
4794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795  (eval $ac_compile) 2>conftest.er1
4796  ac_status=$?
4797  grep -v '^ *+' conftest.er1 >conftest.err
4798  rm -f conftest.er1
4799  cat conftest.err >&5
4800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801  (exit $ac_status); } &&
4802	 { ac_try='test -z "$ac_c_werror_flag"
4803			 || test ! -s conftest.err'
4804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805  (eval $ac_try) 2>&5
4806  ac_status=$?
4807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808  (exit $ac_status); }; } &&
4809	 { ac_try='test -s conftest.$ac_objext'
4810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811  (eval $ac_try) 2>&5
4812  ac_status=$?
4813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814  (exit $ac_status); }; }; then
4815  ac_hi=-1 ac_mid=-1
4816  while :; do
4817    cat >conftest.$ac_ext <<_ACEOF
4818/* confdefs.h.  */
4819_ACEOF
4820cat confdefs.h >>conftest.$ac_ext
4821cat >>conftest.$ac_ext <<_ACEOF
4822/* end confdefs.h.  */
4823$ac_includes_default
4824int
4825main ()
4826{
4827static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4828test_array [0] = 0
4829
4830  ;
4831  return 0;
4832}
4833_ACEOF
4834rm -f conftest.$ac_objext
4835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836  (eval $ac_compile) 2>conftest.er1
4837  ac_status=$?
4838  grep -v '^ *+' conftest.er1 >conftest.err
4839  rm -f conftest.er1
4840  cat conftest.err >&5
4841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842  (exit $ac_status); } &&
4843	 { ac_try='test -z "$ac_c_werror_flag"
4844			 || test ! -s conftest.err'
4845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846  (eval $ac_try) 2>&5
4847  ac_status=$?
4848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849  (exit $ac_status); }; } &&
4850	 { ac_try='test -s conftest.$ac_objext'
4851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852  (eval $ac_try) 2>&5
4853  ac_status=$?
4854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855  (exit $ac_status); }; }; then
4856  ac_lo=$ac_mid; break
4857else
4858  echo "$as_me: failed program was:" >&5
4859sed 's/^/| /' conftest.$ac_ext >&5
4860
4861ac_hi=`expr '(' $ac_mid ')' - 1`
4862		       if test $ac_mid -le $ac_hi; then
4863			 ac_lo= ac_hi=
4864			 break
4865		       fi
4866		       ac_mid=`expr 2 '*' $ac_mid`
4867fi
4868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4869  done
4870else
4871  echo "$as_me: failed program was:" >&5
4872sed 's/^/| /' conftest.$ac_ext >&5
4873
4874ac_lo= ac_hi=
4875fi
4876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4877fi
4878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4879# Binary search between lo and hi bounds.
4880while test "x$ac_lo" != "x$ac_hi"; do
4881  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4882  cat >conftest.$ac_ext <<_ACEOF
4883/* confdefs.h.  */
4884_ACEOF
4885cat confdefs.h >>conftest.$ac_ext
4886cat >>conftest.$ac_ext <<_ACEOF
4887/* end confdefs.h.  */
4888$ac_includes_default
4889int
4890main ()
4891{
4892static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4893test_array [0] = 0
4894
4895  ;
4896  return 0;
4897}
4898_ACEOF
4899rm -f conftest.$ac_objext
4900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4901  (eval $ac_compile) 2>conftest.er1
4902  ac_status=$?
4903  grep -v '^ *+' conftest.er1 >conftest.err
4904  rm -f conftest.er1
4905  cat conftest.err >&5
4906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907  (exit $ac_status); } &&
4908	 { ac_try='test -z "$ac_c_werror_flag"
4909			 || test ! -s conftest.err'
4910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911  (eval $ac_try) 2>&5
4912  ac_status=$?
4913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914  (exit $ac_status); }; } &&
4915	 { ac_try='test -s conftest.$ac_objext'
4916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917  (eval $ac_try) 2>&5
4918  ac_status=$?
4919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920  (exit $ac_status); }; }; then
4921  ac_hi=$ac_mid
4922else
4923  echo "$as_me: failed program was:" >&5
4924sed 's/^/| /' conftest.$ac_ext >&5
4925
4926ac_lo=`expr '(' $ac_mid ')' + 1`
4927fi
4928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4929done
4930case $ac_lo in
4931?*) ac_cv_sizeof_long=$ac_lo;;
4932'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4933See \`config.log' for more details." >&5
4934echo "$as_me: error: cannot compute sizeof (long), 77
4935See \`config.log' for more details." >&2;}
4936   { (exit 1); exit 1; }; } ;;
4937esac
4938else
4939  if test "$cross_compiling" = yes; then
4940  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4941See \`config.log' for more details." >&5
4942echo "$as_me: error: cannot run test program while cross compiling
4943See \`config.log' for more details." >&2;}
4944   { (exit 1); exit 1; }; }
4945else
4946  cat >conftest.$ac_ext <<_ACEOF
4947/* confdefs.h.  */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h.  */
4952$ac_includes_default
4953long longval () { return (long) (sizeof (long)); }
4954unsigned long ulongval () { return (long) (sizeof (long)); }
4955#include <stdio.h>
4956#include <stdlib.h>
4957int
4958main ()
4959{
4960
4961  FILE *f = fopen ("conftest.val", "w");
4962  if (! f)
4963    exit (1);
4964  if (((long) (sizeof (long))) < 0)
4965    {
4966      long i = longval ();
4967      if (i != ((long) (sizeof (long))))
4968	exit (1);
4969      fprintf (f, "%ld\n", i);
4970    }
4971  else
4972    {
4973      unsigned long i = ulongval ();
4974      if (i != ((long) (sizeof (long))))
4975	exit (1);
4976      fprintf (f, "%lu\n", i);
4977    }
4978  exit (ferror (f) || fclose (f) != 0);
4979
4980  ;
4981  return 0;
4982}
4983_ACEOF
4984rm -f conftest$ac_exeext
4985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4986  (eval $ac_link) 2>&5
4987  ac_status=$?
4988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991  (eval $ac_try) 2>&5
4992  ac_status=$?
4993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994  (exit $ac_status); }; }; then
4995  ac_cv_sizeof_long=`cat conftest.val`
4996else
4997  echo "$as_me: program exited with status $ac_status" >&5
4998echo "$as_me: failed program was:" >&5
4999sed 's/^/| /' conftest.$ac_ext >&5
5000
5001( exit $ac_status )
5002{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5003See \`config.log' for more details." >&5
5004echo "$as_me: error: cannot compute sizeof (long), 77
5005See \`config.log' for more details." >&2;}
5006   { (exit 1); exit 1; }; }
5007fi
5008rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5009fi
5010fi
5011rm -f conftest.val
5012else
5013  ac_cv_sizeof_long=0
5014fi
5015fi
5016echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5017echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5018cat >>confdefs.h <<_ACEOF
5019#define SIZEOF_LONG $ac_cv_sizeof_long
5020_ACEOF
5021
5022
5023
5024echo "$as_me:$LINENO: checking for uint32_t" >&5
5025echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5026if test "${ac_cv_type_uint32_t+set}" = set; then
5027  echo $ECHO_N "(cached) $ECHO_C" >&6
5028else
5029  cat >conftest.$ac_ext <<_ACEOF
5030/* confdefs.h.  */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h.  */
5035$ac_includes_default
5036int
5037main ()
5038{
5039if ((uint32_t *) 0)
5040  return 0;
5041if (sizeof (uint32_t))
5042  return 0;
5043  ;
5044  return 0;
5045}
5046_ACEOF
5047rm -f conftest.$ac_objext
5048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049  (eval $ac_compile) 2>conftest.er1
5050  ac_status=$?
5051  grep -v '^ *+' conftest.er1 >conftest.err
5052  rm -f conftest.er1
5053  cat conftest.err >&5
5054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055  (exit $ac_status); } &&
5056	 { ac_try='test -z "$ac_c_werror_flag"
5057			 || test ! -s conftest.err'
5058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059  (eval $ac_try) 2>&5
5060  ac_status=$?
5061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062  (exit $ac_status); }; } &&
5063	 { ac_try='test -s conftest.$ac_objext'
5064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065  (eval $ac_try) 2>&5
5066  ac_status=$?
5067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068  (exit $ac_status); }; }; then
5069  ac_cv_type_uint32_t=yes
5070else
5071  echo "$as_me: failed program was:" >&5
5072sed 's/^/| /' conftest.$ac_ext >&5
5073
5074ac_cv_type_uint32_t=no
5075fi
5076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5077fi
5078echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5079echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5080if test $ac_cv_type_uint32_t = yes; then
5081  :
5082else
5083
5084cat >>confdefs.h <<_ACEOF
5085#define uint32_t unsigned int
5086_ACEOF
5087
5088fi
5089
5090echo "$as_me:$LINENO: checking for u_int32_t" >&5
5091echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5092if test "${ac_cv_type_u_int32_t+set}" = set; then
5093  echo $ECHO_N "(cached) $ECHO_C" >&6
5094else
5095  cat >conftest.$ac_ext <<_ACEOF
5096/* confdefs.h.  */
5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h.  */
5101$ac_includes_default
5102int
5103main ()
5104{
5105if ((u_int32_t *) 0)
5106  return 0;
5107if (sizeof (u_int32_t))
5108  return 0;
5109  ;
5110  return 0;
5111}
5112_ACEOF
5113rm -f conftest.$ac_objext
5114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5115  (eval $ac_compile) 2>conftest.er1
5116  ac_status=$?
5117  grep -v '^ *+' conftest.er1 >conftest.err
5118  rm -f conftest.er1
5119  cat conftest.err >&5
5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121  (exit $ac_status); } &&
5122	 { ac_try='test -z "$ac_c_werror_flag"
5123			 || test ! -s conftest.err'
5124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125  (eval $ac_try) 2>&5
5126  ac_status=$?
5127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128  (exit $ac_status); }; } &&
5129	 { ac_try='test -s conftest.$ac_objext'
5130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131  (eval $ac_try) 2>&5
5132  ac_status=$?
5133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134  (exit $ac_status); }; }; then
5135  ac_cv_type_u_int32_t=yes
5136else
5137  echo "$as_me: failed program was:" >&5
5138sed 's/^/| /' conftest.$ac_ext >&5
5139
5140ac_cv_type_u_int32_t=no
5141fi
5142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5143fi
5144echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5145echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5146if test $ac_cv_type_u_int32_t = yes; then
5147  :
5148else
5149
5150cat >>confdefs.h <<_ACEOF
5151#define u_int32_t unsigned int
5152_ACEOF
5153
5154fi
5155
5156if test "$ac_cv_type_u_int32_t" = no ; then
5157	if test "$ac_cv_type_u_int32_t" = yes ; then
5158		cat >>confdefs.h <<\_ACEOF
5159#define U_INT32_T_IS_UINT32_T 1
5160_ACEOF
5161
5162	else
5163		if test "$ac_cv_sizeof_int" = 4 ; then
5164			cat >>confdefs.h <<\_ACEOF
5165#define U_INT32_T_IS_UINT 1
5166_ACEOF
5167
5168		else
5169			if test "$ac_cv_sizeof_long" = 4 ; then
5170				cat >>confdefs.h <<\_ACEOF
5171#define U_INT32_T_IS_ULONG 1
5172_ACEOF
5173
5174			else
5175				if test "$ac_cv_sizeof_short" = 4 ; then
5176					cat >>confdefs.h <<\_ACEOF
5177#define U_INT32_T_IS_USHORT 1
5178_ACEOF
5179
5180				fi
5181			fi
5182		fi
5183	fi
5184fi
5185
5186echo "$as_me:$LINENO: checking for int32_t" >&5
5187echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
5188if test "${ac_cv_type_int32_t+set}" = set; then
5189  echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191  cat >conftest.$ac_ext <<_ACEOF
5192/* confdefs.h.  */
5193_ACEOF
5194cat confdefs.h >>conftest.$ac_ext
5195cat >>conftest.$ac_ext <<_ACEOF
5196/* end confdefs.h.  */
5197$ac_includes_default
5198int
5199main ()
5200{
5201if ((int32_t *) 0)
5202  return 0;
5203if (sizeof (int32_t))
5204  return 0;
5205  ;
5206  return 0;
5207}
5208_ACEOF
5209rm -f conftest.$ac_objext
5210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5211  (eval $ac_compile) 2>conftest.er1
5212  ac_status=$?
5213  grep -v '^ *+' conftest.er1 >conftest.err
5214  rm -f conftest.er1
5215  cat conftest.err >&5
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); } &&
5218	 { ac_try='test -z "$ac_c_werror_flag"
5219			 || test ! -s conftest.err'
5220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221  (eval $ac_try) 2>&5
5222  ac_status=$?
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); }; } &&
5225	 { ac_try='test -s conftest.$ac_objext'
5226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227  (eval $ac_try) 2>&5
5228  ac_status=$?
5229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230  (exit $ac_status); }; }; then
5231  ac_cv_type_int32_t=yes
5232else
5233  echo "$as_me: failed program was:" >&5
5234sed 's/^/| /' conftest.$ac_ext >&5
5235
5236ac_cv_type_int32_t=no
5237fi
5238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5239fi
5240echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
5241echo "${ECHO_T}$ac_cv_type_int32_t" >&6
5242if test $ac_cv_type_int32_t = yes; then
5243  :
5244else
5245
5246cat >>confdefs.h <<_ACEOF
5247#define int32_t int
5248_ACEOF
5249
5250fi
5251
5252if test "$ac_cv_type_int32_t" = no ; then
5253	if test "$ac_cv_sizeof_int" = 4 ; then
5254		cat >>confdefs.h <<\_ACEOF
5255#define INT32_T_IS_UINT 1
5256_ACEOF
5257
5258	else
5259		if test "$ac_cv_sizeof_long" = 4 ; then
5260			cat >>confdefs.h <<\_ACEOF
5261#define INT32_T_IS_ULONG 1
5262_ACEOF
5263
5264		else
5265			if test "$ac_cv_sizeof_short" = 4 ; then
5266				cat >>confdefs.h <<\_ACEOF
5267#define INT32_T_IS_USHORT 1
5268_ACEOF
5269
5270			fi
5271		fi
5272	fi
5273fi
5274
5275echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5276echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5277if test "${ac_cv_lib_nsl_main+set}" = set; then
5278  echo $ECHO_N "(cached) $ECHO_C" >&6
5279else
5280  ac_check_lib_save_LIBS=$LIBS
5281LIBS="-lnsl  $LIBS"
5282cat >conftest.$ac_ext <<_ACEOF
5283/* confdefs.h.  */
5284_ACEOF
5285cat confdefs.h >>conftest.$ac_ext
5286cat >>conftest.$ac_ext <<_ACEOF
5287/* end confdefs.h.  */
5288
5289
5290int
5291main ()
5292{
5293main ();
5294  ;
5295  return 0;
5296}
5297_ACEOF
5298rm -f conftest.$ac_objext conftest$ac_exeext
5299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300  (eval $ac_link) 2>conftest.er1
5301  ac_status=$?
5302  grep -v '^ *+' conftest.er1 >conftest.err
5303  rm -f conftest.er1
5304  cat conftest.err >&5
5305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306  (exit $ac_status); } &&
5307	 { ac_try='test -z "$ac_c_werror_flag"
5308			 || test ! -s conftest.err'
5309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310  (eval $ac_try) 2>&5
5311  ac_status=$?
5312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313  (exit $ac_status); }; } &&
5314	 { ac_try='test -s conftest$ac_exeext'
5315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316  (eval $ac_try) 2>&5
5317  ac_status=$?
5318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319  (exit $ac_status); }; }; then
5320  ac_cv_lib_nsl_main=yes
5321else
5322  echo "$as_me: failed program was:" >&5
5323sed 's/^/| /' conftest.$ac_ext >&5
5324
5325ac_cv_lib_nsl_main=no
5326fi
5327rm -f conftest.err conftest.$ac_objext \
5328      conftest$ac_exeext conftest.$ac_ext
5329LIBS=$ac_check_lib_save_LIBS
5330fi
5331echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5332echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5333if test $ac_cv_lib_nsl_main = yes; then
5334  SOCKETLIBS="$SOCKETLIBS -lnsl"
5335fi
5336
5337echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5338echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5339if test "${ac_cv_lib_socket_socket+set}" = set; then
5340  echo $ECHO_N "(cached) $ECHO_C" >&6
5341else
5342  ac_check_lib_save_LIBS=$LIBS
5343LIBS="-lsocket  $LIBS"
5344cat >conftest.$ac_ext <<_ACEOF
5345/* confdefs.h.  */
5346_ACEOF
5347cat confdefs.h >>conftest.$ac_ext
5348cat >>conftest.$ac_ext <<_ACEOF
5349/* end confdefs.h.  */
5350
5351/* Override any gcc2 internal prototype to avoid an error.  */
5352#ifdef __cplusplus
5353extern "C"
5354#endif
5355/* We use char because int might match the return type of a gcc2
5356   builtin and then its argument prototype would still apply.  */
5357char socket ();
5358int
5359main ()
5360{
5361socket ();
5362  ;
5363  return 0;
5364}
5365_ACEOF
5366rm -f conftest.$ac_objext conftest$ac_exeext
5367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5368  (eval $ac_link) 2>conftest.er1
5369  ac_status=$?
5370  grep -v '^ *+' conftest.er1 >conftest.err
5371  rm -f conftest.er1
5372  cat conftest.err >&5
5373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374  (exit $ac_status); } &&
5375	 { ac_try='test -z "$ac_c_werror_flag"
5376			 || test ! -s conftest.err'
5377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378  (eval $ac_try) 2>&5
5379  ac_status=$?
5380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381  (exit $ac_status); }; } &&
5382	 { ac_try='test -s conftest$ac_exeext'
5383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384  (eval $ac_try) 2>&5
5385  ac_status=$?
5386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387  (exit $ac_status); }; }; then
5388  ac_cv_lib_socket_socket=yes
5389else
5390  echo "$as_me: failed program was:" >&5
5391sed 's/^/| /' conftest.$ac_ext >&5
5392
5393ac_cv_lib_socket_socket=no
5394fi
5395rm -f conftest.err conftest.$ac_objext \
5396      conftest$ac_exeext conftest.$ac_ext
5397LIBS=$ac_check_lib_save_LIBS
5398fi
5399echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5400echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5401if test $ac_cv_lib_socket_socket = yes; then
5402  SOCKETLIBS="$SOCKETLIBS -lsocket"
5403fi
5404
5405
5406echo "$as_me:$LINENO: checking for main in -lwrap" >&5
5407echo $ECHO_N "checking for main in -lwrap... $ECHO_C" >&6
5408if test "${ac_cv_lib_wrap_main+set}" = set; then
5409  echo $ECHO_N "(cached) $ECHO_C" >&6
5410else
5411  ac_check_lib_save_LIBS=$LIBS
5412LIBS="-lwrap  $LIBS"
5413cat >conftest.$ac_ext <<_ACEOF
5414/* confdefs.h.  */
5415_ACEOF
5416cat confdefs.h >>conftest.$ac_ext
5417cat >>conftest.$ac_ext <<_ACEOF
5418/* end confdefs.h.  */
5419
5420
5421int
5422main ()
5423{
5424main ();
5425  ;
5426  return 0;
5427}
5428_ACEOF
5429rm -f conftest.$ac_objext conftest$ac_exeext
5430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5431  (eval $ac_link) 2>conftest.er1
5432  ac_status=$?
5433  grep -v '^ *+' conftest.er1 >conftest.err
5434  rm -f conftest.er1
5435  cat conftest.err >&5
5436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437  (exit $ac_status); } &&
5438	 { ac_try='test -z "$ac_c_werror_flag"
5439			 || test ! -s conftest.err'
5440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441  (eval $ac_try) 2>&5
5442  ac_status=$?
5443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444  (exit $ac_status); }; } &&
5445	 { ac_try='test -s conftest$ac_exeext'
5446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447  (eval $ac_try) 2>&5
5448  ac_status=$?
5449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450  (exit $ac_status); }; }; then
5451  ac_cv_lib_wrap_main=yes
5452else
5453  echo "$as_me: failed program was:" >&5
5454sed 's/^/| /' conftest.$ac_ext >&5
5455
5456ac_cv_lib_wrap_main=no
5457fi
5458rm -f conftest.err conftest.$ac_objext \
5459      conftest$ac_exeext conftest.$ac_ext
5460LIBS=$ac_check_lib_save_LIBS
5461fi
5462echo "$as_me:$LINENO: result: $ac_cv_lib_wrap_main" >&5
5463echo "${ECHO_T}$ac_cv_lib_wrap_main" >&6
5464if test $ac_cv_lib_wrap_main = yes; then
5465
5466	LIBWRAPLIBS="$LIBWRAPLIBS -lwrap"
5467	cat >>confdefs.h <<\_ACEOF
5468#define HAVE_LIBWRAP 1
5469_ACEOF
5470
5471
5472fi
5473
5474
5475
5476
5477
5478for ac_func in strdup strstr strtoul
5479do
5480as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5481echo "$as_me:$LINENO: checking for $ac_func" >&5
5482echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5483if eval "test \"\${$as_ac_var+set}\" = set"; then
5484  echo $ECHO_N "(cached) $ECHO_C" >&6
5485else
5486  cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h.  */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h.  */
5492/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5493   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5494#define $ac_func innocuous_$ac_func
5495
5496/* System header to define __stub macros and hopefully few prototypes,
5497    which can conflict with char $ac_func (); below.
5498    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5499    <limits.h> exists even on freestanding compilers.  */
5500
5501#ifdef __STDC__
5502# include <limits.h>
5503#else
5504# include <assert.h>
5505#endif
5506
5507#undef $ac_func
5508
5509/* Override any gcc2 internal prototype to avoid an error.  */
5510#ifdef __cplusplus
5511extern "C"
5512{
5513#endif
5514/* We use char because int might match the return type of a gcc2
5515   builtin and then its argument prototype would still apply.  */
5516char $ac_func ();
5517/* The GNU C library defines this for functions which it implements
5518    to always fail with ENOSYS.  Some functions are actually named
5519    something starting with __ and the normal name is an alias.  */
5520#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5521choke me
5522#else
5523char (*f) () = $ac_func;
5524#endif
5525#ifdef __cplusplus
5526}
5527#endif
5528
5529int
5530main ()
5531{
5532return f != $ac_func;
5533  ;
5534  return 0;
5535}
5536_ACEOF
5537rm -f conftest.$ac_objext conftest$ac_exeext
5538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539  (eval $ac_link) 2>conftest.er1
5540  ac_status=$?
5541  grep -v '^ *+' conftest.er1 >conftest.err
5542  rm -f conftest.er1
5543  cat conftest.err >&5
5544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545  (exit $ac_status); } &&
5546	 { ac_try='test -z "$ac_c_werror_flag"
5547			 || test ! -s conftest.err'
5548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549  (eval $ac_try) 2>&5
5550  ac_status=$?
5551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552  (exit $ac_status); }; } &&
5553	 { ac_try='test -s conftest$ac_exeext'
5554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555  (eval $ac_try) 2>&5
5556  ac_status=$?
5557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558  (exit $ac_status); }; }; then
5559  eval "$as_ac_var=yes"
5560else
5561  echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564eval "$as_ac_var=no"
5565fi
5566rm -f conftest.err conftest.$ac_objext \
5567      conftest$ac_exeext conftest.$ac_ext
5568fi
5569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5570echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5571if test `eval echo '${'$as_ac_var'}'` = yes; then
5572  cat >>confdefs.h <<_ACEOF
5573#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5574_ACEOF
5575
5576fi
5577done
5578
5579
5580echo "$as_me:$LINENO: checking for socklen_t" >&5
5581echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
5582if test "${ac_cv_type_socklen_t+set}" = set; then
5583  echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585  cat >conftest.$ac_ext <<_ACEOF
5586/* confdefs.h.  */
5587_ACEOF
5588cat confdefs.h >>conftest.$ac_ext
5589cat >>conftest.$ac_ext <<_ACEOF
5590/* end confdefs.h.  */
5591#include <sys/types.h>
5592#include <sys/socket.h>
5593
5594int
5595main ()
5596{
5597if ((socklen_t *) 0)
5598  return 0;
5599if (sizeof (socklen_t))
5600  return 0;
5601  ;
5602  return 0;
5603}
5604_ACEOF
5605rm -f conftest.$ac_objext
5606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607  (eval $ac_compile) 2>conftest.er1
5608  ac_status=$?
5609  grep -v '^ *+' conftest.er1 >conftest.err
5610  rm -f conftest.er1
5611  cat conftest.err >&5
5612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613  (exit $ac_status); } &&
5614	 { ac_try='test -z "$ac_c_werror_flag"
5615			 || test ! -s conftest.err'
5616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617  (eval $ac_try) 2>&5
5618  ac_status=$?
5619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620  (exit $ac_status); }; } &&
5621	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5627  ac_cv_type_socklen_t=yes
5628else
5629  echo "$as_me: failed program was:" >&5
5630sed 's/^/| /' conftest.$ac_ext >&5
5631
5632ac_cv_type_socklen_t=no
5633fi
5634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5635fi
5636echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
5637echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
5638if test $ac_cv_type_socklen_t = yes; then
5639  :
5640else
5641
5642       echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
5643echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
5644       if test "${curl_cv_socklen_t_equiv+set}" = set; then
5645  echo $ECHO_N "(cached) $ECHO_C" >&6
5646else
5647
5648          # Systems have either "struct sockaddr *" or
5649          # "void *" as the second argument to getpeername
5650          curl_cv_socklen_t_equiv=
5651          for arg2 in "struct sockaddr" void; do
5652             for t in int size_t unsigned long "unsigned long"; do
5653                cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h.  */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h.  */
5659
5660                   #ifdef HAVE_SYS_TYPES_H
5661                   #include <sys/types.h>
5662                   #endif
5663                   #ifdef HAVE_SYS_SOCKET_H
5664                   #include <sys/socket.h>
5665                   #endif
5666
5667                   int getpeername (int, $arg2 *, $t *);
5668
5669int
5670main ()
5671{
5672
5673                   $t len;
5674                   getpeername(0,0,&len);
5675
5676  ;
5677  return 0;
5678}
5679_ACEOF
5680rm -f conftest.$ac_objext
5681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682  (eval $ac_compile) 2>conftest.er1
5683  ac_status=$?
5684  grep -v '^ *+' conftest.er1 >conftest.err
5685  rm -f conftest.er1
5686  cat conftest.err >&5
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); } &&
5689	 { ac_try='test -z "$ac_c_werror_flag"
5690			 || test ! -s conftest.err'
5691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692  (eval $ac_try) 2>&5
5693  ac_status=$?
5694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695  (exit $ac_status); }; } &&
5696	 { ac_try='test -s conftest.$ac_objext'
5697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698  (eval $ac_try) 2>&5
5699  ac_status=$?
5700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701  (exit $ac_status); }; }; then
5702
5703                   curl_cv_socklen_t_equiv="$t"
5704                   break
5705
5706else
5707  echo "$as_me: failed program was:" >&5
5708sed 's/^/| /' conftest.$ac_ext >&5
5709
5710fi
5711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5712             done
5713          done
5714
5715          if test "x$curl_cv_socklen_t_equiv" = x; then
5716             { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
5717echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
5718   { (exit 1); exit 1; }; }
5719          fi
5720
5721fi
5722
5723       echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
5724echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
5725
5726cat >>confdefs.h <<_ACEOF
5727#define socklen_t $curl_cv_socklen_t_equiv
5728_ACEOF
5729
5730fi
5731
5732
5733echo "$as_me:$LINENO: checking for type of socket size" >&5
5734echo $ECHO_N "checking for type of socket size... $ECHO_C" >&6
5735cat >conftest.$ac_ext <<_ACEOF
5736/* confdefs.h.  */
5737_ACEOF
5738cat confdefs.h >>conftest.$ac_ext
5739cat >>conftest.$ac_ext <<_ACEOF
5740/* end confdefs.h.  */
5741#include <stdlib.h>
5742#include <sys/types.h>
5743#include <sys/socket.h>
5744
5745int
5746main ()
5747{
5748int a = send(1, (const void *)0, (size_t *) 0, (int *) 0);
5749  ;
5750  return 0;
5751}
5752_ACEOF
5753rm -f conftest.$ac_objext
5754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755  (eval $ac_compile) 2>conftest.er1
5756  ac_status=$?
5757  grep -v '^ *+' conftest.er1 >conftest.err
5758  rm -f conftest.er1
5759  cat conftest.err >&5
5760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761  (exit $ac_status); } &&
5762	 { ac_try='test -z "$ac_c_werror_flag"
5763			 || test ! -s conftest.err'
5764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765  (eval $ac_try) 2>&5
5766  ac_status=$?
5767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768  (exit $ac_status); }; } &&
5769	 { ac_try='test -s conftest.$ac_objext'
5770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771  (eval $ac_try) 2>&5
5772  ac_status=$?
5773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774  (exit $ac_status); }; }; then
5775  cat >>confdefs.h <<\_ACEOF
5776#define SOCKET_SIZE_TYPE size_t
5777_ACEOF
5778 echo "$as_me:$LINENO: result: size_t" >&5
5779echo "${ECHO_T}size_t" >&6
5780else
5781  echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784cat >>confdefs.h <<\_ACEOF
5785#define SOCKET_SIZE_TYPE int
5786_ACEOF
5787 echo "$as_me:$LINENO: result: int" >&5
5788echo "${ECHO_T}int" >&6
5789fi
5790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5791
5792
5793# Check whether --with-mcrypt-lib or --without-mcrypt-lib was given.
5794if test "${with_mcrypt_lib+set}" = set; then
5795  withval="$with_mcrypt_lib"
5796
5797	LDFLAGS="${LDFLAGS} -L${withval}"
5798	LD_RUN_PATH="${withval}${LD_RUN_PATH:+:}${LD_RUN_PATH}"
5799
5800fi;
5801
5802# Check whether --with-mcrypt-inc or --without-mcrypt-inc was given.
5803if test "${with_mcrypt_inc+set}" = set; then
5804  withval="$with_mcrypt_inc"
5805
5806	CFLAGS="${CFLAGS} -I${withval}"
5807
5808fi;
5809
5810
5811MCRYPTLIBFOUND=yep
5812
5813# Check whether --with-libmcrypt-prefix or --without-libmcrypt-prefix was given.
5814if test "${with_libmcrypt_prefix+set}" = set; then
5815  withval="$with_libmcrypt_prefix"
5816  libmcrypt_config_prefix="$withval"
5817else
5818  libmcrypt_config_prefix=""
5819fi;
5820
5821  if test x$libmcrypt_config_prefix != x ; then
5822     libmcrypt_config_args="$libmcrypt_config_args --prefix=$libmcrypt_config_prefix"
5823     if test x${LIBMCRYPT_CONFIG+set} != xset ; then
5824        LIBMCRYPT_CONFIG=$libmcrypt_config_prefix/bin/libmcrypt-config
5825     fi
5826  fi
5827
5828  # Extract the first word of "libmcrypt-config", so it can be a program name with args.
5829set dummy libmcrypt-config; ac_word=$2
5830echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832if test "${ac_cv_path_LIBMCRYPT_CONFIG+set}" = set; then
5833  echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835  case $LIBMCRYPT_CONFIG in
5836  [\\/]* | ?:[\\/]*)
5837  ac_cv_path_LIBMCRYPT_CONFIG="$LIBMCRYPT_CONFIG" # Let the user override the test with a path.
5838  ;;
5839  *)
5840  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843  IFS=$as_save_IFS
5844  test -z "$as_dir" && as_dir=.
5845  for ac_exec_ext in '' $ac_executable_extensions; do
5846  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847    ac_cv_path_LIBMCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849    break 2
5850  fi
5851done
5852done
5853
5854  test -z "$ac_cv_path_LIBMCRYPT_CONFIG" && ac_cv_path_LIBMCRYPT_CONFIG="no"
5855  ;;
5856esac
5857fi
5858LIBMCRYPT_CONFIG=$ac_cv_path_LIBMCRYPT_CONFIG
5859
5860if test -n "$LIBMCRYPT_CONFIG"; then
5861  echo "$as_me:$LINENO: result: $LIBMCRYPT_CONFIG" >&5
5862echo "${ECHO_T}$LIBMCRYPT_CONFIG" >&6
5863else
5864  echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6
5866fi
5867
5868  min_libmcrypt_version=2.4.11
5869  echo "$as_me:$LINENO: checking for libmcrypt - version >= $min_libmcrypt_version" >&5
5870echo $ECHO_N "checking for libmcrypt - version >= $min_libmcrypt_version... $ECHO_C" >&6
5871  no_libmcrypt=""
5872  if test "$LIBMCRYPT_CONFIG" = "no" ; then
5873      if test "$cross_compiling" = yes; then
5874  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5875See \`config.log' for more details." >&5
5876echo "$as_me: error: cannot run test program while cross compiling
5877See \`config.log' for more details." >&2;}
5878   { (exit 1); exit 1; }; }
5879else
5880  cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h.  */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h.  */
5886
5887#include <stdio.h>
5888#include <stdlib.h>
5889#include <string.h>
5890#include <mcrypt.h>
5891
5892int
5893main ()
5894{
5895#if MCRYPT_API_VERSION <= 19991015
5896/* version 2.2 */
5897    return 0;
5898#else
5899/* version 2.4 */
5900    return 1;
5901#endif /* 19991015 */
5902}
5903
5904_ACEOF
5905rm -f conftest$ac_exeext
5906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907  (eval $ac_link) 2>&5
5908  ac_status=$?
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912  (eval $ac_try) 2>&5
5913  ac_status=$?
5914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915  (exit $ac_status); }; }; then
5916  libmcrypt_config_version="2.2.0"
5917    if test x$libmcrypt_config_prefix != x ; then
5918	TTLIBS="-L${libmcrypt_config_prefix}/libs"
5919	TTINCLUDE="-I${libmcrypt_config_prefix}/include"
5920    fi
5921    LIBMCRYPT_CFLAGS="${TTINCLUDE}"
5922    LIBMCRYPT_LIBS="${TTLIBS} -lmcrypt"
5923    cat >>confdefs.h <<\_ACEOF
5924#define LIBMCRYPT22 1
5925_ACEOF
5926
5927
5928
5929else
5930  echo "$as_me: program exited with status $ac_status" >&5
5931echo "$as_me: failed program was:" >&5
5932sed 's/^/| /' conftest.$ac_ext >&5
5933
5934( exit $ac_status )
5935libmcrypt_config_version="2.4.0"
5936    if test x$libmcrypt_config_prefix != x ; then
5937	TTLIBS="-L${libmcrypt_config_prefix}/libs"
5938	TTINCLUDE="-I${libmcrypt_config_prefix}/include"
5939    fi
5940    LIBMCRYPT_CFLAGS="${TTINCLUDE}"
5941    LIBMCRYPT_LIBS="${TTLIBS} -lmcrypt -lltdl ${LIBADD_DL}"
5942    cat >>confdefs.h <<\_ACEOF
5943#define LIBMCRYPT24 1
5944_ACEOF
5945
5946fi
5947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5948fi
5949  else
5950    LIBMCRYPT_CFLAGS=`$LIBMCRYPT_CONFIG $libmcrypt_config_args --cflags`
5951    LIBMCRYPT_LIBS=`$LIBMCRYPT_CONFIG $libmcrypt_config_args --libs`
5952    libmcrypt_config_version=`$LIBMCRYPT_CONFIG $libmcrypt_config_args --version`
5953    cat >>confdefs.h <<\_ACEOF
5954#define LIBMCRYPT24 1
5955_ACEOF
5956
5957  fi
5958
5959  ac_save_CFLAGS="$CFLAGS"
5960  ac_save_LIBS="$LIBS"
5961  CFLAGS="$CFLAGS $LIBMCRYPT_CFLAGS"
5962  LIBS="$LIBS $LIBMCRYPT_LIBS"
5963
5964      rm -f conf.libmcrypttest
5965      if test "$cross_compiling" = yes; then
5966  echo $ac_n "cross compiling; assumed OK... $ac_c"
5967else
5968  cat >conftest.$ac_ext <<_ACEOF
5969/* confdefs.h.  */
5970_ACEOF
5971cat confdefs.h >>conftest.$ac_ext
5972cat >>conftest.$ac_ext <<_ACEOF
5973/* end confdefs.h.  */
5974
5975#include <stdio.h>
5976#include <stdlib.h>
5977#include <string.h>
5978#include <mcrypt.h>
5979
5980#define TWO "2.2"
5981
5982int
5983main ()
5984{
5985#if MCRYPT_API_VERSION <= 20010201
5986
5987#if MCRYPT_API_VERSION <= 19991015
5988/* version 2.2 */
5989    int x = mcrypt_get_key_size(MCRYPT_TWOFISH_128);
5990    system ("touch conf.libmcrypttest");
5991
5992    if( strncmp( TWO, "$min_libmcrypt_version", strlen(TWO))) {
5993      printf("\n*** Requested libmcrypt %s, but LIBMCRYPT (%s)\n",
5994             "$min_libmcrypt_version", TWO );
5995      printf("*** was found!\n");
5996      return 1;
5997    }
5998    return 0;
5999#else
6000/* version 2.4 before 11 */
6001    MCRYPT td = mcrypt_module_open("twofish", NULL, "cbc", NULL);
6002    system ("touch conf.libmcrypttest");
6003    mcrypt_module_close(td);
6004
6005    return 0;
6006#endif /* 19991015 */
6007
6008#else
6009
6010    system ("touch conf.libmcrypttest");
6011
6012    if( strcmp( mcrypt_check_version(NULL), "$libmcrypt_config_version" ) )
6013    {
6014      printf("\n*** 'libmcrypt-config --version' returned %s, but LIBMCRYPT (%s)\n",
6015             "$libmcrypt_config_version", mcrypt_check_version(NULL) );
6016      printf("*** was found! If libmcrypt-config was correct, then it is best\n");
6017      printf("*** to remove the old version of LIBMCRYPT. You may also be able to fix the error\n");
6018      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6019      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6020      printf("*** required on your system.\n");
6021      printf("*** If libmcrypt-config was wrong, set the environment variable LIBMCRYPT_CONFIG\n");
6022      printf("*** to point to the correct copy of libmcrypt-config, and remove the file config.cache\n");
6023      printf("*** before re-running configure\n");
6024    }
6025    else if ( strcmp(mcrypt_check_version(NULL), LIBMCRYPT_VERSION ) )
6026    {
6027      printf("\n*** LIBMCRYPT header file (version %s) does not match\n", LIBMCRYPT_VERSION);
6028      printf("*** library (version %s)\n", mcrypt_check_version(NULL) );
6029    }
6030    else
6031    {
6032      if ( mcrypt_check_version( "$min_libmcrypt_version" ) )
6033      {
6034        return 0;
6035      }
6036     else
6037      {
6038        printf("no\n*** An old version of LIBMCRYPT (%s) was found.\n",
6039                mcrypt_check_version(NULL) );
6040        printf("*** You need a version of LIBMCRYPT newer than %s. The latest version of\n",
6041               "$min_libmcrypt_version" );
6042        printf("*** LIBMCRYPT is always available from ftp://mcrypt.hellug.gr/pub/mcrypt.\n");
6043        printf("*** \n");
6044        printf("*** If you have already installed a sufficiently new version, this error\n");
6045        printf("*** probably means that the wrong copy of the libmcrypt-config shell script is\n");
6046        printf("*** being found. The easiest way to fix this is to remove the old version\n");
6047        printf("*** of LIBMCRYPT, but you can also set the LIBMCRYPT_CONFIG environment to point to the\n");
6048        printf("*** correct copy of libmcrypt-config. (In this case, you will have to\n");
6049        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6050        printf("*** so that the correct libraries are found at run-time))\n");
6051      }
6052    }
6053  return 1;
6054
6055#endif /* 20010201 */
6056
6057}
6058
6059_ACEOF
6060rm -f conftest$ac_exeext
6061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6062  (eval $ac_link) 2>&5
6063  ac_status=$?
6064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067  (eval $ac_try) 2>&5
6068  ac_status=$?
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); }; }; then
6071  :
6072else
6073  echo "$as_me: program exited with status $ac_status" >&5
6074echo "$as_me: failed program was:" >&5
6075sed 's/^/| /' conftest.$ac_ext >&5
6076
6077( exit $ac_status )
6078no_libmcrypt=yes
6079fi
6080rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6081fi
6082       CFLAGS="$ac_save_CFLAGS"
6083       LIBS="$ac_save_LIBS"
6084
6085
6086  if test "x$no_libmcrypt" = x ; then
6087     echo "$as_me:$LINENO: result: yes" >&5
6088echo "${ECHO_T}yes" >&6
6089     :
6090  else
6091     if test -f conf.libmcrypttest ; then
6092        :
6093     else
6094        echo "$as_me:$LINENO: result: no" >&5
6095echo "${ECHO_T}no" >&6
6096     fi
6097
6098     if test -f conf.libmcrypttest ; then
6099        :
6100     else
6101          echo "*** Could not run libmcrypt test program, checking why..."
6102          CFLAGS="$CFLAGS $LIBMCRYPT_CFLAGS"
6103          LIBS="$LIBS $LIBMCRYPT_LIBS"
6104          cat >conftest.$ac_ext <<_ACEOF
6105/* confdefs.h.  */
6106_ACEOF
6107cat confdefs.h >>conftest.$ac_ext
6108cat >>conftest.$ac_ext <<_ACEOF
6109/* end confdefs.h.  */
6110
6111#include <stdio.h>
6112#include <stdlib.h>
6113#include <string.h>
6114#include <mcrypt.h>
6115
6116int
6117main ()
6118{
6119
6120#if MCRYPT_API_VERSION <= 20010201
6121
6122#if MCRYPT_API_VERSION <= 19991015
6123/* version 2.2 */
6124    int x = mcrypt_get_key_size(MCRYPT_TWOFISH_128);
6125    return 0;
6126#else
6127/* version 2.4 before 11 */
6128    MCRYPT td = mcrypt_module_open("twofish", NULL, "cbc", NULL);
6129    mcrypt_module_close(td);
6130    return 0;
6131#endif /* 19991015 */
6132#else
6133
6134return !!mcrypt_check_version(NULL);
6135
6136#endif /* 20010201 */
6137
6138
6139  ;
6140  return 0;
6141}
6142_ACEOF
6143rm -f conftest.$ac_objext conftest$ac_exeext
6144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6145  (eval $ac_link) 2>conftest.er1
6146  ac_status=$?
6147  grep -v '^ *+' conftest.er1 >conftest.err
6148  rm -f conftest.er1
6149  cat conftest.err >&5
6150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151  (exit $ac_status); } &&
6152	 { ac_try='test -z "$ac_c_werror_flag"
6153			 || test ! -s conftest.err'
6154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155  (eval $ac_try) 2>&5
6156  ac_status=$?
6157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158  (exit $ac_status); }; } &&
6159	 { ac_try='test -s conftest$ac_exeext'
6160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161  (eval $ac_try) 2>&5
6162  ac_status=$?
6163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164  (exit $ac_status); }; }; then
6165   echo "*** The test program compiled, but did not run. This usually means"
6166          echo "*** that the run-time linker is not finding LIBMCRYPT or finding the wrong"
6167          echo "*** version of LIBMCRYPT. If it is not finding LIBMCRYPT, you'll need to set your"
6168          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6169          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
6170          echo "*** is required on your system"
6171          echo "***"
6172          echo "*** If you have an old version installed, it is best to remove it, although"
6173          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6174          echo "***"
6175else
6176  echo "$as_me: failed program was:" >&5
6177sed 's/^/| /' conftest.$ac_ext >&5
6178
6179 echo "*** The test program failed to compile or link. See the file config.log for the"
6180          echo "*** exact error that occured. This usually means LIBMCRYPT was incorrectly installed"
6181          echo "*** or that you have moved LIBMCRYPT since it was installed. In the latter case, you"
6182          echo "*** may want to edit the libmcrypt-config script: $LIBMCRYPT_CONFIG"
6183fi
6184rm -f conftest.err conftest.$ac_objext \
6185      conftest$ac_exeext conftest.$ac_ext
6186          CFLAGS="$ac_save_CFLAGS"
6187          LIBS="$ac_save_LIBS"
6188     fi
6189
6190     LIBMCRYPT_CFLAGS=""
6191     LIBMCRYPT_LIBS=""
6192     MCRYPTLIBFOUND=nope
6193  fi
6194
6195
6196
6197
6198if test $MCRYPTLIBFOUND = yep; then
6199	CFLAGS="${CFLAGS} -DHAVE_LIBMCRYPT ${LIBMCRYPT_CFLAGS}"
6200	LDFLAGS="${LDFLAGS} ${LIBMCRYPT_LIBS}"
6201fi
6202
6203if test x$MCRYPTLIBFOUND = xnope; then
6204	echo ""
6205	echo ""
6206	echo "**************************************************************"
6207	echo "MCRYPT LIBRARY (libmcrypt) COULD NOT BE LOCATED..."
6208	echo ""
6209	echo "The mcrypt library could not be located on your system.  This"
6210	echo "means that you will NOT be able to use any crypto algorithms"
6211	echo "in the NSCA client or daemon."
6212	echo ""
6213	echo "Read the SECURITY text file for more information on why"
6214	echo "encryption is important to ensuring that the NSCA daemon is"
6215	echo "not abused by malicious users."
6216	echo ""
6217	echo "You can download libmcrypt from:"
6218	echo ""
6219	echo "        http://mcrypt.sourceforge.net/"
6220	echo ""
6221	echo ""
6222	echo "NOTE: After you install the MCRYPT library on your system:"
6223	echo ""
6224	echo "      1. Make sure /etc/ld.so.conf has an entry for the"
6225	echo "         directory in which the MCRYPT library is installed."
6226	echo "      2. Run 'ldconfig' to update the run-time linker options."
6227	echo "      3. Run 'make devclean' in the NSCA distribution to clean"
6228	echo "         out any old references to your previous compile."
6229	echo "      4. Rerun the configure script."
6230	echo ""
6231	echo "**************************************************************"
6232	echo ""
6233fi
6234
6235
6236
6237# Check whether --with-nsca_user or --without-nsca_user was given.
6238if test "${with_nsca_user+set}" = set; then
6239  withval="$with_nsca_user"
6240  nsca_user=$withval
6241else
6242  nsca_user=nagios
6243fi;
6244
6245# Check whether --with-nsca_grp or --without-nsca_grp was given.
6246if test "${with_nsca_grp+set}" = set; then
6247  withval="$with_nsca_grp"
6248  nsca_grp=$withval
6249else
6250  nsca_grp=nagios
6251fi;
6252
6253# Check whether --with-nsca_port or --without-nsca_port was given.
6254if test "${with_nsca_port+set}" = set; then
6255  withval="$with_nsca_port"
6256  nsca_port=$withval
6257else
6258  nsca_port=5667
6259fi;
6260
6261
6262
6263cat >>confdefs.h <<_ACEOF
6264#define DEFAULT_SERVER_PORT $nsca_port
6265_ACEOF
6266
6267
6268# Extract the first word of "perl", so it can be a program name with args.
6269set dummy perl; ac_word=$2
6270echo "$as_me:$LINENO: checking for $ac_word" >&5
6271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6272if test "${ac_cv_path_PERL+set}" = set; then
6273  echo $ECHO_N "(cached) $ECHO_C" >&6
6274else
6275  case $PERL in
6276  [\\/]* | ?:[\\/]*)
6277  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6278  ;;
6279  *)
6280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281for as_dir in $PATH
6282do
6283  IFS=$as_save_IFS
6284  test -z "$as_dir" && as_dir=.
6285  for ac_exec_ext in '' $ac_executable_extensions; do
6286  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6288    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289    break 2
6290  fi
6291done
6292done
6293
6294  ;;
6295esac
6296fi
6297PERL=$ac_cv_path_PERL
6298
6299if test -n "$PERL"; then
6300  echo "$as_me:$LINENO: result: $PERL" >&5
6301echo "${ECHO_T}$PERL" >&6
6302else
6303  echo "$as_me:$LINENO: result: no" >&5
6304echo "${ECHO_T}no" >&6
6305fi
6306
6307                              ac_config_files="$ac_config_files Makefile subst src/Makefile"
6308
6309
6310test "x$prefix" = xNONE && prefix=$ac_default_prefix
6311# Let make expand exec_prefix.
6312test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6313
6314# VPATH may cause trouble with some makes, so we remove $(srcdir),
6315# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6316# trailing colons and then remove the whole line if VPATH becomes empty
6317# (actually we leave an empty line to preserve line numbers).
6318if test "x$srcdir" = x.; then
6319  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6320s/:*\$(srcdir):*/:/;
6321s/:*\${srcdir}:*/:/;
6322s/:*@srcdir@:*/:/;
6323s/^\([^=]*=[	 ]*\):*/\1/;
6324s/:*$//;
6325s/^[^=]*=[	 ]*$//;
6326}'
6327fi
6328
6329DEFS=-DHAVE_CONFIG_H
6330
6331ac_libobjs=
6332ac_ltlibobjs=
6333for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6334  # 1. Remove the extension, and $U if already installed.
6335  ac_i=`echo "$ac_i" |
6336	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6337  # 2. Add them.
6338  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6339  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6340done
6341LIBOBJS=$ac_libobjs
6342
6343LTLIBOBJS=$ac_ltlibobjs
6344
6345
6346
6347: ${CONFIG_STATUS=./config.status}
6348ac_clean_files_save=$ac_clean_files
6349ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6350{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6351echo "$as_me: creating $CONFIG_STATUS" >&6;}
6352cat >$CONFIG_STATUS <<_ACEOF
6353#! $SHELL
6354# Generated by $as_me.
6355# Run this file to recreate the current configuration.
6356# Compiler output produced by configure, useful for debugging
6357# configure, is in config.log if it exists.
6358
6359debug=false
6360ac_cs_recheck=false
6361ac_cs_silent=false
6362SHELL=\${CONFIG_SHELL-$SHELL}
6363_ACEOF
6364
6365cat >>$CONFIG_STATUS <<\_ACEOF
6366## --------------------- ##
6367## M4sh Initialization.  ##
6368## --------------------- ##
6369
6370# Be Bourne compatible
6371if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6372  emulate sh
6373  NULLCMD=:
6374  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6375  # is contrary to our usage.  Disable this feature.
6376  alias -g '${1+"$@"}'='"$@"'
6377elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6378  set -o posix
6379fi
6380DUALCASE=1; export DUALCASE # for MKS sh
6381
6382# Support unset when possible.
6383if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6384  as_unset=unset
6385else
6386  as_unset=false
6387fi
6388
6389
6390# Work around bugs in pre-3.0 UWIN ksh.
6391$as_unset ENV MAIL MAILPATH
6392PS1='$ '
6393PS2='> '
6394PS4='+ '
6395
6396# NLS nuisances.
6397for as_var in \
6398  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6399  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6400  LC_TELEPHONE LC_TIME
6401do
6402  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6403    eval $as_var=C; export $as_var
6404  else
6405    $as_unset $as_var
6406  fi
6407done
6408
6409# Required to use basename.
6410if expr a : '\(a\)' >/dev/null 2>&1; then
6411  as_expr=expr
6412else
6413  as_expr=false
6414fi
6415
6416if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6417  as_basename=basename
6418else
6419  as_basename=false
6420fi
6421
6422
6423# Name of the executable.
6424as_me=`$as_basename "$0" ||
6425$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6426	 X"$0" : 'X\(//\)$' \| \
6427	 X"$0" : 'X\(/\)$' \| \
6428	 .     : '\(.\)' 2>/dev/null ||
6429echo X/"$0" |
6430    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6431  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
6432  	  /^X\/\(\/\).*/{ s//\1/; q; }
6433  	  s/.*/./; q'`
6434
6435
6436# PATH needs CR, and LINENO needs CR and PATH.
6437# Avoid depending upon Character Ranges.
6438as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6439as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6440as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6441as_cr_digits='0123456789'
6442as_cr_alnum=$as_cr_Letters$as_cr_digits
6443
6444# The user is always right.
6445if test "${PATH_SEPARATOR+set}" != set; then
6446  echo "#! /bin/sh" >conf$$.sh
6447  echo  "exit 0"   >>conf$$.sh
6448  chmod +x conf$$.sh
6449  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6450    PATH_SEPARATOR=';'
6451  else
6452    PATH_SEPARATOR=:
6453  fi
6454  rm -f conf$$.sh
6455fi
6456
6457
6458  as_lineno_1=$LINENO
6459  as_lineno_2=$LINENO
6460  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6461  test "x$as_lineno_1" != "x$as_lineno_2" &&
6462  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6463  # Find who we are.  Look in the path if we contain no path at all
6464  # relative or not.
6465  case $0 in
6466    *[\\/]* ) as_myself=$0 ;;
6467    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH
6469do
6470  IFS=$as_save_IFS
6471  test -z "$as_dir" && as_dir=.
6472  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6473done
6474
6475       ;;
6476  esac
6477  # We did not find ourselves, most probably we were run as `sh COMMAND'
6478  # in which case we are not to be found in the path.
6479  if test "x$as_myself" = x; then
6480    as_myself=$0
6481  fi
6482  if test ! -f "$as_myself"; then
6483    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6484echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6485   { (exit 1); exit 1; }; }
6486  fi
6487  case $CONFIG_SHELL in
6488  '')
6489    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6491do
6492  IFS=$as_save_IFS
6493  test -z "$as_dir" && as_dir=.
6494  for as_base in sh bash ksh sh5; do
6495	 case $as_dir in
6496	 /*)
6497	   if ("$as_dir/$as_base" -c '
6498  as_lineno_1=$LINENO
6499  as_lineno_2=$LINENO
6500  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6501  test "x$as_lineno_1" != "x$as_lineno_2" &&
6502  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6503	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6504	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6505	     CONFIG_SHELL=$as_dir/$as_base
6506	     export CONFIG_SHELL
6507	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6508	   fi;;
6509	 esac
6510       done
6511done
6512;;
6513  esac
6514
6515  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6516  # uniformly replaced by the line number.  The first 'sed' inserts a
6517  # line-number line before each line; the second 'sed' does the real
6518  # work.  The second script uses 'N' to pair each line-number line
6519  # with the numbered line, and appends trailing '-' during
6520  # substitution so that $LINENO is not a special case at line end.
6521  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6522  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6523  sed '=' <$as_myself |
6524    sed '
6525      N
6526      s,$,-,
6527      : loop
6528      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6529      t loop
6530      s,-$,,
6531      s,^['$as_cr_digits']*\n,,
6532    ' >$as_me.lineno &&
6533  chmod +x $as_me.lineno ||
6534    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6535echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6536   { (exit 1); exit 1; }; }
6537
6538  # Don't try to exec as it changes $[0], causing all sort of problems
6539  # (the dirname of $[0] is not the place where we might find the
6540  # original and so on.  Autoconf is especially sensible to this).
6541  . ./$as_me.lineno
6542  # Exit status is that of the last command.
6543  exit
6544}
6545
6546
6547case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6548  *c*,-n*) ECHO_N= ECHO_C='
6549' ECHO_T='	' ;;
6550  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6551  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6552esac
6553
6554if expr a : '\(a\)' >/dev/null 2>&1; then
6555  as_expr=expr
6556else
6557  as_expr=false
6558fi
6559
6560rm -f conf$$ conf$$.exe conf$$.file
6561echo >conf$$.file
6562if ln -s conf$$.file conf$$ 2>/dev/null; then
6563  # We could just check for DJGPP; but this test a) works b) is more generic
6564  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6565  if test -f conf$$.exe; then
6566    # Don't use ln at all; we don't have any links
6567    as_ln_s='cp -p'
6568  else
6569    as_ln_s='ln -s'
6570  fi
6571elif ln conf$$.file conf$$ 2>/dev/null; then
6572  as_ln_s=ln
6573else
6574  as_ln_s='cp -p'
6575fi
6576rm -f conf$$ conf$$.exe conf$$.file
6577
6578if mkdir -p . 2>/dev/null; then
6579  as_mkdir_p=:
6580else
6581  test -d ./-p && rmdir ./-p
6582  as_mkdir_p=false
6583fi
6584
6585as_executable_p="test -f"
6586
6587# Sed expression to map a string onto a valid CPP name.
6588as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6589
6590# Sed expression to map a string onto a valid variable name.
6591as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6592
6593
6594# IFS
6595# We need space, tab and new line, in precisely that order.
6596as_nl='
6597'
6598IFS=" 	$as_nl"
6599
6600# CDPATH.
6601$as_unset CDPATH
6602
6603exec 6>&1
6604
6605# Open the log real soon, to keep \$[0] and so on meaningful, and to
6606# report actual input values of CONFIG_FILES etc. instead of their
6607# values after options handling.  Logging --version etc. is OK.
6608exec 5>>config.log
6609{
6610  echo
6611  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6612## Running $as_me. ##
6613_ASBOX
6614} >&5
6615cat >&5 <<_CSEOF
6616
6617This file was extended by $as_me, which was
6618generated by GNU Autoconf 2.59.  Invocation command line was
6619
6620  CONFIG_FILES    = $CONFIG_FILES
6621  CONFIG_HEADERS  = $CONFIG_HEADERS
6622  CONFIG_LINKS    = $CONFIG_LINKS
6623  CONFIG_COMMANDS = $CONFIG_COMMANDS
6624  $ $0 $@
6625
6626_CSEOF
6627echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6628echo >&5
6629_ACEOF
6630
6631# Files that config.status was made for.
6632if test -n "$ac_config_files"; then
6633  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6634fi
6635
6636if test -n "$ac_config_headers"; then
6637  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6638fi
6639
6640if test -n "$ac_config_links"; then
6641  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6642fi
6643
6644if test -n "$ac_config_commands"; then
6645  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6646fi
6647
6648cat >>$CONFIG_STATUS <<\_ACEOF
6649
6650ac_cs_usage="\
6651\`$as_me' instantiates files from templates according to the
6652current configuration.
6653
6654Usage: $0 [OPTIONS] [FILE]...
6655
6656  -h, --help       print this help, then exit
6657  -V, --version    print version number, then exit
6658  -q, --quiet      do not print progress messages
6659  -d, --debug      don't remove temporary files
6660      --recheck    update $as_me by reconfiguring in the same conditions
6661  --file=FILE[:TEMPLATE]
6662		   instantiate the configuration file FILE
6663  --header=FILE[:TEMPLATE]
6664		   instantiate the configuration header FILE
6665
6666Configuration files:
6667$config_files
6668
6669Configuration headers:
6670$config_headers
6671
6672Report bugs to <bug-autoconf@gnu.org>."
6673_ACEOF
6674
6675cat >>$CONFIG_STATUS <<_ACEOF
6676ac_cs_version="\\
6677config.status
6678configured by $0, generated by GNU Autoconf 2.59,
6679  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6680
6681Copyright (C) 2003 Free Software Foundation, Inc.
6682This config.status script is free software; the Free Software Foundation
6683gives unlimited permission to copy, distribute and modify it."
6684srcdir=$srcdir
6685INSTALL="$INSTALL"
6686_ACEOF
6687
6688cat >>$CONFIG_STATUS <<\_ACEOF
6689# If no file are specified by the user, then we need to provide default
6690# value.  By we need to know if files were specified by the user.
6691ac_need_defaults=:
6692while test $# != 0
6693do
6694  case $1 in
6695  --*=*)
6696    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6697    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6698    ac_shift=:
6699    ;;
6700  -*)
6701    ac_option=$1
6702    ac_optarg=$2
6703    ac_shift=shift
6704    ;;
6705  *) # This is not an option, so the user has probably given explicit
6706     # arguments.
6707     ac_option=$1
6708     ac_need_defaults=false;;
6709  esac
6710
6711  case $ac_option in
6712  # Handling of the options.
6713_ACEOF
6714cat >>$CONFIG_STATUS <<\_ACEOF
6715  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6716    ac_cs_recheck=: ;;
6717  --version | --vers* | -V )
6718    echo "$ac_cs_version"; exit 0 ;;
6719  --he | --h)
6720    # Conflict between --help and --header
6721    { { echo "$as_me:$LINENO: error: ambiguous option: $1
6722Try \`$0 --help' for more information." >&5
6723echo "$as_me: error: ambiguous option: $1
6724Try \`$0 --help' for more information." >&2;}
6725   { (exit 1); exit 1; }; };;
6726  --help | --hel | -h )
6727    echo "$ac_cs_usage"; exit 0 ;;
6728  --debug | --d* | -d )
6729    debug=: ;;
6730  --file | --fil | --fi | --f )
6731    $ac_shift
6732    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6733    ac_need_defaults=false;;
6734  --header | --heade | --head | --hea )
6735    $ac_shift
6736    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6737    ac_need_defaults=false;;
6738  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6739  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6740    ac_cs_silent=: ;;
6741
6742  # This is an error.
6743  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6744Try \`$0 --help' for more information." >&5
6745echo "$as_me: error: unrecognized option: $1
6746Try \`$0 --help' for more information." >&2;}
6747   { (exit 1); exit 1; }; } ;;
6748
6749  *) ac_config_targets="$ac_config_targets $1" ;;
6750
6751  esac
6752  shift
6753done
6754
6755ac_configure_extra_args=
6756
6757if $ac_cs_silent; then
6758  exec 6>/dev/null
6759  ac_configure_extra_args="$ac_configure_extra_args --silent"
6760fi
6761
6762_ACEOF
6763cat >>$CONFIG_STATUS <<_ACEOF
6764if \$ac_cs_recheck; then
6765  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6766  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6767fi
6768
6769_ACEOF
6770
6771
6772
6773
6774
6775cat >>$CONFIG_STATUS <<\_ACEOF
6776for ac_config_target in $ac_config_targets
6777do
6778  case "$ac_config_target" in
6779  # Handling of arguments.
6780  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6781  "subst" ) CONFIG_FILES="$CONFIG_FILES subst" ;;
6782  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6783  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
6784  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6785echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6786   { (exit 1); exit 1; }; };;
6787  esac
6788done
6789
6790# If the user did not use the arguments to specify the items to instantiate,
6791# then the envvar interface is used.  Set only those that are not.
6792# We use the long form for the default assignment because of an extremely
6793# bizarre bug on SunOS 4.1.3.
6794if $ac_need_defaults; then
6795  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6796  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6797fi
6798
6799# Have a temporary directory for convenience.  Make it in the build tree
6800# simply because there is no reason to put it here, and in addition,
6801# creating and moving files from /tmp can sometimes cause problems.
6802# Create a temporary directory, and hook for its removal unless debugging.
6803$debug ||
6804{
6805  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6806  trap '{ (exit 1); exit 1; }' 1 2 13 15
6807}
6808
6809# Create a (secure) tmp directory for tmp files.
6810
6811{
6812  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6813  test -n "$tmp" && test -d "$tmp"
6814}  ||
6815{
6816  tmp=./confstat$$-$RANDOM
6817  (umask 077 && mkdir $tmp)
6818} ||
6819{
6820   echo "$me: cannot create a temporary directory in ." >&2
6821   { (exit 1); exit 1; }
6822}
6823
6824_ACEOF
6825
6826cat >>$CONFIG_STATUS <<_ACEOF
6827
6828#
6829# CONFIG_FILES section.
6830#
6831
6832# No need to generate the scripts if there are no CONFIG_FILES.
6833# This happens for instance when ./config.status config.h
6834if test -n "\$CONFIG_FILES"; then
6835  # Protect against being on the right side of a sed subst in config.status.
6836  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6837   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6838s,@SHELL@,$SHELL,;t t
6839s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6840s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6841s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6842s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6843s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6844s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6845s,@exec_prefix@,$exec_prefix,;t t
6846s,@prefix@,$prefix,;t t
6847s,@program_transform_name@,$program_transform_name,;t t
6848s,@bindir@,$bindir,;t t
6849s,@sbindir@,$sbindir,;t t
6850s,@libexecdir@,$libexecdir,;t t
6851s,@datadir@,$datadir,;t t
6852s,@sysconfdir@,$sysconfdir,;t t
6853s,@sharedstatedir@,$sharedstatedir,;t t
6854s,@localstatedir@,$localstatedir,;t t
6855s,@libdir@,$libdir,;t t
6856s,@includedir@,$includedir,;t t
6857s,@oldincludedir@,$oldincludedir,;t t
6858s,@infodir@,$infodir,;t t
6859s,@mandir@,$mandir,;t t
6860s,@build_alias@,$build_alias,;t t
6861s,@host_alias@,$host_alias,;t t
6862s,@target_alias@,$target_alias,;t t
6863s,@DEFS@,$DEFS,;t t
6864s,@ECHO_C@,$ECHO_C,;t t
6865s,@ECHO_N@,$ECHO_N,;t t
6866s,@ECHO_T@,$ECHO_T,;t t
6867s,@LIBS@,$LIBS,;t t
6868s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6869s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6870s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6871s,@INSTALL@,$INSTALL,;t t
6872s,@build@,$build,;t t
6873s,@build_cpu@,$build_cpu,;t t
6874s,@build_vendor@,$build_vendor,;t t
6875s,@build_os@,$build_os,;t t
6876s,@host@,$host,;t t
6877s,@host_cpu@,$host_cpu,;t t
6878s,@host_vendor@,$host_vendor,;t t
6879s,@host_os@,$host_os,;t t
6880s,@CC@,$CC,;t t
6881s,@CFLAGS@,$CFLAGS,;t t
6882s,@LDFLAGS@,$LDFLAGS,;t t
6883s,@CPPFLAGS@,$CPPFLAGS,;t t
6884s,@ac_ct_CC@,$ac_ct_CC,;t t
6885s,@EXEEXT@,$EXEEXT,;t t
6886s,@OBJEXT@,$OBJEXT,;t t
6887s,@SET_MAKE@,$SET_MAKE,;t t
6888s,@CPP@,$CPP,;t t
6889s,@EGREP@,$EGREP,;t t
6890s,@SOCKETLIBS@,$SOCKETLIBS,;t t
6891s,@LIBWRAPLIBS@,$LIBWRAPLIBS,;t t
6892s,@LIBMCRYPT_CONFIG@,$LIBMCRYPT_CONFIG,;t t
6893s,@LIBMCRYPT_CFLAGS@,$LIBMCRYPT_CFLAGS,;t t
6894s,@LIBMCRYPT_LIBS@,$LIBMCRYPT_LIBS,;t t
6895s,@nsca_user@,$nsca_user,;t t
6896s,@nsca_grp@,$nsca_grp,;t t
6897s,@nsca_port@,$nsca_port,;t t
6898s,@PERL@,$PERL,;t t
6899s,@LIBOBJS@,$LIBOBJS,;t t
6900s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6901CEOF
6902
6903_ACEOF
6904
6905  cat >>$CONFIG_STATUS <<\_ACEOF
6906  # Split the substitutions into bite-sized pieces for seds with
6907  # small command number limits, like on Digital OSF/1 and HP-UX.
6908  ac_max_sed_lines=48
6909  ac_sed_frag=1 # Number of current file.
6910  ac_beg=1 # First line for current file.
6911  ac_end=$ac_max_sed_lines # Line after last line for current file.
6912  ac_more_lines=:
6913  ac_sed_cmds=
6914  while $ac_more_lines; do
6915    if test $ac_beg -gt 1; then
6916      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6917    else
6918      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6919    fi
6920    if test ! -s $tmp/subs.frag; then
6921      ac_more_lines=false
6922    else
6923      # The purpose of the label and of the branching condition is to
6924      # speed up the sed processing (if there are no `@' at all, there
6925      # is no need to browse any of the substitutions).
6926      # These are the two extra sed commands mentioned above.
6927      (echo ':t
6928  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6929      if test -z "$ac_sed_cmds"; then
6930	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6931      else
6932	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6933      fi
6934      ac_sed_frag=`expr $ac_sed_frag + 1`
6935      ac_beg=$ac_end
6936      ac_end=`expr $ac_end + $ac_max_sed_lines`
6937    fi
6938  done
6939  if test -z "$ac_sed_cmds"; then
6940    ac_sed_cmds=cat
6941  fi
6942fi # test -n "$CONFIG_FILES"
6943
6944_ACEOF
6945cat >>$CONFIG_STATUS <<\_ACEOF
6946for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6947  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6948  case $ac_file in
6949  - | *:- | *:-:* ) # input from stdin
6950	cat >$tmp/stdin
6951	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6952	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6953  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6954	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6955  * )   ac_file_in=$ac_file.in ;;
6956  esac
6957
6958  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6959  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6960$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6961	 X"$ac_file" : 'X\(//\)[^/]' \| \
6962	 X"$ac_file" : 'X\(//\)$' \| \
6963	 X"$ac_file" : 'X\(/\)' \| \
6964	 .     : '\(.\)' 2>/dev/null ||
6965echo X"$ac_file" |
6966    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6967  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6968  	  /^X\(\/\/\)$/{ s//\1/; q; }
6969  	  /^X\(\/\).*/{ s//\1/; q; }
6970  	  s/.*/./; q'`
6971  { if $as_mkdir_p; then
6972    mkdir -p "$ac_dir"
6973  else
6974    as_dir="$ac_dir"
6975    as_dirs=
6976    while test ! -d "$as_dir"; do
6977      as_dirs="$as_dir $as_dirs"
6978      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6979$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6980	 X"$as_dir" : 'X\(//\)[^/]' \| \
6981	 X"$as_dir" : 'X\(//\)$' \| \
6982	 X"$as_dir" : 'X\(/\)' \| \
6983	 .     : '\(.\)' 2>/dev/null ||
6984echo X"$as_dir" |
6985    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6986  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6987  	  /^X\(\/\/\)$/{ s//\1/; q; }
6988  	  /^X\(\/\).*/{ s//\1/; q; }
6989  	  s/.*/./; q'`
6990    done
6991    test ! -n "$as_dirs" || mkdir $as_dirs
6992  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6993echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6994   { (exit 1); exit 1; }; }; }
6995
6996  ac_builddir=.
6997
6998if test "$ac_dir" != .; then
6999  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7000  # A "../" for each directory in $ac_dir_suffix.
7001  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7002else
7003  ac_dir_suffix= ac_top_builddir=
7004fi
7005
7006case $srcdir in
7007  .)  # No --srcdir option.  We are building in place.
7008    ac_srcdir=.
7009    if test -z "$ac_top_builddir"; then
7010       ac_top_srcdir=.
7011    else
7012       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7013    fi ;;
7014  [\\/]* | ?:[\\/]* )  # Absolute path.
7015    ac_srcdir=$srcdir$ac_dir_suffix;
7016    ac_top_srcdir=$srcdir ;;
7017  *) # Relative path.
7018    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7019    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7020esac
7021
7022# Do not use `cd foo && pwd` to compute absolute paths, because
7023# the directories may not exist.
7024case `pwd` in
7025.) ac_abs_builddir="$ac_dir";;
7026*)
7027  case "$ac_dir" in
7028  .) ac_abs_builddir=`pwd`;;
7029  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7030  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7031  esac;;
7032esac
7033case $ac_abs_builddir in
7034.) ac_abs_top_builddir=${ac_top_builddir}.;;
7035*)
7036  case ${ac_top_builddir}. in
7037  .) ac_abs_top_builddir=$ac_abs_builddir;;
7038  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7039  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7040  esac;;
7041esac
7042case $ac_abs_builddir in
7043.) ac_abs_srcdir=$ac_srcdir;;
7044*)
7045  case $ac_srcdir in
7046  .) ac_abs_srcdir=$ac_abs_builddir;;
7047  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7048  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7049  esac;;
7050esac
7051case $ac_abs_builddir in
7052.) ac_abs_top_srcdir=$ac_top_srcdir;;
7053*)
7054  case $ac_top_srcdir in
7055  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7056  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7057  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7058  esac;;
7059esac
7060
7061
7062  case $INSTALL in
7063  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7064  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7065  esac
7066
7067  if test x"$ac_file" != x-; then
7068    { echo "$as_me:$LINENO: creating $ac_file" >&5
7069echo "$as_me: creating $ac_file" >&6;}
7070    rm -f "$ac_file"
7071  fi
7072  # Let's still pretend it is `configure' which instantiates (i.e., don't
7073  # use $as_me), people would be surprised to read:
7074  #    /* config.h.  Generated by config.status.  */
7075  if test x"$ac_file" = x-; then
7076    configure_input=
7077  else
7078    configure_input="$ac_file.  "
7079  fi
7080  configure_input=$configure_input"Generated from `echo $ac_file_in |
7081				     sed 's,.*/,,'` by configure."
7082
7083  # First look for the input files in the build tree, otherwise in the
7084  # src tree.
7085  ac_file_inputs=`IFS=:
7086    for f in $ac_file_in; do
7087      case $f in
7088      -) echo $tmp/stdin ;;
7089      [\\/$]*)
7090	 # Absolute (can't be DOS-style, as IFS=:)
7091	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7092echo "$as_me: error: cannot find input file: $f" >&2;}
7093   { (exit 1); exit 1; }; }
7094	 echo "$f";;
7095      *) # Relative
7096	 if test -f "$f"; then
7097	   # Build tree
7098	   echo "$f"
7099	 elif test -f "$srcdir/$f"; then
7100	   # Source tree
7101	   echo "$srcdir/$f"
7102	 else
7103	   # /dev/null tree
7104	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7105echo "$as_me: error: cannot find input file: $f" >&2;}
7106   { (exit 1); exit 1; }; }
7107	 fi;;
7108      esac
7109    done` || { (exit 1); exit 1; }
7110_ACEOF
7111cat >>$CONFIG_STATUS <<_ACEOF
7112  sed "$ac_vpsub
7113$extrasub
7114_ACEOF
7115cat >>$CONFIG_STATUS <<\_ACEOF
7116:t
7117/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7118s,@configure_input@,$configure_input,;t t
7119s,@srcdir@,$ac_srcdir,;t t
7120s,@abs_srcdir@,$ac_abs_srcdir,;t t
7121s,@top_srcdir@,$ac_top_srcdir,;t t
7122s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7123s,@builddir@,$ac_builddir,;t t
7124s,@abs_builddir@,$ac_abs_builddir,;t t
7125s,@top_builddir@,$ac_top_builddir,;t t
7126s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7127s,@INSTALL@,$ac_INSTALL,;t t
7128" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7129  rm -f $tmp/stdin
7130  if test x"$ac_file" != x-; then
7131    mv $tmp/out $ac_file
7132  else
7133    cat $tmp/out
7134    rm -f $tmp/out
7135  fi
7136
7137done
7138_ACEOF
7139cat >>$CONFIG_STATUS <<\_ACEOF
7140
7141#
7142# CONFIG_HEADER section.
7143#
7144
7145# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7146# NAME is the cpp macro being defined and VALUE is the value it is being given.
7147#
7148# ac_d sets the value in "#define NAME VALUE" lines.
7149ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
7150ac_dB='[	 ].*$,\1#\2'
7151ac_dC=' '
7152ac_dD=',;t'
7153# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7154ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
7155ac_uB='$,\1#\2define\3'
7156ac_uC=' '
7157ac_uD=',;t'
7158
7159for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7160  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7161  case $ac_file in
7162  - | *:- | *:-:* ) # input from stdin
7163	cat >$tmp/stdin
7164	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7165	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7166  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7167	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7168  * )   ac_file_in=$ac_file.in ;;
7169  esac
7170
7171  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7172echo "$as_me: creating $ac_file" >&6;}
7173
7174  # First look for the input files in the build tree, otherwise in the
7175  # src tree.
7176  ac_file_inputs=`IFS=:
7177    for f in $ac_file_in; do
7178      case $f in
7179      -) echo $tmp/stdin ;;
7180      [\\/$]*)
7181	 # Absolute (can't be DOS-style, as IFS=:)
7182	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7183echo "$as_me: error: cannot find input file: $f" >&2;}
7184   { (exit 1); exit 1; }; }
7185	 # Do quote $f, to prevent DOS paths from being IFS'd.
7186	 echo "$f";;
7187      *) # Relative
7188	 if test -f "$f"; then
7189	   # Build tree
7190	   echo "$f"
7191	 elif test -f "$srcdir/$f"; then
7192	   # Source tree
7193	   echo "$srcdir/$f"
7194	 else
7195	   # /dev/null tree
7196	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7197echo "$as_me: error: cannot find input file: $f" >&2;}
7198   { (exit 1); exit 1; }; }
7199	 fi;;
7200      esac
7201    done` || { (exit 1); exit 1; }
7202  # Remove the trailing spaces.
7203  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
7204
7205_ACEOF
7206
7207# Transform confdefs.h into two sed scripts, `conftest.defines' and
7208# `conftest.undefs', that substitutes the proper values into
7209# config.h.in to produce config.h.  The first handles `#define'
7210# templates, and the second `#undef' templates.
7211# And first: Protect against being on the right side of a sed subst in
7212# config.status.  Protect against being in an unquoted here document
7213# in config.status.
7214rm -f conftest.defines conftest.undefs
7215# Using a here document instead of a string reduces the quoting nightmare.
7216# Putting comments in sed scripts is not portable.
7217#
7218# `end' is used to avoid that the second main sed command (meant for
7219# 0-ary CPP macros) applies to n-ary macro definitions.
7220# See the Autoconf documentation for `clear'.
7221cat >confdef2sed.sed <<\_ACEOF
7222s/[\\&,]/\\&/g
7223s,[\\$`],\\&,g
7224t clear
7225: clear
7226s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7227t end
7228s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7229: end
7230_ACEOF
7231# If some macros were called several times there might be several times
7232# the same #defines, which is useless.  Nevertheless, we may not want to
7233# sort them, since we want the *last* AC-DEFINE to be honored.
7234uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7235sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7236rm -f confdef2sed.sed
7237
7238# This sed command replaces #undef with comments.  This is necessary, for
7239# example, in the case of _POSIX_SOURCE, which is predefined and required
7240# on some systems where configure will not decide to define it.
7241cat >>conftest.undefs <<\_ACEOF
7242s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7243_ACEOF
7244
7245# Break up conftest.defines because some shells have a limit on the size
7246# of here documents, and old seds have small limits too (100 cmds).
7247echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7248echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7249echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7250echo '  :' >>$CONFIG_STATUS
7251rm -f conftest.tail
7252while grep . conftest.defines >/dev/null
7253do
7254  # Write a limited-size here document to $tmp/defines.sed.
7255  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7256  # Speed up: don't consider the non `#define' lines.
7257  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
7258  # Work around the forget-to-reset-the-flag bug.
7259  echo 't clr' >>$CONFIG_STATUS
7260  echo ': clr' >>$CONFIG_STATUS
7261  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7262  echo 'CEOF
7263  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7264  rm -f $tmp/in
7265  mv $tmp/out $tmp/in
7266' >>$CONFIG_STATUS
7267  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7268  rm -f conftest.defines
7269  mv conftest.tail conftest.defines
7270done
7271rm -f conftest.defines
7272echo '  fi # grep' >>$CONFIG_STATUS
7273echo >>$CONFIG_STATUS
7274
7275# Break up conftest.undefs because some shells have a limit on the size
7276# of here documents, and old seds have small limits too (100 cmds).
7277echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7278rm -f conftest.tail
7279while grep . conftest.undefs >/dev/null
7280do
7281  # Write a limited-size here document to $tmp/undefs.sed.
7282  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7283  # Speed up: don't consider the non `#undef'
7284  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
7285  # Work around the forget-to-reset-the-flag bug.
7286  echo 't clr' >>$CONFIG_STATUS
7287  echo ': clr' >>$CONFIG_STATUS
7288  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7289  echo 'CEOF
7290  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7291  rm -f $tmp/in
7292  mv $tmp/out $tmp/in
7293' >>$CONFIG_STATUS
7294  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7295  rm -f conftest.undefs
7296  mv conftest.tail conftest.undefs
7297done
7298rm -f conftest.undefs
7299
7300cat >>$CONFIG_STATUS <<\_ACEOF
7301  # Let's still pretend it is `configure' which instantiates (i.e., don't
7302  # use $as_me), people would be surprised to read:
7303  #    /* config.h.  Generated by config.status.  */
7304  if test x"$ac_file" = x-; then
7305    echo "/* Generated by configure.  */" >$tmp/config.h
7306  else
7307    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7308  fi
7309  cat $tmp/in >>$tmp/config.h
7310  rm -f $tmp/in
7311  if test x"$ac_file" != x-; then
7312    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7313      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7314echo "$as_me: $ac_file is unchanged" >&6;}
7315    else
7316      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7317$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7318	 X"$ac_file" : 'X\(//\)[^/]' \| \
7319	 X"$ac_file" : 'X\(//\)$' \| \
7320	 X"$ac_file" : 'X\(/\)' \| \
7321	 .     : '\(.\)' 2>/dev/null ||
7322echo X"$ac_file" |
7323    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7324  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7325  	  /^X\(\/\/\)$/{ s//\1/; q; }
7326  	  /^X\(\/\).*/{ s//\1/; q; }
7327  	  s/.*/./; q'`
7328      { if $as_mkdir_p; then
7329    mkdir -p "$ac_dir"
7330  else
7331    as_dir="$ac_dir"
7332    as_dirs=
7333    while test ! -d "$as_dir"; do
7334      as_dirs="$as_dir $as_dirs"
7335      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7336$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7337	 X"$as_dir" : 'X\(//\)[^/]' \| \
7338	 X"$as_dir" : 'X\(//\)$' \| \
7339	 X"$as_dir" : 'X\(/\)' \| \
7340	 .     : '\(.\)' 2>/dev/null ||
7341echo X"$as_dir" |
7342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7343  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7344  	  /^X\(\/\/\)$/{ s//\1/; q; }
7345  	  /^X\(\/\).*/{ s//\1/; q; }
7346  	  s/.*/./; q'`
7347    done
7348    test ! -n "$as_dirs" || mkdir $as_dirs
7349  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7350echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7351   { (exit 1); exit 1; }; }; }
7352
7353      rm -f $ac_file
7354      mv $tmp/config.h $ac_file
7355    fi
7356  else
7357    cat $tmp/config.h
7358    rm -f $tmp/config.h
7359  fi
7360done
7361_ACEOF
7362
7363cat >>$CONFIG_STATUS <<\_ACEOF
7364
7365{ (exit 0); exit 0; }
7366_ACEOF
7367chmod +x $CONFIG_STATUS
7368ac_clean_files=$ac_clean_files_save
7369
7370
7371# configure is writing to config.log, and then calls config.status.
7372# config.status does its own redirection, appending to config.log.
7373# Unfortunately, on DOS this fails, as config.log is still kept open
7374# by configure, so config.status won't be able to write to it; its
7375# output is simply discarded.  So we exec the FD to /dev/null,
7376# effectively closing config.log, so it can be properly (re)opened and
7377# appended to by config.status.  When coming back to configure, we
7378# need to make the FD available again.
7379if test "$no_create" != yes; then
7380  ac_cs_success=:
7381  ac_config_status_args=
7382  test "$silent" = yes &&
7383    ac_config_status_args="$ac_config_status_args --quiet"
7384  exec 5>/dev/null
7385  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7386  exec 5>>config.log
7387  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7388  # would make configure fail if this is the last instruction.
7389  $ac_cs_success || { (exit 1); exit 1; }
7390fi
7391
7392
7393perl subst init-script
7394perl subst sample-config/nsca.xinetd
7395perl subst sample-config/nsca.cfg
7396perl subst sample-config/send_nsca.cfg
7397
7398
7399echo ""
7400echo ""
7401echo "$as_me:$LINENO: result: *** Configuration summary for $PKG_NAME $PKG_VERSION $PKG_REL_DATE ***:" >&5
7402echo "${ECHO_T}*** Configuration summary for $PKG_NAME $PKG_VERSION $PKG_REL_DATE ***:" >&6
7403
7404echo ""
7405echo " General Options:"
7406echo " -------------------------"
7407
7408echo "$as_me:$LINENO: result:  NSCA port:  $nsca_port" >&5
7409echo "${ECHO_T} NSCA port:  $nsca_port" >&6
7410echo "$as_me:$LINENO: result:  NSCA user:  $nsca_user" >&5
7411echo "${ECHO_T} NSCA user:  $nsca_user" >&6
7412echo "$as_me:$LINENO: result:  NSCA group: $nsca_grp" >&5
7413echo "${ECHO_T} NSCA group: $nsca_grp" >&6
7414
7415
7416echo ""
7417echo ""
7418echo "Review the options above for accuracy.  If they look okay,"
7419echo "type 'make all' to compile the NSCA daemon and client."
7420echo ""
7421
7422