1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by Autoconf 2.52.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Avoid depending upon Character Ranges.
11as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14as_cr_digits='0123456789'
15as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17# Sed expression to map a string onto a valid variable name.
18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20# Sed expression to map a string onto a valid CPP name.
21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25  emulate sh
26  NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30
31# Name of the executable.
32as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34if expr a : '\(a\)' >/dev/null 2>&1; then
35  as_expr=expr
36else
37  as_expr=false
38fi
39
40rm -f conf$$ conf$$.exe conf$$.file
41echo >conf$$.file
42if ln -s conf$$.file conf$$ 2>/dev/null; then
43  # We could just check for DJGPP; but this test a) works b) is more generic
44  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45  if test -f conf$$.exe; then
46    # Don't use ln at all; we don't have any links
47    as_ln_s='cp -p'
48  else
49    as_ln_s='ln -s'
50  fi
51elif ln conf$$.file conf$$ 2>/dev/null; then
52  as_ln_s=ln
53else
54  as_ln_s='cp -p'
55fi
56rm -f conf$$ conf$$.exe conf$$.file
57
58as_executable_p="test -f"
59
60# Support unset when possible.
61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62  as_unset=unset
63else
64  as_unset=false
65fi
66
67# NLS nuisances.
68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77# IFS
78# We need space, tab and new line, in precisely that order.
79as_nl='
80'
81IFS=" 	$as_nl"
82
83# CDPATH.
84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86# Name of the host.
87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88# so uname gets run too.
89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91exec 6>&1
92
93#
94# Initializations.
95#
96ac_default_prefix=/usr/local
97cross_compiling=no
98subdirs=
99MFLAGS= MAKEFLAGS=
100SHELL=${CONFIG_SHELL-/bin/sh}
101
102# Maximum number of lines to put in a shell here document.
103# This variable seems obsolete.  It should probably be removed, and
104# only ac_max_sed_lines should be used.
105: ${ac_max_here_lines=38}
106
107ac_unique_file="src/syslogd.c"
108# Factoring default headers for most tests.
109ac_includes_default="\
110#include <stdio.h>
111#if HAVE_SYS_TYPES_H
112# include <sys/types.h>
113#endif
114#if HAVE_SYS_STAT_H
115# include <sys/stat.h>
116#endif
117#if STDC_HEADERS
118# include <stdlib.h>
119# include <stddef.h>
120#else
121# if HAVE_STDLIB_H
122#  include <stdlib.h>
123# endif
124#endif
125#if HAVE_STRING_H
126# if !STDC_HEADERS && HAVE_MEMORY_H
127#  include <memory.h>
128# endif
129# include <string.h>
130#endif
131#if HAVE_STRINGS_H
132# include <strings.h>
133#endif
134#if HAVE_INTTYPES_H
135# include <inttypes.h>
136#else
137# if HAVE_STDINT_H
138#  include <stdint.h>
139# endif
140#endif
141#if HAVE_UNISTD_H
142# include <unistd.h>
143#endif"
144
145# Initialize some variables set by options.
146ac_init_help=
147ac_init_version=false
148# The variables have the same names as the options, with
149# dashes changed to underlines.
150cache_file=/dev/null
151exec_prefix=NONE
152no_create=
153no_recursion=
154prefix=NONE
155program_prefix=NONE
156program_suffix=NONE
157program_transform_name=s,x,x,
158silent=
159site=
160srcdir=
161verbose=
162x_includes=NONE
163x_libraries=NONE
164
165# Installation directory options.
166# These are left unexpanded so users can "make install exec_prefix=/foo"
167# and all the variables that are supposed to be based on exec_prefix
168# by default will actually change.
169# Use braces instead of parens because sh, perl, etc. also accept them.
170bindir='${exec_prefix}/bin'
171sbindir='${exec_prefix}/sbin'
172libexecdir='${exec_prefix}/libexec'
173datadir='${prefix}/share'
174sysconfdir='${prefix}/etc'
175sharedstatedir='${prefix}/com'
176localstatedir='${prefix}/var'
177libdir='${exec_prefix}/lib'
178includedir='${prefix}/include'
179oldincludedir='/usr/include'
180infodir='${prefix}/info'
181mandir='${prefix}/man'
182
183# Identity of this package.
184PACKAGE_NAME=
185PACKAGE_TARNAME=
186PACKAGE_VERSION=
187PACKAGE_STRING=
188PACKAGE_BUGREPORT=
189
190ac_prev=
191for ac_option
192do
193  # If the previous option needs an argument, assign it.
194  if test -n "$ac_prev"; then
195    eval "$ac_prev=\$ac_option"
196    ac_prev=
197    continue
198  fi
199
200  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
201
202  # Accept the important Cygnus configure options, so we can diagnose typos.
203
204  case $ac_option in
205
206  -bindir | --bindir | --bindi | --bind | --bin | --bi)
207    ac_prev=bindir ;;
208  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209    bindir=$ac_optarg ;;
210
211  -build | --build | --buil | --bui | --bu)
212    ac_prev=build_alias ;;
213  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214    build_alias=$ac_optarg ;;
215
216  -cache-file | --cache-file | --cache-fil | --cache-fi \
217  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218    ac_prev=cache_file ;;
219  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221    cache_file=$ac_optarg ;;
222
223  --config-cache | -C)
224    cache_file=config.cache ;;
225
226  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227    ac_prev=datadir ;;
228  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229  | --da=*)
230    datadir=$ac_optarg ;;
231
232  -disable-* | --disable-*)
233    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234    # Reject names that are not valid shell variable names.
235    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237   { (exit 1); exit 1; }; }
238    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239    eval "enable_$ac_feature=no" ;;
240
241  -enable-* | --enable-*)
242    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243    # Reject names that are not valid shell variable names.
244    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246   { (exit 1); exit 1; }; }
247    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248    case $ac_option in
249      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250      *) ac_optarg=yes ;;
251    esac
252    eval "enable_$ac_feature='$ac_optarg'" ;;
253
254  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256  | --exec | --exe | --ex)
257    ac_prev=exec_prefix ;;
258  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260  | --exec=* | --exe=* | --ex=*)
261    exec_prefix=$ac_optarg ;;
262
263  -gas | --gas | --ga | --g)
264    # Obsolete; use --with-gas.
265    with_gas=yes ;;
266
267  -help | --help | --hel | --he | -h)
268    ac_init_help=long ;;
269  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270    ac_init_help=recursive ;;
271  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272    ac_init_help=short ;;
273
274  -host | --host | --hos | --ho)
275    ac_prev=host_alias ;;
276  -host=* | --host=* | --hos=* | --ho=*)
277    host_alias=$ac_optarg ;;
278
279  -includedir | --includedir | --includedi | --included | --include \
280  | --includ | --inclu | --incl | --inc)
281    ac_prev=includedir ;;
282  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283  | --includ=* | --inclu=* | --incl=* | --inc=*)
284    includedir=$ac_optarg ;;
285
286  -infodir | --infodir | --infodi | --infod | --info | --inf)
287    ac_prev=infodir ;;
288  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289    infodir=$ac_optarg ;;
290
291  -libdir | --libdir | --libdi | --libd)
292    ac_prev=libdir ;;
293  -libdir=* | --libdir=* | --libdi=* | --libd=*)
294    libdir=$ac_optarg ;;
295
296  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297  | --libexe | --libex | --libe)
298    ac_prev=libexecdir ;;
299  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300  | --libexe=* | --libex=* | --libe=*)
301    libexecdir=$ac_optarg ;;
302
303  -localstatedir | --localstatedir | --localstatedi | --localstated \
304  | --localstate | --localstat | --localsta | --localst \
305  | --locals | --local | --loca | --loc | --lo)
306    ac_prev=localstatedir ;;
307  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310    localstatedir=$ac_optarg ;;
311
312  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313    ac_prev=mandir ;;
314  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315    mandir=$ac_optarg ;;
316
317  -nfp | --nfp | --nf)
318    # Obsolete; use --without-fp.
319    with_fp=no ;;
320
321  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322  | --no-cr | --no-c)
323    no_create=yes ;;
324
325  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327    no_recursion=yes ;;
328
329  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331  | --oldin | --oldi | --old | --ol | --o)
332    ac_prev=oldincludedir ;;
333  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336    oldincludedir=$ac_optarg ;;
337
338  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339    ac_prev=prefix ;;
340  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341    prefix=$ac_optarg ;;
342
343  -program-prefix | --program-prefix | --program-prefi | --program-pref \
344  | --program-pre | --program-pr | --program-p)
345    ac_prev=program_prefix ;;
346  -program-prefix=* | --program-prefix=* | --program-prefi=* \
347  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348    program_prefix=$ac_optarg ;;
349
350  -program-suffix | --program-suffix | --program-suffi | --program-suff \
351  | --program-suf | --program-su | --program-s)
352    ac_prev=program_suffix ;;
353  -program-suffix=* | --program-suffix=* | --program-suffi=* \
354  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355    program_suffix=$ac_optarg ;;
356
357  -program-transform-name | --program-transform-name \
358  | --program-transform-nam | --program-transform-na \
359  | --program-transform-n | --program-transform- \
360  | --program-transform | --program-transfor \
361  | --program-transfo | --program-transf \
362  | --program-trans | --program-tran \
363  | --progr-tra | --program-tr | --program-t)
364    ac_prev=program_transform_name ;;
365  -program-transform-name=* | --program-transform-name=* \
366  | --program-transform-nam=* | --program-transform-na=* \
367  | --program-transform-n=* | --program-transform-=* \
368  | --program-transform=* | --program-transfor=* \
369  | --program-transfo=* | --program-transf=* \
370  | --program-trans=* | --program-tran=* \
371  | --progr-tra=* | --program-tr=* | --program-t=*)
372    program_transform_name=$ac_optarg ;;
373
374  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375  | -silent | --silent | --silen | --sile | --sil)
376    silent=yes ;;
377
378  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379    ac_prev=sbindir ;;
380  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381  | --sbi=* | --sb=*)
382    sbindir=$ac_optarg ;;
383
384  -sharedstatedir | --sharedstatedir | --sharedstatedi \
385  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386  | --sharedst | --shareds | --shared | --share | --shar \
387  | --sha | --sh)
388    ac_prev=sharedstatedir ;;
389  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392  | --sha=* | --sh=*)
393    sharedstatedir=$ac_optarg ;;
394
395  -site | --site | --sit)
396    ac_prev=site ;;
397  -site=* | --site=* | --sit=*)
398    site=$ac_optarg ;;
399
400  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401    ac_prev=srcdir ;;
402  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403    srcdir=$ac_optarg ;;
404
405  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406  | --syscon | --sysco | --sysc | --sys | --sy)
407    ac_prev=sysconfdir ;;
408  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410    sysconfdir=$ac_optarg ;;
411
412  -target | --target | --targe | --targ | --tar | --ta | --t)
413    ac_prev=target_alias ;;
414  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415    target_alias=$ac_optarg ;;
416
417  -v | -verbose | --verbose | --verbos | --verbo | --verb)
418    verbose=yes ;;
419
420  -version | --version | --versio | --versi | --vers | -V)
421    ac_init_version=: ;;
422
423  -with-* | --with-*)
424    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425    # Reject names that are not valid shell variable names.
426    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427      { echo "$as_me: error: invalid package name: $ac_package" >&2
428   { (exit 1); exit 1; }; }
429    ac_package=`echo $ac_package| sed 's/-/_/g'`
430    case $ac_option in
431      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432      *) ac_optarg=yes ;;
433    esac
434    eval "with_$ac_package='$ac_optarg'" ;;
435
436  -without-* | --without-*)
437    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438    # Reject names that are not valid shell variable names.
439    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440      { echo "$as_me: error: invalid package name: $ac_package" >&2
441   { (exit 1); exit 1; }; }
442    ac_package=`echo $ac_package | sed 's/-/_/g'`
443    eval "with_$ac_package=no" ;;
444
445  --x)
446    # Obsolete; use --with-x.
447    with_x=yes ;;
448
449  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450  | --x-incl | --x-inc | --x-in | --x-i)
451    ac_prev=x_includes ;;
452  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454    x_includes=$ac_optarg ;;
455
456  -x-libraries | --x-libraries | --x-librarie | --x-librari \
457  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458    ac_prev=x_libraries ;;
459  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461    x_libraries=$ac_optarg ;;
462
463  -*) { echo "$as_me: error: unrecognized option: $ac_option
464Try \`$0 --help' for more information." >&2
465   { (exit 1); exit 1; }; }
466    ;;
467
468  *=*)
469    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470    # Reject names that are not valid shell variable names.
471    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473   { (exit 1); exit 1; }; }
474    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475    eval "$ac_envvar='$ac_optarg'"
476    export $ac_envvar ;;
477
478  *)
479    # FIXME: should be removed in autoconf 3.0.
480    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
484    ;;
485
486  esac
487done
488
489if test -n "$ac_prev"; then
490  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491  { echo "$as_me: error: missing argument to $ac_option" >&2
492   { (exit 1); exit 1; }; }
493fi
494
495# Be sure to have absolute paths.
496for ac_var in exec_prefix prefix
497do
498  eval ac_val=$`echo $ac_var`
499  case $ac_val in
500    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502   { (exit 1); exit 1; }; };;
503  esac
504done
505
506# Be sure to have absolute paths.
507for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508              localstatedir libdir includedir oldincludedir infodir mandir
509do
510  eval ac_val=$`echo $ac_var`
511  case $ac_val in
512    [\\/$]* | ?:[\\/]* ) ;;
513    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514   { (exit 1); exit 1; }; };;
515  esac
516done
517
518# There might be people who depend on the old broken behavior: `$host'
519# used to hold the argument of --host etc.
520build=$build_alias
521host=$host_alias
522target=$target_alias
523
524# FIXME: should be removed in autoconf 3.0.
525if test "x$host_alias" != x; then
526  if test "x$build_alias" = x; then
527    cross_compiling=maybe
528    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529    If a cross compiler is detected then cross compile mode will be used." >&2
530  elif test "x$build_alias" != "x$host_alias"; then
531    cross_compiling=yes
532  fi
533fi
534
535ac_tool_prefix=
536test -n "$host_alias" && ac_tool_prefix=$host_alias-
537
538test "$silent" = yes && exec 6>/dev/null
539
540# Find the source files, if location was not specified.
541if test -z "$srcdir"; then
542  ac_srcdir_defaulted=yes
543  # Try the directory containing this script, then its parent.
544  ac_prog=$0
545  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547  srcdir=$ac_confdir
548  if test ! -r $srcdir/$ac_unique_file; then
549    srcdir=..
550  fi
551else
552  ac_srcdir_defaulted=no
553fi
554if test ! -r $srcdir/$ac_unique_file; then
555  if test "$ac_srcdir_defaulted" = yes; then
556    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557   { (exit 1); exit 1; }; }
558  else
559    { echo "$as_me: error: cannot find sources in $srcdir" >&2
560   { (exit 1); exit 1; }; }
561  fi
562fi
563srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564ac_env_build_alias_set=${build_alias+set}
565ac_env_build_alias_value=$build_alias
566ac_cv_env_build_alias_set=${build_alias+set}
567ac_cv_env_build_alias_value=$build_alias
568ac_env_host_alias_set=${host_alias+set}
569ac_env_host_alias_value=$host_alias
570ac_cv_env_host_alias_set=${host_alias+set}
571ac_cv_env_host_alias_value=$host_alias
572ac_env_target_alias_set=${target_alias+set}
573ac_env_target_alias_value=$target_alias
574ac_cv_env_target_alias_set=${target_alias+set}
575ac_cv_env_target_alias_value=$target_alias
576ac_env_CC_set=${CC+set}
577ac_env_CC_value=$CC
578ac_cv_env_CC_set=${CC+set}
579ac_cv_env_CC_value=$CC
580ac_env_CFLAGS_set=${CFLAGS+set}
581ac_env_CFLAGS_value=$CFLAGS
582ac_cv_env_CFLAGS_set=${CFLAGS+set}
583ac_cv_env_CFLAGS_value=$CFLAGS
584ac_env_LDFLAGS_set=${LDFLAGS+set}
585ac_env_LDFLAGS_value=$LDFLAGS
586ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587ac_cv_env_LDFLAGS_value=$LDFLAGS
588ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589ac_env_CPPFLAGS_value=$CPPFLAGS
590ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592ac_env_CPP_set=${CPP+set}
593ac_env_CPP_value=$CPP
594ac_cv_env_CPP_set=${CPP+set}
595ac_cv_env_CPP_value=$CPP
596
597#
598# Report the --help message.
599#
600if test "$ac_init_help" = "long"; then
601  # Omit some internal or obsolete options to make the list less imposing.
602  # This message is too long to be a string in the A/UX 3.1 sh.
603  cat <<EOF
604\`configure' configures this package to adapt to many kinds of systems.
605
606Usage: $0 [OPTION]... [VAR=VALUE]...
607
608To assign environment variables (e.g., CC, CFLAGS...), specify them as
609VAR=VALUE.  See below for descriptions of some of the useful variables.
610
611Defaults for the options are specified in brackets.
612
613Configuration:
614  -h, --help              display this help and exit
615      --help=short        display options specific to this package
616      --help=recursive    display the short help of all the included packages
617  -V, --version           display version information and exit
618  -q, --quiet, --silent   do not print \`checking...' messages
619      --cache-file=FILE   cache test results in FILE [disabled]
620  -C, --config-cache      alias for \`--cache-file=config.cache'
621  -n, --no-create         do not create output files
622      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
623
624EOF
625
626  cat <<EOF
627Installation directories:
628  --prefix=PREFIX         install architecture-independent files in PREFIX
629                          [$ac_default_prefix]
630  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
631                          [PREFIX]
632
633By default, \`make install' will install all the files in
634\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
635an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636for instance \`--prefix=\$HOME'.
637
638For better control, use the options below.
639
640Fine tuning of the installation directories:
641  --bindir=DIR           user executables [EPREFIX/bin]
642  --sbindir=DIR          system admin executables [EPREFIX/sbin]
643  --libexecdir=DIR       program executables [EPREFIX/libexec]
644  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
645  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
646  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
647  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
648  --libdir=DIR           object code libraries [EPREFIX/lib]
649  --includedir=DIR       C header files [PREFIX/include]
650  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
651  --infodir=DIR          info documentation [PREFIX/info]
652  --mandir=DIR           man documentation [PREFIX/man]
653EOF
654
655  cat <<\EOF
656EOF
657fi
658
659if test -n "$ac_init_help"; then
660
661  cat <<\EOF
662
663Optional Packages:
664  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
665  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
666  --with-daemon-name Set a different daemon name, instead of syslogd
667
668  --without-maximum-optimization
669	Activate maximum possible compile and link optimization
670
671  --without-bsd
672	Use bsd input module. Automatically detected.
673
674  --without-linux
675	Use linux kernel input module. Automatically detected.
676
677  --without-udp
678	Use udp socket input module. Activated by default.
679
680  --without-unix
681	Use unix socket domain input module. Activated by default.
682
683  --without-file
684	Use file/pip input module. Activated by default.
685
686  --without-streams
687	Use streams input module. Activated by default.
688
689  --without-classic
690	Use classic output module. Activated by default.
691
692  --without-tcp
693	Use tcp input and output modules. Activated by default.
694
695  --without-mysql
696	Use mysql MySQL output module. Activated by default.
697
698  --without-pgsql
699	Use pgsql PostgreSQL output module. Activated by default.
700
701  --without-peo
702	Use peo log integrity verification module. Activated by default.
703
704  --without-regex
705	Use regex pattern matching output module. Activated by default.
706
707Some influential environment variables:
708  CC          C compiler command
709  CFLAGS      C compiler flags
710  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
711              nonstandard directory <lib dir>
712  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
713              headers in a nonstandard directory <include dir>
714  CPP         C preprocessor
715
716Use these variables to override the choices made by `configure' or to help
717it to find libraries and programs with nonstandard names/locations.
718
719EOF
720fi
721
722if test "$ac_init_help" = "recursive"; then
723  # If there are subdirs, report their specific --help.
724  ac_popdir=`pwd`
725  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
726    cd $ac_subdir
727    # A "../" for each directory in /$ac_subdir.
728    ac_dots=`echo $ac_subdir |
729             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
730
731    case $srcdir in
732    .) # No --srcdir option.  We are building in place.
733      ac_sub_srcdir=$srcdir ;;
734    [\\/]* | ?:[\\/]* ) # Absolute path.
735      ac_sub_srcdir=$srcdir/$ac_subdir ;;
736    *) # Relative path.
737      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
738    esac
739
740    # Check for guested configure; otherwise get Cygnus style configure.
741    if test -f $ac_sub_srcdir/configure.gnu; then
742      echo
743      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
744    elif test -f $ac_sub_srcdir/configure; then
745      echo
746      $SHELL $ac_sub_srcdir/configure  --help=recursive
747    elif test -f $ac_sub_srcdir/configure.ac ||
748           test -f $ac_sub_srcdir/configure.in; then
749      echo
750      $ac_configure --help
751    else
752      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
753    fi
754    cd $ac_popdir
755  done
756fi
757
758test -n "$ac_init_help" && exit 0
759if $ac_init_version; then
760  cat <<\EOF
761
762Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
763Free Software Foundation, Inc.
764This configure script is free software; the Free Software Foundation
765gives unlimited permission to copy, distribute and modify it.
766EOF
767  exit 0
768fi
769exec 5>config.log
770cat >&5 <<EOF
771This file contains any messages produced by compilers while
772running configure, to aid debugging if configure makes a mistake.
773
774It was created by $as_me, which was
775generated by GNU Autoconf 2.52.  Invocation command line was
776
777  $ $0 $@
778
779EOF
780{
781cat <<_ASUNAME
782## ---------- ##
783## Platform.  ##
784## ---------- ##
785
786hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
787uname -m = `(uname -m) 2>/dev/null || echo unknown`
788uname -r = `(uname -r) 2>/dev/null || echo unknown`
789uname -s = `(uname -s) 2>/dev/null || echo unknown`
790uname -v = `(uname -v) 2>/dev/null || echo unknown`
791
792/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
793/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
794
795/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
796/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
797/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
798hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
799/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
800/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
801/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
802
803PATH = $PATH
804
805_ASUNAME
806} >&5
807
808cat >&5 <<EOF
809## ------------ ##
810## Core tests.  ##
811## ------------ ##
812
813EOF
814
815# Keep a trace of the command line.
816# Strip out --no-create and --no-recursion so they do not pile up.
817# Also quote any args containing shell meta-characters.
818ac_configure_args=
819ac_sep=
820for ac_arg
821do
822  case $ac_arg in
823  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
824  | --no-cr | --no-c) ;;
825  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
826  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
827  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
828    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
829    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
830    ac_sep=" " ;;
831  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
832     ac_sep=" " ;;
833  esac
834  # Get rid of the leading space.
835done
836
837# When interrupted or exit'd, cleanup temporary files, and complete
838# config.log.  We remove comments because anyway the quotes in there
839# would cause problems or look ugly.
840trap 'exit_status=$?
841  # Save into config.log some information that might help in debugging.
842  echo >&5
843  echo "## ----------------- ##" >&5
844  echo "## Cache variables.  ##" >&5
845  echo "## ----------------- ##" >&5
846  echo >&5
847  # The following way of writing the cache mishandles newlines in values,
848{
849  (set) 2>&1 |
850    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
851    *ac_space=\ *)
852      sed -n \
853        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
854    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
855      ;;
856    *)
857      sed -n \
858        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
859      ;;
860    esac;
861} >&5
862  sed "/^$/d" confdefs.h >conftest.log
863  if test -s conftest.log; then
864    echo >&5
865    echo "## ------------ ##" >&5
866    echo "## confdefs.h.  ##" >&5
867    echo "## ------------ ##" >&5
868    echo >&5
869    cat conftest.log >&5
870  fi
871  (echo; echo) >&5
872  test "$ac_signal" != 0 &&
873    echo "$as_me: caught signal $ac_signal" >&5
874  echo "$as_me: exit $exit_status" >&5
875  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
876    exit $exit_status
877     ' 0
878for ac_signal in 1 2 13 15; do
879  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
880done
881ac_signal=0
882
883# confdefs.h avoids OS command line length limits that DEFS can exceed.
884rm -rf conftest* confdefs.h
885# AIX cpp loses on an empty file, so make sure it contains at least a newline.
886echo >confdefs.h
887
888# Let the site file select an alternate cache file if it wants to.
889# Prefer explicitly selected file to automatically selected ones.
890if test -z "$CONFIG_SITE"; then
891  if test "x$prefix" != xNONE; then
892    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
893  else
894    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
895  fi
896fi
897for ac_site_file in $CONFIG_SITE; do
898  if test -r "$ac_site_file"; then
899    { echo "$as_me:899: loading site script $ac_site_file" >&5
900echo "$as_me: loading site script $ac_site_file" >&6;}
901    cat "$ac_site_file" >&5
902    . "$ac_site_file"
903  fi
904done
905
906if test -r "$cache_file"; then
907  # Some versions of bash will fail to source /dev/null (special
908  # files actually), so we avoid doing that.
909  if test -f "$cache_file"; then
910    { echo "$as_me:910: loading cache $cache_file" >&5
911echo "$as_me: loading cache $cache_file" >&6;}
912    case $cache_file in
913      [\\/]* | ?:[\\/]* ) . $cache_file;;
914      *)                      . ./$cache_file;;
915    esac
916  fi
917else
918  { echo "$as_me:918: creating cache $cache_file" >&5
919echo "$as_me: creating cache $cache_file" >&6;}
920  >$cache_file
921fi
922
923# Check that the precious variables saved in the cache have kept the same
924# value.
925ac_cache_corrupted=false
926for ac_var in `(set) 2>&1 |
927               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
928  eval ac_old_set=\$ac_cv_env_${ac_var}_set
929  eval ac_new_set=\$ac_env_${ac_var}_set
930  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
931  eval ac_new_val="\$ac_env_${ac_var}_value"
932  case $ac_old_set,$ac_new_set in
933    set,)
934      { echo "$as_me:934: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
935echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
936      ac_cache_corrupted=: ;;
937    ,set)
938      { echo "$as_me:938: error: \`$ac_var' was not set in the previous run" >&5
939echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
940      ac_cache_corrupted=: ;;
941    ,);;
942    *)
943      if test "x$ac_old_val" != "x$ac_new_val"; then
944        { echo "$as_me:944: error: \`$ac_var' has changed since the previous run:" >&5
945echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
946        { echo "$as_me:946:   former value:  $ac_old_val" >&5
947echo "$as_me:   former value:  $ac_old_val" >&2;}
948        { echo "$as_me:948:   current value: $ac_new_val" >&5
949echo "$as_me:   current value: $ac_new_val" >&2;}
950        ac_cache_corrupted=:
951      fi;;
952  esac
953  # Pass precious variables to config.status.  It doesn't matter if
954  # we pass some twice (in addition to the command line arguments).
955  if test "$ac_new_set" = set; then
956    case $ac_new_val in
957    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
958      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
959      ac_configure_args="$ac_configure_args '$ac_arg'"
960      ;;
961    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
962       ;;
963    esac
964  fi
965done
966if $ac_cache_corrupted; then
967  { echo "$as_me:967: error: changes in the environment can compromise the build" >&5
968echo "$as_me: error: changes in the environment can compromise the build" >&2;}
969  { { echo "$as_me:969: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
970echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
971   { (exit 1); exit 1; }; }
972fi
973
974ac_ext=c
975ac_cpp='$CPP $CPPFLAGS'
976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
978ac_compiler_gnu=$ac_cv_c_compiler_gnu
979
980case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
981  *c*,-n*) ECHO_N= ECHO_C='
982' ECHO_T='	' ;;
983  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
984  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
985esac
986echo "#! $SHELL" >conftest.sh
987echo  "exit 0"   >>conftest.sh
988chmod +x conftest.sh
989if { (echo "$as_me:989: PATH=\".;.\"; conftest.sh") >&5
990  (PATH=".;."; conftest.sh) 2>&5
991  ac_status=$?
992  echo "$as_me:992: \$? = $ac_status" >&5
993  (exit $ac_status); }; then
994  ac_path_separator=';'
995else
996  ac_path_separator=:
997fi
998PATH_SEPARATOR="$ac_path_separator"
999rm -f conftest.sh
1000
1001ac_config_headers="$ac_config_headers src/config.h"
1002
1003ac_ext=c
1004ac_cpp='$CPP $CPPFLAGS'
1005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1007ac_compiler_gnu=$ac_cv_c_compiler_gnu
1008if test -n "$ac_tool_prefix"; then
1009  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1010set dummy ${ac_tool_prefix}gcc; ac_word=$2
1011echo "$as_me:1011: checking for $ac_word" >&5
1012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1013if test "${ac_cv_prog_CC+set}" = set; then
1014  echo $ECHO_N "(cached) $ECHO_C" >&6
1015else
1016  if test -n "$CC"; then
1017  ac_cv_prog_CC="$CC" # Let the user override the test.
1018else
1019  ac_save_IFS=$IFS; IFS=$ac_path_separator
1020ac_dummy="$PATH"
1021for ac_dir in $ac_dummy; do
1022  IFS=$ac_save_IFS
1023  test -z "$ac_dir" && ac_dir=.
1024  $as_executable_p "$ac_dir/$ac_word" || continue
1025ac_cv_prog_CC="${ac_tool_prefix}gcc"
1026echo "$as_me:1026: found $ac_dir/$ac_word" >&5
1027break
1028done
1029
1030fi
1031fi
1032CC=$ac_cv_prog_CC
1033if test -n "$CC"; then
1034  echo "$as_me:1034: result: $CC" >&5
1035echo "${ECHO_T}$CC" >&6
1036else
1037  echo "$as_me:1037: result: no" >&5
1038echo "${ECHO_T}no" >&6
1039fi
1040
1041fi
1042if test -z "$ac_cv_prog_CC"; then
1043  ac_ct_CC=$CC
1044  # Extract the first word of "gcc", so it can be a program name with args.
1045set dummy gcc; ac_word=$2
1046echo "$as_me:1046: checking for $ac_word" >&5
1047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1048if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1049  echo $ECHO_N "(cached) $ECHO_C" >&6
1050else
1051  if test -n "$ac_ct_CC"; then
1052  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1053else
1054  ac_save_IFS=$IFS; IFS=$ac_path_separator
1055ac_dummy="$PATH"
1056for ac_dir in $ac_dummy; do
1057  IFS=$ac_save_IFS
1058  test -z "$ac_dir" && ac_dir=.
1059  $as_executable_p "$ac_dir/$ac_word" || continue
1060ac_cv_prog_ac_ct_CC="gcc"
1061echo "$as_me:1061: found $ac_dir/$ac_word" >&5
1062break
1063done
1064
1065fi
1066fi
1067ac_ct_CC=$ac_cv_prog_ac_ct_CC
1068if test -n "$ac_ct_CC"; then
1069  echo "$as_me:1069: result: $ac_ct_CC" >&5
1070echo "${ECHO_T}$ac_ct_CC" >&6
1071else
1072  echo "$as_me:1072: result: no" >&5
1073echo "${ECHO_T}no" >&6
1074fi
1075
1076  CC=$ac_ct_CC
1077else
1078  CC="$ac_cv_prog_CC"
1079fi
1080
1081if test -z "$CC"; then
1082  if test -n "$ac_tool_prefix"; then
1083  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1084set dummy ${ac_tool_prefix}cc; ac_word=$2
1085echo "$as_me:1085: checking for $ac_word" >&5
1086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1087if test "${ac_cv_prog_CC+set}" = set; then
1088  echo $ECHO_N "(cached) $ECHO_C" >&6
1089else
1090  if test -n "$CC"; then
1091  ac_cv_prog_CC="$CC" # Let the user override the test.
1092else
1093  ac_save_IFS=$IFS; IFS=$ac_path_separator
1094ac_dummy="$PATH"
1095for ac_dir in $ac_dummy; do
1096  IFS=$ac_save_IFS
1097  test -z "$ac_dir" && ac_dir=.
1098  $as_executable_p "$ac_dir/$ac_word" || continue
1099ac_cv_prog_CC="${ac_tool_prefix}cc"
1100echo "$as_me:1100: found $ac_dir/$ac_word" >&5
1101break
1102done
1103
1104fi
1105fi
1106CC=$ac_cv_prog_CC
1107if test -n "$CC"; then
1108  echo "$as_me:1108: result: $CC" >&5
1109echo "${ECHO_T}$CC" >&6
1110else
1111  echo "$as_me:1111: result: no" >&5
1112echo "${ECHO_T}no" >&6
1113fi
1114
1115fi
1116if test -z "$ac_cv_prog_CC"; then
1117  ac_ct_CC=$CC
1118  # Extract the first word of "cc", so it can be a program name with args.
1119set dummy cc; ac_word=$2
1120echo "$as_me:1120: checking for $ac_word" >&5
1121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1122if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1123  echo $ECHO_N "(cached) $ECHO_C" >&6
1124else
1125  if test -n "$ac_ct_CC"; then
1126  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1127else
1128  ac_save_IFS=$IFS; IFS=$ac_path_separator
1129ac_dummy="$PATH"
1130for ac_dir in $ac_dummy; do
1131  IFS=$ac_save_IFS
1132  test -z "$ac_dir" && ac_dir=.
1133  $as_executable_p "$ac_dir/$ac_word" || continue
1134ac_cv_prog_ac_ct_CC="cc"
1135echo "$as_me:1135: found $ac_dir/$ac_word" >&5
1136break
1137done
1138
1139fi
1140fi
1141ac_ct_CC=$ac_cv_prog_ac_ct_CC
1142if test -n "$ac_ct_CC"; then
1143  echo "$as_me:1143: result: $ac_ct_CC" >&5
1144echo "${ECHO_T}$ac_ct_CC" >&6
1145else
1146  echo "$as_me:1146: result: no" >&5
1147echo "${ECHO_T}no" >&6
1148fi
1149
1150  CC=$ac_ct_CC
1151else
1152  CC="$ac_cv_prog_CC"
1153fi
1154
1155fi
1156if test -z "$CC"; then
1157  # Extract the first word of "cc", so it can be a program name with args.
1158set dummy cc; ac_word=$2
1159echo "$as_me:1159: checking for $ac_word" >&5
1160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1161if test "${ac_cv_prog_CC+set}" = set; then
1162  echo $ECHO_N "(cached) $ECHO_C" >&6
1163else
1164  if test -n "$CC"; then
1165  ac_cv_prog_CC="$CC" # Let the user override the test.
1166else
1167  ac_prog_rejected=no
1168  ac_save_IFS=$IFS; IFS=$ac_path_separator
1169ac_dummy="$PATH"
1170for ac_dir in $ac_dummy; do
1171  IFS=$ac_save_IFS
1172  test -z "$ac_dir" && ac_dir=.
1173  $as_executable_p "$ac_dir/$ac_word" || continue
1174if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1175  ac_prog_rejected=yes
1176  continue
1177fi
1178ac_cv_prog_CC="cc"
1179echo "$as_me:1179: found $ac_dir/$ac_word" >&5
1180break
1181done
1182
1183if test $ac_prog_rejected = yes; then
1184  # We found a bogon in the path, so make sure we never use it.
1185  set dummy $ac_cv_prog_CC
1186  shift
1187  if test $# != 0; then
1188    # We chose a different compiler from the bogus one.
1189    # However, it has the same basename, so the bogon will be chosen
1190    # first if we set CC to just the basename; use the full file name.
1191    shift
1192    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1193    shift
1194    ac_cv_prog_CC="$@"
1195  fi
1196fi
1197fi
1198fi
1199CC=$ac_cv_prog_CC
1200if test -n "$CC"; then
1201  echo "$as_me:1201: result: $CC" >&5
1202echo "${ECHO_T}$CC" >&6
1203else
1204  echo "$as_me:1204: result: no" >&5
1205echo "${ECHO_T}no" >&6
1206fi
1207
1208fi
1209if test -z "$CC"; then
1210  if test -n "$ac_tool_prefix"; then
1211  for ac_prog in cl
1212  do
1213    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1214set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1215echo "$as_me:1215: checking for $ac_word" >&5
1216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1217if test "${ac_cv_prog_CC+set}" = set; then
1218  echo $ECHO_N "(cached) $ECHO_C" >&6
1219else
1220  if test -n "$CC"; then
1221  ac_cv_prog_CC="$CC" # Let the user override the test.
1222else
1223  ac_save_IFS=$IFS; IFS=$ac_path_separator
1224ac_dummy="$PATH"
1225for ac_dir in $ac_dummy; do
1226  IFS=$ac_save_IFS
1227  test -z "$ac_dir" && ac_dir=.
1228  $as_executable_p "$ac_dir/$ac_word" || continue
1229ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1230echo "$as_me:1230: found $ac_dir/$ac_word" >&5
1231break
1232done
1233
1234fi
1235fi
1236CC=$ac_cv_prog_CC
1237if test -n "$CC"; then
1238  echo "$as_me:1238: result: $CC" >&5
1239echo "${ECHO_T}$CC" >&6
1240else
1241  echo "$as_me:1241: result: no" >&5
1242echo "${ECHO_T}no" >&6
1243fi
1244
1245    test -n "$CC" && break
1246  done
1247fi
1248if test -z "$CC"; then
1249  ac_ct_CC=$CC
1250  for ac_prog in cl
1251do
1252  # Extract the first word of "$ac_prog", so it can be a program name with args.
1253set dummy $ac_prog; ac_word=$2
1254echo "$as_me:1254: checking for $ac_word" >&5
1255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1256if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1257  echo $ECHO_N "(cached) $ECHO_C" >&6
1258else
1259  if test -n "$ac_ct_CC"; then
1260  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1261else
1262  ac_save_IFS=$IFS; IFS=$ac_path_separator
1263ac_dummy="$PATH"
1264for ac_dir in $ac_dummy; do
1265  IFS=$ac_save_IFS
1266  test -z "$ac_dir" && ac_dir=.
1267  $as_executable_p "$ac_dir/$ac_word" || continue
1268ac_cv_prog_ac_ct_CC="$ac_prog"
1269echo "$as_me:1269: found $ac_dir/$ac_word" >&5
1270break
1271done
1272
1273fi
1274fi
1275ac_ct_CC=$ac_cv_prog_ac_ct_CC
1276if test -n "$ac_ct_CC"; then
1277  echo "$as_me:1277: result: $ac_ct_CC" >&5
1278echo "${ECHO_T}$ac_ct_CC" >&6
1279else
1280  echo "$as_me:1280: result: no" >&5
1281echo "${ECHO_T}no" >&6
1282fi
1283
1284  test -n "$ac_ct_CC" && break
1285done
1286
1287  CC=$ac_ct_CC
1288fi
1289
1290fi
1291
1292test -z "$CC" && { { echo "$as_me:1292: error: no acceptable cc found in \$PATH" >&5
1293echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1294   { (exit 1); exit 1; }; }
1295
1296# Provide some information about the compiler.
1297echo "$as_me:1297:" \
1298     "checking for C compiler version" >&5
1299ac_compiler=`set X $ac_compile; echo $2`
1300{ (eval echo "$as_me:1300: \"$ac_compiler --version </dev/null >&5\"") >&5
1301  (eval $ac_compiler --version </dev/null >&5) 2>&5
1302  ac_status=$?
1303  echo "$as_me:1303: \$? = $ac_status" >&5
1304  (exit $ac_status); }
1305{ (eval echo "$as_me:1305: \"$ac_compiler -v </dev/null >&5\"") >&5
1306  (eval $ac_compiler -v </dev/null >&5) 2>&5
1307  ac_status=$?
1308  echo "$as_me:1308: \$? = $ac_status" >&5
1309  (exit $ac_status); }
1310{ (eval echo "$as_me:1310: \"$ac_compiler -V </dev/null >&5\"") >&5
1311  (eval $ac_compiler -V </dev/null >&5) 2>&5
1312  ac_status=$?
1313  echo "$as_me:1313: \$? = $ac_status" >&5
1314  (exit $ac_status); }
1315
1316cat >conftest.$ac_ext <<_ACEOF
1317#line 1317 "configure"
1318#include "confdefs.h"
1319
1320int
1321main ()
1322{
1323
1324  ;
1325  return 0;
1326}
1327_ACEOF
1328ac_clean_files_save=$ac_clean_files
1329ac_clean_files="$ac_clean_files a.out a.exe"
1330# Try to create an executable without -o first, disregard a.out.
1331# It will help us diagnose broken compilers, and finding out an intuition
1332# of exeext.
1333echo "$as_me:1333: checking for C compiler default output" >&5
1334echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1335ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1336if { (eval echo "$as_me:1336: \"$ac_link_default\"") >&5
1337  (eval $ac_link_default) 2>&5
1338  ac_status=$?
1339  echo "$as_me:1339: \$? = $ac_status" >&5
1340  (exit $ac_status); }; then
1341  # Find the output, starting from the most likely.  This scheme is
1342# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1343# resort.
1344for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1345                ls a.out conftest 2>/dev/null;
1346                ls a.* conftest.* 2>/dev/null`; do
1347  case $ac_file in
1348    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1349    a.out ) # We found the default executable, but exeext='' is most
1350            # certainly right.
1351            break;;
1352    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1353          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1354          export ac_cv_exeext
1355          break;;
1356    * ) break;;
1357  esac
1358done
1359else
1360  echo "$as_me: failed program was:" >&5
1361cat conftest.$ac_ext >&5
1362{ { echo "$as_me:1362: error: C compiler cannot create executables" >&5
1363echo "$as_me: error: C compiler cannot create executables" >&2;}
1364   { (exit 77); exit 77; }; }
1365fi
1366
1367ac_exeext=$ac_cv_exeext
1368echo "$as_me:1368: result: $ac_file" >&5
1369echo "${ECHO_T}$ac_file" >&6
1370
1371# Check the compiler produces executables we can run.  If not, either
1372# the compiler is broken, or we cross compile.
1373echo "$as_me:1373: checking whether the C compiler works" >&5
1374echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1375# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1376# If not cross compiling, check that we can run a simple program.
1377if test "$cross_compiling" != yes; then
1378  if { ac_try='./$ac_file'
1379  { (eval echo "$as_me:1379: \"$ac_try\"") >&5
1380  (eval $ac_try) 2>&5
1381  ac_status=$?
1382  echo "$as_me:1382: \$? = $ac_status" >&5
1383  (exit $ac_status); }; }; then
1384    cross_compiling=no
1385  else
1386    if test "$cross_compiling" = maybe; then
1387	cross_compiling=yes
1388    else
1389	{ { echo "$as_me:1389: error: cannot run C compiled programs.
1390If you meant to cross compile, use \`--host'." >&5
1391echo "$as_me: error: cannot run C compiled programs.
1392If you meant to cross compile, use \`--host'." >&2;}
1393   { (exit 1); exit 1; }; }
1394    fi
1395  fi
1396fi
1397echo "$as_me:1397: result: yes" >&5
1398echo "${ECHO_T}yes" >&6
1399
1400rm -f a.out a.exe conftest$ac_cv_exeext
1401ac_clean_files=$ac_clean_files_save
1402# Check the compiler produces executables we can run.  If not, either
1403# the compiler is broken, or we cross compile.
1404echo "$as_me:1404: checking whether we are cross compiling" >&5
1405echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1406echo "$as_me:1406: result: $cross_compiling" >&5
1407echo "${ECHO_T}$cross_compiling" >&6
1408
1409echo "$as_me:1409: checking for executable suffix" >&5
1410echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1411if { (eval echo "$as_me:1411: \"$ac_link\"") >&5
1412  (eval $ac_link) 2>&5
1413  ac_status=$?
1414  echo "$as_me:1414: \$? = $ac_status" >&5
1415  (exit $ac_status); }; then
1416  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1417# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1418# work properly (i.e., refer to `conftest.exe'), while it won't with
1419# `rm'.
1420for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1421  case $ac_file in
1422    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1423    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1424          export ac_cv_exeext
1425          break;;
1426    * ) break;;
1427  esac
1428done
1429else
1430  { { echo "$as_me:1430: error: cannot compute EXEEXT: cannot compile and link" >&5
1431echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1432   { (exit 1); exit 1; }; }
1433fi
1434
1435rm -f conftest$ac_cv_exeext
1436echo "$as_me:1436: result: $ac_cv_exeext" >&5
1437echo "${ECHO_T}$ac_cv_exeext" >&6
1438
1439rm -f conftest.$ac_ext
1440EXEEXT=$ac_cv_exeext
1441ac_exeext=$EXEEXT
1442echo "$as_me:1442: checking for object suffix" >&5
1443echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1444if test "${ac_cv_objext+set}" = set; then
1445  echo $ECHO_N "(cached) $ECHO_C" >&6
1446else
1447  cat >conftest.$ac_ext <<_ACEOF
1448#line 1448 "configure"
1449#include "confdefs.h"
1450
1451int
1452main ()
1453{
1454
1455  ;
1456  return 0;
1457}
1458_ACEOF
1459rm -f conftest.o conftest.obj
1460if { (eval echo "$as_me:1460: \"$ac_compile\"") >&5
1461  (eval $ac_compile) 2>&5
1462  ac_status=$?
1463  echo "$as_me:1463: \$? = $ac_status" >&5
1464  (exit $ac_status); }; then
1465  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1466  case $ac_file in
1467    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1468    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1469       break;;
1470  esac
1471done
1472else
1473  echo "$as_me: failed program was:" >&5
1474cat conftest.$ac_ext >&5
1475{ { echo "$as_me:1475: error: cannot compute OBJEXT: cannot compile" >&5
1476echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1477   { (exit 1); exit 1; }; }
1478fi
1479
1480rm -f conftest.$ac_cv_objext conftest.$ac_ext
1481fi
1482echo "$as_me:1482: result: $ac_cv_objext" >&5
1483echo "${ECHO_T}$ac_cv_objext" >&6
1484OBJEXT=$ac_cv_objext
1485ac_objext=$OBJEXT
1486echo "$as_me:1486: checking whether we are using the GNU C compiler" >&5
1487echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1488if test "${ac_cv_c_compiler_gnu+set}" = set; then
1489  echo $ECHO_N "(cached) $ECHO_C" >&6
1490else
1491  cat >conftest.$ac_ext <<_ACEOF
1492#line 1492 "configure"
1493#include "confdefs.h"
1494
1495int
1496main ()
1497{
1498#ifndef __GNUC__
1499       choke me
1500#endif
1501
1502  ;
1503  return 0;
1504}
1505_ACEOF
1506rm -f conftest.$ac_objext
1507if { (eval echo "$as_me:1507: \"$ac_compile\"") >&5
1508  (eval $ac_compile) 2>&5
1509  ac_status=$?
1510  echo "$as_me:1510: \$? = $ac_status" >&5
1511  (exit $ac_status); } &&
1512         { ac_try='test -s conftest.$ac_objext'
1513  { (eval echo "$as_me:1513: \"$ac_try\"") >&5
1514  (eval $ac_try) 2>&5
1515  ac_status=$?
1516  echo "$as_me:1516: \$? = $ac_status" >&5
1517  (exit $ac_status); }; }; then
1518  ac_compiler_gnu=yes
1519else
1520  echo "$as_me: failed program was:" >&5
1521cat conftest.$ac_ext >&5
1522ac_compiler_gnu=no
1523fi
1524rm -f conftest.$ac_objext conftest.$ac_ext
1525ac_cv_c_compiler_gnu=$ac_compiler_gnu
1526
1527fi
1528echo "$as_me:1528: result: $ac_cv_c_compiler_gnu" >&5
1529echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1530GCC=`test $ac_compiler_gnu = yes && echo yes`
1531ac_test_CFLAGS=${CFLAGS+set}
1532ac_save_CFLAGS=$CFLAGS
1533CFLAGS="-g"
1534echo "$as_me:1534: checking whether $CC accepts -g" >&5
1535echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1536if test "${ac_cv_prog_cc_g+set}" = set; then
1537  echo $ECHO_N "(cached) $ECHO_C" >&6
1538else
1539  cat >conftest.$ac_ext <<_ACEOF
1540#line 1540 "configure"
1541#include "confdefs.h"
1542
1543int
1544main ()
1545{
1546
1547  ;
1548  return 0;
1549}
1550_ACEOF
1551rm -f conftest.$ac_objext
1552if { (eval echo "$as_me:1552: \"$ac_compile\"") >&5
1553  (eval $ac_compile) 2>&5
1554  ac_status=$?
1555  echo "$as_me:1555: \$? = $ac_status" >&5
1556  (exit $ac_status); } &&
1557         { ac_try='test -s conftest.$ac_objext'
1558  { (eval echo "$as_me:1558: \"$ac_try\"") >&5
1559  (eval $ac_try) 2>&5
1560  ac_status=$?
1561  echo "$as_me:1561: \$? = $ac_status" >&5
1562  (exit $ac_status); }; }; then
1563  ac_cv_prog_cc_g=yes
1564else
1565  echo "$as_me: failed program was:" >&5
1566cat conftest.$ac_ext >&5
1567ac_cv_prog_cc_g=no
1568fi
1569rm -f conftest.$ac_objext conftest.$ac_ext
1570fi
1571echo "$as_me:1571: result: $ac_cv_prog_cc_g" >&5
1572echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1573if test "$ac_test_CFLAGS" = set; then
1574  CFLAGS=$ac_save_CFLAGS
1575elif test $ac_cv_prog_cc_g = yes; then
1576  if test "$GCC" = yes; then
1577    CFLAGS="-g -O2"
1578  else
1579    CFLAGS="-g"
1580  fi
1581else
1582  if test "$GCC" = yes; then
1583    CFLAGS="-O2"
1584  else
1585    CFLAGS=
1586  fi
1587fi
1588# Some people use a C++ compiler to compile C.  Since we use `exit',
1589# in C++ we need to declare it.  In case someone uses the same compiler
1590# for both compiling C and C++ we need to have the C++ compiler decide
1591# the declaration of exit, since it's the most demanding environment.
1592cat >conftest.$ac_ext <<_ACEOF
1593#ifndef __cplusplus
1594  choke me
1595#endif
1596_ACEOF
1597rm -f conftest.$ac_objext
1598if { (eval echo "$as_me:1598: \"$ac_compile\"") >&5
1599  (eval $ac_compile) 2>&5
1600  ac_status=$?
1601  echo "$as_me:1601: \$? = $ac_status" >&5
1602  (exit $ac_status); } &&
1603         { ac_try='test -s conftest.$ac_objext'
1604  { (eval echo "$as_me:1604: \"$ac_try\"") >&5
1605  (eval $ac_try) 2>&5
1606  ac_status=$?
1607  echo "$as_me:1607: \$? = $ac_status" >&5
1608  (exit $ac_status); }; }; then
1609  for ac_declaration in \
1610   ''\
1611   '#include <stdlib.h>' \
1612   'extern "C" void std::exit (int) throw (); using std::exit;' \
1613   'extern "C" void std::exit (int); using std::exit;' \
1614   'extern "C" void exit (int) throw ();' \
1615   'extern "C" void exit (int);' \
1616   'void exit (int);'
1617do
1618  cat >conftest.$ac_ext <<_ACEOF
1619#line 1619 "configure"
1620#include "confdefs.h"
1621#include <stdlib.h>
1622$ac_declaration
1623int
1624main ()
1625{
1626exit (42);
1627  ;
1628  return 0;
1629}
1630_ACEOF
1631rm -f conftest.$ac_objext
1632if { (eval echo "$as_me:1632: \"$ac_compile\"") >&5
1633  (eval $ac_compile) 2>&5
1634  ac_status=$?
1635  echo "$as_me:1635: \$? = $ac_status" >&5
1636  (exit $ac_status); } &&
1637         { ac_try='test -s conftest.$ac_objext'
1638  { (eval echo "$as_me:1638: \"$ac_try\"") >&5
1639  (eval $ac_try) 2>&5
1640  ac_status=$?
1641  echo "$as_me:1641: \$? = $ac_status" >&5
1642  (exit $ac_status); }; }; then
1643  :
1644else
1645  echo "$as_me: failed program was:" >&5
1646cat conftest.$ac_ext >&5
1647continue
1648fi
1649rm -f conftest.$ac_objext conftest.$ac_ext
1650  cat >conftest.$ac_ext <<_ACEOF
1651#line 1651 "configure"
1652#include "confdefs.h"
1653$ac_declaration
1654int
1655main ()
1656{
1657exit (42);
1658  ;
1659  return 0;
1660}
1661_ACEOF
1662rm -f conftest.$ac_objext
1663if { (eval echo "$as_me:1663: \"$ac_compile\"") >&5
1664  (eval $ac_compile) 2>&5
1665  ac_status=$?
1666  echo "$as_me:1666: \$? = $ac_status" >&5
1667  (exit $ac_status); } &&
1668         { ac_try='test -s conftest.$ac_objext'
1669  { (eval echo "$as_me:1669: \"$ac_try\"") >&5
1670  (eval $ac_try) 2>&5
1671  ac_status=$?
1672  echo "$as_me:1672: \$? = $ac_status" >&5
1673  (exit $ac_status); }; }; then
1674  break
1675else
1676  echo "$as_me: failed program was:" >&5
1677cat conftest.$ac_ext >&5
1678fi
1679rm -f conftest.$ac_objext conftest.$ac_ext
1680done
1681rm -f conftest*
1682if test -n "$ac_declaration"; then
1683  echo '#ifdef __cplusplus' >>confdefs.h
1684  echo $ac_declaration      >>confdefs.h
1685  echo '#endif'             >>confdefs.h
1686fi
1687
1688else
1689  echo "$as_me: failed program was:" >&5
1690cat conftest.$ac_ext >&5
1691fi
1692rm -f conftest.$ac_objext conftest.$ac_ext
1693ac_ext=c
1694ac_cpp='$CPP $CPPFLAGS'
1695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1697ac_compiler_gnu=$ac_cv_c_compiler_gnu
1698
1699ac_aux_dir=
1700for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1701  if test -f $ac_dir/install-sh; then
1702    ac_aux_dir=$ac_dir
1703    ac_install_sh="$ac_aux_dir/install-sh -c"
1704    break
1705  elif test -f $ac_dir/install.sh; then
1706    ac_aux_dir=$ac_dir
1707    ac_install_sh="$ac_aux_dir/install.sh -c"
1708    break
1709  elif test -f $ac_dir/shtool; then
1710    ac_aux_dir=$ac_dir
1711    ac_install_sh="$ac_aux_dir/shtool install -c"
1712    break
1713  fi
1714done
1715if test -z "$ac_aux_dir"; then
1716  { { echo "$as_me:1716: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1717echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1718   { (exit 1); exit 1; }; }
1719fi
1720ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1721ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1722ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1723
1724# Find a good install program.  We prefer a C program (faster),
1725# so one script is as good as another.  But avoid the broken or
1726# incompatible versions:
1727# SysV /etc/install, /usr/sbin/install
1728# SunOS /usr/etc/install
1729# IRIX /sbin/install
1730# AIX /bin/install
1731# AmigaOS /C/install, which installs bootblocks on floppy discs
1732# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1733# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1734# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1735# ./install, which can be erroneously created by make from ./install.sh.
1736echo "$as_me:1736: checking for a BSD compatible install" >&5
1737echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1738if test -z "$INSTALL"; then
1739if test "${ac_cv_path_install+set}" = set; then
1740  echo $ECHO_N "(cached) $ECHO_C" >&6
1741else
1742    ac_save_IFS=$IFS; IFS=$ac_path_separator
1743  for ac_dir in $PATH; do
1744    IFS=$ac_save_IFS
1745    # Account for people who put trailing slashes in PATH elements.
1746    case $ac_dir/ in
1747    / | ./ | .// | /cC/* \
1748    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1749    | /usr/ucb/* ) ;;
1750    *)
1751      # OSF1 and SCO ODT 3.0 have their own names for install.
1752      # Don't use installbsd from OSF since it installs stuff as root
1753      # by default.
1754      for ac_prog in ginstall scoinst install; do
1755        if $as_executable_p "$ac_dir/$ac_prog"; then
1756	  if test $ac_prog = install &&
1757            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1758	    # AIX install.  It has an incompatible calling convention.
1759	    :
1760	  elif test $ac_prog = install &&
1761	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1762	    # program-specific install script used by HP pwplus--don't use.
1763	    :
1764	  else
1765	    ac_cv_path_install="$ac_dir/$ac_prog -c"
1766	    break 2
1767	  fi
1768	fi
1769      done
1770      ;;
1771    esac
1772  done
1773
1774fi
1775  if test "${ac_cv_path_install+set}" = set; then
1776    INSTALL=$ac_cv_path_install
1777  else
1778    # As a last resort, use the slow shell script.  We don't cache a
1779    # path for INSTALL within a source directory, because that will
1780    # break other packages using the cache if that directory is
1781    # removed, or if the path is relative.
1782    INSTALL=$ac_install_sh
1783  fi
1784fi
1785echo "$as_me:1785: result: $INSTALL" >&5
1786echo "${ECHO_T}$INSTALL" >&6
1787
1788# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1789# It thinks the first close brace ends the variable substitution.
1790test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1791
1792test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1793
1794test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1795
1796echo "$as_me:1796: checking whether ${MAKE-make} sets \${MAKE}" >&5
1797echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1798set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1799if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1800  echo $ECHO_N "(cached) $ECHO_C" >&6
1801else
1802  cat >conftest.make <<\EOF
1803all:
1804	@echo 'ac_maketemp="${MAKE}"'
1805EOF
1806# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1807eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1808if test -n "$ac_maketemp"; then
1809  eval ac_cv_prog_make_${ac_make}_set=yes
1810else
1811  eval ac_cv_prog_make_${ac_make}_set=no
1812fi
1813rm -f conftest.make
1814fi
1815if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1816  echo "$as_me:1816: result: yes" >&5
1817echo "${ECHO_T}yes" >&6
1818  SET_MAKE=
1819else
1820  echo "$as_me:1820: result: no" >&5
1821echo "${ECHO_T}no" >&6
1822  SET_MAKE="MAKE=${MAKE-make}"
1823fi
1824
1825ac_ext=c
1826ac_cpp='$CPP $CPPFLAGS'
1827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830echo "$as_me:1830: checking how to run the C preprocessor" >&5
1831echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1832# On Suns, sometimes $CPP names a directory.
1833if test -n "$CPP" && test -d "$CPP"; then
1834  CPP=
1835fi
1836if test -z "$CPP"; then
1837  if test "${ac_cv_prog_CPP+set}" = set; then
1838  echo $ECHO_N "(cached) $ECHO_C" >&6
1839else
1840      # Double quotes because CPP needs to be expanded
1841    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1842    do
1843      ac_preproc_ok=false
1844for ac_c_preproc_warn_flag in '' yes
1845do
1846  # Use a header file that comes with gcc, so configuring glibc
1847  # with a fresh cross-compiler works.
1848  # On the NeXT, cc -E runs the code through the compiler's parser,
1849  # not just through cpp. "Syntax error" is here to catch this case.
1850  cat >conftest.$ac_ext <<_ACEOF
1851#line 1851 "configure"
1852#include "confdefs.h"
1853#include <assert.h>
1854                     Syntax error
1855_ACEOF
1856if { (eval echo "$as_me:1856: \"$ac_cpp conftest.$ac_ext\"") >&5
1857  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1858  ac_status=$?
1859  egrep -v '^ *\+' conftest.er1 >conftest.err
1860  rm -f conftest.er1
1861  cat conftest.err >&5
1862  echo "$as_me:1862: \$? = $ac_status" >&5
1863  (exit $ac_status); } >/dev/null; then
1864  if test -s conftest.err; then
1865    ac_cpp_err=$ac_c_preproc_warn_flag
1866  else
1867    ac_cpp_err=
1868  fi
1869else
1870  ac_cpp_err=yes
1871fi
1872if test -z "$ac_cpp_err"; then
1873  :
1874else
1875  echo "$as_me: failed program was:" >&5
1876  cat conftest.$ac_ext >&5
1877  # Broken: fails on valid input.
1878continue
1879fi
1880rm -f conftest.err conftest.$ac_ext
1881
1882  # OK, works on sane cases.  Now check whether non-existent headers
1883  # can be detected and how.
1884  cat >conftest.$ac_ext <<_ACEOF
1885#line 1885 "configure"
1886#include "confdefs.h"
1887#include <ac_nonexistent.h>
1888_ACEOF
1889if { (eval echo "$as_me:1889: \"$ac_cpp conftest.$ac_ext\"") >&5
1890  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1891  ac_status=$?
1892  egrep -v '^ *\+' conftest.er1 >conftest.err
1893  rm -f conftest.er1
1894  cat conftest.err >&5
1895  echo "$as_me:1895: \$? = $ac_status" >&5
1896  (exit $ac_status); } >/dev/null; then
1897  if test -s conftest.err; then
1898    ac_cpp_err=$ac_c_preproc_warn_flag
1899  else
1900    ac_cpp_err=
1901  fi
1902else
1903  ac_cpp_err=yes
1904fi
1905if test -z "$ac_cpp_err"; then
1906  # Broken: success on invalid input.
1907continue
1908else
1909  echo "$as_me: failed program was:" >&5
1910  cat conftest.$ac_ext >&5
1911  # Passes both tests.
1912ac_preproc_ok=:
1913break
1914fi
1915rm -f conftest.err conftest.$ac_ext
1916
1917done
1918# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1919rm -f conftest.err conftest.$ac_ext
1920if $ac_preproc_ok; then
1921  break
1922fi
1923
1924    done
1925    ac_cv_prog_CPP=$CPP
1926
1927fi
1928  CPP=$ac_cv_prog_CPP
1929else
1930  ac_cv_prog_CPP=$CPP
1931fi
1932echo "$as_me:1932: result: $CPP" >&5
1933echo "${ECHO_T}$CPP" >&6
1934ac_preproc_ok=false
1935for ac_c_preproc_warn_flag in '' yes
1936do
1937  # Use a header file that comes with gcc, so configuring glibc
1938  # with a fresh cross-compiler works.
1939  # On the NeXT, cc -E runs the code through the compiler's parser,
1940  # not just through cpp. "Syntax error" is here to catch this case.
1941  cat >conftest.$ac_ext <<_ACEOF
1942#line 1942 "configure"
1943#include "confdefs.h"
1944#include <assert.h>
1945                     Syntax error
1946_ACEOF
1947if { (eval echo "$as_me:1947: \"$ac_cpp conftest.$ac_ext\"") >&5
1948  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1949  ac_status=$?
1950  egrep -v '^ *\+' conftest.er1 >conftest.err
1951  rm -f conftest.er1
1952  cat conftest.err >&5
1953  echo "$as_me:1953: \$? = $ac_status" >&5
1954  (exit $ac_status); } >/dev/null; then
1955  if test -s conftest.err; then
1956    ac_cpp_err=$ac_c_preproc_warn_flag
1957  else
1958    ac_cpp_err=
1959  fi
1960else
1961  ac_cpp_err=yes
1962fi
1963if test -z "$ac_cpp_err"; then
1964  :
1965else
1966  echo "$as_me: failed program was:" >&5
1967  cat conftest.$ac_ext >&5
1968  # Broken: fails on valid input.
1969continue
1970fi
1971rm -f conftest.err conftest.$ac_ext
1972
1973  # OK, works on sane cases.  Now check whether non-existent headers
1974  # can be detected and how.
1975  cat >conftest.$ac_ext <<_ACEOF
1976#line 1976 "configure"
1977#include "confdefs.h"
1978#include <ac_nonexistent.h>
1979_ACEOF
1980if { (eval echo "$as_me:1980: \"$ac_cpp conftest.$ac_ext\"") >&5
1981  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1982  ac_status=$?
1983  egrep -v '^ *\+' conftest.er1 >conftest.err
1984  rm -f conftest.er1
1985  cat conftest.err >&5
1986  echo "$as_me:1986: \$? = $ac_status" >&5
1987  (exit $ac_status); } >/dev/null; then
1988  if test -s conftest.err; then
1989    ac_cpp_err=$ac_c_preproc_warn_flag
1990  else
1991    ac_cpp_err=
1992  fi
1993else
1994  ac_cpp_err=yes
1995fi
1996if test -z "$ac_cpp_err"; then
1997  # Broken: success on invalid input.
1998continue
1999else
2000  echo "$as_me: failed program was:" >&5
2001  cat conftest.$ac_ext >&5
2002  # Passes both tests.
2003ac_preproc_ok=:
2004break
2005fi
2006rm -f conftest.err conftest.$ac_ext
2007
2008done
2009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2010rm -f conftest.err conftest.$ac_ext
2011if $ac_preproc_ok; then
2012  :
2013else
2014  { { echo "$as_me:2014: error: C preprocessor \"$CPP\" fails sanity check" >&5
2015echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2016   { (exit 1); exit 1; }; }
2017fi
2018
2019ac_ext=c
2020ac_cpp='$CPP $CPPFLAGS'
2021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2023ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024
2025echo "$as_me:2025: checking for AIX" >&5
2026echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2027cat >conftest.$ac_ext <<_ACEOF
2028#line 2028 "configure"
2029#include "confdefs.h"
2030#ifdef _AIX
2031  yes
2032#endif
2033
2034_ACEOF
2035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2036  egrep "yes" >/dev/null 2>&1; then
2037  echo "$as_me:2037: result: yes" >&5
2038echo "${ECHO_T}yes" >&6
2039cat >>confdefs.h <<\EOF
2040#define _ALL_SOURCE 1
2041EOF
2042
2043else
2044  echo "$as_me:2044: result: no" >&5
2045echo "${ECHO_T}no" >&6
2046fi
2047rm -f conftest*
2048
2049ac_header_dirent=no
2050for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2051  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2052echo "$as_me:2052: checking for $ac_hdr that defines DIR" >&5
2053echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2054if eval "test \"\${$as_ac_Header+set}\" = set"; then
2055  echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
2057  cat >conftest.$ac_ext <<_ACEOF
2058#line 2058 "configure"
2059#include "confdefs.h"
2060#include <sys/types.h>
2061#include <$ac_hdr>
2062
2063int
2064main ()
2065{
2066if ((DIR *) 0)
2067return 0;
2068  ;
2069  return 0;
2070}
2071_ACEOF
2072rm -f conftest.$ac_objext
2073if { (eval echo "$as_me:2073: \"$ac_compile\"") >&5
2074  (eval $ac_compile) 2>&5
2075  ac_status=$?
2076  echo "$as_me:2076: \$? = $ac_status" >&5
2077  (exit $ac_status); } &&
2078         { ac_try='test -s conftest.$ac_objext'
2079  { (eval echo "$as_me:2079: \"$ac_try\"") >&5
2080  (eval $ac_try) 2>&5
2081  ac_status=$?
2082  echo "$as_me:2082: \$? = $ac_status" >&5
2083  (exit $ac_status); }; }; then
2084  eval "$as_ac_Header=yes"
2085else
2086  echo "$as_me: failed program was:" >&5
2087cat conftest.$ac_ext >&5
2088eval "$as_ac_Header=no"
2089fi
2090rm -f conftest.$ac_objext conftest.$ac_ext
2091fi
2092echo "$as_me:2092: result: `eval echo '${'$as_ac_Header'}'`" >&5
2093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2094if test `eval echo '${'$as_ac_Header'}'` = yes; then
2095  cat >>confdefs.h <<EOF
2096#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2097EOF
2098
2099ac_header_dirent=$ac_hdr; break
2100fi
2101
2102done
2103# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2104if test $ac_header_dirent = dirent.h; then
2105  echo "$as_me:2105: checking for opendir in -ldir" >&5
2106echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
2107if test "${ac_cv_lib_dir_opendir+set}" = set; then
2108  echo $ECHO_N "(cached) $ECHO_C" >&6
2109else
2110  ac_check_lib_save_LIBS=$LIBS
2111LIBS="-ldir  $LIBS"
2112cat >conftest.$ac_ext <<_ACEOF
2113#line 2113 "configure"
2114#include "confdefs.h"
2115
2116/* Override any gcc2 internal prototype to avoid an error.  */
2117#ifdef __cplusplus
2118extern "C"
2119#endif
2120/* We use char because int might match the return type of a gcc2
2121   builtin and then its argument prototype would still apply.  */
2122char opendir ();
2123int
2124main ()
2125{
2126opendir ();
2127  ;
2128  return 0;
2129}
2130_ACEOF
2131rm -f conftest.$ac_objext conftest$ac_exeext
2132if { (eval echo "$as_me:2132: \"$ac_link\"") >&5
2133  (eval $ac_link) 2>&5
2134  ac_status=$?
2135  echo "$as_me:2135: \$? = $ac_status" >&5
2136  (exit $ac_status); } &&
2137         { ac_try='test -s conftest$ac_exeext'
2138  { (eval echo "$as_me:2138: \"$ac_try\"") >&5
2139  (eval $ac_try) 2>&5
2140  ac_status=$?
2141  echo "$as_me:2141: \$? = $ac_status" >&5
2142  (exit $ac_status); }; }; then
2143  ac_cv_lib_dir_opendir=yes
2144else
2145  echo "$as_me: failed program was:" >&5
2146cat conftest.$ac_ext >&5
2147ac_cv_lib_dir_opendir=no
2148fi
2149rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2150LIBS=$ac_check_lib_save_LIBS
2151fi
2152echo "$as_me:2152: result: $ac_cv_lib_dir_opendir" >&5
2153echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
2154if test $ac_cv_lib_dir_opendir = yes; then
2155  LIBS="$LIBS -ldir"
2156fi
2157
2158else
2159  echo "$as_me:2159: checking for opendir in -lx" >&5
2160echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
2161if test "${ac_cv_lib_x_opendir+set}" = set; then
2162  echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164  ac_check_lib_save_LIBS=$LIBS
2165LIBS="-lx  $LIBS"
2166cat >conftest.$ac_ext <<_ACEOF
2167#line 2167 "configure"
2168#include "confdefs.h"
2169
2170/* Override any gcc2 internal prototype to avoid an error.  */
2171#ifdef __cplusplus
2172extern "C"
2173#endif
2174/* We use char because int might match the return type of a gcc2
2175   builtin and then its argument prototype would still apply.  */
2176char opendir ();
2177int
2178main ()
2179{
2180opendir ();
2181  ;
2182  return 0;
2183}
2184_ACEOF
2185rm -f conftest.$ac_objext conftest$ac_exeext
2186if { (eval echo "$as_me:2186: \"$ac_link\"") >&5
2187  (eval $ac_link) 2>&5
2188  ac_status=$?
2189  echo "$as_me:2189: \$? = $ac_status" >&5
2190  (exit $ac_status); } &&
2191         { ac_try='test -s conftest$ac_exeext'
2192  { (eval echo "$as_me:2192: \"$ac_try\"") >&5
2193  (eval $ac_try) 2>&5
2194  ac_status=$?
2195  echo "$as_me:2195: \$? = $ac_status" >&5
2196  (exit $ac_status); }; }; then
2197  ac_cv_lib_x_opendir=yes
2198else
2199  echo "$as_me: failed program was:" >&5
2200cat conftest.$ac_ext >&5
2201ac_cv_lib_x_opendir=no
2202fi
2203rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2204LIBS=$ac_check_lib_save_LIBS
2205fi
2206echo "$as_me:2206: result: $ac_cv_lib_x_opendir" >&5
2207echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
2208if test $ac_cv_lib_x_opendir = yes; then
2209  LIBS="$LIBS -lx"
2210fi
2211
2212fi
2213
2214echo "$as_me:2214: checking for sys/wait.h that is POSIX.1 compatible" >&5
2215echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
2216if test "${ac_cv_header_sys_wait_h+set}" = set; then
2217  echo $ECHO_N "(cached) $ECHO_C" >&6
2218else
2219  cat >conftest.$ac_ext <<_ACEOF
2220#line 2220 "configure"
2221#include "confdefs.h"
2222#include <sys/types.h>
2223#include <sys/wait.h>
2224#ifndef WEXITSTATUS
2225# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2226#endif
2227#ifndef WIFEXITED
2228# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2229#endif
2230
2231int
2232main ()
2233{
2234  int s;
2235  wait (&s);
2236  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241rm -f conftest.$ac_objext
2242if { (eval echo "$as_me:2242: \"$ac_compile\"") >&5
2243  (eval $ac_compile) 2>&5
2244  ac_status=$?
2245  echo "$as_me:2245: \$? = $ac_status" >&5
2246  (exit $ac_status); } &&
2247         { ac_try='test -s conftest.$ac_objext'
2248  { (eval echo "$as_me:2248: \"$ac_try\"") >&5
2249  (eval $ac_try) 2>&5
2250  ac_status=$?
2251  echo "$as_me:2251: \$? = $ac_status" >&5
2252  (exit $ac_status); }; }; then
2253  ac_cv_header_sys_wait_h=yes
2254else
2255  echo "$as_me: failed program was:" >&5
2256cat conftest.$ac_ext >&5
2257ac_cv_header_sys_wait_h=no
2258fi
2259rm -f conftest.$ac_objext conftest.$ac_ext
2260fi
2261echo "$as_me:2261: result: $ac_cv_header_sys_wait_h" >&5
2262echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
2263if test $ac_cv_header_sys_wait_h = yes; then
2264
2265cat >>confdefs.h <<\EOF
2266#define HAVE_SYS_WAIT_H 1
2267EOF
2268
2269fi
2270
2271for ac_header in fcntl.h limits.h paths.h strings.h inttypes.h sys/ioctl.h \
2272    sys/types.h sys/time.h machine/endian.h syslog.h unistd.h sysctl.h \
2273    err.h sys/context.h
2274do
2275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2276echo "$as_me:2276: checking for $ac_header" >&5
2277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2278if eval "test \"\${$as_ac_Header+set}\" = set"; then
2279  echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281  cat >conftest.$ac_ext <<_ACEOF
2282#line 2282 "configure"
2283#include "confdefs.h"
2284#include <$ac_header>
2285_ACEOF
2286if { (eval echo "$as_me:2286: \"$ac_cpp conftest.$ac_ext\"") >&5
2287  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2288  ac_status=$?
2289  egrep -v '^ *\+' conftest.er1 >conftest.err
2290  rm -f conftest.er1
2291  cat conftest.err >&5
2292  echo "$as_me:2292: \$? = $ac_status" >&5
2293  (exit $ac_status); } >/dev/null; then
2294  if test -s conftest.err; then
2295    ac_cpp_err=$ac_c_preproc_warn_flag
2296  else
2297    ac_cpp_err=
2298  fi
2299else
2300  ac_cpp_err=yes
2301fi
2302if test -z "$ac_cpp_err"; then
2303  eval "$as_ac_Header=yes"
2304else
2305  echo "$as_me: failed program was:" >&5
2306  cat conftest.$ac_ext >&5
2307  eval "$as_ac_Header=no"
2308fi
2309rm -f conftest.err conftest.$ac_ext
2310fi
2311echo "$as_me:2311: result: `eval echo '${'$as_ac_Header'}'`" >&5
2312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2313if test `eval echo '${'$as_ac_Header'}'` = yes; then
2314  cat >>confdefs.h <<EOF
2315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2316EOF
2317
2318fi
2319done
2320
2321echo "$as_me:2321: checking for $CC option to accept ANSI C" >&5
2322echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2323if test "${ac_cv_prog_cc_stdc+set}" = set; then
2324  echo $ECHO_N "(cached) $ECHO_C" >&6
2325else
2326  ac_cv_prog_cc_stdc=no
2327ac_save_CC=$CC
2328cat >conftest.$ac_ext <<_ACEOF
2329#line 2329 "configure"
2330#include "confdefs.h"
2331#include <stdarg.h>
2332#include <stdio.h>
2333#include <sys/types.h>
2334#include <sys/stat.h>
2335/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2336struct buf { int x; };
2337FILE * (*rcsopen) (struct buf *, struct stat *, int);
2338static char *e (p, i)
2339     char **p;
2340     int i;
2341{
2342  return p[i];
2343}
2344static char *f (char * (*g) (char **, int), char **p, ...)
2345{
2346  char *s;
2347  va_list v;
2348  va_start (v,p);
2349  s = g (p, va_arg (v,int));
2350  va_end (v);
2351  return s;
2352}
2353int test (int i, double x);
2354struct s1 {int (*f) (int a);};
2355struct s2 {int (*f) (double a);};
2356int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2357int argc;
2358char **argv;
2359int
2360main ()
2361{
2362return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2363  ;
2364  return 0;
2365}
2366_ACEOF
2367# Don't try gcc -ansi; that turns off useful extensions and
2368# breaks some systems' header files.
2369# AIX			-qlanglvl=ansi
2370# Ultrix and OSF/1	-std1
2371# HP-UX 10.20 and later	-Ae
2372# HP-UX older versions	-Aa -D_HPUX_SOURCE
2373# SVR4			-Xc -D__EXTENSIONS__
2374for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2375do
2376  CC="$ac_save_CC $ac_arg"
2377  rm -f conftest.$ac_objext
2378if { (eval echo "$as_me:2378: \"$ac_compile\"") >&5
2379  (eval $ac_compile) 2>&5
2380  ac_status=$?
2381  echo "$as_me:2381: \$? = $ac_status" >&5
2382  (exit $ac_status); } &&
2383         { ac_try='test -s conftest.$ac_objext'
2384  { (eval echo "$as_me:2384: \"$ac_try\"") >&5
2385  (eval $ac_try) 2>&5
2386  ac_status=$?
2387  echo "$as_me:2387: \$? = $ac_status" >&5
2388  (exit $ac_status); }; }; then
2389  ac_cv_prog_cc_stdc=$ac_arg
2390break
2391else
2392  echo "$as_me: failed program was:" >&5
2393cat conftest.$ac_ext >&5
2394fi
2395rm -f conftest.$ac_objext
2396done
2397rm -f conftest.$ac_ext conftest.$ac_objext
2398CC=$ac_save_CC
2399
2400fi
2401
2402case "x$ac_cv_prog_cc_stdc" in
2403  x|xno)
2404    echo "$as_me:2404: result: none needed" >&5
2405echo "${ECHO_T}none needed" >&6 ;;
2406  *)
2407    echo "$as_me:2407: result: $ac_cv_prog_cc_stdc" >&5
2408echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2409    CC="$CC $ac_cv_prog_cc_stdc" ;;
2410esac
2411
2412echo "$as_me:2412: checking for an ANSI C-conforming const" >&5
2413echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2414if test "${ac_cv_c_const+set}" = set; then
2415  echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417  cat >conftest.$ac_ext <<_ACEOF
2418#line 2418 "configure"
2419#include "confdefs.h"
2420
2421int
2422main ()
2423{
2424/* FIXME: Include the comments suggested by Paul. */
2425#ifndef __cplusplus
2426  /* Ultrix mips cc rejects this.  */
2427  typedef int charset[2];
2428  const charset x;
2429  /* SunOS 4.1.1 cc rejects this.  */
2430  char const *const *ccp;
2431  char **p;
2432  /* NEC SVR4.0.2 mips cc rejects this.  */
2433  struct point {int x, y;};
2434  static struct point const zero = {0,0};
2435  /* AIX XL C 1.02.0.0 rejects this.
2436     It does not let you subtract one const X* pointer from another in
2437     an arm of an if-expression whose if-part is not a constant
2438     expression */
2439  const char *g = "string";
2440  ccp = &g + (g ? g-g : 0);
2441  /* HPUX 7.0 cc rejects these. */
2442  ++ccp;
2443  p = (char**) ccp;
2444  ccp = (char const *const *) p;
2445  { /* SCO 3.2v4 cc rejects this.  */
2446    char *t;
2447    char const *s = 0 ? (char *) 0 : (char const *) 0;
2448
2449    *t++ = 0;
2450  }
2451  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2452    int x[] = {25, 17};
2453    const int *foo = &x[0];
2454    ++foo;
2455  }
2456  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2457    typedef const int *iptr;
2458    iptr p = 0;
2459    ++p;
2460  }
2461  { /* AIX XL C 1.02.0.0 rejects this saying
2462       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2463    struct s { int j; const int *ap[3]; };
2464    struct s *b; b->j = 5;
2465  }
2466  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2467    const int foo = 10;
2468  }
2469#endif
2470
2471  ;
2472  return 0;
2473}
2474_ACEOF
2475rm -f conftest.$ac_objext
2476if { (eval echo "$as_me:2476: \"$ac_compile\"") >&5
2477  (eval $ac_compile) 2>&5
2478  ac_status=$?
2479  echo "$as_me:2479: \$? = $ac_status" >&5
2480  (exit $ac_status); } &&
2481         { ac_try='test -s conftest.$ac_objext'
2482  { (eval echo "$as_me:2482: \"$ac_try\"") >&5
2483  (eval $ac_try) 2>&5
2484  ac_status=$?
2485  echo "$as_me:2485: \$? = $ac_status" >&5
2486  (exit $ac_status); }; }; then
2487  ac_cv_c_const=yes
2488else
2489  echo "$as_me: failed program was:" >&5
2490cat conftest.$ac_ext >&5
2491ac_cv_c_const=no
2492fi
2493rm -f conftest.$ac_objext conftest.$ac_ext
2494fi
2495echo "$as_me:2495: result: $ac_cv_c_const" >&5
2496echo "${ECHO_T}$ac_cv_c_const" >&6
2497if test $ac_cv_c_const = no; then
2498
2499cat >>confdefs.h <<\EOF
2500#define const
2501EOF
2502
2503fi
2504
2505echo "$as_me:2505: checking for ANSI C header files" >&5
2506echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2507if test "${ac_cv_header_stdc+set}" = set; then
2508  echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510  cat >conftest.$ac_ext <<_ACEOF
2511#line 2511 "configure"
2512#include "confdefs.h"
2513#include <stdlib.h>
2514#include <stdarg.h>
2515#include <string.h>
2516#include <float.h>
2517
2518_ACEOF
2519if { (eval echo "$as_me:2519: \"$ac_cpp conftest.$ac_ext\"") >&5
2520  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2521  ac_status=$?
2522  egrep -v '^ *\+' conftest.er1 >conftest.err
2523  rm -f conftest.er1
2524  cat conftest.err >&5
2525  echo "$as_me:2525: \$? = $ac_status" >&5
2526  (exit $ac_status); } >/dev/null; then
2527  if test -s conftest.err; then
2528    ac_cpp_err=$ac_c_preproc_warn_flag
2529  else
2530    ac_cpp_err=
2531  fi
2532else
2533  ac_cpp_err=yes
2534fi
2535if test -z "$ac_cpp_err"; then
2536  ac_cv_header_stdc=yes
2537else
2538  echo "$as_me: failed program was:" >&5
2539  cat conftest.$ac_ext >&5
2540  ac_cv_header_stdc=no
2541fi
2542rm -f conftest.err conftest.$ac_ext
2543
2544if test $ac_cv_header_stdc = yes; then
2545  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2546  cat >conftest.$ac_ext <<_ACEOF
2547#line 2547 "configure"
2548#include "confdefs.h"
2549#include <string.h>
2550
2551_ACEOF
2552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2553  egrep "memchr" >/dev/null 2>&1; then
2554  :
2555else
2556  ac_cv_header_stdc=no
2557fi
2558rm -f conftest*
2559
2560fi
2561
2562if test $ac_cv_header_stdc = yes; then
2563  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2564  cat >conftest.$ac_ext <<_ACEOF
2565#line 2565 "configure"
2566#include "confdefs.h"
2567#include <stdlib.h>
2568
2569_ACEOF
2570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2571  egrep "free" >/dev/null 2>&1; then
2572  :
2573else
2574  ac_cv_header_stdc=no
2575fi
2576rm -f conftest*
2577
2578fi
2579
2580if test $ac_cv_header_stdc = yes; then
2581  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2582  if test "$cross_compiling" = yes; then
2583  :
2584else
2585  cat >conftest.$ac_ext <<_ACEOF
2586#line 2586 "configure"
2587#include "confdefs.h"
2588#include <ctype.h>
2589#if ((' ' & 0x0FF) == 0x020)
2590# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2591# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2592#else
2593# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2594                     || ('j' <= (c) && (c) <= 'r') \
2595                     || ('s' <= (c) && (c) <= 'z'))
2596# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2597#endif
2598
2599#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2600int
2601main ()
2602{
2603  int i;
2604  for (i = 0; i < 256; i++)
2605    if (XOR (islower (i), ISLOWER (i))
2606        || toupper (i) != TOUPPER (i))
2607      exit(2);
2608  exit (0);
2609}
2610_ACEOF
2611rm -f conftest$ac_exeext
2612if { (eval echo "$as_me:2612: \"$ac_link\"") >&5
2613  (eval $ac_link) 2>&5
2614  ac_status=$?
2615  echo "$as_me:2615: \$? = $ac_status" >&5
2616  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2617  { (eval echo "$as_me:2617: \"$ac_try\"") >&5
2618  (eval $ac_try) 2>&5
2619  ac_status=$?
2620  echo "$as_me:2620: \$? = $ac_status" >&5
2621  (exit $ac_status); }; }; then
2622  :
2623else
2624  echo "$as_me: program exited with status $ac_status" >&5
2625echo "$as_me: failed program was:" >&5
2626cat conftest.$ac_ext >&5
2627ac_cv_header_stdc=no
2628fi
2629rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2630fi
2631fi
2632fi
2633echo "$as_me:2633: result: $ac_cv_header_stdc" >&5
2634echo "${ECHO_T}$ac_cv_header_stdc" >&6
2635if test $ac_cv_header_stdc = yes; then
2636
2637cat >>confdefs.h <<\EOF
2638#define STDC_HEADERS 1
2639EOF
2640
2641fi
2642
2643# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2644
2645for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2646                  inttypes.h stdint.h unistd.h
2647do
2648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2649echo "$as_me:2649: checking for $ac_header" >&5
2650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2651if eval "test \"\${$as_ac_Header+set}\" = set"; then
2652  echo $ECHO_N "(cached) $ECHO_C" >&6
2653else
2654  cat >conftest.$ac_ext <<_ACEOF
2655#line 2655 "configure"
2656#include "confdefs.h"
2657$ac_includes_default
2658#include <$ac_header>
2659_ACEOF
2660rm -f conftest.$ac_objext
2661if { (eval echo "$as_me:2661: \"$ac_compile\"") >&5
2662  (eval $ac_compile) 2>&5
2663  ac_status=$?
2664  echo "$as_me:2664: \$? = $ac_status" >&5
2665  (exit $ac_status); } &&
2666         { ac_try='test -s conftest.$ac_objext'
2667  { (eval echo "$as_me:2667: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:2670: \$? = $ac_status" >&5
2671  (exit $ac_status); }; }; then
2672  eval "$as_ac_Header=yes"
2673else
2674  echo "$as_me: failed program was:" >&5
2675cat conftest.$ac_ext >&5
2676eval "$as_ac_Header=no"
2677fi
2678rm -f conftest.$ac_objext conftest.$ac_ext
2679fi
2680echo "$as_me:2680: result: `eval echo '${'$as_ac_Header'}'`" >&5
2681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2682if test `eval echo '${'$as_ac_Header'}'` = yes; then
2683  cat >>confdefs.h <<EOF
2684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2685EOF
2686
2687fi
2688done
2689
2690echo "$as_me:2690: checking for off_t" >&5
2691echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2692if test "${ac_cv_type_off_t+set}" = set; then
2693  echo $ECHO_N "(cached) $ECHO_C" >&6
2694else
2695  cat >conftest.$ac_ext <<_ACEOF
2696#line 2696 "configure"
2697#include "confdefs.h"
2698$ac_includes_default
2699int
2700main ()
2701{
2702if ((off_t *) 0)
2703  return 0;
2704if (sizeof (off_t))
2705  return 0;
2706  ;
2707  return 0;
2708}
2709_ACEOF
2710rm -f conftest.$ac_objext
2711if { (eval echo "$as_me:2711: \"$ac_compile\"") >&5
2712  (eval $ac_compile) 2>&5
2713  ac_status=$?
2714  echo "$as_me:2714: \$? = $ac_status" >&5
2715  (exit $ac_status); } &&
2716         { ac_try='test -s conftest.$ac_objext'
2717  { (eval echo "$as_me:2717: \"$ac_try\"") >&5
2718  (eval $ac_try) 2>&5
2719  ac_status=$?
2720  echo "$as_me:2720: \$? = $ac_status" >&5
2721  (exit $ac_status); }; }; then
2722  ac_cv_type_off_t=yes
2723else
2724  echo "$as_me: failed program was:" >&5
2725cat conftest.$ac_ext >&5
2726ac_cv_type_off_t=no
2727fi
2728rm -f conftest.$ac_objext conftest.$ac_ext
2729fi
2730echo "$as_me:2730: result: $ac_cv_type_off_t" >&5
2731echo "${ECHO_T}$ac_cv_type_off_t" >&6
2732if test $ac_cv_type_off_t = yes; then
2733  :
2734else
2735
2736cat >>confdefs.h <<EOF
2737#define off_t long
2738EOF
2739
2740fi
2741
2742echo "$as_me:2742: checking for size_t" >&5
2743echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2744if test "${ac_cv_type_size_t+set}" = set; then
2745  echo $ECHO_N "(cached) $ECHO_C" >&6
2746else
2747  cat >conftest.$ac_ext <<_ACEOF
2748#line 2748 "configure"
2749#include "confdefs.h"
2750$ac_includes_default
2751int
2752main ()
2753{
2754if ((size_t *) 0)
2755  return 0;
2756if (sizeof (size_t))
2757  return 0;
2758  ;
2759  return 0;
2760}
2761_ACEOF
2762rm -f conftest.$ac_objext
2763if { (eval echo "$as_me:2763: \"$ac_compile\"") >&5
2764  (eval $ac_compile) 2>&5
2765  ac_status=$?
2766  echo "$as_me:2766: \$? = $ac_status" >&5
2767  (exit $ac_status); } &&
2768         { ac_try='test -s conftest.$ac_objext'
2769  { (eval echo "$as_me:2769: \"$ac_try\"") >&5
2770  (eval $ac_try) 2>&5
2771  ac_status=$?
2772  echo "$as_me:2772: \$? = $ac_status" >&5
2773  (exit $ac_status); }; }; then
2774  ac_cv_type_size_t=yes
2775else
2776  echo "$as_me: failed program was:" >&5
2777cat conftest.$ac_ext >&5
2778ac_cv_type_size_t=no
2779fi
2780rm -f conftest.$ac_objext conftest.$ac_ext
2781fi
2782echo "$as_me:2782: result: $ac_cv_type_size_t" >&5
2783echo "${ECHO_T}$ac_cv_type_size_t" >&6
2784if test $ac_cv_type_size_t = yes; then
2785  :
2786else
2787
2788cat >>confdefs.h <<EOF
2789#define size_t unsigned
2790EOF
2791
2792fi
2793
2794echo "$as_me:2794: checking whether time.h and sys/time.h may both be included" >&5
2795echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2796if test "${ac_cv_header_time+set}" = set; then
2797  echo $ECHO_N "(cached) $ECHO_C" >&6
2798else
2799  cat >conftest.$ac_ext <<_ACEOF
2800#line 2800 "configure"
2801#include "confdefs.h"
2802#include <sys/types.h>
2803#include <sys/time.h>
2804#include <time.h>
2805
2806int
2807main ()
2808{
2809if ((struct tm *) 0)
2810return 0;
2811  ;
2812  return 0;
2813}
2814_ACEOF
2815rm -f conftest.$ac_objext
2816if { (eval echo "$as_me:2816: \"$ac_compile\"") >&5
2817  (eval $ac_compile) 2>&5
2818  ac_status=$?
2819  echo "$as_me:2819: \$? = $ac_status" >&5
2820  (exit $ac_status); } &&
2821         { ac_try='test -s conftest.$ac_objext'
2822  { (eval echo "$as_me:2822: \"$ac_try\"") >&5
2823  (eval $ac_try) 2>&5
2824  ac_status=$?
2825  echo "$as_me:2825: \$? = $ac_status" >&5
2826  (exit $ac_status); }; }; then
2827  ac_cv_header_time=yes
2828else
2829  echo "$as_me: failed program was:" >&5
2830cat conftest.$ac_ext >&5
2831ac_cv_header_time=no
2832fi
2833rm -f conftest.$ac_objext conftest.$ac_ext
2834fi
2835echo "$as_me:2835: result: $ac_cv_header_time" >&5
2836echo "${ECHO_T}$ac_cv_header_time" >&6
2837if test $ac_cv_header_time = yes; then
2838
2839cat >>confdefs.h <<\EOF
2840#define TIME_WITH_SYS_TIME 1
2841EOF
2842
2843fi
2844
2845echo "$as_me:2845: checking whether struct tm is in sys/time.h or time.h" >&5
2846echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
2847if test "${ac_cv_struct_tm+set}" = set; then
2848  echo $ECHO_N "(cached) $ECHO_C" >&6
2849else
2850  cat >conftest.$ac_ext <<_ACEOF
2851#line 2851 "configure"
2852#include "confdefs.h"
2853#include <sys/types.h>
2854#include <time.h>
2855
2856int
2857main ()
2858{
2859struct tm *tp; tp->tm_sec;
2860  ;
2861  return 0;
2862}
2863_ACEOF
2864rm -f conftest.$ac_objext
2865if { (eval echo "$as_me:2865: \"$ac_compile\"") >&5
2866  (eval $ac_compile) 2>&5
2867  ac_status=$?
2868  echo "$as_me:2868: \$? = $ac_status" >&5
2869  (exit $ac_status); } &&
2870         { ac_try='test -s conftest.$ac_objext'
2871  { (eval echo "$as_me:2871: \"$ac_try\"") >&5
2872  (eval $ac_try) 2>&5
2873  ac_status=$?
2874  echo "$as_me:2874: \$? = $ac_status" >&5
2875  (exit $ac_status); }; }; then
2876  ac_cv_struct_tm=time.h
2877else
2878  echo "$as_me: failed program was:" >&5
2879cat conftest.$ac_ext >&5
2880ac_cv_struct_tm=sys/time.h
2881fi
2882rm -f conftest.$ac_objext conftest.$ac_ext
2883fi
2884echo "$as_me:2884: result: $ac_cv_struct_tm" >&5
2885echo "${ECHO_T}$ac_cv_struct_tm" >&6
2886if test $ac_cv_struct_tm = sys/time.h; then
2887
2888cat >>confdefs.h <<\EOF
2889#define TM_IN_SYS_TIME 1
2890EOF
2891
2892fi
2893
2894echo "$as_me:2894: checking for dlopen in -ldl" >&5
2895echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
2896if test "${ac_cv_lib_dl_dlopen+set}" = set; then
2897  echo $ECHO_N "(cached) $ECHO_C" >&6
2898else
2899  ac_check_lib_save_LIBS=$LIBS
2900LIBS="-ldl  $LIBS"
2901cat >conftest.$ac_ext <<_ACEOF
2902#line 2902 "configure"
2903#include "confdefs.h"
2904
2905/* Override any gcc2 internal prototype to avoid an error.  */
2906#ifdef __cplusplus
2907extern "C"
2908#endif
2909/* We use char because int might match the return type of a gcc2
2910   builtin and then its argument prototype would still apply.  */
2911char dlopen ();
2912int
2913main ()
2914{
2915dlopen ();
2916  ;
2917  return 0;
2918}
2919_ACEOF
2920rm -f conftest.$ac_objext conftest$ac_exeext
2921if { (eval echo "$as_me:2921: \"$ac_link\"") >&5
2922  (eval $ac_link) 2>&5
2923  ac_status=$?
2924  echo "$as_me:2924: \$? = $ac_status" >&5
2925  (exit $ac_status); } &&
2926         { ac_try='test -s conftest$ac_exeext'
2927  { (eval echo "$as_me:2927: \"$ac_try\"") >&5
2928  (eval $ac_try) 2>&5
2929  ac_status=$?
2930  echo "$as_me:2930: \$? = $ac_status" >&5
2931  (exit $ac_status); }; }; then
2932  ac_cv_lib_dl_dlopen=yes
2933else
2934  echo "$as_me: failed program was:" >&5
2935cat conftest.$ac_ext >&5
2936ac_cv_lib_dl_dlopen=no
2937fi
2938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2939LIBS=$ac_check_lib_save_LIBS
2940fi
2941echo "$as_me:2941: result: $ac_cv_lib_dl_dlopen" >&5
2942echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
2943if test $ac_cv_lib_dl_dlopen = yes; then
2944  SYSLOGD_LIBS="$SYSLOGD_LIBS"
2945fi
2946
2947echo "$as_me:2947: checking for connect in -lsocket" >&5
2948echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
2949if test "${ac_cv_lib_socket_connect+set}" = set; then
2950  echo $ECHO_N "(cached) $ECHO_C" >&6
2951else
2952  ac_check_lib_save_LIBS=$LIBS
2953LIBS="-lsocket  $LIBS"
2954cat >conftest.$ac_ext <<_ACEOF
2955#line 2955 "configure"
2956#include "confdefs.h"
2957
2958/* Override any gcc2 internal prototype to avoid an error.  */
2959#ifdef __cplusplus
2960extern "C"
2961#endif
2962/* We use char because int might match the return type of a gcc2
2963   builtin and then its argument prototype would still apply.  */
2964char connect ();
2965int
2966main ()
2967{
2968connect ();
2969  ;
2970  return 0;
2971}
2972_ACEOF
2973rm -f conftest.$ac_objext conftest$ac_exeext
2974if { (eval echo "$as_me:2974: \"$ac_link\"") >&5
2975  (eval $ac_link) 2>&5
2976  ac_status=$?
2977  echo "$as_me:2977: \$? = $ac_status" >&5
2978  (exit $ac_status); } &&
2979         { ac_try='test -s conftest$ac_exeext'
2980  { (eval echo "$as_me:2980: \"$ac_try\"") >&5
2981  (eval $ac_try) 2>&5
2982  ac_status=$?
2983  echo "$as_me:2983: \$? = $ac_status" >&5
2984  (exit $ac_status); }; }; then
2985  ac_cv_lib_socket_connect=yes
2986else
2987  echo "$as_me: failed program was:" >&5
2988cat conftest.$ac_ext >&5
2989ac_cv_lib_socket_connect=no
2990fi
2991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2992LIBS=$ac_check_lib_save_LIBS
2993fi
2994echo "$as_me:2994: result: $ac_cv_lib_socket_connect" >&5
2995echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
2996if test $ac_cv_lib_socket_connect = yes; then
2997  SYSLOGD_LIBS="$SYSLOGD_LIBS -lsocket"
2998fi
2999
3000echo "$as_me:3000: checking for gethostbyname in -lnsl" >&5
3001echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3002if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3003  echo $ECHO_N "(cached) $ECHO_C" >&6
3004else
3005  ac_check_lib_save_LIBS=$LIBS
3006LIBS="-lnsl  $LIBS"
3007cat >conftest.$ac_ext <<_ACEOF
3008#line 3008 "configure"
3009#include "confdefs.h"
3010
3011/* Override any gcc2 internal prototype to avoid an error.  */
3012#ifdef __cplusplus
3013extern "C"
3014#endif
3015/* We use char because int might match the return type of a gcc2
3016   builtin and then its argument prototype would still apply.  */
3017char gethostbyname ();
3018int
3019main ()
3020{
3021gethostbyname ();
3022  ;
3023  return 0;
3024}
3025_ACEOF
3026rm -f conftest.$ac_objext conftest$ac_exeext
3027if { (eval echo "$as_me:3027: \"$ac_link\"") >&5
3028  (eval $ac_link) 2>&5
3029  ac_status=$?
3030  echo "$as_me:3030: \$? = $ac_status" >&5
3031  (exit $ac_status); } &&
3032         { ac_try='test -s conftest$ac_exeext'
3033  { (eval echo "$as_me:3033: \"$ac_try\"") >&5
3034  (eval $ac_try) 2>&5
3035  ac_status=$?
3036  echo "$as_me:3036: \$? = $ac_status" >&5
3037  (exit $ac_status); }; }; then
3038  ac_cv_lib_nsl_gethostbyname=yes
3039else
3040  echo "$as_me: failed program was:" >&5
3041cat conftest.$ac_ext >&5
3042ac_cv_lib_nsl_gethostbyname=no
3043fi
3044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3045LIBS=$ac_check_lib_save_LIBS
3046fi
3047echo "$as_me:3047: result: $ac_cv_lib_nsl_gethostbyname" >&5
3048echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3049if test $ac_cv_lib_nsl_gethostbyname = yes; then
3050  SYSLOGD_LIBS="$SYSLOGD_LIBS -lnsl"
3051fi
3052
3053cat >>confdefs.h <<\EOF
3054#define SYSLOGD_LIBS $SYSLOGD_LIBS
3055EOF
3056
3057if test $ac_cv_c_compiler_gnu = yes; then
3058    echo "$as_me:3058: checking whether $CC needs -traditional" >&5
3059echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3060if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3061  echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063    ac_pattern="Autoconf.*'x'"
3064  cat >conftest.$ac_ext <<_ACEOF
3065#line 3065 "configure"
3066#include "confdefs.h"
3067#include <sgtty.h>
3068Autoconf TIOCGETP
3069_ACEOF
3070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3071  egrep "$ac_pattern" >/dev/null 2>&1; then
3072  ac_cv_prog_gcc_traditional=yes
3073else
3074  ac_cv_prog_gcc_traditional=no
3075fi
3076rm -f conftest*
3077
3078  if test $ac_cv_prog_gcc_traditional = no; then
3079    cat >conftest.$ac_ext <<_ACEOF
3080#line 3080 "configure"
3081#include "confdefs.h"
3082#include <termio.h>
3083Autoconf TCGETA
3084_ACEOF
3085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3086  egrep "$ac_pattern" >/dev/null 2>&1; then
3087  ac_cv_prog_gcc_traditional=yes
3088fi
3089rm -f conftest*
3090
3091  fi
3092fi
3093echo "$as_me:3093: result: $ac_cv_prog_gcc_traditional" >&5
3094echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3095  if test $ac_cv_prog_gcc_traditional = yes; then
3096    CC="$CC -traditional"
3097  fi
3098fi
3099
3100echo "$as_me:3100: checking for working memcmp" >&5
3101echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3102if test "${ac_cv_func_memcmp_working+set}" = set; then
3103  echo $ECHO_N "(cached) $ECHO_C" >&6
3104else
3105  if test "$cross_compiling" = yes; then
3106  ac_cv_func_memcmp_working=no
3107else
3108  cat >conftest.$ac_ext <<_ACEOF
3109#line 3109 "configure"
3110#include "confdefs.h"
3111
3112int
3113main ()
3114{
3115
3116  /* Some versions of memcmp are not 8-bit clean.  */
3117  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3118  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3119    exit (1);
3120
3121  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3122     or more and with at least one buffer not starting on a 4-byte boundary.
3123     William Lewis provided this test program.   */
3124  {
3125    char foo[21];
3126    char bar[21];
3127    int i;
3128    for (i = 0; i < 4; i++)
3129      {
3130        char *a = foo + i;
3131        char *b = bar + i;
3132        strcpy (a, "--------01111111");
3133        strcpy (b, "--------10000000");
3134        if (memcmp (a, b, 16) >= 0)
3135          exit (1);
3136      }
3137    exit (0);
3138  }
3139
3140  ;
3141  return 0;
3142}
3143_ACEOF
3144rm -f conftest$ac_exeext
3145if { (eval echo "$as_me:3145: \"$ac_link\"") >&5
3146  (eval $ac_link) 2>&5
3147  ac_status=$?
3148  echo "$as_me:3148: \$? = $ac_status" >&5
3149  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3150  { (eval echo "$as_me:3150: \"$ac_try\"") >&5
3151  (eval $ac_try) 2>&5
3152  ac_status=$?
3153  echo "$as_me:3153: \$? = $ac_status" >&5
3154  (exit $ac_status); }; }; then
3155  ac_cv_func_memcmp_working=yes
3156else
3157  echo "$as_me: program exited with status $ac_status" >&5
3158echo "$as_me: failed program was:" >&5
3159cat conftest.$ac_ext >&5
3160ac_cv_func_memcmp_working=no
3161fi
3162rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3163fi
3164fi
3165echo "$as_me:3165: result: $ac_cv_func_memcmp_working" >&5
3166echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
3167test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
3168
3169echo "$as_me:3169: checking return type of signal handlers" >&5
3170echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3171if test "${ac_cv_type_signal+set}" = set; then
3172  echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174  cat >conftest.$ac_ext <<_ACEOF
3175#line 3175 "configure"
3176#include "confdefs.h"
3177#include <sys/types.h>
3178#include <signal.h>
3179#ifdef signal
3180# undef signal
3181#endif
3182#ifdef __cplusplus
3183extern "C" void (*signal (int, void (*)(int)))(int);
3184#else
3185void (*signal ()) ();
3186#endif
3187
3188int
3189main ()
3190{
3191int i;
3192  ;
3193  return 0;
3194}
3195_ACEOF
3196rm -f conftest.$ac_objext
3197if { (eval echo "$as_me:3197: \"$ac_compile\"") >&5
3198  (eval $ac_compile) 2>&5
3199  ac_status=$?
3200  echo "$as_me:3200: \$? = $ac_status" >&5
3201  (exit $ac_status); } &&
3202         { ac_try='test -s conftest.$ac_objext'
3203  { (eval echo "$as_me:3203: \"$ac_try\"") >&5
3204  (eval $ac_try) 2>&5
3205  ac_status=$?
3206  echo "$as_me:3206: \$? = $ac_status" >&5
3207  (exit $ac_status); }; }; then
3208  ac_cv_type_signal=void
3209else
3210  echo "$as_me: failed program was:" >&5
3211cat conftest.$ac_ext >&5
3212ac_cv_type_signal=int
3213fi
3214rm -f conftest.$ac_objext conftest.$ac_ext
3215fi
3216echo "$as_me:3216: result: $ac_cv_type_signal" >&5
3217echo "${ECHO_T}$ac_cv_type_signal" >&6
3218
3219cat >>confdefs.h <<EOF
3220#define RETSIGTYPE $ac_cv_type_signal
3221EOF
3222
3223for ac_func in vprintf
3224do
3225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3226echo "$as_me:3226: checking for $ac_func" >&5
3227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3228if eval "test \"\${$as_ac_var+set}\" = set"; then
3229  echo $ECHO_N "(cached) $ECHO_C" >&6
3230else
3231  cat >conftest.$ac_ext <<_ACEOF
3232#line 3232 "configure"
3233#include "confdefs.h"
3234/* System header to define __stub macros and hopefully few prototypes,
3235    which can conflict with char $ac_func (); below.  */
3236#include <assert.h>
3237/* Override any gcc2 internal prototype to avoid an error.  */
3238#ifdef __cplusplus
3239extern "C"
3240#endif
3241/* We use char because int might match the return type of a gcc2
3242   builtin and then its argument prototype would still apply.  */
3243char $ac_func ();
3244char (*f) ();
3245
3246int
3247main ()
3248{
3249/* The GNU C library defines this for functions which it implements
3250    to always fail with ENOSYS.  Some functions are actually named
3251    something starting with __ and the normal name is an alias.  */
3252#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3253choke me
3254#else
3255f = $ac_func;
3256#endif
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262rm -f conftest.$ac_objext conftest$ac_exeext
3263if { (eval echo "$as_me:3263: \"$ac_link\"") >&5
3264  (eval $ac_link) 2>&5
3265  ac_status=$?
3266  echo "$as_me:3266: \$? = $ac_status" >&5
3267  (exit $ac_status); } &&
3268         { ac_try='test -s conftest$ac_exeext'
3269  { (eval echo "$as_me:3269: \"$ac_try\"") >&5
3270  (eval $ac_try) 2>&5
3271  ac_status=$?
3272  echo "$as_me:3272: \$? = $ac_status" >&5
3273  (exit $ac_status); }; }; then
3274  eval "$as_ac_var=yes"
3275else
3276  echo "$as_me: failed program was:" >&5
3277cat conftest.$ac_ext >&5
3278eval "$as_ac_var=no"
3279fi
3280rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3281fi
3282echo "$as_me:3282: result: `eval echo '${'$as_ac_var'}'`" >&5
3283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3284if test `eval echo '${'$as_ac_var'}'` = yes; then
3285  cat >>confdefs.h <<EOF
3286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3287EOF
3288
3289echo "$as_me:3289: checking for _doprnt" >&5
3290echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3291if test "${ac_cv_func__doprnt+set}" = set; then
3292  echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
3294  cat >conftest.$ac_ext <<_ACEOF
3295#line 3295 "configure"
3296#include "confdefs.h"
3297/* System header to define __stub macros and hopefully few prototypes,
3298    which can conflict with char _doprnt (); below.  */
3299#include <assert.h>
3300/* Override any gcc2 internal prototype to avoid an error.  */
3301#ifdef __cplusplus
3302extern "C"
3303#endif
3304/* We use char because int might match the return type of a gcc2
3305   builtin and then its argument prototype would still apply.  */
3306char _doprnt ();
3307char (*f) ();
3308
3309int
3310main ()
3311{
3312/* The GNU C library defines this for functions which it implements
3313    to always fail with ENOSYS.  Some functions are actually named
3314    something starting with __ and the normal name is an alias.  */
3315#if defined (__stub__doprnt) || defined (__stub____doprnt)
3316choke me
3317#else
3318f = _doprnt;
3319#endif
3320
3321  ;
3322  return 0;
3323}
3324_ACEOF
3325rm -f conftest.$ac_objext conftest$ac_exeext
3326if { (eval echo "$as_me:3326: \"$ac_link\"") >&5
3327  (eval $ac_link) 2>&5
3328  ac_status=$?
3329  echo "$as_me:3329: \$? = $ac_status" >&5
3330  (exit $ac_status); } &&
3331         { ac_try='test -s conftest$ac_exeext'
3332  { (eval echo "$as_me:3332: \"$ac_try\"") >&5
3333  (eval $ac_try) 2>&5
3334  ac_status=$?
3335  echo "$as_me:3335: \$? = $ac_status" >&5
3336  (exit $ac_status); }; }; then
3337  ac_cv_func__doprnt=yes
3338else
3339  echo "$as_me: failed program was:" >&5
3340cat conftest.$ac_ext >&5
3341ac_cv_func__doprnt=no
3342fi
3343rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3344fi
3345echo "$as_me:3345: result: $ac_cv_func__doprnt" >&5
3346echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3347if test $ac_cv_func__doprnt = yes; then
3348
3349cat >>confdefs.h <<\EOF
3350#define HAVE_DOPRNT 1
3351EOF
3352
3353fi
3354
3355fi
3356done
3357
3358LIBS_SAVE="$LIBS"
3359LIBS="$LIBS $SYSLOGD_LIBS"
3360
3361for ac_func in gethostname inet_ntop getaddrinfo regcomp poll select\
3362 socket strdup strerror strstr strtoul inet_aton inet_addr
3363do
3364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3365echo "$as_me:3365: checking for $ac_func" >&5
3366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3367if eval "test \"\${$as_ac_var+set}\" = set"; then
3368  echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
3370  cat >conftest.$ac_ext <<_ACEOF
3371#line 3371 "configure"
3372#include "confdefs.h"
3373/* System header to define __stub macros and hopefully few prototypes,
3374    which can conflict with char $ac_func (); below.  */
3375#include <assert.h>
3376/* Override any gcc2 internal prototype to avoid an error.  */
3377#ifdef __cplusplus
3378extern "C"
3379#endif
3380/* We use char because int might match the return type of a gcc2
3381   builtin and then its argument prototype would still apply.  */
3382char $ac_func ();
3383char (*f) ();
3384
3385int
3386main ()
3387{
3388/* The GNU C library defines this for functions which it implements
3389    to always fail with ENOSYS.  Some functions are actually named
3390    something starting with __ and the normal name is an alias.  */
3391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3392choke me
3393#else
3394f = $ac_func;
3395#endif
3396
3397  ;
3398  return 0;
3399}
3400_ACEOF
3401rm -f conftest.$ac_objext conftest$ac_exeext
3402if { (eval echo "$as_me:3402: \"$ac_link\"") >&5
3403  (eval $ac_link) 2>&5
3404  ac_status=$?
3405  echo "$as_me:3405: \$? = $ac_status" >&5
3406  (exit $ac_status); } &&
3407         { ac_try='test -s conftest$ac_exeext'
3408  { (eval echo "$as_me:3408: \"$ac_try\"") >&5
3409  (eval $ac_try) 2>&5
3410  ac_status=$?
3411  echo "$as_me:3411: \$? = $ac_status" >&5
3412  (exit $ac_status); }; }; then
3413  eval "$as_ac_var=yes"
3414else
3415  echo "$as_me: failed program was:" >&5
3416cat conftest.$ac_ext >&5
3417eval "$as_ac_var=no"
3418fi
3419rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3420fi
3421echo "$as_me:3421: result: `eval echo '${'$as_ac_var'}'`" >&5
3422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3423if test `eval echo '${'$as_ac_var'}'` = yes; then
3424  cat >>confdefs.h <<EOF
3425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3426EOF
3427
3428fi
3429done
3430
3431LIBS="$LIBS_SAVE"
3432
3433echo "$as_me:3433: checking whether byte ordering is bigendian" >&5
3434echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3435if test "${ac_cv_c_bigendian+set}" = set; then
3436  echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438  ac_cv_c_bigendian=unknown
3439# See if sys/param.h defines the BYTE_ORDER macro.
3440cat >conftest.$ac_ext <<_ACEOF
3441#line 3441 "configure"
3442#include "confdefs.h"
3443#include <sys/types.h>
3444#include <sys/param.h>
3445
3446int
3447main ()
3448{
3449#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3450 bogus endian macros
3451#endif
3452
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457rm -f conftest.$ac_objext
3458if { (eval echo "$as_me:3458: \"$ac_compile\"") >&5
3459  (eval $ac_compile) 2>&5
3460  ac_status=$?
3461  echo "$as_me:3461: \$? = $ac_status" >&5
3462  (exit $ac_status); } &&
3463         { ac_try='test -s conftest.$ac_objext'
3464  { (eval echo "$as_me:3464: \"$ac_try\"") >&5
3465  (eval $ac_try) 2>&5
3466  ac_status=$?
3467  echo "$as_me:3467: \$? = $ac_status" >&5
3468  (exit $ac_status); }; }; then
3469  # It does; now see whether it defined to BIG_ENDIAN or not.
3470cat >conftest.$ac_ext <<_ACEOF
3471#line 3471 "configure"
3472#include "confdefs.h"
3473#include <sys/types.h>
3474#include <sys/param.h>
3475
3476int
3477main ()
3478{
3479#if BYTE_ORDER != BIG_ENDIAN
3480 not big endian
3481#endif
3482
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487rm -f conftest.$ac_objext
3488if { (eval echo "$as_me:3488: \"$ac_compile\"") >&5
3489  (eval $ac_compile) 2>&5
3490  ac_status=$?
3491  echo "$as_me:3491: \$? = $ac_status" >&5
3492  (exit $ac_status); } &&
3493         { ac_try='test -s conftest.$ac_objext'
3494  { (eval echo "$as_me:3494: \"$ac_try\"") >&5
3495  (eval $ac_try) 2>&5
3496  ac_status=$?
3497  echo "$as_me:3497: \$? = $ac_status" >&5
3498  (exit $ac_status); }; }; then
3499  ac_cv_c_bigendian=yes
3500else
3501  echo "$as_me: failed program was:" >&5
3502cat conftest.$ac_ext >&5
3503ac_cv_c_bigendian=no
3504fi
3505rm -f conftest.$ac_objext conftest.$ac_ext
3506else
3507  echo "$as_me: failed program was:" >&5
3508cat conftest.$ac_ext >&5
3509fi
3510rm -f conftest.$ac_objext conftest.$ac_ext
3511if test $ac_cv_c_bigendian = unknown; then
3512if test "$cross_compiling" = yes; then
3513  { { echo "$as_me:3513: error: cannot run test program while cross compiling" >&5
3514echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3515   { (exit 1); exit 1; }; }
3516else
3517  cat >conftest.$ac_ext <<_ACEOF
3518#line 3518 "configure"
3519#include "confdefs.h"
3520int
3521main ()
3522{
3523  /* Are we little or big endian?  From Harbison&Steele.  */
3524  union
3525  {
3526    long l;
3527    char c[sizeof (long)];
3528  } u;
3529  u.l = 1;
3530  exit (u.c[sizeof (long) - 1] == 1);
3531}
3532_ACEOF
3533rm -f conftest$ac_exeext
3534if { (eval echo "$as_me:3534: \"$ac_link\"") >&5
3535  (eval $ac_link) 2>&5
3536  ac_status=$?
3537  echo "$as_me:3537: \$? = $ac_status" >&5
3538  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3539  { (eval echo "$as_me:3539: \"$ac_try\"") >&5
3540  (eval $ac_try) 2>&5
3541  ac_status=$?
3542  echo "$as_me:3542: \$? = $ac_status" >&5
3543  (exit $ac_status); }; }; then
3544  ac_cv_c_bigendian=no
3545else
3546  echo "$as_me: program exited with status $ac_status" >&5
3547echo "$as_me: failed program was:" >&5
3548cat conftest.$ac_ext >&5
3549ac_cv_c_bigendian=yes
3550fi
3551rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3552fi
3553fi
3554fi
3555echo "$as_me:3555: result: $ac_cv_c_bigendian" >&5
3556echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3557if test $ac_cv_c_bigendian = yes; then
3558
3559cat >>confdefs.h <<\EOF
3560#define WORDS_BIGENDIAN 1
3561EOF
3562
3563fi
3564
3565if test "x$GCC" = "xyes"
3566then
3567	CFLAGS="$CFLAGS -Wall"
3568fi
3569
3570MSYSLOG_VERSION="1.08g"
3571
3572cat >>confdefs.h <<EOF
3573#define MSYSLOG_VERSION_STR "$MSYSLOG_VERSION"
3574EOF
3575
3576echo msyslog version... 1
3577
3578MLIBNAME="libmsyslog.so.1" ;
3579cat >>confdefs.h <<EOF
3580#define MLIBNAME_STR "$MLIBNAME"
3581EOF
3582
3583MANPAGES="syslog.conf.5 syslogd.8"
3584
3585if test "x$prefix" = "xNONE"
3586then
3587	prefix=$ac_default_prefix
3588fi
3589cat >>confdefs.h <<EOF
3590#define INSTALL_LIBDIR "$prefix/lib"
3591EOF
3592
3593echo "$as_me:3593: checking wheter optreset is needed" >&5
3594echo $ECHO_N "checking wheter optreset is needed... $ECHO_C" >&6
3595cat >conftest.$ac_ext <<_ACEOF
3596#line 3596 "configure"
3597#include "confdefs.h"
3598#include <unistd.h>
3599int
3600main ()
3601{
3602extern int optreset; optreset = 1;
3603  ;
3604  return 0;
3605}
3606_ACEOF
3607rm -f conftest.$ac_objext conftest$ac_exeext
3608if { (eval echo "$as_me:3608: \"$ac_link\"") >&5
3609  (eval $ac_link) 2>&5
3610  ac_status=$?
3611  echo "$as_me:3611: \$? = $ac_status" >&5
3612  (exit $ac_status); } &&
3613         { ac_try='test -s conftest$ac_exeext'
3614  { (eval echo "$as_me:3614: \"$ac_try\"") >&5
3615  (eval $ac_try) 2>&5
3616  ac_status=$?
3617  echo "$as_me:3617: \$? = $ac_status" >&5
3618  (exit $ac_status); }; }; then
3619  cat >>confdefs.h <<\EOF
3620#define HAVE_OPTRESET 1
3621EOF
3622 echo "$as_me:3622: result: yes" >&5
3623echo "${ECHO_T}yes" >&6
3624else
3625  echo "$as_me: failed program was:" >&5
3626cat conftest.$ac_ext >&5
3627echo "$as_me:3627: result: no" >&5
3628echo "${ECHO_T}no" >&6
3629fi
3630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3631
3632echo "$as_me:3632: checking pidfile directory" >&5
3633echo $ECHO_N "checking pidfile directory... $ECHO_C" >&6
3634
3635for dir in "/var/run" "/etc"
3636do
3637	if test -d $dir ; then
3638		break
3639	fi
3640done
3641echo "$as_me:3641: result: root-mode pid file will go in $dir" >&5
3642echo "${ECHO_T}root-mode pid file will go in $dir" >&6
3643cat >>confdefs.h <<EOF
3644#define PID_DIR "$dir"
3645EOF
3646
3647echo "$as_me:3655: checking wether netdb.h requires _USE_IRS" >&5
3648echo $ECHO_N "checking wether netdb.h requires _USE_IRS... $ECHO_C" >&6
3649if grep _USE_IRS /usr/include/netdb.h >/dev/null ;then
3650	cat >>confdefs.h <<\EOF
3651#define _USE_IRS 1
3652EOF
3653
3654	echo "$as_me:3662: result: yes" >&5
3655echo "${ECHO_T}yes" >&6
3656else
3657	echo "$as_me:3665: result: no" >&5
3658echo "${ECHO_T}no" >&6
3659fi
3660
3661echo "$as_me:3669: checking if sigaltstack uses stack_t structure" >&5
3662echo $ECHO_N "checking if sigaltstack uses stack_t structure... $ECHO_C" >&6
3663cat >conftest.$ac_ext <<_ACEOF
3664#line 3672 "configure"
3665#include "confdefs.h"
3666#include <signal.h>
3667
3668_ACEOF
3669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3670  egrep "stack_t" >/dev/null 2>&1; then
3671
3672	cat >>confdefs.h <<\EOF
3673#define SIGALTSTACK_WITH_STACK_T 1
3674EOF
3675
3676	echo "$as_me:3684: result: yes" >&5
3677echo "${ECHO_T}yes" >&6
3678
3679else
3680
3681	echo "$as_me:3689: result: no" >&5
3682echo "${ECHO_T}no" >&6
3683
3684fi
3685rm -f conftest*
3686
3687echo "$as_me:3695: checking for daemon name" >&5
3688echo $ECHO_N "checking for daemon name... $ECHO_C" >&6
3689
3690MSYSLOG_DAEMON_NAME="syslogd";
3691
3692# Check whether --with-daemon-name or --without-daemon-name was given.
3693if test "${with_daemon_name+set}" = set; then
3694  withval="$with_daemon_name"
3695
3696	if test "X$withval" = "Xyes" ; then
3697		error_tmp="You have to specify a value, --with-daemon-name";
3698		{ { echo "$as_me:3706: error: \"$error_tmp\"" >&5
3699echo "$as_me: error: \"$error_tmp\"" >&2;}
3700   { (exit 1); exit 1; }; }
3701	else
3702		MSYSLOG_DAEMON_NAME="$withval";
3703	fi
3704
3705fi;
3706
3707echo "$as_me:3715: result: \"$MSYSLOG_DAEMON_NAME\"" >&5
3708echo "${ECHO_T}\"$MSYSLOG_DAEMON_NAME\"" >&6
3709
3710# Check whether --with-maximum-optimization or --without-maximum-optimization was given.
3711if test "${with_maximum_optimization+set}" = set; then
3712  withval="$with_maximum_optimization"
3713   maxopt="yes";
3714else
3715   maxopt="no";
3716fi;
3717
3718MAIN_CPPFLAGS="";
3719UNAME=`uname`
3720if test "$UNAME" = "OpenBSD" ; then
3721	cat >>confdefs.h <<\EOF
3722#define DLOPEN_FLAGS RTLD_LAZY
3723EOF
3724
3725	cat >>confdefs.h <<EOF
3726#define SYMBOL_PREFIX "_"
3727EOF
3728
3729	SHARED_PARAMS="-Bshareable"
3730	DCCFLAGS="-fPIC"
3731elif test "$UNAME" = "DragonFly" ; then
3732	cat >>confdefs.h <<\EOF
3733#define DLOPEN_FLAGS RTLD_LAZY
3734#define SYMBOL_PREFIX ""
3735EOF
3736
3737	SHARED_PARAMS="-Bshareable"
3738	DCCFLAGS="-fPIC"
3739	SYSLOGD_LIBS="$SYSLOGD_LIBS -Wl,-E"
3740elif test "$UNAME" = "FreeBSD" ; then
3741	cat >>confdefs.h <<\EOF
3742#define DLOPEN_FLAGS RTLD_LAZY
3743#define SYMBOL_PREFIX ""
3744EOF
3745
3746	SHARED_PARAMS="-Bshareable"
3747	DCCFLAGS="-fPIC"
3748	SYSLOGD_LIBS="$SYSLOGD_LIBS -Wl,-E"
3749elif test "$UNAME" = "Linux" ; then
3750	cat >>confdefs.h <<\EOF
3751#define DLOPEN_FLAGS RTLD_LAZY | RTLD_GLOBAL
3752EOF
3753
3754	cat >>confdefs.h <<EOF
3755#define SYMBOL_PREFIX ""
3756EOF
3757
3758	MAIN_CPPFLAGS="-Xlinker -E";
3759	SHARED_PARAMS="-Bshareable"
3760	DCCFLAGS=""
3761	cat >>confdefs.h <<\EOF
3762#define _GNU_SOURCE 1
3763EOF
3764
3765elif test "$UNAME" = "SunOS" ; then
3766	cat >>confdefs.h <<\EOF
3767#define DLOPEN_FLAGS RTLD_LAZY
3768EOF
3769
3770	cat >>confdefs.h <<\EOF
3771#define _REENTRANT 1
3772EOF
3773
3774	cat >>confdefs.h <<EOF
3775#define SYMBOL_PREFIX ""
3776EOF
3777
3778	SHARED_PARAMS="-G"
3779	DCCFLAGS="-fPIC"
3780elif test "$UNAME" = "IRIX" -o "$UNAME" = "IRIX64" ; then
3781	cat >>confdefs.h <<\EOF
3782#define DLOPEN_FLAGS RTLD_LAZY
3783EOF
3784
3785	cat >>confdefs.h <<EOF
3786#define SYMBOL_PREFIX ""
3787EOF
3788
3789	cat >>confdefs.h <<\EOF
3790#define INET6 1
3791EOF
3792
3793	CFLAGS="-D_BSD_SIGNALS"
3794	if test "x$GCC" == "xyes"
3795	then
3796		DCCFLAGS="-Bshared"
3797	else
3798		if test "x$maxopt" = "xyes"
3799		then
3800			CFLAGS="$CFLAGS -g3 -Ofast"
3801		fi
3802	fi
3803	SHARED_PARAMS="-shared -soname $MLIBNAME -all"
3804elif test "$UNAME" = "AIX" ; then
3805	cat >>confdefs.h <<\EOF
3806#define DLOPEN_FLAGS RTLD_LAZY | RTLD_GLOBAL
3807EOF
3808
3809	cat >>confdefs.h <<\EOF
3810#define NEEDS_DLOPEN_NULL 1
3811EOF
3812
3813	cat >>confdefs.h <<EOF
3814#define SYMBOL_PREFIX ""
3815EOF
3816
3817	DCCFLAGS="-shared"
3818	SHARED_PARAMS="-lc -bI:libmsyslog.imp -bexpall -bnoentry -brtl"
3819	cat > src/modules/libmsyslog.imp <<-EOF
3820		#! .
3821		dprintf
3822		logerror
3823		add_fd_input
3824		place_signal
3825		remove_fd_input
3826		printline
3827		EOF
3828
3829	SYSLOGD_LIBS="$SYSLOGD_LIBS -Wl,-bexpall"
3830else
3831	{ echo "$as_me:3821: WARNING: cannot determine system type falling to defaults" >&5
3832echo "$as_me: WARNING: cannot determine system type falling to defaults" >&2;}
3833	cat >>confdefs.h <<EOF
3834#define SYMBOL_PREFIX ""
3835EOF
3836
3837	cat >>confdefs.h <<\EOF
3838#define DLOPEN_FLAGS RTLD_LAZY
3839EOF
3840
3841	SHARED_PARAMS="-Bshareable"
3842fi
3843
3844# Name of pidfile
3845if test "$UNAME" = "Linux" ; then
3846	cat >>confdefs.h <<\EOF
3847#define PID_FILE "syslogd.pid"
3848EOF
3849
3850else
3851	cat >>confdefs.h <<\EOF
3852#define PID_FILE "syslog.pid"
3853EOF
3854
3855fi
3856
3857temp_res="no";
3858
3859# Check whether --with-bsd or --without-bsd was given.
3860if test "${with_bsd+set}" = set; then
3861  withval="$with_bsd"
3862   temp_res="$with_bsd";
3863else
3864
3865	if test "$UNAME" = "OpenBSD" -o "$UNAME" = "NetBSD" \
3866	    -o "$UNAME"  = "FreeBSD" -o "$UNAME" = "BSDi" \
3867	    -o "$UNAME"  = "DragonFly"  -o "$UNAME" = "ArchBSD" \
3868	    -o "$UNAME"  = "TrustedBSD" ; then
3869		temp_res="yes";
3870	fi
3871
3872fi;
3873if test "X$temp_res" = "Xyes" ; then
3874		MSRCS="$MSRCS im_bsd.c";
3875		MANPAGES="$MANPAGES im_bsd.8";
3876		cat >>confdefs.h <<\EOF
3877#define HAVE_BSD_IMODULE 1
3878EOF
3879
3880fi
3881
3882# Check whether --with-linux or --without-linux was given.
3883if test "${with_linux+set}" = set; then
3884  withval="$with_linux"
3885
3886	if test "$with_linux" = "yes" ; then
3887		MSRCS="$MSRCS im_linux.c"
3888		MANPAGES="$MANPAGES im_linux.8"
3889		cat >>confdefs.h <<\EOF
3890#define HAVE_LINUX_IMODULE 1
3891EOF
3892
3893	fi
3894
3895else
3896
3897	echo "$as_me:3887: checking for sys/klog.h" >&5
3898echo $ECHO_N "checking for sys/klog.h... $ECHO_C" >&6
3899if test "${ac_cv_header_sys_klog_h+set}" = set; then
3900  echo $ECHO_N "(cached) $ECHO_C" >&6
3901else
3902  cat >conftest.$ac_ext <<_ACEOF
3903#line 3893 "configure"
3904#include "confdefs.h"
3905#include <sys/klog.h>
3906_ACEOF
3907if { (eval echo "$as_me:3897: \"$ac_cpp conftest.$ac_ext\"") >&5
3908  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3909  ac_status=$?
3910  egrep -v '^ *\+' conftest.er1 >conftest.err
3911  rm -f conftest.er1
3912  cat conftest.err >&5
3913  echo "$as_me:3903: \$? = $ac_status" >&5
3914  (exit $ac_status); } >/dev/null; then
3915  if test -s conftest.err; then
3916    ac_cpp_err=$ac_c_preproc_warn_flag
3917  else
3918    ac_cpp_err=
3919  fi
3920else
3921  ac_cpp_err=yes
3922fi
3923if test -z "$ac_cpp_err"; then
3924  ac_cv_header_sys_klog_h=yes
3925else
3926  echo "$as_me: failed program was:" >&5
3927  cat conftest.$ac_ext >&5
3928  ac_cv_header_sys_klog_h=no
3929fi
3930rm -f conftest.err conftest.$ac_ext
3931fi
3932echo "$as_me:3922: result: $ac_cv_header_sys_klog_h" >&5
3933echo "${ECHO_T}$ac_cv_header_sys_klog_h" >&6
3934if test $ac_cv_header_sys_klog_h = yes; then
3935
3936		MSRCS="$MSRCS im_linux.c"
3937		MANPAGES="$MANPAGES im_linux.8"
3938		cat >>confdefs.h <<\EOF
3939#define HAVE_LINUX_IMODULE 1
3940EOF
3941
3942fi
3943
3944fi;
3945
3946temp_res="no";
3947
3948# Check whether --with-udp or --without-udp was given.
3949if test "${with_udp+set}" = set; then
3950  withval="$with_udp"
3951   temp_res="$with_udp";
3952else
3953
3954	echo "$as_me:3944: checking for sys/socket.h" >&5
3955echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6
3956if test "${ac_cv_header_sys_socket_h+set}" = set; then
3957  echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
3959  cat >conftest.$ac_ext <<_ACEOF
3960#line 3950 "configure"
3961#include "confdefs.h"
3962#include <sys/socket.h>
3963_ACEOF
3964if { (eval echo "$as_me:3954: \"$ac_cpp conftest.$ac_ext\"") >&5
3965  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3966  ac_status=$?
3967  egrep -v '^ *\+' conftest.er1 >conftest.err
3968  rm -f conftest.er1
3969  cat conftest.err >&5
3970  echo "$as_me:3960: \$? = $ac_status" >&5
3971  (exit $ac_status); } >/dev/null; then
3972  if test -s conftest.err; then
3973    ac_cpp_err=$ac_c_preproc_warn_flag
3974  else
3975    ac_cpp_err=
3976  fi
3977else
3978  ac_cpp_err=yes
3979fi
3980if test -z "$ac_cpp_err"; then
3981  ac_cv_header_sys_socket_h=yes
3982else
3983  echo "$as_me: failed program was:" >&5
3984  cat conftest.$ac_ext >&5
3985  ac_cv_header_sys_socket_h=no
3986fi
3987rm -f conftest.err conftest.$ac_ext
3988fi
3989echo "$as_me:3979: result: $ac_cv_header_sys_socket_h" >&5
3990echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6
3991if test $ac_cv_header_sys_socket_h = yes; then
3992
3993		temp_res="yes";
3994
3995fi
3996
3997fi;
3998if test "X$temp_res" = "Xyes" ; then
3999	MSRCS="$MSRCS im_udp.c om_udp.c"
4000	MANPAGES="$MANPAGES im_udp.8 om_udp.8";
4001fi
4002
4003temp_res="yes";
4004
4005# Check whether --with-unix or --without-unix was given.
4006if test "${with_unix+set}" = set; then
4007  withval="$with_unix"
4008   temp_res="$with_unix";
4009else
4010
4011	echo "$as_me:4001: checking for sys/un.h" >&5
4012echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
4013if test "${ac_cv_header_sys_un_h+set}" = set; then
4014  echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
4016  cat >conftest.$ac_ext <<_ACEOF
4017#line 4007 "configure"
4018#include "confdefs.h"
4019#include <sys/un.h>
4020_ACEOF
4021if { (eval echo "$as_me:4011: \"$ac_cpp conftest.$ac_ext\"") >&5
4022  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4023  ac_status=$?
4024  egrep -v '^ *\+' conftest.er1 >conftest.err
4025  rm -f conftest.er1
4026  cat conftest.err >&5
4027  echo "$as_me:4017: \$? = $ac_status" >&5
4028  (exit $ac_status); } >/dev/null; then
4029  if test -s conftest.err; then
4030    ac_cpp_err=$ac_c_preproc_warn_flag
4031  else
4032    ac_cpp_err=
4033  fi
4034else
4035  ac_cpp_err=yes
4036fi
4037if test -z "$ac_cpp_err"; then
4038  ac_cv_header_sys_un_h=yes
4039else
4040  echo "$as_me: failed program was:" >&5
4041  cat conftest.$ac_ext >&5
4042  ac_cv_header_sys_un_h=no
4043fi
4044rm -f conftest.err conftest.$ac_ext
4045fi
4046echo "$as_me:4036: result: $ac_cv_header_sys_un_h" >&5
4047echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
4048if test $ac_cv_header_sys_un_h = yes; then
4049   temp_res="yes";
4050fi
4051
4052fi;
4053if test "X$temp_res" = "Xyes" ; then
4054		MSRCS="$MSRCS im_unix.c"
4055		cat >>confdefs.h <<\EOF
4056#define HAVE_UNIX_IMODULE 1
4057EOF
4058
4059		MANPAGES="$MANPAGES im_unix.8"
4060fi
4061temp_res="yes";
4062
4063# Check whether --with-file or --without-file was given.
4064if test "${with_file+set}" = set; then
4065  withval="$with_file"
4066   temp_res="$with_file";
4067fi;
4068if test "X$temp_res" = "Xyes" ; then
4069		MSRCS="$MSRCS im_file.c"
4070		cat >>confdefs.h <<\EOF
4071#define HAVE_FILE_IMODULE 1
4072EOF
4073
4074		MANPAGES="$MANPAGES im_file.8"
4075fi
4076
4077temp_res=no
4078
4079# Check whether --with-streams or --without-streams was given.
4080if test "${with_streams+set}" = set; then
4081  withval="$with_streams"
4082
4083	if test "$with_streams" = "yes" ; then
4084		temp_res="yes"
4085	fi
4086
4087else
4088
4089 	echo "$as_me:4079: checking for sys/strlog.h" >&5
4090echo $ECHO_N "checking for sys/strlog.h... $ECHO_C" >&6
4091if test "${ac_cv_header_sys_strlog_h+set}" = set; then
4092  echo $ECHO_N "(cached) $ECHO_C" >&6
4093else
4094  cat >conftest.$ac_ext <<_ACEOF
4095#line 4085 "configure"
4096#include "confdefs.h"
4097#include <sys/strlog.h>
4098_ACEOF
4099if { (eval echo "$as_me:4089: \"$ac_cpp conftest.$ac_ext\"") >&5
4100  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4101  ac_status=$?
4102  egrep -v '^ *\+' conftest.er1 >conftest.err
4103  rm -f conftest.er1
4104  cat conftest.err >&5
4105  echo "$as_me:4095: \$? = $ac_status" >&5
4106  (exit $ac_status); } >/dev/null; then
4107  if test -s conftest.err; then
4108    ac_cpp_err=$ac_c_preproc_warn_flag
4109  else
4110    ac_cpp_err=
4111  fi
4112else
4113  ac_cpp_err=yes
4114fi
4115if test -z "$ac_cpp_err"; then
4116  ac_cv_header_sys_strlog_h=yes
4117else
4118  echo "$as_me: failed program was:" >&5
4119  cat conftest.$ac_ext >&5
4120  ac_cv_header_sys_strlog_h=no
4121fi
4122rm -f conftest.err conftest.$ac_ext
4123fi
4124echo "$as_me:4114: result: $ac_cv_header_sys_strlog_h" >&5
4125echo "${ECHO_T}$ac_cv_header_sys_strlog_h" >&6
4126if test $ac_cv_header_sys_strlog_h = yes; then
4127  strlog_h="yes"
4128else
4129  strlog_h="no"
4130fi
4131
4132 	echo "$as_me:4122: checking for door.h" >&5
4133echo $ECHO_N "checking for door.h... $ECHO_C" >&6
4134if test "${ac_cv_header_door_h+set}" = set; then
4135  echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137  cat >conftest.$ac_ext <<_ACEOF
4138#line 4128 "configure"
4139#include "confdefs.h"
4140#include <door.h>
4141_ACEOF
4142if { (eval echo "$as_me:4132: \"$ac_cpp conftest.$ac_ext\"") >&5
4143  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4144  ac_status=$?
4145  egrep -v '^ *\+' conftest.er1 >conftest.err
4146  rm -f conftest.er1
4147  cat conftest.err >&5
4148  echo "$as_me:4138: \$? = $ac_status" >&5
4149  (exit $ac_status); } >/dev/null; then
4150  if test -s conftest.err; then
4151    ac_cpp_err=$ac_c_preproc_warn_flag
4152  else
4153    ac_cpp_err=
4154  fi
4155else
4156  ac_cpp_err=yes
4157fi
4158if test -z "$ac_cpp_err"; then
4159  ac_cv_header_door_h=yes
4160else
4161  echo "$as_me: failed program was:" >&5
4162  cat conftest.$ac_ext >&5
4163  ac_cv_header_door_h=no
4164fi
4165rm -f conftest.err conftest.$ac_ext
4166fi
4167echo "$as_me:4157: result: $ac_cv_header_door_h" >&5
4168echo "${ECHO_T}$ac_cv_header_door_h" >&6
4169if test $ac_cv_header_door_h = yes; then
4170  door_h="yes"
4171else
4172  door_h="no"
4173fi
4174
4175	if test "$strlog_h" = "yes" -a "$door_h" = "yes" ; then
4176		temp_res="yes"
4177	fi
4178
4179fi;
4180
4181if test "$temp_res" = "yes" ; then
4182	MSRCS="$MSRCS im_streams.c"
4183	MLIBS="$MLIBS -lpthread"
4184	MANPAGES="$MANPAGES im_streams.8"
4185	SYSLOGD_LIBS="$SYSLOGD_LIBS -lthread -ldoor"
4186	cat >>confdefs.h <<\EOF
4187#define HAVE_STREAMS_IMODULE 1
4188EOF
4189
4190fi
4191echo "$as_me:4181: checking for streams module" >&5
4192echo $ECHO_N "checking for streams module... $ECHO_C" >&6
4193echo "$as_me:4183: result: $temp_res" >&5
4194echo "${ECHO_T}$temp_res" >&6
4195
4196temp_res=no
4197
4198# Check whether --with-classic or --without-classic was given.
4199if test "${with_classic+set}" = set; then
4200  withval="$with_classic"
4201   temp_res="$with_classic";
4202else
4203   temp_res="yes";
4204fi;
4205if test "X$temp_res" = "Xyes" ; then
4206	MSRCS="$MSRCS om_classic.c ttymsg.c"
4207	MANPAGES="$MANPAGES om_classic.8"
4208fi
4209
4210# Check whether --with-tcp or --without-tcp was given.
4211if test "${with_tcp+set}" = set; then
4212  withval="$with_tcp"
4213
4214	if test $with_tcp = "yes" ; then
4215		MSRCS="$MSRCS om_tcp.c im_tcp.c ip_misc.c"
4216		MANPAGES="$MANPAGES om_tcp.8 im_tcp.8"
4217		temp_res="yes"
4218	else
4219		temp_res="no"
4220	fi
4221
4222else
4223
4224	MSRCS="$MSRCS om_tcp.c im_tcp.c ip_misc.c"
4225	MANPAGES="$MANPAGES om_tcp.8 im_tcp.8"
4226	temp_res="yes"
4227
4228fi;
4229
4230if test "$temp_res" = "yes" ; then
4231	cat >conftest.$ac_ext <<_ACEOF
4232#line 4222 "configure"
4233#include "confdefs.h"
4234#include <#include <sys/socket.h> >
4235
4236_ACEOF
4237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238  egrep "sa_len" >/dev/null 2>&1; then
4239  cat >>confdefs.h <<\EOF
4240#define HAVE_SOCKADDR_SA_LEN 1
4241EOF
4242
4243fi
4244rm -f conftest*
4245
4246fi
4247
4248# Check whether --with-mysql or --without-mysql was given.
4249if test "${with_mysql+set}" = set; then
4250  withval="$with_mysql"
4251
4252	if test $with_mysql = "yes" ; then
4253		MSRCS="$MSRCS om_mysql.c"
4254		MANPAGES="$MANPAGES om_mysql.8"
4255	fi
4256
4257else
4258
4259	MSRCS="$MSRCS om_mysql.c"
4260	MANPAGES="$MANPAGES om_mysql.8"
4261	USESQL="yes"
4262
4263fi;
4264
4265# Check whether --with-pgsql or --without-pgsql was given.
4266if test "${with_pgsql+set}" = set; then
4267  withval="$with_pgsql"
4268
4269	if test $with_pgsql = "yes" ; then
4270		MSRCS="$MSRCS om_pgsql.c"
4271		MANPAGES="$MANPAGES om_pgsql.8"
4272	fi
4273
4274else
4275
4276	MSRCS="$MSRCS om_pgsql.c"
4277	MANPAGES="$MANPAGES om_pgsql.8"
4278	USESQL="yes"
4279
4280fi;
4281
4282if test "$USESQL" = "yes" ; then
4283	MSRCS="$MSRCS sql_misc.c"
4284fi
4285
4286# Check whether --with-peo or --without-peo was given.
4287if test "${with_peo+set}" = set; then
4288  withval="$with_peo"
4289
4290	if test $with_peo = "yes" ; then
4291		PEO=yes
4292	else
4293		PEO=no
4294	fi
4295
4296else
4297
4298	PEO=yes
4299
4300fi;
4301
4302HASH_SRCS="";
4303if test $PEO = "yes" ; then
4304
4305	MSRCS="$MSRCS om_peo.c"
4306	MANPAGES="$MANPAGES om_peo.8 peochk.8"
4307
4308	HASH_SRCS="hash.c";
4309	HASH_SRCS_MODULES="../peo/hash.c";
4310	HASH_OBJS_MODULES="hash.o";
4311	echo "$as_me:4301: checking for MD5Init" >&5
4312echo $ECHO_N "checking for MD5Init... $ECHO_C" >&6
4313if test "${ac_cv_func_MD5Init+set}" = set; then
4314  echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316  cat >conftest.$ac_ext <<_ACEOF
4317#line 4307 "configure"
4318#include "confdefs.h"
4319/* System header to define __stub macros and hopefully few prototypes,
4320    which can conflict with char MD5Init (); below.  */
4321#include <assert.h>
4322/* Override any gcc2 internal prototype to avoid an error.  */
4323#ifdef __cplusplus
4324extern "C"
4325#endif
4326/* We use char because int might match the return type of a gcc2
4327   builtin and then its argument prototype would still apply.  */
4328char MD5Init ();
4329char (*f) ();
4330
4331int
4332main ()
4333{
4334/* The GNU C library defines this for functions which it implements
4335    to always fail with ENOSYS.  Some functions are actually named
4336    something starting with __ and the normal name is an alias.  */
4337#if defined (__stub_MD5Init) || defined (__stub___MD5Init)
4338choke me
4339#else
4340f = MD5Init;
4341#endif
4342
4343  ;
4344  return 0;
4345}
4346_ACEOF
4347rm -f conftest.$ac_objext conftest$ac_exeext
4348if { (eval echo "$as_me:4338: \"$ac_link\"") >&5
4349  (eval $ac_link) 2>&5
4350  ac_status=$?
4351  echo "$as_me:4341: \$? = $ac_status" >&5
4352  (exit $ac_status); } &&
4353         { ac_try='test -s conftest$ac_exeext'
4354  { (eval echo "$as_me:4344: \"$ac_try\"") >&5
4355  (eval $ac_try) 2>&5
4356  ac_status=$?
4357  echo "$as_me:4347: \$? = $ac_status" >&5
4358  (exit $ac_status); }; }; then
4359  ac_cv_func_MD5Init=yes
4360else
4361  echo "$as_me: failed program was:" >&5
4362cat conftest.$ac_ext >&5
4363ac_cv_func_MD5Init=no
4364fi
4365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4366fi
4367echo "$as_me:4357: result: $ac_cv_func_MD5Init" >&5
4368echo "${ECHO_T}$ac_cv_func_MD5Init" >&6
4369if test $ac_cv_func_MD5Init = yes; then
4370  cat >>confdefs.h <<\EOF
4371#define HAVE_MD5 1
4372EOF
4373
4374else
4375  HASH_SRCS="$HASH_SRCS md5c.c";
4376	        HASH_SRCS_MODULES="$HASH_SRCS_MODULES ../peo/md5c.c";
4377		HASH_OBJS_MODULES="$HASH_OBJS_MODULES md5c.o";
4378
4379fi
4380
4381	echo "$as_me:4371: checking for SHA1Init" >&5
4382echo $ECHO_N "checking for SHA1Init... $ECHO_C" >&6
4383if test "${ac_cv_func_SHA1Init+set}" = set; then
4384  echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386  cat >conftest.$ac_ext <<_ACEOF
4387#line 4377 "configure"
4388#include "confdefs.h"
4389/* System header to define __stub macros and hopefully few prototypes,
4390    which can conflict with char SHA1Init (); below.  */
4391#include <assert.h>
4392/* Override any gcc2 internal prototype to avoid an error.  */
4393#ifdef __cplusplus
4394extern "C"
4395#endif
4396/* We use char because int might match the return type of a gcc2
4397   builtin and then its argument prototype would still apply.  */
4398char SHA1Init ();
4399char (*f) ();
4400
4401int
4402main ()
4403{
4404/* The GNU C library defines this for functions which it implements
4405    to always fail with ENOSYS.  Some functions are actually named
4406    something starting with __ and the normal name is an alias.  */
4407#if defined (__stub_SHA1Init) || defined (__stub___SHA1Init)
4408choke me
4409#else
4410f = SHA1Init;
4411#endif
4412
4413  ;
4414  return 0;
4415}
4416_ACEOF
4417rm -f conftest.$ac_objext conftest$ac_exeext
4418if { (eval echo "$as_me:4408: \"$ac_link\"") >&5
4419  (eval $ac_link) 2>&5
4420  ac_status=$?
4421  echo "$as_me:4411: \$? = $ac_status" >&5
4422  (exit $ac_status); } &&
4423         { ac_try='test -s conftest$ac_exeext'
4424  { (eval echo "$as_me:4414: \"$ac_try\"") >&5
4425  (eval $ac_try) 2>&5
4426  ac_status=$?
4427  echo "$as_me:4417: \$? = $ac_status" >&5
4428  (exit $ac_status); }; }; then
4429  ac_cv_func_SHA1Init=yes
4430else
4431  echo "$as_me: failed program was:" >&5
4432cat conftest.$ac_ext >&5
4433ac_cv_func_SHA1Init=no
4434fi
4435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4436fi
4437echo "$as_me:4427: result: $ac_cv_func_SHA1Init" >&5
4438echo "${ECHO_T}$ac_cv_func_SHA1Init" >&6
4439if test $ac_cv_func_SHA1Init = yes; then
4440  cat >>confdefs.h <<\EOF
4441#define HAVE_SHA1 1
4442EOF
4443
4444else
4445  HASH_SRCS="$HASH_SRCS sha1.c";
4446	        HASH_SRCS_MODULES="$HASH_SRCS_MODULES ../peo/sha1.c";
4447		HASH_OBJS_MODULES="$HASH_OBJS_MODULES sha1.o";
4448
4449fi
4450
4451	echo "$as_me:4441: checking for RMD160Init" >&5
4452echo $ECHO_N "checking for RMD160Init... $ECHO_C" >&6
4453if test "${ac_cv_func_RMD160Init+set}" = set; then
4454  echo $ECHO_N "(cached) $ECHO_C" >&6
4455else
4456  cat >conftest.$ac_ext <<_ACEOF
4457#line 4447 "configure"
4458#include "confdefs.h"
4459/* System header to define __stub macros and hopefully few prototypes,
4460    which can conflict with char RMD160Init (); below.  */
4461#include <assert.h>
4462/* Override any gcc2 internal prototype to avoid an error.  */
4463#ifdef __cplusplus
4464extern "C"
4465#endif
4466/* We use char because int might match the return type of a gcc2
4467   builtin and then its argument prototype would still apply.  */
4468char RMD160Init ();
4469char (*f) ();
4470
4471int
4472main ()
4473{
4474/* The GNU C library defines this for functions which it implements
4475    to always fail with ENOSYS.  Some functions are actually named
4476    something starting with __ and the normal name is an alias.  */
4477#if defined (__stub_RMD160Init) || defined (__stub___RMD160Init)
4478choke me
4479#else
4480f = RMD160Init;
4481#endif
4482
4483  ;
4484  return 0;
4485}
4486_ACEOF
4487rm -f conftest.$ac_objext conftest$ac_exeext
4488if { (eval echo "$as_me:4478: \"$ac_link\"") >&5
4489  (eval $ac_link) 2>&5
4490  ac_status=$?
4491  echo "$as_me:4481: \$? = $ac_status" >&5
4492  (exit $ac_status); } &&
4493         { ac_try='test -s conftest$ac_exeext'
4494  { (eval echo "$as_me:4484: \"$ac_try\"") >&5
4495  (eval $ac_try) 2>&5
4496  ac_status=$?
4497  echo "$as_me:4487: \$? = $ac_status" >&5
4498  (exit $ac_status); }; }; then
4499  ac_cv_func_RMD160Init=yes
4500else
4501  echo "$as_me: failed program was:" >&5
4502cat conftest.$ac_ext >&5
4503ac_cv_func_RMD160Init=no
4504fi
4505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4506fi
4507echo "$as_me:4497: result: $ac_cv_func_RMD160Init" >&5
4508echo "${ECHO_T}$ac_cv_func_RMD160Init" >&6
4509if test $ac_cv_func_RMD160Init = yes; then
4510  cat >>confdefs.h <<\EOF
4511#define HAVE_RMD160 1
4512EOF
4513
4514else
4515  HASH_SRCS="$HASH_SRCS rmd160.c";
4516	        HASH_SRCS_MODULES="$HASH_SRCS_MODULES ../peo/rmd160.c";
4517		HASH_OBJS_MODULES="$HASH_OBJS_MODULES rmd160.o";
4518
4519fi
4520
4521	if test -r /dev/srandom ; then
4522		cat >>confdefs.h <<\EOF
4523#define HAVE_SRANDOM 1
4524EOF
4525
4526	fi
4527fi
4528
4529# Check whether --with-regex or --without-regex was given.
4530if test "${with_regex+set}" = set; then
4531  withval="$with_regex"
4532
4533	if test $with_regex = "yes" ; then
4534		MSRCS="$MSRCS om_regex.c"
4535		MANPAGES="$MANPAGES om_regex.8"
4536	fi
4537
4538else
4539
4540	echo "$as_me:4530: checking for regex.h" >&5
4541echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
4542if test "${ac_cv_header_regex_h+set}" = set; then
4543  echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545  cat >conftest.$ac_ext <<_ACEOF
4546#line 4536 "configure"
4547#include "confdefs.h"
4548#include <regex.h>
4549_ACEOF
4550if { (eval echo "$as_me:4540: \"$ac_cpp conftest.$ac_ext\"") >&5
4551  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4552  ac_status=$?
4553  egrep -v '^ *\+' conftest.er1 >conftest.err
4554  rm -f conftest.er1
4555  cat conftest.err >&5
4556  echo "$as_me:4546: \$? = $ac_status" >&5
4557  (exit $ac_status); } >/dev/null; then
4558  if test -s conftest.err; then
4559    ac_cpp_err=$ac_c_preproc_warn_flag
4560  else
4561    ac_cpp_err=
4562  fi
4563else
4564  ac_cpp_err=yes
4565fi
4566if test -z "$ac_cpp_err"; then
4567  ac_cv_header_regex_h=yes
4568else
4569  echo "$as_me: failed program was:" >&5
4570  cat conftest.$ac_ext >&5
4571  ac_cv_header_regex_h=no
4572fi
4573rm -f conftest.err conftest.$ac_ext
4574fi
4575echo "$as_me:4565: result: $ac_cv_header_regex_h" >&5
4576echo "${ECHO_T}$ac_cv_header_regex_h" >&6
4577if test $ac_cv_header_regex_h = yes; then
4578
4579		MSRCS="$MSRCS om_regex.c"
4580		MANPAGES="$MANPAGES om_regex.8"
4581
4582fi
4583
4584fi;
4585
4586cat >confcache <<\_ACEOF
4587# This file is a shell script that caches the results of configure
4588# tests run on this system so they can be shared between configure
4589# scripts and configure runs, see configure's option --config-cache.
4590# It is not useful on other systems.  If it contains results you don't
4591# want to keep, you may remove or edit it.
4592#
4593# config.status only pays attention to the cache file if you give it
4594# the --recheck option to rerun configure.
4595#
4596# `ac_cv_env_foo' variables (set or unset) will be overriden when
4597# loading this file, other *unset* `ac_cv_foo' will be assigned the
4598# following values.
4599
4600_ACEOF
4601
4602# The following way of writing the cache mishandles newlines in values,
4603# but we know of no workaround that is simple, portable, and efficient.
4604# So, don't put newlines in cache variables' values.
4605# Ultrix sh set writes to stderr and can't be redirected directly,
4606# and sets the high bit in the cache file unless we assign to the vars.
4607{
4608  (set) 2>&1 |
4609    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4610    *ac_space=\ *)
4611      # `set' does not quote correctly, so add quotes (double-quote
4612      # substitution turns \\\\ into \\, and sed turns \\ into \).
4613      sed -n \
4614        "s/'/'\\\\''/g;
4615    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4616      ;;
4617    *)
4618      # `set' quotes correctly as required by POSIX, so do not add quotes.
4619      sed -n \
4620        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4621      ;;
4622    esac;
4623} |
4624  sed '
4625     t clear
4626     : clear
4627     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4628     t end
4629     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4630     : end' >>confcache
4631if cmp -s $cache_file confcache; then :; else
4632  if test -w $cache_file; then
4633    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4634    cat confcache >$cache_file
4635  else
4636    echo "not updating unwritable cache $cache_file"
4637  fi
4638fi
4639rm -f confcache
4640
4641echo "$as_me:4631: checking for socklen_t" >&5
4642echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4643if test "${ac_cv_type_socklen_t+set}" = set; then
4644  echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646  cat >conftest.$ac_ext <<_ACEOF
4647#line 4637 "configure"
4648#include "confdefs.h"
4649#include <stdio.h>
4650#include <sys/socket.h>
4651#include <sys/types.h>
4652
4653int
4654main ()
4655{
4656if ((socklen_t *) 0)
4657  return 0;
4658if (sizeof (socklen_t))
4659  return 0;
4660  ;
4661  return 0;
4662}
4663_ACEOF
4664rm -f conftest.$ac_objext
4665if { (eval echo "$as_me:4655: \"$ac_compile\"") >&5
4666  (eval $ac_compile) 2>&5
4667  ac_status=$?
4668  echo "$as_me:4658: \$? = $ac_status" >&5
4669  (exit $ac_status); } &&
4670         { ac_try='test -s conftest.$ac_objext'
4671  { (eval echo "$as_me:4661: \"$ac_try\"") >&5
4672  (eval $ac_try) 2>&5
4673  ac_status=$?
4674  echo "$as_me:4664: \$? = $ac_status" >&5
4675  (exit $ac_status); }; }; then
4676  ac_cv_type_socklen_t=yes
4677else
4678  echo "$as_me: failed program was:" >&5
4679cat conftest.$ac_ext >&5
4680ac_cv_type_socklen_t=no
4681fi
4682rm -f conftest.$ac_objext conftest.$ac_ext
4683fi
4684echo "$as_me:4674: result: $ac_cv_type_socklen_t" >&5
4685echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4686if test $ac_cv_type_socklen_t = yes; then
4687
4688cat >>confdefs.h <<EOF
4689#define HAVE_SOCKLEN_T 1
4690EOF
4691
4692fi
4693
4694echo "$as_me:4684: checking for uint32_t" >&5
4695echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4696if test "${ac_cv_type_uint32_t+set}" = set; then
4697  echo $ECHO_N "(cached) $ECHO_C" >&6
4698else
4699  cat >conftest.$ac_ext <<_ACEOF
4700#line 4690 "configure"
4701#include "confdefs.h"
4702$ac_includes_default
4703int
4704main ()
4705{
4706if ((uint32_t *) 0)
4707  return 0;
4708if (sizeof (uint32_t))
4709  return 0;
4710  ;
4711  return 0;
4712}
4713_ACEOF
4714rm -f conftest.$ac_objext
4715if { (eval echo "$as_me:4705: \"$ac_compile\"") >&5
4716  (eval $ac_compile) 2>&5
4717  ac_status=$?
4718  echo "$as_me:4708: \$? = $ac_status" >&5
4719  (exit $ac_status); } &&
4720         { ac_try='test -s conftest.$ac_objext'
4721  { (eval echo "$as_me:4711: \"$ac_try\"") >&5
4722  (eval $ac_try) 2>&5
4723  ac_status=$?
4724  echo "$as_me:4714: \$? = $ac_status" >&5
4725  (exit $ac_status); }; }; then
4726  ac_cv_type_uint32_t=yes
4727else
4728  echo "$as_me: failed program was:" >&5
4729cat conftest.$ac_ext >&5
4730ac_cv_type_uint32_t=no
4731fi
4732rm -f conftest.$ac_objext conftest.$ac_ext
4733fi
4734echo "$as_me:4724: result: $ac_cv_type_uint32_t" >&5
4735echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4736if test $ac_cv_type_uint32_t = yes; then
4737
4738cat >>confdefs.h <<EOF
4739#define HAVE_UINT32_T 1
4740EOF
4741
4742fi
4743
4744echo "$as_me:4734: checking for uint64_t" >&5
4745echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4746if test "${ac_cv_type_uint64_t+set}" = set; then
4747  echo $ECHO_N "(cached) $ECHO_C" >&6
4748else
4749  cat >conftest.$ac_ext <<_ACEOF
4750#line 4740 "configure"
4751#include "confdefs.h"
4752$ac_includes_default
4753int
4754main ()
4755{
4756if ((uint64_t *) 0)
4757  return 0;
4758if (sizeof (uint64_t))
4759  return 0;
4760  ;
4761  return 0;
4762}
4763_ACEOF
4764rm -f conftest.$ac_objext
4765if { (eval echo "$as_me:4755: \"$ac_compile\"") >&5
4766  (eval $ac_compile) 2>&5
4767  ac_status=$?
4768  echo "$as_me:4758: \$? = $ac_status" >&5
4769  (exit $ac_status); } &&
4770         { ac_try='test -s conftest.$ac_objext'
4771  { (eval echo "$as_me:4761: \"$ac_try\"") >&5
4772  (eval $ac_try) 2>&5
4773  ac_status=$?
4774  echo "$as_me:4764: \$? = $ac_status" >&5
4775  (exit $ac_status); }; }; then
4776  ac_cv_type_uint64_t=yes
4777else
4778  echo "$as_me: failed program was:" >&5
4779cat conftest.$ac_ext >&5
4780ac_cv_type_uint64_t=no
4781fi
4782rm -f conftest.$ac_objext conftest.$ac_ext
4783fi
4784echo "$as_me:4774: result: $ac_cv_type_uint64_t" >&5
4785echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4786if test $ac_cv_type_uint64_t = yes; then
4787
4788cat >>confdefs.h <<EOF
4789#define HAVE_UINT64_T 1
4790EOF
4791
4792fi
4793
4794echo "$as_me:4784: checking for u_int32_t" >&5
4795echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4796if test "${ac_cv_type_u_int32_t+set}" = set; then
4797  echo $ECHO_N "(cached) $ECHO_C" >&6
4798else
4799  cat >conftest.$ac_ext <<_ACEOF
4800#line 4790 "configure"
4801#include "confdefs.h"
4802$ac_includes_default
4803int
4804main ()
4805{
4806if ((u_int32_t *) 0)
4807  return 0;
4808if (sizeof (u_int32_t))
4809  return 0;
4810  ;
4811  return 0;
4812}
4813_ACEOF
4814rm -f conftest.$ac_objext
4815if { (eval echo "$as_me:4805: \"$ac_compile\"") >&5
4816  (eval $ac_compile) 2>&5
4817  ac_status=$?
4818  echo "$as_me:4808: \$? = $ac_status" >&5
4819  (exit $ac_status); } &&
4820         { ac_try='test -s conftest.$ac_objext'
4821  { (eval echo "$as_me:4811: \"$ac_try\"") >&5
4822  (eval $ac_try) 2>&5
4823  ac_status=$?
4824  echo "$as_me:4814: \$? = $ac_status" >&5
4825  (exit $ac_status); }; }; then
4826  ac_cv_type_u_int32_t=yes
4827else
4828  echo "$as_me: failed program was:" >&5
4829cat conftest.$ac_ext >&5
4830ac_cv_type_u_int32_t=no
4831fi
4832rm -f conftest.$ac_objext conftest.$ac_ext
4833fi
4834echo "$as_me:4824: result: $ac_cv_type_u_int32_t" >&5
4835echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4836if test $ac_cv_type_u_int32_t = yes; then
4837
4838cat >>confdefs.h <<EOF
4839#define HAVE_U_INT32_T 1
4840EOF
4841
4842fi
4843
4844echo "$as_me:4834: checking for u_int64_t" >&5
4845echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4846if test "${ac_cv_type_u_int64_t+set}" = set; then
4847  echo $ECHO_N "(cached) $ECHO_C" >&6
4848else
4849  cat >conftest.$ac_ext <<_ACEOF
4850#line 4840 "configure"
4851#include "confdefs.h"
4852$ac_includes_default
4853int
4854main ()
4855{
4856if ((u_int64_t *) 0)
4857  return 0;
4858if (sizeof (u_int64_t))
4859  return 0;
4860  ;
4861  return 0;
4862}
4863_ACEOF
4864rm -f conftest.$ac_objext
4865if { (eval echo "$as_me:4855: \"$ac_compile\"") >&5
4866  (eval $ac_compile) 2>&5
4867  ac_status=$?
4868  echo "$as_me:4858: \$? = $ac_status" >&5
4869  (exit $ac_status); } &&
4870         { ac_try='test -s conftest.$ac_objext'
4871  { (eval echo "$as_me:4861: \"$ac_try\"") >&5
4872  (eval $ac_try) 2>&5
4873  ac_status=$?
4874  echo "$as_me:4864: \$? = $ac_status" >&5
4875  (exit $ac_status); }; }; then
4876  ac_cv_type_u_int64_t=yes
4877else
4878  echo "$as_me: failed program was:" >&5
4879cat conftest.$ac_ext >&5
4880ac_cv_type_u_int64_t=no
4881fi
4882rm -f conftest.$ac_objext conftest.$ac_ext
4883fi
4884echo "$as_me:4874: result: $ac_cv_type_u_int64_t" >&5
4885echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4886if test $ac_cv_type_u_int64_t = yes; then
4887
4888cat >>confdefs.h <<EOF
4889#define HAVE_U_INT64_T 1
4890EOF
4891
4892fi
4893
4894echo "$as_me:4884: checking for __uint32_t" >&5
4895echo $ECHO_N "checking for __uint32_t... $ECHO_C" >&6
4896if test "${ac_cv_type___uint32_t+set}" = set; then
4897  echo $ECHO_N "(cached) $ECHO_C" >&6
4898else
4899  cat >conftest.$ac_ext <<_ACEOF
4900#line 4890 "configure"
4901#include "confdefs.h"
4902$ac_includes_default
4903int
4904main ()
4905{
4906if ((__uint32_t *) 0)
4907  return 0;
4908if (sizeof (__uint32_t))
4909  return 0;
4910  ;
4911  return 0;
4912}
4913_ACEOF
4914rm -f conftest.$ac_objext
4915if { (eval echo "$as_me:4905: \"$ac_compile\"") >&5
4916  (eval $ac_compile) 2>&5
4917  ac_status=$?
4918  echo "$as_me:4908: \$? = $ac_status" >&5
4919  (exit $ac_status); } &&
4920         { ac_try='test -s conftest.$ac_objext'
4921  { (eval echo "$as_me:4911: \"$ac_try\"") >&5
4922  (eval $ac_try) 2>&5
4923  ac_status=$?
4924  echo "$as_me:4914: \$? = $ac_status" >&5
4925  (exit $ac_status); }; }; then
4926  ac_cv_type___uint32_t=yes
4927else
4928  echo "$as_me: failed program was:" >&5
4929cat conftest.$ac_ext >&5
4930ac_cv_type___uint32_t=no
4931fi
4932rm -f conftest.$ac_objext conftest.$ac_ext
4933fi
4934echo "$as_me:4924: result: $ac_cv_type___uint32_t" >&5
4935echo "${ECHO_T}$ac_cv_type___uint32_t" >&6
4936if test $ac_cv_type___uint32_t = yes; then
4937
4938cat >>confdefs.h <<EOF
4939#define HAVE___UINT32_T 1
4940EOF
4941
4942fi
4943
4944echo "$as_me:4934: checking for __uint64_t" >&5
4945echo $ECHO_N "checking for __uint64_t... $ECHO_C" >&6
4946if test "${ac_cv_type___uint64_t+set}" = set; then
4947  echo $ECHO_N "(cached) $ECHO_C" >&6
4948else
4949  cat >conftest.$ac_ext <<_ACEOF
4950#line 4940 "configure"
4951#include "confdefs.h"
4952$ac_includes_default
4953int
4954main ()
4955{
4956if ((__uint64_t *) 0)
4957  return 0;
4958if (sizeof (__uint64_t))
4959  return 0;
4960  ;
4961  return 0;
4962}
4963_ACEOF
4964rm -f conftest.$ac_objext
4965if { (eval echo "$as_me:4955: \"$ac_compile\"") >&5
4966  (eval $ac_compile) 2>&5
4967  ac_status=$?
4968  echo "$as_me:4958: \$? = $ac_status" >&5
4969  (exit $ac_status); } &&
4970         { ac_try='test -s conftest.$ac_objext'
4971  { (eval echo "$as_me:4961: \"$ac_try\"") >&5
4972  (eval $ac_try) 2>&5
4973  ac_status=$?
4974  echo "$as_me:4964: \$? = $ac_status" >&5
4975  (exit $ac_status); }; }; then
4976  ac_cv_type___uint64_t=yes
4977else
4978  echo "$as_me: failed program was:" >&5
4979cat conftest.$ac_ext >&5
4980ac_cv_type___uint64_t=no
4981fi
4982rm -f conftest.$ac_objext conftest.$ac_ext
4983fi
4984echo "$as_me:4974: result: $ac_cv_type___uint64_t" >&5
4985echo "${ECHO_T}$ac_cv_type___uint64_t" >&6
4986if test $ac_cv_type___uint64_t = yes; then
4987
4988cat >>confdefs.h <<EOF
4989#define HAVE___UINT64_T 1
4990EOF
4991
4992fi
4993
4994echo "$as_me:4984: checking for CODE" >&5
4995echo $ECHO_N "checking for CODE... $ECHO_C" >&6
4996if test "${ac_cv_type_CODE+set}" = set; then
4997  echo $ECHO_N "(cached) $ECHO_C" >&6
4998else
4999  cat >conftest.$ac_ext <<_ACEOF
5000#line 4990 "configure"
5001#include "confdefs.h"
5002#include <stdio.h>
5003#define SYSLOG_NAMES
5004#include <syslog.h>
5005
5006int
5007main ()
5008{
5009if ((CODE *) 0)
5010  return 0;
5011if (sizeof (CODE))
5012  return 0;
5013  ;
5014  return 0;
5015}
5016_ACEOF
5017rm -f conftest.$ac_objext
5018if { (eval echo "$as_me:5008: \"$ac_compile\"") >&5
5019  (eval $ac_compile) 2>&5
5020  ac_status=$?
5021  echo "$as_me:5011: \$? = $ac_status" >&5
5022  (exit $ac_status); } &&
5023         { ac_try='test -s conftest.$ac_objext'
5024  { (eval echo "$as_me:5014: \"$ac_try\"") >&5
5025  (eval $ac_try) 2>&5
5026  ac_status=$?
5027  echo "$as_me:5017: \$? = $ac_status" >&5
5028  (exit $ac_status); }; }; then
5029  ac_cv_type_CODE=yes
5030else
5031  echo "$as_me: failed program was:" >&5
5032cat conftest.$ac_ext >&5
5033ac_cv_type_CODE=no
5034fi
5035rm -f conftest.$ac_objext conftest.$ac_ext
5036fi
5037echo "$as_me:5027: result: $ac_cv_type_CODE" >&5
5038echo "${ECHO_T}$ac_cv_type_CODE" >&6
5039if test $ac_cv_type_CODE = yes; then
5040
5041cat >>confdefs.h <<EOF
5042#define HAVE_CODE 1
5043EOF
5044
5045fi
5046
5047ac_config_files="$ac_config_files Makefile src/Makefile src/modules/Makefile src/peo/Makefile src/man/Makefile src/man/BSDmakefile src/man/GNUmakefile packaging/Makefile packaging/OpenBSD/Makefile packaging/OpenBSD/pkg/PLIST packaging/OpenBSD-devel/Makefile"
5048cat >confcache <<\_ACEOF
5049# This file is a shell script that caches the results of configure
5050# tests run on this system so they can be shared between configure
5051# scripts and configure runs, see configure's option --config-cache.
5052# It is not useful on other systems.  If it contains results you don't
5053# want to keep, you may remove or edit it.
5054#
5055# config.status only pays attention to the cache file if you give it
5056# the --recheck option to rerun configure.
5057#
5058# `ac_cv_env_foo' variables (set or unset) will be overriden when
5059# loading this file, other *unset* `ac_cv_foo' will be assigned the
5060# following values.
5061
5062_ACEOF
5063
5064# The following way of writing the cache mishandles newlines in values,
5065# but we know of no workaround that is simple, portable, and efficient.
5066# So, don't put newlines in cache variables' values.
5067# Ultrix sh set writes to stderr and can't be redirected directly,
5068# and sets the high bit in the cache file unless we assign to the vars.
5069{
5070  (set) 2>&1 |
5071    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5072    *ac_space=\ *)
5073      # `set' does not quote correctly, so add quotes (double-quote
5074      # substitution turns \\\\ into \\, and sed turns \\ into \).
5075      sed -n \
5076        "s/'/'\\\\''/g;
5077    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5078      ;;
5079    *)
5080      # `set' quotes correctly as required by POSIX, so do not add quotes.
5081      sed -n \
5082        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5083      ;;
5084    esac;
5085} |
5086  sed '
5087     t clear
5088     : clear
5089     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5090     t end
5091     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5092     : end' >>confcache
5093if cmp -s $cache_file confcache; then :; else
5094  if test -w $cache_file; then
5095    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5096    cat confcache >$cache_file
5097  else
5098    echo "not updating unwritable cache $cache_file"
5099  fi
5100fi
5101rm -f confcache
5102
5103test "x$prefix" = xNONE && prefix=$ac_default_prefix
5104# Let make expand exec_prefix.
5105test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5106
5107# VPATH may cause trouble with some makes, so we remove $(srcdir),
5108# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5109# trailing colons and then remove the whole line if VPATH becomes empty
5110# (actually we leave an empty line to preserve line numbers).
5111if test "x$srcdir" = x.; then
5112  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
5113s/:*\$(srcdir):*/:/;
5114s/:*\${srcdir}:*/:/;
5115s/:*@srcdir@:*/:/;
5116s/^\([^=]*=[ 	]*\):*/\1/;
5117s/:*$//;
5118s/^[^=]*=[ 	]*$//;
5119}'
5120fi
5121
5122DEFS=-DHAVE_CONFIG_H
5123
5124: ${CONFIG_STATUS=./config.status}
5125ac_clean_files_save=$ac_clean_files
5126ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5127{ echo "$as_me:5117: creating $CONFIG_STATUS" >&5
5128echo "$as_me: creating $CONFIG_STATUS" >&6;}
5129cat >$CONFIG_STATUS <<_ACEOF
5130#! $SHELL
5131# Generated automatically by configure.
5132# Run this file to recreate the current configuration.
5133# Compiler output produced by configure, useful for debugging
5134# configure, is in config.log if it exists.
5135
5136debug=false
5137SHELL=\${CONFIG_SHELL-$SHELL}
5138ac_cs_invocation="\$0 \$@"
5139
5140_ACEOF
5141
5142cat >>$CONFIG_STATUS <<\_ACEOF
5143# Be Bourne compatible
5144if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5145  emulate sh
5146  NULLCMD=:
5147elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5148  set -o posix
5149fi
5150
5151# Name of the executable.
5152as_me=`echo "$0" |sed 's,.*[\\/],,'`
5153
5154if expr a : '\(a\)' >/dev/null 2>&1; then
5155  as_expr=expr
5156else
5157  as_expr=false
5158fi
5159
5160rm -f conf$$ conf$$.exe conf$$.file
5161echo >conf$$.file
5162if ln -s conf$$.file conf$$ 2>/dev/null; then
5163  # We could just check for DJGPP; but this test a) works b) is more generic
5164  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5165  if test -f conf$$.exe; then
5166    # Don't use ln at all; we don't have any links
5167    as_ln_s='cp -p'
5168  else
5169    as_ln_s='ln -s'
5170  fi
5171elif ln conf$$.file conf$$ 2>/dev/null; then
5172  as_ln_s=ln
5173else
5174  as_ln_s='cp -p'
5175fi
5176rm -f conf$$ conf$$.exe conf$$.file
5177
5178as_executable_p="test -f"
5179
5180# Support unset when possible.
5181if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5182  as_unset=unset
5183else
5184  as_unset=false
5185fi
5186
5187# NLS nuisances.
5188$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5189$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5190$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5191$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5192$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5193$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5194$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5195$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5196
5197# IFS
5198# We need space, tab and new line, in precisely that order.
5199as_nl='
5200'
5201IFS=" 	$as_nl"
5202
5203# CDPATH.
5204$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5205
5206exec 6>&1
5207
5208_ACEOF
5209
5210# Files that config.status was made for.
5211if test -n "$ac_config_files"; then
5212  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5213fi
5214
5215if test -n "$ac_config_headers"; then
5216  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5217fi
5218
5219if test -n "$ac_config_links"; then
5220  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5221fi
5222
5223if test -n "$ac_config_commands"; then
5224  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5225fi
5226
5227cat >>$CONFIG_STATUS <<\EOF
5228
5229ac_cs_usage="\
5230\`$as_me' instantiates files from templates according to the
5231current configuration.
5232
5233Usage: $0 [OPTIONS] [FILE]...
5234
5235  -h, --help       print this help, then exit
5236  -V, --version    print version number, then exit
5237  -d, --debug      don't remove temporary files
5238      --recheck    update $as_me by reconfiguring in the same conditions
5239  --file=FILE[:TEMPLATE]
5240                   instantiate the configuration file FILE
5241  --header=FILE[:TEMPLATE]
5242                   instantiate the configuration header FILE
5243
5244Configuration files:
5245$config_files
5246
5247Configuration headers:
5248$config_headers
5249
5250Report bugs to <bug-autoconf@gnu.org>."
5251EOF
5252
5253cat >>$CONFIG_STATUS <<EOF
5254ac_cs_version="\\
5255config.status
5256configured by $0, generated by GNU Autoconf 2.52,
5257  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5258
5259Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5260Free Software Foundation, Inc.
5261This config.status script is free software; the Free Software Foundation
5262gives unlimited permission to copy, distribute and modify it."
5263srcdir=$srcdir
5264INSTALL="$INSTALL"
5265EOF
5266
5267cat >>$CONFIG_STATUS <<\EOF
5268# If no file are specified by the user, then we need to provide default
5269# value.  By we need to know if files were specified by the user.
5270ac_need_defaults=:
5271while test $# != 0
5272do
5273  case $1 in
5274  --*=*)
5275    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5276    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5277    shift
5278    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5279    shift
5280    ;;
5281  -*);;
5282  *) # This is not an option, so the user has probably given explicit
5283     # arguments.
5284     ac_need_defaults=false;;
5285  esac
5286
5287  case $1 in
5288  # Handling of the options.
5289EOF
5290cat >>$CONFIG_STATUS <<EOF
5291  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5292    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5293    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5294EOF
5295cat >>$CONFIG_STATUS <<\EOF
5296  --version | --vers* | -V )
5297    echo "$ac_cs_version"; exit 0 ;;
5298  --he | --h)
5299    # Conflict between --help and --header
5300    { { echo "$as_me:5290: error: ambiguous option: $1
5301Try \`$0 --help' for more information." >&5
5302echo "$as_me: error: ambiguous option: $1
5303Try \`$0 --help' for more information." >&2;}
5304   { (exit 1); exit 1; }; };;
5305  --help | --hel | -h )
5306    echo "$ac_cs_usage"; exit 0 ;;
5307  --debug | --d* | -d )
5308    debug=: ;;
5309  --file | --fil | --fi | --f )
5310    shift
5311    CONFIG_FILES="$CONFIG_FILES $1"
5312    ac_need_defaults=false;;
5313  --header | --heade | --head | --hea )
5314    shift
5315    CONFIG_HEADERS="$CONFIG_HEADERS $1"
5316    ac_need_defaults=false;;
5317
5318  # This is an error.
5319  -*) { { echo "$as_me:5309: error: unrecognized option: $1
5320Try \`$0 --help' for more information." >&5
5321echo "$as_me: error: unrecognized option: $1
5322Try \`$0 --help' for more information." >&2;}
5323   { (exit 1); exit 1; }; } ;;
5324
5325  *) ac_config_targets="$ac_config_targets $1" ;;
5326
5327  esac
5328  shift
5329done
5330
5331exec 5>>config.log
5332cat >&5 << _ACEOF
5333
5334## ----------------------- ##
5335## Running config.status.  ##
5336## ----------------------- ##
5337
5338This file was extended by $as_me 2.52, executed with
5339  CONFIG_FILES    = $CONFIG_FILES
5340  CONFIG_HEADERS  = $CONFIG_HEADERS
5341  CONFIG_LINKS    = $CONFIG_LINKS
5342  CONFIG_COMMANDS = $CONFIG_COMMANDS
5343  > $ac_cs_invocation
5344on `(hostname || uname -n) 2>/dev/null | sed 1q`
5345
5346_ACEOF
5347EOF
5348
5349cat >>$CONFIG_STATUS <<\EOF
5350for ac_config_target in $ac_config_targets
5351do
5352  case "$ac_config_target" in
5353  # Handling of arguments.
5354  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5355  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5356  "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
5357  "src/peo/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/peo/Makefile" ;;
5358  "src/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/man/Makefile" ;;
5359  "src/man/BSDmakefile" ) CONFIG_FILES="$CONFIG_FILES src/man/BSDmakefile" ;;
5360  "src/man/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES src/man/GNUmakefile" ;;
5361  "packaging/Makefile" ) CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
5362  "packaging/OpenBSD/Makefile" ) CONFIG_FILES="$CONFIG_FILES packaging/OpenBSD/Makefile" ;;
5363  "packaging/OpenBSD/pkg/PLIST" ) CONFIG_FILES="$CONFIG_FILES packaging/OpenBSD/pkg/PLIST" ;;
5364  "packaging/OpenBSD-devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES packaging/OpenBSD-devel/Makefile" ;;
5365  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
5366  *) { { echo "$as_me:5356: error: invalid argument: $ac_config_target" >&5
5367echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5368   { (exit 1); exit 1; }; };;
5369  esac
5370done
5371
5372# If the user did not use the arguments to specify the items to instantiate,
5373# then the envvar interface is used.  Set only those that are not.
5374# We use the long form for the default assignment because of an extremely
5375# bizarre bug on SunOS 4.1.3.
5376if $ac_need_defaults; then
5377  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5378  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5379fi
5380
5381# Create a temporary directory, and hook for its removal unless debugging.
5382$debug ||
5383{
5384  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5385  trap '{ (exit 1); exit 1; }' 1 2 13 15
5386}
5387
5388# Create a (secure) tmp directory for tmp files.
5389: ${TMPDIR=/tmp}
5390{
5391  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5392  test -n "$tmp" && test -d "$tmp"
5393}  ||
5394{
5395  tmp=$TMPDIR/cs$$-$RANDOM
5396  (umask 077 && mkdir $tmp)
5397} ||
5398{
5399   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5400   { (exit 1); exit 1; }
5401}
5402
5403EOF
5404
5405cat >>$CONFIG_STATUS <<EOF
5406
5407#
5408# CONFIG_FILES section.
5409#
5410
5411# No need to generate the scripts if there are no CONFIG_FILES.
5412# This happens for instance when ./config.status config.h
5413if test -n "\$CONFIG_FILES"; then
5414  # Protect against being on the right side of a sed subst in config.status.
5415  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5416   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5417s,@SHELL@,$SHELL,;t t
5418s,@exec_prefix@,$exec_prefix,;t t
5419s,@prefix@,$prefix,;t t
5420s,@program_transform_name@,$program_transform_name,;t t
5421s,@bindir@,$bindir,;t t
5422s,@sbindir@,$sbindir,;t t
5423s,@libexecdir@,$libexecdir,;t t
5424s,@datadir@,$datadir,;t t
5425s,@sysconfdir@,$sysconfdir,;t t
5426s,@sharedstatedir@,$sharedstatedir,;t t
5427s,@localstatedir@,$localstatedir,;t t
5428s,@libdir@,$libdir,;t t
5429s,@includedir@,$includedir,;t t
5430s,@oldincludedir@,$oldincludedir,;t t
5431s,@infodir@,$infodir,;t t
5432s,@mandir@,$mandir,;t t
5433s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5434s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5435s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5436s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5437s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5438s,@build_alias@,$build_alias,;t t
5439s,@host_alias@,$host_alias,;t t
5440s,@target_alias@,$target_alias,;t t
5441s,@ECHO_C@,$ECHO_C,;t t
5442s,@ECHO_N@,$ECHO_N,;t t
5443s,@ECHO_T@,$ECHO_T,;t t
5444s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5445s,@DEFS@,$DEFS,;t t
5446s,@LIBS@,$LIBS,;t t
5447s,@CC@,$CC,;t t
5448s,@CFLAGS@,$CFLAGS,;t t
5449s,@LDFLAGS@,$LDFLAGS,;t t
5450s,@CPPFLAGS@,$CPPFLAGS,;t t
5451s,@ac_ct_CC@,$ac_ct_CC,;t t
5452s,@EXEEXT@,$EXEEXT,;t t
5453s,@OBJEXT@,$OBJEXT,;t t
5454s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5455s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5456s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5457s,@SET_MAKE@,$SET_MAKE,;t t
5458s,@CPP@,$CPP,;t t
5459s,@LIBOBJS@,$LIBOBJS,;t t
5460s,@SYSLOGD_LIBS@,$SYSLOGD_LIBS,;t t
5461s,@SHARED_PARAMS@,$SHARED_PARAMS,;t t
5462s,@DCCFLAGS@,$DCCFLAGS,;t t
5463s,@MSRCS@,$MSRCS,;t t
5464s,@MLIBS@,$MLIBS,;t t
5465s,@MLIBNAME@,$MLIBNAME,;t t
5466s,@MANPAGES@,$MANPAGES,;t t
5467s,@HASH_SRCS@,$HASH_SRCS,;t t
5468s,@HASH_SRCS_MODULES@,$HASH_SRCS_MODULES,;t t
5469s,@HASH_OBJS_MODULES@,$HASH_OBJS_MODULES,;t t
5470s,@HAVE_SOCKLEN_T@,$HAVE_SOCKLEN_T,;t t
5471s,@MAIN_CPPFLAGS@,$MAIN_CPPFLAGS,;t t
5472s,@MSYSLOG_DAEMON_NAME@,$MSYSLOG_DAEMON_NAME,;t t
5473s,@MSYSLOG_VERSION@,$MSYSLOG_VERSION,;t t
5474CEOF
5475
5476EOF
5477
5478  cat >>$CONFIG_STATUS <<\EOF
5479  # Split the substitutions into bite-sized pieces for seds with
5480  # small command number limits, like on Digital OSF/1 and HP-UX.
5481  ac_max_sed_lines=48
5482  ac_sed_frag=1 # Number of current file.
5483  ac_beg=1 # First line for current file.
5484  ac_end=$ac_max_sed_lines # Line after last line for current file.
5485  ac_more_lines=:
5486  ac_sed_cmds=
5487  while $ac_more_lines; do
5488    if test $ac_beg -gt 1; then
5489      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5490    else
5491      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5492    fi
5493    if test ! -s $tmp/subs.frag; then
5494      ac_more_lines=false
5495    else
5496      # The purpose of the label and of the branching condition is to
5497      # speed up the sed processing (if there are no `@' at all, there
5498      # is no need to browse any of the substitutions).
5499      # These are the two extra sed commands mentioned above.
5500      (echo ':t
5501  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5502      if test -z "$ac_sed_cmds"; then
5503  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5504      else
5505  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5506      fi
5507      ac_sed_frag=`expr $ac_sed_frag + 1`
5508      ac_beg=$ac_end
5509      ac_end=`expr $ac_end + $ac_max_sed_lines`
5510    fi
5511  done
5512  if test -z "$ac_sed_cmds"; then
5513    ac_sed_cmds=cat
5514  fi
5515fi # test -n "$CONFIG_FILES"
5516
5517EOF
5518cat >>$CONFIG_STATUS <<\EOF
5519for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5520  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5521  case $ac_file in
5522  - | *:- | *:-:* ) # input from stdin
5523        cat >$tmp/stdin
5524        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5525        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5526  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5527        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5528  * )   ac_file_in=$ac_file.in ;;
5529  esac
5530
5531  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5532  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5533         X"$ac_file" : 'X\(//\)[^/]' \| \
5534         X"$ac_file" : 'X\(//\)$' \| \
5535         X"$ac_file" : 'X\(/\)' \| \
5536         .     : '\(.\)' 2>/dev/null ||
5537echo X"$ac_file" |
5538    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5539  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5540  	  /^X\(\/\/\)$/{ s//\1/; q; }
5541  	  /^X\(\/\).*/{ s//\1/; q; }
5542  	  s/.*/./; q'`
5543  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5544    { case "$ac_dir" in
5545  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5546  *)                      as_incr_dir=.;;
5547esac
5548as_dummy="$ac_dir"
5549for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5550  case $as_mkdir_dir in
5551    # Skip DOS drivespec
5552    ?:) as_incr_dir=$as_mkdir_dir ;;
5553    *)
5554      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5555      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5556    ;;
5557  esac
5558done; }
5559
5560    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5561    # A "../" for each directory in $ac_dir_suffix.
5562    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5563  else
5564    ac_dir_suffix= ac_dots=
5565  fi
5566
5567  case $srcdir in
5568  .)  ac_srcdir=.
5569      if test -z "$ac_dots"; then
5570         ac_top_srcdir=.
5571      else
5572         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5573      fi ;;
5574  [\\/]* | ?:[\\/]* )
5575      ac_srcdir=$srcdir$ac_dir_suffix;
5576      ac_top_srcdir=$srcdir ;;
5577  *) # Relative path.
5578    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5579    ac_top_srcdir=$ac_dots$srcdir ;;
5580  esac
5581
5582  case $INSTALL in
5583  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5584  *) ac_INSTALL=$ac_dots$INSTALL ;;
5585  esac
5586
5587  if test x"$ac_file" != x-; then
5588    { echo "$as_me:5578: creating $ac_file" >&5
5589echo "$as_me: creating $ac_file" >&6;}
5590    rm -f "$ac_file"
5591  fi
5592  # Let's still pretend it is `configure' which instantiates (i.e., don't
5593  # use $as_me), people would be surprised to read:
5594  #    /* config.h.  Generated automatically by config.status.  */
5595  configure_input="Generated automatically from `echo $ac_file_in |
5596                                                 sed 's,.*/,,'` by configure."
5597
5598  # First look for the input files in the build tree, otherwise in the
5599  # src tree.
5600  ac_file_inputs=`IFS=:
5601    for f in $ac_file_in; do
5602      case $f in
5603      -) echo $tmp/stdin ;;
5604      [\\/$]*)
5605         # Absolute (can't be DOS-style, as IFS=:)
5606         test -f "$f" || { { echo "$as_me:5596: error: cannot find input file: $f" >&5
5607echo "$as_me: error: cannot find input file: $f" >&2;}
5608   { (exit 1); exit 1; }; }
5609         echo $f;;
5610      *) # Relative
5611         if test -f "$f"; then
5612           # Build tree
5613           echo $f
5614         elif test -f "$srcdir/$f"; then
5615           # Source tree
5616           echo $srcdir/$f
5617         else
5618           # /dev/null tree
5619           { { echo "$as_me:5609: error: cannot find input file: $f" >&5
5620echo "$as_me: error: cannot find input file: $f" >&2;}
5621   { (exit 1); exit 1; }; }
5622         fi;;
5623      esac
5624    done` || { (exit 1); exit 1; }
5625EOF
5626cat >>$CONFIG_STATUS <<EOF
5627  sed "$ac_vpsub
5628$extrasub
5629EOF
5630cat >>$CONFIG_STATUS <<\EOF
5631:t
5632/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5633s,@configure_input@,$configure_input,;t t
5634s,@srcdir@,$ac_srcdir,;t t
5635s,@top_srcdir@,$ac_top_srcdir,;t t
5636s,@INSTALL@,$ac_INSTALL,;t t
5637" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5638  rm -f $tmp/stdin
5639  if test x"$ac_file" != x-; then
5640    mv $tmp/out $ac_file
5641  else
5642    cat $tmp/out
5643    rm -f $tmp/out
5644  fi
5645
5646done
5647EOF
5648cat >>$CONFIG_STATUS <<\EOF
5649
5650#
5651# CONFIG_HEADER section.
5652#
5653
5654# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5655# NAME is the cpp macro being defined and VALUE is the value it is being given.
5656#
5657# ac_d sets the value in "#define NAME VALUE" lines.
5658ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
5659ac_dB='[ 	].*$,\1#\2'
5660ac_dC=' '
5661ac_dD=',;t'
5662# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5663ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
5664ac_uB='$,\1#\2define\3'
5665ac_uC=' '
5666ac_uD=',;t'
5667
5668for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5669  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5670  case $ac_file in
5671  - | *:- | *:-:* ) # input from stdin
5672        cat >$tmp/stdin
5673        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5674        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5675  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5676        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5677  * )   ac_file_in=$ac_file.in ;;
5678  esac
5679
5680  test x"$ac_file" != x- && { echo "$as_me:5670: creating $ac_file" >&5
5681echo "$as_me: creating $ac_file" >&6;}
5682
5683  # First look for the input files in the build tree, otherwise in the
5684  # src tree.
5685  ac_file_inputs=`IFS=:
5686    for f in $ac_file_in; do
5687      case $f in
5688      -) echo $tmp/stdin ;;
5689      [\\/$]*)
5690         # Absolute (can't be DOS-style, as IFS=:)
5691         test -f "$f" || { { echo "$as_me:5681: error: cannot find input file: $f" >&5
5692echo "$as_me: error: cannot find input file: $f" >&2;}
5693   { (exit 1); exit 1; }; }
5694         echo $f;;
5695      *) # Relative
5696         if test -f "$f"; then
5697           # Build tree
5698           echo $f
5699         elif test -f "$srcdir/$f"; then
5700           # Source tree
5701           echo $srcdir/$f
5702         else
5703           # /dev/null tree
5704           { { echo "$as_me:5694: error: cannot find input file: $f" >&5
5705echo "$as_me: error: cannot find input file: $f" >&2;}
5706   { (exit 1); exit 1; }; }
5707         fi;;
5708      esac
5709    done` || { (exit 1); exit 1; }
5710  # Remove the trailing spaces.
5711  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
5712
5713EOF
5714
5715# Transform confdefs.h into two sed scripts, `conftest.defines' and
5716# `conftest.undefs', that substitutes the proper values into
5717# config.h.in to produce config.h.  The first handles `#define'
5718# templates, and the second `#undef' templates.
5719# And first: Protect against being on the right side of a sed subst in
5720# config.status.  Protect against being in an unquoted here document
5721# in config.status.
5722rm -f conftest.defines conftest.undefs
5723# Using a here document instead of a string reduces the quoting nightmare.
5724# Putting comments in sed scripts is not portable.
5725#
5726# `end' is used to avoid that the second main sed command (meant for
5727# 0-ary CPP macros) applies to n-ary macro definitions.
5728# See the Autoconf documentation for `clear'.
5729cat >confdef2sed.sed <<\EOF
5730s/[\\&,]/\\&/g
5731s,[\\$`],\\&,g
5732t clear
5733: clear
5734s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5735t end
5736s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5737: end
5738EOF
5739# If some macros were called several times there might be several times
5740# the same #defines, which is useless.  Nevertheless, we may not want to
5741# sort them, since we want the *last* AC-DEFINE to be honored.
5742uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5743sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5744rm -f confdef2sed.sed
5745
5746# This sed command replaces #undef with comments.  This is necessary, for
5747# example, in the case of _POSIX_SOURCE, which is predefined and required
5748# on some systems where configure will not decide to define it.
5749cat >>conftest.undefs <<\EOF
5750s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5751EOF
5752
5753# Break up conftest.defines because some shells have a limit on the size
5754# of here documents, and old seds have small limits too (100 cmds).
5755echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5756echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5757echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5758echo '  :' >>$CONFIG_STATUS
5759rm -f conftest.tail
5760while grep . conftest.defines >/dev/null
5761do
5762  # Write a limited-size here document to $tmp/defines.sed.
5763  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5764  # Speed up: don't consider the non `#define' lines.
5765  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
5766  # Work around the forget-to-reset-the-flag bug.
5767  echo 't clr' >>$CONFIG_STATUS
5768  echo ': clr' >>$CONFIG_STATUS
5769  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5770  echo 'CEOF
5771  sed -f $tmp/defines.sed $tmp/in >$tmp/out
5772  rm -f $tmp/in
5773  mv $tmp/out $tmp/in
5774' >>$CONFIG_STATUS
5775  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5776  rm -f conftest.defines
5777  mv conftest.tail conftest.defines
5778done
5779rm -f conftest.defines
5780echo '  fi # egrep' >>$CONFIG_STATUS
5781echo >>$CONFIG_STATUS
5782
5783# Break up conftest.undefs because some shells have a limit on the size
5784# of here documents, and old seds have small limits too (100 cmds).
5785echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5786rm -f conftest.tail
5787while grep . conftest.undefs >/dev/null
5788do
5789  # Write a limited-size here document to $tmp/undefs.sed.
5790  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5791  # Speed up: don't consider the non `#undef'
5792  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
5793  # Work around the forget-to-reset-the-flag bug.
5794  echo 't clr' >>$CONFIG_STATUS
5795  echo ': clr' >>$CONFIG_STATUS
5796  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5797  echo 'CEOF
5798  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5799  rm -f $tmp/in
5800  mv $tmp/out $tmp/in
5801' >>$CONFIG_STATUS
5802  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5803  rm -f conftest.undefs
5804  mv conftest.tail conftest.undefs
5805done
5806rm -f conftest.undefs
5807
5808cat >>$CONFIG_STATUS <<\EOF
5809  # Let's still pretend it is `configure' which instantiates (i.e., don't
5810  # use $as_me), people would be surprised to read:
5811  #    /* config.h.  Generated automatically by config.status.  */
5812  if test x"$ac_file" = x-; then
5813    echo "/* Generated automatically by configure.  */" >$tmp/config.h
5814  else
5815    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
5816  fi
5817  cat $tmp/in >>$tmp/config.h
5818  rm -f $tmp/in
5819  if test x"$ac_file" != x-; then
5820    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5821      { echo "$as_me:5811: $ac_file is unchanged" >&5
5822echo "$as_me: $ac_file is unchanged" >&6;}
5823    else
5824      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5825         X"$ac_file" : 'X\(//\)[^/]' \| \
5826         X"$ac_file" : 'X\(//\)$' \| \
5827         X"$ac_file" : 'X\(/\)' \| \
5828         .     : '\(.\)' 2>/dev/null ||
5829echo X"$ac_file" |
5830    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5831  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5832  	  /^X\(\/\/\)$/{ s//\1/; q; }
5833  	  /^X\(\/\).*/{ s//\1/; q; }
5834  	  s/.*/./; q'`
5835      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5836        { case "$ac_dir" in
5837  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5838  *)                      as_incr_dir=.;;
5839esac
5840as_dummy="$ac_dir"
5841for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5842  case $as_mkdir_dir in
5843    # Skip DOS drivespec
5844    ?:) as_incr_dir=$as_mkdir_dir ;;
5845    *)
5846      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5847      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5848    ;;
5849  esac
5850done; }
5851
5852      fi
5853      rm -f $ac_file
5854      mv $tmp/config.h $ac_file
5855    fi
5856  else
5857    cat $tmp/config.h
5858    rm -f $tmp/config.h
5859  fi
5860done
5861EOF
5862
5863cat >>$CONFIG_STATUS <<\EOF
5864
5865{ (exit 0); exit 0; }
5866EOF
5867chmod +x $CONFIG_STATUS
5868ac_clean_files=$ac_clean_files_save
5869
5870# configure is writing to config.log, and then calls config.status.
5871# config.status does its own redirection, appending to config.log.
5872# Unfortunately, on DOS this fails, as config.log is still kept open
5873# by configure, so config.status won't be able to write to it; its
5874# output is simply discarded.  So we exec the FD to /dev/null,
5875# effectively closing config.log, so it can be properly (re)opened and
5876# appended to by config.status.  When coming back to configure, we
5877# need to make the FD available again.
5878if test "$no_create" != yes; then
5879  ac_cs_success=:
5880  exec 5>/dev/null
5881  $SHELL $CONFIG_STATUS || ac_cs_success=false
5882  exec 5>>config.log
5883  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5884  # would make configure fail if this is the last instruction.
5885  $ac_cs_success || { (exit 1); exit 1; }
5886fi
5887
5888