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/tcpstat.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
656
657Program names:
658  --program-prefix=PREFIX            prepend PREFIX to installed program names
659  --program-suffix=SUFFIX            append SUFFIX to installed program names
660  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
661EOF
662fi
663
664if test -n "$ac_init_help"; then
665
666  cat <<\EOF
667
668Optional Features:
669  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
670  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
671  --disable-dependency-tracking Speeds up one-time builds
672  --enable-dependency-tracking  Do not reject slow dependency extractors
673  --disable-fdesc         do this if installed setuid
674
675Optional Packages:
676  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
677  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
678  --with-pcap-include=DIR pcap.h is in DIR
679  --with-pcap-lib=DIR     libpcap.a is in DIR
680
681Some influential environment variables:
682  CC          C compiler command
683  CFLAGS      C compiler flags
684  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
685              nonstandard directory <lib dir>
686  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
687              headers in a nonstandard directory <include dir>
688  CPP         C preprocessor
689
690Use these variables to override the choices made by `configure' or to help
691it to find libraries and programs with nonstandard names/locations.
692
693EOF
694fi
695
696if test "$ac_init_help" = "recursive"; then
697  # If there are subdirs, report their specific --help.
698  ac_popdir=`pwd`
699  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
700    cd $ac_subdir
701    # A "../" for each directory in /$ac_subdir.
702    ac_dots=`echo $ac_subdir |
703             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
704
705    case $srcdir in
706    .) # No --srcdir option.  We are building in place.
707      ac_sub_srcdir=$srcdir ;;
708    [\\/]* | ?:[\\/]* ) # Absolute path.
709      ac_sub_srcdir=$srcdir/$ac_subdir ;;
710    *) # Relative path.
711      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
712    esac
713
714    # Check for guested configure; otherwise get Cygnus style configure.
715    if test -f $ac_sub_srcdir/configure.gnu; then
716      echo
717      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
718    elif test -f $ac_sub_srcdir/configure; then
719      echo
720      $SHELL $ac_sub_srcdir/configure  --help=recursive
721    elif test -f $ac_sub_srcdir/configure.ac ||
722           test -f $ac_sub_srcdir/configure.in; then
723      echo
724      $ac_configure --help
725    else
726      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
727    fi
728    cd $ac_popdir
729  done
730fi
731
732test -n "$ac_init_help" && exit 0
733if $ac_init_version; then
734  cat <<\EOF
735
736Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
737Free Software Foundation, Inc.
738This configure script is free software; the Free Software Foundation
739gives unlimited permission to copy, distribute and modify it.
740EOF
741  exit 0
742fi
743exec 5>config.log
744cat >&5 <<EOF
745This file contains any messages produced by compilers while
746running configure, to aid debugging if configure makes a mistake.
747
748It was created by $as_me, which was
749generated by GNU Autoconf 2.52.  Invocation command line was
750
751  $ $0 $@
752
753EOF
754{
755cat <<_ASUNAME
756## ---------- ##
757## Platform.  ##
758## ---------- ##
759
760hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
761uname -m = `(uname -m) 2>/dev/null || echo unknown`
762uname -r = `(uname -r) 2>/dev/null || echo unknown`
763uname -s = `(uname -s) 2>/dev/null || echo unknown`
764uname -v = `(uname -v) 2>/dev/null || echo unknown`
765
766/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
767/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
768
769/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
770/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
771/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
772hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
773/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
774/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
775/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
776
777PATH = $PATH
778
779_ASUNAME
780} >&5
781
782cat >&5 <<EOF
783## ------------ ##
784## Core tests.  ##
785## ------------ ##
786
787EOF
788
789# Keep a trace of the command line.
790# Strip out --no-create and --no-recursion so they do not pile up.
791# Also quote any args containing shell meta-characters.
792ac_configure_args=
793ac_sep=
794for ac_arg
795do
796  case $ac_arg in
797  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
798  | --no-cr | --no-c) ;;
799  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
800  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
801  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
802    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
803    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
804    ac_sep=" " ;;
805  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
806     ac_sep=" " ;;
807  esac
808  # Get rid of the leading space.
809done
810
811# When interrupted or exit'd, cleanup temporary files, and complete
812# config.log.  We remove comments because anyway the quotes in there
813# would cause problems or look ugly.
814trap 'exit_status=$?
815  # Save into config.log some information that might help in debugging.
816  echo >&5
817  echo "## ----------------- ##" >&5
818  echo "## Cache variables.  ##" >&5
819  echo "## ----------------- ##" >&5
820  echo >&5
821  # The following way of writing the cache mishandles newlines in values,
822{
823  (set) 2>&1 |
824    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
825    *ac_space=\ *)
826      sed -n \
827        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
828    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
829      ;;
830    *)
831      sed -n \
832        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
833      ;;
834    esac;
835} >&5
836  sed "/^$/d" confdefs.h >conftest.log
837  if test -s conftest.log; then
838    echo >&5
839    echo "## ------------ ##" >&5
840    echo "## confdefs.h.  ##" >&5
841    echo "## ------------ ##" >&5
842    echo >&5
843    cat conftest.log >&5
844  fi
845  (echo; echo) >&5
846  test "$ac_signal" != 0 &&
847    echo "$as_me: caught signal $ac_signal" >&5
848  echo "$as_me: exit $exit_status" >&5
849  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
850    exit $exit_status
851     ' 0
852for ac_signal in 1 2 13 15; do
853  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
854done
855ac_signal=0
856
857# confdefs.h avoids OS command line length limits that DEFS can exceed.
858rm -rf conftest* confdefs.h
859# AIX cpp loses on an empty file, so make sure it contains at least a newline.
860echo >confdefs.h
861
862# Let the site file select an alternate cache file if it wants to.
863# Prefer explicitly selected file to automatically selected ones.
864if test -z "$CONFIG_SITE"; then
865  if test "x$prefix" != xNONE; then
866    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
867  else
868    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
869  fi
870fi
871for ac_site_file in $CONFIG_SITE; do
872  if test -r "$ac_site_file"; then
873    { echo "$as_me:873: loading site script $ac_site_file" >&5
874echo "$as_me: loading site script $ac_site_file" >&6;}
875    cat "$ac_site_file" >&5
876    . "$ac_site_file"
877  fi
878done
879
880if test -r "$cache_file"; then
881  # Some versions of bash will fail to source /dev/null (special
882  # files actually), so we avoid doing that.
883  if test -f "$cache_file"; then
884    { echo "$as_me:884: loading cache $cache_file" >&5
885echo "$as_me: loading cache $cache_file" >&6;}
886    case $cache_file in
887      [\\/]* | ?:[\\/]* ) . $cache_file;;
888      *)                      . ./$cache_file;;
889    esac
890  fi
891else
892  { echo "$as_me:892: creating cache $cache_file" >&5
893echo "$as_me: creating cache $cache_file" >&6;}
894  >$cache_file
895fi
896
897# Check that the precious variables saved in the cache have kept the same
898# value.
899ac_cache_corrupted=false
900for ac_var in `(set) 2>&1 |
901               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
902  eval ac_old_set=\$ac_cv_env_${ac_var}_set
903  eval ac_new_set=\$ac_env_${ac_var}_set
904  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
905  eval ac_new_val="\$ac_env_${ac_var}_value"
906  case $ac_old_set,$ac_new_set in
907    set,)
908      { echo "$as_me:908: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
909echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
910      ac_cache_corrupted=: ;;
911    ,set)
912      { echo "$as_me:912: error: \`$ac_var' was not set in the previous run" >&5
913echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
914      ac_cache_corrupted=: ;;
915    ,);;
916    *)
917      if test "x$ac_old_val" != "x$ac_new_val"; then
918        { echo "$as_me:918: error: \`$ac_var' has changed since the previous run:" >&5
919echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
920        { echo "$as_me:920:   former value:  $ac_old_val" >&5
921echo "$as_me:   former value:  $ac_old_val" >&2;}
922        { echo "$as_me:922:   current value: $ac_new_val" >&5
923echo "$as_me:   current value: $ac_new_val" >&2;}
924        ac_cache_corrupted=:
925      fi;;
926  esac
927  # Pass precious variables to config.status.  It doesn't matter if
928  # we pass some twice (in addition to the command line arguments).
929  if test "$ac_new_set" = set; then
930    case $ac_new_val in
931    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
932      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
933      ac_configure_args="$ac_configure_args '$ac_arg'"
934      ;;
935    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
936       ;;
937    esac
938  fi
939done
940if $ac_cache_corrupted; then
941  { echo "$as_me:941: error: changes in the environment can compromise the build" >&5
942echo "$as_me: error: changes in the environment can compromise the build" >&2;}
943  { { echo "$as_me:943: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
944echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
945   { (exit 1); exit 1; }; }
946fi
947
948ac_ext=c
949ac_cpp='$CPP $CPPFLAGS'
950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
952ac_compiler_gnu=$ac_cv_c_compiler_gnu
953
954case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
955  *c*,-n*) ECHO_N= ECHO_C='
956' ECHO_T='	' ;;
957  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
958  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
959esac
960echo "#! $SHELL" >conftest.sh
961echo  "exit 0"   >>conftest.sh
962chmod +x conftest.sh
963if { (echo "$as_me:963: PATH=\".;.\"; conftest.sh") >&5
964  (PATH=".;."; conftest.sh) 2>&5
965  ac_status=$?
966  echo "$as_me:966: \$? = $ac_status" >&5
967  (exit $ac_status); }; then
968  ac_path_separator=';'
969else
970  ac_path_separator=:
971fi
972PATH_SEPARATOR="$ac_path_separator"
973rm -f conftest.sh
974
975ac_aux_dir=
976for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
977  if test -f $ac_dir/install-sh; then
978    ac_aux_dir=$ac_dir
979    ac_install_sh="$ac_aux_dir/install-sh -c"
980    break
981  elif test -f $ac_dir/install.sh; then
982    ac_aux_dir=$ac_dir
983    ac_install_sh="$ac_aux_dir/install.sh -c"
984    break
985  elif test -f $ac_dir/shtool; then
986    ac_aux_dir=$ac_dir
987    ac_install_sh="$ac_aux_dir/shtool install -c"
988    break
989  fi
990done
991if test -z "$ac_aux_dir"; then
992  { { echo "$as_me:992: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
993echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
994   { (exit 1); exit 1; }; }
995fi
996ac_config_guess="$SHELL $ac_aux_dir/config.guess"
997ac_config_sub="$SHELL $ac_aux_dir/config.sub"
998ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
999
1000# Find a good install program.  We prefer a C program (faster),
1001# so one script is as good as another.  But avoid the broken or
1002# incompatible versions:
1003# SysV /etc/install, /usr/sbin/install
1004# SunOS /usr/etc/install
1005# IRIX /sbin/install
1006# AIX /bin/install
1007# AmigaOS /C/install, which installs bootblocks on floppy discs
1008# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1009# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1010# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1011# ./install, which can be erroneously created by make from ./install.sh.
1012echo "$as_me:1012: checking for a BSD compatible install" >&5
1013echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1014if test -z "$INSTALL"; then
1015if test "${ac_cv_path_install+set}" = set; then
1016  echo $ECHO_N "(cached) $ECHO_C" >&6
1017else
1018    ac_save_IFS=$IFS; IFS=$ac_path_separator
1019  for ac_dir in $PATH; do
1020    IFS=$ac_save_IFS
1021    # Account for people who put trailing slashes in PATH elements.
1022    case $ac_dir/ in
1023    / | ./ | .// | /cC/* \
1024    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1025    | /usr/ucb/* ) ;;
1026    *)
1027      # OSF1 and SCO ODT 3.0 have their own names for install.
1028      # Don't use installbsd from OSF since it installs stuff as root
1029      # by default.
1030      for ac_prog in ginstall scoinst install; do
1031        if $as_executable_p "$ac_dir/$ac_prog"; then
1032	  if test $ac_prog = install &&
1033            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1034	    # AIX install.  It has an incompatible calling convention.
1035	    :
1036	  elif test $ac_prog = install &&
1037	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1038	    # program-specific install script used by HP pwplus--don't use.
1039	    :
1040	  else
1041	    ac_cv_path_install="$ac_dir/$ac_prog -c"
1042	    break 2
1043	  fi
1044	fi
1045      done
1046      ;;
1047    esac
1048  done
1049
1050fi
1051  if test "${ac_cv_path_install+set}" = set; then
1052    INSTALL=$ac_cv_path_install
1053  else
1054    # As a last resort, use the slow shell script.  We don't cache a
1055    # path for INSTALL within a source directory, because that will
1056    # break other packages using the cache if that directory is
1057    # removed, or if the path is relative.
1058    INSTALL=$ac_install_sh
1059  fi
1060fi
1061echo "$as_me:1061: result: $INSTALL" >&5
1062echo "${ECHO_T}$INSTALL" >&6
1063
1064# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1065# It thinks the first close brace ends the variable substitution.
1066test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1067
1068test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1069
1070test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1071
1072echo "$as_me:1072: checking whether build environment is sane" >&5
1073echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1074# Just in case
1075sleep 1
1076echo timestamp > conftest.file
1077# Do `set' in a subshell so we don't clobber the current shell's
1078# arguments.  Must try -L first in case configure is actually a
1079# symlink; some systems play weird games with the mod time of symlinks
1080# (eg FreeBSD returns the mod time of the symlink's containing
1081# directory).
1082if (
1083   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1084   if test "$*" = "X"; then
1085      # -L didn't work.
1086      set X `ls -t $srcdir/configure conftest.file`
1087   fi
1088   rm -f conftest.file
1089   if test "$*" != "X $srcdir/configure conftest.file" \
1090      && test "$*" != "X conftest.file $srcdir/configure"; then
1091
1092      # If neither matched, then we have a broken ls.  This can happen
1093      # if, for instance, CONFIG_SHELL is bash and it inherits a
1094      # broken ls alias from the environment.  This has actually
1095      # happened.  Such a system could not be considered "sane".
1096      { { echo "$as_me:1096: error: ls -t appears to fail.  Make sure there is not a broken
1097alias in your environment" >&5
1098echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1099alias in your environment" >&2;}
1100   { (exit 1); exit 1; }; }
1101   fi
1102
1103   test "$2" = conftest.file
1104   )
1105then
1106   # Ok.
1107   :
1108else
1109   { { echo "$as_me:1109: error: newly created file is older than distributed files!
1110Check your system clock" >&5
1111echo "$as_me: error: newly created file is older than distributed files!
1112Check your system clock" >&2;}
1113   { (exit 1); exit 1; }; }
1114fi
1115echo "$as_me:1115: result: yes" >&5
1116echo "${ECHO_T}yes" >&6
1117test "$program_prefix" != NONE &&
1118  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1119# Use a double $ so make ignores it.
1120test "$program_suffix" != NONE &&
1121  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1122# Double any \ or $.  echo might interpret backslashes.
1123# By default was `s,x,x', remove it if useless.
1124cat <<\_ACEOF >conftest.sed
1125s/[\\$]/&&/g;s/;s,x,x,$//
1126_ACEOF
1127program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1128rm conftest.sed
1129
1130# expand $ac_aux_dir to an absolute path
1131am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1132
1133test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1134# Use eval to expand $SHELL
1135if eval "$MISSING --run true"; then
1136  am_missing_run="$MISSING --run "
1137else
1138  am_missing_run=
1139  am_backtick='`'
1140  { echo "$as_me:1140: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1141echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1142fi
1143
1144for ac_prog in mawk gawk nawk awk
1145do
1146  # Extract the first word of "$ac_prog", so it can be a program name with args.
1147set dummy $ac_prog; ac_word=$2
1148echo "$as_me:1148: checking for $ac_word" >&5
1149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1150if test "${ac_cv_prog_AWK+set}" = set; then
1151  echo $ECHO_N "(cached) $ECHO_C" >&6
1152else
1153  if test -n "$AWK"; then
1154  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1155else
1156  ac_save_IFS=$IFS; IFS=$ac_path_separator
1157ac_dummy="$PATH"
1158for ac_dir in $ac_dummy; do
1159  IFS=$ac_save_IFS
1160  test -z "$ac_dir" && ac_dir=.
1161  $as_executable_p "$ac_dir/$ac_word" || continue
1162ac_cv_prog_AWK="$ac_prog"
1163echo "$as_me:1163: found $ac_dir/$ac_word" >&5
1164break
1165done
1166
1167fi
1168fi
1169AWK=$ac_cv_prog_AWK
1170if test -n "$AWK"; then
1171  echo "$as_me:1171: result: $AWK" >&5
1172echo "${ECHO_T}$AWK" >&6
1173else
1174  echo "$as_me:1174: result: no" >&5
1175echo "${ECHO_T}no" >&6
1176fi
1177
1178  test -n "$AWK" && break
1179done
1180
1181echo "$as_me:1181: checking whether ${MAKE-make} sets \${MAKE}" >&5
1182echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1183set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1184if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1185  echo $ECHO_N "(cached) $ECHO_C" >&6
1186else
1187  cat >conftest.make <<\EOF
1188all:
1189	@echo 'ac_maketemp="${MAKE}"'
1190EOF
1191# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1192eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1193if test -n "$ac_maketemp"; then
1194  eval ac_cv_prog_make_${ac_make}_set=yes
1195else
1196  eval ac_cv_prog_make_${ac_make}_set=no
1197fi
1198rm -f conftest.make
1199fi
1200if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1201  echo "$as_me:1201: result: yes" >&5
1202echo "${ECHO_T}yes" >&6
1203  SET_MAKE=
1204else
1205  echo "$as_me:1205: result: no" >&5
1206echo "${ECHO_T}no" >&6
1207  SET_MAKE="MAKE=${MAKE-make}"
1208fi
1209
1210# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1211if test "${enable_dependency_tracking+set}" = set; then
1212  enableval="$enable_dependency_tracking"
1213
1214fi;
1215if test "x$enable_dependency_tracking" != xno; then
1216  am_depcomp="$ac_aux_dir/depcomp"
1217  AMDEPBACKSLASH='\'
1218fi
1219
1220if test "x$enable_dependency_tracking" != xno; then
1221  AMDEP_TRUE=
1222  AMDEP_FALSE='#'
1223else
1224  AMDEP_TRUE='#'
1225  AMDEP_FALSE=
1226fi
1227
1228rm -f .deps 2>/dev/null
1229mkdir .deps 2>/dev/null
1230if test -d .deps; then
1231  DEPDIR=.deps
1232else
1233  # MS-DOS does not allow filenames that begin with a dot.
1234  DEPDIR=_deps
1235fi
1236rmdir .deps 2>/dev/null
1237
1238# test to see if srcdir already configured
1239if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1240   test -f $srcdir/config.status; then
1241  { { echo "$as_me:1241: error: source directory already configured; run \"make distclean\" there first" >&5
1242echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1243   { (exit 1); exit 1; }; }
1244fi
1245
1246# Define the identity of the package.
1247PACKAGE=tcpstat
1248VERSION=1.5
1249
1250cat >>confdefs.h <<EOF
1251#define PACKAGE "$PACKAGE"
1252EOF
1253
1254cat >>confdefs.h <<EOF
1255#define VERSION "$VERSION"
1256EOF
1257
1258# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1259# the ones we care about.
1260
1261# Autoconf 2.50 always computes EXEEXT.  However we need to be
1262# compatible with 2.13, for now.  So we always define EXEEXT, but we
1263# don't compute it.
1264
1265# Similar for OBJEXT -- only we only use OBJEXT if the user actually
1266# requests that it be used.  This is a bit dumb.
1267: ${OBJEXT=o}
1268
1269# Some tools Automake needs.
1270
1271ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1272
1273AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1274
1275AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1276
1277AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1278
1279MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1280
1281AMTAR=${AMTAR-"${am_missing_run}tar"}
1282
1283install_sh=${install_sh-"$am_aux_dir/install-sh"}
1284
1285INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1286
1287# We need awk for the "check" target.  The system "awk" is bad on
1288# some platforms.
1289
1290		    		    		    ac_config_headers="$ac_config_headers include/config.h"
1291
1292CFLAGS=${CFLAGS:-"-O"}
1293
1294# Check whether --with-pcap-include or --without-pcap-include was given.
1295if test "${with_pcap_include+set}" = set; then
1296  withval="$with_pcap_include"
1297
1298fi;
1299if test "x${with_pcap_include}" = x -o "x${with_pcap_include}" = xno
1300then
1301# Try to make an educated guess
1302# Hacks for crazy Linux distributions.
1303#  C'mon kids get it together, woncha? I mean, base distros go in /usr
1304#  and everything else goes in /usr/local... sheesh.
1305#   Redhat	- /usr/include/pcap
1306#   SuSE	- /usr/include/nessus
1307  for pdir in /usr/include/pcap /usr/include/nessus /usr/local/include /usr/local/include/pcap
1308  do
1309    if test -r ${pdir}/pcap.h
1310    then CPPFLAGS="-I${pdir} "${CPPFLAGS}; break
1311    fi
1312  done
1313else
1314  CPPFLAGS=" -I${with_pcap_include} "${CPPFLAGS}
1315fi
1316
1317# Check whether --with-pcap-lib or --without-pcap-lib was given.
1318if test "${with_pcap_lib+set}" = set; then
1319  withval="$with_pcap_lib"
1320
1321fi;
1322if test "x$with_pcap_lib" = x -o "x$with_pcap_lib" = xno
1323then
1324# Try to make an educated guess
1325  for pdir in /usr/local/lib /opt/lib /vol/lib
1326  do
1327    if test -r ${pdir}/libpcap.a
1328    then LDFLAGS="-L${pdir} "${LDFLAGS}; break
1329    fi
1330  done
1331else
1332  LDFLAGS=" -L${with_pcap_lib} "${LDFLAGS}
1333fi
1334
1335# Check whether --enable-fdesc or --disable-fdesc was given.
1336if test "${enable_fdesc+set}" = set; then
1337  enableval="$enable_fdesc"
1338
1339fi;
1340if test "x${enable_fdesc}" = xno
1341then
1342cat >>confdefs.h <<\EOF
1343#define NO_FILEDESC 1
1344EOF
1345
1346fi
1347
1348echo "$as_me:1348: checking to see if I can guess the OS to build for" >&5
1349echo $ECHO_N "checking to see if I can guess the OS to build for... $ECHO_C" >&6
1350my_build_os=${build_os:-`uname -s | tr 'A-Z' 'a-z'`}
1351if test "x${my_build_os}" = x
1352then { { echo "$as_me:1352: error: Can't determine OS.  Broken uname?" >&5
1353echo "$as_me: error: Can't determine OS.  Broken uname?" >&2;}
1354   { (exit 1); exit 1; }; }
1355else echo ${my_build_os}
1356fi
1357case $my_build_os in
1358	aix*)
1359cat >>confdefs.h <<\EOF
1360#define AIX_STRANGENESS 1
1361EOF
1362 ;;
1363	osf1*)
1364cat >>confdefs.h <<\EOF
1365#define TRU64_STRANGENESS 1
1366EOF
1367 ;;
1368	linux*)
1369cat >>confdefs.h <<\EOF
1370#define _BSD_SOURCE 1
1371EOF
1372 ;;
1373	bsd/os*)	;;
1374	freebsd*)	;;
1375	sunos*)		;;
1376esac
1377
1378ac_ext=c
1379ac_cpp='$CPP $CPPFLAGS'
1380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1382ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383if test -n "$ac_tool_prefix"; then
1384  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1385set dummy ${ac_tool_prefix}gcc; ac_word=$2
1386echo "$as_me:1386: checking for $ac_word" >&5
1387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388if test "${ac_cv_prog_CC+set}" = set; then
1389  echo $ECHO_N "(cached) $ECHO_C" >&6
1390else
1391  if test -n "$CC"; then
1392  ac_cv_prog_CC="$CC" # Let the user override the test.
1393else
1394  ac_save_IFS=$IFS; IFS=$ac_path_separator
1395ac_dummy="$PATH"
1396for ac_dir in $ac_dummy; do
1397  IFS=$ac_save_IFS
1398  test -z "$ac_dir" && ac_dir=.
1399  $as_executable_p "$ac_dir/$ac_word" || continue
1400ac_cv_prog_CC="${ac_tool_prefix}gcc"
1401echo "$as_me:1401: found $ac_dir/$ac_word" >&5
1402break
1403done
1404
1405fi
1406fi
1407CC=$ac_cv_prog_CC
1408if test -n "$CC"; then
1409  echo "$as_me:1409: result: $CC" >&5
1410echo "${ECHO_T}$CC" >&6
1411else
1412  echo "$as_me:1412: result: no" >&5
1413echo "${ECHO_T}no" >&6
1414fi
1415
1416fi
1417if test -z "$ac_cv_prog_CC"; then
1418  ac_ct_CC=$CC
1419  # Extract the first word of "gcc", so it can be a program name with args.
1420set dummy gcc; ac_word=$2
1421echo "$as_me:1421: checking for $ac_word" >&5
1422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1424  echo $ECHO_N "(cached) $ECHO_C" >&6
1425else
1426  if test -n "$ac_ct_CC"; then
1427  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1428else
1429  ac_save_IFS=$IFS; IFS=$ac_path_separator
1430ac_dummy="$PATH"
1431for ac_dir in $ac_dummy; do
1432  IFS=$ac_save_IFS
1433  test -z "$ac_dir" && ac_dir=.
1434  $as_executable_p "$ac_dir/$ac_word" || continue
1435ac_cv_prog_ac_ct_CC="gcc"
1436echo "$as_me:1436: found $ac_dir/$ac_word" >&5
1437break
1438done
1439
1440fi
1441fi
1442ac_ct_CC=$ac_cv_prog_ac_ct_CC
1443if test -n "$ac_ct_CC"; then
1444  echo "$as_me:1444: result: $ac_ct_CC" >&5
1445echo "${ECHO_T}$ac_ct_CC" >&6
1446else
1447  echo "$as_me:1447: result: no" >&5
1448echo "${ECHO_T}no" >&6
1449fi
1450
1451  CC=$ac_ct_CC
1452else
1453  CC="$ac_cv_prog_CC"
1454fi
1455
1456if test -z "$CC"; then
1457  if test -n "$ac_tool_prefix"; then
1458  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1459set dummy ${ac_tool_prefix}cc; ac_word=$2
1460echo "$as_me:1460: checking for $ac_word" >&5
1461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462if test "${ac_cv_prog_CC+set}" = set; then
1463  echo $ECHO_N "(cached) $ECHO_C" >&6
1464else
1465  if test -n "$CC"; then
1466  ac_cv_prog_CC="$CC" # Let the user override the test.
1467else
1468  ac_save_IFS=$IFS; IFS=$ac_path_separator
1469ac_dummy="$PATH"
1470for ac_dir in $ac_dummy; do
1471  IFS=$ac_save_IFS
1472  test -z "$ac_dir" && ac_dir=.
1473  $as_executable_p "$ac_dir/$ac_word" || continue
1474ac_cv_prog_CC="${ac_tool_prefix}cc"
1475echo "$as_me:1475: found $ac_dir/$ac_word" >&5
1476break
1477done
1478
1479fi
1480fi
1481CC=$ac_cv_prog_CC
1482if test -n "$CC"; then
1483  echo "$as_me:1483: result: $CC" >&5
1484echo "${ECHO_T}$CC" >&6
1485else
1486  echo "$as_me:1486: result: no" >&5
1487echo "${ECHO_T}no" >&6
1488fi
1489
1490fi
1491if test -z "$ac_cv_prog_CC"; then
1492  ac_ct_CC=$CC
1493  # Extract the first word of "cc", so it can be a program name with args.
1494set dummy cc; ac_word=$2
1495echo "$as_me:1495: checking for $ac_word" >&5
1496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1498  echo $ECHO_N "(cached) $ECHO_C" >&6
1499else
1500  if test -n "$ac_ct_CC"; then
1501  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1502else
1503  ac_save_IFS=$IFS; IFS=$ac_path_separator
1504ac_dummy="$PATH"
1505for ac_dir in $ac_dummy; do
1506  IFS=$ac_save_IFS
1507  test -z "$ac_dir" && ac_dir=.
1508  $as_executable_p "$ac_dir/$ac_word" || continue
1509ac_cv_prog_ac_ct_CC="cc"
1510echo "$as_me:1510: found $ac_dir/$ac_word" >&5
1511break
1512done
1513
1514fi
1515fi
1516ac_ct_CC=$ac_cv_prog_ac_ct_CC
1517if test -n "$ac_ct_CC"; then
1518  echo "$as_me:1518: result: $ac_ct_CC" >&5
1519echo "${ECHO_T}$ac_ct_CC" >&6
1520else
1521  echo "$as_me:1521: result: no" >&5
1522echo "${ECHO_T}no" >&6
1523fi
1524
1525  CC=$ac_ct_CC
1526else
1527  CC="$ac_cv_prog_CC"
1528fi
1529
1530fi
1531if test -z "$CC"; then
1532  # Extract the first word of "cc", so it can be a program name with args.
1533set dummy cc; ac_word=$2
1534echo "$as_me:1534: checking for $ac_word" >&5
1535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536if test "${ac_cv_prog_CC+set}" = set; then
1537  echo $ECHO_N "(cached) $ECHO_C" >&6
1538else
1539  if test -n "$CC"; then
1540  ac_cv_prog_CC="$CC" # Let the user override the test.
1541else
1542  ac_prog_rejected=no
1543  ac_save_IFS=$IFS; IFS=$ac_path_separator
1544ac_dummy="$PATH"
1545for ac_dir in $ac_dummy; do
1546  IFS=$ac_save_IFS
1547  test -z "$ac_dir" && ac_dir=.
1548  $as_executable_p "$ac_dir/$ac_word" || continue
1549if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1550  ac_prog_rejected=yes
1551  continue
1552fi
1553ac_cv_prog_CC="cc"
1554echo "$as_me:1554: found $ac_dir/$ac_word" >&5
1555break
1556done
1557
1558if test $ac_prog_rejected = yes; then
1559  # We found a bogon in the path, so make sure we never use it.
1560  set dummy $ac_cv_prog_CC
1561  shift
1562  if test $# != 0; then
1563    # We chose a different compiler from the bogus one.
1564    # However, it has the same basename, so the bogon will be chosen
1565    # first if we set CC to just the basename; use the full file name.
1566    shift
1567    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1568    shift
1569    ac_cv_prog_CC="$@"
1570  fi
1571fi
1572fi
1573fi
1574CC=$ac_cv_prog_CC
1575if test -n "$CC"; then
1576  echo "$as_me:1576: result: $CC" >&5
1577echo "${ECHO_T}$CC" >&6
1578else
1579  echo "$as_me:1579: result: no" >&5
1580echo "${ECHO_T}no" >&6
1581fi
1582
1583fi
1584if test -z "$CC"; then
1585  if test -n "$ac_tool_prefix"; then
1586  for ac_prog in cl
1587  do
1588    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1589set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1590echo "$as_me:1590: checking for $ac_word" >&5
1591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592if test "${ac_cv_prog_CC+set}" = set; then
1593  echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595  if test -n "$CC"; then
1596  ac_cv_prog_CC="$CC" # Let the user override the test.
1597else
1598  ac_save_IFS=$IFS; IFS=$ac_path_separator
1599ac_dummy="$PATH"
1600for ac_dir in $ac_dummy; do
1601  IFS=$ac_save_IFS
1602  test -z "$ac_dir" && ac_dir=.
1603  $as_executable_p "$ac_dir/$ac_word" || continue
1604ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1605echo "$as_me:1605: found $ac_dir/$ac_word" >&5
1606break
1607done
1608
1609fi
1610fi
1611CC=$ac_cv_prog_CC
1612if test -n "$CC"; then
1613  echo "$as_me:1613: result: $CC" >&5
1614echo "${ECHO_T}$CC" >&6
1615else
1616  echo "$as_me:1616: result: no" >&5
1617echo "${ECHO_T}no" >&6
1618fi
1619
1620    test -n "$CC" && break
1621  done
1622fi
1623if test -z "$CC"; then
1624  ac_ct_CC=$CC
1625  for ac_prog in cl
1626do
1627  # Extract the first word of "$ac_prog", so it can be a program name with args.
1628set dummy $ac_prog; ac_word=$2
1629echo "$as_me:1629: checking for $ac_word" >&5
1630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1632  echo $ECHO_N "(cached) $ECHO_C" >&6
1633else
1634  if test -n "$ac_ct_CC"; then
1635  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1636else
1637  ac_save_IFS=$IFS; IFS=$ac_path_separator
1638ac_dummy="$PATH"
1639for ac_dir in $ac_dummy; do
1640  IFS=$ac_save_IFS
1641  test -z "$ac_dir" && ac_dir=.
1642  $as_executable_p "$ac_dir/$ac_word" || continue
1643ac_cv_prog_ac_ct_CC="$ac_prog"
1644echo "$as_me:1644: found $ac_dir/$ac_word" >&5
1645break
1646done
1647
1648fi
1649fi
1650ac_ct_CC=$ac_cv_prog_ac_ct_CC
1651if test -n "$ac_ct_CC"; then
1652  echo "$as_me:1652: result: $ac_ct_CC" >&5
1653echo "${ECHO_T}$ac_ct_CC" >&6
1654else
1655  echo "$as_me:1655: result: no" >&5
1656echo "${ECHO_T}no" >&6
1657fi
1658
1659  test -n "$ac_ct_CC" && break
1660done
1661
1662  CC=$ac_ct_CC
1663fi
1664
1665fi
1666
1667test -z "$CC" && { { echo "$as_me:1667: error: no acceptable cc found in \$PATH" >&5
1668echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1669   { (exit 1); exit 1; }; }
1670
1671# Provide some information about the compiler.
1672echo "$as_me:1672:" \
1673     "checking for C compiler version" >&5
1674ac_compiler=`set X $ac_compile; echo $2`
1675{ (eval echo "$as_me:1675: \"$ac_compiler --version </dev/null >&5\"") >&5
1676  (eval $ac_compiler --version </dev/null >&5) 2>&5
1677  ac_status=$?
1678  echo "$as_me:1678: \$? = $ac_status" >&5
1679  (exit $ac_status); }
1680{ (eval echo "$as_me:1680: \"$ac_compiler -v </dev/null >&5\"") >&5
1681  (eval $ac_compiler -v </dev/null >&5) 2>&5
1682  ac_status=$?
1683  echo "$as_me:1683: \$? = $ac_status" >&5
1684  (exit $ac_status); }
1685{ (eval echo "$as_me:1685: \"$ac_compiler -V </dev/null >&5\"") >&5
1686  (eval $ac_compiler -V </dev/null >&5) 2>&5
1687  ac_status=$?
1688  echo "$as_me:1688: \$? = $ac_status" >&5
1689  (exit $ac_status); }
1690
1691cat >conftest.$ac_ext <<_ACEOF
1692#line 1692 "configure"
1693#include "confdefs.h"
1694
1695int
1696main ()
1697{
1698
1699  ;
1700  return 0;
1701}
1702_ACEOF
1703ac_clean_files_save=$ac_clean_files
1704ac_clean_files="$ac_clean_files a.out a.exe"
1705# Try to create an executable without -o first, disregard a.out.
1706# It will help us diagnose broken compilers, and finding out an intuition
1707# of exeext.
1708echo "$as_me:1708: checking for C compiler default output" >&5
1709echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1710ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1711if { (eval echo "$as_me:1711: \"$ac_link_default\"") >&5
1712  (eval $ac_link_default) 2>&5
1713  ac_status=$?
1714  echo "$as_me:1714: \$? = $ac_status" >&5
1715  (exit $ac_status); }; then
1716  # Find the output, starting from the most likely.  This scheme is
1717# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1718# resort.
1719for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1720                ls a.out conftest 2>/dev/null;
1721                ls a.* conftest.* 2>/dev/null`; do
1722  case $ac_file in
1723    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1724    a.out ) # We found the default executable, but exeext='' is most
1725            # certainly right.
1726            break;;
1727    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1728          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1729          export ac_cv_exeext
1730          break;;
1731    * ) break;;
1732  esac
1733done
1734else
1735  echo "$as_me: failed program was:" >&5
1736cat conftest.$ac_ext >&5
1737{ { echo "$as_me:1737: error: C compiler cannot create executables" >&5
1738echo "$as_me: error: C compiler cannot create executables" >&2;}
1739   { (exit 77); exit 77; }; }
1740fi
1741
1742ac_exeext=$ac_cv_exeext
1743echo "$as_me:1743: result: $ac_file" >&5
1744echo "${ECHO_T}$ac_file" >&6
1745
1746# Check the compiler produces executables we can run.  If not, either
1747# the compiler is broken, or we cross compile.
1748echo "$as_me:1748: checking whether the C compiler works" >&5
1749echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1750# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1751# If not cross compiling, check that we can run a simple program.
1752if test "$cross_compiling" != yes; then
1753  if { ac_try='./$ac_file'
1754  { (eval echo "$as_me:1754: \"$ac_try\"") >&5
1755  (eval $ac_try) 2>&5
1756  ac_status=$?
1757  echo "$as_me:1757: \$? = $ac_status" >&5
1758  (exit $ac_status); }; }; then
1759    cross_compiling=no
1760  else
1761    if test "$cross_compiling" = maybe; then
1762	cross_compiling=yes
1763    else
1764	{ { echo "$as_me:1764: error: cannot run C compiled programs.
1765If you meant to cross compile, use \`--host'." >&5
1766echo "$as_me: error: cannot run C compiled programs.
1767If you meant to cross compile, use \`--host'." >&2;}
1768   { (exit 1); exit 1; }; }
1769    fi
1770  fi
1771fi
1772echo "$as_me:1772: result: yes" >&5
1773echo "${ECHO_T}yes" >&6
1774
1775rm -f a.out a.exe conftest$ac_cv_exeext
1776ac_clean_files=$ac_clean_files_save
1777# Check the compiler produces executables we can run.  If not, either
1778# the compiler is broken, or we cross compile.
1779echo "$as_me:1779: checking whether we are cross compiling" >&5
1780echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1781echo "$as_me:1781: result: $cross_compiling" >&5
1782echo "${ECHO_T}$cross_compiling" >&6
1783
1784echo "$as_me:1784: checking for executable suffix" >&5
1785echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1786if { (eval echo "$as_me:1786: \"$ac_link\"") >&5
1787  (eval $ac_link) 2>&5
1788  ac_status=$?
1789  echo "$as_me:1789: \$? = $ac_status" >&5
1790  (exit $ac_status); }; then
1791  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1792# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1793# work properly (i.e., refer to `conftest.exe'), while it won't with
1794# `rm'.
1795for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1796  case $ac_file in
1797    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1798    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1799          export ac_cv_exeext
1800          break;;
1801    * ) break;;
1802  esac
1803done
1804else
1805  { { echo "$as_me:1805: error: cannot compute EXEEXT: cannot compile and link" >&5
1806echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1807   { (exit 1); exit 1; }; }
1808fi
1809
1810rm -f conftest$ac_cv_exeext
1811echo "$as_me:1811: result: $ac_cv_exeext" >&5
1812echo "${ECHO_T}$ac_cv_exeext" >&6
1813
1814rm -f conftest.$ac_ext
1815EXEEXT=$ac_cv_exeext
1816ac_exeext=$EXEEXT
1817echo "$as_me:1817: checking for object suffix" >&5
1818echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1819if test "${ac_cv_objext+set}" = set; then
1820  echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822  cat >conftest.$ac_ext <<_ACEOF
1823#line 1823 "configure"
1824#include "confdefs.h"
1825
1826int
1827main ()
1828{
1829
1830  ;
1831  return 0;
1832}
1833_ACEOF
1834rm -f conftest.o conftest.obj
1835if { (eval echo "$as_me:1835: \"$ac_compile\"") >&5
1836  (eval $ac_compile) 2>&5
1837  ac_status=$?
1838  echo "$as_me:1838: \$? = $ac_status" >&5
1839  (exit $ac_status); }; then
1840  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1841  case $ac_file in
1842    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1843    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1844       break;;
1845  esac
1846done
1847else
1848  echo "$as_me: failed program was:" >&5
1849cat conftest.$ac_ext >&5
1850{ { echo "$as_me:1850: error: cannot compute OBJEXT: cannot compile" >&5
1851echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1852   { (exit 1); exit 1; }; }
1853fi
1854
1855rm -f conftest.$ac_cv_objext conftest.$ac_ext
1856fi
1857echo "$as_me:1857: result: $ac_cv_objext" >&5
1858echo "${ECHO_T}$ac_cv_objext" >&6
1859OBJEXT=$ac_cv_objext
1860ac_objext=$OBJEXT
1861echo "$as_me:1861: checking whether we are using the GNU C compiler" >&5
1862echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1863if test "${ac_cv_c_compiler_gnu+set}" = set; then
1864  echo $ECHO_N "(cached) $ECHO_C" >&6
1865else
1866  cat >conftest.$ac_ext <<_ACEOF
1867#line 1867 "configure"
1868#include "confdefs.h"
1869
1870int
1871main ()
1872{
1873#ifndef __GNUC__
1874       choke me
1875#endif
1876
1877  ;
1878  return 0;
1879}
1880_ACEOF
1881rm -f conftest.$ac_objext
1882if { (eval echo "$as_me:1882: \"$ac_compile\"") >&5
1883  (eval $ac_compile) 2>&5
1884  ac_status=$?
1885  echo "$as_me:1885: \$? = $ac_status" >&5
1886  (exit $ac_status); } &&
1887         { ac_try='test -s conftest.$ac_objext'
1888  { (eval echo "$as_me:1888: \"$ac_try\"") >&5
1889  (eval $ac_try) 2>&5
1890  ac_status=$?
1891  echo "$as_me:1891: \$? = $ac_status" >&5
1892  (exit $ac_status); }; }; then
1893  ac_compiler_gnu=yes
1894else
1895  echo "$as_me: failed program was:" >&5
1896cat conftest.$ac_ext >&5
1897ac_compiler_gnu=no
1898fi
1899rm -f conftest.$ac_objext conftest.$ac_ext
1900ac_cv_c_compiler_gnu=$ac_compiler_gnu
1901
1902fi
1903echo "$as_me:1903: result: $ac_cv_c_compiler_gnu" >&5
1904echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1905GCC=`test $ac_compiler_gnu = yes && echo yes`
1906ac_test_CFLAGS=${CFLAGS+set}
1907ac_save_CFLAGS=$CFLAGS
1908CFLAGS="-g"
1909echo "$as_me:1909: checking whether $CC accepts -g" >&5
1910echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1911if test "${ac_cv_prog_cc_g+set}" = set; then
1912  echo $ECHO_N "(cached) $ECHO_C" >&6
1913else
1914  cat >conftest.$ac_ext <<_ACEOF
1915#line 1915 "configure"
1916#include "confdefs.h"
1917
1918int
1919main ()
1920{
1921
1922  ;
1923  return 0;
1924}
1925_ACEOF
1926rm -f conftest.$ac_objext
1927if { (eval echo "$as_me:1927: \"$ac_compile\"") >&5
1928  (eval $ac_compile) 2>&5
1929  ac_status=$?
1930  echo "$as_me:1930: \$? = $ac_status" >&5
1931  (exit $ac_status); } &&
1932         { ac_try='test -s conftest.$ac_objext'
1933  { (eval echo "$as_me:1933: \"$ac_try\"") >&5
1934  (eval $ac_try) 2>&5
1935  ac_status=$?
1936  echo "$as_me:1936: \$? = $ac_status" >&5
1937  (exit $ac_status); }; }; then
1938  ac_cv_prog_cc_g=yes
1939else
1940  echo "$as_me: failed program was:" >&5
1941cat conftest.$ac_ext >&5
1942ac_cv_prog_cc_g=no
1943fi
1944rm -f conftest.$ac_objext conftest.$ac_ext
1945fi
1946echo "$as_me:1946: result: $ac_cv_prog_cc_g" >&5
1947echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1948if test "$ac_test_CFLAGS" = set; then
1949  CFLAGS=$ac_save_CFLAGS
1950elif test $ac_cv_prog_cc_g = yes; then
1951  if test "$GCC" = yes; then
1952    CFLAGS="-g -O2"
1953  else
1954    CFLAGS="-g"
1955  fi
1956else
1957  if test "$GCC" = yes; then
1958    CFLAGS="-O2"
1959  else
1960    CFLAGS=
1961  fi
1962fi
1963# Some people use a C++ compiler to compile C.  Since we use `exit',
1964# in C++ we need to declare it.  In case someone uses the same compiler
1965# for both compiling C and C++ we need to have the C++ compiler decide
1966# the declaration of exit, since it's the most demanding environment.
1967cat >conftest.$ac_ext <<_ACEOF
1968#ifndef __cplusplus
1969  choke me
1970#endif
1971_ACEOF
1972rm -f conftest.$ac_objext
1973if { (eval echo "$as_me:1973: \"$ac_compile\"") >&5
1974  (eval $ac_compile) 2>&5
1975  ac_status=$?
1976  echo "$as_me:1976: \$? = $ac_status" >&5
1977  (exit $ac_status); } &&
1978         { ac_try='test -s conftest.$ac_objext'
1979  { (eval echo "$as_me:1979: \"$ac_try\"") >&5
1980  (eval $ac_try) 2>&5
1981  ac_status=$?
1982  echo "$as_me:1982: \$? = $ac_status" >&5
1983  (exit $ac_status); }; }; then
1984  for ac_declaration in \
1985   ''\
1986   '#include <stdlib.h>' \
1987   'extern "C" void std::exit (int) throw (); using std::exit;' \
1988   'extern "C" void std::exit (int); using std::exit;' \
1989   'extern "C" void exit (int) throw ();' \
1990   'extern "C" void exit (int);' \
1991   'void exit (int);'
1992do
1993  cat >conftest.$ac_ext <<_ACEOF
1994#line 1994 "configure"
1995#include "confdefs.h"
1996#include <stdlib.h>
1997$ac_declaration
1998int
1999main ()
2000{
2001exit (42);
2002  ;
2003  return 0;
2004}
2005_ACEOF
2006rm -f conftest.$ac_objext
2007if { (eval echo "$as_me:2007: \"$ac_compile\"") >&5
2008  (eval $ac_compile) 2>&5
2009  ac_status=$?
2010  echo "$as_me:2010: \$? = $ac_status" >&5
2011  (exit $ac_status); } &&
2012         { ac_try='test -s conftest.$ac_objext'
2013  { (eval echo "$as_me:2013: \"$ac_try\"") >&5
2014  (eval $ac_try) 2>&5
2015  ac_status=$?
2016  echo "$as_me:2016: \$? = $ac_status" >&5
2017  (exit $ac_status); }; }; then
2018  :
2019else
2020  echo "$as_me: failed program was:" >&5
2021cat conftest.$ac_ext >&5
2022continue
2023fi
2024rm -f conftest.$ac_objext conftest.$ac_ext
2025  cat >conftest.$ac_ext <<_ACEOF
2026#line 2026 "configure"
2027#include "confdefs.h"
2028$ac_declaration
2029int
2030main ()
2031{
2032exit (42);
2033  ;
2034  return 0;
2035}
2036_ACEOF
2037rm -f conftest.$ac_objext
2038if { (eval echo "$as_me:2038: \"$ac_compile\"") >&5
2039  (eval $ac_compile) 2>&5
2040  ac_status=$?
2041  echo "$as_me:2041: \$? = $ac_status" >&5
2042  (exit $ac_status); } &&
2043         { ac_try='test -s conftest.$ac_objext'
2044  { (eval echo "$as_me:2044: \"$ac_try\"") >&5
2045  (eval $ac_try) 2>&5
2046  ac_status=$?
2047  echo "$as_me:2047: \$? = $ac_status" >&5
2048  (exit $ac_status); }; }; then
2049  break
2050else
2051  echo "$as_me: failed program was:" >&5
2052cat conftest.$ac_ext >&5
2053fi
2054rm -f conftest.$ac_objext conftest.$ac_ext
2055done
2056rm -f conftest*
2057if test -n "$ac_declaration"; then
2058  echo '#ifdef __cplusplus' >>confdefs.h
2059  echo $ac_declaration      >>confdefs.h
2060  echo '#endif'             >>confdefs.h
2061fi
2062
2063else
2064  echo "$as_me: failed program was:" >&5
2065cat conftest.$ac_ext >&5
2066fi
2067rm -f conftest.$ac_objext conftest.$ac_ext
2068ac_ext=c
2069ac_cpp='$CPP $CPPFLAGS'
2070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2072ac_compiler_gnu=$ac_cv_c_compiler_gnu
2073
2074ac_config_commands="$ac_config_commands default-1"
2075
2076am_make=${MAKE-make}
2077cat > confinc << 'END'
2078doit:
2079	@echo done
2080END
2081# If we don't find an include directive, just comment out the code.
2082echo "$as_me:2082: checking for style of include used by $am_make" >&5
2083echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2084am__include='#'
2085am__quote=
2086_am_result=none
2087# First try GNU make style include.
2088echo "include confinc" > confmf
2089# We grep out `Entering directory' and `Leaving directory'
2090# messages which can occur if `w' ends up in MAKEFLAGS.
2091# In particular we don't look at `^make:' because GNU make might
2092# be invoked under some other name (usually "gmake"), in which
2093# case it prints its new name instead of `make'.
2094if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2095   am__include=include
2096   am__quote=
2097   _am_result=GNU
2098fi
2099# Now try BSD make style include.
2100if test "$am__include" = "#"; then
2101   echo '.include "confinc"' > confmf
2102   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2103      am__include=.include
2104      am__quote='"'
2105      _am_result=BSD
2106   fi
2107fi
2108
2109echo "$as_me:2109: result: $_am_result" >&5
2110echo "${ECHO_T}$_am_result" >&6
2111rm -f confinc confmf
2112
2113depcc="$CC"   am_compiler_list=
2114
2115echo "$as_me:2115: checking dependency style of $depcc" >&5
2116echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2117if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2118  echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2121  # We make a subdir and do the tests there.  Otherwise we can end up
2122  # making bogus files that we don't know about and never remove.  For
2123  # instance it was reported that on HP-UX the gcc test will end up
2124  # making a dummy file named `D' -- because `-MD' means `put the output
2125  # in D'.
2126  mkdir conftest.dir
2127  # Copy depcomp to subdir because otherwise we won't find it if we're
2128  # using a relative directory.
2129  cp "$am_depcomp" conftest.dir
2130  cd conftest.dir
2131
2132  am_cv_CC_dependencies_compiler_type=none
2133  if test "$am_compiler_list" = ""; then
2134     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2135  fi
2136  for depmode in $am_compiler_list; do
2137    # We need to recreate these files for each test, as the compiler may
2138    # overwrite some of them when testing with obscure command lines.
2139    # This happens at least with the AIX C compiler.
2140    echo '#include "conftest.h"' > conftest.c
2141    echo 'int i;' > conftest.h
2142    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2143
2144    case $depmode in
2145    nosideeffect)
2146      # after this tag, mechanisms are not by side-effect, so they'll
2147      # only be used when explicitly requested
2148      if test "x$enable_dependency_tracking" = xyes; then
2149	continue
2150      else
2151	break
2152      fi
2153      ;;
2154    none) break ;;
2155    esac
2156    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2157    # mode.  It turns out that the SunPro C++ compiler does not properly
2158    # handle `-M -o', and we need to detect this.
2159    if depmode=$depmode \
2160       source=conftest.c object=conftest.o \
2161       depfile=conftest.Po tmpdepfile=conftest.TPo \
2162       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2163       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2164       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2165      am_cv_CC_dependencies_compiler_type=$depmode
2166      break
2167    fi
2168  done
2169
2170  cd ..
2171  rm -rf conftest.dir
2172else
2173  am_cv_CC_dependencies_compiler_type=none
2174fi
2175
2176fi
2177echo "$as_me:2177: result: $am_cv_CC_dependencies_compiler_type" >&5
2178echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2179CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2180
2181if test -n "$ac_tool_prefix"; then
2182  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2183set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2184echo "$as_me:2184: checking for $ac_word" >&5
2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186if test "${ac_cv_prog_RANLIB+set}" = set; then
2187  echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189  if test -n "$RANLIB"; then
2190  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2191else
2192  ac_save_IFS=$IFS; IFS=$ac_path_separator
2193ac_dummy="$PATH"
2194for ac_dir in $ac_dummy; do
2195  IFS=$ac_save_IFS
2196  test -z "$ac_dir" && ac_dir=.
2197  $as_executable_p "$ac_dir/$ac_word" || continue
2198ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2199echo "$as_me:2199: found $ac_dir/$ac_word" >&5
2200break
2201done
2202
2203fi
2204fi
2205RANLIB=$ac_cv_prog_RANLIB
2206if test -n "$RANLIB"; then
2207  echo "$as_me:2207: result: $RANLIB" >&5
2208echo "${ECHO_T}$RANLIB" >&6
2209else
2210  echo "$as_me:2210: result: no" >&5
2211echo "${ECHO_T}no" >&6
2212fi
2213
2214fi
2215if test -z "$ac_cv_prog_RANLIB"; then
2216  ac_ct_RANLIB=$RANLIB
2217  # Extract the first word of "ranlib", so it can be a program name with args.
2218set dummy ranlib; ac_word=$2
2219echo "$as_me:2219: checking for $ac_word" >&5
2220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2221if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2222  echo $ECHO_N "(cached) $ECHO_C" >&6
2223else
2224  if test -n "$ac_ct_RANLIB"; then
2225  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2226else
2227  ac_save_IFS=$IFS; IFS=$ac_path_separator
2228ac_dummy="$PATH"
2229for ac_dir in $ac_dummy; do
2230  IFS=$ac_save_IFS
2231  test -z "$ac_dir" && ac_dir=.
2232  $as_executable_p "$ac_dir/$ac_word" || continue
2233ac_cv_prog_ac_ct_RANLIB="ranlib"
2234echo "$as_me:2234: found $ac_dir/$ac_word" >&5
2235break
2236done
2237
2238  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2239fi
2240fi
2241ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2242if test -n "$ac_ct_RANLIB"; then
2243  echo "$as_me:2243: result: $ac_ct_RANLIB" >&5
2244echo "${ECHO_T}$ac_ct_RANLIB" >&6
2245else
2246  echo "$as_me:2246: result: no" >&5
2247echo "${ECHO_T}no" >&6
2248fi
2249
2250  RANLIB=$ac_ct_RANLIB
2251else
2252  RANLIB="$ac_cv_prog_RANLIB"
2253fi
2254
2255ac_ext=c
2256ac_cpp='$CPP $CPPFLAGS'
2257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2259ac_compiler_gnu=$ac_cv_c_compiler_gnu
2260echo "$as_me:2260: checking how to run the C preprocessor" >&5
2261echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2262# On Suns, sometimes $CPP names a directory.
2263if test -n "$CPP" && test -d "$CPP"; then
2264  CPP=
2265fi
2266if test -z "$CPP"; then
2267  if test "${ac_cv_prog_CPP+set}" = set; then
2268  echo $ECHO_N "(cached) $ECHO_C" >&6
2269else
2270      # Double quotes because CPP needs to be expanded
2271    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2272    do
2273      ac_preproc_ok=false
2274for ac_c_preproc_warn_flag in '' yes
2275do
2276  # Use a header file that comes with gcc, so configuring glibc
2277  # with a fresh cross-compiler works.
2278  # On the NeXT, cc -E runs the code through the compiler's parser,
2279  # not just through cpp. "Syntax error" is here to catch this case.
2280  cat >conftest.$ac_ext <<_ACEOF
2281#line 2281 "configure"
2282#include "confdefs.h"
2283#include <assert.h>
2284                     Syntax error
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  :
2304else
2305  echo "$as_me: failed program was:" >&5
2306  cat conftest.$ac_ext >&5
2307  # Broken: fails on valid input.
2308continue
2309fi
2310rm -f conftest.err conftest.$ac_ext
2311
2312  # OK, works on sane cases.  Now check whether non-existent headers
2313  # can be detected and how.
2314  cat >conftest.$ac_ext <<_ACEOF
2315#line 2315 "configure"
2316#include "confdefs.h"
2317#include <ac_nonexistent.h>
2318_ACEOF
2319if { (eval echo "$as_me:2319: \"$ac_cpp conftest.$ac_ext\"") >&5
2320  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2321  ac_status=$?
2322  egrep -v '^ *\+' conftest.er1 >conftest.err
2323  rm -f conftest.er1
2324  cat conftest.err >&5
2325  echo "$as_me:2325: \$? = $ac_status" >&5
2326  (exit $ac_status); } >/dev/null; then
2327  if test -s conftest.err; then
2328    ac_cpp_err=$ac_c_preproc_warn_flag
2329  else
2330    ac_cpp_err=
2331  fi
2332else
2333  ac_cpp_err=yes
2334fi
2335if test -z "$ac_cpp_err"; then
2336  # Broken: success on invalid input.
2337continue
2338else
2339  echo "$as_me: failed program was:" >&5
2340  cat conftest.$ac_ext >&5
2341  # Passes both tests.
2342ac_preproc_ok=:
2343break
2344fi
2345rm -f conftest.err conftest.$ac_ext
2346
2347done
2348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2349rm -f conftest.err conftest.$ac_ext
2350if $ac_preproc_ok; then
2351  break
2352fi
2353
2354    done
2355    ac_cv_prog_CPP=$CPP
2356
2357fi
2358  CPP=$ac_cv_prog_CPP
2359else
2360  ac_cv_prog_CPP=$CPP
2361fi
2362echo "$as_me:2362: result: $CPP" >&5
2363echo "${ECHO_T}$CPP" >&6
2364ac_preproc_ok=false
2365for ac_c_preproc_warn_flag in '' yes
2366do
2367  # Use a header file that comes with gcc, so configuring glibc
2368  # with a fresh cross-compiler works.
2369  # On the NeXT, cc -E runs the code through the compiler's parser,
2370  # not just through cpp. "Syntax error" is here to catch this case.
2371  cat >conftest.$ac_ext <<_ACEOF
2372#line 2372 "configure"
2373#include "confdefs.h"
2374#include <assert.h>
2375                     Syntax error
2376_ACEOF
2377if { (eval echo "$as_me:2377: \"$ac_cpp conftest.$ac_ext\"") >&5
2378  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2379  ac_status=$?
2380  egrep -v '^ *\+' conftest.er1 >conftest.err
2381  rm -f conftest.er1
2382  cat conftest.err >&5
2383  echo "$as_me:2383: \$? = $ac_status" >&5
2384  (exit $ac_status); } >/dev/null; then
2385  if test -s conftest.err; then
2386    ac_cpp_err=$ac_c_preproc_warn_flag
2387  else
2388    ac_cpp_err=
2389  fi
2390else
2391  ac_cpp_err=yes
2392fi
2393if test -z "$ac_cpp_err"; then
2394  :
2395else
2396  echo "$as_me: failed program was:" >&5
2397  cat conftest.$ac_ext >&5
2398  # Broken: fails on valid input.
2399continue
2400fi
2401rm -f conftest.err conftest.$ac_ext
2402
2403  # OK, works on sane cases.  Now check whether non-existent headers
2404  # can be detected and how.
2405  cat >conftest.$ac_ext <<_ACEOF
2406#line 2406 "configure"
2407#include "confdefs.h"
2408#include <ac_nonexistent.h>
2409_ACEOF
2410if { (eval echo "$as_me:2410: \"$ac_cpp conftest.$ac_ext\"") >&5
2411  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2412  ac_status=$?
2413  egrep -v '^ *\+' conftest.er1 >conftest.err
2414  rm -f conftest.er1
2415  cat conftest.err >&5
2416  echo "$as_me:2416: \$? = $ac_status" >&5
2417  (exit $ac_status); } >/dev/null; then
2418  if test -s conftest.err; then
2419    ac_cpp_err=$ac_c_preproc_warn_flag
2420  else
2421    ac_cpp_err=
2422  fi
2423else
2424  ac_cpp_err=yes
2425fi
2426if test -z "$ac_cpp_err"; then
2427  # Broken: success on invalid input.
2428continue
2429else
2430  echo "$as_me: failed program was:" >&5
2431  cat conftest.$ac_ext >&5
2432  # Passes both tests.
2433ac_preproc_ok=:
2434break
2435fi
2436rm -f conftest.err conftest.$ac_ext
2437
2438done
2439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2440rm -f conftest.err conftest.$ac_ext
2441if $ac_preproc_ok; then
2442  :
2443else
2444  { { echo "$as_me:2444: error: C preprocessor \"$CPP\" fails sanity check" >&5
2445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2446   { (exit 1); exit 1; }; }
2447fi
2448
2449ac_ext=c
2450ac_cpp='$CPP $CPPFLAGS'
2451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454
2455echo "$as_me:2455: checking for ANSI C header files" >&5
2456echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2457if test "${ac_cv_header_stdc+set}" = set; then
2458  echo $ECHO_N "(cached) $ECHO_C" >&6
2459else
2460  cat >conftest.$ac_ext <<_ACEOF
2461#line 2461 "configure"
2462#include "confdefs.h"
2463#include <stdlib.h>
2464#include <stdarg.h>
2465#include <string.h>
2466#include <float.h>
2467
2468_ACEOF
2469if { (eval echo "$as_me:2469: \"$ac_cpp conftest.$ac_ext\"") >&5
2470  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2471  ac_status=$?
2472  egrep -v '^ *\+' conftest.er1 >conftest.err
2473  rm -f conftest.er1
2474  cat conftest.err >&5
2475  echo "$as_me:2475: \$? = $ac_status" >&5
2476  (exit $ac_status); } >/dev/null; then
2477  if test -s conftest.err; then
2478    ac_cpp_err=$ac_c_preproc_warn_flag
2479  else
2480    ac_cpp_err=
2481  fi
2482else
2483  ac_cpp_err=yes
2484fi
2485if test -z "$ac_cpp_err"; then
2486  ac_cv_header_stdc=yes
2487else
2488  echo "$as_me: failed program was:" >&5
2489  cat conftest.$ac_ext >&5
2490  ac_cv_header_stdc=no
2491fi
2492rm -f conftest.err conftest.$ac_ext
2493
2494if test $ac_cv_header_stdc = yes; then
2495  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2496  cat >conftest.$ac_ext <<_ACEOF
2497#line 2497 "configure"
2498#include "confdefs.h"
2499#include <string.h>
2500
2501_ACEOF
2502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2503  egrep "memchr" >/dev/null 2>&1; then
2504  :
2505else
2506  ac_cv_header_stdc=no
2507fi
2508rm -f conftest*
2509
2510fi
2511
2512if test $ac_cv_header_stdc = yes; then
2513  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2514  cat >conftest.$ac_ext <<_ACEOF
2515#line 2515 "configure"
2516#include "confdefs.h"
2517#include <stdlib.h>
2518
2519_ACEOF
2520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2521  egrep "free" >/dev/null 2>&1; then
2522  :
2523else
2524  ac_cv_header_stdc=no
2525fi
2526rm -f conftest*
2527
2528fi
2529
2530if test $ac_cv_header_stdc = yes; then
2531  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2532  if test "$cross_compiling" = yes; then
2533  :
2534else
2535  cat >conftest.$ac_ext <<_ACEOF
2536#line 2536 "configure"
2537#include "confdefs.h"
2538#include <ctype.h>
2539#if ((' ' & 0x0FF) == 0x020)
2540# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2541# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2542#else
2543# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2544                     || ('j' <= (c) && (c) <= 'r') \
2545                     || ('s' <= (c) && (c) <= 'z'))
2546# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2547#endif
2548
2549#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2550int
2551main ()
2552{
2553  int i;
2554  for (i = 0; i < 256; i++)
2555    if (XOR (islower (i), ISLOWER (i))
2556        || toupper (i) != TOUPPER (i))
2557      exit(2);
2558  exit (0);
2559}
2560_ACEOF
2561rm -f conftest$ac_exeext
2562if { (eval echo "$as_me:2562: \"$ac_link\"") >&5
2563  (eval $ac_link) 2>&5
2564  ac_status=$?
2565  echo "$as_me:2565: \$? = $ac_status" >&5
2566  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2567  { (eval echo "$as_me:2567: \"$ac_try\"") >&5
2568  (eval $ac_try) 2>&5
2569  ac_status=$?
2570  echo "$as_me:2570: \$? = $ac_status" >&5
2571  (exit $ac_status); }; }; then
2572  :
2573else
2574  echo "$as_me: program exited with status $ac_status" >&5
2575echo "$as_me: failed program was:" >&5
2576cat conftest.$ac_ext >&5
2577ac_cv_header_stdc=no
2578fi
2579rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2580fi
2581fi
2582fi
2583echo "$as_me:2583: result: $ac_cv_header_stdc" >&5
2584echo "${ECHO_T}$ac_cv_header_stdc" >&6
2585if test $ac_cv_header_stdc = yes; then
2586
2587cat >>confdefs.h <<\EOF
2588#define STDC_HEADERS 1
2589EOF
2590
2591fi
2592
2593echo "$as_me:2593: checking for sys/wait.h that is POSIX.1 compatible" >&5
2594echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
2595if test "${ac_cv_header_sys_wait_h+set}" = set; then
2596  echo $ECHO_N "(cached) $ECHO_C" >&6
2597else
2598  cat >conftest.$ac_ext <<_ACEOF
2599#line 2599 "configure"
2600#include "confdefs.h"
2601#include <sys/types.h>
2602#include <sys/wait.h>
2603#ifndef WEXITSTATUS
2604# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2605#endif
2606#ifndef WIFEXITED
2607# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2608#endif
2609
2610int
2611main ()
2612{
2613  int s;
2614  wait (&s);
2615  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2616  ;
2617  return 0;
2618}
2619_ACEOF
2620rm -f conftest.$ac_objext
2621if { (eval echo "$as_me:2621: \"$ac_compile\"") >&5
2622  (eval $ac_compile) 2>&5
2623  ac_status=$?
2624  echo "$as_me:2624: \$? = $ac_status" >&5
2625  (exit $ac_status); } &&
2626         { ac_try='test -s conftest.$ac_objext'
2627  { (eval echo "$as_me:2627: \"$ac_try\"") >&5
2628  (eval $ac_try) 2>&5
2629  ac_status=$?
2630  echo "$as_me:2630: \$? = $ac_status" >&5
2631  (exit $ac_status); }; }; then
2632  ac_cv_header_sys_wait_h=yes
2633else
2634  echo "$as_me: failed program was:" >&5
2635cat conftest.$ac_ext >&5
2636ac_cv_header_sys_wait_h=no
2637fi
2638rm -f conftest.$ac_objext conftest.$ac_ext
2639fi
2640echo "$as_me:2640: result: $ac_cv_header_sys_wait_h" >&5
2641echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
2642if test $ac_cv_header_sys_wait_h = yes; then
2643
2644cat >>confdefs.h <<\EOF
2645#define HAVE_SYS_WAIT_H 1
2646EOF
2647
2648fi
2649
2650for ac_header in sys/time.h sys/stat.h unistd.h strings.h fcntl.h netinet/ip6.h
2651do
2652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2653echo "$as_me:2653: checking for $ac_header" >&5
2654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2655if eval "test \"\${$as_ac_Header+set}\" = set"; then
2656  echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
2658  cat >conftest.$ac_ext <<_ACEOF
2659#line 2659 "configure"
2660#include "confdefs.h"
2661#include <$ac_header>
2662_ACEOF
2663if { (eval echo "$as_me:2663: \"$ac_cpp conftest.$ac_ext\"") >&5
2664  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2665  ac_status=$?
2666  egrep -v '^ *\+' conftest.er1 >conftest.err
2667  rm -f conftest.er1
2668  cat conftest.err >&5
2669  echo "$as_me:2669: \$? = $ac_status" >&5
2670  (exit $ac_status); } >/dev/null; then
2671  if test -s conftest.err; then
2672    ac_cpp_err=$ac_c_preproc_warn_flag
2673  else
2674    ac_cpp_err=
2675  fi
2676else
2677  ac_cpp_err=yes
2678fi
2679if test -z "$ac_cpp_err"; then
2680  eval "$as_ac_Header=yes"
2681else
2682  echo "$as_me: failed program was:" >&5
2683  cat conftest.$ac_ext >&5
2684  eval "$as_ac_Header=no"
2685fi
2686rm -f conftest.err conftest.$ac_ext
2687fi
2688echo "$as_me:2688: result: `eval echo '${'$as_ac_Header'}'`" >&5
2689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2690if test `eval echo '${'$as_ac_Header'}'` = yes; then
2691  cat >>confdefs.h <<EOF
2692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2693EOF
2694
2695fi
2696done
2697
2698for ac_header in net/if.h net/ethernet.h netinet/if_ether.h net/ppp_defs.h
2699do
2700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2701echo "$as_me:2701: checking for $ac_header" >&5
2702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2703if eval "test \"\${$as_ac_Header+set}\" = set"; then
2704  echo $ECHO_N "(cached) $ECHO_C" >&6
2705else
2706  cat >conftest.$ac_ext <<_ACEOF
2707#line 2707 "configure"
2708#include "confdefs.h"
2709#include <$ac_header>
2710_ACEOF
2711if { (eval echo "$as_me:2711: \"$ac_cpp conftest.$ac_ext\"") >&5
2712  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2713  ac_status=$?
2714  egrep -v '^ *\+' conftest.er1 >conftest.err
2715  rm -f conftest.er1
2716  cat conftest.err >&5
2717  echo "$as_me:2717: \$? = $ac_status" >&5
2718  (exit $ac_status); } >/dev/null; then
2719  if test -s conftest.err; then
2720    ac_cpp_err=$ac_c_preproc_warn_flag
2721  else
2722    ac_cpp_err=
2723  fi
2724else
2725  ac_cpp_err=yes
2726fi
2727if test -z "$ac_cpp_err"; then
2728  eval "$as_ac_Header=yes"
2729else
2730  echo "$as_me: failed program was:" >&5
2731  cat conftest.$ac_ext >&5
2732  eval "$as_ac_Header=no"
2733fi
2734rm -f conftest.err conftest.$ac_ext
2735fi
2736echo "$as_me:2736: result: `eval echo '${'$as_ac_Header'}'`" >&5
2737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2738if test `eval echo '${'$as_ac_Header'}'` = yes; then
2739  cat >>confdefs.h <<EOF
2740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2741EOF
2742
2743fi
2744done
2745
2746echo "$as_me:2746: checking for $CC option to accept ANSI C" >&5
2747echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2748if test "${ac_cv_prog_cc_stdc+set}" = set; then
2749  echo $ECHO_N "(cached) $ECHO_C" >&6
2750else
2751  ac_cv_prog_cc_stdc=no
2752ac_save_CC=$CC
2753cat >conftest.$ac_ext <<_ACEOF
2754#line 2754 "configure"
2755#include "confdefs.h"
2756#include <stdarg.h>
2757#include <stdio.h>
2758#include <sys/types.h>
2759#include <sys/stat.h>
2760/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2761struct buf { int x; };
2762FILE * (*rcsopen) (struct buf *, struct stat *, int);
2763static char *e (p, i)
2764     char **p;
2765     int i;
2766{
2767  return p[i];
2768}
2769static char *f (char * (*g) (char **, int), char **p, ...)
2770{
2771  char *s;
2772  va_list v;
2773  va_start (v,p);
2774  s = g (p, va_arg (v,int));
2775  va_end (v);
2776  return s;
2777}
2778int test (int i, double x);
2779struct s1 {int (*f) (int a);};
2780struct s2 {int (*f) (double a);};
2781int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2782int argc;
2783char **argv;
2784int
2785main ()
2786{
2787return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2788  ;
2789  return 0;
2790}
2791_ACEOF
2792# Don't try gcc -ansi; that turns off useful extensions and
2793# breaks some systems' header files.
2794# AIX			-qlanglvl=ansi
2795# Ultrix and OSF/1	-std1
2796# HP-UX 10.20 and later	-Ae
2797# HP-UX older versions	-Aa -D_HPUX_SOURCE
2798# SVR4			-Xc -D__EXTENSIONS__
2799for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2800do
2801  CC="$ac_save_CC $ac_arg"
2802  rm -f conftest.$ac_objext
2803if { (eval echo "$as_me:2803: \"$ac_compile\"") >&5
2804  (eval $ac_compile) 2>&5
2805  ac_status=$?
2806  echo "$as_me:2806: \$? = $ac_status" >&5
2807  (exit $ac_status); } &&
2808         { ac_try='test -s conftest.$ac_objext'
2809  { (eval echo "$as_me:2809: \"$ac_try\"") >&5
2810  (eval $ac_try) 2>&5
2811  ac_status=$?
2812  echo "$as_me:2812: \$? = $ac_status" >&5
2813  (exit $ac_status); }; }; then
2814  ac_cv_prog_cc_stdc=$ac_arg
2815break
2816else
2817  echo "$as_me: failed program was:" >&5
2818cat conftest.$ac_ext >&5
2819fi
2820rm -f conftest.$ac_objext
2821done
2822rm -f conftest.$ac_ext conftest.$ac_objext
2823CC=$ac_save_CC
2824
2825fi
2826
2827case "x$ac_cv_prog_cc_stdc" in
2828  x|xno)
2829    echo "$as_me:2829: result: none needed" >&5
2830echo "${ECHO_T}none needed" >&6 ;;
2831  *)
2832    echo "$as_me:2832: result: $ac_cv_prog_cc_stdc" >&5
2833echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2834    CC="$CC $ac_cv_prog_cc_stdc" ;;
2835esac
2836
2837echo "$as_me:2837: checking for an ANSI C-conforming const" >&5
2838echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2839if test "${ac_cv_c_const+set}" = set; then
2840  echo $ECHO_N "(cached) $ECHO_C" >&6
2841else
2842  cat >conftest.$ac_ext <<_ACEOF
2843#line 2843 "configure"
2844#include "confdefs.h"
2845
2846int
2847main ()
2848{
2849/* FIXME: Include the comments suggested by Paul. */
2850#ifndef __cplusplus
2851  /* Ultrix mips cc rejects this.  */
2852  typedef int charset[2];
2853  const charset x;
2854  /* SunOS 4.1.1 cc rejects this.  */
2855  char const *const *ccp;
2856  char **p;
2857  /* NEC SVR4.0.2 mips cc rejects this.  */
2858  struct point {int x, y;};
2859  static struct point const zero = {0,0};
2860  /* AIX XL C 1.02.0.0 rejects this.
2861     It does not let you subtract one const X* pointer from another in
2862     an arm of an if-expression whose if-part is not a constant
2863     expression */
2864  const char *g = "string";
2865  ccp = &g + (g ? g-g : 0);
2866  /* HPUX 7.0 cc rejects these. */
2867  ++ccp;
2868  p = (char**) ccp;
2869  ccp = (char const *const *) p;
2870  { /* SCO 3.2v4 cc rejects this.  */
2871    char *t;
2872    char const *s = 0 ? (char *) 0 : (char const *) 0;
2873
2874    *t++ = 0;
2875  }
2876  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2877    int x[] = {25, 17};
2878    const int *foo = &x[0];
2879    ++foo;
2880  }
2881  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2882    typedef const int *iptr;
2883    iptr p = 0;
2884    ++p;
2885  }
2886  { /* AIX XL C 1.02.0.0 rejects this saying
2887       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2888    struct s { int j; const int *ap[3]; };
2889    struct s *b; b->j = 5;
2890  }
2891  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2892    const int foo = 10;
2893  }
2894#endif
2895
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900rm -f conftest.$ac_objext
2901if { (eval echo "$as_me:2901: \"$ac_compile\"") >&5
2902  (eval $ac_compile) 2>&5
2903  ac_status=$?
2904  echo "$as_me:2904: \$? = $ac_status" >&5
2905  (exit $ac_status); } &&
2906         { ac_try='test -s conftest.$ac_objext'
2907  { (eval echo "$as_me:2907: \"$ac_try\"") >&5
2908  (eval $ac_try) 2>&5
2909  ac_status=$?
2910  echo "$as_me:2910: \$? = $ac_status" >&5
2911  (exit $ac_status); }; }; then
2912  ac_cv_c_const=yes
2913else
2914  echo "$as_me: failed program was:" >&5
2915cat conftest.$ac_ext >&5
2916ac_cv_c_const=no
2917fi
2918rm -f conftest.$ac_objext conftest.$ac_ext
2919fi
2920echo "$as_me:2920: result: $ac_cv_c_const" >&5
2921echo "${ECHO_T}$ac_cv_c_const" >&6
2922if test $ac_cv_c_const = no; then
2923
2924cat >>confdefs.h <<\EOF
2925#define const
2926EOF
2927
2928fi
2929
2930# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2931
2932for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2933                  inttypes.h stdint.h unistd.h
2934do
2935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2936echo "$as_me:2936: checking for $ac_header" >&5
2937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2938if eval "test \"\${$as_ac_Header+set}\" = set"; then
2939  echo $ECHO_N "(cached) $ECHO_C" >&6
2940else
2941  cat >conftest.$ac_ext <<_ACEOF
2942#line 2942 "configure"
2943#include "confdefs.h"
2944$ac_includes_default
2945#include <$ac_header>
2946_ACEOF
2947rm -f conftest.$ac_objext
2948if { (eval echo "$as_me:2948: \"$ac_compile\"") >&5
2949  (eval $ac_compile) 2>&5
2950  ac_status=$?
2951  echo "$as_me:2951: \$? = $ac_status" >&5
2952  (exit $ac_status); } &&
2953         { ac_try='test -s conftest.$ac_objext'
2954  { (eval echo "$as_me:2954: \"$ac_try\"") >&5
2955  (eval $ac_try) 2>&5
2956  ac_status=$?
2957  echo "$as_me:2957: \$? = $ac_status" >&5
2958  (exit $ac_status); }; }; then
2959  eval "$as_ac_Header=yes"
2960else
2961  echo "$as_me: failed program was:" >&5
2962cat conftest.$ac_ext >&5
2963eval "$as_ac_Header=no"
2964fi
2965rm -f conftest.$ac_objext conftest.$ac_ext
2966fi
2967echo "$as_me:2967: result: `eval echo '${'$as_ac_Header'}'`" >&5
2968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2969if test `eval echo '${'$as_ac_Header'}'` = yes; then
2970  cat >>confdefs.h <<EOF
2971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2972EOF
2973
2974fi
2975done
2976
2977echo "$as_me:2977: checking for size_t" >&5
2978echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2979if test "${ac_cv_type_size_t+set}" = set; then
2980  echo $ECHO_N "(cached) $ECHO_C" >&6
2981else
2982  cat >conftest.$ac_ext <<_ACEOF
2983#line 2983 "configure"
2984#include "confdefs.h"
2985$ac_includes_default
2986int
2987main ()
2988{
2989if ((size_t *) 0)
2990  return 0;
2991if (sizeof (size_t))
2992  return 0;
2993  ;
2994  return 0;
2995}
2996_ACEOF
2997rm -f conftest.$ac_objext
2998if { (eval echo "$as_me:2998: \"$ac_compile\"") >&5
2999  (eval $ac_compile) 2>&5
3000  ac_status=$?
3001  echo "$as_me:3001: \$? = $ac_status" >&5
3002  (exit $ac_status); } &&
3003         { ac_try='test -s conftest.$ac_objext'
3004  { (eval echo "$as_me:3004: \"$ac_try\"") >&5
3005  (eval $ac_try) 2>&5
3006  ac_status=$?
3007  echo "$as_me:3007: \$? = $ac_status" >&5
3008  (exit $ac_status); }; }; then
3009  ac_cv_type_size_t=yes
3010else
3011  echo "$as_me: failed program was:" >&5
3012cat conftest.$ac_ext >&5
3013ac_cv_type_size_t=no
3014fi
3015rm -f conftest.$ac_objext conftest.$ac_ext
3016fi
3017echo "$as_me:3017: result: $ac_cv_type_size_t" >&5
3018echo "${ECHO_T}$ac_cv_type_size_t" >&6
3019if test $ac_cv_type_size_t = yes; then
3020  :
3021else
3022
3023cat >>confdefs.h <<EOF
3024#define size_t unsigned
3025EOF
3026
3027fi
3028
3029echo "$as_me:3029: checking whether time.h and sys/time.h may both be included" >&5
3030echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3031if test "${ac_cv_header_time+set}" = set; then
3032  echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034  cat >conftest.$ac_ext <<_ACEOF
3035#line 3035 "configure"
3036#include "confdefs.h"
3037#include <sys/types.h>
3038#include <sys/time.h>
3039#include <time.h>
3040
3041int
3042main ()
3043{
3044if ((struct tm *) 0)
3045return 0;
3046  ;
3047  return 0;
3048}
3049_ACEOF
3050rm -f conftest.$ac_objext
3051if { (eval echo "$as_me:3051: \"$ac_compile\"") >&5
3052  (eval $ac_compile) 2>&5
3053  ac_status=$?
3054  echo "$as_me:3054: \$? = $ac_status" >&5
3055  (exit $ac_status); } &&
3056         { ac_try='test -s conftest.$ac_objext'
3057  { (eval echo "$as_me:3057: \"$ac_try\"") >&5
3058  (eval $ac_try) 2>&5
3059  ac_status=$?
3060  echo "$as_me:3060: \$? = $ac_status" >&5
3061  (exit $ac_status); }; }; then
3062  ac_cv_header_time=yes
3063else
3064  echo "$as_me: failed program was:" >&5
3065cat conftest.$ac_ext >&5
3066ac_cv_header_time=no
3067fi
3068rm -f conftest.$ac_objext conftest.$ac_ext
3069fi
3070echo "$as_me:3070: result: $ac_cv_header_time" >&5
3071echo "${ECHO_T}$ac_cv_header_time" >&6
3072if test $ac_cv_header_time = yes; then
3073
3074cat >>confdefs.h <<\EOF
3075#define TIME_WITH_SYS_TIME 1
3076EOF
3077
3078fi
3079
3080for ac_func in strtol strtoul ualarm perror inet_ntop
3081do
3082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3083echo "$as_me:3083: checking for $ac_func" >&5
3084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3085if eval "test \"\${$as_ac_var+set}\" = set"; then
3086  echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088  cat >conftest.$ac_ext <<_ACEOF
3089#line 3089 "configure"
3090#include "confdefs.h"
3091/* System header to define __stub macros and hopefully few prototypes,
3092    which can conflict with char $ac_func (); below.  */
3093#include <assert.h>
3094/* Override any gcc2 internal prototype to avoid an error.  */
3095#ifdef __cplusplus
3096extern "C"
3097#endif
3098/* We use char because int might match the return type of a gcc2
3099   builtin and then its argument prototype would still apply.  */
3100char $ac_func ();
3101char (*f) ();
3102
3103int
3104main ()
3105{
3106/* The GNU C library defines this for functions which it implements
3107    to always fail with ENOSYS.  Some functions are actually named
3108    something starting with __ and the normal name is an alias.  */
3109#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3110choke me
3111#else
3112f = $ac_func;
3113#endif
3114
3115  ;
3116  return 0;
3117}
3118_ACEOF
3119rm -f conftest.$ac_objext conftest$ac_exeext
3120if { (eval echo "$as_me:3120: \"$ac_link\"") >&5
3121  (eval $ac_link) 2>&5
3122  ac_status=$?
3123  echo "$as_me:3123: \$? = $ac_status" >&5
3124  (exit $ac_status); } &&
3125         { ac_try='test -s conftest$ac_exeext'
3126  { (eval echo "$as_me:3126: \"$ac_try\"") >&5
3127  (eval $ac_try) 2>&5
3128  ac_status=$?
3129  echo "$as_me:3129: \$? = $ac_status" >&5
3130  (exit $ac_status); }; }; then
3131  eval "$as_ac_var=yes"
3132else
3133  echo "$as_me: failed program was:" >&5
3134cat conftest.$ac_ext >&5
3135eval "$as_ac_var=no"
3136fi
3137rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3138fi
3139echo "$as_me:3139: result: `eval echo '${'$as_ac_var'}'`" >&5
3140echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3141if test `eval echo '${'$as_ac_var'}'` = yes; then
3142  cat >>confdefs.h <<EOF
3143#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3144EOF
3145
3146fi
3147done
3148
3149for ac_func in snprintf
3150do
3151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3152echo "$as_me:3152: checking for $ac_func" >&5
3153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3154if eval "test \"\${$as_ac_var+set}\" = set"; then
3155  echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157  cat >conftest.$ac_ext <<_ACEOF
3158#line 3158 "configure"
3159#include "confdefs.h"
3160/* System header to define __stub macros and hopefully few prototypes,
3161    which can conflict with char $ac_func (); below.  */
3162#include <assert.h>
3163/* Override any gcc2 internal prototype to avoid an error.  */
3164#ifdef __cplusplus
3165extern "C"
3166#endif
3167/* We use char because int might match the return type of a gcc2
3168   builtin and then its argument prototype would still apply.  */
3169char $ac_func ();
3170char (*f) ();
3171
3172int
3173main ()
3174{
3175/* The GNU C library defines this for functions which it implements
3176    to always fail with ENOSYS.  Some functions are actually named
3177    something starting with __ and the normal name is an alias.  */
3178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3179choke me
3180#else
3181f = $ac_func;
3182#endif
3183
3184  ;
3185  return 0;
3186}
3187_ACEOF
3188rm -f conftest.$ac_objext conftest$ac_exeext
3189if { (eval echo "$as_me:3189: \"$ac_link\"") >&5
3190  (eval $ac_link) 2>&5
3191  ac_status=$?
3192  echo "$as_me:3192: \$? = $ac_status" >&5
3193  (exit $ac_status); } &&
3194         { ac_try='test -s conftest$ac_exeext'
3195  { (eval echo "$as_me:3195: \"$ac_try\"") >&5
3196  (eval $ac_try) 2>&5
3197  ac_status=$?
3198  echo "$as_me:3198: \$? = $ac_status" >&5
3199  (exit $ac_status); }; }; then
3200  eval "$as_ac_var=yes"
3201else
3202  echo "$as_me: failed program was:" >&5
3203cat conftest.$ac_ext >&5
3204eval "$as_ac_var=no"
3205fi
3206rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3207fi
3208echo "$as_me:3208: result: `eval echo '${'$as_ac_var'}'`" >&5
3209echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3210if test `eval echo '${'$as_ac_var'}'` = yes; then
3211  cat >>confdefs.h <<EOF
3212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3213EOF
3214
3215else
3216
3217echo "WARNING:  You don't seem to have snprintf() (Solaris 2.5.x?)"
3218echo "          There may be a slight security problem without it."
3219echo "          Probably not -- but you have been warned."
3220
3221fi
3222done
3223
3224MATHLIB=""
3225echo "$as_me:3225: checking for sqrt in -lm" >&5
3226echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3227if test "${ac_cv_lib_m_sqrt+set}" = set; then
3228  echo $ECHO_N "(cached) $ECHO_C" >&6
3229else
3230  ac_check_lib_save_LIBS=$LIBS
3231LIBS="-lm  $LIBS"
3232cat >conftest.$ac_ext <<_ACEOF
3233#line 3233 "configure"
3234#include "confdefs.h"
3235
3236/* Override any gcc2 internal prototype to avoid an error.  */
3237#ifdef __cplusplus
3238extern "C"
3239#endif
3240/* We use char because int might match the return type of a gcc2
3241   builtin and then its argument prototype would still apply.  */
3242char sqrt ();
3243int
3244main ()
3245{
3246sqrt ();
3247  ;
3248  return 0;
3249}
3250_ACEOF
3251rm -f conftest.$ac_objext conftest$ac_exeext
3252if { (eval echo "$as_me:3252: \"$ac_link\"") >&5
3253  (eval $ac_link) 2>&5
3254  ac_status=$?
3255  echo "$as_me:3255: \$? = $ac_status" >&5
3256  (exit $ac_status); } &&
3257         { ac_try='test -s conftest$ac_exeext'
3258  { (eval echo "$as_me:3258: \"$ac_try\"") >&5
3259  (eval $ac_try) 2>&5
3260  ac_status=$?
3261  echo "$as_me:3261: \$? = $ac_status" >&5
3262  (exit $ac_status); }; }; then
3263  ac_cv_lib_m_sqrt=yes
3264else
3265  echo "$as_me: failed program was:" >&5
3266cat conftest.$ac_ext >&5
3267ac_cv_lib_m_sqrt=no
3268fi
3269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3270LIBS=$ac_check_lib_save_LIBS
3271fi
3272echo "$as_me:3272: result: $ac_cv_lib_m_sqrt" >&5
3273echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3274if test $ac_cv_lib_m_sqrt = yes; then
3275  MATHLIB="-lm"
3276fi
3277
3278echo "$as_me:3278: checking for socket in -lc" >&5
3279echo $ECHO_N "checking for socket in -lc... $ECHO_C" >&6
3280if test "${ac_cv_lib_c_socket+set}" = set; then
3281  echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283  ac_check_lib_save_LIBS=$LIBS
3284LIBS="-lc  $LIBS"
3285cat >conftest.$ac_ext <<_ACEOF
3286#line 3286 "configure"
3287#include "confdefs.h"
3288
3289/* Override any gcc2 internal prototype to avoid an error.  */
3290#ifdef __cplusplus
3291extern "C"
3292#endif
3293/* We use char because int might match the return type of a gcc2
3294   builtin and then its argument prototype would still apply.  */
3295char socket ();
3296int
3297main ()
3298{
3299socket ();
3300  ;
3301  return 0;
3302}
3303_ACEOF
3304rm -f conftest.$ac_objext conftest$ac_exeext
3305if { (eval echo "$as_me:3305: \"$ac_link\"") >&5
3306  (eval $ac_link) 2>&5
3307  ac_status=$?
3308  echo "$as_me:3308: \$? = $ac_status" >&5
3309  (exit $ac_status); } &&
3310         { ac_try='test -s conftest$ac_exeext'
3311  { (eval echo "$as_me:3311: \"$ac_try\"") >&5
3312  (eval $ac_try) 2>&5
3313  ac_status=$?
3314  echo "$as_me:3314: \$? = $ac_status" >&5
3315  (exit $ac_status); }; }; then
3316  ac_cv_lib_c_socket=yes
3317else
3318  echo "$as_me: failed program was:" >&5
3319cat conftest.$ac_ext >&5
3320ac_cv_lib_c_socket=no
3321fi
3322rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3323LIBS=$ac_check_lib_save_LIBS
3324fi
3325echo "$as_me:3325: result: $ac_cv_lib_c_socket" >&5
3326echo "${ECHO_T}$ac_cv_lib_c_socket" >&6
3327if test $ac_cv_lib_c_socket = yes; then
3328  :
3329else
3330
3331 echo "$as_me:3331: checking for socket in -lsocket" >&5
3332echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3333if test "${ac_cv_lib_socket_socket+set}" = set; then
3334  echo $ECHO_N "(cached) $ECHO_C" >&6
3335else
3336  ac_check_lib_save_LIBS=$LIBS
3337LIBS="-lsocket  $LIBS"
3338cat >conftest.$ac_ext <<_ACEOF
3339#line 3339 "configure"
3340#include "confdefs.h"
3341
3342/* Override any gcc2 internal prototype to avoid an error.  */
3343#ifdef __cplusplus
3344extern "C"
3345#endif
3346/* We use char because int might match the return type of a gcc2
3347   builtin and then its argument prototype would still apply.  */
3348char socket ();
3349int
3350main ()
3351{
3352socket ();
3353  ;
3354  return 0;
3355}
3356_ACEOF
3357rm -f conftest.$ac_objext conftest$ac_exeext
3358if { (eval echo "$as_me:3358: \"$ac_link\"") >&5
3359  (eval $ac_link) 2>&5
3360  ac_status=$?
3361  echo "$as_me:3361: \$? = $ac_status" >&5
3362  (exit $ac_status); } &&
3363         { ac_try='test -s conftest$ac_exeext'
3364  { (eval echo "$as_me:3364: \"$ac_try\"") >&5
3365  (eval $ac_try) 2>&5
3366  ac_status=$?
3367  echo "$as_me:3367: \$? = $ac_status" >&5
3368  (exit $ac_status); }; }; then
3369  ac_cv_lib_socket_socket=yes
3370else
3371  echo "$as_me: failed program was:" >&5
3372cat conftest.$ac_ext >&5
3373ac_cv_lib_socket_socket=no
3374fi
3375rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3376LIBS=$ac_check_lib_save_LIBS
3377fi
3378echo "$as_me:3378: result: $ac_cv_lib_socket_socket" >&5
3379echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3380if test $ac_cv_lib_socket_socket = yes; then
3381
3382  LIBS="-lsocket ${LIBS}"
3383
3384fi
3385
3386fi
3387
3388echo "$as_me:3388: checking for gethostbyaddr in -lc" >&5
3389echo $ECHO_N "checking for gethostbyaddr in -lc... $ECHO_C" >&6
3390if test "${ac_cv_lib_c_gethostbyaddr+set}" = set; then
3391  echo $ECHO_N "(cached) $ECHO_C" >&6
3392else
3393  ac_check_lib_save_LIBS=$LIBS
3394LIBS="-lc  $LIBS"
3395cat >conftest.$ac_ext <<_ACEOF
3396#line 3396 "configure"
3397#include "confdefs.h"
3398
3399/* Override any gcc2 internal prototype to avoid an error.  */
3400#ifdef __cplusplus
3401extern "C"
3402#endif
3403/* We use char because int might match the return type of a gcc2
3404   builtin and then its argument prototype would still apply.  */
3405char gethostbyaddr ();
3406int
3407main ()
3408{
3409gethostbyaddr ();
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414rm -f conftest.$ac_objext conftest$ac_exeext
3415if { (eval echo "$as_me:3415: \"$ac_link\"") >&5
3416  (eval $ac_link) 2>&5
3417  ac_status=$?
3418  echo "$as_me:3418: \$? = $ac_status" >&5
3419  (exit $ac_status); } &&
3420         { ac_try='test -s conftest$ac_exeext'
3421  { (eval echo "$as_me:3421: \"$ac_try\"") >&5
3422  (eval $ac_try) 2>&5
3423  ac_status=$?
3424  echo "$as_me:3424: \$? = $ac_status" >&5
3425  (exit $ac_status); }; }; then
3426  ac_cv_lib_c_gethostbyaddr=yes
3427else
3428  echo "$as_me: failed program was:" >&5
3429cat conftest.$ac_ext >&5
3430ac_cv_lib_c_gethostbyaddr=no
3431fi
3432rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3433LIBS=$ac_check_lib_save_LIBS
3434fi
3435echo "$as_me:3435: result: $ac_cv_lib_c_gethostbyaddr" >&5
3436echo "${ECHO_T}$ac_cv_lib_c_gethostbyaddr" >&6
3437if test $ac_cv_lib_c_gethostbyaddr = yes; then
3438  :
3439else
3440
3441 echo "$as_me:3441: checking for gethostbyaddr in -lnsl" >&5
3442echo $ECHO_N "checking for gethostbyaddr in -lnsl... $ECHO_C" >&6
3443if test "${ac_cv_lib_nsl_gethostbyaddr+set}" = set; then
3444  echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446  ac_check_lib_save_LIBS=$LIBS
3447LIBS="-lnsl  $LIBS"
3448cat >conftest.$ac_ext <<_ACEOF
3449#line 3449 "configure"
3450#include "confdefs.h"
3451
3452/* Override any gcc2 internal prototype to avoid an error.  */
3453#ifdef __cplusplus
3454extern "C"
3455#endif
3456/* We use char because int might match the return type of a gcc2
3457   builtin and then its argument prototype would still apply.  */
3458char gethostbyaddr ();
3459int
3460main ()
3461{
3462gethostbyaddr ();
3463  ;
3464  return 0;
3465}
3466_ACEOF
3467rm -f conftest.$ac_objext conftest$ac_exeext
3468if { (eval echo "$as_me:3468: \"$ac_link\"") >&5
3469  (eval $ac_link) 2>&5
3470  ac_status=$?
3471  echo "$as_me:3471: \$? = $ac_status" >&5
3472  (exit $ac_status); } &&
3473         { ac_try='test -s conftest$ac_exeext'
3474  { (eval echo "$as_me:3474: \"$ac_try\"") >&5
3475  (eval $ac_try) 2>&5
3476  ac_status=$?
3477  echo "$as_me:3477: \$? = $ac_status" >&5
3478  (exit $ac_status); }; }; then
3479  ac_cv_lib_nsl_gethostbyaddr=yes
3480else
3481  echo "$as_me: failed program was:" >&5
3482cat conftest.$ac_ext >&5
3483ac_cv_lib_nsl_gethostbyaddr=no
3484fi
3485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3486LIBS=$ac_check_lib_save_LIBS
3487fi
3488echo "$as_me:3488: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
3489echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyaddr" >&6
3490if test $ac_cv_lib_nsl_gethostbyaddr = yes; then
3491
3492  LIBS="-lnsl ${LIBS}"
3493
3494fi
3495
3496fi
3497
3498echo "$as_me:3498: checking for getprotobynumber in -lc" >&5
3499echo $ECHO_N "checking for getprotobynumber in -lc... $ECHO_C" >&6
3500if test "${ac_cv_lib_c_getprotobynumber+set}" = set; then
3501  echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503  ac_check_lib_save_LIBS=$LIBS
3504LIBS="-lc  $LIBS"
3505cat >conftest.$ac_ext <<_ACEOF
3506#line 3506 "configure"
3507#include "confdefs.h"
3508
3509/* Override any gcc2 internal prototype to avoid an error.  */
3510#ifdef __cplusplus
3511extern "C"
3512#endif
3513/* We use char because int might match the return type of a gcc2
3514   builtin and then its argument prototype would still apply.  */
3515char getprotobynumber ();
3516int
3517main ()
3518{
3519getprotobynumber ();
3520  ;
3521  return 0;
3522}
3523_ACEOF
3524rm -f conftest.$ac_objext conftest$ac_exeext
3525if { (eval echo "$as_me:3525: \"$ac_link\"") >&5
3526  (eval $ac_link) 2>&5
3527  ac_status=$?
3528  echo "$as_me:3528: \$? = $ac_status" >&5
3529  (exit $ac_status); } &&
3530         { ac_try='test -s conftest$ac_exeext'
3531  { (eval echo "$as_me:3531: \"$ac_try\"") >&5
3532  (eval $ac_try) 2>&5
3533  ac_status=$?
3534  echo "$as_me:3534: \$? = $ac_status" >&5
3535  (exit $ac_status); }; }; then
3536  ac_cv_lib_c_getprotobynumber=yes
3537else
3538  echo "$as_me: failed program was:" >&5
3539cat conftest.$ac_ext >&5
3540ac_cv_lib_c_getprotobynumber=no
3541fi
3542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3543LIBS=$ac_check_lib_save_LIBS
3544fi
3545echo "$as_me:3545: result: $ac_cv_lib_c_getprotobynumber" >&5
3546echo "${ECHO_T}$ac_cv_lib_c_getprotobynumber" >&6
3547if test $ac_cv_lib_c_getprotobynumber = yes; then
3548  :
3549else
3550
3551 echo "$as_me:3551: checking for getprotobynumber in -lnsl" >&5
3552echo $ECHO_N "checking for getprotobynumber in -lnsl... $ECHO_C" >&6
3553if test "${ac_cv_lib_nsl_getprotobynumber+set}" = set; then
3554  echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556  ac_check_lib_save_LIBS=$LIBS
3557LIBS="-lnsl  $LIBS"
3558cat >conftest.$ac_ext <<_ACEOF
3559#line 3559 "configure"
3560#include "confdefs.h"
3561
3562/* Override any gcc2 internal prototype to avoid an error.  */
3563#ifdef __cplusplus
3564extern "C"
3565#endif
3566/* We use char because int might match the return type of a gcc2
3567   builtin and then its argument prototype would still apply.  */
3568char getprotobynumber ();
3569int
3570main ()
3571{
3572getprotobynumber ();
3573  ;
3574  return 0;
3575}
3576_ACEOF
3577rm -f conftest.$ac_objext conftest$ac_exeext
3578if { (eval echo "$as_me:3578: \"$ac_link\"") >&5
3579  (eval $ac_link) 2>&5
3580  ac_status=$?
3581  echo "$as_me:3581: \$? = $ac_status" >&5
3582  (exit $ac_status); } &&
3583         { ac_try='test -s conftest$ac_exeext'
3584  { (eval echo "$as_me:3584: \"$ac_try\"") >&5
3585  (eval $ac_try) 2>&5
3586  ac_status=$?
3587  echo "$as_me:3587: \$? = $ac_status" >&5
3588  (exit $ac_status); }; }; then
3589  ac_cv_lib_nsl_getprotobynumber=yes
3590else
3591  echo "$as_me: failed program was:" >&5
3592cat conftest.$ac_ext >&5
3593ac_cv_lib_nsl_getprotobynumber=no
3594fi
3595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3596LIBS=$ac_check_lib_save_LIBS
3597fi
3598echo "$as_me:3598: result: $ac_cv_lib_nsl_getprotobynumber" >&5
3599echo "${ECHO_T}$ac_cv_lib_nsl_getprotobynumber" >&6
3600if test $ac_cv_lib_nsl_getprotobynumber = yes; then
3601
3602  LIBS="-lnsl ${LIBS}"
3603
3604fi
3605
3606fi
3607
3608for ac_header in net/bpf.h
3609do
3610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3611echo "$as_me:3611: checking for $ac_header" >&5
3612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3613if eval "test \"\${$as_ac_Header+set}\" = set"; then
3614  echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616  cat >conftest.$ac_ext <<_ACEOF
3617#line 3617 "configure"
3618#include "confdefs.h"
3619#include <$ac_header>
3620_ACEOF
3621if { (eval echo "$as_me:3621: \"$ac_cpp conftest.$ac_ext\"") >&5
3622  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3623  ac_status=$?
3624  egrep -v '^ *\+' conftest.er1 >conftest.err
3625  rm -f conftest.er1
3626  cat conftest.err >&5
3627  echo "$as_me:3627: \$? = $ac_status" >&5
3628  (exit $ac_status); } >/dev/null; then
3629  if test -s conftest.err; then
3630    ac_cpp_err=$ac_c_preproc_warn_flag
3631  else
3632    ac_cpp_err=
3633  fi
3634else
3635  ac_cpp_err=yes
3636fi
3637if test -z "$ac_cpp_err"; then
3638  eval "$as_ac_Header=yes"
3639else
3640  echo "$as_me: failed program was:" >&5
3641  cat conftest.$ac_ext >&5
3642  eval "$as_ac_Header=no"
3643fi
3644rm -f conftest.err conftest.$ac_ext
3645fi
3646echo "$as_me:3646: result: `eval echo '${'$as_ac_Header'}'`" >&5
3647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3648if test `eval echo '${'$as_ac_Header'}'` = yes; then
3649  cat >>confdefs.h <<EOF
3650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3651EOF
3652
3653fi
3654done
3655
3656for ac_header in pcap.h
3657do
3658as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3659echo "$as_me:3659: checking for $ac_header" >&5
3660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3661if eval "test \"\${$as_ac_Header+set}\" = set"; then
3662  echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
3664  cat >conftest.$ac_ext <<_ACEOF
3665#line 3665 "configure"
3666#include "confdefs.h"
3667#include <$ac_header>
3668_ACEOF
3669if { (eval echo "$as_me:3669: \"$ac_cpp conftest.$ac_ext\"") >&5
3670  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3671  ac_status=$?
3672  egrep -v '^ *\+' conftest.er1 >conftest.err
3673  rm -f conftest.er1
3674  cat conftest.err >&5
3675  echo "$as_me:3675: \$? = $ac_status" >&5
3676  (exit $ac_status); } >/dev/null; then
3677  if test -s conftest.err; then
3678    ac_cpp_err=$ac_c_preproc_warn_flag
3679  else
3680    ac_cpp_err=
3681  fi
3682else
3683  ac_cpp_err=yes
3684fi
3685if test -z "$ac_cpp_err"; then
3686  eval "$as_ac_Header=yes"
3687else
3688  echo "$as_me: failed program was:" >&5
3689  cat conftest.$ac_ext >&5
3690  eval "$as_ac_Header=no"
3691fi
3692rm -f conftest.err conftest.$ac_ext
3693fi
3694echo "$as_me:3694: result: `eval echo '${'$as_ac_Header'}'`" >&5
3695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3696if test `eval echo '${'$as_ac_Header'}'` = yes; then
3697  cat >>confdefs.h <<EOF
3698#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3699EOF
3700 :
3701else
3702
3703 { { echo "$as_me:3703: error:
3704  I couldn't find pcap.h.  Please install libpcap.
3705  If you already have... then please rerun configure with the option
3706    --with-pcap-include=DIR
3707  with \"DIR\" being where pcap is found." >&5
3708echo "$as_me: error:
3709  I couldn't find pcap.h.  Please install libpcap.
3710  If you already have... then please rerun configure with the option
3711    --with-pcap-include=DIR
3712  with \"DIR\" being where pcap is found." >&2;}
3713   { (exit 1); exit 1; }; }
3714
3715fi
3716done
3717
3718echo "$as_me:3718: checking for pcap_major_version in -lpcap" >&5
3719echo $ECHO_N "checking for pcap_major_version in -lpcap... $ECHO_C" >&6
3720if test "${ac_cv_lib_pcap_pcap_major_version+set}" = set; then
3721  echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723  ac_check_lib_save_LIBS=$LIBS
3724LIBS="-lpcap  $LIBS"
3725cat >conftest.$ac_ext <<_ACEOF
3726#line 3726 "configure"
3727#include "confdefs.h"
3728
3729/* Override any gcc2 internal prototype to avoid an error.  */
3730#ifdef __cplusplus
3731extern "C"
3732#endif
3733/* We use char because int might match the return type of a gcc2
3734   builtin and then its argument prototype would still apply.  */
3735char pcap_major_version ();
3736int
3737main ()
3738{
3739pcap_major_version ();
3740  ;
3741  return 0;
3742}
3743_ACEOF
3744rm -f conftest.$ac_objext conftest$ac_exeext
3745if { (eval echo "$as_me:3745: \"$ac_link\"") >&5
3746  (eval $ac_link) 2>&5
3747  ac_status=$?
3748  echo "$as_me:3748: \$? = $ac_status" >&5
3749  (exit $ac_status); } &&
3750         { ac_try='test -s conftest$ac_exeext'
3751  { (eval echo "$as_me:3751: \"$ac_try\"") >&5
3752  (eval $ac_try) 2>&5
3753  ac_status=$?
3754  echo "$as_me:3754: \$? = $ac_status" >&5
3755  (exit $ac_status); }; }; then
3756  ac_cv_lib_pcap_pcap_major_version=yes
3757else
3758  echo "$as_me: failed program was:" >&5
3759cat conftest.$ac_ext >&5
3760ac_cv_lib_pcap_pcap_major_version=no
3761fi
3762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3763LIBS=$ac_check_lib_save_LIBS
3764fi
3765echo "$as_me:3765: result: $ac_cv_lib_pcap_pcap_major_version" >&5
3766echo "${ECHO_T}$ac_cv_lib_pcap_pcap_major_version" >&6
3767if test $ac_cv_lib_pcap_pcap_major_version = yes; then
3768  LIBS="-lpcap ${LIBS}"
3769else
3770
3771 { { echo "$as_me:3771: error:
3772  I couldn't find libpcap.  Please install libpcap.
3773  If you already have... then please rerun configure with the option
3774    --with-pcap-lib=DIR
3775  with \"DIR\" being where libpcap is found." >&5
3776echo "$as_me: error:
3777  I couldn't find libpcap.  Please install libpcap.
3778  If you already have... then please rerun configure with the option
3779    --with-pcap-lib=DIR
3780  with \"DIR\" being where libpcap is found." >&2;}
3781   { (exit 1); exit 1; }; }
3782
3783fi
3784
3785TCPPROF=""
3786LD_TCPPROF=""
3787echo "$as_me:3787: checking for dbopen in -lc" >&5
3788echo $ECHO_N "checking for dbopen in -lc... $ECHO_C" >&6
3789if test "${ac_cv_lib_c_dbopen+set}" = set; then
3790  echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792  ac_check_lib_save_LIBS=$LIBS
3793LIBS="-lc  $LIBS"
3794cat >conftest.$ac_ext <<_ACEOF
3795#line 3795 "configure"
3796#include "confdefs.h"
3797
3798/* Override any gcc2 internal prototype to avoid an error.  */
3799#ifdef __cplusplus
3800extern "C"
3801#endif
3802/* We use char because int might match the return type of a gcc2
3803   builtin and then its argument prototype would still apply.  */
3804char dbopen ();
3805int
3806main ()
3807{
3808dbopen ();
3809  ;
3810  return 0;
3811}
3812_ACEOF
3813rm -f conftest.$ac_objext conftest$ac_exeext
3814if { (eval echo "$as_me:3814: \"$ac_link\"") >&5
3815  (eval $ac_link) 2>&5
3816  ac_status=$?
3817  echo "$as_me:3817: \$? = $ac_status" >&5
3818  (exit $ac_status); } &&
3819         { ac_try='test -s conftest$ac_exeext'
3820  { (eval echo "$as_me:3820: \"$ac_try\"") >&5
3821  (eval $ac_try) 2>&5
3822  ac_status=$?
3823  echo "$as_me:3823: \$? = $ac_status" >&5
3824  (exit $ac_status); }; }; then
3825  ac_cv_lib_c_dbopen=yes
3826else
3827  echo "$as_me: failed program was:" >&5
3828cat conftest.$ac_ext >&5
3829ac_cv_lib_c_dbopen=no
3830fi
3831rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3832LIBS=$ac_check_lib_save_LIBS
3833fi
3834echo "$as_me:3834: result: $ac_cv_lib_c_dbopen" >&5
3835echo "${ECHO_T}$ac_cv_lib_c_dbopen" >&6
3836if test $ac_cv_lib_c_dbopen = yes; then
3837   TCPPROF=tcpprof
3838else
3839
3840 echo "$as_me:3840: checking for dbopen in -ldb1" >&5
3841echo $ECHO_N "checking for dbopen in -ldb1... $ECHO_C" >&6
3842if test "${ac_cv_lib_db1_dbopen+set}" = set; then
3843  echo $ECHO_N "(cached) $ECHO_C" >&6
3844else
3845  ac_check_lib_save_LIBS=$LIBS
3846LIBS="-ldb1  $LIBS"
3847cat >conftest.$ac_ext <<_ACEOF
3848#line 3848 "configure"
3849#include "confdefs.h"
3850
3851/* Override any gcc2 internal prototype to avoid an error.  */
3852#ifdef __cplusplus
3853extern "C"
3854#endif
3855/* We use char because int might match the return type of a gcc2
3856   builtin and then its argument prototype would still apply.  */
3857char dbopen ();
3858int
3859main ()
3860{
3861dbopen ();
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866rm -f conftest.$ac_objext conftest$ac_exeext
3867if { (eval echo "$as_me:3867: \"$ac_link\"") >&5
3868  (eval $ac_link) 2>&5
3869  ac_status=$?
3870  echo "$as_me:3870: \$? = $ac_status" >&5
3871  (exit $ac_status); } &&
3872         { ac_try='test -s conftest$ac_exeext'
3873  { (eval echo "$as_me:3873: \"$ac_try\"") >&5
3874  (eval $ac_try) 2>&5
3875  ac_status=$?
3876  echo "$as_me:3876: \$? = $ac_status" >&5
3877  (exit $ac_status); }; }; then
3878  ac_cv_lib_db1_dbopen=yes
3879else
3880  echo "$as_me: failed program was:" >&5
3881cat conftest.$ac_ext >&5
3882ac_cv_lib_db1_dbopen=no
3883fi
3884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3885LIBS=$ac_check_lib_save_LIBS
3886fi
3887echo "$as_me:3887: result: $ac_cv_lib_db1_dbopen" >&5
3888echo "${ECHO_T}$ac_cv_lib_db1_dbopen" >&6
3889if test $ac_cv_lib_db1_dbopen = yes; then
3890
3891  TCPPROF=tcpprof
3892  LD_TCPPROF="-ldb1"
3893
3894cat >>confdefs.h <<\EOF
3895#define USE_DB1_LIBRARY 1
3896EOF
3897
3898else
3899
3900  { echo "$as_me:3900: WARNING:
3901
3902  *** WARNING ***
3903  I couldn't locate the Berkeley DB library.  The extra utility
3904  \"tcpprof\" will not be built.  THIS IS OK!!!  \"tcpstat\" will
3905  continue to be built as if this never happened.
3906
3907  If you wish to use the extra \"tcpprof\" program, please install
3908  the Berkeley DB library from:
3909      ftp://ftp.cs.berkeley.edu/ucb/4bsd/db.tar.gz
3910    " >&5
3911echo "$as_me: WARNING:
3912
3913  *** WARNING ***
3914  I couldn't locate the Berkeley DB library.  The extra utility
3915  \"tcpprof\" will not be built.  THIS IS OK!!!  \"tcpstat\" will
3916  continue to be built as if this never happened.
3917
3918  If you wish to use the extra \"tcpprof\" program, please install
3919  the Berkeley DB library from:
3920      ftp://ftp.cs.berkeley.edu/ucb/4bsd/db.tar.gz
3921    " >&2;}
3922
3923fi
3924
3925fi
3926
3927ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile src/Makefile"
3928
3929cat >confcache <<\_ACEOF
3930# This file is a shell script that caches the results of configure
3931# tests run on this system so they can be shared between configure
3932# scripts and configure runs, see configure's option --config-cache.
3933# It is not useful on other systems.  If it contains results you don't
3934# want to keep, you may remove or edit it.
3935#
3936# config.status only pays attention to the cache file if you give it
3937# the --recheck option to rerun configure.
3938#
3939# `ac_cv_env_foo' variables (set or unset) will be overriden when
3940# loading this file, other *unset* `ac_cv_foo' will be assigned the
3941# following values.
3942
3943_ACEOF
3944
3945# The following way of writing the cache mishandles newlines in values,
3946# but we know of no workaround that is simple, portable, and efficient.
3947# So, don't put newlines in cache variables' values.
3948# Ultrix sh set writes to stderr and can't be redirected directly,
3949# and sets the high bit in the cache file unless we assign to the vars.
3950{
3951  (set) 2>&1 |
3952    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3953    *ac_space=\ *)
3954      # `set' does not quote correctly, so add quotes (double-quote
3955      # substitution turns \\\\ into \\, and sed turns \\ into \).
3956      sed -n \
3957        "s/'/'\\\\''/g;
3958    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3959      ;;
3960    *)
3961      # `set' quotes correctly as required by POSIX, so do not add quotes.
3962      sed -n \
3963        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3964      ;;
3965    esac;
3966} |
3967  sed '
3968     t clear
3969     : clear
3970     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3971     t end
3972     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3973     : end' >>confcache
3974if cmp -s $cache_file confcache; then :; else
3975  if test -w $cache_file; then
3976    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3977    cat confcache >$cache_file
3978  else
3979    echo "not updating unwritable cache $cache_file"
3980  fi
3981fi
3982rm -f confcache
3983
3984test "x$prefix" = xNONE && prefix=$ac_default_prefix
3985# Let make expand exec_prefix.
3986test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3987
3988# VPATH may cause trouble with some makes, so we remove $(srcdir),
3989# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3990# trailing colons and then remove the whole line if VPATH becomes empty
3991# (actually we leave an empty line to preserve line numbers).
3992if test "x$srcdir" = x.; then
3993  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
3994s/:*\$(srcdir):*/:/;
3995s/:*\${srcdir}:*/:/;
3996s/:*@srcdir@:*/:/;
3997s/^\([^=]*=[ 	]*\):*/\1/;
3998s/:*$//;
3999s/^[^=]*=[ 	]*$//;
4000}'
4001fi
4002
4003DEFS=-DHAVE_CONFIG_H
4004
4005: ${CONFIG_STATUS=./config.status}
4006ac_clean_files_save=$ac_clean_files
4007ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4008{ echo "$as_me:4008: creating $CONFIG_STATUS" >&5
4009echo "$as_me: creating $CONFIG_STATUS" >&6;}
4010cat >$CONFIG_STATUS <<_ACEOF
4011#! $SHELL
4012# Generated automatically by configure.
4013# Run this file to recreate the current configuration.
4014# Compiler output produced by configure, useful for debugging
4015# configure, is in config.log if it exists.
4016
4017debug=false
4018SHELL=\${CONFIG_SHELL-$SHELL}
4019ac_cs_invocation="\$0 \$@"
4020
4021_ACEOF
4022
4023cat >>$CONFIG_STATUS <<\_ACEOF
4024# Be Bourne compatible
4025if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4026  emulate sh
4027  NULLCMD=:
4028elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4029  set -o posix
4030fi
4031
4032# Name of the executable.
4033as_me=`echo "$0" |sed 's,.*[\\/],,'`
4034
4035if expr a : '\(a\)' >/dev/null 2>&1; then
4036  as_expr=expr
4037else
4038  as_expr=false
4039fi
4040
4041rm -f conf$$ conf$$.exe conf$$.file
4042echo >conf$$.file
4043if ln -s conf$$.file conf$$ 2>/dev/null; then
4044  # We could just check for DJGPP; but this test a) works b) is more generic
4045  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4046  if test -f conf$$.exe; then
4047    # Don't use ln at all; we don't have any links
4048    as_ln_s='cp -p'
4049  else
4050    as_ln_s='ln -s'
4051  fi
4052elif ln conf$$.file conf$$ 2>/dev/null; then
4053  as_ln_s=ln
4054else
4055  as_ln_s='cp -p'
4056fi
4057rm -f conf$$ conf$$.exe conf$$.file
4058
4059as_executable_p="test -f"
4060
4061# Support unset when possible.
4062if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4063  as_unset=unset
4064else
4065  as_unset=false
4066fi
4067
4068# NLS nuisances.
4069$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4070$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4071$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4072$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4073$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4074$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4075$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4076$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4077
4078# IFS
4079# We need space, tab and new line, in precisely that order.
4080as_nl='
4081'
4082IFS=" 	$as_nl"
4083
4084# CDPATH.
4085$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4086
4087exec 6>&1
4088
4089_ACEOF
4090
4091# Files that config.status was made for.
4092if test -n "$ac_config_files"; then
4093  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4094fi
4095
4096if test -n "$ac_config_headers"; then
4097  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4098fi
4099
4100if test -n "$ac_config_links"; then
4101  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4102fi
4103
4104if test -n "$ac_config_commands"; then
4105  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4106fi
4107
4108cat >>$CONFIG_STATUS <<\EOF
4109
4110ac_cs_usage="\
4111\`$as_me' instantiates files from templates according to the
4112current configuration.
4113
4114Usage: $0 [OPTIONS] [FILE]...
4115
4116  -h, --help       print this help, then exit
4117  -V, --version    print version number, then exit
4118  -d, --debug      don't remove temporary files
4119      --recheck    update $as_me by reconfiguring in the same conditions
4120  --file=FILE[:TEMPLATE]
4121                   instantiate the configuration file FILE
4122  --header=FILE[:TEMPLATE]
4123                   instantiate the configuration header FILE
4124
4125Configuration files:
4126$config_files
4127
4128Configuration headers:
4129$config_headers
4130
4131Configuration commands:
4132$config_commands
4133
4134Report bugs to <bug-autoconf@gnu.org>."
4135EOF
4136
4137cat >>$CONFIG_STATUS <<EOF
4138ac_cs_version="\\
4139config.status
4140configured by $0, generated by GNU Autoconf 2.52,
4141  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4142
4143Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4144Free Software Foundation, Inc.
4145This config.status script is free software; the Free Software Foundation
4146gives unlimited permission to copy, distribute and modify it."
4147srcdir=$srcdir
4148INSTALL="$INSTALL"
4149EOF
4150
4151cat >>$CONFIG_STATUS <<\EOF
4152# If no file are specified by the user, then we need to provide default
4153# value.  By we need to know if files were specified by the user.
4154ac_need_defaults=:
4155while test $# != 0
4156do
4157  case $1 in
4158  --*=*)
4159    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4160    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4161    shift
4162    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4163    shift
4164    ;;
4165  -*);;
4166  *) # This is not an option, so the user has probably given explicit
4167     # arguments.
4168     ac_need_defaults=false;;
4169  esac
4170
4171  case $1 in
4172  # Handling of the options.
4173EOF
4174cat >>$CONFIG_STATUS <<EOF
4175  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4176    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4177    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4178EOF
4179cat >>$CONFIG_STATUS <<\EOF
4180  --version | --vers* | -V )
4181    echo "$ac_cs_version"; exit 0 ;;
4182  --he | --h)
4183    # Conflict between --help and --header
4184    { { echo "$as_me:4184: error: ambiguous option: $1
4185Try \`$0 --help' for more information." >&5
4186echo "$as_me: error: ambiguous option: $1
4187Try \`$0 --help' for more information." >&2;}
4188   { (exit 1); exit 1; }; };;
4189  --help | --hel | -h )
4190    echo "$ac_cs_usage"; exit 0 ;;
4191  --debug | --d* | -d )
4192    debug=: ;;
4193  --file | --fil | --fi | --f )
4194    shift
4195    CONFIG_FILES="$CONFIG_FILES $1"
4196    ac_need_defaults=false;;
4197  --header | --heade | --head | --hea )
4198    shift
4199    CONFIG_HEADERS="$CONFIG_HEADERS $1"
4200    ac_need_defaults=false;;
4201
4202  # This is an error.
4203  -*) { { echo "$as_me:4203: error: unrecognized option: $1
4204Try \`$0 --help' for more information." >&5
4205echo "$as_me: error: unrecognized option: $1
4206Try \`$0 --help' for more information." >&2;}
4207   { (exit 1); exit 1; }; } ;;
4208
4209  *) ac_config_targets="$ac_config_targets $1" ;;
4210
4211  esac
4212  shift
4213done
4214
4215exec 5>>config.log
4216cat >&5 << _ACEOF
4217
4218## ----------------------- ##
4219## Running config.status.  ##
4220## ----------------------- ##
4221
4222This file was extended by $as_me 2.52, executed with
4223  CONFIG_FILES    = $CONFIG_FILES
4224  CONFIG_HEADERS  = $CONFIG_HEADERS
4225  CONFIG_LINKS    = $CONFIG_LINKS
4226  CONFIG_COMMANDS = $CONFIG_COMMANDS
4227  > $ac_cs_invocation
4228on `(hostname || uname -n) 2>/dev/null | sed 1q`
4229
4230_ACEOF
4231EOF
4232
4233cat >>$CONFIG_STATUS <<EOF
4234#
4235# INIT-COMMANDS section.
4236#
4237
4238AMDEP_TRUE="$AMDEP_TRUE"
4239ac_aux_dir="$ac_aux_dir"
4240
4241EOF
4242
4243cat >>$CONFIG_STATUS <<\EOF
4244for ac_config_target in $ac_config_targets
4245do
4246  case "$ac_config_target" in
4247  # Handling of arguments.
4248  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4249  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
4250  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
4251  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4252  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4253  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
4254  *) { { echo "$as_me:4254: error: invalid argument: $ac_config_target" >&5
4255echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4256   { (exit 1); exit 1; }; };;
4257  esac
4258done
4259
4260# If the user did not use the arguments to specify the items to instantiate,
4261# then the envvar interface is used.  Set only those that are not.
4262# We use the long form for the default assignment because of an extremely
4263# bizarre bug on SunOS 4.1.3.
4264if $ac_need_defaults; then
4265  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4266  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4267  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4268fi
4269
4270# Create a temporary directory, and hook for its removal unless debugging.
4271$debug ||
4272{
4273  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4274  trap '{ (exit 1); exit 1; }' 1 2 13 15
4275}
4276
4277# Create a (secure) tmp directory for tmp files.
4278: ${TMPDIR=/tmp}
4279{
4280  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4281  test -n "$tmp" && test -d "$tmp"
4282}  ||
4283{
4284  tmp=$TMPDIR/cs$$-$RANDOM
4285  (umask 077 && mkdir $tmp)
4286} ||
4287{
4288   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4289   { (exit 1); exit 1; }
4290}
4291
4292EOF
4293
4294cat >>$CONFIG_STATUS <<EOF
4295
4296#
4297# CONFIG_FILES section.
4298#
4299
4300# No need to generate the scripts if there are no CONFIG_FILES.
4301# This happens for instance when ./config.status config.h
4302if test -n "\$CONFIG_FILES"; then
4303  # Protect against being on the right side of a sed subst in config.status.
4304  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4305   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4306s,@SHELL@,$SHELL,;t t
4307s,@exec_prefix@,$exec_prefix,;t t
4308s,@prefix@,$prefix,;t t
4309s,@program_transform_name@,$program_transform_name,;t t
4310s,@bindir@,$bindir,;t t
4311s,@sbindir@,$sbindir,;t t
4312s,@libexecdir@,$libexecdir,;t t
4313s,@datadir@,$datadir,;t t
4314s,@sysconfdir@,$sysconfdir,;t t
4315s,@sharedstatedir@,$sharedstatedir,;t t
4316s,@localstatedir@,$localstatedir,;t t
4317s,@libdir@,$libdir,;t t
4318s,@includedir@,$includedir,;t t
4319s,@oldincludedir@,$oldincludedir,;t t
4320s,@infodir@,$infodir,;t t
4321s,@mandir@,$mandir,;t t
4322s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4323s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4324s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4325s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4326s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4327s,@build_alias@,$build_alias,;t t
4328s,@host_alias@,$host_alias,;t t
4329s,@target_alias@,$target_alias,;t t
4330s,@ECHO_C@,$ECHO_C,;t t
4331s,@ECHO_N@,$ECHO_N,;t t
4332s,@ECHO_T@,$ECHO_T,;t t
4333s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4334s,@DEFS@,$DEFS,;t t
4335s,@LIBS@,$LIBS,;t t
4336s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4337s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4338s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4339s,@PACKAGE@,$PACKAGE,;t t
4340s,@VERSION@,$VERSION,;t t
4341s,@EXEEXT@,$EXEEXT,;t t
4342s,@OBJEXT@,$OBJEXT,;t t
4343s,@ACLOCAL@,$ACLOCAL,;t t
4344s,@AUTOCONF@,$AUTOCONF,;t t
4345s,@AUTOMAKE@,$AUTOMAKE,;t t
4346s,@AUTOHEADER@,$AUTOHEADER,;t t
4347s,@MAKEINFO@,$MAKEINFO,;t t
4348s,@AMTAR@,$AMTAR,;t t
4349s,@install_sh@,$install_sh,;t t
4350s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4351s,@AWK@,$AWK,;t t
4352s,@SET_MAKE@,$SET_MAKE,;t t
4353s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4354s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4355s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4356s,@DEPDIR@,$DEPDIR,;t t
4357s,@CC@,$CC,;t t
4358s,@CFLAGS@,$CFLAGS,;t t
4359s,@LDFLAGS@,$LDFLAGS,;t t
4360s,@CPPFLAGS@,$CPPFLAGS,;t t
4361s,@ac_ct_CC@,$ac_ct_CC,;t t
4362s,@am__include@,$am__include,;t t
4363s,@am__quote@,$am__quote,;t t
4364s,@CCDEPMODE@,$CCDEPMODE,;t t
4365s,@RANLIB@,$RANLIB,;t t
4366s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4367s,@CPP@,$CPP,;t t
4368s,@TCPPROF@,$TCPPROF,;t t
4369s,@LD_TCPPROF@,$LD_TCPPROF,;t t
4370s,@MATHLIB@,$MATHLIB,;t t
4371CEOF
4372
4373EOF
4374
4375  cat >>$CONFIG_STATUS <<\EOF
4376  # Split the substitutions into bite-sized pieces for seds with
4377  # small command number limits, like on Digital OSF/1 and HP-UX.
4378  ac_max_sed_lines=48
4379  ac_sed_frag=1 # Number of current file.
4380  ac_beg=1 # First line for current file.
4381  ac_end=$ac_max_sed_lines # Line after last line for current file.
4382  ac_more_lines=:
4383  ac_sed_cmds=
4384  while $ac_more_lines; do
4385    if test $ac_beg -gt 1; then
4386      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4387    else
4388      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4389    fi
4390    if test ! -s $tmp/subs.frag; then
4391      ac_more_lines=false
4392    else
4393      # The purpose of the label and of the branching condition is to
4394      # speed up the sed processing (if there are no `@' at all, there
4395      # is no need to browse any of the substitutions).
4396      # These are the two extra sed commands mentioned above.
4397      (echo ':t
4398  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4399      if test -z "$ac_sed_cmds"; then
4400  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4401      else
4402  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4403      fi
4404      ac_sed_frag=`expr $ac_sed_frag + 1`
4405      ac_beg=$ac_end
4406      ac_end=`expr $ac_end + $ac_max_sed_lines`
4407    fi
4408  done
4409  if test -z "$ac_sed_cmds"; then
4410    ac_sed_cmds=cat
4411  fi
4412fi # test -n "$CONFIG_FILES"
4413
4414EOF
4415cat >>$CONFIG_STATUS <<\EOF
4416for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4417  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4418  case $ac_file in
4419  - | *:- | *:-:* ) # input from stdin
4420        cat >$tmp/stdin
4421        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4422        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4423  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4424        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4425  * )   ac_file_in=$ac_file.in ;;
4426  esac
4427
4428  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4429  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4430         X"$ac_file" : 'X\(//\)[^/]' \| \
4431         X"$ac_file" : 'X\(//\)$' \| \
4432         X"$ac_file" : 'X\(/\)' \| \
4433         .     : '\(.\)' 2>/dev/null ||
4434echo X"$ac_file" |
4435    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4436  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4437  	  /^X\(\/\/\)$/{ s//\1/; q; }
4438  	  /^X\(\/\).*/{ s//\1/; q; }
4439  	  s/.*/./; q'`
4440  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4441    { case "$ac_dir" in
4442  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4443  *)                      as_incr_dir=.;;
4444esac
4445as_dummy="$ac_dir"
4446for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4447  case $as_mkdir_dir in
4448    # Skip DOS drivespec
4449    ?:) as_incr_dir=$as_mkdir_dir ;;
4450    *)
4451      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4452      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4453    ;;
4454  esac
4455done; }
4456
4457    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4458    # A "../" for each directory in $ac_dir_suffix.
4459    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4460  else
4461    ac_dir_suffix= ac_dots=
4462  fi
4463
4464  case $srcdir in
4465  .)  ac_srcdir=.
4466      if test -z "$ac_dots"; then
4467         ac_top_srcdir=.
4468      else
4469         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4470      fi ;;
4471  [\\/]* | ?:[\\/]* )
4472      ac_srcdir=$srcdir$ac_dir_suffix;
4473      ac_top_srcdir=$srcdir ;;
4474  *) # Relative path.
4475    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4476    ac_top_srcdir=$ac_dots$srcdir ;;
4477  esac
4478
4479  case $INSTALL in
4480  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4481  *) ac_INSTALL=$ac_dots$INSTALL ;;
4482  esac
4483
4484  if test x"$ac_file" != x-; then
4485    { echo "$as_me:4485: creating $ac_file" >&5
4486echo "$as_me: creating $ac_file" >&6;}
4487    rm -f "$ac_file"
4488  fi
4489  # Let's still pretend it is `configure' which instantiates (i.e., don't
4490  # use $as_me), people would be surprised to read:
4491  #    /* config.h.  Generated automatically by config.status.  */
4492  configure_input="Generated automatically from `echo $ac_file_in |
4493                                                 sed 's,.*/,,'` by configure."
4494
4495  # First look for the input files in the build tree, otherwise in the
4496  # src tree.
4497  ac_file_inputs=`IFS=:
4498    for f in $ac_file_in; do
4499      case $f in
4500      -) echo $tmp/stdin ;;
4501      [\\/$]*)
4502         # Absolute (can't be DOS-style, as IFS=:)
4503         test -f "$f" || { { echo "$as_me:4503: error: cannot find input file: $f" >&5
4504echo "$as_me: error: cannot find input file: $f" >&2;}
4505   { (exit 1); exit 1; }; }
4506         echo $f;;
4507      *) # Relative
4508         if test -f "$f"; then
4509           # Build tree
4510           echo $f
4511         elif test -f "$srcdir/$f"; then
4512           # Source tree
4513           echo $srcdir/$f
4514         else
4515           # /dev/null tree
4516           { { echo "$as_me:4516: error: cannot find input file: $f" >&5
4517echo "$as_me: error: cannot find input file: $f" >&2;}
4518   { (exit 1); exit 1; }; }
4519         fi;;
4520      esac
4521    done` || { (exit 1); exit 1; }
4522EOF
4523cat >>$CONFIG_STATUS <<EOF
4524  sed "$ac_vpsub
4525$extrasub
4526EOF
4527cat >>$CONFIG_STATUS <<\EOF
4528:t
4529/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4530s,@configure_input@,$configure_input,;t t
4531s,@srcdir@,$ac_srcdir,;t t
4532s,@top_srcdir@,$ac_top_srcdir,;t t
4533s,@INSTALL@,$ac_INSTALL,;t t
4534" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4535  rm -f $tmp/stdin
4536  if test x"$ac_file" != x-; then
4537    mv $tmp/out $ac_file
4538  else
4539    cat $tmp/out
4540    rm -f $tmp/out
4541  fi
4542
4543done
4544EOF
4545cat >>$CONFIG_STATUS <<\EOF
4546
4547#
4548# CONFIG_HEADER section.
4549#
4550
4551# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4552# NAME is the cpp macro being defined and VALUE is the value it is being given.
4553#
4554# ac_d sets the value in "#define NAME VALUE" lines.
4555ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
4556ac_dB='[ 	].*$,\1#\2'
4557ac_dC=' '
4558ac_dD=',;t'
4559# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4560ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
4561ac_uB='$,\1#\2define\3'
4562ac_uC=' '
4563ac_uD=',;t'
4564
4565for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4566  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4567  case $ac_file in
4568  - | *:- | *:-:* ) # input from stdin
4569        cat >$tmp/stdin
4570        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4571        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4572  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4573        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4574  * )   ac_file_in=$ac_file.in ;;
4575  esac
4576
4577  test x"$ac_file" != x- && { echo "$as_me:4577: creating $ac_file" >&5
4578echo "$as_me: creating $ac_file" >&6;}
4579
4580  # First look for the input files in the build tree, otherwise in the
4581  # src tree.
4582  ac_file_inputs=`IFS=:
4583    for f in $ac_file_in; do
4584      case $f in
4585      -) echo $tmp/stdin ;;
4586      [\\/$]*)
4587         # Absolute (can't be DOS-style, as IFS=:)
4588         test -f "$f" || { { echo "$as_me:4588: error: cannot find input file: $f" >&5
4589echo "$as_me: error: cannot find input file: $f" >&2;}
4590   { (exit 1); exit 1; }; }
4591         echo $f;;
4592      *) # Relative
4593         if test -f "$f"; then
4594           # Build tree
4595           echo $f
4596         elif test -f "$srcdir/$f"; then
4597           # Source tree
4598           echo $srcdir/$f
4599         else
4600           # /dev/null tree
4601           { { echo "$as_me:4601: error: cannot find input file: $f" >&5
4602echo "$as_me: error: cannot find input file: $f" >&2;}
4603   { (exit 1); exit 1; }; }
4604         fi;;
4605      esac
4606    done` || { (exit 1); exit 1; }
4607  # Remove the trailing spaces.
4608  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
4609
4610EOF
4611
4612# Transform confdefs.h into two sed scripts, `conftest.defines' and
4613# `conftest.undefs', that substitutes the proper values into
4614# config.h.in to produce config.h.  The first handles `#define'
4615# templates, and the second `#undef' templates.
4616# And first: Protect against being on the right side of a sed subst in
4617# config.status.  Protect against being in an unquoted here document
4618# in config.status.
4619rm -f conftest.defines conftest.undefs
4620# Using a here document instead of a string reduces the quoting nightmare.
4621# Putting comments in sed scripts is not portable.
4622#
4623# `end' is used to avoid that the second main sed command (meant for
4624# 0-ary CPP macros) applies to n-ary macro definitions.
4625# See the Autoconf documentation for `clear'.
4626cat >confdef2sed.sed <<\EOF
4627s/[\\&,]/\\&/g
4628s,[\\$`],\\&,g
4629t clear
4630: clear
4631s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
4632t end
4633s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4634: end
4635EOF
4636# If some macros were called several times there might be several times
4637# the same #defines, which is useless.  Nevertheless, we may not want to
4638# sort them, since we want the *last* AC-DEFINE to be honored.
4639uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4640sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4641rm -f confdef2sed.sed
4642
4643# This sed command replaces #undef with comments.  This is necessary, for
4644# example, in the case of _POSIX_SOURCE, which is predefined and required
4645# on some systems where configure will not decide to define it.
4646cat >>conftest.undefs <<\EOF
4647s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4648EOF
4649
4650# Break up conftest.defines because some shells have a limit on the size
4651# of here documents, and old seds have small limits too (100 cmds).
4652echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4653echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4654echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4655echo '  :' >>$CONFIG_STATUS
4656rm -f conftest.tail
4657while grep . conftest.defines >/dev/null
4658do
4659  # Write a limited-size here document to $tmp/defines.sed.
4660  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4661  # Speed up: don't consider the non `#define' lines.
4662  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
4663  # Work around the forget-to-reset-the-flag bug.
4664  echo 't clr' >>$CONFIG_STATUS
4665  echo ': clr' >>$CONFIG_STATUS
4666  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4667  echo 'CEOF
4668  sed -f $tmp/defines.sed $tmp/in >$tmp/out
4669  rm -f $tmp/in
4670  mv $tmp/out $tmp/in
4671' >>$CONFIG_STATUS
4672  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4673  rm -f conftest.defines
4674  mv conftest.tail conftest.defines
4675done
4676rm -f conftest.defines
4677echo '  fi # egrep' >>$CONFIG_STATUS
4678echo >>$CONFIG_STATUS
4679
4680# Break up conftest.undefs because some shells have a limit on the size
4681# of here documents, and old seds have small limits too (100 cmds).
4682echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4683rm -f conftest.tail
4684while grep . conftest.undefs >/dev/null
4685do
4686  # Write a limited-size here document to $tmp/undefs.sed.
4687  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4688  # Speed up: don't consider the non `#undef'
4689  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
4690  # Work around the forget-to-reset-the-flag bug.
4691  echo 't clr' >>$CONFIG_STATUS
4692  echo ': clr' >>$CONFIG_STATUS
4693  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4694  echo 'CEOF
4695  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4696  rm -f $tmp/in
4697  mv $tmp/out $tmp/in
4698' >>$CONFIG_STATUS
4699  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4700  rm -f conftest.undefs
4701  mv conftest.tail conftest.undefs
4702done
4703rm -f conftest.undefs
4704
4705cat >>$CONFIG_STATUS <<\EOF
4706  # Let's still pretend it is `configure' which instantiates (i.e., don't
4707  # use $as_me), people would be surprised to read:
4708  #    /* config.h.  Generated automatically by config.status.  */
4709  if test x"$ac_file" = x-; then
4710    echo "/* Generated automatically by configure.  */" >$tmp/config.h
4711  else
4712    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
4713  fi
4714  cat $tmp/in >>$tmp/config.h
4715  rm -f $tmp/in
4716  if test x"$ac_file" != x-; then
4717    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4718      { echo "$as_me:4718: $ac_file is unchanged" >&5
4719echo "$as_me: $ac_file is unchanged" >&6;}
4720    else
4721      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4722         X"$ac_file" : 'X\(//\)[^/]' \| \
4723         X"$ac_file" : 'X\(//\)$' \| \
4724         X"$ac_file" : 'X\(/\)' \| \
4725         .     : '\(.\)' 2>/dev/null ||
4726echo X"$ac_file" |
4727    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4728  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4729  	  /^X\(\/\/\)$/{ s//\1/; q; }
4730  	  /^X\(\/\).*/{ s//\1/; q; }
4731  	  s/.*/./; q'`
4732      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4733        { case "$ac_dir" in
4734  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4735  *)                      as_incr_dir=.;;
4736esac
4737as_dummy="$ac_dir"
4738for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4739  case $as_mkdir_dir in
4740    # Skip DOS drivespec
4741    ?:) as_incr_dir=$as_mkdir_dir ;;
4742    *)
4743      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4744      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4745    ;;
4746  esac
4747done; }
4748
4749      fi
4750      rm -f $ac_file
4751      mv $tmp/config.h $ac_file
4752    fi
4753  else
4754    cat $tmp/config.h
4755    rm -f $tmp/config.h
4756  fi
4757  # Run the commands associated with the file.
4758  case $ac_file in
4759    include/config.h ) # update the timestamp
4760echo timestamp >"include/stamp-h1"
4761 ;;
4762  esac
4763done
4764EOF
4765cat >>$CONFIG_STATUS <<\EOF
4766
4767#
4768# CONFIG_COMMANDS section.
4769#
4770for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4771  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4772  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4773
4774  case $ac_dest in
4775    default-1 )
4776test x"$AMDEP_TRUE" != x"" ||
4777for mf in $CONFIG_FILES; do
4778  case "$mf" in
4779  Makefile) dirpart=.;;
4780  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
4781  *) continue;;
4782  esac
4783  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
4784  # Extract the definition of DEP_FILES from the Makefile without
4785  # running `make'.
4786  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
4787  test -z "$DEPDIR" && continue
4788  # When using ansi2knr, U may be empty or an underscore; expand it
4789  U=`sed -n -e '/^U = / s///p' < "$mf"`
4790  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
4791  # We invoke sed twice because it is the simplest approach to
4792  # changing $(DEPDIR) to its actual value in the expansion.
4793  for file in `sed -n -e '
4794    /^DEP_FILES = .*\\\\$/ {
4795      s/^DEP_FILES = //
4796      :loop
4797	s/\\\\$//
4798	p
4799	n
4800	/\\\\$/ b loop
4801      p
4802    }
4803    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
4804       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4805    # Make sure the directory exists.
4806    test -f "$dirpart/$file" && continue
4807    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
4808    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
4809    # echo "creating $dirpart/$file"
4810    echo '# dummy' > "$dirpart/$file"
4811  done
4812done
4813 ;;
4814  esac
4815done
4816EOF
4817
4818cat >>$CONFIG_STATUS <<\EOF
4819
4820{ (exit 0); exit 0; }
4821EOF
4822chmod +x $CONFIG_STATUS
4823ac_clean_files=$ac_clean_files_save
4824
4825# configure is writing to config.log, and then calls config.status.
4826# config.status does its own redirection, appending to config.log.
4827# Unfortunately, on DOS this fails, as config.log is still kept open
4828# by configure, so config.status won't be able to write to it; its
4829# output is simply discarded.  So we exec the FD to /dev/null,
4830# effectively closing config.log, so it can be properly (re)opened and
4831# appended to by config.status.  When coming back to configure, we
4832# need to make the FD available again.
4833if test "$no_create" != yes; then
4834  ac_cs_success=:
4835  exec 5>/dev/null
4836  $SHELL $CONFIG_STATUS || ac_cs_success=false
4837  exec 5>>config.log
4838  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4839  # would make configure fail if this is the last instruction.
4840  $ac_cs_success || { (exit 1); exit 1; }
4841fi
4842
4843