1#! /bin/sh
2# From configure.in Revision: 1.188.2.7 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59.
5#
6# Copyright (C) 2003 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## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23DUALCASE=1; export DUALCASE # for MKS sh
24
25# Support unset when possible.
26if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27  as_unset=unset
28else
29  as_unset=false
30fi
31
32
33# Work around bugs in pre-3.0 UWIN ksh.
34$as_unset ENV MAIL MAILPATH
35PS1='$ '
36PS2='> '
37PS4='+ '
38
39# NLS nuisances.
40for as_var in \
41  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43  LC_TELEPHONE LC_TIME
44do
45  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46    eval $as_var=C; export $as_var
47  else
48    $as_unset $as_var
49  fi
50done
51
52# Required to use basename.
53if expr a : '\(a\)' >/dev/null 2>&1; then
54  as_expr=expr
55else
56  as_expr=false
57fi
58
59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60  as_basename=basename
61else
62  as_basename=false
63fi
64
65
66# Name of the executable.
67as_me=`$as_basename "$0" ||
68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69	 X"$0" : 'X\(//\)$' \| \
70	 X"$0" : 'X\(/\)$' \| \
71	 .     : '\(.\)' 2>/dev/null ||
72echo X/"$0" |
73    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
75  	  /^X\/\(\/\).*/{ s//\1/; q; }
76  	  s/.*/./; q'`
77
78
79# PATH needs CR, and LINENO needs CR and PATH.
80# Avoid depending upon Character Ranges.
81as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84as_cr_digits='0123456789'
85as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87# The user is always right.
88if test "${PATH_SEPARATOR+set}" != set; then
89  echo "#! /bin/sh" >conf$$.sh
90  echo  "exit 0"   >>conf$$.sh
91  chmod +x conf$$.sh
92  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93    PATH_SEPARATOR=';'
94  else
95    PATH_SEPARATOR=:
96  fi
97  rm -f conf$$.sh
98fi
99
100
101  as_lineno_1=$LINENO
102  as_lineno_2=$LINENO
103  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104  test "x$as_lineno_1" != "x$as_lineno_2" &&
105  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106  # Find who we are.  Look in the path if we contain no path at all
107  # relative or not.
108  case $0 in
109    *[\\/]* ) as_myself=$0 ;;
110    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111for as_dir in $PATH
112do
113  IFS=$as_save_IFS
114  test -z "$as_dir" && as_dir=.
115  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116done
117
118       ;;
119  esac
120  # We did not find ourselves, most probably we were run as `sh COMMAND'
121  # in which case we are not to be found in the path.
122  if test "x$as_myself" = x; then
123    as_myself=$0
124  fi
125  if test ! -f "$as_myself"; then
126    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127   { (exit 1); exit 1; }; }
128  fi
129  case $CONFIG_SHELL in
130  '')
131    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133do
134  IFS=$as_save_IFS
135  test -z "$as_dir" && as_dir=.
136  for as_base in sh bash ksh sh5; do
137	 case $as_dir in
138	 /*)
139	   if ("$as_dir/$as_base" -c '
140  as_lineno_1=$LINENO
141  as_lineno_2=$LINENO
142  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143  test "x$as_lineno_1" != "x$as_lineno_2" &&
144  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147	     CONFIG_SHELL=$as_dir/$as_base
148	     export CONFIG_SHELL
149	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150	   fi;;
151	 esac
152       done
153done
154;;
155  esac
156
157  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158  # uniformly replaced by the line number.  The first 'sed' inserts a
159  # line-number line before each line; the second 'sed' does the real
160  # work.  The second script uses 'N' to pair each line-number line
161  # with the numbered line, and appends trailing '-' during
162  # substitution so that $LINENO is not a special case at line end.
163  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165  sed '=' <$as_myself |
166    sed '
167      N
168      s,$,-,
169      : loop
170      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171      t loop
172      s,-$,,
173      s,^['$as_cr_digits']*\n,,
174    ' >$as_me.lineno &&
175  chmod +x $as_me.lineno ||
176    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177   { (exit 1); exit 1; }; }
178
179  # Don't try to exec as it changes $[0], causing all sort of problems
180  # (the dirname of $[0] is not the place where we might find the
181  # original and so on.  Autoconf is especially sensible to this).
182  . ./$as_me.lineno
183  # Exit status is that of the last command.
184  exit
185}
186
187
188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189  *c*,-n*) ECHO_N= ECHO_C='
190' ECHO_T='	' ;;
191  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193esac
194
195if expr a : '\(a\)' >/dev/null 2>&1; then
196  as_expr=expr
197else
198  as_expr=false
199fi
200
201rm -f conf$$ conf$$.exe conf$$.file
202echo >conf$$.file
203if ln -s conf$$.file conf$$ 2>/dev/null; then
204  # We could just check for DJGPP; but this test a) works b) is more generic
205  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206  if test -f conf$$.exe; then
207    # Don't use ln at all; we don't have any links
208    as_ln_s='cp -p'
209  else
210    as_ln_s='ln -s'
211  fi
212elif ln conf$$.file conf$$ 2>/dev/null; then
213  as_ln_s=ln
214else
215  as_ln_s='cp -p'
216fi
217rm -f conf$$ conf$$.exe conf$$.file
218
219if mkdir -p . 2>/dev/null; then
220  as_mkdir_p=:
221else
222  test -d ./-p && rmdir ./-p
223  as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" 	$as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
245# Name of the host.
246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247# so uname gets run too.
248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250exec 6>&1
251
252#
253# Initializations.
254#
255ac_default_prefix=/usr/local
256ac_config_libobj_dir=.
257cross_compiling=no
258subdirs=
259MFLAGS=
260MAKEFLAGS=
261SHELL=${CONFIG_SHELL-/bin/sh}
262
263# Maximum number of lines to put in a shell here document.
264# This variable seems obsolete.  It should probably be removed, and
265# only ac_max_sed_lines should be used.
266: ${ac_max_here_lines=38}
267
268# Identity of this package.
269PACKAGE_NAME=
270PACKAGE_TARNAME=
271PACKAGE_VERSION=
272PACKAGE_STRING=
273PACKAGE_BUGREPORT=
274
275ac_unique_file="tcpdump.c"
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290#  include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295#  include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306#  include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357  # If the previous option needs an argument, assign it.
358  if test -n "$ac_prev"; then
359    eval "$ac_prev=\$ac_option"
360    ac_prev=
361    continue
362  fi
363
364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366  # Accept the important Cygnus configure options, so we can diagnose typos.
367
368  case $ac_option in
369
370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371    ac_prev=bindir ;;
372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373    bindir=$ac_optarg ;;
374
375  -build | --build | --buil | --bui | --bu)
376    ac_prev=build_alias ;;
377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378    build_alias=$ac_optarg ;;
379
380  -cache-file | --cache-file | --cache-fil | --cache-fi \
381  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382    ac_prev=cache_file ;;
383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385    cache_file=$ac_optarg ;;
386
387  --config-cache | -C)
388    cache_file=config.cache ;;
389
390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391    ac_prev=datadir ;;
392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393  | --da=*)
394    datadir=$ac_optarg ;;
395
396  -disable-* | --disable-*)
397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398    # Reject names that are not valid shell variable names.
399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401   { (exit 1); exit 1; }; }
402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403    eval "enable_$ac_feature=no" ;;
404
405  -enable-* | --enable-*)
406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407    # Reject names that are not valid shell variable names.
408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    case $ac_option in
413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414      *) ac_optarg=yes ;;
415    esac
416    eval "enable_$ac_feature='$ac_optarg'" ;;
417
418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420  | --exec | --exe | --ex)
421    ac_prev=exec_prefix ;;
422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424  | --exec=* | --exe=* | --ex=*)
425    exec_prefix=$ac_optarg ;;
426
427  -gas | --gas | --ga | --g)
428    # Obsolete; use --with-gas.
429    with_gas=yes ;;
430
431  -help | --help | --hel | --he | -h)
432    ac_init_help=long ;;
433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434    ac_init_help=recursive ;;
435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436    ac_init_help=short ;;
437
438  -host | --host | --hos | --ho)
439    ac_prev=host_alias ;;
440  -host=* | --host=* | --hos=* | --ho=*)
441    host_alias=$ac_optarg ;;
442
443  -includedir | --includedir | --includedi | --included | --include \
444  | --includ | --inclu | --incl | --inc)
445    ac_prev=includedir ;;
446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447  | --includ=* | --inclu=* | --incl=* | --inc=*)
448    includedir=$ac_optarg ;;
449
450  -infodir | --infodir | --infodi | --infod | --info | --inf)
451    ac_prev=infodir ;;
452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453    infodir=$ac_optarg ;;
454
455  -libdir | --libdir | --libdi | --libd)
456    ac_prev=libdir ;;
457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458    libdir=$ac_optarg ;;
459
460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461  | --libexe | --libex | --libe)
462    ac_prev=libexecdir ;;
463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464  | --libexe=* | --libex=* | --libe=*)
465    libexecdir=$ac_optarg ;;
466
467  -localstatedir | --localstatedir | --localstatedi | --localstated \
468  | --localstate | --localstat | --localsta | --localst \
469  | --locals | --local | --loca | --loc | --lo)
470    ac_prev=localstatedir ;;
471  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474    localstatedir=$ac_optarg ;;
475
476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477    ac_prev=mandir ;;
478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479    mandir=$ac_optarg ;;
480
481  -nfp | --nfp | --nf)
482    # Obsolete; use --without-fp.
483    with_fp=no ;;
484
485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486  | --no-cr | --no-c | -n)
487    no_create=yes ;;
488
489  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491    no_recursion=yes ;;
492
493  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495  | --oldin | --oldi | --old | --ol | --o)
496    ac_prev=oldincludedir ;;
497  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500    oldincludedir=$ac_optarg ;;
501
502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503    ac_prev=prefix ;;
504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505    prefix=$ac_optarg ;;
506
507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508  | --program-pre | --program-pr | --program-p)
509    ac_prev=program_prefix ;;
510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512    program_prefix=$ac_optarg ;;
513
514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515  | --program-suf | --program-su | --program-s)
516    ac_prev=program_suffix ;;
517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519    program_suffix=$ac_optarg ;;
520
521  -program-transform-name | --program-transform-name \
522  | --program-transform-nam | --program-transform-na \
523  | --program-transform-n | --program-transform- \
524  | --program-transform | --program-transfor \
525  | --program-transfo | --program-transf \
526  | --program-trans | --program-tran \
527  | --progr-tra | --program-tr | --program-t)
528    ac_prev=program_transform_name ;;
529  -program-transform-name=* | --program-transform-name=* \
530  | --program-transform-nam=* | --program-transform-na=* \
531  | --program-transform-n=* | --program-transform-=* \
532  | --program-transform=* | --program-transfor=* \
533  | --program-transfo=* | --program-transf=* \
534  | --program-trans=* | --program-tran=* \
535  | --progr-tra=* | --program-tr=* | --program-t=*)
536    program_transform_name=$ac_optarg ;;
537
538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539  | -silent | --silent | --silen | --sile | --sil)
540    silent=yes ;;
541
542  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543    ac_prev=sbindir ;;
544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545  | --sbi=* | --sb=*)
546    sbindir=$ac_optarg ;;
547
548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550  | --sharedst | --shareds | --shared | --share | --shar \
551  | --sha | --sh)
552    ac_prev=sharedstatedir ;;
553  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556  | --sha=* | --sh=*)
557    sharedstatedir=$ac_optarg ;;
558
559  -site | --site | --sit)
560    ac_prev=site ;;
561  -site=* | --site=* | --sit=*)
562    site=$ac_optarg ;;
563
564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565    ac_prev=srcdir ;;
566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567    srcdir=$ac_optarg ;;
568
569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570  | --syscon | --sysco | --sysc | --sys | --sy)
571    ac_prev=sysconfdir ;;
572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574    sysconfdir=$ac_optarg ;;
575
576  -target | --target | --targe | --targ | --tar | --ta | --t)
577    ac_prev=target_alias ;;
578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579    target_alias=$ac_optarg ;;
580
581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582    verbose=yes ;;
583
584  -version | --version | --versio | --versi | --vers | -V)
585    ac_init_version=: ;;
586
587  -with-* | --with-*)
588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589    # Reject names that are not valid shell variable names.
590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591      { echo "$as_me: error: invalid package name: $ac_package" >&2
592   { (exit 1); exit 1; }; }
593    ac_package=`echo $ac_package| sed 's/-/_/g'`
594    case $ac_option in
595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596      *) ac_optarg=yes ;;
597    esac
598    eval "with_$ac_package='$ac_optarg'" ;;
599
600  -without-* | --without-*)
601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602    # Reject names that are not valid shell variable names.
603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604      { echo "$as_me: error: invalid package name: $ac_package" >&2
605   { (exit 1); exit 1; }; }
606    ac_package=`echo $ac_package | sed 's/-/_/g'`
607    eval "with_$ac_package=no" ;;
608
609  --x)
610    # Obsolete; use --with-x.
611    with_x=yes ;;
612
613  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614  | --x-incl | --x-inc | --x-in | --x-i)
615    ac_prev=x_includes ;;
616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618    x_includes=$ac_optarg ;;
619
620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622    ac_prev=x_libraries ;;
623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625    x_libraries=$ac_optarg ;;
626
627  -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629   { (exit 1); exit 1; }; }
630    ;;
631
632  *=*)
633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634    # Reject names that are not valid shell variable names.
635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637   { (exit 1); exit 1; }; }
638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639    eval "$ac_envvar='$ac_optarg'"
640    export $ac_envvar ;;
641
642  *)
643    # FIXME: should be removed in autoconf 3.0.
644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648    ;;
649
650  esac
651done
652
653if test -n "$ac_prev"; then
654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655  { echo "$as_me: error: missing argument to $ac_option" >&2
656   { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662  eval ac_val=$`echo $ac_var`
663  case $ac_val in
664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666   { (exit 1); exit 1; }; };;
667  esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672	      localstatedir libdir includedir oldincludedir infodir mandir
673do
674  eval ac_val=$`echo $ac_var`
675  case $ac_val in
676    [\\/$]* | ?:[\\/]* ) ;;
677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678   { (exit 1); exit 1; }; };;
679  esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691  if test "x$build_alias" = x; then
692    cross_compiling=maybe
693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694    If a cross compiler is detected then cross compile mode will be used." >&2
695  elif test "x$build_alias" != "x$host_alias"; then
696    cross_compiling=yes
697  fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708  ac_srcdir_defaulted=yes
709  # Try the directory containing this script, then its parent.
710  ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712	 X"$0" : 'X\(//\)[^/]' \| \
713	 X"$0" : 'X\(//\)$' \| \
714	 X"$0" : 'X\(/\)' \| \
715	 .     : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719  	  /^X\(\/\/\)$/{ s//\1/; q; }
720  	  /^X\(\/\).*/{ s//\1/; q; }
721  	  s/.*/./; q'`
722  srcdir=$ac_confdir
723  if test ! -r $srcdir/$ac_unique_file; then
724    srcdir=..
725  fi
726else
727  ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730  if test "$ac_srcdir_defaulted" = yes; then
731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732   { (exit 1); exit 1; }; }
733  else
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735   { (exit 1); exit 1; }; }
736  fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740   { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779  # Omit some internal or obsolete options to make the list less imposing.
780  # This message is too long to be a string in the A/UX 3.1 sh.
781  cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792  -h, --help              display this help and exit
793      --help=short        display options specific to this package
794      --help=recursive    display the short help of all the included packages
795  -V, --version           display version information and exit
796  -q, --quiet, --silent   do not print \`checking...' messages
797      --cache-file=FILE   cache test results in FILE [disabled]
798  -C, --config-cache      alias for \`--cache-file=config.cache'
799  -n, --no-create         do not create output files
800      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804  cat <<_ACEOF
805Installation directories:
806  --prefix=PREFIX         install architecture-independent files in PREFIX
807			  [$ac_default_prefix]
808  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809			  [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819  --bindir=DIR           user executables [EPREFIX/bin]
820  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821  --libexecdir=DIR       program executables [EPREFIX/libexec]
822  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826  --libdir=DIR           object code libraries [EPREFIX/lib]
827  --includedir=DIR       C header files [PREFIX/include]
828  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829  --infodir=DIR          info documentation [PREFIX/info]
830  --mandir=DIR           man documentation [PREFIX/man]
831_ACEOF
832
833  cat <<\_ACEOF
834
835System types:
836  --build=BUILD     configure for building on BUILD [guessed]
837  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842
843  cat <<\_ACEOF
844
845Optional Features:
846  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848  --enable-smb            enable possibly-buggy SMB printer default=yes
849  --disable-smb           disable possibly-buggy SMB printer
850  --enable-ipv6           enable ipv6 (with ipv4) support
851  --disable-ipv6          disable ipv6 support
852
853Optional Packages:
854  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856  --without-gcc           don't use gcc
857  --with-user=USERNAME    drop privileges by default to USERNAME
858  --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
859  --without-crypto        disable crypto support
860
861Some influential environment variables:
862  CC          C compiler command
863  CFLAGS      C compiler flags
864  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
865              nonstandard directory <lib dir>
866  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
867              headers in a nonstandard directory <include dir>
868  CPP         C preprocessor
869
870Use these variables to override the choices made by `configure' or to help
871it to find libraries and programs with nonstandard names/locations.
872
873_ACEOF
874fi
875
876if test "$ac_init_help" = "recursive"; then
877  # If there are subdirs, report their specific --help.
878  ac_popdir=`pwd`
879  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880    test -d $ac_dir || continue
881    ac_builddir=.
882
883if test "$ac_dir" != .; then
884  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885  # A "../" for each directory in $ac_dir_suffix.
886  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887else
888  ac_dir_suffix= ac_top_builddir=
889fi
890
891case $srcdir in
892  .)  # No --srcdir option.  We are building in place.
893    ac_srcdir=.
894    if test -z "$ac_top_builddir"; then
895       ac_top_srcdir=.
896    else
897       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898    fi ;;
899  [\\/]* | ?:[\\/]* )  # Absolute path.
900    ac_srcdir=$srcdir$ac_dir_suffix;
901    ac_top_srcdir=$srcdir ;;
902  *) # Relative path.
903    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904    ac_top_srcdir=$ac_top_builddir$srcdir ;;
905esac
906
907# Do not use `cd foo && pwd` to compute absolute paths, because
908# the directories may not exist.
909case `pwd` in
910.) ac_abs_builddir="$ac_dir";;
911*)
912  case "$ac_dir" in
913  .) ac_abs_builddir=`pwd`;;
914  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915  *) ac_abs_builddir=`pwd`/"$ac_dir";;
916  esac;;
917esac
918case $ac_abs_builddir in
919.) ac_abs_top_builddir=${ac_top_builddir}.;;
920*)
921  case ${ac_top_builddir}. in
922  .) ac_abs_top_builddir=$ac_abs_builddir;;
923  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925  esac;;
926esac
927case $ac_abs_builddir in
928.) ac_abs_srcdir=$ac_srcdir;;
929*)
930  case $ac_srcdir in
931  .) ac_abs_srcdir=$ac_abs_builddir;;
932  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934  esac;;
935esac
936case $ac_abs_builddir in
937.) ac_abs_top_srcdir=$ac_top_srcdir;;
938*)
939  case $ac_top_srcdir in
940  .) ac_abs_top_srcdir=$ac_abs_builddir;;
941  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943  esac;;
944esac
945
946    cd $ac_dir
947    # Check for guested configure; otherwise get Cygnus style configure.
948    if test -f $ac_srcdir/configure.gnu; then
949      echo
950      $SHELL $ac_srcdir/configure.gnu  --help=recursive
951    elif test -f $ac_srcdir/configure; then
952      echo
953      $SHELL $ac_srcdir/configure  --help=recursive
954    elif test -f $ac_srcdir/configure.ac ||
955	   test -f $ac_srcdir/configure.in; then
956      echo
957      $ac_configure --help
958    else
959      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960    fi
961    cd $ac_popdir
962  done
963fi
964
965test -n "$ac_init_help" && exit 0
966if $ac_init_version; then
967  cat <<\_ACEOF
968
969Copyright (C) 2003 Free Software Foundation, Inc.
970This configure script is free software; the Free Software Foundation
971gives unlimited permission to copy, distribute and modify it.
972_ACEOF
973  exit 0
974fi
975exec 5>config.log
976cat >&5 <<_ACEOF
977This file contains any messages produced by compilers while
978running configure, to aid debugging if configure makes a mistake.
979
980It was created by $as_me, which was
981generated by GNU Autoconf 2.59.  Invocation command line was
982
983  $ $0 $@
984
985_ACEOF
986{
987cat <<_ASUNAME
988## --------- ##
989## Platform. ##
990## --------- ##
991
992hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993uname -m = `(uname -m) 2>/dev/null || echo unknown`
994uname -r = `(uname -r) 2>/dev/null || echo unknown`
995uname -s = `(uname -s) 2>/dev/null || echo unknown`
996uname -v = `(uname -v) 2>/dev/null || echo unknown`
997
998/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1000
1001/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1002/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1003/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1005/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1006/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1007/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1008
1009_ASUNAME
1010
1011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012for as_dir in $PATH
1013do
1014  IFS=$as_save_IFS
1015  test -z "$as_dir" && as_dir=.
1016  echo "PATH: $as_dir"
1017done
1018
1019} >&5
1020
1021cat >&5 <<_ACEOF
1022
1023
1024## ----------- ##
1025## Core tests. ##
1026## ----------- ##
1027
1028_ACEOF
1029
1030
1031# Keep a trace of the command line.
1032# Strip out --no-create and --no-recursion so they do not pile up.
1033# Strip out --silent because we don't want to record it for future runs.
1034# Also quote any args containing shell meta-characters.
1035# Make two passes to allow for proper duplicate-argument suppression.
1036ac_configure_args=
1037ac_configure_args0=
1038ac_configure_args1=
1039ac_sep=
1040ac_must_keep_next=false
1041for ac_pass in 1 2
1042do
1043  for ac_arg
1044  do
1045    case $ac_arg in
1046    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048    | -silent | --silent | --silen | --sile | --sil)
1049      continue ;;
1050    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052    esac
1053    case $ac_pass in
1054    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055    2)
1056      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057      if test $ac_must_keep_next = true; then
1058	ac_must_keep_next=false # Got value, back to normal.
1059      else
1060	case $ac_arg in
1061	  *=* | --config-cache | -C | -disable-* | --disable-* \
1062	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064	  | -with-* | --with-* | -without-* | --without-* | --x)
1065	    case "$ac_configure_args0 " in
1066	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067	    esac
1068	    ;;
1069	  -* ) ac_must_keep_next=true ;;
1070	esac
1071      fi
1072      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073      # Get rid of the leading space.
1074      ac_sep=" "
1075      ;;
1076    esac
1077  done
1078done
1079$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081
1082# When interrupted or exit'd, cleanup temporary files, and complete
1083# config.log.  We remove comments because anyway the quotes in there
1084# would cause problems or look ugly.
1085# WARNING: Be sure not to use single quotes in there, as some shells,
1086# such as our DU 5.0 friend, will then `close' the trap.
1087trap 'exit_status=$?
1088  # Save into config.log some information that might help in debugging.
1089  {
1090    echo
1091
1092    cat <<\_ASBOX
1093## ---------------- ##
1094## Cache variables. ##
1095## ---------------- ##
1096_ASBOX
1097    echo
1098    # The following way of writing the cache mishandles newlines in values,
1099{
1100  (set) 2>&1 |
1101    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102    *ac_space=\ *)
1103      sed -n \
1104	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106      ;;
1107    *)
1108      sed -n \
1109	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1110      ;;
1111    esac;
1112}
1113    echo
1114
1115    cat <<\_ASBOX
1116## ----------------- ##
1117## Output variables. ##
1118## ----------------- ##
1119_ASBOX
1120    echo
1121    for ac_var in $ac_subst_vars
1122    do
1123      eval ac_val=$`echo $ac_var`
1124      echo "$ac_var='"'"'$ac_val'"'"'"
1125    done | sort
1126    echo
1127
1128    if test -n "$ac_subst_files"; then
1129      cat <<\_ASBOX
1130## ------------- ##
1131## Output files. ##
1132## ------------- ##
1133_ASBOX
1134      echo
1135      for ac_var in $ac_subst_files
1136      do
1137	eval ac_val=$`echo $ac_var`
1138	echo "$ac_var='"'"'$ac_val'"'"'"
1139      done | sort
1140      echo
1141    fi
1142
1143    if test -s confdefs.h; then
1144      cat <<\_ASBOX
1145## ----------- ##
1146## confdefs.h. ##
1147## ----------- ##
1148_ASBOX
1149      echo
1150      sed "/^$/d" confdefs.h | sort
1151      echo
1152    fi
1153    test "$ac_signal" != 0 &&
1154      echo "$as_me: caught signal $ac_signal"
1155    echo "$as_me: exit $exit_status"
1156  } >&5
1157  rm -f core *.core &&
1158  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159    exit $exit_status
1160     ' 0
1161for ac_signal in 1 2 13 15; do
1162  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163done
1164ac_signal=0
1165
1166# confdefs.h avoids OS command line length limits that DEFS can exceed.
1167rm -rf conftest* confdefs.h
1168# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169echo >confdefs.h
1170
1171# Predefined preprocessor variables.
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_NAME "$PACKAGE_NAME"
1175_ACEOF
1176
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180_ACEOF
1181
1182
1183cat >>confdefs.h <<_ACEOF
1184#define PACKAGE_VERSION "$PACKAGE_VERSION"
1185_ACEOF
1186
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_STRING "$PACKAGE_STRING"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195_ACEOF
1196
1197
1198# Let the site file select an alternate cache file if it wants to.
1199# Prefer explicitly selected file to automatically selected ones.
1200if test -z "$CONFIG_SITE"; then
1201  if test "x$prefix" != xNONE; then
1202    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203  else
1204    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1205  fi
1206fi
1207for ac_site_file in $CONFIG_SITE; do
1208  if test -r "$ac_site_file"; then
1209    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210echo "$as_me: loading site script $ac_site_file" >&6;}
1211    sed 's/^/| /' "$ac_site_file" >&5
1212    . "$ac_site_file"
1213  fi
1214done
1215
1216if test -r "$cache_file"; then
1217  # Some versions of bash will fail to source /dev/null (special
1218  # files actually), so we avoid doing that.
1219  if test -f "$cache_file"; then
1220    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221echo "$as_me: loading cache $cache_file" >&6;}
1222    case $cache_file in
1223      [\\/]* | ?:[\\/]* ) . $cache_file;;
1224      *)                      . ./$cache_file;;
1225    esac
1226  fi
1227else
1228  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229echo "$as_me: creating cache $cache_file" >&6;}
1230  >$cache_file
1231fi
1232
1233# Check that the precious variables saved in the cache have kept the same
1234# value.
1235ac_cache_corrupted=false
1236for ac_var in `(set) 2>&1 |
1237	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239  eval ac_new_set=\$ac_env_${ac_var}_set
1240  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241  eval ac_new_val="\$ac_env_${ac_var}_value"
1242  case $ac_old_set,$ac_new_set in
1243    set,)
1244      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246      ac_cache_corrupted=: ;;
1247    ,set)
1248      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250      ac_cache_corrupted=: ;;
1251    ,);;
1252    *)
1253      if test "x$ac_old_val" != "x$ac_new_val"; then
1254	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1257echo "$as_me:   former value:  $ac_old_val" >&2;}
1258	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1259echo "$as_me:   current value: $ac_new_val" >&2;}
1260	ac_cache_corrupted=:
1261      fi;;
1262  esac
1263  # Pass precious variables to config.status.
1264  if test "$ac_new_set" = set; then
1265    case $ac_new_val in
1266    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268    *) ac_arg=$ac_var=$ac_new_val ;;
1269    esac
1270    case " $ac_configure_args " in
1271      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1272      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273    esac
1274  fi
1275done
1276if $ac_cache_corrupted; then
1277  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281   { (exit 1); exit 1; }; }
1282fi
1283
1284ac_ext=c
1285ac_cpp='$CPP $CPPFLAGS'
1286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309ac_aux_dir=
1310for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1311  if test -f $ac_dir/install-sh; then
1312    ac_aux_dir=$ac_dir
1313    ac_install_sh="$ac_aux_dir/install-sh -c"
1314    break
1315  elif test -f $ac_dir/install.sh; then
1316    ac_aux_dir=$ac_dir
1317    ac_install_sh="$ac_aux_dir/install.sh -c"
1318    break
1319  elif test -f $ac_dir/shtool; then
1320    ac_aux_dir=$ac_dir
1321    ac_install_sh="$ac_aux_dir/shtool install -c"
1322    break
1323  fi
1324done
1325if test -z "$ac_aux_dir"; then
1326  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1327echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1328   { (exit 1); exit 1; }; }
1329fi
1330ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1331ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1332ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1333
1334# Make sure we can run config.sub.
1335$ac_config_sub sun4 >/dev/null 2>&1 ||
1336  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1337echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1338   { (exit 1); exit 1; }; }
1339
1340echo "$as_me:$LINENO: checking build system type" >&5
1341echo $ECHO_N "checking build system type... $ECHO_C" >&6
1342if test "${ac_cv_build+set}" = set; then
1343  echo $ECHO_N "(cached) $ECHO_C" >&6
1344else
1345  ac_cv_build_alias=$build_alias
1346test -z "$ac_cv_build_alias" &&
1347  ac_cv_build_alias=`$ac_config_guess`
1348test -z "$ac_cv_build_alias" &&
1349  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1350echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1351   { (exit 1); exit 1; }; }
1352ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1353  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1354echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1355   { (exit 1); exit 1; }; }
1356
1357fi
1358echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1359echo "${ECHO_T}$ac_cv_build" >&6
1360build=$ac_cv_build
1361build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1362build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1363build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1364
1365
1366echo "$as_me:$LINENO: checking host system type" >&5
1367echo $ECHO_N "checking host system type... $ECHO_C" >&6
1368if test "${ac_cv_host+set}" = set; then
1369  echo $ECHO_N "(cached) $ECHO_C" >&6
1370else
1371  ac_cv_host_alias=$host_alias
1372test -z "$ac_cv_host_alias" &&
1373  ac_cv_host_alias=$ac_cv_build_alias
1374ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1375  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1376echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1377   { (exit 1); exit 1; }; }
1378
1379fi
1380echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1381echo "${ECHO_T}$ac_cv_host" >&6
1382host=$ac_cv_host
1383host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1386
1387
1388
1389
1390
1391
1392
1393
1394# Check whether --with-gcc or --without-gcc was given.
1395if test "${with_gcc+set}" = set; then
1396  withval="$with_gcc"
1397
1398fi;
1399    V_CCOPT="-O"
1400    V_INCLS=""
1401    if test "${srcdir}" != "." ; then
1402	    V_INCLS="-I\$(srcdir)"
1403    fi
1404    if test "${CFLAGS+set}" = set; then
1405	    LBL_CFLAGS="$CFLAGS"
1406    fi
1407    if test -z "$CC" ; then
1408	    case "$host_os" in
1409
1410	    bsdi*)
1411		    # Extract the first word of "shlicc2", so it can be a program name with args.
1412set dummy shlicc2; ac_word=$2
1413echo "$as_me:$LINENO: checking for $ac_word" >&5
1414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415if test "${ac_cv_prog_SHLICC2+set}" = set; then
1416  echo $ECHO_N "(cached) $ECHO_C" >&6
1417else
1418  if test -n "$SHLICC2"; then
1419  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1420else
1421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422for as_dir in $PATH
1423do
1424  IFS=$as_save_IFS
1425  test -z "$as_dir" && as_dir=.
1426  for ac_exec_ext in '' $ac_executable_extensions; do
1427  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1428    ac_cv_prog_SHLICC2="yes"
1429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430    break 2
1431  fi
1432done
1433done
1434
1435  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1436fi
1437fi
1438SHLICC2=$ac_cv_prog_SHLICC2
1439if test -n "$SHLICC2"; then
1440  echo "$as_me:$LINENO: result: $SHLICC2" >&5
1441echo "${ECHO_T}$SHLICC2" >&6
1442else
1443  echo "$as_me:$LINENO: result: no" >&5
1444echo "${ECHO_T}no" >&6
1445fi
1446
1447		    if test $SHLICC2 = yes ; then
1448			    CC=shlicc2
1449			    export CC
1450		    fi
1451		    ;;
1452	    esac
1453    fi
1454    if test -z "$CC" -a "$with_gcc" = no ; then
1455	    CC=cc
1456	    export CC
1457    fi
1458    ac_ext=c
1459ac_cpp='$CPP $CPPFLAGS'
1460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463if test -n "$ac_tool_prefix"; then
1464  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1465set dummy ${ac_tool_prefix}gcc; ac_word=$2
1466echo "$as_me:$LINENO: checking for $ac_word" >&5
1467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468if test "${ac_cv_prog_CC+set}" = set; then
1469  echo $ECHO_N "(cached) $ECHO_C" >&6
1470else
1471  if test -n "$CC"; then
1472  ac_cv_prog_CC="$CC" # Let the user override the test.
1473else
1474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475for as_dir in $PATH
1476do
1477  IFS=$as_save_IFS
1478  test -z "$as_dir" && as_dir=.
1479  for ac_exec_ext in '' $ac_executable_extensions; do
1480  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1482    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483    break 2
1484  fi
1485done
1486done
1487
1488fi
1489fi
1490CC=$ac_cv_prog_CC
1491if test -n "$CC"; then
1492  echo "$as_me:$LINENO: result: $CC" >&5
1493echo "${ECHO_T}$CC" >&6
1494else
1495  echo "$as_me:$LINENO: result: no" >&5
1496echo "${ECHO_T}no" >&6
1497fi
1498
1499fi
1500if test -z "$ac_cv_prog_CC"; then
1501  ac_ct_CC=$CC
1502  # Extract the first word of "gcc", so it can be a program name with args.
1503set dummy gcc; ac_word=$2
1504echo "$as_me:$LINENO: checking for $ac_word" >&5
1505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507  echo $ECHO_N "(cached) $ECHO_C" >&6
1508else
1509  if test -n "$ac_ct_CC"; then
1510  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511else
1512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513for as_dir in $PATH
1514do
1515  IFS=$as_save_IFS
1516  test -z "$as_dir" && as_dir=.
1517  for ac_exec_ext in '' $ac_executable_extensions; do
1518  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519    ac_cv_prog_ac_ct_CC="gcc"
1520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521    break 2
1522  fi
1523done
1524done
1525
1526fi
1527fi
1528ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529if test -n "$ac_ct_CC"; then
1530  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531echo "${ECHO_T}$ac_ct_CC" >&6
1532else
1533  echo "$as_me:$LINENO: result: no" >&5
1534echo "${ECHO_T}no" >&6
1535fi
1536
1537  CC=$ac_ct_CC
1538else
1539  CC="$ac_cv_prog_CC"
1540fi
1541
1542if test -z "$CC"; then
1543  if test -n "$ac_tool_prefix"; then
1544  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1545set dummy ${ac_tool_prefix}cc; ac_word=$2
1546echo "$as_me:$LINENO: checking for $ac_word" >&5
1547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548if test "${ac_cv_prog_CC+set}" = set; then
1549  echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
1551  if test -n "$CC"; then
1552  ac_cv_prog_CC="$CC" # Let the user override the test.
1553else
1554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555for as_dir in $PATH
1556do
1557  IFS=$as_save_IFS
1558  test -z "$as_dir" && as_dir=.
1559  for ac_exec_ext in '' $ac_executable_extensions; do
1560  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561    ac_cv_prog_CC="${ac_tool_prefix}cc"
1562    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563    break 2
1564  fi
1565done
1566done
1567
1568fi
1569fi
1570CC=$ac_cv_prog_CC
1571if test -n "$CC"; then
1572  echo "$as_me:$LINENO: result: $CC" >&5
1573echo "${ECHO_T}$CC" >&6
1574else
1575  echo "$as_me:$LINENO: result: no" >&5
1576echo "${ECHO_T}no" >&6
1577fi
1578
1579fi
1580if test -z "$ac_cv_prog_CC"; then
1581  ac_ct_CC=$CC
1582  # Extract the first word of "cc", so it can be a program name with args.
1583set dummy cc; ac_word=$2
1584echo "$as_me:$LINENO: checking for $ac_word" >&5
1585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587  echo $ECHO_N "(cached) $ECHO_C" >&6
1588else
1589  if test -n "$ac_ct_CC"; then
1590  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591else
1592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593for as_dir in $PATH
1594do
1595  IFS=$as_save_IFS
1596  test -z "$as_dir" && as_dir=.
1597  for ac_exec_ext in '' $ac_executable_extensions; do
1598  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599    ac_cv_prog_ac_ct_CC="cc"
1600    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601    break 2
1602  fi
1603done
1604done
1605
1606fi
1607fi
1608ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609if test -n "$ac_ct_CC"; then
1610  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611echo "${ECHO_T}$ac_ct_CC" >&6
1612else
1613  echo "$as_me:$LINENO: result: no" >&5
1614echo "${ECHO_T}no" >&6
1615fi
1616
1617  CC=$ac_ct_CC
1618else
1619  CC="$ac_cv_prog_CC"
1620fi
1621
1622fi
1623if test -z "$CC"; then
1624  # Extract the first word of "cc", so it can be a program name with args.
1625set dummy cc; ac_word=$2
1626echo "$as_me:$LINENO: checking for $ac_word" >&5
1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628if test "${ac_cv_prog_CC+set}" = set; then
1629  echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631  if test -n "$CC"; then
1632  ac_cv_prog_CC="$CC" # Let the user override the test.
1633else
1634  ac_prog_rejected=no
1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638  IFS=$as_save_IFS
1639  test -z "$as_dir" && as_dir=.
1640  for ac_exec_ext in '' $ac_executable_extensions; do
1641  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1643       ac_prog_rejected=yes
1644       continue
1645     fi
1646    ac_cv_prog_CC="cc"
1647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648    break 2
1649  fi
1650done
1651done
1652
1653if test $ac_prog_rejected = yes; then
1654  # We found a bogon in the path, so make sure we never use it.
1655  set dummy $ac_cv_prog_CC
1656  shift
1657  if test $# != 0; then
1658    # We chose a different compiler from the bogus one.
1659    # However, it has the same basename, so the bogon will be chosen
1660    # first if we set CC to just the basename; use the full file name.
1661    shift
1662    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1663  fi
1664fi
1665fi
1666fi
1667CC=$ac_cv_prog_CC
1668if test -n "$CC"; then
1669  echo "$as_me:$LINENO: result: $CC" >&5
1670echo "${ECHO_T}$CC" >&6
1671else
1672  echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
1674fi
1675
1676fi
1677if test -z "$CC"; then
1678  if test -n "$ac_tool_prefix"; then
1679  for ac_prog in cl
1680  do
1681    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1682set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1683echo "$as_me:$LINENO: checking for $ac_word" >&5
1684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685if test "${ac_cv_prog_CC+set}" = set; then
1686  echo $ECHO_N "(cached) $ECHO_C" >&6
1687else
1688  if test -n "$CC"; then
1689  ac_cv_prog_CC="$CC" # Let the user override the test.
1690else
1691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692for as_dir in $PATH
1693do
1694  IFS=$as_save_IFS
1695  test -z "$as_dir" && as_dir=.
1696  for ac_exec_ext in '' $ac_executable_extensions; do
1697  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1699    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700    break 2
1701  fi
1702done
1703done
1704
1705fi
1706fi
1707CC=$ac_cv_prog_CC
1708if test -n "$CC"; then
1709  echo "$as_me:$LINENO: result: $CC" >&5
1710echo "${ECHO_T}$CC" >&6
1711else
1712  echo "$as_me:$LINENO: result: no" >&5
1713echo "${ECHO_T}no" >&6
1714fi
1715
1716    test -n "$CC" && break
1717  done
1718fi
1719if test -z "$CC"; then
1720  ac_ct_CC=$CC
1721  for ac_prog in cl
1722do
1723  # Extract the first word of "$ac_prog", so it can be a program name with args.
1724set dummy $ac_prog; ac_word=$2
1725echo "$as_me:$LINENO: checking for $ac_word" >&5
1726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728  echo $ECHO_N "(cached) $ECHO_C" >&6
1729else
1730  if test -n "$ac_ct_CC"; then
1731  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732else
1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734for as_dir in $PATH
1735do
1736  IFS=$as_save_IFS
1737  test -z "$as_dir" && as_dir=.
1738  for ac_exec_ext in '' $ac_executable_extensions; do
1739  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740    ac_cv_prog_ac_ct_CC="$ac_prog"
1741    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742    break 2
1743  fi
1744done
1745done
1746
1747fi
1748fi
1749ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750if test -n "$ac_ct_CC"; then
1751  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752echo "${ECHO_T}$ac_ct_CC" >&6
1753else
1754  echo "$as_me:$LINENO: result: no" >&5
1755echo "${ECHO_T}no" >&6
1756fi
1757
1758  test -n "$ac_ct_CC" && break
1759done
1760
1761  CC=$ac_ct_CC
1762fi
1763
1764fi
1765
1766
1767test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1768See \`config.log' for more details." >&5
1769echo "$as_me: error: no acceptable C compiler found in \$PATH
1770See \`config.log' for more details." >&2;}
1771   { (exit 1); exit 1; }; }
1772
1773# Provide some information about the compiler.
1774echo "$as_me:$LINENO:" \
1775     "checking for C compiler version" >&5
1776ac_compiler=`set X $ac_compile; echo $2`
1777{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778  (eval $ac_compiler --version </dev/null >&5) 2>&5
1779  ac_status=$?
1780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781  (exit $ac_status); }
1782{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783  (eval $ac_compiler -v </dev/null >&5) 2>&5
1784  ac_status=$?
1785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786  (exit $ac_status); }
1787{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788  (eval $ac_compiler -V </dev/null >&5) 2>&5
1789  ac_status=$?
1790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791  (exit $ac_status); }
1792
1793cat >conftest.$ac_ext <<_ACEOF
1794/* confdefs.h.  */
1795_ACEOF
1796cat confdefs.h >>conftest.$ac_ext
1797cat >>conftest.$ac_ext <<_ACEOF
1798/* end confdefs.h.  */
1799
1800int
1801main ()
1802{
1803
1804  ;
1805  return 0;
1806}
1807_ACEOF
1808ac_clean_files_save=$ac_clean_files
1809ac_clean_files="$ac_clean_files a.out a.exe b.out"
1810# Try to create an executable without -o first, disregard a.out.
1811# It will help us diagnose broken compilers, and finding out an intuition
1812# of exeext.
1813echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1814echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1815ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817  (eval $ac_link_default) 2>&5
1818  ac_status=$?
1819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820  (exit $ac_status); }; then
1821  # Find the output, starting from the most likely.  This scheme is
1822# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1823# resort.
1824
1825# Be careful to initialize this variable, since it used to be cached.
1826# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1827ac_cv_exeext=
1828# b.out is created by i960 compilers.
1829for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1830do
1831  test -f "$ac_file" || continue
1832  case $ac_file in
1833    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1834	;;
1835    conftest.$ac_ext )
1836	# This is the source file.
1837	;;
1838    [ab].out )
1839	# We found the default executable, but exeext='' is most
1840	# certainly right.
1841	break;;
1842    *.* )
1843	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844	# FIXME: I believe we export ac_cv_exeext for Libtool,
1845	# but it would be cool to find out if it's true.  Does anybody
1846	# maintain Libtool? --akim.
1847	export ac_cv_exeext
1848	break;;
1849    * )
1850	break;;
1851  esac
1852done
1853else
1854  echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858See \`config.log' for more details." >&5
1859echo "$as_me: error: C compiler cannot create executables
1860See \`config.log' for more details." >&2;}
1861   { (exit 77); exit 77; }; }
1862fi
1863
1864ac_exeext=$ac_cv_exeext
1865echo "$as_me:$LINENO: result: $ac_file" >&5
1866echo "${ECHO_T}$ac_file" >&6
1867
1868# Check the compiler produces executables we can run.  If not, either
1869# the compiler is broken, or we cross compile.
1870echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1872# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873# If not cross compiling, check that we can run a simple program.
1874if test "$cross_compiling" != yes; then
1875  if { ac_try='./$ac_file'
1876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877  (eval $ac_try) 2>&5
1878  ac_status=$?
1879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880  (exit $ac_status); }; }; then
1881    cross_compiling=no
1882  else
1883    if test "$cross_compiling" = maybe; then
1884	cross_compiling=yes
1885    else
1886	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887If you meant to cross compile, use \`--host'.
1888See \`config.log' for more details." >&5
1889echo "$as_me: error: cannot run C compiled programs.
1890If you meant to cross compile, use \`--host'.
1891See \`config.log' for more details." >&2;}
1892   { (exit 1); exit 1; }; }
1893    fi
1894  fi
1895fi
1896echo "$as_me:$LINENO: result: yes" >&5
1897echo "${ECHO_T}yes" >&6
1898
1899rm -f a.out a.exe conftest$ac_cv_exeext b.out
1900ac_clean_files=$ac_clean_files_save
1901# Check the compiler produces executables we can run.  If not, either
1902# the compiler is broken, or we cross compile.
1903echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906echo "${ECHO_T}$cross_compiling" >&6
1907
1908echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911  (eval $ac_link) 2>&5
1912  ac_status=$?
1913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914  (exit $ac_status); }; then
1915  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1917# work properly (i.e., refer to `conftest.exe'), while it won't with
1918# `rm'.
1919for ac_file in conftest.exe conftest conftest.*; do
1920  test -f "$ac_file" || continue
1921  case $ac_file in
1922    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1923    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1924	  export ac_cv_exeext
1925	  break;;
1926    * ) break;;
1927  esac
1928done
1929else
1930  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931See \`config.log' for more details." >&5
1932echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933See \`config.log' for more details." >&2;}
1934   { (exit 1); exit 1; }; }
1935fi
1936
1937rm -f conftest$ac_cv_exeext
1938echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939echo "${ECHO_T}$ac_cv_exeext" >&6
1940
1941rm -f conftest.$ac_ext
1942EXEEXT=$ac_cv_exeext
1943ac_exeext=$EXEEXT
1944echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946if test "${ac_cv_objext+set}" = set; then
1947  echo $ECHO_N "(cached) $ECHO_C" >&6
1948else
1949  cat >conftest.$ac_ext <<_ACEOF
1950/* confdefs.h.  */
1951_ACEOF
1952cat confdefs.h >>conftest.$ac_ext
1953cat >>conftest.$ac_ext <<_ACEOF
1954/* end confdefs.h.  */
1955
1956int
1957main ()
1958{
1959
1960  ;
1961  return 0;
1962}
1963_ACEOF
1964rm -f conftest.o conftest.obj
1965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966  (eval $ac_compile) 2>&5
1967  ac_status=$?
1968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969  (exit $ac_status); }; then
1970  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1971  case $ac_file in
1972    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1973    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1974       break;;
1975  esac
1976done
1977else
1978  echo "$as_me: failed program was:" >&5
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
1981{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982See \`config.log' for more details." >&5
1983echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984See \`config.log' for more details." >&2;}
1985   { (exit 1); exit 1; }; }
1986fi
1987
1988rm -f conftest.$ac_cv_objext conftest.$ac_ext
1989fi
1990echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991echo "${ECHO_T}$ac_cv_objext" >&6
1992OBJEXT=$ac_cv_objext
1993ac_objext=$OBJEXT
1994echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1995echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1996if test "${ac_cv_c_compiler_gnu+set}" = set; then
1997  echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999  cat >conftest.$ac_ext <<_ACEOF
2000/* confdefs.h.  */
2001_ACEOF
2002cat confdefs.h >>conftest.$ac_ext
2003cat >>conftest.$ac_ext <<_ACEOF
2004/* end confdefs.h.  */
2005
2006int
2007main ()
2008{
2009#ifndef __GNUC__
2010       choke me
2011#endif
2012
2013  ;
2014  return 0;
2015}
2016_ACEOF
2017rm -f conftest.$ac_objext
2018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019  (eval $ac_compile) 2>conftest.er1
2020  ac_status=$?
2021  grep -v '^ *+' conftest.er1 >conftest.err
2022  rm -f conftest.er1
2023  cat conftest.err >&5
2024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025  (exit $ac_status); } &&
2026	 { ac_try='test -z "$ac_c_werror_flag"
2027			 || test ! -s conftest.err'
2028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029  (eval $ac_try) 2>&5
2030  ac_status=$?
2031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032  (exit $ac_status); }; } &&
2033	 { ac_try='test -s conftest.$ac_objext'
2034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035  (eval $ac_try) 2>&5
2036  ac_status=$?
2037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038  (exit $ac_status); }; }; then
2039  ac_compiler_gnu=yes
2040else
2041  echo "$as_me: failed program was:" >&5
2042sed 's/^/| /' conftest.$ac_ext >&5
2043
2044ac_compiler_gnu=no
2045fi
2046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2047ac_cv_c_compiler_gnu=$ac_compiler_gnu
2048
2049fi
2050echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052GCC=`test $ac_compiler_gnu = yes && echo yes`
2053ac_test_CFLAGS=${CFLAGS+set}
2054ac_save_CFLAGS=$CFLAGS
2055CFLAGS="-g"
2056echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058if test "${ac_cv_prog_cc_g+set}" = set; then
2059  echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
2061  cat >conftest.$ac_ext <<_ACEOF
2062/* confdefs.h.  */
2063_ACEOF
2064cat confdefs.h >>conftest.$ac_ext
2065cat >>conftest.$ac_ext <<_ACEOF
2066/* end confdefs.h.  */
2067
2068int
2069main ()
2070{
2071
2072  ;
2073  return 0;
2074}
2075_ACEOF
2076rm -f conftest.$ac_objext
2077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078  (eval $ac_compile) 2>conftest.er1
2079  ac_status=$?
2080  grep -v '^ *+' conftest.er1 >conftest.err
2081  rm -f conftest.er1
2082  cat conftest.err >&5
2083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084  (exit $ac_status); } &&
2085	 { ac_try='test -z "$ac_c_werror_flag"
2086			 || test ! -s conftest.err'
2087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088  (eval $ac_try) 2>&5
2089  ac_status=$?
2090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091  (exit $ac_status); }; } &&
2092	 { ac_try='test -s conftest.$ac_objext'
2093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094  (eval $ac_try) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; }; then
2098  ac_cv_prog_cc_g=yes
2099else
2100  echo "$as_me: failed program was:" >&5
2101sed 's/^/| /' conftest.$ac_ext >&5
2102
2103ac_cv_prog_cc_g=no
2104fi
2105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106fi
2107echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2108echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2109if test "$ac_test_CFLAGS" = set; then
2110  CFLAGS=$ac_save_CFLAGS
2111elif test $ac_cv_prog_cc_g = yes; then
2112  if test "$GCC" = yes; then
2113    CFLAGS="-g -O2"
2114  else
2115    CFLAGS="-g"
2116  fi
2117else
2118  if test "$GCC" = yes; then
2119    CFLAGS="-O2"
2120  else
2121    CFLAGS=
2122  fi
2123fi
2124echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2125echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2126if test "${ac_cv_prog_cc_stdc+set}" = set; then
2127  echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129  ac_cv_prog_cc_stdc=no
2130ac_save_CC=$CC
2131cat >conftest.$ac_ext <<_ACEOF
2132/* confdefs.h.  */
2133_ACEOF
2134cat confdefs.h >>conftest.$ac_ext
2135cat >>conftest.$ac_ext <<_ACEOF
2136/* end confdefs.h.  */
2137#include <stdarg.h>
2138#include <stdio.h>
2139#include <sys/types.h>
2140#include <sys/stat.h>
2141/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2142struct buf { int x; };
2143FILE * (*rcsopen) (struct buf *, struct stat *, int);
2144static char *e (p, i)
2145     char **p;
2146     int i;
2147{
2148  return p[i];
2149}
2150static char *f (char * (*g) (char **, int), char **p, ...)
2151{
2152  char *s;
2153  va_list v;
2154  va_start (v,p);
2155  s = g (p, va_arg (v,int));
2156  va_end (v);
2157  return s;
2158}
2159
2160/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2161   function prototypes and stuff, but not '\xHH' hex character constants.
2162   These don't provoke an error unfortunately, instead are silently treated
2163   as 'x'.  The following induces an error, until -std1 is added to get
2164   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2165   array size at least.  It's necessary to write '\x00'==0 to get something
2166   that's true only with -std1.  */
2167int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2168
2169int test (int i, double x);
2170struct s1 {int (*f) (int a);};
2171struct s2 {int (*f) (double a);};
2172int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2173int argc;
2174char **argv;
2175int
2176main ()
2177{
2178return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2179  ;
2180  return 0;
2181}
2182_ACEOF
2183# Don't try gcc -ansi; that turns off useful extensions and
2184# breaks some systems' header files.
2185# AIX			-qlanglvl=ansi
2186# Ultrix and OSF/1	-std1
2187# HP-UX 10.20 and later	-Ae
2188# HP-UX older versions	-Aa -D_HPUX_SOURCE
2189# SVR4			-Xc -D__EXTENSIONS__
2190for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2191do
2192  CC="$ac_save_CC $ac_arg"
2193  rm -f conftest.$ac_objext
2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195  (eval $ac_compile) 2>conftest.er1
2196  ac_status=$?
2197  grep -v '^ *+' conftest.er1 >conftest.err
2198  rm -f conftest.er1
2199  cat conftest.err >&5
2200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201  (exit $ac_status); } &&
2202	 { ac_try='test -z "$ac_c_werror_flag"
2203			 || test ! -s conftest.err'
2204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205  (eval $ac_try) 2>&5
2206  ac_status=$?
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); }; } &&
2209	 { ac_try='test -s conftest.$ac_objext'
2210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211  (eval $ac_try) 2>&5
2212  ac_status=$?
2213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214  (exit $ac_status); }; }; then
2215  ac_cv_prog_cc_stdc=$ac_arg
2216break
2217else
2218  echo "$as_me: failed program was:" >&5
2219sed 's/^/| /' conftest.$ac_ext >&5
2220
2221fi
2222rm -f conftest.err conftest.$ac_objext
2223done
2224rm -f conftest.$ac_ext conftest.$ac_objext
2225CC=$ac_save_CC
2226
2227fi
2228
2229case "x$ac_cv_prog_cc_stdc" in
2230  x|xno)
2231    echo "$as_me:$LINENO: result: none needed" >&5
2232echo "${ECHO_T}none needed" >&6 ;;
2233  *)
2234    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2235echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2236    CC="$CC $ac_cv_prog_cc_stdc" ;;
2237esac
2238
2239# Some people use a C++ compiler to compile C.  Since we use `exit',
2240# in C++ we need to declare it.  In case someone uses the same compiler
2241# for both compiling C and C++ we need to have the C++ compiler decide
2242# the declaration of exit, since it's the most demanding environment.
2243cat >conftest.$ac_ext <<_ACEOF
2244#ifndef __cplusplus
2245  choke me
2246#endif
2247_ACEOF
2248rm -f conftest.$ac_objext
2249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250  (eval $ac_compile) 2>conftest.er1
2251  ac_status=$?
2252  grep -v '^ *+' conftest.er1 >conftest.err
2253  rm -f conftest.er1
2254  cat conftest.err >&5
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); } &&
2257	 { ac_try='test -z "$ac_c_werror_flag"
2258			 || test ! -s conftest.err'
2259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260  (eval $ac_try) 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; } &&
2264	 { ac_try='test -s conftest.$ac_objext'
2265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266  (eval $ac_try) 2>&5
2267  ac_status=$?
2268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269  (exit $ac_status); }; }; then
2270  for ac_declaration in \
2271   '' \
2272   'extern "C" void std::exit (int) throw (); using std::exit;' \
2273   'extern "C" void std::exit (int); using std::exit;' \
2274   'extern "C" void exit (int) throw ();' \
2275   'extern "C" void exit (int);' \
2276   'void exit (int);'
2277do
2278  cat >conftest.$ac_ext <<_ACEOF
2279/* confdefs.h.  */
2280_ACEOF
2281cat confdefs.h >>conftest.$ac_ext
2282cat >>conftest.$ac_ext <<_ACEOF
2283/* end confdefs.h.  */
2284$ac_declaration
2285#include <stdlib.h>
2286int
2287main ()
2288{
2289exit (42);
2290  ;
2291  return 0;
2292}
2293_ACEOF
2294rm -f conftest.$ac_objext
2295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296  (eval $ac_compile) 2>conftest.er1
2297  ac_status=$?
2298  grep -v '^ *+' conftest.er1 >conftest.err
2299  rm -f conftest.er1
2300  cat conftest.err >&5
2301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302  (exit $ac_status); } &&
2303	 { ac_try='test -z "$ac_c_werror_flag"
2304			 || test ! -s conftest.err'
2305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306  (eval $ac_try) 2>&5
2307  ac_status=$?
2308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309  (exit $ac_status); }; } &&
2310	 { ac_try='test -s conftest.$ac_objext'
2311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312  (eval $ac_try) 2>&5
2313  ac_status=$?
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); }; }; then
2316  :
2317else
2318  echo "$as_me: failed program was:" >&5
2319sed 's/^/| /' conftest.$ac_ext >&5
2320
2321continue
2322fi
2323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2324  cat >conftest.$ac_ext <<_ACEOF
2325/* confdefs.h.  */
2326_ACEOF
2327cat confdefs.h >>conftest.$ac_ext
2328cat >>conftest.$ac_ext <<_ACEOF
2329/* end confdefs.h.  */
2330$ac_declaration
2331int
2332main ()
2333{
2334exit (42);
2335  ;
2336  return 0;
2337}
2338_ACEOF
2339rm -f conftest.$ac_objext
2340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341  (eval $ac_compile) 2>conftest.er1
2342  ac_status=$?
2343  grep -v '^ *+' conftest.er1 >conftest.err
2344  rm -f conftest.er1
2345  cat conftest.err >&5
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); } &&
2348	 { ac_try='test -z "$ac_c_werror_flag"
2349			 || test ! -s conftest.err'
2350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351  (eval $ac_try) 2>&5
2352  ac_status=$?
2353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354  (exit $ac_status); }; } &&
2355	 { ac_try='test -s conftest.$ac_objext'
2356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357  (eval $ac_try) 2>&5
2358  ac_status=$?
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); }; }; then
2361  break
2362else
2363  echo "$as_me: failed program was:" >&5
2364sed 's/^/| /' conftest.$ac_ext >&5
2365
2366fi
2367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2368done
2369rm -f conftest*
2370if test -n "$ac_declaration"; then
2371  echo '#ifdef __cplusplus' >>confdefs.h
2372  echo $ac_declaration      >>confdefs.h
2373  echo '#endif'             >>confdefs.h
2374fi
2375
2376else
2377  echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380fi
2381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382ac_ext=c
2383ac_cpp='$CPP $CPPFLAGS'
2384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388    if test "$GCC" = yes ; then
2389	    if test "$SHLICC2" = yes ; then
2390		    ac_cv_lbl_gcc_vers=2
2391		    V_CCOPT="-O2"
2392	    else
2393		    echo "$as_me:$LINENO: checking gcc version" >&5
2394echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2395		    if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2396  echo $ECHO_N "(cached) $ECHO_C" >&6
2397else
2398  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2399			    sed -e '/^gcc version /!d' \
2400				-e 's/^gcc version //' \
2401				-e 's/ .*//' -e 's/^[^0-9]*//' \
2402				-e 's/\..*//'`
2403fi
2404
2405		    echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2406echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2407		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2408			    V_CCOPT="-O2"
2409		    fi
2410	    fi
2411    else
2412	    echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2413echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2414	    if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2415  echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417
2418cat >conftest.$ac_ext <<_ACEOF
2419/* confdefs.h.  */
2420_ACEOF
2421cat confdefs.h >>conftest.$ac_ext
2422cat >>conftest.$ac_ext <<_ACEOF
2423/* end confdefs.h.  */
2424#include <sys/types.h>
2425int
2426main ()
2427{
2428int frob(int, char *)
2429  ;
2430  return 0;
2431}
2432_ACEOF
2433rm -f conftest.$ac_objext
2434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435  (eval $ac_compile) 2>conftest.er1
2436  ac_status=$?
2437  grep -v '^ *+' conftest.er1 >conftest.err
2438  rm -f conftest.er1
2439  cat conftest.err >&5
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); } &&
2442	 { ac_try='test -z "$ac_c_werror_flag"
2443			 || test ! -s conftest.err'
2444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445  (eval $ac_try) 2>&5
2446  ac_status=$?
2447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448  (exit $ac_status); }; } &&
2449	 { ac_try='test -s conftest.$ac_objext'
2450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451  (eval $ac_try) 2>&5
2452  ac_status=$?
2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454  (exit $ac_status); }; }; then
2455  ac_cv_lbl_cc_ansi_prototypes=yes
2456else
2457  echo "$as_me: failed program was:" >&5
2458sed 's/^/| /' conftest.$ac_ext >&5
2459
2460ac_cv_lbl_cc_ansi_prototypes=no
2461fi
2462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2463fi
2464
2465	    echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2466echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2467	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2468		    case "$host_os" in
2469
2470		    hpux*)
2471			    echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2472echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2473			    savedcflags="$CFLAGS"
2474			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2475			    if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2476  echo $ECHO_N "(cached) $ECHO_C" >&6
2477else
2478  cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h.  */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h.  */
2484#include <sys/types.h>
2485int
2486main ()
2487{
2488int frob(int, char *)
2489  ;
2490  return 0;
2491}
2492_ACEOF
2493rm -f conftest.$ac_objext
2494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495  (eval $ac_compile) 2>conftest.er1
2496  ac_status=$?
2497  grep -v '^ *+' conftest.er1 >conftest.err
2498  rm -f conftest.er1
2499  cat conftest.err >&5
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); } &&
2502	 { ac_try='test -z "$ac_c_werror_flag"
2503			 || test ! -s conftest.err'
2504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505  (eval $ac_try) 2>&5
2506  ac_status=$?
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); }; } &&
2509	 { ac_try='test -s conftest.$ac_objext'
2510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511  (eval $ac_try) 2>&5
2512  ac_status=$?
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); }; }; then
2515  ac_cv_lbl_cc_hpux_cc_aa=yes
2516else
2517  echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520ac_cv_lbl_cc_hpux_cc_aa=no
2521fi
2522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523fi
2524
2525			    echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2526echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2527			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2528				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2529echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2530   { (exit 1); exit 1; }; }
2531			    fi
2532			    CFLAGS="$savedcflags"
2533			    V_CCOPT="-Aa $V_CCOPT"
2534			    cat >>confdefs.h <<\_ACEOF
2535#define _HPUX_SOURCE 1
2536_ACEOF
2537
2538			    ;;
2539
2540		    *)
2541			    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2542echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2543   { (exit 1); exit 1; }; }
2544			    ;;
2545		    esac
2546	    fi
2547	    V_INCLS="$V_INCLS -I/usr/local/include"
2548	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
2549
2550	    case "$host_os" in
2551
2552	    irix*)
2553		    V_CCOPT="$V_CCOPT -xansi -signed -O"
2554		    ;;
2555
2556	    osf*)
2557		    V_CCOPT="$V_CCOPT -std1 -O"
2558		    ;;
2559
2560	    ultrix*)
2561		    echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2562echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2563		    if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2564  echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566  cat >conftest.$ac_ext <<_ACEOF
2567/* confdefs.h.  */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h.  */
2572#include <sys/types.h>
2573int
2574main ()
2575{
2576struct a { int b; };
2577			    void c(const struct a *)
2578  ;
2579  return 0;
2580}
2581_ACEOF
2582rm -f conftest.$ac_objext
2583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584  (eval $ac_compile) 2>conftest.er1
2585  ac_status=$?
2586  grep -v '^ *+' conftest.er1 >conftest.err
2587  rm -f conftest.er1
2588  cat conftest.err >&5
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); } &&
2591	 { ac_try='test -z "$ac_c_werror_flag"
2592			 || test ! -s conftest.err'
2593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594  (eval $ac_try) 2>&5
2595  ac_status=$?
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); }; } &&
2598	 { ac_try='test -s conftest.$ac_objext'
2599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600  (eval $ac_try) 2>&5
2601  ac_status=$?
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); }; }; then
2604  ac_cv_lbl_cc_const_proto=yes
2605else
2606  echo "$as_me: failed program was:" >&5
2607sed 's/^/| /' conftest.$ac_ext >&5
2608
2609ac_cv_lbl_cc_const_proto=no
2610fi
2611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612fi
2613
2614		    echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2615echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2616		    if test $ac_cv_lbl_cc_const_proto = no ; then
2617			    cat >>confdefs.h <<\_ACEOF
2618#define const
2619_ACEOF
2620
2621		    fi
2622		    ;;
2623	    esac
2624    fi
2625
2626echo "$as_me:$LINENO: checking for inline" >&5
2627echo $ECHO_N "checking for inline... $ECHO_C" >&6
2628    if test "${ac_cv_lbl_inline+set}" = set; then
2629  echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631
2632	ac_cv_lbl_inline=""
2633	ac_lbl_cc_inline=no
2634	for ac_lbl_inline in inline __inline__ __inline
2635	do
2636	    cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h.  */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h.  */
2642#define inline $ac_lbl_inline
2643		static inline struct iltest *foo(void);
2644		struct iltest {
2645		    int iltest1;
2646		    int iltest2;
2647		};
2648
2649		static inline struct iltest *
2650		foo()
2651		{
2652		    static struct iltest xxx;
2653
2654		    return &xxx;
2655		}
2656int
2657main ()
2658{
2659
2660  ;
2661  return 0;
2662}
2663_ACEOF
2664rm -f conftest.$ac_objext
2665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666  (eval $ac_compile) 2>conftest.er1
2667  ac_status=$?
2668  grep -v '^ *+' conftest.er1 >conftest.err
2669  rm -f conftest.er1
2670  cat conftest.err >&5
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); } &&
2673	 { ac_try='test -z "$ac_c_werror_flag"
2674			 || test ! -s conftest.err'
2675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676  (eval $ac_try) 2>&5
2677  ac_status=$?
2678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679  (exit $ac_status); }; } &&
2680	 { ac_try='test -s conftest.$ac_objext'
2681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682  (eval $ac_try) 2>&5
2683  ac_status=$?
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); }; }; then
2686  ac_lbl_cc_inline=yes
2687else
2688  echo "$as_me: failed program was:" >&5
2689sed 's/^/| /' conftest.$ac_ext >&5
2690
2691fi
2692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693	    if test "$ac_lbl_cc_inline" = yes ; then
2694		break;
2695	    fi
2696	done
2697	if test "$ac_lbl_cc_inline" = yes ; then
2698	    ac_cv_lbl_inline=$ac_lbl_inline
2699	fi
2700fi
2701
2702    if test ! -z "$ac_cv_lbl_inline" ; then
2703	echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2704echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2705    else
2706	echo "$as_me:$LINENO: result: no" >&5
2707echo "${ECHO_T}no" >&6
2708    fi
2709
2710cat >>confdefs.h <<_ACEOF
2711#define inline $ac_cv_lbl_inline
2712_ACEOF
2713
2714
2715echo "$as_me:$LINENO: checking for __attribute__" >&5
2716echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2717if test "${ac_cv___attribute__+set}" = set; then
2718  echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720
2721cat >conftest.$ac_ext <<_ACEOF
2722/* confdefs.h.  */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h.  */
2727
2728#include <stdlib.h>
2729
2730static void foo(void) __attribute__ ((noreturn));
2731
2732static void
2733foo(void)
2734{
2735  exit(1);
2736}
2737
2738int
2739main(int argc, char **argv)
2740{
2741  foo();
2742}
2743
2744_ACEOF
2745rm -f conftest.$ac_objext
2746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747  (eval $ac_compile) 2>conftest.er1
2748  ac_status=$?
2749  grep -v '^ *+' conftest.er1 >conftest.err
2750  rm -f conftest.er1
2751  cat conftest.err >&5
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); } &&
2754	 { ac_try='test -z "$ac_c_werror_flag"
2755			 || test ! -s conftest.err'
2756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757  (eval $ac_try) 2>&5
2758  ac_status=$?
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); }; } &&
2761	 { ac_try='test -s conftest.$ac_objext'
2762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763  (eval $ac_try) 2>&5
2764  ac_status=$?
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); }; }; then
2767  ac_cv___attribute__=yes
2768else
2769  echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772ac_cv___attribute__=no
2773fi
2774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775fi
2776
2777if test "$ac_cv___attribute__" = "yes"; then
2778
2779cat >>confdefs.h <<\_ACEOF
2780#define HAVE___ATTRIBUTE__ 1
2781_ACEOF
2782
2783  V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2784else
2785  V_DEFS="$V_DEFS -D_U_=\"\""
2786fi
2787echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2788echo "${ECHO_T}$ac_cv___attribute__" >&6
2789
2790ac_ext=c
2791ac_cpp='$CPP $CPPFLAGS'
2792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2796echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2797# On Suns, sometimes $CPP names a directory.
2798if test -n "$CPP" && test -d "$CPP"; then
2799  CPP=
2800fi
2801if test -z "$CPP"; then
2802  if test "${ac_cv_prog_CPP+set}" = set; then
2803  echo $ECHO_N "(cached) $ECHO_C" >&6
2804else
2805      # Double quotes because CPP needs to be expanded
2806    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2807    do
2808      ac_preproc_ok=false
2809for ac_c_preproc_warn_flag in '' yes
2810do
2811  # Use a header file that comes with gcc, so configuring glibc
2812  # with a fresh cross-compiler works.
2813  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2814  # <limits.h> exists even on freestanding compilers.
2815  # On the NeXT, cc -E runs the code through the compiler's parser,
2816  # not just through cpp. "Syntax error" is here to catch this case.
2817  cat >conftest.$ac_ext <<_ACEOF
2818/* confdefs.h.  */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h.  */
2823#ifdef __STDC__
2824# include <limits.h>
2825#else
2826# include <assert.h>
2827#endif
2828		     Syntax error
2829_ACEOF
2830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2832  ac_status=$?
2833  grep -v '^ *+' conftest.er1 >conftest.err
2834  rm -f conftest.er1
2835  cat conftest.err >&5
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); } >/dev/null; then
2838  if test -s conftest.err; then
2839    ac_cpp_err=$ac_c_preproc_warn_flag
2840    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2841  else
2842    ac_cpp_err=
2843  fi
2844else
2845  ac_cpp_err=yes
2846fi
2847if test -z "$ac_cpp_err"; then
2848  :
2849else
2850  echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853  # Broken: fails on valid input.
2854continue
2855fi
2856rm -f conftest.err conftest.$ac_ext
2857
2858  # OK, works on sane cases.  Now check whether non-existent headers
2859  # can be detected and how.
2860  cat >conftest.$ac_ext <<_ACEOF
2861/* confdefs.h.  */
2862_ACEOF
2863cat confdefs.h >>conftest.$ac_ext
2864cat >>conftest.$ac_ext <<_ACEOF
2865/* end confdefs.h.  */
2866#include <ac_nonexistent.h>
2867_ACEOF
2868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2869  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2870  ac_status=$?
2871  grep -v '^ *+' conftest.er1 >conftest.err
2872  rm -f conftest.er1
2873  cat conftest.err >&5
2874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875  (exit $ac_status); } >/dev/null; then
2876  if test -s conftest.err; then
2877    ac_cpp_err=$ac_c_preproc_warn_flag
2878    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2879  else
2880    ac_cpp_err=
2881  fi
2882else
2883  ac_cpp_err=yes
2884fi
2885if test -z "$ac_cpp_err"; then
2886  # Broken: success on invalid input.
2887continue
2888else
2889  echo "$as_me: failed program was:" >&5
2890sed 's/^/| /' conftest.$ac_ext >&5
2891
2892  # Passes both tests.
2893ac_preproc_ok=:
2894break
2895fi
2896rm -f conftest.err conftest.$ac_ext
2897
2898done
2899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2900rm -f conftest.err conftest.$ac_ext
2901if $ac_preproc_ok; then
2902  break
2903fi
2904
2905    done
2906    ac_cv_prog_CPP=$CPP
2907
2908fi
2909  CPP=$ac_cv_prog_CPP
2910else
2911  ac_cv_prog_CPP=$CPP
2912fi
2913echo "$as_me:$LINENO: result: $CPP" >&5
2914echo "${ECHO_T}$CPP" >&6
2915ac_preproc_ok=false
2916for ac_c_preproc_warn_flag in '' yes
2917do
2918  # Use a header file that comes with gcc, so configuring glibc
2919  # with a fresh cross-compiler works.
2920  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2921  # <limits.h> exists even on freestanding compilers.
2922  # On the NeXT, cc -E runs the code through the compiler's parser,
2923  # not just through cpp. "Syntax error" is here to catch this case.
2924  cat >conftest.$ac_ext <<_ACEOF
2925/* confdefs.h.  */
2926_ACEOF
2927cat confdefs.h >>conftest.$ac_ext
2928cat >>conftest.$ac_ext <<_ACEOF
2929/* end confdefs.h.  */
2930#ifdef __STDC__
2931# include <limits.h>
2932#else
2933# include <assert.h>
2934#endif
2935		     Syntax error
2936_ACEOF
2937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939  ac_status=$?
2940  grep -v '^ *+' conftest.er1 >conftest.err
2941  rm -f conftest.er1
2942  cat conftest.err >&5
2943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); } >/dev/null; then
2945  if test -s conftest.err; then
2946    ac_cpp_err=$ac_c_preproc_warn_flag
2947    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2948  else
2949    ac_cpp_err=
2950  fi
2951else
2952  ac_cpp_err=yes
2953fi
2954if test -z "$ac_cpp_err"; then
2955  :
2956else
2957  echo "$as_me: failed program was:" >&5
2958sed 's/^/| /' conftest.$ac_ext >&5
2959
2960  # Broken: fails on valid input.
2961continue
2962fi
2963rm -f conftest.err conftest.$ac_ext
2964
2965  # OK, works on sane cases.  Now check whether non-existent headers
2966  # can be detected and how.
2967  cat >conftest.$ac_ext <<_ACEOF
2968/* confdefs.h.  */
2969_ACEOF
2970cat confdefs.h >>conftest.$ac_ext
2971cat >>conftest.$ac_ext <<_ACEOF
2972/* end confdefs.h.  */
2973#include <ac_nonexistent.h>
2974_ACEOF
2975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2976  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2977  ac_status=$?
2978  grep -v '^ *+' conftest.er1 >conftest.err
2979  rm -f conftest.er1
2980  cat conftest.err >&5
2981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982  (exit $ac_status); } >/dev/null; then
2983  if test -s conftest.err; then
2984    ac_cpp_err=$ac_c_preproc_warn_flag
2985    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2986  else
2987    ac_cpp_err=
2988  fi
2989else
2990  ac_cpp_err=yes
2991fi
2992if test -z "$ac_cpp_err"; then
2993  # Broken: success on invalid input.
2994continue
2995else
2996  echo "$as_me: failed program was:" >&5
2997sed 's/^/| /' conftest.$ac_ext >&5
2998
2999  # Passes both tests.
3000ac_preproc_ok=:
3001break
3002fi
3003rm -f conftest.err conftest.$ac_ext
3004
3005done
3006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3007rm -f conftest.err conftest.$ac_ext
3008if $ac_preproc_ok; then
3009  :
3010else
3011  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3012See \`config.log' for more details." >&5
3013echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3014See \`config.log' for more details." >&2;}
3015   { (exit 1); exit 1; }; }
3016fi
3017
3018ac_ext=c
3019ac_cpp='$CPP $CPPFLAGS'
3020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023
3024
3025echo "$as_me:$LINENO: checking for egrep" >&5
3026echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3027if test "${ac_cv_prog_egrep+set}" = set; then
3028  echo $ECHO_N "(cached) $ECHO_C" >&6
3029else
3030  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3031    then ac_cv_prog_egrep='grep -E'
3032    else ac_cv_prog_egrep='egrep'
3033    fi
3034fi
3035echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3036echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3037 EGREP=$ac_cv_prog_egrep
3038
3039
3040echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3041echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3042if test "${ac_cv_header_stdc+set}" = set; then
3043  echo $ECHO_N "(cached) $ECHO_C" >&6
3044else
3045  cat >conftest.$ac_ext <<_ACEOF
3046/* confdefs.h.  */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h.  */
3051#include <stdlib.h>
3052#include <stdarg.h>
3053#include <string.h>
3054#include <float.h>
3055
3056int
3057main ()
3058{
3059
3060  ;
3061  return 0;
3062}
3063_ACEOF
3064rm -f conftest.$ac_objext
3065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066  (eval $ac_compile) 2>conftest.er1
3067  ac_status=$?
3068  grep -v '^ *+' conftest.er1 >conftest.err
3069  rm -f conftest.er1
3070  cat conftest.err >&5
3071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072  (exit $ac_status); } &&
3073	 { ac_try='test -z "$ac_c_werror_flag"
3074			 || test ! -s conftest.err'
3075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076  (eval $ac_try) 2>&5
3077  ac_status=$?
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); }; } &&
3080	 { ac_try='test -s conftest.$ac_objext'
3081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082  (eval $ac_try) 2>&5
3083  ac_status=$?
3084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085  (exit $ac_status); }; }; then
3086  ac_cv_header_stdc=yes
3087else
3088  echo "$as_me: failed program was:" >&5
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
3091ac_cv_header_stdc=no
3092fi
3093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3094
3095if test $ac_cv_header_stdc = yes; then
3096  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3097  cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h.  */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h.  */
3103#include <string.h>
3104
3105_ACEOF
3106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107  $EGREP "memchr" >/dev/null 2>&1; then
3108  :
3109else
3110  ac_cv_header_stdc=no
3111fi
3112rm -f conftest*
3113
3114fi
3115
3116if test $ac_cv_header_stdc = yes; then
3117  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3118  cat >conftest.$ac_ext <<_ACEOF
3119/* confdefs.h.  */
3120_ACEOF
3121cat confdefs.h >>conftest.$ac_ext
3122cat >>conftest.$ac_ext <<_ACEOF
3123/* end confdefs.h.  */
3124#include <stdlib.h>
3125
3126_ACEOF
3127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3128  $EGREP "free" >/dev/null 2>&1; then
3129  :
3130else
3131  ac_cv_header_stdc=no
3132fi
3133rm -f conftest*
3134
3135fi
3136
3137if test $ac_cv_header_stdc = yes; then
3138  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3139  if test "$cross_compiling" = yes; then
3140  :
3141else
3142  cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h.  */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h.  */
3148#include <ctype.h>
3149#if ((' ' & 0x0FF) == 0x020)
3150# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3151# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3152#else
3153# define ISLOWER(c) \
3154		   (('a' <= (c) && (c) <= 'i') \
3155		     || ('j' <= (c) && (c) <= 'r') \
3156		     || ('s' <= (c) && (c) <= 'z'))
3157# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3158#endif
3159
3160#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3161int
3162main ()
3163{
3164  int i;
3165  for (i = 0; i < 256; i++)
3166    if (XOR (islower (i), ISLOWER (i))
3167	|| toupper (i) != TOUPPER (i))
3168      exit(2);
3169  exit (0);
3170}
3171_ACEOF
3172rm -f conftest$ac_exeext
3173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174  (eval $ac_link) 2>&5
3175  ac_status=$?
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179  (eval $ac_try) 2>&5
3180  ac_status=$?
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); }; }; then
3183  :
3184else
3185  echo "$as_me: program exited with status $ac_status" >&5
3186echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189( exit $ac_status )
3190ac_cv_header_stdc=no
3191fi
3192rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3193fi
3194fi
3195fi
3196echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3197echo "${ECHO_T}$ac_cv_header_stdc" >&6
3198if test $ac_cv_header_stdc = yes; then
3199
3200cat >>confdefs.h <<\_ACEOF
3201#define STDC_HEADERS 1
3202_ACEOF
3203
3204fi
3205
3206# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3217		  inttypes.h stdint.h unistd.h
3218do
3219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3220echo "$as_me:$LINENO: checking for $ac_header" >&5
3221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3222if eval "test \"\${$as_ac_Header+set}\" = set"; then
3223  echo $ECHO_N "(cached) $ECHO_C" >&6
3224else
3225  cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h.  */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
3230/* end confdefs.h.  */
3231$ac_includes_default
3232
3233#include <$ac_header>
3234_ACEOF
3235rm -f conftest.$ac_objext
3236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237  (eval $ac_compile) 2>conftest.er1
3238  ac_status=$?
3239  grep -v '^ *+' conftest.er1 >conftest.err
3240  rm -f conftest.er1
3241  cat conftest.err >&5
3242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243  (exit $ac_status); } &&
3244	 { ac_try='test -z "$ac_c_werror_flag"
3245			 || test ! -s conftest.err'
3246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247  (eval $ac_try) 2>&5
3248  ac_status=$?
3249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250  (exit $ac_status); }; } &&
3251	 { ac_try='test -s conftest.$ac_objext'
3252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253  (eval $ac_try) 2>&5
3254  ac_status=$?
3255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256  (exit $ac_status); }; }; then
3257  eval "$as_ac_Header=yes"
3258else
3259  echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262eval "$as_ac_Header=no"
3263fi
3264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3265fi
3266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3268if test `eval echo '${'$as_ac_Header'}'` = yes; then
3269  cat >>confdefs.h <<_ACEOF
3270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3271_ACEOF
3272
3273fi
3274
3275done
3276
3277
3278
3279
3280
3281for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3282do
3283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3284if eval "test \"\${$as_ac_Header+set}\" = set"; then
3285  echo "$as_me:$LINENO: checking for $ac_header" >&5
3286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3287if eval "test \"\${$as_ac_Header+set}\" = set"; then
3288  echo $ECHO_N "(cached) $ECHO_C" >&6
3289fi
3290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3291echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3292else
3293  # Is the header compilable?
3294echo "$as_me:$LINENO: checking $ac_header usability" >&5
3295echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3296cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h.  */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h.  */
3302$ac_includes_default
3303#include <$ac_header>
3304_ACEOF
3305rm -f conftest.$ac_objext
3306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307  (eval $ac_compile) 2>conftest.er1
3308  ac_status=$?
3309  grep -v '^ *+' conftest.er1 >conftest.err
3310  rm -f conftest.er1
3311  cat conftest.err >&5
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); } &&
3314	 { ac_try='test -z "$ac_c_werror_flag"
3315			 || test ! -s conftest.err'
3316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317  (eval $ac_try) 2>&5
3318  ac_status=$?
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); }; } &&
3321	 { ac_try='test -s conftest.$ac_objext'
3322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323  (eval $ac_try) 2>&5
3324  ac_status=$?
3325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326  (exit $ac_status); }; }; then
3327  ac_header_compiler=yes
3328else
3329  echo "$as_me: failed program was:" >&5
3330sed 's/^/| /' conftest.$ac_ext >&5
3331
3332ac_header_compiler=no
3333fi
3334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3335echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3336echo "${ECHO_T}$ac_header_compiler" >&6
3337
3338# Is the header present?
3339echo "$as_me:$LINENO: checking $ac_header presence" >&5
3340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3341cat >conftest.$ac_ext <<_ACEOF
3342/* confdefs.h.  */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
3346/* end confdefs.h.  */
3347#include <$ac_header>
3348_ACEOF
3349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3350  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3351  ac_status=$?
3352  grep -v '^ *+' conftest.er1 >conftest.err
3353  rm -f conftest.er1
3354  cat conftest.err >&5
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); } >/dev/null; then
3357  if test -s conftest.err; then
3358    ac_cpp_err=$ac_c_preproc_warn_flag
3359    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3360  else
3361    ac_cpp_err=
3362  fi
3363else
3364  ac_cpp_err=yes
3365fi
3366if test -z "$ac_cpp_err"; then
3367  ac_header_preproc=yes
3368else
3369  echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372  ac_header_preproc=no
3373fi
3374rm -f conftest.err conftest.$ac_ext
3375echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3376echo "${ECHO_T}$ac_header_preproc" >&6
3377
3378# So?  What about this header?
3379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3380  yes:no: )
3381    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3382echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3383    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3384echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3385    ac_header_preproc=yes
3386    ;;
3387  no:yes:* )
3388    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3389echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3390    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3391echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3392    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3393echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3394    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3395echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3396    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3397echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3398    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3399echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3400    (
3401      cat <<\_ASBOX
3402## ------------------------------------------ ##
3403## Report this to the AC_PACKAGE_NAME lists.  ##
3404## ------------------------------------------ ##
3405_ASBOX
3406    ) |
3407      sed "s/^/$as_me: WARNING:     /" >&2
3408    ;;
3409esac
3410echo "$as_me:$LINENO: checking for $ac_header" >&5
3411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3412if eval "test \"\${$as_ac_Header+set}\" = set"; then
3413  echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415  eval "$as_ac_Header=\$ac_header_preproc"
3416fi
3417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3419
3420fi
3421if test `eval echo '${'$as_ac_Header'}'` = yes; then
3422  cat >>confdefs.h <<_ACEOF
3423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3424_ACEOF
3425
3426fi
3427
3428done
3429
3430
3431for ac_header in netinet/if_ether.h
3432do
3433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3434echo "$as_me:$LINENO: checking for $ac_header" >&5
3435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3436if eval "test \"\${$as_ac_Header+set}\" = set"; then
3437  echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439  cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h.  */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h.  */
3445#include <sys/types.h>
3446#include <sys/socket.h>
3447
3448#include <$ac_header>
3449_ACEOF
3450rm -f conftest.$ac_objext
3451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3452  (eval $ac_compile) 2>conftest.er1
3453  ac_status=$?
3454  grep -v '^ *+' conftest.er1 >conftest.err
3455  rm -f conftest.er1
3456  cat conftest.err >&5
3457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458  (exit $ac_status); } &&
3459	 { ac_try='test -z "$ac_c_werror_flag"
3460			 || test ! -s conftest.err'
3461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462  (eval $ac_try) 2>&5
3463  ac_status=$?
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); }; } &&
3466	 { ac_try='test -s conftest.$ac_objext'
3467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468  (eval $ac_try) 2>&5
3469  ac_status=$?
3470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471  (exit $ac_status); }; }; then
3472  eval "$as_ac_Header=yes"
3473else
3474  echo "$as_me: failed program was:" >&5
3475sed 's/^/| /' conftest.$ac_ext >&5
3476
3477eval "$as_ac_Header=no"
3478fi
3479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3480fi
3481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3483if test `eval echo '${'$as_ac_Header'}'` = yes; then
3484  cat >>confdefs.h <<_ACEOF
3485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3486_ACEOF
3487
3488fi
3489
3490done
3491
3492if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3493	#
3494	# The simple test didn't work.
3495	# Do we need to include <net/if.h> first?
3496	# Unset ac_cv_header_netinet_if_ether_h so we don't
3497	# treat the previous failure as a cached value and
3498	# suppress the next test.
3499	#
3500	{ echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3501echo "$as_me: Rechecking with some additional includes" >&6;}
3502	unset ac_cv_header_netinet_if_ether_h
3503
3504for ac_header in netinet/if_ether.h
3505do
3506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3507echo "$as_me:$LINENO: checking for $ac_header" >&5
3508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3509if eval "test \"\${$as_ac_Header+set}\" = set"; then
3510  echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512  cat >conftest.$ac_ext <<_ACEOF
3513/* confdefs.h.  */
3514_ACEOF
3515cat confdefs.h >>conftest.$ac_ext
3516cat >>conftest.$ac_ext <<_ACEOF
3517/* end confdefs.h.  */
3518#include <sys/types.h>
3519#include <sys/socket.h>
3520#include <netinet/in.h>
3521struct mbuf;
3522struct rtentry;
3523#include <net/if.h>
3524
3525#include <$ac_header>
3526_ACEOF
3527rm -f conftest.$ac_objext
3528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529  (eval $ac_compile) 2>conftest.er1
3530  ac_status=$?
3531  grep -v '^ *+' conftest.er1 >conftest.err
3532  rm -f conftest.er1
3533  cat conftest.err >&5
3534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535  (exit $ac_status); } &&
3536	 { ac_try='test -z "$ac_c_werror_flag"
3537			 || test ! -s conftest.err'
3538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539  (eval $ac_try) 2>&5
3540  ac_status=$?
3541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542  (exit $ac_status); }; } &&
3543	 { ac_try='test -s conftest.$ac_objext'
3544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545  (eval $ac_try) 2>&5
3546  ac_status=$?
3547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548  (exit $ac_status); }; }; then
3549  eval "$as_ac_Header=yes"
3550else
3551  echo "$as_me: failed program was:" >&5
3552sed 's/^/| /' conftest.$ac_ext >&5
3553
3554eval "$as_ac_Header=no"
3555fi
3556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3557fi
3558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3560if test `eval echo '${'$as_ac_Header'}'` = yes; then
3561  cat >>confdefs.h <<_ACEOF
3562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3563_ACEOF
3564
3565fi
3566
3567done
3568
3569fi
3570
3571echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3572echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3573if test "${ac_cv_header_time+set}" = set; then
3574  echo $ECHO_N "(cached) $ECHO_C" >&6
3575else
3576  cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h.  */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h.  */
3582#include <sys/types.h>
3583#include <sys/time.h>
3584#include <time.h>
3585
3586int
3587main ()
3588{
3589if ((struct tm *) 0)
3590return 0;
3591  ;
3592  return 0;
3593}
3594_ACEOF
3595rm -f conftest.$ac_objext
3596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597  (eval $ac_compile) 2>conftest.er1
3598  ac_status=$?
3599  grep -v '^ *+' conftest.er1 >conftest.err
3600  rm -f conftest.er1
3601  cat conftest.err >&5
3602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603  (exit $ac_status); } &&
3604	 { ac_try='test -z "$ac_c_werror_flag"
3605			 || test ! -s conftest.err'
3606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607  (eval $ac_try) 2>&5
3608  ac_status=$?
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); }; } &&
3611	 { ac_try='test -s conftest.$ac_objext'
3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613  (eval $ac_try) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }; }; then
3617  ac_cv_header_time=yes
3618else
3619  echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622ac_cv_header_time=no
3623fi
3624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625fi
3626echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3627echo "${ECHO_T}$ac_cv_header_time" >&6
3628if test $ac_cv_header_time = yes; then
3629
3630cat >>confdefs.h <<\_ACEOF
3631#define TIME_WITH_SYS_TIME 1
3632_ACEOF
3633
3634fi
3635
3636
3637case "$host_os" in
3638
3639linux*)
3640	echo "$as_me:$LINENO: checking Linux kernel version" >&5
3641echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3642 	if test "$cross_compiling" = yes; then
3643 		if test "${ac_cv_linux_vers+set}" = set; then
3644  echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
3646  ac_cv_linux_vers=unknown
3647fi
3648
3649 	else
3650 		if test "${ac_cv_linux_vers+set}" = set; then
3651  echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653  ac_cv_linux_vers=`uname -r 2>&1 | \
3654 			sed -n -e '$s/.* //' -e '$s/\..*//p'`
3655fi
3656
3657 	fi
3658	echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3659echo "${ECHO_T}$ac_cv_linux_vers" >&6
3660 	if test $ac_cv_linux_vers = unknown ; then
3661 		{ { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3662echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3663   { (exit 1); exit 1; }; }
3664 	fi
3665	if test $ac_cv_linux_vers -lt 2 ; then
3666		{ { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3667echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3668   { (exit 1); exit 1; }; }
3669	fi
3670	;;
3671
3672*)
3673	;;
3674esac
3675
3676
3677
3678for ac_header in smi.h
3679do
3680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3681if eval "test \"\${$as_ac_Header+set}\" = set"; then
3682  echo "$as_me:$LINENO: checking for $ac_header" >&5
3683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3684if eval "test \"\${$as_ac_Header+set}\" = set"; then
3685  echo $ECHO_N "(cached) $ECHO_C" >&6
3686fi
3687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3689else
3690  # Is the header compilable?
3691echo "$as_me:$LINENO: checking $ac_header usability" >&5
3692echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3693cat >conftest.$ac_ext <<_ACEOF
3694/* confdefs.h.  */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h.  */
3699$ac_includes_default
3700#include <$ac_header>
3701_ACEOF
3702rm -f conftest.$ac_objext
3703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704  (eval $ac_compile) 2>conftest.er1
3705  ac_status=$?
3706  grep -v '^ *+' conftest.er1 >conftest.err
3707  rm -f conftest.er1
3708  cat conftest.err >&5
3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710  (exit $ac_status); } &&
3711	 { ac_try='test -z "$ac_c_werror_flag"
3712			 || test ! -s conftest.err'
3713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714  (eval $ac_try) 2>&5
3715  ac_status=$?
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); }; } &&
3718	 { ac_try='test -s conftest.$ac_objext'
3719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720  (eval $ac_try) 2>&5
3721  ac_status=$?
3722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723  (exit $ac_status); }; }; then
3724  ac_header_compiler=yes
3725else
3726  echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729ac_header_compiler=no
3730fi
3731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3732echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3733echo "${ECHO_T}$ac_header_compiler" >&6
3734
3735# Is the header present?
3736echo "$as_me:$LINENO: checking $ac_header presence" >&5
3737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3738cat >conftest.$ac_ext <<_ACEOF
3739/* confdefs.h.  */
3740_ACEOF
3741cat confdefs.h >>conftest.$ac_ext
3742cat >>conftest.$ac_ext <<_ACEOF
3743/* end confdefs.h.  */
3744#include <$ac_header>
3745_ACEOF
3746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3747  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3748  ac_status=$?
3749  grep -v '^ *+' conftest.er1 >conftest.err
3750  rm -f conftest.er1
3751  cat conftest.err >&5
3752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753  (exit $ac_status); } >/dev/null; then
3754  if test -s conftest.err; then
3755    ac_cpp_err=$ac_c_preproc_warn_flag
3756    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3757  else
3758    ac_cpp_err=
3759  fi
3760else
3761  ac_cpp_err=yes
3762fi
3763if test -z "$ac_cpp_err"; then
3764  ac_header_preproc=yes
3765else
3766  echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769  ac_header_preproc=no
3770fi
3771rm -f conftest.err conftest.$ac_ext
3772echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3773echo "${ECHO_T}$ac_header_preproc" >&6
3774
3775# So?  What about this header?
3776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3777  yes:no: )
3778    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3779echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3780    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3781echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3782    ac_header_preproc=yes
3783    ;;
3784  no:yes:* )
3785    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3786echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3787    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3788echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3789    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3790echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3791    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3792echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3793    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3794echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3795    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3796echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3797    (
3798      cat <<\_ASBOX
3799## ------------------------------------------ ##
3800## Report this to the AC_PACKAGE_NAME lists.  ##
3801## ------------------------------------------ ##
3802_ASBOX
3803    ) |
3804      sed "s/^/$as_me: WARNING:     /" >&2
3805    ;;
3806esac
3807echo "$as_me:$LINENO: checking for $ac_header" >&5
3808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3809if eval "test \"\${$as_ac_Header+set}\" = set"; then
3810  echo $ECHO_N "(cached) $ECHO_C" >&6
3811else
3812  eval "$as_ac_Header=\$ac_header_preproc"
3813fi
3814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3815echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3816
3817fi
3818if test `eval echo '${'$as_ac_Header'}'` = yes; then
3819  cat >>confdefs.h <<_ACEOF
3820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3821_ACEOF
3822
3823fi
3824
3825done
3826
3827
3828echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3829echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3830if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3831  echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833  ac_check_lib_save_LIBS=$LIBS
3834LIBS="-lsmi  $LIBS"
3835cat >conftest.$ac_ext <<_ACEOF
3836/* confdefs.h.  */
3837_ACEOF
3838cat confdefs.h >>conftest.$ac_ext
3839cat >>conftest.$ac_ext <<_ACEOF
3840/* end confdefs.h.  */
3841
3842/* Override any gcc2 internal prototype to avoid an error.  */
3843#ifdef __cplusplus
3844extern "C"
3845#endif
3846/* We use char because int might match the return type of a gcc2
3847   builtin and then its argument prototype would still apply.  */
3848char smiInit ();
3849int
3850main ()
3851{
3852smiInit ();
3853  ;
3854  return 0;
3855}
3856_ACEOF
3857rm -f conftest.$ac_objext conftest$ac_exeext
3858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859  (eval $ac_link) 2>conftest.er1
3860  ac_status=$?
3861  grep -v '^ *+' conftest.er1 >conftest.err
3862  rm -f conftest.er1
3863  cat conftest.err >&5
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); } &&
3866	 { ac_try='test -z "$ac_c_werror_flag"
3867			 || test ! -s conftest.err'
3868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869  (eval $ac_try) 2>&5
3870  ac_status=$?
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); }; } &&
3873	 { ac_try='test -s conftest$ac_exeext'
3874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875  (eval $ac_try) 2>&5
3876  ac_status=$?
3877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878  (exit $ac_status); }; }; then
3879  ac_cv_lib_smi_smiInit=yes
3880else
3881  echo "$as_me: failed program was:" >&5
3882sed 's/^/| /' conftest.$ac_ext >&5
3883
3884ac_cv_lib_smi_smiInit=no
3885fi
3886rm -f conftest.err conftest.$ac_objext \
3887      conftest$ac_exeext conftest.$ac_ext
3888LIBS=$ac_check_lib_save_LIBS
3889fi
3890echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3891echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3892if test $ac_cv_lib_smi_smiInit = yes; then
3893  cat >>confdefs.h <<_ACEOF
3894#define HAVE_LIBSMI 1
3895_ACEOF
3896
3897  LIBS="-lsmi $LIBS"
3898
3899fi
3900
3901if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3902then
3903echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3904echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3905        if test "$cross_compiling" = yes; then
3906   echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3907echo "${ECHO_T}not when cross-compiling" >&6
3908  libsmi=no
3909
3910else
3911  cat >conftest.$ac_ext <<_ACEOF
3912/* confdefs.h.  */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h.  */
3917 /* libsmi available check */
3918#include <smi.h>
3919main()
3920{
3921  int current, revision, age, n;
3922  const int required = 2;
3923  if (smiInit(""))
3924    exit(1);
3925  if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3926    exit(2);
3927  n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3928  if (n != 3)
3929    exit(3);
3930  if (required < current - age || required > current)
3931    exit(4);
3932  exit(0);
3933}
3934
3935_ACEOF
3936rm -f conftest$ac_exeext
3937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3938  (eval $ac_link) 2>&5
3939  ac_status=$?
3940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943  (eval $ac_try) 2>&5
3944  ac_status=$?
3945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946  (exit $ac_status); }; }; then
3947   echo "$as_me:$LINENO: result: yes" >&5
3948echo "${ECHO_T}yes" >&6
3949  cat >>confdefs.h <<\_ACEOF
3950#define LIBSMI 1
3951_ACEOF
3952
3953  libsmi=yes
3954else
3955  echo "$as_me: program exited with status $ac_status" >&5
3956echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
3958
3959( exit $ac_status )
3960 case $? in
3961  1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3962echo "${ECHO_T}no - smiInit failed" >&6 ;;
3963  2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3964echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3965  3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3966echo "${ECHO_T}no - can't determine library version" >&6 ;;
3967  4) echo "$as_me:$LINENO: result: no - too old" >&5
3968echo "${ECHO_T}no - too old" >&6 ;;
3969  *) echo "$as_me:$LINENO: result: no" >&5
3970echo "${ECHO_T}no" >&6 ;;
3971  esac
3972  libsmi=no
3973fi
3974rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3975fi
3976fi
3977
3978echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3979echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3980# Check whether --enable-smb or --disable-smb was given.
3981if test "${enable_smb+set}" = set; then
3982  enableval="$enable_smb"
3983
3984else
3985  enableval=yes
3986fi;
3987case "$enableval" in
3988yes)	echo "$as_me:$LINENO: result: yes" >&5
3989echo "${ECHO_T}yes" >&6
3990	{ echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3991echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3992	cat >>confdefs.h <<\_ACEOF
3993#define TCPDUMP_DO_SMB 1
3994_ACEOF
3995
3996	LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3997	;;
3998*)	echo "$as_me:$LINENO: result: no" >&5
3999echo "${ECHO_T}no" >&6
4000	;;
4001esac
4002
4003
4004# Check whether --with-user or --without-user was given.
4005if test "${with_user+set}" = set; then
4006  withval="$with_user"
4007
4008fi;
4009echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4010echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
4011if test ! -z "$with_user" ; then
4012        cat >>confdefs.h <<_ACEOF
4013#define WITH_USER "$withval"
4014_ACEOF
4015
4016       echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4017echo "${ECHO_T}to \"$withval\"" >&6
4018else
4019       echo "$as_me:$LINENO: result: no" >&5
4020echo "${ECHO_T}no" >&6
4021fi
4022
4023
4024# Check whether --with-chroot or --without-chroot was given.
4025if test "${with_chroot+set}" = set; then
4026  withval="$with_chroot"
4027
4028fi;
4029echo "$as_me:$LINENO: checking whether to chroot" >&5
4030echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
4031if test ! -z "$with_chroot" ; then
4032        cat >>confdefs.h <<_ACEOF
4033#define WITH_CHROOT "$withval"
4034_ACEOF
4035
4036       echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4037echo "${ECHO_T}to \"$withval\"" >&6
4038else
4039       echo "$as_me:$LINENO: result: no" >&5
4040echo "${ECHO_T}no" >&6
4041fi
4042
4043echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4044echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
4045# Check whether --enable-ipv6 or --disable-ipv6 was given.
4046if test "${enable_ipv6+set}" = set; then
4047  enableval="$enable_ipv6"
4048   case "$enableval" in
4049yes)   echo "$as_me:$LINENO: result: yes" >&5
4050echo "${ECHO_T}yes" >&6
4051       LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
4052       cat >>confdefs.h <<\_ACEOF
4053#define INET6 1
4054_ACEOF
4055
4056       ipv6=yes
4057       ;;
4058*)
4059       echo "$as_me:$LINENO: result: no" >&5
4060echo "${ECHO_T}no" >&6
4061       ipv6=no
4062       ;;
4063  esac
4064else
4065  if test "$cross_compiling" = yes; then
4066   echo "$as_me:$LINENO: result: no" >&5
4067echo "${ECHO_T}no" >&6
4068  ipv6=no
4069
4070else
4071  cat >conftest.$ac_ext <<_ACEOF
4072/* confdefs.h.  */
4073_ACEOF
4074cat confdefs.h >>conftest.$ac_ext
4075cat >>conftest.$ac_ext <<_ACEOF
4076/* end confdefs.h.  */
4077 /* AF_INET6 available check */
4078#include <sys/types.h>
4079#include <sys/socket.h>
4080main()
4081{
4082 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4083   exit(1);
4084 else
4085   exit(0);
4086}
4087
4088_ACEOF
4089rm -f conftest$ac_exeext
4090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4091  (eval $ac_link) 2>&5
4092  ac_status=$?
4093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096  (eval $ac_try) 2>&5
4097  ac_status=$?
4098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099  (exit $ac_status); }; }; then
4100   echo "$as_me:$LINENO: result: yes" >&5
4101echo "${ECHO_T}yes" >&6
4102  LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
4103  cat >>confdefs.h <<\_ACEOF
4104#define INET6 1
4105_ACEOF
4106
4107  ipv6=yes
4108else
4109  echo "$as_me: program exited with status $ac_status" >&5
4110echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113( exit $ac_status )
4114 echo "$as_me:$LINENO: result: no" >&5
4115echo "${ECHO_T}no" >&6
4116  ipv6=no
4117fi
4118rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4119fi
4120fi;
4121
4122ipv6type=unknown
4123ipv6lib=none
4124ipv6trylibc=no
4125
4126if test "$ipv6" = "yes"; then
4127	echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4128echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
4129	for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4130		case $i in
4131		inria)
4132						cat >conftest.$ac_ext <<_ACEOF
4133/* confdefs.h.  */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h.  */
4138#include <netinet/in.h>
4139#ifdef IPV6_INRIA_VERSION
4140yes
4141#endif
4142_ACEOF
4143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4144  $EGREP "yes" >/dev/null 2>&1; then
4145  ipv6type=$i;
4146				CFLAGS="-DINET6 $CFLAGS"
4147fi
4148rm -f conftest*
4149
4150			;;
4151		kame)
4152						cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h.  */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h.  */
4158#include <netinet/in.h>
4159#ifdef __KAME__
4160yes
4161#endif
4162_ACEOF
4163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4164  $EGREP "yes" >/dev/null 2>&1; then
4165  ipv6type=$i;
4166				ipv6lib=inet6;
4167				ipv6libdir=/usr/local/v6/lib;
4168				ipv6trylibc=yes;
4169				CFLAGS="-DINET6 $CFLAGS"
4170fi
4171rm -f conftest*
4172
4173			;;
4174		linux-glibc)
4175						cat >conftest.$ac_ext <<_ACEOF
4176/* confdefs.h.  */
4177_ACEOF
4178cat confdefs.h >>conftest.$ac_ext
4179cat >>conftest.$ac_ext <<_ACEOF
4180/* end confdefs.h.  */
4181#include <features.h>
4182#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4183yes
4184#endif
4185_ACEOF
4186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187  $EGREP "yes" >/dev/null 2>&1; then
4188  ipv6type=$i;
4189				CFLAGS="-DINET6 $CFLAGS"
4190fi
4191rm -f conftest*
4192
4193			;;
4194		linux-libinet6)
4195																		if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4196				ipv6type=$i
4197				ipv6lib=inet6
4198				ipv6libdir=/usr/inet6/lib
4199				ipv6trylibc=yes;
4200				CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4201			fi
4202			;;
4203		toshiba)
4204			cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h.  */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h.  */
4210#include <sys/param.h>
4211#ifdef _TOSHIBA_INET6
4212yes
4213#endif
4214_ACEOF
4215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216  $EGREP "yes" >/dev/null 2>&1; then
4217  ipv6type=$i;
4218				ipv6lib=inet6;
4219				ipv6libdir=/usr/local/v6/lib;
4220				CFLAGS="-DINET6 $CFLAGS"
4221fi
4222rm -f conftest*
4223
4224			;;
4225		v6d)
4226			cat >conftest.$ac_ext <<_ACEOF
4227/* confdefs.h.  */
4228_ACEOF
4229cat confdefs.h >>conftest.$ac_ext
4230cat >>conftest.$ac_ext <<_ACEOF
4231/* end confdefs.h.  */
4232#include </usr/local/v6/include/sys/v6config.h>
4233#ifdef __V6D__
4234yes
4235#endif
4236_ACEOF
4237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238  $EGREP "yes" >/dev/null 2>&1; then
4239  ipv6type=$i;
4240				ipv6lib=v6;
4241				ipv6libdir=/usr/local/v6/lib;
4242				CFLAGS="-I/usr/local/v6/include $CFLAGS"
4243fi
4244rm -f conftest*
4245
4246			;;
4247		zeta)
4248			cat >conftest.$ac_ext <<_ACEOF
4249/* confdefs.h.  */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
4253/* end confdefs.h.  */
4254#include <sys/param.h>
4255#ifdef _ZETA_MINAMI_INET6
4256yes
4257#endif
4258_ACEOF
4259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260  $EGREP "yes" >/dev/null 2>&1; then
4261  ipv6type=$i;
4262				ipv6lib=inet6;
4263				ipv6libdir=/usr/local/v6/lib;
4264				CFLAGS="-DINET6 $CFLAGS"
4265fi
4266rm -f conftest*
4267
4268			;;
4269		esac
4270		if test "$ipv6type" != "unknown"; then
4271			break
4272		fi
4273	done
4274	echo "$as_me:$LINENO: result: $ipv6type" >&5
4275echo "${ECHO_T}$ipv6type" >&6
4276fi
4277
4278if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4279	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4280		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4281		echo "You have $ipv6lib library, using it"
4282	else
4283		if test "$ipv6trylibc" = "yes"; then
4284			echo "You do not have $ipv6lib library, using libc"
4285		else
4286			echo 'Fatal: no $ipv6lib library found.  cannot continue.'
4287			echo "You need to fetch lib$ipv6lib.a from appropriate"
4288			echo 'ipv6 kit and compile beforehand.'
4289			exit 1
4290		fi
4291	fi
4292fi
4293
4294
4295if test "$ipv6" = "yes"; then
4296	#
4297	# XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4298	# function in libc; there are "ngetaddrinfo()" and
4299	# "ogetaddrinfo()" functions, and <netdb.h> #defines
4300	# "getaddrinfo" to be either "ngetaddrinfo" or
4301	# "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4302	# or _XOPEN_SOURCE_EXTENDED are defined or not.
4303	#
4304	# So this test doesn't work on Tru64 5.1, and possibly
4305	# on other 5.x releases.  This causes the configure
4306	# script to become confused, and results in libpcap
4307	# being unbuildable.
4308	#
4309	echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4310echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4311if test "${ac_cv_search_getaddrinfo+set}" = set; then
4312  echo $ECHO_N "(cached) $ECHO_C" >&6
4313else
4314  ac_func_search_save_LIBS=$LIBS
4315ac_cv_search_getaddrinfo=no
4316cat >conftest.$ac_ext <<_ACEOF
4317/* confdefs.h.  */
4318_ACEOF
4319cat confdefs.h >>conftest.$ac_ext
4320cat >>conftest.$ac_ext <<_ACEOF
4321/* end confdefs.h.  */
4322
4323/* Override any gcc2 internal prototype to avoid an error.  */
4324#ifdef __cplusplus
4325extern "C"
4326#endif
4327/* We use char because int might match the return type of a gcc2
4328   builtin and then its argument prototype would still apply.  */
4329char getaddrinfo ();
4330int
4331main ()
4332{
4333getaddrinfo ();
4334  ;
4335  return 0;
4336}
4337_ACEOF
4338rm -f conftest.$ac_objext conftest$ac_exeext
4339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340  (eval $ac_link) 2>conftest.er1
4341  ac_status=$?
4342  grep -v '^ *+' conftest.er1 >conftest.err
4343  rm -f conftest.er1
4344  cat conftest.err >&5
4345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346  (exit $ac_status); } &&
4347	 { ac_try='test -z "$ac_c_werror_flag"
4348			 || test ! -s conftest.err'
4349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350  (eval $ac_try) 2>&5
4351  ac_status=$?
4352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353  (exit $ac_status); }; } &&
4354	 { ac_try='test -s conftest$ac_exeext'
4355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356  (eval $ac_try) 2>&5
4357  ac_status=$?
4358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359  (exit $ac_status); }; }; then
4360  ac_cv_search_getaddrinfo="none required"
4361else
4362  echo "$as_me: failed program was:" >&5
4363sed 's/^/| /' conftest.$ac_ext >&5
4364
4365fi
4366rm -f conftest.err conftest.$ac_objext \
4367      conftest$ac_exeext conftest.$ac_ext
4368if test "$ac_cv_search_getaddrinfo" = no; then
4369  for ac_lib in socket; do
4370    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4371    cat >conftest.$ac_ext <<_ACEOF
4372/* confdefs.h.  */
4373_ACEOF
4374cat confdefs.h >>conftest.$ac_ext
4375cat >>conftest.$ac_ext <<_ACEOF
4376/* end confdefs.h.  */
4377
4378/* Override any gcc2 internal prototype to avoid an error.  */
4379#ifdef __cplusplus
4380extern "C"
4381#endif
4382/* We use char because int might match the return type of a gcc2
4383   builtin and then its argument prototype would still apply.  */
4384char getaddrinfo ();
4385int
4386main ()
4387{
4388getaddrinfo ();
4389  ;
4390  return 0;
4391}
4392_ACEOF
4393rm -f conftest.$ac_objext conftest$ac_exeext
4394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4395  (eval $ac_link) 2>conftest.er1
4396  ac_status=$?
4397  grep -v '^ *+' conftest.er1 >conftest.err
4398  rm -f conftest.er1
4399  cat conftest.err >&5
4400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401  (exit $ac_status); } &&
4402	 { ac_try='test -z "$ac_c_werror_flag"
4403			 || test ! -s conftest.err'
4404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405  (eval $ac_try) 2>&5
4406  ac_status=$?
4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408  (exit $ac_status); }; } &&
4409	 { ac_try='test -s conftest$ac_exeext'
4410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411  (eval $ac_try) 2>&5
4412  ac_status=$?
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); }; }; then
4415  ac_cv_search_getaddrinfo="-l$ac_lib"
4416break
4417else
4418  echo "$as_me: failed program was:" >&5
4419sed 's/^/| /' conftest.$ac_ext >&5
4420
4421fi
4422rm -f conftest.err conftest.$ac_objext \
4423      conftest$ac_exeext conftest.$ac_ext
4424  done
4425fi
4426LIBS=$ac_func_search_save_LIBS
4427fi
4428echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4429echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4430if test "$ac_cv_search_getaddrinfo" != no; then
4431  test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4432  	echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4433echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4434	if test "${td_cv_buggygetaddrinfo+set}" = set; then
4435  echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437  if test "$cross_compiling" = yes; then
4438  td_cv_buggygetaddrinfo=yes
4439else
4440  cat >conftest.$ac_ext <<_ACEOF
4441/* confdefs.h.  */
4442_ACEOF
4443cat confdefs.h >>conftest.$ac_ext
4444cat >>conftest.$ac_ext <<_ACEOF
4445/* end confdefs.h.  */
4446
4447#include <sys/types.h>
4448#include <netdb.h>
4449#include <string.h>
4450#include <sys/socket.h>
4451#include <netinet/in.h>
4452
4453main()
4454{
4455  int passive, gaierr, inet4 = 0, inet6 = 0;
4456  struct addrinfo hints, *ai, *aitop;
4457  char straddr[INET6_ADDRSTRLEN], strport[16];
4458
4459  for (passive = 0; passive <= 1; passive++) {
4460    memset(&hints, 0, sizeof(hints));
4461    hints.ai_family = AF_UNSPEC;
4462    hints.ai_flags = passive ? AI_PASSIVE : 0;
4463    hints.ai_socktype = SOCK_STREAM;
4464    hints.ai_protocol = IPPROTO_TCP;
4465    if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4466      (void)gai_strerror(gaierr);
4467      goto bad;
4468    }
4469    for (ai = aitop; ai; ai = ai->ai_next) {
4470      if (ai->ai_addr == NULL ||
4471          ai->ai_addrlen == 0 ||
4472          getnameinfo(ai->ai_addr, ai->ai_addrlen,
4473                      straddr, sizeof(straddr), strport, sizeof(strport),
4474                      NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4475        goto bad;
4476      }
4477      switch (ai->ai_family) {
4478      case AF_INET:
4479        if (strcmp(strport, "54321") != 0) {
4480          goto bad;
4481        }
4482        if (passive) {
4483          if (strcmp(straddr, "0.0.0.0") != 0) {
4484            goto bad;
4485          }
4486        } else {
4487          if (strcmp(straddr, "127.0.0.1") != 0) {
4488            goto bad;
4489          }
4490        }
4491        inet4++;
4492        break;
4493      case AF_INET6:
4494        if (strcmp(strport, "54321") != 0) {
4495          goto bad;
4496        }
4497        if (passive) {
4498          if (strcmp(straddr, "::") != 0) {
4499            goto bad;
4500          }
4501        } else {
4502          if (strcmp(straddr, "::1") != 0) {
4503            goto bad;
4504          }
4505        }
4506        inet6++;
4507        break;
4508      case AF_UNSPEC:
4509        goto bad;
4510        break;
4511#ifdef AF_UNIX
4512      case AF_UNIX:
4513#else
4514#ifdef AF_LOCAL
4515      case AF_LOCAL:
4516#endif
4517#endif
4518      default:
4519        /* another family support? */
4520        break;
4521      }
4522    }
4523  }
4524
4525  /* supported family should be 2, unsupported family should be 0 */
4526  if (!(inet4 == 0 || inet4 == 2))
4527    goto bad;
4528  if (!(inet6 == 0 || inet6 == 2))
4529    goto bad;
4530
4531  if (aitop)
4532    freeaddrinfo(aitop);
4533  exit(0);
4534
4535 bad:
4536  if (aitop)
4537    freeaddrinfo(aitop);
4538  exit(1);
4539}
4540
4541_ACEOF
4542rm -f conftest$ac_exeext
4543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4544  (eval $ac_link) 2>&5
4545  ac_status=$?
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549  (eval $ac_try) 2>&5
4550  ac_status=$?
4551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552  (exit $ac_status); }; }; then
4553  td_cv_buggygetaddrinfo=no
4554else
4555  echo "$as_me: program exited with status $ac_status" >&5
4556echo "$as_me: failed program was:" >&5
4557sed 's/^/| /' conftest.$ac_ext >&5
4558
4559( exit $ac_status )
4560td_cv_buggygetaddrinfo=yes
4561fi
4562rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4563fi
4564fi
4565
4566	if test "$td_cv_buggygetaddrinfo" = no; then
4567		echo "$as_me:$LINENO: result: good" >&5
4568echo "${ECHO_T}good" >&6
4569	else
4570		echo "$as_me:$LINENO: result: buggy" >&5
4571echo "${ECHO_T}buggy" >&6
4572	fi
4573
4574	if test "$td_cv_buggygetaddrinfo" = "yes"; then
4575		#
4576		# XXX - it doesn't appear that "ipv6type" can ever be
4577		# set to "linux".  Should this be testing for
4578		# "linux-glibc", or for that *or* "linux-libinet6"?
4579		# If the latter, note that "linux-libinet6" is also
4580		# the type given to some non-Linux OSes.
4581		#
4582		if test "$ipv6type" != "linux"; then
4583			echo 'Fatal: You must get working getaddrinfo() function.'
4584			echo '       or you can specify "--disable-ipv6"'.
4585			exit 1
4586		else
4587			echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4588			echo '         Better upgrade your system library to newest version'
4589			echo '         of GNU C library (aka glibc).'
4590		fi
4591	fi
4592
4593fi
4594
4595
4596
4597for ac_func in getaddrinfo getnameinfo
4598do
4599as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4600echo "$as_me:$LINENO: checking for $ac_func" >&5
4601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4602if eval "test \"\${$as_ac_var+set}\" = set"; then
4603  echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605  cat >conftest.$ac_ext <<_ACEOF
4606/* confdefs.h.  */
4607_ACEOF
4608cat confdefs.h >>conftest.$ac_ext
4609cat >>conftest.$ac_ext <<_ACEOF
4610/* end confdefs.h.  */
4611/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4612   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4613#define $ac_func innocuous_$ac_func
4614
4615/* System header to define __stub macros and hopefully few prototypes,
4616    which can conflict with char $ac_func (); below.
4617    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4618    <limits.h> exists even on freestanding compilers.  */
4619
4620#ifdef __STDC__
4621# include <limits.h>
4622#else
4623# include <assert.h>
4624#endif
4625
4626#undef $ac_func
4627
4628/* Override any gcc2 internal prototype to avoid an error.  */
4629#ifdef __cplusplus
4630extern "C"
4631{
4632#endif
4633/* We use char because int might match the return type of a gcc2
4634   builtin and then its argument prototype would still apply.  */
4635char $ac_func ();
4636/* The GNU C library defines this for functions which it implements
4637    to always fail with ENOSYS.  Some functions are actually named
4638    something starting with __ and the normal name is an alias.  */
4639#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4640choke me
4641#else
4642char (*f) () = $ac_func;
4643#endif
4644#ifdef __cplusplus
4645}
4646#endif
4647
4648int
4649main ()
4650{
4651return f != $ac_func;
4652  ;
4653  return 0;
4654}
4655_ACEOF
4656rm -f conftest.$ac_objext conftest$ac_exeext
4657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658  (eval $ac_link) 2>conftest.er1
4659  ac_status=$?
4660  grep -v '^ *+' conftest.er1 >conftest.err
4661  rm -f conftest.er1
4662  cat conftest.err >&5
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); } &&
4665	 { ac_try='test -z "$ac_c_werror_flag"
4666			 || test ! -s conftest.err'
4667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668  (eval $ac_try) 2>&5
4669  ac_status=$?
4670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671  (exit $ac_status); }; } &&
4672	 { ac_try='test -s conftest$ac_exeext'
4673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674  (eval $ac_try) 2>&5
4675  ac_status=$?
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); }; }; then
4678  eval "$as_ac_var=yes"
4679else
4680  echo "$as_me: failed program was:" >&5
4681sed 's/^/| /' conftest.$ac_ext >&5
4682
4683eval "$as_ac_var=no"
4684fi
4685rm -f conftest.err conftest.$ac_objext \
4686      conftest$ac_exeext conftest.$ac_ext
4687fi
4688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4689echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4690if test `eval echo '${'$as_ac_var'}'` = yes; then
4691  cat >>confdefs.h <<_ACEOF
4692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4693_ACEOF
4694
4695else
4696  case $LIBOBJS in
4697    "$ac_func.$ac_objext"   | \
4698  *" $ac_func.$ac_objext"   | \
4699    "$ac_func.$ac_objext "* | \
4700  *" $ac_func.$ac_objext "* ) ;;
4701  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
4702esac
4703
4704fi
4705done
4706
4707
4708fi
4709
4710echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4711echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4712if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4713  echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715  cat >conftest.$ac_ext <<_ACEOF
4716/* confdefs.h.  */
4717_ACEOF
4718cat confdefs.h >>conftest.$ac_ext
4719cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h.  */
4721#include <netdnet/dnetdb.h>
4722
4723_ACEOF
4724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4725  $EGREP "dnet_htoa" >/dev/null 2>&1; then
4726  td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4727else
4728  td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4729fi
4730rm -f conftest*
4731
4732fi
4733echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4734echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4735if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4736	cat >>confdefs.h <<\_ACEOF
4737#define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4738_ACEOF
4739
4740fi
4741
4742echo "$as_me:$LINENO: checking for char" >&5
4743echo $ECHO_N "checking for char... $ECHO_C" >&6
4744if test "${ac_cv_type_char+set}" = set; then
4745  echo $ECHO_N "(cached) $ECHO_C" >&6
4746else
4747  cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h.  */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h.  */
4753$ac_includes_default
4754int
4755main ()
4756{
4757if ((char *) 0)
4758  return 0;
4759if (sizeof (char))
4760  return 0;
4761  ;
4762  return 0;
4763}
4764_ACEOF
4765rm -f conftest.$ac_objext
4766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767  (eval $ac_compile) 2>conftest.er1
4768  ac_status=$?
4769  grep -v '^ *+' conftest.er1 >conftest.err
4770  rm -f conftest.er1
4771  cat conftest.err >&5
4772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773  (exit $ac_status); } &&
4774	 { ac_try='test -z "$ac_c_werror_flag"
4775			 || test ! -s conftest.err'
4776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777  (eval $ac_try) 2>&5
4778  ac_status=$?
4779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780  (exit $ac_status); }; } &&
4781	 { ac_try='test -s conftest.$ac_objext'
4782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783  (eval $ac_try) 2>&5
4784  ac_status=$?
4785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786  (exit $ac_status); }; }; then
4787  ac_cv_type_char=yes
4788else
4789  echo "$as_me: failed program was:" >&5
4790sed 's/^/| /' conftest.$ac_ext >&5
4791
4792ac_cv_type_char=no
4793fi
4794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795fi
4796echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4797echo "${ECHO_T}$ac_cv_type_char" >&6
4798
4799echo "$as_me:$LINENO: checking size of char" >&5
4800echo $ECHO_N "checking size of char... $ECHO_C" >&6
4801if test "${ac_cv_sizeof_char+set}" = set; then
4802  echo $ECHO_N "(cached) $ECHO_C" >&6
4803else
4804  if test "$ac_cv_type_char" = yes; then
4805  # The cast to unsigned long works around a bug in the HP C Compiler
4806  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4807  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4808  # This bug is HP SR number 8606223364.
4809  if test "$cross_compiling" = yes; then
4810  # Depending upon the size, compute the lo and hi bounds.
4811cat >conftest.$ac_ext <<_ACEOF
4812/* confdefs.h.  */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h.  */
4817$ac_includes_default
4818int
4819main ()
4820{
4821static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4822test_array [0] = 0
4823
4824  ;
4825  return 0;
4826}
4827_ACEOF
4828rm -f conftest.$ac_objext
4829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830  (eval $ac_compile) 2>conftest.er1
4831  ac_status=$?
4832  grep -v '^ *+' conftest.er1 >conftest.err
4833  rm -f conftest.er1
4834  cat conftest.err >&5
4835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836  (exit $ac_status); } &&
4837	 { ac_try='test -z "$ac_c_werror_flag"
4838			 || test ! -s conftest.err'
4839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840  (eval $ac_try) 2>&5
4841  ac_status=$?
4842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843  (exit $ac_status); }; } &&
4844	 { ac_try='test -s conftest.$ac_objext'
4845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846  (eval $ac_try) 2>&5
4847  ac_status=$?
4848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849  (exit $ac_status); }; }; then
4850  ac_lo=0 ac_mid=0
4851  while :; do
4852    cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h.  */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h.  */
4858$ac_includes_default
4859int
4860main ()
4861{
4862static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4863test_array [0] = 0
4864
4865  ;
4866  return 0;
4867}
4868_ACEOF
4869rm -f conftest.$ac_objext
4870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871  (eval $ac_compile) 2>conftest.er1
4872  ac_status=$?
4873  grep -v '^ *+' conftest.er1 >conftest.err
4874  rm -f conftest.er1
4875  cat conftest.err >&5
4876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877  (exit $ac_status); } &&
4878	 { ac_try='test -z "$ac_c_werror_flag"
4879			 || test ! -s conftest.err'
4880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881  (eval $ac_try) 2>&5
4882  ac_status=$?
4883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884  (exit $ac_status); }; } &&
4885	 { ac_try='test -s conftest.$ac_objext'
4886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887  (eval $ac_try) 2>&5
4888  ac_status=$?
4889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890  (exit $ac_status); }; }; then
4891  ac_hi=$ac_mid; break
4892else
4893  echo "$as_me: failed program was:" >&5
4894sed 's/^/| /' conftest.$ac_ext >&5
4895
4896ac_lo=`expr $ac_mid + 1`
4897		    if test $ac_lo -le $ac_mid; then
4898		      ac_lo= ac_hi=
4899		      break
4900		    fi
4901		    ac_mid=`expr 2 '*' $ac_mid + 1`
4902fi
4903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4904  done
4905else
4906  echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909cat >conftest.$ac_ext <<_ACEOF
4910/* confdefs.h.  */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h.  */
4915$ac_includes_default
4916int
4917main ()
4918{
4919static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4920test_array [0] = 0
4921
4922  ;
4923  return 0;
4924}
4925_ACEOF
4926rm -f conftest.$ac_objext
4927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928  (eval $ac_compile) 2>conftest.er1
4929  ac_status=$?
4930  grep -v '^ *+' conftest.er1 >conftest.err
4931  rm -f conftest.er1
4932  cat conftest.err >&5
4933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934  (exit $ac_status); } &&
4935	 { ac_try='test -z "$ac_c_werror_flag"
4936			 || test ! -s conftest.err'
4937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938  (eval $ac_try) 2>&5
4939  ac_status=$?
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); }; } &&
4942	 { ac_try='test -s conftest.$ac_objext'
4943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944  (eval $ac_try) 2>&5
4945  ac_status=$?
4946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947  (exit $ac_status); }; }; then
4948  ac_hi=-1 ac_mid=-1
4949  while :; do
4950    cat >conftest.$ac_ext <<_ACEOF
4951/* confdefs.h.  */
4952_ACEOF
4953cat confdefs.h >>conftest.$ac_ext
4954cat >>conftest.$ac_ext <<_ACEOF
4955/* end confdefs.h.  */
4956$ac_includes_default
4957int
4958main ()
4959{
4960static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4961test_array [0] = 0
4962
4963  ;
4964  return 0;
4965}
4966_ACEOF
4967rm -f conftest.$ac_objext
4968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4969  (eval $ac_compile) 2>conftest.er1
4970  ac_status=$?
4971  grep -v '^ *+' conftest.er1 >conftest.err
4972  rm -f conftest.er1
4973  cat conftest.err >&5
4974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975  (exit $ac_status); } &&
4976	 { ac_try='test -z "$ac_c_werror_flag"
4977			 || test ! -s conftest.err'
4978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979  (eval $ac_try) 2>&5
4980  ac_status=$?
4981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982  (exit $ac_status); }; } &&
4983	 { ac_try='test -s conftest.$ac_objext'
4984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985  (eval $ac_try) 2>&5
4986  ac_status=$?
4987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988  (exit $ac_status); }; }; then
4989  ac_lo=$ac_mid; break
4990else
4991  echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994ac_hi=`expr '(' $ac_mid ')' - 1`
4995		       if test $ac_mid -le $ac_hi; then
4996			 ac_lo= ac_hi=
4997			 break
4998		       fi
4999		       ac_mid=`expr 2 '*' $ac_mid`
5000fi
5001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5002  done
5003else
5004  echo "$as_me: failed program was:" >&5
5005sed 's/^/| /' conftest.$ac_ext >&5
5006
5007ac_lo= ac_hi=
5008fi
5009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5010fi
5011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012# Binary search between lo and hi bounds.
5013while test "x$ac_lo" != "x$ac_hi"; do
5014  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5015  cat >conftest.$ac_ext <<_ACEOF
5016/* confdefs.h.  */
5017_ACEOF
5018cat confdefs.h >>conftest.$ac_ext
5019cat >>conftest.$ac_ext <<_ACEOF
5020/* end confdefs.h.  */
5021$ac_includes_default
5022int
5023main ()
5024{
5025static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5026test_array [0] = 0
5027
5028  ;
5029  return 0;
5030}
5031_ACEOF
5032rm -f conftest.$ac_objext
5033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034  (eval $ac_compile) 2>conftest.er1
5035  ac_status=$?
5036  grep -v '^ *+' conftest.er1 >conftest.err
5037  rm -f conftest.er1
5038  cat conftest.err >&5
5039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040  (exit $ac_status); } &&
5041	 { ac_try='test -z "$ac_c_werror_flag"
5042			 || test ! -s conftest.err'
5043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044  (eval $ac_try) 2>&5
5045  ac_status=$?
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); }; } &&
5048	 { ac_try='test -s conftest.$ac_objext'
5049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050  (eval $ac_try) 2>&5
5051  ac_status=$?
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); }; }; then
5054  ac_hi=$ac_mid
5055else
5056  echo "$as_me: failed program was:" >&5
5057sed 's/^/| /' conftest.$ac_ext >&5
5058
5059ac_lo=`expr '(' $ac_mid ')' + 1`
5060fi
5061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5062done
5063case $ac_lo in
5064?*) ac_cv_sizeof_char=$ac_lo;;
5065'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5066See \`config.log' for more details." >&5
5067echo "$as_me: error: cannot compute sizeof (char), 77
5068See \`config.log' for more details." >&2;}
5069   { (exit 1); exit 1; }; } ;;
5070esac
5071else
5072  if test "$cross_compiling" = yes; then
5073  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5074See \`config.log' for more details." >&5
5075echo "$as_me: error: cannot run test program while cross compiling
5076See \`config.log' for more details." >&2;}
5077   { (exit 1); exit 1; }; }
5078else
5079  cat >conftest.$ac_ext <<_ACEOF
5080/* confdefs.h.  */
5081_ACEOF
5082cat confdefs.h >>conftest.$ac_ext
5083cat >>conftest.$ac_ext <<_ACEOF
5084/* end confdefs.h.  */
5085$ac_includes_default
5086long longval () { return (long) (sizeof (char)); }
5087unsigned long ulongval () { return (long) (sizeof (char)); }
5088#include <stdio.h>
5089#include <stdlib.h>
5090int
5091main ()
5092{
5093
5094  FILE *f = fopen ("conftest.val", "w");
5095  if (! f)
5096    exit (1);
5097  if (((long) (sizeof (char))) < 0)
5098    {
5099      long i = longval ();
5100      if (i != ((long) (sizeof (char))))
5101	exit (1);
5102      fprintf (f, "%ld\n", i);
5103    }
5104  else
5105    {
5106      unsigned long i = ulongval ();
5107      if (i != ((long) (sizeof (char))))
5108	exit (1);
5109      fprintf (f, "%lu\n", i);
5110    }
5111  exit (ferror (f) || fclose (f) != 0);
5112
5113  ;
5114  return 0;
5115}
5116_ACEOF
5117rm -f conftest$ac_exeext
5118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119  (eval $ac_link) 2>&5
5120  ac_status=$?
5121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124  (eval $ac_try) 2>&5
5125  ac_status=$?
5126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127  (exit $ac_status); }; }; then
5128  ac_cv_sizeof_char=`cat conftest.val`
5129else
5130  echo "$as_me: program exited with status $ac_status" >&5
5131echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
5133
5134( exit $ac_status )
5135{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5136See \`config.log' for more details." >&5
5137echo "$as_me: error: cannot compute sizeof (char), 77
5138See \`config.log' for more details." >&2;}
5139   { (exit 1); exit 1; }; }
5140fi
5141rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5142fi
5143fi
5144rm -f conftest.val
5145else
5146  ac_cv_sizeof_char=0
5147fi
5148fi
5149echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5150echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5151cat >>confdefs.h <<_ACEOF
5152#define SIZEOF_CHAR $ac_cv_sizeof_char
5153_ACEOF
5154
5155
5156echo "$as_me:$LINENO: checking for short" >&5
5157echo $ECHO_N "checking for short... $ECHO_C" >&6
5158if test "${ac_cv_type_short+set}" = set; then
5159  echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
5161  cat >conftest.$ac_ext <<_ACEOF
5162/* confdefs.h.  */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5166/* end confdefs.h.  */
5167$ac_includes_default
5168int
5169main ()
5170{
5171if ((short *) 0)
5172  return 0;
5173if (sizeof (short))
5174  return 0;
5175  ;
5176  return 0;
5177}
5178_ACEOF
5179rm -f conftest.$ac_objext
5180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181  (eval $ac_compile) 2>conftest.er1
5182  ac_status=$?
5183  grep -v '^ *+' conftest.er1 >conftest.err
5184  rm -f conftest.er1
5185  cat conftest.err >&5
5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187  (exit $ac_status); } &&
5188	 { ac_try='test -z "$ac_c_werror_flag"
5189			 || test ! -s conftest.err'
5190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191  (eval $ac_try) 2>&5
5192  ac_status=$?
5193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194  (exit $ac_status); }; } &&
5195	 { ac_try='test -s conftest.$ac_objext'
5196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197  (eval $ac_try) 2>&5
5198  ac_status=$?
5199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200  (exit $ac_status); }; }; then
5201  ac_cv_type_short=yes
5202else
5203  echo "$as_me: failed program was:" >&5
5204sed 's/^/| /' conftest.$ac_ext >&5
5205
5206ac_cv_type_short=no
5207fi
5208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5209fi
5210echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5211echo "${ECHO_T}$ac_cv_type_short" >&6
5212
5213echo "$as_me:$LINENO: checking size of short" >&5
5214echo $ECHO_N "checking size of short... $ECHO_C" >&6
5215if test "${ac_cv_sizeof_short+set}" = set; then
5216  echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218  if test "$ac_cv_type_short" = yes; then
5219  # The cast to unsigned long works around a bug in the HP C Compiler
5220  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5221  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5222  # This bug is HP SR number 8606223364.
5223  if test "$cross_compiling" = yes; then
5224  # Depending upon the size, compute the lo and hi bounds.
5225cat >conftest.$ac_ext <<_ACEOF
5226/* confdefs.h.  */
5227_ACEOF
5228cat confdefs.h >>conftest.$ac_ext
5229cat >>conftest.$ac_ext <<_ACEOF
5230/* end confdefs.h.  */
5231$ac_includes_default
5232int
5233main ()
5234{
5235static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5236test_array [0] = 0
5237
5238  ;
5239  return 0;
5240}
5241_ACEOF
5242rm -f conftest.$ac_objext
5243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5244  (eval $ac_compile) 2>conftest.er1
5245  ac_status=$?
5246  grep -v '^ *+' conftest.er1 >conftest.err
5247  rm -f conftest.er1
5248  cat conftest.err >&5
5249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); } &&
5251	 { ac_try='test -z "$ac_c_werror_flag"
5252			 || test ! -s conftest.err'
5253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254  (eval $ac_try) 2>&5
5255  ac_status=$?
5256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257  (exit $ac_status); }; } &&
5258	 { ac_try='test -s conftest.$ac_objext'
5259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260  (eval $ac_try) 2>&5
5261  ac_status=$?
5262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263  (exit $ac_status); }; }; then
5264  ac_lo=0 ac_mid=0
5265  while :; do
5266    cat >conftest.$ac_ext <<_ACEOF
5267/* confdefs.h.  */
5268_ACEOF
5269cat confdefs.h >>conftest.$ac_ext
5270cat >>conftest.$ac_ext <<_ACEOF
5271/* end confdefs.h.  */
5272$ac_includes_default
5273int
5274main ()
5275{
5276static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5277test_array [0] = 0
5278
5279  ;
5280  return 0;
5281}
5282_ACEOF
5283rm -f conftest.$ac_objext
5284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285  (eval $ac_compile) 2>conftest.er1
5286  ac_status=$?
5287  grep -v '^ *+' conftest.er1 >conftest.err
5288  rm -f conftest.er1
5289  cat conftest.err >&5
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); } &&
5292	 { ac_try='test -z "$ac_c_werror_flag"
5293			 || test ! -s conftest.err'
5294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295  (eval $ac_try) 2>&5
5296  ac_status=$?
5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298  (exit $ac_status); }; } &&
5299	 { ac_try='test -s conftest.$ac_objext'
5300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301  (eval $ac_try) 2>&5
5302  ac_status=$?
5303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304  (exit $ac_status); }; }; then
5305  ac_hi=$ac_mid; break
5306else
5307  echo "$as_me: failed program was:" >&5
5308sed 's/^/| /' conftest.$ac_ext >&5
5309
5310ac_lo=`expr $ac_mid + 1`
5311		    if test $ac_lo -le $ac_mid; then
5312		      ac_lo= ac_hi=
5313		      break
5314		    fi
5315		    ac_mid=`expr 2 '*' $ac_mid + 1`
5316fi
5317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5318  done
5319else
5320  echo "$as_me: failed program was:" >&5
5321sed 's/^/| /' conftest.$ac_ext >&5
5322
5323cat >conftest.$ac_ext <<_ACEOF
5324/* confdefs.h.  */
5325_ACEOF
5326cat confdefs.h >>conftest.$ac_ext
5327cat >>conftest.$ac_ext <<_ACEOF
5328/* end confdefs.h.  */
5329$ac_includes_default
5330int
5331main ()
5332{
5333static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5334test_array [0] = 0
5335
5336  ;
5337  return 0;
5338}
5339_ACEOF
5340rm -f conftest.$ac_objext
5341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342  (eval $ac_compile) 2>conftest.er1
5343  ac_status=$?
5344  grep -v '^ *+' conftest.er1 >conftest.err
5345  rm -f conftest.er1
5346  cat conftest.err >&5
5347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348  (exit $ac_status); } &&
5349	 { ac_try='test -z "$ac_c_werror_flag"
5350			 || test ! -s conftest.err'
5351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352  (eval $ac_try) 2>&5
5353  ac_status=$?
5354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355  (exit $ac_status); }; } &&
5356	 { ac_try='test -s conftest.$ac_objext'
5357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358  (eval $ac_try) 2>&5
5359  ac_status=$?
5360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361  (exit $ac_status); }; }; then
5362  ac_hi=-1 ac_mid=-1
5363  while :; do
5364    cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h.  */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h.  */
5370$ac_includes_default
5371int
5372main ()
5373{
5374static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5375test_array [0] = 0
5376
5377  ;
5378  return 0;
5379}
5380_ACEOF
5381rm -f conftest.$ac_objext
5382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5383  (eval $ac_compile) 2>conftest.er1
5384  ac_status=$?
5385  grep -v '^ *+' conftest.er1 >conftest.err
5386  rm -f conftest.er1
5387  cat conftest.err >&5
5388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389  (exit $ac_status); } &&
5390	 { ac_try='test -z "$ac_c_werror_flag"
5391			 || test ! -s conftest.err'
5392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393  (eval $ac_try) 2>&5
5394  ac_status=$?
5395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396  (exit $ac_status); }; } &&
5397	 { ac_try='test -s conftest.$ac_objext'
5398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399  (eval $ac_try) 2>&5
5400  ac_status=$?
5401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402  (exit $ac_status); }; }; then
5403  ac_lo=$ac_mid; break
5404else
5405  echo "$as_me: failed program was:" >&5
5406sed 's/^/| /' conftest.$ac_ext >&5
5407
5408ac_hi=`expr '(' $ac_mid ')' - 1`
5409		       if test $ac_mid -le $ac_hi; then
5410			 ac_lo= ac_hi=
5411			 break
5412		       fi
5413		       ac_mid=`expr 2 '*' $ac_mid`
5414fi
5415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5416  done
5417else
5418  echo "$as_me: failed program was:" >&5
5419sed 's/^/| /' conftest.$ac_ext >&5
5420
5421ac_lo= ac_hi=
5422fi
5423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5424fi
5425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5426# Binary search between lo and hi bounds.
5427while test "x$ac_lo" != "x$ac_hi"; do
5428  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5429  cat >conftest.$ac_ext <<_ACEOF
5430/* confdefs.h.  */
5431_ACEOF
5432cat confdefs.h >>conftest.$ac_ext
5433cat >>conftest.$ac_ext <<_ACEOF
5434/* end confdefs.h.  */
5435$ac_includes_default
5436int
5437main ()
5438{
5439static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5440test_array [0] = 0
5441
5442  ;
5443  return 0;
5444}
5445_ACEOF
5446rm -f conftest.$ac_objext
5447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5448  (eval $ac_compile) 2>conftest.er1
5449  ac_status=$?
5450  grep -v '^ *+' conftest.er1 >conftest.err
5451  rm -f conftest.er1
5452  cat conftest.err >&5
5453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454  (exit $ac_status); } &&
5455	 { ac_try='test -z "$ac_c_werror_flag"
5456			 || test ! -s conftest.err'
5457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458  (eval $ac_try) 2>&5
5459  ac_status=$?
5460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461  (exit $ac_status); }; } &&
5462	 { ac_try='test -s conftest.$ac_objext'
5463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464  (eval $ac_try) 2>&5
5465  ac_status=$?
5466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467  (exit $ac_status); }; }; then
5468  ac_hi=$ac_mid
5469else
5470  echo "$as_me: failed program was:" >&5
5471sed 's/^/| /' conftest.$ac_ext >&5
5472
5473ac_lo=`expr '(' $ac_mid ')' + 1`
5474fi
5475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5476done
5477case $ac_lo in
5478?*) ac_cv_sizeof_short=$ac_lo;;
5479'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5480See \`config.log' for more details." >&5
5481echo "$as_me: error: cannot compute sizeof (short), 77
5482See \`config.log' for more details." >&2;}
5483   { (exit 1); exit 1; }; } ;;
5484esac
5485else
5486  if test "$cross_compiling" = yes; then
5487  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5488See \`config.log' for more details." >&5
5489echo "$as_me: error: cannot run test program while cross compiling
5490See \`config.log' for more details." >&2;}
5491   { (exit 1); exit 1; }; }
5492else
5493  cat >conftest.$ac_ext <<_ACEOF
5494/* confdefs.h.  */
5495_ACEOF
5496cat confdefs.h >>conftest.$ac_ext
5497cat >>conftest.$ac_ext <<_ACEOF
5498/* end confdefs.h.  */
5499$ac_includes_default
5500long longval () { return (long) (sizeof (short)); }
5501unsigned long ulongval () { return (long) (sizeof (short)); }
5502#include <stdio.h>
5503#include <stdlib.h>
5504int
5505main ()
5506{
5507
5508  FILE *f = fopen ("conftest.val", "w");
5509  if (! f)
5510    exit (1);
5511  if (((long) (sizeof (short))) < 0)
5512    {
5513      long i = longval ();
5514      if (i != ((long) (sizeof (short))))
5515	exit (1);
5516      fprintf (f, "%ld\n", i);
5517    }
5518  else
5519    {
5520      unsigned long i = ulongval ();
5521      if (i != ((long) (sizeof (short))))
5522	exit (1);
5523      fprintf (f, "%lu\n", i);
5524    }
5525  exit (ferror (f) || fclose (f) != 0);
5526
5527  ;
5528  return 0;
5529}
5530_ACEOF
5531rm -f conftest$ac_exeext
5532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5533  (eval $ac_link) 2>&5
5534  ac_status=$?
5535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538  (eval $ac_try) 2>&5
5539  ac_status=$?
5540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541  (exit $ac_status); }; }; then
5542  ac_cv_sizeof_short=`cat conftest.val`
5543else
5544  echo "$as_me: program exited with status $ac_status" >&5
5545echo "$as_me: failed program was:" >&5
5546sed 's/^/| /' conftest.$ac_ext >&5
5547
5548( exit $ac_status )
5549{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5550See \`config.log' for more details." >&5
5551echo "$as_me: error: cannot compute sizeof (short), 77
5552See \`config.log' for more details." >&2;}
5553   { (exit 1); exit 1; }; }
5554fi
5555rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5556fi
5557fi
5558rm -f conftest.val
5559else
5560  ac_cv_sizeof_short=0
5561fi
5562fi
5563echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5564echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5565cat >>confdefs.h <<_ACEOF
5566#define SIZEOF_SHORT $ac_cv_sizeof_short
5567_ACEOF
5568
5569
5570echo "$as_me:$LINENO: checking for int" >&5
5571echo $ECHO_N "checking for int... $ECHO_C" >&6
5572if test "${ac_cv_type_int+set}" = set; then
5573  echo $ECHO_N "(cached) $ECHO_C" >&6
5574else
5575  cat >conftest.$ac_ext <<_ACEOF
5576/* confdefs.h.  */
5577_ACEOF
5578cat confdefs.h >>conftest.$ac_ext
5579cat >>conftest.$ac_ext <<_ACEOF
5580/* end confdefs.h.  */
5581$ac_includes_default
5582int
5583main ()
5584{
5585if ((int *) 0)
5586  return 0;
5587if (sizeof (int))
5588  return 0;
5589  ;
5590  return 0;
5591}
5592_ACEOF
5593rm -f conftest.$ac_objext
5594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595  (eval $ac_compile) 2>conftest.er1
5596  ac_status=$?
5597  grep -v '^ *+' conftest.er1 >conftest.err
5598  rm -f conftest.er1
5599  cat conftest.err >&5
5600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601  (exit $ac_status); } &&
5602	 { ac_try='test -z "$ac_c_werror_flag"
5603			 || test ! -s conftest.err'
5604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605  (eval $ac_try) 2>&5
5606  ac_status=$?
5607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608  (exit $ac_status); }; } &&
5609	 { ac_try='test -s conftest.$ac_objext'
5610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611  (eval $ac_try) 2>&5
5612  ac_status=$?
5613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614  (exit $ac_status); }; }; then
5615  ac_cv_type_int=yes
5616else
5617  echo "$as_me: failed program was:" >&5
5618sed 's/^/| /' conftest.$ac_ext >&5
5619
5620ac_cv_type_int=no
5621fi
5622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5623fi
5624echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5625echo "${ECHO_T}$ac_cv_type_int" >&6
5626
5627echo "$as_me:$LINENO: checking size of int" >&5
5628echo $ECHO_N "checking size of int... $ECHO_C" >&6
5629if test "${ac_cv_sizeof_int+set}" = set; then
5630  echo $ECHO_N "(cached) $ECHO_C" >&6
5631else
5632  if test "$ac_cv_type_int" = yes; then
5633  # The cast to unsigned long works around a bug in the HP C Compiler
5634  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5635  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5636  # This bug is HP SR number 8606223364.
5637  if test "$cross_compiling" = yes; then
5638  # Depending upon the size, compute the lo and hi bounds.
5639cat >conftest.$ac_ext <<_ACEOF
5640/* confdefs.h.  */
5641_ACEOF
5642cat confdefs.h >>conftest.$ac_ext
5643cat >>conftest.$ac_ext <<_ACEOF
5644/* end confdefs.h.  */
5645$ac_includes_default
5646int
5647main ()
5648{
5649static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5650test_array [0] = 0
5651
5652  ;
5653  return 0;
5654}
5655_ACEOF
5656rm -f conftest.$ac_objext
5657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658  (eval $ac_compile) 2>conftest.er1
5659  ac_status=$?
5660  grep -v '^ *+' conftest.er1 >conftest.err
5661  rm -f conftest.er1
5662  cat conftest.err >&5
5663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664  (exit $ac_status); } &&
5665	 { ac_try='test -z "$ac_c_werror_flag"
5666			 || test ! -s conftest.err'
5667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668  (eval $ac_try) 2>&5
5669  ac_status=$?
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); }; } &&
5672	 { ac_try='test -s conftest.$ac_objext'
5673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674  (eval $ac_try) 2>&5
5675  ac_status=$?
5676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677  (exit $ac_status); }; }; then
5678  ac_lo=0 ac_mid=0
5679  while :; do
5680    cat >conftest.$ac_ext <<_ACEOF
5681/* confdefs.h.  */
5682_ACEOF
5683cat confdefs.h >>conftest.$ac_ext
5684cat >>conftest.$ac_ext <<_ACEOF
5685/* end confdefs.h.  */
5686$ac_includes_default
5687int
5688main ()
5689{
5690static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5691test_array [0] = 0
5692
5693  ;
5694  return 0;
5695}
5696_ACEOF
5697rm -f conftest.$ac_objext
5698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699  (eval $ac_compile) 2>conftest.er1
5700  ac_status=$?
5701  grep -v '^ *+' conftest.er1 >conftest.err
5702  rm -f conftest.er1
5703  cat conftest.err >&5
5704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); } &&
5706	 { ac_try='test -z "$ac_c_werror_flag"
5707			 || test ! -s conftest.err'
5708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709  (eval $ac_try) 2>&5
5710  ac_status=$?
5711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); }; } &&
5713	 { ac_try='test -s conftest.$ac_objext'
5714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715  (eval $ac_try) 2>&5
5716  ac_status=$?
5717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718  (exit $ac_status); }; }; then
5719  ac_hi=$ac_mid; break
5720else
5721  echo "$as_me: failed program was:" >&5
5722sed 's/^/| /' conftest.$ac_ext >&5
5723
5724ac_lo=`expr $ac_mid + 1`
5725		    if test $ac_lo -le $ac_mid; then
5726		      ac_lo= ac_hi=
5727		      break
5728		    fi
5729		    ac_mid=`expr 2 '*' $ac_mid + 1`
5730fi
5731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5732  done
5733else
5734  echo "$as_me: failed program was:" >&5
5735sed 's/^/| /' conftest.$ac_ext >&5
5736
5737cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h.  */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h.  */
5743$ac_includes_default
5744int
5745main ()
5746{
5747static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5748test_array [0] = 0
5749
5750  ;
5751  return 0;
5752}
5753_ACEOF
5754rm -f conftest.$ac_objext
5755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756  (eval $ac_compile) 2>conftest.er1
5757  ac_status=$?
5758  grep -v '^ *+' conftest.er1 >conftest.err
5759  rm -f conftest.er1
5760  cat conftest.err >&5
5761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762  (exit $ac_status); } &&
5763	 { ac_try='test -z "$ac_c_werror_flag"
5764			 || test ! -s conftest.err'
5765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766  (eval $ac_try) 2>&5
5767  ac_status=$?
5768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769  (exit $ac_status); }; } &&
5770	 { ac_try='test -s conftest.$ac_objext'
5771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772  (eval $ac_try) 2>&5
5773  ac_status=$?
5774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775  (exit $ac_status); }; }; then
5776  ac_hi=-1 ac_mid=-1
5777  while :; do
5778    cat >conftest.$ac_ext <<_ACEOF
5779/* confdefs.h.  */
5780_ACEOF
5781cat confdefs.h >>conftest.$ac_ext
5782cat >>conftest.$ac_ext <<_ACEOF
5783/* end confdefs.h.  */
5784$ac_includes_default
5785int
5786main ()
5787{
5788static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5789test_array [0] = 0
5790
5791  ;
5792  return 0;
5793}
5794_ACEOF
5795rm -f conftest.$ac_objext
5796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797  (eval $ac_compile) 2>conftest.er1
5798  ac_status=$?
5799  grep -v '^ *+' conftest.er1 >conftest.err
5800  rm -f conftest.er1
5801  cat conftest.err >&5
5802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803  (exit $ac_status); } &&
5804	 { ac_try='test -z "$ac_c_werror_flag"
5805			 || test ! -s conftest.err'
5806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807  (eval $ac_try) 2>&5
5808  ac_status=$?
5809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810  (exit $ac_status); }; } &&
5811	 { ac_try='test -s conftest.$ac_objext'
5812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813  (eval $ac_try) 2>&5
5814  ac_status=$?
5815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816  (exit $ac_status); }; }; then
5817  ac_lo=$ac_mid; break
5818else
5819  echo "$as_me: failed program was:" >&5
5820sed 's/^/| /' conftest.$ac_ext >&5
5821
5822ac_hi=`expr '(' $ac_mid ')' - 1`
5823		       if test $ac_mid -le $ac_hi; then
5824			 ac_lo= ac_hi=
5825			 break
5826		       fi
5827		       ac_mid=`expr 2 '*' $ac_mid`
5828fi
5829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5830  done
5831else
5832  echo "$as_me: failed program was:" >&5
5833sed 's/^/| /' conftest.$ac_ext >&5
5834
5835ac_lo= ac_hi=
5836fi
5837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838fi
5839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5840# Binary search between lo and hi bounds.
5841while test "x$ac_lo" != "x$ac_hi"; do
5842  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5843  cat >conftest.$ac_ext <<_ACEOF
5844/* confdefs.h.  */
5845_ACEOF
5846cat confdefs.h >>conftest.$ac_ext
5847cat >>conftest.$ac_ext <<_ACEOF
5848/* end confdefs.h.  */
5849$ac_includes_default
5850int
5851main ()
5852{
5853static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5854test_array [0] = 0
5855
5856  ;
5857  return 0;
5858}
5859_ACEOF
5860rm -f conftest.$ac_objext
5861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862  (eval $ac_compile) 2>conftest.er1
5863  ac_status=$?
5864  grep -v '^ *+' conftest.er1 >conftest.err
5865  rm -f conftest.er1
5866  cat conftest.err >&5
5867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868  (exit $ac_status); } &&
5869	 { ac_try='test -z "$ac_c_werror_flag"
5870			 || test ! -s conftest.err'
5871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872  (eval $ac_try) 2>&5
5873  ac_status=$?
5874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875  (exit $ac_status); }; } &&
5876	 { ac_try='test -s conftest.$ac_objext'
5877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878  (eval $ac_try) 2>&5
5879  ac_status=$?
5880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881  (exit $ac_status); }; }; then
5882  ac_hi=$ac_mid
5883else
5884  echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887ac_lo=`expr '(' $ac_mid ')' + 1`
5888fi
5889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5890done
5891case $ac_lo in
5892?*) ac_cv_sizeof_int=$ac_lo;;
5893'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5894See \`config.log' for more details." >&5
5895echo "$as_me: error: cannot compute sizeof (int), 77
5896See \`config.log' for more details." >&2;}
5897   { (exit 1); exit 1; }; } ;;
5898esac
5899else
5900  if test "$cross_compiling" = yes; then
5901  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5902See \`config.log' for more details." >&5
5903echo "$as_me: error: cannot run test program while cross compiling
5904See \`config.log' for more details." >&2;}
5905   { (exit 1); exit 1; }; }
5906else
5907  cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h.  */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h.  */
5913$ac_includes_default
5914long longval () { return (long) (sizeof (int)); }
5915unsigned long ulongval () { return (long) (sizeof (int)); }
5916#include <stdio.h>
5917#include <stdlib.h>
5918int
5919main ()
5920{
5921
5922  FILE *f = fopen ("conftest.val", "w");
5923  if (! f)
5924    exit (1);
5925  if (((long) (sizeof (int))) < 0)
5926    {
5927      long i = longval ();
5928      if (i != ((long) (sizeof (int))))
5929	exit (1);
5930      fprintf (f, "%ld\n", i);
5931    }
5932  else
5933    {
5934      unsigned long i = ulongval ();
5935      if (i != ((long) (sizeof (int))))
5936	exit (1);
5937      fprintf (f, "%lu\n", i);
5938    }
5939  exit (ferror (f) || fclose (f) != 0);
5940
5941  ;
5942  return 0;
5943}
5944_ACEOF
5945rm -f conftest$ac_exeext
5946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947  (eval $ac_link) 2>&5
5948  ac_status=$?
5949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952  (eval $ac_try) 2>&5
5953  ac_status=$?
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); }; }; then
5956  ac_cv_sizeof_int=`cat conftest.val`
5957else
5958  echo "$as_me: program exited with status $ac_status" >&5
5959echo "$as_me: failed program was:" >&5
5960sed 's/^/| /' conftest.$ac_ext >&5
5961
5962( exit $ac_status )
5963{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5964See \`config.log' for more details." >&5
5965echo "$as_me: error: cannot compute sizeof (int), 77
5966See \`config.log' for more details." >&2;}
5967   { (exit 1); exit 1; }; }
5968fi
5969rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5970fi
5971fi
5972rm -f conftest.val
5973else
5974  ac_cv_sizeof_int=0
5975fi
5976fi
5977echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5978echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5979cat >>confdefs.h <<_ACEOF
5980#define SIZEOF_INT $ac_cv_sizeof_int
5981_ACEOF
5982
5983
5984echo "$as_me:$LINENO: checking for long" >&5
5985echo $ECHO_N "checking for long... $ECHO_C" >&6
5986if test "${ac_cv_type_long+set}" = set; then
5987  echo $ECHO_N "(cached) $ECHO_C" >&6
5988else
5989  cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h.  */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
5994/* end confdefs.h.  */
5995$ac_includes_default
5996int
5997main ()
5998{
5999if ((long *) 0)
6000  return 0;
6001if (sizeof (long))
6002  return 0;
6003  ;
6004  return 0;
6005}
6006_ACEOF
6007rm -f conftest.$ac_objext
6008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009  (eval $ac_compile) 2>conftest.er1
6010  ac_status=$?
6011  grep -v '^ *+' conftest.er1 >conftest.err
6012  rm -f conftest.er1
6013  cat conftest.err >&5
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); } &&
6016	 { ac_try='test -z "$ac_c_werror_flag"
6017			 || test ! -s conftest.err'
6018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019  (eval $ac_try) 2>&5
6020  ac_status=$?
6021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022  (exit $ac_status); }; } &&
6023	 { ac_try='test -s conftest.$ac_objext'
6024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025  (eval $ac_try) 2>&5
6026  ac_status=$?
6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028  (exit $ac_status); }; }; then
6029  ac_cv_type_long=yes
6030else
6031  echo "$as_me: failed program was:" >&5
6032sed 's/^/| /' conftest.$ac_ext >&5
6033
6034ac_cv_type_long=no
6035fi
6036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037fi
6038echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6039echo "${ECHO_T}$ac_cv_type_long" >&6
6040
6041echo "$as_me:$LINENO: checking size of long" >&5
6042echo $ECHO_N "checking size of long... $ECHO_C" >&6
6043if test "${ac_cv_sizeof_long+set}" = set; then
6044  echo $ECHO_N "(cached) $ECHO_C" >&6
6045else
6046  if test "$ac_cv_type_long" = yes; then
6047  # The cast to unsigned long works around a bug in the HP C Compiler
6048  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6049  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6050  # This bug is HP SR number 8606223364.
6051  if test "$cross_compiling" = yes; then
6052  # Depending upon the size, compute the lo and hi bounds.
6053cat >conftest.$ac_ext <<_ACEOF
6054/* confdefs.h.  */
6055_ACEOF
6056cat confdefs.h >>conftest.$ac_ext
6057cat >>conftest.$ac_ext <<_ACEOF
6058/* end confdefs.h.  */
6059$ac_includes_default
6060int
6061main ()
6062{
6063static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6064test_array [0] = 0
6065
6066  ;
6067  return 0;
6068}
6069_ACEOF
6070rm -f conftest.$ac_objext
6071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072  (eval $ac_compile) 2>conftest.er1
6073  ac_status=$?
6074  grep -v '^ *+' conftest.er1 >conftest.err
6075  rm -f conftest.er1
6076  cat conftest.err >&5
6077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078  (exit $ac_status); } &&
6079	 { ac_try='test -z "$ac_c_werror_flag"
6080			 || test ! -s conftest.err'
6081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082  (eval $ac_try) 2>&5
6083  ac_status=$?
6084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085  (exit $ac_status); }; } &&
6086	 { ac_try='test -s conftest.$ac_objext'
6087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088  (eval $ac_try) 2>&5
6089  ac_status=$?
6090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091  (exit $ac_status); }; }; then
6092  ac_lo=0 ac_mid=0
6093  while :; do
6094    cat >conftest.$ac_ext <<_ACEOF
6095/* confdefs.h.  */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h.  */
6100$ac_includes_default
6101int
6102main ()
6103{
6104static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6105test_array [0] = 0
6106
6107  ;
6108  return 0;
6109}
6110_ACEOF
6111rm -f conftest.$ac_objext
6112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113  (eval $ac_compile) 2>conftest.er1
6114  ac_status=$?
6115  grep -v '^ *+' conftest.er1 >conftest.err
6116  rm -f conftest.er1
6117  cat conftest.err >&5
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); } &&
6120	 { ac_try='test -z "$ac_c_werror_flag"
6121			 || test ! -s conftest.err'
6122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123  (eval $ac_try) 2>&5
6124  ac_status=$?
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); }; } &&
6127	 { ac_try='test -s conftest.$ac_objext'
6128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129  (eval $ac_try) 2>&5
6130  ac_status=$?
6131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132  (exit $ac_status); }; }; then
6133  ac_hi=$ac_mid; break
6134else
6135  echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138ac_lo=`expr $ac_mid + 1`
6139		    if test $ac_lo -le $ac_mid; then
6140		      ac_lo= ac_hi=
6141		      break
6142		    fi
6143		    ac_mid=`expr 2 '*' $ac_mid + 1`
6144fi
6145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6146  done
6147else
6148  echo "$as_me: failed program was:" >&5
6149sed 's/^/| /' conftest.$ac_ext >&5
6150
6151cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h.  */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h.  */
6157$ac_includes_default
6158int
6159main ()
6160{
6161static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6162test_array [0] = 0
6163
6164  ;
6165  return 0;
6166}
6167_ACEOF
6168rm -f conftest.$ac_objext
6169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170  (eval $ac_compile) 2>conftest.er1
6171  ac_status=$?
6172  grep -v '^ *+' conftest.er1 >conftest.err
6173  rm -f conftest.er1
6174  cat conftest.err >&5
6175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176  (exit $ac_status); } &&
6177	 { ac_try='test -z "$ac_c_werror_flag"
6178			 || test ! -s conftest.err'
6179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180  (eval $ac_try) 2>&5
6181  ac_status=$?
6182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183  (exit $ac_status); }; } &&
6184	 { ac_try='test -s conftest.$ac_objext'
6185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186  (eval $ac_try) 2>&5
6187  ac_status=$?
6188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189  (exit $ac_status); }; }; then
6190  ac_hi=-1 ac_mid=-1
6191  while :; do
6192    cat >conftest.$ac_ext <<_ACEOF
6193/* confdefs.h.  */
6194_ACEOF
6195cat confdefs.h >>conftest.$ac_ext
6196cat >>conftest.$ac_ext <<_ACEOF
6197/* end confdefs.h.  */
6198$ac_includes_default
6199int
6200main ()
6201{
6202static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6203test_array [0] = 0
6204
6205  ;
6206  return 0;
6207}
6208_ACEOF
6209rm -f conftest.$ac_objext
6210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211  (eval $ac_compile) 2>conftest.er1
6212  ac_status=$?
6213  grep -v '^ *+' conftest.er1 >conftest.err
6214  rm -f conftest.er1
6215  cat conftest.err >&5
6216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217  (exit $ac_status); } &&
6218	 { ac_try='test -z "$ac_c_werror_flag"
6219			 || test ! -s conftest.err'
6220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221  (eval $ac_try) 2>&5
6222  ac_status=$?
6223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224  (exit $ac_status); }; } &&
6225	 { ac_try='test -s conftest.$ac_objext'
6226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227  (eval $ac_try) 2>&5
6228  ac_status=$?
6229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230  (exit $ac_status); }; }; then
6231  ac_lo=$ac_mid; break
6232else
6233  echo "$as_me: failed program was:" >&5
6234sed 's/^/| /' conftest.$ac_ext >&5
6235
6236ac_hi=`expr '(' $ac_mid ')' - 1`
6237		       if test $ac_mid -le $ac_hi; then
6238			 ac_lo= ac_hi=
6239			 break
6240		       fi
6241		       ac_mid=`expr 2 '*' $ac_mid`
6242fi
6243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6244  done
6245else
6246  echo "$as_me: failed program was:" >&5
6247sed 's/^/| /' conftest.$ac_ext >&5
6248
6249ac_lo= ac_hi=
6250fi
6251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6252fi
6253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6254# Binary search between lo and hi bounds.
6255while test "x$ac_lo" != "x$ac_hi"; do
6256  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6257  cat >conftest.$ac_ext <<_ACEOF
6258/* confdefs.h.  */
6259_ACEOF
6260cat confdefs.h >>conftest.$ac_ext
6261cat >>conftest.$ac_ext <<_ACEOF
6262/* end confdefs.h.  */
6263$ac_includes_default
6264int
6265main ()
6266{
6267static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6268test_array [0] = 0
6269
6270  ;
6271  return 0;
6272}
6273_ACEOF
6274rm -f conftest.$ac_objext
6275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276  (eval $ac_compile) 2>conftest.er1
6277  ac_status=$?
6278  grep -v '^ *+' conftest.er1 >conftest.err
6279  rm -f conftest.er1
6280  cat conftest.err >&5
6281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282  (exit $ac_status); } &&
6283	 { ac_try='test -z "$ac_c_werror_flag"
6284			 || test ! -s conftest.err'
6285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286  (eval $ac_try) 2>&5
6287  ac_status=$?
6288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289  (exit $ac_status); }; } &&
6290	 { ac_try='test -s conftest.$ac_objext'
6291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292  (eval $ac_try) 2>&5
6293  ac_status=$?
6294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295  (exit $ac_status); }; }; then
6296  ac_hi=$ac_mid
6297else
6298  echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301ac_lo=`expr '(' $ac_mid ')' + 1`
6302fi
6303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6304done
6305case $ac_lo in
6306?*) ac_cv_sizeof_long=$ac_lo;;
6307'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6308See \`config.log' for more details." >&5
6309echo "$as_me: error: cannot compute sizeof (long), 77
6310See \`config.log' for more details." >&2;}
6311   { (exit 1); exit 1; }; } ;;
6312esac
6313else
6314  if test "$cross_compiling" = yes; then
6315  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6316See \`config.log' for more details." >&5
6317echo "$as_me: error: cannot run test program while cross compiling
6318See \`config.log' for more details." >&2;}
6319   { (exit 1); exit 1; }; }
6320else
6321  cat >conftest.$ac_ext <<_ACEOF
6322/* confdefs.h.  */
6323_ACEOF
6324cat confdefs.h >>conftest.$ac_ext
6325cat >>conftest.$ac_ext <<_ACEOF
6326/* end confdefs.h.  */
6327$ac_includes_default
6328long longval () { return (long) (sizeof (long)); }
6329unsigned long ulongval () { return (long) (sizeof (long)); }
6330#include <stdio.h>
6331#include <stdlib.h>
6332int
6333main ()
6334{
6335
6336  FILE *f = fopen ("conftest.val", "w");
6337  if (! f)
6338    exit (1);
6339  if (((long) (sizeof (long))) < 0)
6340    {
6341      long i = longval ();
6342      if (i != ((long) (sizeof (long))))
6343	exit (1);
6344      fprintf (f, "%ld\n", i);
6345    }
6346  else
6347    {
6348      unsigned long i = ulongval ();
6349      if (i != ((long) (sizeof (long))))
6350	exit (1);
6351      fprintf (f, "%lu\n", i);
6352    }
6353  exit (ferror (f) || fclose (f) != 0);
6354
6355  ;
6356  return 0;
6357}
6358_ACEOF
6359rm -f conftest$ac_exeext
6360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6361  (eval $ac_link) 2>&5
6362  ac_status=$?
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366  (eval $ac_try) 2>&5
6367  ac_status=$?
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); }; }; then
6370  ac_cv_sizeof_long=`cat conftest.val`
6371else
6372  echo "$as_me: program exited with status $ac_status" >&5
6373echo "$as_me: failed program was:" >&5
6374sed 's/^/| /' conftest.$ac_ext >&5
6375
6376( exit $ac_status )
6377{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6378See \`config.log' for more details." >&5
6379echo "$as_me: error: cannot compute sizeof (long), 77
6380See \`config.log' for more details." >&2;}
6381   { (exit 1); exit 1; }; }
6382fi
6383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6384fi
6385fi
6386rm -f conftest.val
6387else
6388  ac_cv_sizeof_long=0
6389fi
6390fi
6391echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6392echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6393cat >>confdefs.h <<_ACEOF
6394#define SIZEOF_LONG $ac_cv_sizeof_long
6395_ACEOF
6396
6397
6398echo "$as_me:$LINENO: checking for long long" >&5
6399echo $ECHO_N "checking for long long... $ECHO_C" >&6
6400if test "${ac_cv_type_long_long+set}" = set; then
6401  echo $ECHO_N "(cached) $ECHO_C" >&6
6402else
6403  cat >conftest.$ac_ext <<_ACEOF
6404/* confdefs.h.  */
6405_ACEOF
6406cat confdefs.h >>conftest.$ac_ext
6407cat >>conftest.$ac_ext <<_ACEOF
6408/* end confdefs.h.  */
6409$ac_includes_default
6410int
6411main ()
6412{
6413if ((long long *) 0)
6414  return 0;
6415if (sizeof (long long))
6416  return 0;
6417  ;
6418  return 0;
6419}
6420_ACEOF
6421rm -f conftest.$ac_objext
6422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6423  (eval $ac_compile) 2>conftest.er1
6424  ac_status=$?
6425  grep -v '^ *+' conftest.er1 >conftest.err
6426  rm -f conftest.er1
6427  cat conftest.err >&5
6428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429  (exit $ac_status); } &&
6430	 { ac_try='test -z "$ac_c_werror_flag"
6431			 || test ! -s conftest.err'
6432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433  (eval $ac_try) 2>&5
6434  ac_status=$?
6435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436  (exit $ac_status); }; } &&
6437	 { ac_try='test -s conftest.$ac_objext'
6438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439  (eval $ac_try) 2>&5
6440  ac_status=$?
6441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442  (exit $ac_status); }; }; then
6443  ac_cv_type_long_long=yes
6444else
6445  echo "$as_me: failed program was:" >&5
6446sed 's/^/| /' conftest.$ac_ext >&5
6447
6448ac_cv_type_long_long=no
6449fi
6450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6451fi
6452echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6453echo "${ECHO_T}$ac_cv_type_long_long" >&6
6454
6455echo "$as_me:$LINENO: checking size of long long" >&5
6456echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6457if test "${ac_cv_sizeof_long_long+set}" = set; then
6458  echo $ECHO_N "(cached) $ECHO_C" >&6
6459else
6460  if test "$ac_cv_type_long_long" = yes; then
6461  # The cast to unsigned long works around a bug in the HP C Compiler
6462  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6463  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6464  # This bug is HP SR number 8606223364.
6465  if test "$cross_compiling" = yes; then
6466  # Depending upon the size, compute the lo and hi bounds.
6467cat >conftest.$ac_ext <<_ACEOF
6468/* confdefs.h.  */
6469_ACEOF
6470cat confdefs.h >>conftest.$ac_ext
6471cat >>conftest.$ac_ext <<_ACEOF
6472/* end confdefs.h.  */
6473$ac_includes_default
6474int
6475main ()
6476{
6477static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6478test_array [0] = 0
6479
6480  ;
6481  return 0;
6482}
6483_ACEOF
6484rm -f conftest.$ac_objext
6485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486  (eval $ac_compile) 2>conftest.er1
6487  ac_status=$?
6488  grep -v '^ *+' conftest.er1 >conftest.err
6489  rm -f conftest.er1
6490  cat conftest.err >&5
6491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492  (exit $ac_status); } &&
6493	 { ac_try='test -z "$ac_c_werror_flag"
6494			 || test ! -s conftest.err'
6495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496  (eval $ac_try) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; } &&
6500	 { ac_try='test -s conftest.$ac_objext'
6501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502  (eval $ac_try) 2>&5
6503  ac_status=$?
6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505  (exit $ac_status); }; }; then
6506  ac_lo=0 ac_mid=0
6507  while :; do
6508    cat >conftest.$ac_ext <<_ACEOF
6509/* confdefs.h.  */
6510_ACEOF
6511cat confdefs.h >>conftest.$ac_ext
6512cat >>conftest.$ac_ext <<_ACEOF
6513/* end confdefs.h.  */
6514$ac_includes_default
6515int
6516main ()
6517{
6518static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6519test_array [0] = 0
6520
6521  ;
6522  return 0;
6523}
6524_ACEOF
6525rm -f conftest.$ac_objext
6526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527  (eval $ac_compile) 2>conftest.er1
6528  ac_status=$?
6529  grep -v '^ *+' conftest.er1 >conftest.err
6530  rm -f conftest.er1
6531  cat conftest.err >&5
6532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533  (exit $ac_status); } &&
6534	 { ac_try='test -z "$ac_c_werror_flag"
6535			 || test ! -s conftest.err'
6536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537  (eval $ac_try) 2>&5
6538  ac_status=$?
6539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540  (exit $ac_status); }; } &&
6541	 { ac_try='test -s conftest.$ac_objext'
6542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543  (eval $ac_try) 2>&5
6544  ac_status=$?
6545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546  (exit $ac_status); }; }; then
6547  ac_hi=$ac_mid; break
6548else
6549  echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552ac_lo=`expr $ac_mid + 1`
6553		    if test $ac_lo -le $ac_mid; then
6554		      ac_lo= ac_hi=
6555		      break
6556		    fi
6557		    ac_mid=`expr 2 '*' $ac_mid + 1`
6558fi
6559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6560  done
6561else
6562  echo "$as_me: failed program was:" >&5
6563sed 's/^/| /' conftest.$ac_ext >&5
6564
6565cat >conftest.$ac_ext <<_ACEOF
6566/* confdefs.h.  */
6567_ACEOF
6568cat confdefs.h >>conftest.$ac_ext
6569cat >>conftest.$ac_ext <<_ACEOF
6570/* end confdefs.h.  */
6571$ac_includes_default
6572int
6573main ()
6574{
6575static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6576test_array [0] = 0
6577
6578  ;
6579  return 0;
6580}
6581_ACEOF
6582rm -f conftest.$ac_objext
6583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584  (eval $ac_compile) 2>conftest.er1
6585  ac_status=$?
6586  grep -v '^ *+' conftest.er1 >conftest.err
6587  rm -f conftest.er1
6588  cat conftest.err >&5
6589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590  (exit $ac_status); } &&
6591	 { ac_try='test -z "$ac_c_werror_flag"
6592			 || test ! -s conftest.err'
6593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594  (eval $ac_try) 2>&5
6595  ac_status=$?
6596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597  (exit $ac_status); }; } &&
6598	 { ac_try='test -s conftest.$ac_objext'
6599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600  (eval $ac_try) 2>&5
6601  ac_status=$?
6602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603  (exit $ac_status); }; }; then
6604  ac_hi=-1 ac_mid=-1
6605  while :; do
6606    cat >conftest.$ac_ext <<_ACEOF
6607/* confdefs.h.  */
6608_ACEOF
6609cat confdefs.h >>conftest.$ac_ext
6610cat >>conftest.$ac_ext <<_ACEOF
6611/* end confdefs.h.  */
6612$ac_includes_default
6613int
6614main ()
6615{
6616static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6617test_array [0] = 0
6618
6619  ;
6620  return 0;
6621}
6622_ACEOF
6623rm -f conftest.$ac_objext
6624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625  (eval $ac_compile) 2>conftest.er1
6626  ac_status=$?
6627  grep -v '^ *+' conftest.er1 >conftest.err
6628  rm -f conftest.er1
6629  cat conftest.err >&5
6630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631  (exit $ac_status); } &&
6632	 { ac_try='test -z "$ac_c_werror_flag"
6633			 || test ! -s conftest.err'
6634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635  (eval $ac_try) 2>&5
6636  ac_status=$?
6637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638  (exit $ac_status); }; } &&
6639	 { ac_try='test -s conftest.$ac_objext'
6640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641  (eval $ac_try) 2>&5
6642  ac_status=$?
6643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644  (exit $ac_status); }; }; then
6645  ac_lo=$ac_mid; break
6646else
6647  echo "$as_me: failed program was:" >&5
6648sed 's/^/| /' conftest.$ac_ext >&5
6649
6650ac_hi=`expr '(' $ac_mid ')' - 1`
6651		       if test $ac_mid -le $ac_hi; then
6652			 ac_lo= ac_hi=
6653			 break
6654		       fi
6655		       ac_mid=`expr 2 '*' $ac_mid`
6656fi
6657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6658  done
6659else
6660  echo "$as_me: failed program was:" >&5
6661sed 's/^/| /' conftest.$ac_ext >&5
6662
6663ac_lo= ac_hi=
6664fi
6665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6666fi
6667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6668# Binary search between lo and hi bounds.
6669while test "x$ac_lo" != "x$ac_hi"; do
6670  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6671  cat >conftest.$ac_ext <<_ACEOF
6672/* confdefs.h.  */
6673_ACEOF
6674cat confdefs.h >>conftest.$ac_ext
6675cat >>conftest.$ac_ext <<_ACEOF
6676/* end confdefs.h.  */
6677$ac_includes_default
6678int
6679main ()
6680{
6681static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6682test_array [0] = 0
6683
6684  ;
6685  return 0;
6686}
6687_ACEOF
6688rm -f conftest.$ac_objext
6689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690  (eval $ac_compile) 2>conftest.er1
6691  ac_status=$?
6692  grep -v '^ *+' conftest.er1 >conftest.err
6693  rm -f conftest.er1
6694  cat conftest.err >&5
6695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696  (exit $ac_status); } &&
6697	 { ac_try='test -z "$ac_c_werror_flag"
6698			 || test ! -s conftest.err'
6699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700  (eval $ac_try) 2>&5
6701  ac_status=$?
6702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703  (exit $ac_status); }; } &&
6704	 { ac_try='test -s conftest.$ac_objext'
6705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706  (eval $ac_try) 2>&5
6707  ac_status=$?
6708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709  (exit $ac_status); }; }; then
6710  ac_hi=$ac_mid
6711else
6712  echo "$as_me: failed program was:" >&5
6713sed 's/^/| /' conftest.$ac_ext >&5
6714
6715ac_lo=`expr '(' $ac_mid ')' + 1`
6716fi
6717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6718done
6719case $ac_lo in
6720?*) ac_cv_sizeof_long_long=$ac_lo;;
6721'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6722See \`config.log' for more details." >&5
6723echo "$as_me: error: cannot compute sizeof (long long), 77
6724See \`config.log' for more details." >&2;}
6725   { (exit 1); exit 1; }; } ;;
6726esac
6727else
6728  if test "$cross_compiling" = yes; then
6729  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6730See \`config.log' for more details." >&5
6731echo "$as_me: error: cannot run test program while cross compiling
6732See \`config.log' for more details." >&2;}
6733   { (exit 1); exit 1; }; }
6734else
6735  cat >conftest.$ac_ext <<_ACEOF
6736/* confdefs.h.  */
6737_ACEOF
6738cat confdefs.h >>conftest.$ac_ext
6739cat >>conftest.$ac_ext <<_ACEOF
6740/* end confdefs.h.  */
6741$ac_includes_default
6742long longval () { return (long) (sizeof (long long)); }
6743unsigned long ulongval () { return (long) (sizeof (long long)); }
6744#include <stdio.h>
6745#include <stdlib.h>
6746int
6747main ()
6748{
6749
6750  FILE *f = fopen ("conftest.val", "w");
6751  if (! f)
6752    exit (1);
6753  if (((long) (sizeof (long long))) < 0)
6754    {
6755      long i = longval ();
6756      if (i != ((long) (sizeof (long long))))
6757	exit (1);
6758      fprintf (f, "%ld\n", i);
6759    }
6760  else
6761    {
6762      unsigned long i = ulongval ();
6763      if (i != ((long) (sizeof (long long))))
6764	exit (1);
6765      fprintf (f, "%lu\n", i);
6766    }
6767  exit (ferror (f) || fclose (f) != 0);
6768
6769  ;
6770  return 0;
6771}
6772_ACEOF
6773rm -f conftest$ac_exeext
6774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775  (eval $ac_link) 2>&5
6776  ac_status=$?
6777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780  (eval $ac_try) 2>&5
6781  ac_status=$?
6782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783  (exit $ac_status); }; }; then
6784  ac_cv_sizeof_long_long=`cat conftest.val`
6785else
6786  echo "$as_me: program exited with status $ac_status" >&5
6787echo "$as_me: failed program was:" >&5
6788sed 's/^/| /' conftest.$ac_ext >&5
6789
6790( exit $ac_status )
6791{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6792See \`config.log' for more details." >&5
6793echo "$as_me: error: cannot compute sizeof (long long), 77
6794See \`config.log' for more details." >&2;}
6795   { (exit 1); exit 1; }; }
6796fi
6797rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6798fi
6799fi
6800rm -f conftest.val
6801else
6802  ac_cv_sizeof_long_long=0
6803fi
6804fi
6805echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6806echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6807cat >>confdefs.h <<_ACEOF
6808#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6809_ACEOF
6810
6811
6812
6813
6814
6815	echo "$as_me:$LINENO: checking for addrinfo" >&5
6816echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6817	if test "${ac_cv_addrinfo+set}" = set; then
6818  echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820  cat >conftest.$ac_ext <<_ACEOF
6821/* confdefs.h.  */
6822_ACEOF
6823cat confdefs.h >>conftest.$ac_ext
6824cat >>conftest.$ac_ext <<_ACEOF
6825/* end confdefs.h.  */
6826
6827#		include <netdb.h>
6828int
6829main ()
6830{
6831struct addrinfo a
6832  ;
6833  return 0;
6834}
6835_ACEOF
6836rm -f conftest.$ac_objext
6837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838  (eval $ac_compile) 2>conftest.er1
6839  ac_status=$?
6840  grep -v '^ *+' conftest.er1 >conftest.err
6841  rm -f conftest.er1
6842  cat conftest.err >&5
6843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844  (exit $ac_status); } &&
6845	 { ac_try='test -z "$ac_c_werror_flag"
6846			 || test ! -s conftest.err'
6847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848  (eval $ac_try) 2>&5
6849  ac_status=$?
6850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851  (exit $ac_status); }; } &&
6852	 { ac_try='test -s conftest.$ac_objext'
6853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854  (eval $ac_try) 2>&5
6855  ac_status=$?
6856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857  (exit $ac_status); }; }; then
6858  ac_cv_addrinfo=yes
6859else
6860  echo "$as_me: failed program was:" >&5
6861sed 's/^/| /' conftest.$ac_ext >&5
6862
6863ac_cv_addrinfo=no
6864fi
6865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6866fi
6867
6868	echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6869echo "${ECHO_T}$ac_cv_addrinfo" >&6
6870	if test $ac_cv_addrinfo = yes; then
6871		cat >>confdefs.h <<\_ACEOF
6872#define HAVE_ADDRINFO 1
6873_ACEOF
6874
6875	else
6876		cat >>confdefs.h <<\_ACEOF
6877#define NEED_ADDRINFO_H 1
6878_ACEOF
6879
6880	fi
6881
6882if test "$ac_cv_addrinfo" = no; then
6883	missing_includes=yes
6884fi
6885
6886
6887	echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6888echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6889	if test "${ac_cv_maxserv+set}" = set; then
6890  echo $ECHO_N "(cached) $ECHO_C" >&6
6891else
6892  cat >conftest.$ac_ext <<_ACEOF
6893/* confdefs.h.  */
6894_ACEOF
6895cat confdefs.h >>conftest.$ac_ext
6896cat >>conftest.$ac_ext <<_ACEOF
6897/* end confdefs.h.  */
6898#include <netdb.h>
6899#ifdef NI_MAXSERV
6900yes
6901#endif
6902_ACEOF
6903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6904  $EGREP "yes" >/dev/null 2>&1; then
6905  ac_cv_maxserv=yes
6906else
6907  ac_cv_maxserv=no
6908fi
6909rm -f conftest*
6910
6911fi
6912
6913	echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6914echo "${ECHO_T}$ac_cv_maxserv" >&6
6915	if test $ac_cv_maxserv != yes; then
6916		cat >>confdefs.h <<\_ACEOF
6917#define NEED_ADDRINFO_H 1
6918_ACEOF
6919
6920	fi
6921
6922if test "$ac_cv_maxserv" = no; then
6923	missing_includes=yes
6924fi
6925
6926
6927	echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6928echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6929	if test "${ac_cv_namereqd+set}" = set; then
6930  echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932  cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h.  */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h.  */
6938#include <netdb.h>
6939#ifdef NI_NOFQDN
6940yes
6941#endif
6942_ACEOF
6943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6944  $EGREP "yes" >/dev/null 2>&1; then
6945  ac_cv_namereqd=yes
6946else
6947  ac_cv_namereqd=no
6948fi
6949rm -f conftest*
6950
6951fi
6952
6953	echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6954echo "${ECHO_T}$ac_cv_namereqd" >&6
6955	if test $ac_cv_namereqd != yes; then
6956		cat >>confdefs.h <<\_ACEOF
6957#define NEED_ADDRINFO_H 1
6958_ACEOF
6959
6960	fi
6961
6962if test "$ac_cv_namereqd" = no; then
6963	missing_includes=yes
6964fi
6965
6966
6967	echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6968echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6969	if test "${ac_cv_sa_storage+set}" = set; then
6970  echo $ECHO_N "(cached) $ECHO_C" >&6
6971else
6972  cat >conftest.$ac_ext <<_ACEOF
6973/* confdefs.h.  */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h.  */
6978
6979#		include <sys/types.h>
6980#		include <sys/socket.h>
6981int
6982main ()
6983{
6984struct sockaddr_storage s
6985  ;
6986  return 0;
6987}
6988_ACEOF
6989rm -f conftest.$ac_objext
6990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991  (eval $ac_compile) 2>conftest.er1
6992  ac_status=$?
6993  grep -v '^ *+' conftest.er1 >conftest.err
6994  rm -f conftest.er1
6995  cat conftest.err >&5
6996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997  (exit $ac_status); } &&
6998	 { ac_try='test -z "$ac_c_werror_flag"
6999			 || test ! -s conftest.err'
7000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001  (eval $ac_try) 2>&5
7002  ac_status=$?
7003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004  (exit $ac_status); }; } &&
7005	 { ac_try='test -s conftest.$ac_objext'
7006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007  (eval $ac_try) 2>&5
7008  ac_status=$?
7009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010  (exit $ac_status); }; }; then
7011  ac_cv_sa_storage=yes
7012else
7013  echo "$as_me: failed program was:" >&5
7014sed 's/^/| /' conftest.$ac_ext >&5
7015
7016ac_cv_sa_storage=no
7017fi
7018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7019fi
7020
7021	echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7022echo "${ECHO_T}$ac_cv_sa_storage" >&6
7023	if test $ac_cv_sa_storage = yes; then
7024		cat >>confdefs.h <<\_ACEOF
7025#define HAVE_SOCKADDR_STORAGE 1
7026_ACEOF
7027
7028	fi
7029
7030if test "$ac_cv_sa_storage" = no; then
7031	missing_includes=yes
7032fi
7033
7034
7035	ac_cv_addrsz=yes
7036	echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7037echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
7038	if test "${ac_cv_inaddrsz+set}" = set; then
7039  echo $ECHO_N "(cached) $ECHO_C" >&6
7040else
7041  cat >conftest.$ac_ext <<_ACEOF
7042/* confdefs.h.  */
7043_ACEOF
7044cat confdefs.h >>conftest.$ac_ext
7045cat >>conftest.$ac_ext <<_ACEOF
7046/* end confdefs.h.  */
7047
7048#		include <arpa/nameser.h>
7049int
7050main ()
7051{
7052int a = INADDRSZ
7053  ;
7054  return 0;
7055}
7056_ACEOF
7057rm -f conftest.$ac_objext
7058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059  (eval $ac_compile) 2>conftest.er1
7060  ac_status=$?
7061  grep -v '^ *+' conftest.er1 >conftest.err
7062  rm -f conftest.er1
7063  cat conftest.err >&5
7064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065  (exit $ac_status); } &&
7066	 { ac_try='test -z "$ac_c_werror_flag"
7067			 || test ! -s conftest.err'
7068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069  (eval $ac_try) 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; } &&
7073	 { ac_try='test -s conftest.$ac_objext'
7074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075  (eval $ac_try) 2>&5
7076  ac_status=$?
7077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078  (exit $ac_status); }; }; then
7079  ac_cv_inaddrsz=yes
7080else
7081  echo "$as_me: failed program was:" >&5
7082sed 's/^/| /' conftest.$ac_ext >&5
7083
7084ac_cv_inaddrsz=no
7085fi
7086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7087fi
7088
7089	echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7090echo "${ECHO_T}$ac_cv_inaddrsz" >&6
7091	if test $ac_cv_inaddrsz = yes; then
7092		cat >>confdefs.h <<\_ACEOF
7093#define HAVE_INADDRSZ 1
7094_ACEOF
7095
7096	else
7097		ac_cv_addrsz=no
7098	fi
7099	echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7100echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
7101	if test "${ac_cv_in6addrsz+set}" = set; then
7102  echo $ECHO_N "(cached) $ECHO_C" >&6
7103else
7104  cat >conftest.$ac_ext <<_ACEOF
7105/* confdefs.h.  */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h.  */
7110
7111#		include <arpa/nameser.h>
7112int
7113main ()
7114{
7115int a = IN6ADDRSZ
7116  ;
7117  return 0;
7118}
7119_ACEOF
7120rm -f conftest.$ac_objext
7121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7122  (eval $ac_compile) 2>conftest.er1
7123  ac_status=$?
7124  grep -v '^ *+' conftest.er1 >conftest.err
7125  rm -f conftest.er1
7126  cat conftest.err >&5
7127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128  (exit $ac_status); } &&
7129	 { ac_try='test -z "$ac_c_werror_flag"
7130			 || test ! -s conftest.err'
7131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132  (eval $ac_try) 2>&5
7133  ac_status=$?
7134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135  (exit $ac_status); }; } &&
7136	 { ac_try='test -s conftest.$ac_objext'
7137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138  (eval $ac_try) 2>&5
7139  ac_status=$?
7140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141  (exit $ac_status); }; }; then
7142  ac_cv_in6addrsz=yes
7143else
7144  echo "$as_me: failed program was:" >&5
7145sed 's/^/| /' conftest.$ac_ext >&5
7146
7147ac_cv_in6addrsz=no
7148fi
7149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150fi
7151
7152	echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7153echo "${ECHO_T}$ac_cv_in6addrsz" >&6
7154	if test $ac_cv_in6addrsz = yes; then
7155		cat >>confdefs.h <<\_ACEOF
7156#define HAVE_IN6ADDRSZ 1
7157_ACEOF
7158
7159	else
7160		ac_cv_addrsz=no
7161	fi
7162
7163if test "$ac_cv_addrsz" = no; then
7164	missing_includes=yes
7165fi
7166
7167
7168	echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7169echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
7170	if test "${ac_cv_res_inet6+set}" = set; then
7171  echo $ECHO_N "(cached) $ECHO_C" >&6
7172else
7173  cat >conftest.$ac_ext <<_ACEOF
7174/* confdefs.h.  */
7175_ACEOF
7176cat confdefs.h >>conftest.$ac_ext
7177cat >>conftest.$ac_ext <<_ACEOF
7178/* end confdefs.h.  */
7179
7180#		include <sys/types.h>
7181#		include <netinet/in.h>
7182#		include <resolv.h>
7183int
7184main ()
7185{
7186int a = RES_USE_INET6
7187  ;
7188  return 0;
7189}
7190_ACEOF
7191rm -f conftest.$ac_objext
7192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193  (eval $ac_compile) 2>conftest.er1
7194  ac_status=$?
7195  grep -v '^ *+' conftest.er1 >conftest.err
7196  rm -f conftest.er1
7197  cat conftest.err >&5
7198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199  (exit $ac_status); } &&
7200	 { ac_try='test -z "$ac_c_werror_flag"
7201			 || test ! -s conftest.err'
7202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203  (eval $ac_try) 2>&5
7204  ac_status=$?
7205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206  (exit $ac_status); }; } &&
7207	 { ac_try='test -s conftest.$ac_objext'
7208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209  (eval $ac_try) 2>&5
7210  ac_status=$?
7211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212  (exit $ac_status); }; }; then
7213  ac_cv_res_inet6=yes
7214else
7215  echo "$as_me: failed program was:" >&5
7216sed 's/^/| /' conftest.$ac_ext >&5
7217
7218ac_cv_res_inet6=no
7219fi
7220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7221fi
7222
7223	echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7224echo "${ECHO_T}$ac_cv_res_inet6" >&6
7225	if test $ac_cv_res_inet6 = yes; then
7226		cat >>confdefs.h <<\_ACEOF
7227#define HAVE_RES_USE_INET6 1
7228_ACEOF
7229
7230	fi
7231
7232if test "$ac_cv_res_inet6" = no; then
7233	missing_includes=yes
7234fi
7235
7236
7237	echo "$as_me:$LINENO: checking for res_state_ext" >&5
7238echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
7239	if test "${ac_cv_res_state_ext+set}" = set; then
7240  echo $ECHO_N "(cached) $ECHO_C" >&6
7241else
7242  cat >conftest.$ac_ext <<_ACEOF
7243/* confdefs.h.  */
7244_ACEOF
7245cat confdefs.h >>conftest.$ac_ext
7246cat >>conftest.$ac_ext <<_ACEOF
7247/* end confdefs.h.  */
7248
7249#		include <sys/types.h>
7250#		include <netinet/in.h>
7251#		include <netinet6/in6.h>
7252#		include <resolv.h>
7253int
7254main ()
7255{
7256struct __res_state_ext e
7257  ;
7258  return 0;
7259}
7260_ACEOF
7261rm -f conftest.$ac_objext
7262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7263  (eval $ac_compile) 2>conftest.er1
7264  ac_status=$?
7265  grep -v '^ *+' conftest.er1 >conftest.err
7266  rm -f conftest.er1
7267  cat conftest.err >&5
7268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269  (exit $ac_status); } &&
7270	 { ac_try='test -z "$ac_c_werror_flag"
7271			 || test ! -s conftest.err'
7272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273  (eval $ac_try) 2>&5
7274  ac_status=$?
7275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276  (exit $ac_status); }; } &&
7277	 { ac_try='test -s conftest.$ac_objext'
7278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279  (eval $ac_try) 2>&5
7280  ac_status=$?
7281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282  (exit $ac_status); }; }; then
7283  ac_cv_res_state_ext=yes
7284else
7285  echo "$as_me: failed program was:" >&5
7286sed 's/^/| /' conftest.$ac_ext >&5
7287
7288ac_cv_res_state_ext=no
7289fi
7290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7291fi
7292
7293	echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7294echo "${ECHO_T}$ac_cv_res_state_ext" >&6
7295	if test $ac_cv_res_state_ext = yes; then
7296		cat >>confdefs.h <<\_ACEOF
7297#define HAVE_RES_STATE_EXT 1
7298_ACEOF
7299
7300	fi
7301
7302if test "$ac_cv_res_state_ext" = no; then
7303	missing_includes=yes
7304fi
7305
7306
7307	echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7308echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
7309	if test "${ac_cv_res_state+set}" = set; then
7310  echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312  cat >conftest.$ac_ext <<_ACEOF
7313/* confdefs.h.  */
7314_ACEOF
7315cat confdefs.h >>conftest.$ac_ext
7316cat >>conftest.$ac_ext <<_ACEOF
7317/* end confdefs.h.  */
7318
7319#		include <sys/types.h>
7320#		include <netinet/in.h>
7321#		include <netinet6/in6.h>
7322#		include <resolv.h>
7323int
7324main ()
7325{
7326struct __res_state e; e.nsort = 0
7327  ;
7328  return 0;
7329}
7330_ACEOF
7331rm -f conftest.$ac_objext
7332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7333  (eval $ac_compile) 2>conftest.er1
7334  ac_status=$?
7335  grep -v '^ *+' conftest.er1 >conftest.err
7336  rm -f conftest.er1
7337  cat conftest.err >&5
7338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339  (exit $ac_status); } &&
7340	 { ac_try='test -z "$ac_c_werror_flag"
7341			 || test ! -s conftest.err'
7342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343  (eval $ac_try) 2>&5
7344  ac_status=$?
7345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346  (exit $ac_status); }; } &&
7347	 { ac_try='test -s conftest.$ac_objext'
7348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349  (eval $ac_try) 2>&5
7350  ac_status=$?
7351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352  (exit $ac_status); }; }; then
7353  ac_cv_res_state=yes
7354else
7355  echo "$as_me: failed program was:" >&5
7356sed 's/^/| /' conftest.$ac_ext >&5
7357
7358ac_cv_res_state=no
7359fi
7360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7361fi
7362
7363	echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7364echo "${ECHO_T}$ac_cv_res_state" >&6
7365	if test $ac_cv_res_state = yes; then
7366		cat >>confdefs.h <<\_ACEOF
7367#define HAVE_NEW_RES_STATE 1
7368_ACEOF
7369
7370	fi
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7381do
7382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7383echo "$as_me:$LINENO: checking for $ac_func" >&5
7384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7385if eval "test \"\${$as_ac_var+set}\" = set"; then
7386  echo $ECHO_N "(cached) $ECHO_C" >&6
7387else
7388  cat >conftest.$ac_ext <<_ACEOF
7389/* confdefs.h.  */
7390_ACEOF
7391cat confdefs.h >>conftest.$ac_ext
7392cat >>conftest.$ac_ext <<_ACEOF
7393/* end confdefs.h.  */
7394/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7395   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7396#define $ac_func innocuous_$ac_func
7397
7398/* System header to define __stub macros and hopefully few prototypes,
7399    which can conflict with char $ac_func (); below.
7400    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7401    <limits.h> exists even on freestanding compilers.  */
7402
7403#ifdef __STDC__
7404# include <limits.h>
7405#else
7406# include <assert.h>
7407#endif
7408
7409#undef $ac_func
7410
7411/* Override any gcc2 internal prototype to avoid an error.  */
7412#ifdef __cplusplus
7413extern "C"
7414{
7415#endif
7416/* We use char because int might match the return type of a gcc2
7417   builtin and then its argument prototype would still apply.  */
7418char $ac_func ();
7419/* The GNU C library defines this for functions which it implements
7420    to always fail with ENOSYS.  Some functions are actually named
7421    something starting with __ and the normal name is an alias.  */
7422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7423choke me
7424#else
7425char (*f) () = $ac_func;
7426#endif
7427#ifdef __cplusplus
7428}
7429#endif
7430
7431int
7432main ()
7433{
7434return f != $ac_func;
7435  ;
7436  return 0;
7437}
7438_ACEOF
7439rm -f conftest.$ac_objext conftest$ac_exeext
7440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7441  (eval $ac_link) 2>conftest.er1
7442  ac_status=$?
7443  grep -v '^ *+' conftest.er1 >conftest.err
7444  rm -f conftest.er1
7445  cat conftest.err >&5
7446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447  (exit $ac_status); } &&
7448	 { ac_try='test -z "$ac_c_werror_flag"
7449			 || test ! -s conftest.err'
7450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451  (eval $ac_try) 2>&5
7452  ac_status=$?
7453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454  (exit $ac_status); }; } &&
7455	 { ac_try='test -s conftest$ac_exeext'
7456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457  (eval $ac_try) 2>&5
7458  ac_status=$?
7459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460  (exit $ac_status); }; }; then
7461  eval "$as_ac_var=yes"
7462else
7463  echo "$as_me: failed program was:" >&5
7464sed 's/^/| /' conftest.$ac_ext >&5
7465
7466eval "$as_ac_var=no"
7467fi
7468rm -f conftest.err conftest.$ac_objext \
7469      conftest$ac_exeext conftest.$ac_ext
7470fi
7471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7472echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7473if test `eval echo '${'$as_ac_var'}'` = yes; then
7474  cat >>confdefs.h <<_ACEOF
7475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7476_ACEOF
7477
7478else
7479  case $LIBOBJS in
7480    "$ac_func.$ac_objext"   | \
7481  *" $ac_func.$ac_objext"   | \
7482    "$ac_func.$ac_objext "* | \
7483  *" $ac_func.$ac_objext "* ) ;;
7484  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7485esac
7486
7487fi
7488done
7489
7490
7491
7492for ac_func in strftime
7493do
7494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7495echo "$as_me:$LINENO: checking for $ac_func" >&5
7496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7497if eval "test \"\${$as_ac_var+set}\" = set"; then
7498  echo $ECHO_N "(cached) $ECHO_C" >&6
7499else
7500  cat >conftest.$ac_ext <<_ACEOF
7501/* confdefs.h.  */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h.  */
7506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7507   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7508#define $ac_func innocuous_$ac_func
7509
7510/* System header to define __stub macros and hopefully few prototypes,
7511    which can conflict with char $ac_func (); below.
7512    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513    <limits.h> exists even on freestanding compilers.  */
7514
7515#ifdef __STDC__
7516# include <limits.h>
7517#else
7518# include <assert.h>
7519#endif
7520
7521#undef $ac_func
7522
7523/* Override any gcc2 internal prototype to avoid an error.  */
7524#ifdef __cplusplus
7525extern "C"
7526{
7527#endif
7528/* We use char because int might match the return type of a gcc2
7529   builtin and then its argument prototype would still apply.  */
7530char $ac_func ();
7531/* The GNU C library defines this for functions which it implements
7532    to always fail with ENOSYS.  Some functions are actually named
7533    something starting with __ and the normal name is an alias.  */
7534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7535choke me
7536#else
7537char (*f) () = $ac_func;
7538#endif
7539#ifdef __cplusplus
7540}
7541#endif
7542
7543int
7544main ()
7545{
7546return f != $ac_func;
7547  ;
7548  return 0;
7549}
7550_ACEOF
7551rm -f conftest.$ac_objext conftest$ac_exeext
7552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553  (eval $ac_link) 2>conftest.er1
7554  ac_status=$?
7555  grep -v '^ *+' conftest.er1 >conftest.err
7556  rm -f conftest.er1
7557  cat conftest.err >&5
7558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559  (exit $ac_status); } &&
7560	 { ac_try='test -z "$ac_c_werror_flag"
7561			 || test ! -s conftest.err'
7562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563  (eval $ac_try) 2>&5
7564  ac_status=$?
7565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566  (exit $ac_status); }; } &&
7567	 { ac_try='test -s conftest$ac_exeext'
7568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569  (eval $ac_try) 2>&5
7570  ac_status=$?
7571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572  (exit $ac_status); }; }; then
7573  eval "$as_ac_var=yes"
7574else
7575  echo "$as_me: failed program was:" >&5
7576sed 's/^/| /' conftest.$ac_ext >&5
7577
7578eval "$as_ac_var=no"
7579fi
7580rm -f conftest.err conftest.$ac_objext \
7581      conftest$ac_exeext conftest.$ac_ext
7582fi
7583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7585if test `eval echo '${'$as_ac_var'}'` = yes; then
7586  cat >>confdefs.h <<_ACEOF
7587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7588_ACEOF
7589
7590fi
7591done
7592
7593
7594
7595for ac_func in setlinebuf alarm
7596do
7597as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7598echo "$as_me:$LINENO: checking for $ac_func" >&5
7599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7600if eval "test \"\${$as_ac_var+set}\" = set"; then
7601  echo $ECHO_N "(cached) $ECHO_C" >&6
7602else
7603  cat >conftest.$ac_ext <<_ACEOF
7604/* confdefs.h.  */
7605_ACEOF
7606cat confdefs.h >>conftest.$ac_ext
7607cat >>conftest.$ac_ext <<_ACEOF
7608/* end confdefs.h.  */
7609/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7610   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7611#define $ac_func innocuous_$ac_func
7612
7613/* System header to define __stub macros and hopefully few prototypes,
7614    which can conflict with char $ac_func (); below.
7615    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7616    <limits.h> exists even on freestanding compilers.  */
7617
7618#ifdef __STDC__
7619# include <limits.h>
7620#else
7621# include <assert.h>
7622#endif
7623
7624#undef $ac_func
7625
7626/* Override any gcc2 internal prototype to avoid an error.  */
7627#ifdef __cplusplus
7628extern "C"
7629{
7630#endif
7631/* We use char because int might match the return type of a gcc2
7632   builtin and then its argument prototype would still apply.  */
7633char $ac_func ();
7634/* The GNU C library defines this for functions which it implements
7635    to always fail with ENOSYS.  Some functions are actually named
7636    something starting with __ and the normal name is an alias.  */
7637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7638choke me
7639#else
7640char (*f) () = $ac_func;
7641#endif
7642#ifdef __cplusplus
7643}
7644#endif
7645
7646int
7647main ()
7648{
7649return f != $ac_func;
7650  ;
7651  return 0;
7652}
7653_ACEOF
7654rm -f conftest.$ac_objext conftest$ac_exeext
7655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656  (eval $ac_link) 2>conftest.er1
7657  ac_status=$?
7658  grep -v '^ *+' conftest.er1 >conftest.err
7659  rm -f conftest.er1
7660  cat conftest.err >&5
7661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662  (exit $ac_status); } &&
7663	 { ac_try='test -z "$ac_c_werror_flag"
7664			 || test ! -s conftest.err'
7665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666  (eval $ac_try) 2>&5
7667  ac_status=$?
7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669  (exit $ac_status); }; } &&
7670	 { ac_try='test -s conftest$ac_exeext'
7671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672  (eval $ac_try) 2>&5
7673  ac_status=$?
7674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675  (exit $ac_status); }; }; then
7676  eval "$as_ac_var=yes"
7677else
7678  echo "$as_me: failed program was:" >&5
7679sed 's/^/| /' conftest.$ac_ext >&5
7680
7681eval "$as_ac_var=no"
7682fi
7683rm -f conftest.err conftest.$ac_objext \
7684      conftest$ac_exeext conftest.$ac_ext
7685fi
7686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7687echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7688if test `eval echo '${'$as_ac_var'}'` = yes; then
7689  cat >>confdefs.h <<_ACEOF
7690#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7691_ACEOF
7692
7693fi
7694done
7695
7696
7697needsnprintf=no
7698
7699
7700for ac_func in vsnprintf snprintf
7701do
7702as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7703echo "$as_me:$LINENO: checking for $ac_func" >&5
7704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7705if eval "test \"\${$as_ac_var+set}\" = set"; then
7706  echo $ECHO_N "(cached) $ECHO_C" >&6
7707else
7708  cat >conftest.$ac_ext <<_ACEOF
7709/* confdefs.h.  */
7710_ACEOF
7711cat confdefs.h >>conftest.$ac_ext
7712cat >>conftest.$ac_ext <<_ACEOF
7713/* end confdefs.h.  */
7714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7715   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7716#define $ac_func innocuous_$ac_func
7717
7718/* System header to define __stub macros and hopefully few prototypes,
7719    which can conflict with char $ac_func (); below.
7720    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7721    <limits.h> exists even on freestanding compilers.  */
7722
7723#ifdef __STDC__
7724# include <limits.h>
7725#else
7726# include <assert.h>
7727#endif
7728
7729#undef $ac_func
7730
7731/* Override any gcc2 internal prototype to avoid an error.  */
7732#ifdef __cplusplus
7733extern "C"
7734{
7735#endif
7736/* We use char because int might match the return type of a gcc2
7737   builtin and then its argument prototype would still apply.  */
7738char $ac_func ();
7739/* The GNU C library defines this for functions which it implements
7740    to always fail with ENOSYS.  Some functions are actually named
7741    something starting with __ and the normal name is an alias.  */
7742#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7743choke me
7744#else
7745char (*f) () = $ac_func;
7746#endif
7747#ifdef __cplusplus
7748}
7749#endif
7750
7751int
7752main ()
7753{
7754return f != $ac_func;
7755  ;
7756  return 0;
7757}
7758_ACEOF
7759rm -f conftest.$ac_objext conftest$ac_exeext
7760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761  (eval $ac_link) 2>conftest.er1
7762  ac_status=$?
7763  grep -v '^ *+' conftest.er1 >conftest.err
7764  rm -f conftest.er1
7765  cat conftest.err >&5
7766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767  (exit $ac_status); } &&
7768	 { ac_try='test -z "$ac_c_werror_flag"
7769			 || test ! -s conftest.err'
7770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771  (eval $ac_try) 2>&5
7772  ac_status=$?
7773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774  (exit $ac_status); }; } &&
7775	 { ac_try='test -s conftest$ac_exeext'
7776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777  (eval $ac_try) 2>&5
7778  ac_status=$?
7779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780  (exit $ac_status); }; }; then
7781  eval "$as_ac_var=yes"
7782else
7783  echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
7786eval "$as_ac_var=no"
7787fi
7788rm -f conftest.err conftest.$ac_objext \
7789      conftest$ac_exeext conftest.$ac_ext
7790fi
7791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7792echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7793if test `eval echo '${'$as_ac_var'}'` = yes; then
7794  cat >>confdefs.h <<_ACEOF
7795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7796_ACEOF
7797
7798else
7799  needsnprintf=yes
7800fi
7801done
7802
7803if test $needsnprintf = yes; then
7804	case $LIBOBJS in
7805    "snprintf.$ac_objext"   | \
7806  *" snprintf.$ac_objext"   | \
7807    "snprintf.$ac_objext "* | \
7808  *" snprintf.$ac_objext "* ) ;;
7809  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
7810esac
7811
7812fi
7813
7814
7815    echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7816echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7817if test "${ac_cv_type_signal+set}" = set; then
7818  echo $ECHO_N "(cached) $ECHO_C" >&6
7819else
7820  cat >conftest.$ac_ext <<_ACEOF
7821/* confdefs.h.  */
7822_ACEOF
7823cat confdefs.h >>conftest.$ac_ext
7824cat >>conftest.$ac_ext <<_ACEOF
7825/* end confdefs.h.  */
7826#include <sys/types.h>
7827#include <signal.h>
7828#ifdef signal
7829# undef signal
7830#endif
7831#ifdef __cplusplus
7832extern "C" void (*signal (int, void (*)(int)))(int);
7833#else
7834void (*signal ()) ();
7835#endif
7836
7837int
7838main ()
7839{
7840int i;
7841  ;
7842  return 0;
7843}
7844_ACEOF
7845rm -f conftest.$ac_objext
7846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847  (eval $ac_compile) 2>conftest.er1
7848  ac_status=$?
7849  grep -v '^ *+' conftest.er1 >conftest.err
7850  rm -f conftest.er1
7851  cat conftest.err >&5
7852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853  (exit $ac_status); } &&
7854	 { ac_try='test -z "$ac_c_werror_flag"
7855			 || test ! -s conftest.err'
7856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857  (eval $ac_try) 2>&5
7858  ac_status=$?
7859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860  (exit $ac_status); }; } &&
7861	 { ac_try='test -s conftest.$ac_objext'
7862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863  (eval $ac_try) 2>&5
7864  ac_status=$?
7865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866  (exit $ac_status); }; }; then
7867  ac_cv_type_signal=void
7868else
7869  echo "$as_me: failed program was:" >&5
7870sed 's/^/| /' conftest.$ac_ext >&5
7871
7872ac_cv_type_signal=int
7873fi
7874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7875fi
7876echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7877echo "${ECHO_T}$ac_cv_type_signal" >&6
7878
7879cat >>confdefs.h <<_ACEOF
7880#define RETSIGTYPE $ac_cv_type_signal
7881_ACEOF
7882
7883
7884    if test "$ac_cv_type_signal" = void ; then
7885	    cat >>confdefs.h <<\_ACEOF
7886#define RETSIGVAL
7887_ACEOF
7888
7889    else
7890	    cat >>confdefs.h <<\_ACEOF
7891#define RETSIGVAL (0)
7892_ACEOF
7893
7894    fi
7895    case "$host_os" in
7896
7897    irix*)
7898	    cat >>confdefs.h <<\_ACEOF
7899#define _BSD_SIGNALS 1
7900_ACEOF
7901
7902	    ;;
7903
7904    *)
7905
7906for ac_func in sigaction
7907do
7908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7909echo "$as_me:$LINENO: checking for $ac_func" >&5
7910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7911if eval "test \"\${$as_ac_var+set}\" = set"; then
7912  echo $ECHO_N "(cached) $ECHO_C" >&6
7913else
7914  cat >conftest.$ac_ext <<_ACEOF
7915/* confdefs.h.  */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h.  */
7920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7921   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7922#define $ac_func innocuous_$ac_func
7923
7924/* System header to define __stub macros and hopefully few prototypes,
7925    which can conflict with char $ac_func (); below.
7926    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7927    <limits.h> exists even on freestanding compilers.  */
7928
7929#ifdef __STDC__
7930# include <limits.h>
7931#else
7932# include <assert.h>
7933#endif
7934
7935#undef $ac_func
7936
7937/* Override any gcc2 internal prototype to avoid an error.  */
7938#ifdef __cplusplus
7939extern "C"
7940{
7941#endif
7942/* We use char because int might match the return type of a gcc2
7943   builtin and then its argument prototype would still apply.  */
7944char $ac_func ();
7945/* The GNU C library defines this for functions which it implements
7946    to always fail with ENOSYS.  Some functions are actually named
7947    something starting with __ and the normal name is an alias.  */
7948#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7949choke me
7950#else
7951char (*f) () = $ac_func;
7952#endif
7953#ifdef __cplusplus
7954}
7955#endif
7956
7957int
7958main ()
7959{
7960return f != $ac_func;
7961  ;
7962  return 0;
7963}
7964_ACEOF
7965rm -f conftest.$ac_objext conftest$ac_exeext
7966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967  (eval $ac_link) 2>conftest.er1
7968  ac_status=$?
7969  grep -v '^ *+' conftest.er1 >conftest.err
7970  rm -f conftest.er1
7971  cat conftest.err >&5
7972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973  (exit $ac_status); } &&
7974	 { ac_try='test -z "$ac_c_werror_flag"
7975			 || test ! -s conftest.err'
7976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977  (eval $ac_try) 2>&5
7978  ac_status=$?
7979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980  (exit $ac_status); }; } &&
7981	 { ac_try='test -s conftest$ac_exeext'
7982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983  (eval $ac_try) 2>&5
7984  ac_status=$?
7985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986  (exit $ac_status); }; }; then
7987  eval "$as_ac_var=yes"
7988else
7989  echo "$as_me: failed program was:" >&5
7990sed 's/^/| /' conftest.$ac_ext >&5
7991
7992eval "$as_ac_var=no"
7993fi
7994rm -f conftest.err conftest.$ac_objext \
7995      conftest$ac_exeext conftest.$ac_ext
7996fi
7997echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7998echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7999if test `eval echo '${'$as_ac_var'}'` = yes; then
8000  cat >>confdefs.h <<_ACEOF
8001#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8002_ACEOF
8003
8004fi
8005done
8006
8007	    if test $ac_cv_func_sigaction = no ; then
8008
8009for ac_func in sigset
8010do
8011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8012echo "$as_me:$LINENO: checking for $ac_func" >&5
8013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8014if eval "test \"\${$as_ac_var+set}\" = set"; then
8015  echo $ECHO_N "(cached) $ECHO_C" >&6
8016else
8017  cat >conftest.$ac_ext <<_ACEOF
8018/* confdefs.h.  */
8019_ACEOF
8020cat confdefs.h >>conftest.$ac_ext
8021cat >>conftest.$ac_ext <<_ACEOF
8022/* end confdefs.h.  */
8023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8024   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8025#define $ac_func innocuous_$ac_func
8026
8027/* System header to define __stub macros and hopefully few prototypes,
8028    which can conflict with char $ac_func (); below.
8029    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8030    <limits.h> exists even on freestanding compilers.  */
8031
8032#ifdef __STDC__
8033# include <limits.h>
8034#else
8035# include <assert.h>
8036#endif
8037
8038#undef $ac_func
8039
8040/* Override any gcc2 internal prototype to avoid an error.  */
8041#ifdef __cplusplus
8042extern "C"
8043{
8044#endif
8045/* We use char because int might match the return type of a gcc2
8046   builtin and then its argument prototype would still apply.  */
8047char $ac_func ();
8048/* The GNU C library defines this for functions which it implements
8049    to always fail with ENOSYS.  Some functions are actually named
8050    something starting with __ and the normal name is an alias.  */
8051#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8052choke me
8053#else
8054char (*f) () = $ac_func;
8055#endif
8056#ifdef __cplusplus
8057}
8058#endif
8059
8060int
8061main ()
8062{
8063return f != $ac_func;
8064  ;
8065  return 0;
8066}
8067_ACEOF
8068rm -f conftest.$ac_objext conftest$ac_exeext
8069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8070  (eval $ac_link) 2>conftest.er1
8071  ac_status=$?
8072  grep -v '^ *+' conftest.er1 >conftest.err
8073  rm -f conftest.er1
8074  cat conftest.err >&5
8075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076  (exit $ac_status); } &&
8077	 { ac_try='test -z "$ac_c_werror_flag"
8078			 || test ! -s conftest.err'
8079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080  (eval $ac_try) 2>&5
8081  ac_status=$?
8082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083  (exit $ac_status); }; } &&
8084	 { ac_try='test -s conftest$ac_exeext'
8085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086  (eval $ac_try) 2>&5
8087  ac_status=$?
8088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089  (exit $ac_status); }; }; then
8090  eval "$as_ac_var=yes"
8091else
8092  echo "$as_me: failed program was:" >&5
8093sed 's/^/| /' conftest.$ac_ext >&5
8094
8095eval "$as_ac_var=no"
8096fi
8097rm -f conftest.err conftest.$ac_objext \
8098      conftest$ac_exeext conftest.$ac_ext
8099fi
8100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8102if test `eval echo '${'$as_ac_var'}'` = yes; then
8103  cat >>confdefs.h <<_ACEOF
8104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8105_ACEOF
8106
8107fi
8108done
8109
8110	    fi
8111	    ;;
8112    esac
8113
8114echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8115echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
8116if test "${ac_cv_search_dnet_htoa+set}" = set; then
8117  echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119  ac_func_search_save_LIBS=$LIBS
8120ac_cv_search_dnet_htoa=no
8121cat >conftest.$ac_ext <<_ACEOF
8122/* confdefs.h.  */
8123_ACEOF
8124cat confdefs.h >>conftest.$ac_ext
8125cat >>conftest.$ac_ext <<_ACEOF
8126/* end confdefs.h.  */
8127
8128/* Override any gcc2 internal prototype to avoid an error.  */
8129#ifdef __cplusplus
8130extern "C"
8131#endif
8132/* We use char because int might match the return type of a gcc2
8133   builtin and then its argument prototype would still apply.  */
8134char dnet_htoa ();
8135int
8136main ()
8137{
8138dnet_htoa ();
8139  ;
8140  return 0;
8141}
8142_ACEOF
8143rm -f conftest.$ac_objext conftest$ac_exeext
8144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8145  (eval $ac_link) 2>conftest.er1
8146  ac_status=$?
8147  grep -v '^ *+' conftest.er1 >conftest.err
8148  rm -f conftest.er1
8149  cat conftest.err >&5
8150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151  (exit $ac_status); } &&
8152	 { ac_try='test -z "$ac_c_werror_flag"
8153			 || test ! -s conftest.err'
8154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155  (eval $ac_try) 2>&5
8156  ac_status=$?
8157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158  (exit $ac_status); }; } &&
8159	 { ac_try='test -s conftest$ac_exeext'
8160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161  (eval $ac_try) 2>&5
8162  ac_status=$?
8163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164  (exit $ac_status); }; }; then
8165  ac_cv_search_dnet_htoa="none required"
8166else
8167  echo "$as_me: failed program was:" >&5
8168sed 's/^/| /' conftest.$ac_ext >&5
8169
8170fi
8171rm -f conftest.err conftest.$ac_objext \
8172      conftest$ac_exeext conftest.$ac_ext
8173if test "$ac_cv_search_dnet_htoa" = no; then
8174  for ac_lib in dnet; do
8175    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8176    cat >conftest.$ac_ext <<_ACEOF
8177/* confdefs.h.  */
8178_ACEOF
8179cat confdefs.h >>conftest.$ac_ext
8180cat >>conftest.$ac_ext <<_ACEOF
8181/* end confdefs.h.  */
8182
8183/* Override any gcc2 internal prototype to avoid an error.  */
8184#ifdef __cplusplus
8185extern "C"
8186#endif
8187/* We use char because int might match the return type of a gcc2
8188   builtin and then its argument prototype would still apply.  */
8189char dnet_htoa ();
8190int
8191main ()
8192{
8193dnet_htoa ();
8194  ;
8195  return 0;
8196}
8197_ACEOF
8198rm -f conftest.$ac_objext conftest$ac_exeext
8199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8200  (eval $ac_link) 2>conftest.er1
8201  ac_status=$?
8202  grep -v '^ *+' conftest.er1 >conftest.err
8203  rm -f conftest.er1
8204  cat conftest.err >&5
8205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206  (exit $ac_status); } &&
8207	 { ac_try='test -z "$ac_c_werror_flag"
8208			 || test ! -s conftest.err'
8209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210  (eval $ac_try) 2>&5
8211  ac_status=$?
8212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213  (exit $ac_status); }; } &&
8214	 { ac_try='test -s conftest$ac_exeext'
8215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216  (eval $ac_try) 2>&5
8217  ac_status=$?
8218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219  (exit $ac_status); }; }; then
8220  ac_cv_search_dnet_htoa="-l$ac_lib"
8221break
8222else
8223  echo "$as_me: failed program was:" >&5
8224sed 's/^/| /' conftest.$ac_ext >&5
8225
8226fi
8227rm -f conftest.err conftest.$ac_objext \
8228      conftest$ac_exeext conftest.$ac_ext
8229  done
8230fi
8231LIBS=$ac_func_search_save_LIBS
8232fi
8233echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8234echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
8235if test "$ac_cv_search_dnet_htoa" != no; then
8236  test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
8237  cat >>confdefs.h <<\_ACEOF
8238#define HAVE_DNET_HTOA 1
8239_ACEOF
8240
8241fi
8242
8243
8244
8245echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8246echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
8247if test "${ac_cv_lib_rpc_main+set}" = set; then
8248  echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250  ac_check_lib_save_LIBS=$LIBS
8251LIBS="-lrpc  $LIBS"
8252cat >conftest.$ac_ext <<_ACEOF
8253/* confdefs.h.  */
8254_ACEOF
8255cat confdefs.h >>conftest.$ac_ext
8256cat >>conftest.$ac_ext <<_ACEOF
8257/* end confdefs.h.  */
8258
8259
8260int
8261main ()
8262{
8263main ();
8264  ;
8265  return 0;
8266}
8267_ACEOF
8268rm -f conftest.$ac_objext conftest$ac_exeext
8269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8270  (eval $ac_link) 2>conftest.er1
8271  ac_status=$?
8272  grep -v '^ *+' conftest.er1 >conftest.err
8273  rm -f conftest.er1
8274  cat conftest.err >&5
8275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276  (exit $ac_status); } &&
8277	 { ac_try='test -z "$ac_c_werror_flag"
8278			 || test ! -s conftest.err'
8279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280  (eval $ac_try) 2>&5
8281  ac_status=$?
8282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283  (exit $ac_status); }; } &&
8284	 { ac_try='test -s conftest$ac_exeext'
8285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286  (eval $ac_try) 2>&5
8287  ac_status=$?
8288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289  (exit $ac_status); }; }; then
8290  ac_cv_lib_rpc_main=yes
8291else
8292  echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
8295ac_cv_lib_rpc_main=no
8296fi
8297rm -f conftest.err conftest.$ac_objext \
8298      conftest$ac_exeext conftest.$ac_ext
8299LIBS=$ac_check_lib_save_LIBS
8300fi
8301echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8302echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
8303if test $ac_cv_lib_rpc_main = yes; then
8304  cat >>confdefs.h <<_ACEOF
8305#define HAVE_LIBRPC 1
8306_ACEOF
8307
8308  LIBS="-lrpc $LIBS"
8309
8310fi
8311
8312echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8313echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
8314if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8315  echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317  ac_func_search_save_LIBS=$LIBS
8318ac_cv_search_getrpcbynumber=no
8319cat >conftest.$ac_ext <<_ACEOF
8320/* confdefs.h.  */
8321_ACEOF
8322cat confdefs.h >>conftest.$ac_ext
8323cat >>conftest.$ac_ext <<_ACEOF
8324/* end confdefs.h.  */
8325
8326/* Override any gcc2 internal prototype to avoid an error.  */
8327#ifdef __cplusplus
8328extern "C"
8329#endif
8330/* We use char because int might match the return type of a gcc2
8331   builtin and then its argument prototype would still apply.  */
8332char getrpcbynumber ();
8333int
8334main ()
8335{
8336getrpcbynumber ();
8337  ;
8338  return 0;
8339}
8340_ACEOF
8341rm -f conftest.$ac_objext conftest$ac_exeext
8342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8343  (eval $ac_link) 2>conftest.er1
8344  ac_status=$?
8345  grep -v '^ *+' conftest.er1 >conftest.err
8346  rm -f conftest.er1
8347  cat conftest.err >&5
8348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349  (exit $ac_status); } &&
8350	 { ac_try='test -z "$ac_c_werror_flag"
8351			 || test ! -s conftest.err'
8352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353  (eval $ac_try) 2>&5
8354  ac_status=$?
8355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356  (exit $ac_status); }; } &&
8357	 { ac_try='test -s conftest$ac_exeext'
8358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359  (eval $ac_try) 2>&5
8360  ac_status=$?
8361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362  (exit $ac_status); }; }; then
8363  ac_cv_search_getrpcbynumber="none required"
8364else
8365  echo "$as_me: failed program was:" >&5
8366sed 's/^/| /' conftest.$ac_ext >&5
8367
8368fi
8369rm -f conftest.err conftest.$ac_objext \
8370      conftest$ac_exeext conftest.$ac_ext
8371if test "$ac_cv_search_getrpcbynumber" = no; then
8372  for ac_lib in nsl; do
8373    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8374    cat >conftest.$ac_ext <<_ACEOF
8375/* confdefs.h.  */
8376_ACEOF
8377cat confdefs.h >>conftest.$ac_ext
8378cat >>conftest.$ac_ext <<_ACEOF
8379/* end confdefs.h.  */
8380
8381/* Override any gcc2 internal prototype to avoid an error.  */
8382#ifdef __cplusplus
8383extern "C"
8384#endif
8385/* We use char because int might match the return type of a gcc2
8386   builtin and then its argument prototype would still apply.  */
8387char getrpcbynumber ();
8388int
8389main ()
8390{
8391getrpcbynumber ();
8392  ;
8393  return 0;
8394}
8395_ACEOF
8396rm -f conftest.$ac_objext conftest$ac_exeext
8397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398  (eval $ac_link) 2>conftest.er1
8399  ac_status=$?
8400  grep -v '^ *+' conftest.er1 >conftest.err
8401  rm -f conftest.er1
8402  cat conftest.err >&5
8403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404  (exit $ac_status); } &&
8405	 { ac_try='test -z "$ac_c_werror_flag"
8406			 || test ! -s conftest.err'
8407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408  (eval $ac_try) 2>&5
8409  ac_status=$?
8410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411  (exit $ac_status); }; } &&
8412	 { ac_try='test -s conftest$ac_exeext'
8413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414  (eval $ac_try) 2>&5
8415  ac_status=$?
8416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417  (exit $ac_status); }; }; then
8418  ac_cv_search_getrpcbynumber="-l$ac_lib"
8419break
8420else
8421  echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
8424fi
8425rm -f conftest.err conftest.$ac_objext \
8426      conftest$ac_exeext conftest.$ac_ext
8427  done
8428fi
8429LIBS=$ac_func_search_save_LIBS
8430fi
8431echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8432echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
8433if test "$ac_cv_search_getrpcbynumber" != no; then
8434  test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
8435  cat >>confdefs.h <<\_ACEOF
8436#define HAVE_GETRPCBYNUMBER 1
8437_ACEOF
8438
8439fi
8440
8441
8442
8443
8444    # Most operating systems have gethostbyname() in the default searched
8445    # libraries (i.e. libc):
8446    # Some OSes (eg. Solaris) place it in libnsl
8447    # Some strange OSes (SINIX) have it in libsocket:
8448    echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8449echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8450if test "${ac_cv_search_gethostbyname+set}" = set; then
8451  echo $ECHO_N "(cached) $ECHO_C" >&6
8452else
8453  ac_func_search_save_LIBS=$LIBS
8454ac_cv_search_gethostbyname=no
8455cat >conftest.$ac_ext <<_ACEOF
8456/* confdefs.h.  */
8457_ACEOF
8458cat confdefs.h >>conftest.$ac_ext
8459cat >>conftest.$ac_ext <<_ACEOF
8460/* end confdefs.h.  */
8461
8462/* Override any gcc2 internal prototype to avoid an error.  */
8463#ifdef __cplusplus
8464extern "C"
8465#endif
8466/* We use char because int might match the return type of a gcc2
8467   builtin and then its argument prototype would still apply.  */
8468char gethostbyname ();
8469int
8470main ()
8471{
8472gethostbyname ();
8473  ;
8474  return 0;
8475}
8476_ACEOF
8477rm -f conftest.$ac_objext conftest$ac_exeext
8478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479  (eval $ac_link) 2>conftest.er1
8480  ac_status=$?
8481  grep -v '^ *+' conftest.er1 >conftest.err
8482  rm -f conftest.er1
8483  cat conftest.err >&5
8484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485  (exit $ac_status); } &&
8486	 { ac_try='test -z "$ac_c_werror_flag"
8487			 || test ! -s conftest.err'
8488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489  (eval $ac_try) 2>&5
8490  ac_status=$?
8491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492  (exit $ac_status); }; } &&
8493	 { ac_try='test -s conftest$ac_exeext'
8494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495  (eval $ac_try) 2>&5
8496  ac_status=$?
8497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498  (exit $ac_status); }; }; then
8499  ac_cv_search_gethostbyname="none required"
8500else
8501  echo "$as_me: failed program was:" >&5
8502sed 's/^/| /' conftest.$ac_ext >&5
8503
8504fi
8505rm -f conftest.err conftest.$ac_objext \
8506      conftest$ac_exeext conftest.$ac_ext
8507if test "$ac_cv_search_gethostbyname" = no; then
8508  for ac_lib in nsl socket resolv; do
8509    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8510    cat >conftest.$ac_ext <<_ACEOF
8511/* confdefs.h.  */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h.  */
8516
8517/* Override any gcc2 internal prototype to avoid an error.  */
8518#ifdef __cplusplus
8519extern "C"
8520#endif
8521/* We use char because int might match the return type of a gcc2
8522   builtin and then its argument prototype would still apply.  */
8523char gethostbyname ();
8524int
8525main ()
8526{
8527gethostbyname ();
8528  ;
8529  return 0;
8530}
8531_ACEOF
8532rm -f conftest.$ac_objext conftest$ac_exeext
8533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534  (eval $ac_link) 2>conftest.er1
8535  ac_status=$?
8536  grep -v '^ *+' conftest.er1 >conftest.err
8537  rm -f conftest.er1
8538  cat conftest.err >&5
8539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540  (exit $ac_status); } &&
8541	 { ac_try='test -z "$ac_c_werror_flag"
8542			 || test ! -s conftest.err'
8543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544  (eval $ac_try) 2>&5
8545  ac_status=$?
8546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547  (exit $ac_status); }; } &&
8548	 { ac_try='test -s conftest$ac_exeext'
8549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550  (eval $ac_try) 2>&5
8551  ac_status=$?
8552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553  (exit $ac_status); }; }; then
8554  ac_cv_search_gethostbyname="-l$ac_lib"
8555break
8556else
8557  echo "$as_me: failed program was:" >&5
8558sed 's/^/| /' conftest.$ac_ext >&5
8559
8560fi
8561rm -f conftest.err conftest.$ac_objext \
8562      conftest$ac_exeext conftest.$ac_ext
8563  done
8564fi
8565LIBS=$ac_func_search_save_LIBS
8566fi
8567echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8568echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8569if test "$ac_cv_search_gethostbyname" != no; then
8570  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
8571
8572fi
8573
8574    # Unfortunately libsocket sometimes depends on libnsl and
8575    # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8576    if test "$ac_cv_search_gethostbyname" = "no"
8577    then
8578	echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8579echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
8580if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8581  echo $ECHO_N "(cached) $ECHO_C" >&6
8582else
8583  ac_check_lib_save_LIBS=$LIBS
8584LIBS="-lsocket -lnsl $LIBS"
8585cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h.  */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h.  */
8591
8592/* Override any gcc2 internal prototype to avoid an error.  */
8593#ifdef __cplusplus
8594extern "C"
8595#endif
8596/* We use char because int might match the return type of a gcc2
8597   builtin and then its argument prototype would still apply.  */
8598char gethostbyname ();
8599int
8600main ()
8601{
8602gethostbyname ();
8603  ;
8604  return 0;
8605}
8606_ACEOF
8607rm -f conftest.$ac_objext conftest$ac_exeext
8608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609  (eval $ac_link) 2>conftest.er1
8610  ac_status=$?
8611  grep -v '^ *+' conftest.er1 >conftest.err
8612  rm -f conftest.er1
8613  cat conftest.err >&5
8614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615  (exit $ac_status); } &&
8616	 { ac_try='test -z "$ac_c_werror_flag"
8617			 || test ! -s conftest.err'
8618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619  (eval $ac_try) 2>&5
8620  ac_status=$?
8621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622  (exit $ac_status); }; } &&
8623	 { ac_try='test -s conftest$ac_exeext'
8624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625  (eval $ac_try) 2>&5
8626  ac_status=$?
8627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628  (exit $ac_status); }; }; then
8629  ac_cv_lib_socket_gethostbyname=yes
8630else
8631  echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
8634ac_cv_lib_socket_gethostbyname=no
8635fi
8636rm -f conftest.err conftest.$ac_objext \
8637      conftest$ac_exeext conftest.$ac_ext
8638LIBS=$ac_check_lib_save_LIBS
8639fi
8640echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8641echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
8642if test $ac_cv_lib_socket_gethostbyname = yes; then
8643  LIBS="-lsocket -lnsl $LIBS"
8644fi
8645
8646    fi
8647    echo "$as_me:$LINENO: checking for library containing socket" >&5
8648echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
8649if test "${ac_cv_search_socket+set}" = set; then
8650  echo $ECHO_N "(cached) $ECHO_C" >&6
8651else
8652  ac_func_search_save_LIBS=$LIBS
8653ac_cv_search_socket=no
8654cat >conftest.$ac_ext <<_ACEOF
8655/* confdefs.h.  */
8656_ACEOF
8657cat confdefs.h >>conftest.$ac_ext
8658cat >>conftest.$ac_ext <<_ACEOF
8659/* end confdefs.h.  */
8660
8661/* Override any gcc2 internal prototype to avoid an error.  */
8662#ifdef __cplusplus
8663extern "C"
8664#endif
8665/* We use char because int might match the return type of a gcc2
8666   builtin and then its argument prototype would still apply.  */
8667char socket ();
8668int
8669main ()
8670{
8671socket ();
8672  ;
8673  return 0;
8674}
8675_ACEOF
8676rm -f conftest.$ac_objext conftest$ac_exeext
8677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678  (eval $ac_link) 2>conftest.er1
8679  ac_status=$?
8680  grep -v '^ *+' conftest.er1 >conftest.err
8681  rm -f conftest.er1
8682  cat conftest.err >&5
8683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); } &&
8685	 { ac_try='test -z "$ac_c_werror_flag"
8686			 || test ! -s conftest.err'
8687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688  (eval $ac_try) 2>&5
8689  ac_status=$?
8690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691  (exit $ac_status); }; } &&
8692	 { ac_try='test -s conftest$ac_exeext'
8693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694  (eval $ac_try) 2>&5
8695  ac_status=$?
8696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697  (exit $ac_status); }; }; then
8698  ac_cv_search_socket="none required"
8699else
8700  echo "$as_me: failed program was:" >&5
8701sed 's/^/| /' conftest.$ac_ext >&5
8702
8703fi
8704rm -f conftest.err conftest.$ac_objext \
8705      conftest$ac_exeext conftest.$ac_ext
8706if test "$ac_cv_search_socket" = no; then
8707  for ac_lib in socket; do
8708    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8709    cat >conftest.$ac_ext <<_ACEOF
8710/* confdefs.h.  */
8711_ACEOF
8712cat confdefs.h >>conftest.$ac_ext
8713cat >>conftest.$ac_ext <<_ACEOF
8714/* end confdefs.h.  */
8715
8716/* Override any gcc2 internal prototype to avoid an error.  */
8717#ifdef __cplusplus
8718extern "C"
8719#endif
8720/* We use char because int might match the return type of a gcc2
8721   builtin and then its argument prototype would still apply.  */
8722char socket ();
8723int
8724main ()
8725{
8726socket ();
8727  ;
8728  return 0;
8729}
8730_ACEOF
8731rm -f conftest.$ac_objext conftest$ac_exeext
8732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8733  (eval $ac_link) 2>conftest.er1
8734  ac_status=$?
8735  grep -v '^ *+' conftest.er1 >conftest.err
8736  rm -f conftest.er1
8737  cat conftest.err >&5
8738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739  (exit $ac_status); } &&
8740	 { ac_try='test -z "$ac_c_werror_flag"
8741			 || test ! -s conftest.err'
8742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743  (eval $ac_try) 2>&5
8744  ac_status=$?
8745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746  (exit $ac_status); }; } &&
8747	 { ac_try='test -s conftest$ac_exeext'
8748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749  (eval $ac_try) 2>&5
8750  ac_status=$?
8751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752  (exit $ac_status); }; }; then
8753  ac_cv_search_socket="-l$ac_lib"
8754break
8755else
8756  echo "$as_me: failed program was:" >&5
8757sed 's/^/| /' conftest.$ac_ext >&5
8758
8759fi
8760rm -f conftest.err conftest.$ac_objext \
8761      conftest$ac_exeext conftest.$ac_ext
8762  done
8763fi
8764LIBS=$ac_func_search_save_LIBS
8765fi
8766echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8767echo "${ECHO_T}$ac_cv_search_socket" >&6
8768if test "$ac_cv_search_socket" != no; then
8769  test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
8770
8771else
8772  echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8773echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8774if test "${ac_cv_lib_socket_socket+set}" = set; then
8775  echo $ECHO_N "(cached) $ECHO_C" >&6
8776else
8777  ac_check_lib_save_LIBS=$LIBS
8778LIBS="-lsocket -lnsl $LIBS"
8779cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h.  */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h.  */
8785
8786/* Override any gcc2 internal prototype to avoid an error.  */
8787#ifdef __cplusplus
8788extern "C"
8789#endif
8790/* We use char because int might match the return type of a gcc2
8791   builtin and then its argument prototype would still apply.  */
8792char socket ();
8793int
8794main ()
8795{
8796socket ();
8797  ;
8798  return 0;
8799}
8800_ACEOF
8801rm -f conftest.$ac_objext conftest$ac_exeext
8802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8803  (eval $ac_link) 2>conftest.er1
8804  ac_status=$?
8805  grep -v '^ *+' conftest.er1 >conftest.err
8806  rm -f conftest.er1
8807  cat conftest.err >&5
8808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809  (exit $ac_status); } &&
8810	 { ac_try='test -z "$ac_c_werror_flag"
8811			 || test ! -s conftest.err'
8812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813  (eval $ac_try) 2>&5
8814  ac_status=$?
8815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816  (exit $ac_status); }; } &&
8817	 { ac_try='test -s conftest$ac_exeext'
8818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819  (eval $ac_try) 2>&5
8820  ac_status=$?
8821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822  (exit $ac_status); }; }; then
8823  ac_cv_lib_socket_socket=yes
8824else
8825  echo "$as_me: failed program was:" >&5
8826sed 's/^/| /' conftest.$ac_ext >&5
8827
8828ac_cv_lib_socket_socket=no
8829fi
8830rm -f conftest.err conftest.$ac_objext \
8831      conftest$ac_exeext conftest.$ac_ext
8832LIBS=$ac_check_lib_save_LIBS
8833fi
8834echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8835echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8836if test $ac_cv_lib_socket_socket = yes; then
8837  LIBS="-lsocket -lnsl $LIBS"
8838fi
8839
8840fi
8841
8842    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8843    echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8844echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8845if test "${ac_cv_search_putmsg+set}" = set; then
8846  echo $ECHO_N "(cached) $ECHO_C" >&6
8847else
8848  ac_func_search_save_LIBS=$LIBS
8849ac_cv_search_putmsg=no
8850cat >conftest.$ac_ext <<_ACEOF
8851/* confdefs.h.  */
8852_ACEOF
8853cat confdefs.h >>conftest.$ac_ext
8854cat >>conftest.$ac_ext <<_ACEOF
8855/* end confdefs.h.  */
8856
8857/* Override any gcc2 internal prototype to avoid an error.  */
8858#ifdef __cplusplus
8859extern "C"
8860#endif
8861/* We use char because int might match the return type of a gcc2
8862   builtin and then its argument prototype would still apply.  */
8863char putmsg ();
8864int
8865main ()
8866{
8867putmsg ();
8868  ;
8869  return 0;
8870}
8871_ACEOF
8872rm -f conftest.$ac_objext conftest$ac_exeext
8873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874  (eval $ac_link) 2>conftest.er1
8875  ac_status=$?
8876  grep -v '^ *+' conftest.er1 >conftest.err
8877  rm -f conftest.er1
8878  cat conftest.err >&5
8879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880  (exit $ac_status); } &&
8881	 { ac_try='test -z "$ac_c_werror_flag"
8882			 || test ! -s conftest.err'
8883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884  (eval $ac_try) 2>&5
8885  ac_status=$?
8886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887  (exit $ac_status); }; } &&
8888	 { ac_try='test -s conftest$ac_exeext'
8889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890  (eval $ac_try) 2>&5
8891  ac_status=$?
8892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893  (exit $ac_status); }; }; then
8894  ac_cv_search_putmsg="none required"
8895else
8896  echo "$as_me: failed program was:" >&5
8897sed 's/^/| /' conftest.$ac_ext >&5
8898
8899fi
8900rm -f conftest.err conftest.$ac_objext \
8901      conftest$ac_exeext conftest.$ac_ext
8902if test "$ac_cv_search_putmsg" = no; then
8903  for ac_lib in str; do
8904    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8905    cat >conftest.$ac_ext <<_ACEOF
8906/* confdefs.h.  */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
8910/* end confdefs.h.  */
8911
8912/* Override any gcc2 internal prototype to avoid an error.  */
8913#ifdef __cplusplus
8914extern "C"
8915#endif
8916/* We use char because int might match the return type of a gcc2
8917   builtin and then its argument prototype would still apply.  */
8918char putmsg ();
8919int
8920main ()
8921{
8922putmsg ();
8923  ;
8924  return 0;
8925}
8926_ACEOF
8927rm -f conftest.$ac_objext conftest$ac_exeext
8928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8929  (eval $ac_link) 2>conftest.er1
8930  ac_status=$?
8931  grep -v '^ *+' conftest.er1 >conftest.err
8932  rm -f conftest.er1
8933  cat conftest.err >&5
8934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935  (exit $ac_status); } &&
8936	 { ac_try='test -z "$ac_c_werror_flag"
8937			 || test ! -s conftest.err'
8938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939  (eval $ac_try) 2>&5
8940  ac_status=$?
8941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942  (exit $ac_status); }; } &&
8943	 { ac_try='test -s conftest$ac_exeext'
8944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945  (eval $ac_try) 2>&5
8946  ac_status=$?
8947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948  (exit $ac_status); }; }; then
8949  ac_cv_search_putmsg="-l$ac_lib"
8950break
8951else
8952  echo "$as_me: failed program was:" >&5
8953sed 's/^/| /' conftest.$ac_ext >&5
8954
8955fi
8956rm -f conftest.err conftest.$ac_objext \
8957      conftest$ac_exeext conftest.$ac_ext
8958  done
8959fi
8960LIBS=$ac_func_search_save_LIBS
8961fi
8962echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8963echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8964if test "$ac_cv_search_putmsg" != no; then
8965  test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
8966
8967fi
8968
8969
8970
8971                LBL_LIBS="$LIBS"
8972    pfopen=/usr/examples/packetfilter/pfopen.c
8973    if test -f $pfopen ; then
8974
8975for ac_func in pfopen
8976do
8977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8978echo "$as_me:$LINENO: checking for $ac_func" >&5
8979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8980if eval "test \"\${$as_ac_var+set}\" = set"; then
8981  echo $ECHO_N "(cached) $ECHO_C" >&6
8982else
8983  cat >conftest.$ac_ext <<_ACEOF
8984/* confdefs.h.  */
8985_ACEOF
8986cat confdefs.h >>conftest.$ac_ext
8987cat >>conftest.$ac_ext <<_ACEOF
8988/* end confdefs.h.  */
8989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8990   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8991#define $ac_func innocuous_$ac_func
8992
8993/* System header to define __stub macros and hopefully few prototypes,
8994    which can conflict with char $ac_func (); below.
8995    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8996    <limits.h> exists even on freestanding compilers.  */
8997
8998#ifdef __STDC__
8999# include <limits.h>
9000#else
9001# include <assert.h>
9002#endif
9003
9004#undef $ac_func
9005
9006/* Override any gcc2 internal prototype to avoid an error.  */
9007#ifdef __cplusplus
9008extern "C"
9009{
9010#endif
9011/* We use char because int might match the return type of a gcc2
9012   builtin and then its argument prototype would still apply.  */
9013char $ac_func ();
9014/* The GNU C library defines this for functions which it implements
9015    to always fail with ENOSYS.  Some functions are actually named
9016    something starting with __ and the normal name is an alias.  */
9017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9018choke me
9019#else
9020char (*f) () = $ac_func;
9021#endif
9022#ifdef __cplusplus
9023}
9024#endif
9025
9026int
9027main ()
9028{
9029return f != $ac_func;
9030  ;
9031  return 0;
9032}
9033_ACEOF
9034rm -f conftest.$ac_objext conftest$ac_exeext
9035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036  (eval $ac_link) 2>conftest.er1
9037  ac_status=$?
9038  grep -v '^ *+' conftest.er1 >conftest.err
9039  rm -f conftest.er1
9040  cat conftest.err >&5
9041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042  (exit $ac_status); } &&
9043	 { ac_try='test -z "$ac_c_werror_flag"
9044			 || test ! -s conftest.err'
9045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046  (eval $ac_try) 2>&5
9047  ac_status=$?
9048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049  (exit $ac_status); }; } &&
9050	 { ac_try='test -s conftest$ac_exeext'
9051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052  (eval $ac_try) 2>&5
9053  ac_status=$?
9054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055  (exit $ac_status); }; }; then
9056  eval "$as_ac_var=yes"
9057else
9058  echo "$as_me: failed program was:" >&5
9059sed 's/^/| /' conftest.$ac_ext >&5
9060
9061eval "$as_ac_var=no"
9062fi
9063rm -f conftest.err conftest.$ac_objext \
9064      conftest$ac_exeext conftest.$ac_ext
9065fi
9066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9067echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9068if test `eval echo '${'$as_ac_var'}'` = yes; then
9069  cat >>confdefs.h <<_ACEOF
9070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9071_ACEOF
9072
9073fi
9074done
9075
9076	    if test $ac_cv_func_pfopen = "no" ; then
9077		    echo "$as_me:$LINENO: result: Using $pfopen" >&5
9078echo "${ECHO_T}Using $pfopen" >&6
9079		    LIBS="$LIBS $pfopen"
9080	    fi
9081    fi
9082    echo "$as_me:$LINENO: checking for local pcap library" >&5
9083echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
9084    libpcap=FAIL
9085    lastdir=FAIL
9086    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9087	egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9088    for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9089	    basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9090	    if test $lastdir = $basedir ; then
9091		    		    continue;
9092	    fi
9093	    lastdir=$dir
9094	    if test -r $dir/libpcap.a ; then
9095		    libpcap=$dir/libpcap.a
9096		    d=$dir
9097		    	    fi
9098    done
9099    if test $libpcap = FAIL ; then
9100	    echo "$as_me:$LINENO: result: not found" >&5
9101echo "${ECHO_T}not found" >&6
9102	    echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9103echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
9104if test "${ac_cv_lib_pcap_main+set}" = set; then
9105  echo $ECHO_N "(cached) $ECHO_C" >&6
9106else
9107  ac_check_lib_save_LIBS=$LIBS
9108LIBS="-lpcap  $LIBS"
9109cat >conftest.$ac_ext <<_ACEOF
9110/* confdefs.h.  */
9111_ACEOF
9112cat confdefs.h >>conftest.$ac_ext
9113cat >>conftest.$ac_ext <<_ACEOF
9114/* end confdefs.h.  */
9115
9116
9117int
9118main ()
9119{
9120main ();
9121  ;
9122  return 0;
9123}
9124_ACEOF
9125rm -f conftest.$ac_objext conftest$ac_exeext
9126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127  (eval $ac_link) 2>conftest.er1
9128  ac_status=$?
9129  grep -v '^ *+' conftest.er1 >conftest.err
9130  rm -f conftest.er1
9131  cat conftest.err >&5
9132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133  (exit $ac_status); } &&
9134	 { ac_try='test -z "$ac_c_werror_flag"
9135			 || test ! -s conftest.err'
9136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137  (eval $ac_try) 2>&5
9138  ac_status=$?
9139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140  (exit $ac_status); }; } &&
9141	 { ac_try='test -s conftest$ac_exeext'
9142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143  (eval $ac_try) 2>&5
9144  ac_status=$?
9145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146  (exit $ac_status); }; }; then
9147  ac_cv_lib_pcap_main=yes
9148else
9149  echo "$as_me: failed program was:" >&5
9150sed 's/^/| /' conftest.$ac_ext >&5
9151
9152ac_cv_lib_pcap_main=no
9153fi
9154rm -f conftest.err conftest.$ac_objext \
9155      conftest$ac_exeext conftest.$ac_ext
9156LIBS=$ac_check_lib_save_LIBS
9157fi
9158echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9159echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
9160if test $ac_cv_lib_pcap_main = yes; then
9161  libpcap="-lpcap"
9162fi
9163
9164	    if test $libpcap = FAIL ; then
9165		    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9166echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9167   { (exit 1); exit 1; }; }
9168	    fi
9169	    	    	    	    	    	    	    	    	    	    	    	    	    	    	    	    echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9170echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
9171	    if test \( ! -r /usr/local/include/pcap.h \) -a \
9172			\( ! -r /usr/include/pcap.h \); then
9173		if test -r /usr/local/include/pcap/pcap.h; then
9174		    d="/usr/local/include/pcap"
9175		elif test -r /usr/include/pcap/pcap.h; then
9176		    d="/usr/include/pcap"
9177		fi
9178	    fi
9179	    if test -z "$d" ; then
9180		echo "$as_me:$LINENO: result: not found" >&5
9181echo "${ECHO_T}not found" >&6
9182	    else
9183		V_INCLS="-I$d $V_INCLS"
9184		echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9185echo "${ECHO_T}found -- -I$d added" >&6
9186	    fi
9187    else
9188	    V_PCAPDEP=$libpcap
9189	    places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9190    	 		egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9191	    if test -r $d/pcap.h; then
9192		    V_INCLS="-I$d $V_INCLS"
9193	    elif test -r $places/pcap.h; then
9194		    V_INCLS="-I$places $V_INCLS"
9195	    else
9196                    { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9197echo "$as_me: error: cannot find pcap.h" >&2;}
9198   { (exit see INSTALL); exit see INSTALL; }; }
9199 	    fi
9200	    echo "$as_me:$LINENO: result: $libpcap" >&5
9201echo "${ECHO_T}$libpcap" >&6
9202    fi
9203    LIBS="$libpcap $LIBS"
9204    case "$host_os" in
9205
9206    aix*)
9207	    pseexe="/lib/pse.exp"
9208	    echo "$as_me:$LINENO: checking for $pseexe" >&5
9209echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
9210	    if test -f $pseexe ; then
9211		    echo "$as_me:$LINENO: result: yes" >&5
9212echo "${ECHO_T}yes" >&6
9213		    LIBS="$LIBS -I:$pseexe"
9214	    fi
9215	    #
9216	    # We need "-lodm" and "-lcfg", as libpcap requires them on
9217	    # AIX, and we just build a static libpcap.a and thus can't
9218	    # arrange that when you link with libpcap you automatically
9219	    # link with those libraries.
9220	    #
9221	    LIBS="$LIBS -lodm -lcfg"
9222	    ;;
9223    esac
9224
9225                        echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9226echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
9227if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9228  echo $ECHO_N "(cached) $ECHO_C" >&6
9229else
9230  cat >conftest.$ac_ext <<_ACEOF
9231/* confdefs.h.  */
9232_ACEOF
9233cat confdefs.h >>conftest.$ac_ext
9234cat >>conftest.$ac_ext <<_ACEOF
9235/* end confdefs.h.  */
9236/* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9237   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9238#define pcap_list_datalinks innocuous_pcap_list_datalinks
9239
9240/* System header to define __stub macros and hopefully few prototypes,
9241    which can conflict with char pcap_list_datalinks (); below.
9242    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9243    <limits.h> exists even on freestanding compilers.  */
9244
9245#ifdef __STDC__
9246# include <limits.h>
9247#else
9248# include <assert.h>
9249#endif
9250
9251#undef pcap_list_datalinks
9252
9253/* Override any gcc2 internal prototype to avoid an error.  */
9254#ifdef __cplusplus
9255extern "C"
9256{
9257#endif
9258/* We use char because int might match the return type of a gcc2
9259   builtin and then its argument prototype would still apply.  */
9260char pcap_list_datalinks ();
9261/* The GNU C library defines this for functions which it implements
9262    to always fail with ENOSYS.  Some functions are actually named
9263    something starting with __ and the normal name is an alias.  */
9264#if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
9265choke me
9266#else
9267char (*f) () = pcap_list_datalinks;
9268#endif
9269#ifdef __cplusplus
9270}
9271#endif
9272
9273int
9274main ()
9275{
9276return f != pcap_list_datalinks;
9277  ;
9278  return 0;
9279}
9280_ACEOF
9281rm -f conftest.$ac_objext conftest$ac_exeext
9282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9283  (eval $ac_link) 2>conftest.er1
9284  ac_status=$?
9285  grep -v '^ *+' conftest.er1 >conftest.err
9286  rm -f conftest.er1
9287  cat conftest.err >&5
9288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289  (exit $ac_status); } &&
9290	 { ac_try='test -z "$ac_c_werror_flag"
9291			 || test ! -s conftest.err'
9292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293  (eval $ac_try) 2>&5
9294  ac_status=$?
9295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296  (exit $ac_status); }; } &&
9297	 { ac_try='test -s conftest$ac_exeext'
9298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299  (eval $ac_try) 2>&5
9300  ac_status=$?
9301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302  (exit $ac_status); }; }; then
9303  ac_cv_func_pcap_list_datalinks=yes
9304else
9305  echo "$as_me: failed program was:" >&5
9306sed 's/^/| /' conftest.$ac_ext >&5
9307
9308ac_cv_func_pcap_list_datalinks=no
9309fi
9310rm -f conftest.err conftest.$ac_objext \
9311      conftest$ac_exeext conftest.$ac_ext
9312fi
9313echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9314echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
9315if test $ac_cv_func_pcap_list_datalinks = yes; then
9316  cat >>confdefs.h <<\_ACEOF
9317#define HAVE_PCAP_LIST_DATALINKS 1
9318_ACEOF
9319
9320else
9321
9322	    case $LIBOBJS in
9323    "datalinks.$ac_objext"   | \
9324  *" datalinks.$ac_objext"   | \
9325    "datalinks.$ac_objext "* | \
9326  *" datalinks.$ac_objext "* ) ;;
9327  *) LIBOBJS="$LIBOBJS datalinks.$ac_objext" ;;
9328esac
9329
9330
9331fi
9332
9333    echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9334echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
9335if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9336  echo $ECHO_N "(cached) $ECHO_C" >&6
9337else
9338  cat >conftest.$ac_ext <<_ACEOF
9339/* confdefs.h.  */
9340_ACEOF
9341cat confdefs.h >>conftest.$ac_ext
9342cat >>conftest.$ac_ext <<_ACEOF
9343/* end confdefs.h.  */
9344/* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9345   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9346#define pcap_set_datalink innocuous_pcap_set_datalink
9347
9348/* System header to define __stub macros and hopefully few prototypes,
9349    which can conflict with char pcap_set_datalink (); below.
9350    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9351    <limits.h> exists even on freestanding compilers.  */
9352
9353#ifdef __STDC__
9354# include <limits.h>
9355#else
9356# include <assert.h>
9357#endif
9358
9359#undef pcap_set_datalink
9360
9361/* Override any gcc2 internal prototype to avoid an error.  */
9362#ifdef __cplusplus
9363extern "C"
9364{
9365#endif
9366/* We use char because int might match the return type of a gcc2
9367   builtin and then its argument prototype would still apply.  */
9368char pcap_set_datalink ();
9369/* The GNU C library defines this for functions which it implements
9370    to always fail with ENOSYS.  Some functions are actually named
9371    something starting with __ and the normal name is an alias.  */
9372#if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
9373choke me
9374#else
9375char (*f) () = pcap_set_datalink;
9376#endif
9377#ifdef __cplusplus
9378}
9379#endif
9380
9381int
9382main ()
9383{
9384return f != pcap_set_datalink;
9385  ;
9386  return 0;
9387}
9388_ACEOF
9389rm -f conftest.$ac_objext conftest$ac_exeext
9390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391  (eval $ac_link) 2>conftest.er1
9392  ac_status=$?
9393  grep -v '^ *+' conftest.er1 >conftest.err
9394  rm -f conftest.er1
9395  cat conftest.err >&5
9396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397  (exit $ac_status); } &&
9398	 { ac_try='test -z "$ac_c_werror_flag"
9399			 || test ! -s conftest.err'
9400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401  (eval $ac_try) 2>&5
9402  ac_status=$?
9403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404  (exit $ac_status); }; } &&
9405	 { ac_try='test -s conftest$ac_exeext'
9406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407  (eval $ac_try) 2>&5
9408  ac_status=$?
9409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410  (exit $ac_status); }; }; then
9411  ac_cv_func_pcap_set_datalink=yes
9412else
9413  echo "$as_me: failed program was:" >&5
9414sed 's/^/| /' conftest.$ac_ext >&5
9415
9416ac_cv_func_pcap_set_datalink=no
9417fi
9418rm -f conftest.err conftest.$ac_objext \
9419      conftest$ac_exeext conftest.$ac_ext
9420fi
9421echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9422echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
9423if test $ac_cv_func_pcap_set_datalink = yes; then
9424  cat >>confdefs.h <<\_ACEOF
9425#define HAVE_PCAP_SET_DATALINK 1
9426_ACEOF
9427
9428fi
9429
9430    echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9431echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
9432if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9433  echo $ECHO_N "(cached) $ECHO_C" >&6
9434else
9435  cat >conftest.$ac_ext <<_ACEOF
9436/* confdefs.h.  */
9437_ACEOF
9438cat confdefs.h >>conftest.$ac_ext
9439cat >>conftest.$ac_ext <<_ACEOF
9440/* end confdefs.h.  */
9441/* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9442   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9443#define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9444
9445/* System header to define __stub macros and hopefully few prototypes,
9446    which can conflict with char pcap_datalink_name_to_val (); below.
9447    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9448    <limits.h> exists even on freestanding compilers.  */
9449
9450#ifdef __STDC__
9451# include <limits.h>
9452#else
9453# include <assert.h>
9454#endif
9455
9456#undef pcap_datalink_name_to_val
9457
9458/* Override any gcc2 internal prototype to avoid an error.  */
9459#ifdef __cplusplus
9460extern "C"
9461{
9462#endif
9463/* We use char because int might match the return type of a gcc2
9464   builtin and then its argument prototype would still apply.  */
9465char pcap_datalink_name_to_val ();
9466/* The GNU C library defines this for functions which it implements
9467    to always fail with ENOSYS.  Some functions are actually named
9468    something starting with __ and the normal name is an alias.  */
9469#if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
9470choke me
9471#else
9472char (*f) () = pcap_datalink_name_to_val;
9473#endif
9474#ifdef __cplusplus
9475}
9476#endif
9477
9478int
9479main ()
9480{
9481return f != pcap_datalink_name_to_val;
9482  ;
9483  return 0;
9484}
9485_ACEOF
9486rm -f conftest.$ac_objext conftest$ac_exeext
9487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9488  (eval $ac_link) 2>conftest.er1
9489  ac_status=$?
9490  grep -v '^ *+' conftest.er1 >conftest.err
9491  rm -f conftest.er1
9492  cat conftest.err >&5
9493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494  (exit $ac_status); } &&
9495	 { ac_try='test -z "$ac_c_werror_flag"
9496			 || test ! -s conftest.err'
9497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498  (eval $ac_try) 2>&5
9499  ac_status=$?
9500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501  (exit $ac_status); }; } &&
9502	 { ac_try='test -s conftest$ac_exeext'
9503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504  (eval $ac_try) 2>&5
9505  ac_status=$?
9506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507  (exit $ac_status); }; }; then
9508  ac_cv_func_pcap_datalink_name_to_val=yes
9509else
9510  echo "$as_me: failed program was:" >&5
9511sed 's/^/| /' conftest.$ac_ext >&5
9512
9513ac_cv_func_pcap_datalink_name_to_val=no
9514fi
9515rm -f conftest.err conftest.$ac_objext \
9516      conftest$ac_exeext conftest.$ac_ext
9517fi
9518echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9519echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
9520if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9521
9522	    cat >>confdefs.h <<\_ACEOF
9523#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9524_ACEOF
9525
9526	    echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9527echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
9528if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9529  echo $ECHO_N "(cached) $ECHO_C" >&6
9530else
9531  cat >conftest.$ac_ext <<_ACEOF
9532/* confdefs.h.  */
9533_ACEOF
9534cat confdefs.h >>conftest.$ac_ext
9535cat >>conftest.$ac_ext <<_ACEOF
9536/* end confdefs.h.  */
9537/* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9538   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9539#define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9540
9541/* System header to define __stub macros and hopefully few prototypes,
9542    which can conflict with char pcap_datalink_val_to_description (); below.
9543    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9544    <limits.h> exists even on freestanding compilers.  */
9545
9546#ifdef __STDC__
9547# include <limits.h>
9548#else
9549# include <assert.h>
9550#endif
9551
9552#undef pcap_datalink_val_to_description
9553
9554/* Override any gcc2 internal prototype to avoid an error.  */
9555#ifdef __cplusplus
9556extern "C"
9557{
9558#endif
9559/* We use char because int might match the return type of a gcc2
9560   builtin and then its argument prototype would still apply.  */
9561char pcap_datalink_val_to_description ();
9562/* The GNU C library defines this for functions which it implements
9563    to always fail with ENOSYS.  Some functions are actually named
9564    something starting with __ and the normal name is an alias.  */
9565#if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
9566choke me
9567#else
9568char (*f) () = pcap_datalink_val_to_description;
9569#endif
9570#ifdef __cplusplus
9571}
9572#endif
9573
9574int
9575main ()
9576{
9577return f != pcap_datalink_val_to_description;
9578  ;
9579  return 0;
9580}
9581_ACEOF
9582rm -f conftest.$ac_objext conftest$ac_exeext
9583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9584  (eval $ac_link) 2>conftest.er1
9585  ac_status=$?
9586  grep -v '^ *+' conftest.er1 >conftest.err
9587  rm -f conftest.er1
9588  cat conftest.err >&5
9589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590  (exit $ac_status); } &&
9591	 { ac_try='test -z "$ac_c_werror_flag"
9592			 || test ! -s conftest.err'
9593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594  (eval $ac_try) 2>&5
9595  ac_status=$?
9596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597  (exit $ac_status); }; } &&
9598	 { ac_try='test -s conftest$ac_exeext'
9599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600  (eval $ac_try) 2>&5
9601  ac_status=$?
9602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603  (exit $ac_status); }; }; then
9604  ac_cv_func_pcap_datalink_val_to_description=yes
9605else
9606  echo "$as_me: failed program was:" >&5
9607sed 's/^/| /' conftest.$ac_ext >&5
9608
9609ac_cv_func_pcap_datalink_val_to_description=no
9610fi
9611rm -f conftest.err conftest.$ac_objext \
9612      conftest$ac_exeext conftest.$ac_ext
9613fi
9614echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9615echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
9616if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9617  cat >>confdefs.h <<\_ACEOF
9618#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9619_ACEOF
9620
9621else
9622
9623		    case $LIBOBJS in
9624    "dlnames.$ac_objext"   | \
9625  *" dlnames.$ac_objext"   | \
9626    "dlnames.$ac_objext "* | \
9627  *" dlnames.$ac_objext "* ) ;;
9628  *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" ;;
9629esac
9630
9631
9632fi
9633
9634
9635else
9636
9637	    case $LIBOBJS in
9638    "dlnames.$ac_objext"   | \
9639  *" dlnames.$ac_objext"   | \
9640    "dlnames.$ac_objext "* | \
9641  *" dlnames.$ac_objext "* ) ;;
9642  *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" ;;
9643esac
9644
9645
9646fi
9647
9648
9649
9650for ac_func in pcap_breakloop
9651do
9652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9653echo "$as_me:$LINENO: checking for $ac_func" >&5
9654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9655if eval "test \"\${$as_ac_var+set}\" = set"; then
9656  echo $ECHO_N "(cached) $ECHO_C" >&6
9657else
9658  cat >conftest.$ac_ext <<_ACEOF
9659/* confdefs.h.  */
9660_ACEOF
9661cat confdefs.h >>conftest.$ac_ext
9662cat >>conftest.$ac_ext <<_ACEOF
9663/* end confdefs.h.  */
9664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9665   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9666#define $ac_func innocuous_$ac_func
9667
9668/* System header to define __stub macros and hopefully few prototypes,
9669    which can conflict with char $ac_func (); below.
9670    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9671    <limits.h> exists even on freestanding compilers.  */
9672
9673#ifdef __STDC__
9674# include <limits.h>
9675#else
9676# include <assert.h>
9677#endif
9678
9679#undef $ac_func
9680
9681/* Override any gcc2 internal prototype to avoid an error.  */
9682#ifdef __cplusplus
9683extern "C"
9684{
9685#endif
9686/* We use char because int might match the return type of a gcc2
9687   builtin and then its argument prototype would still apply.  */
9688char $ac_func ();
9689/* The GNU C library defines this for functions which it implements
9690    to always fail with ENOSYS.  Some functions are actually named
9691    something starting with __ and the normal name is an alias.  */
9692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9693choke me
9694#else
9695char (*f) () = $ac_func;
9696#endif
9697#ifdef __cplusplus
9698}
9699#endif
9700
9701int
9702main ()
9703{
9704return f != $ac_func;
9705  ;
9706  return 0;
9707}
9708_ACEOF
9709rm -f conftest.$ac_objext conftest$ac_exeext
9710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9711  (eval $ac_link) 2>conftest.er1
9712  ac_status=$?
9713  grep -v '^ *+' conftest.er1 >conftest.err
9714  rm -f conftest.er1
9715  cat conftest.err >&5
9716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717  (exit $ac_status); } &&
9718	 { ac_try='test -z "$ac_c_werror_flag"
9719			 || test ! -s conftest.err'
9720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721  (eval $ac_try) 2>&5
9722  ac_status=$?
9723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724  (exit $ac_status); }; } &&
9725	 { ac_try='test -s conftest$ac_exeext'
9726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727  (eval $ac_try) 2>&5
9728  ac_status=$?
9729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730  (exit $ac_status); }; }; then
9731  eval "$as_ac_var=yes"
9732else
9733  echo "$as_me: failed program was:" >&5
9734sed 's/^/| /' conftest.$ac_ext >&5
9735
9736eval "$as_ac_var=no"
9737fi
9738rm -f conftest.err conftest.$ac_objext \
9739      conftest$ac_exeext conftest.$ac_ext
9740fi
9741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9743if test `eval echo '${'$as_ac_var'}'` = yes; then
9744  cat >>confdefs.h <<_ACEOF
9745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9746_ACEOF
9747
9748fi
9749done
9750
9751
9752                echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9753echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6
9754if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9755  echo $ECHO_N "(cached) $ECHO_C" >&6
9756else
9757  cat >conftest.$ac_ext <<_ACEOF
9758/* confdefs.h.  */
9759_ACEOF
9760cat confdefs.h >>conftest.$ac_ext
9761cat >>conftest.$ac_ext <<_ACEOF
9762/* end confdefs.h.  */
9763/* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9764   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9765#define pcap_dump_ftell innocuous_pcap_dump_ftell
9766
9767/* System header to define __stub macros and hopefully few prototypes,
9768    which can conflict with char pcap_dump_ftell (); below.
9769    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9770    <limits.h> exists even on freestanding compilers.  */
9771
9772#ifdef __STDC__
9773# include <limits.h>
9774#else
9775# include <assert.h>
9776#endif
9777
9778#undef pcap_dump_ftell
9779
9780/* Override any gcc2 internal prototype to avoid an error.  */
9781#ifdef __cplusplus
9782extern "C"
9783{
9784#endif
9785/* We use char because int might match the return type of a gcc2
9786   builtin and then its argument prototype would still apply.  */
9787char pcap_dump_ftell ();
9788/* The GNU C library defines this for functions which it implements
9789    to always fail with ENOSYS.  Some functions are actually named
9790    something starting with __ and the normal name is an alias.  */
9791#if defined (__stub_pcap_dump_ftell) || defined (__stub___pcap_dump_ftell)
9792choke me
9793#else
9794char (*f) () = pcap_dump_ftell;
9795#endif
9796#ifdef __cplusplus
9797}
9798#endif
9799
9800int
9801main ()
9802{
9803return f != pcap_dump_ftell;
9804  ;
9805  return 0;
9806}
9807_ACEOF
9808rm -f conftest.$ac_objext conftest$ac_exeext
9809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810  (eval $ac_link) 2>conftest.er1
9811  ac_status=$?
9812  grep -v '^ *+' conftest.er1 >conftest.err
9813  rm -f conftest.er1
9814  cat conftest.err >&5
9815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816  (exit $ac_status); } &&
9817	 { ac_try='test -z "$ac_c_werror_flag"
9818			 || test ! -s conftest.err'
9819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820  (eval $ac_try) 2>&5
9821  ac_status=$?
9822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823  (exit $ac_status); }; } &&
9824	 { ac_try='test -s conftest$ac_exeext'
9825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826  (eval $ac_try) 2>&5
9827  ac_status=$?
9828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829  (exit $ac_status); }; }; then
9830  ac_cv_func_pcap_dump_ftell=yes
9831else
9832  echo "$as_me: failed program was:" >&5
9833sed 's/^/| /' conftest.$ac_ext >&5
9834
9835ac_cv_func_pcap_dump_ftell=no
9836fi
9837rm -f conftest.err conftest.$ac_objext \
9838      conftest$ac_exeext conftest.$ac_ext
9839fi
9840echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9841echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6
9842if test $ac_cv_func_pcap_dump_ftell = yes; then
9843  cat >>confdefs.h <<\_ACEOF
9844#define HAVE_PCAP_DUMP_FTELL 1
9845_ACEOF
9846
9847else
9848
9849	    case $LIBOBJS in
9850    "pcap_dump_ftell.$ac_objext"   | \
9851  *" pcap_dump_ftell.$ac_objext"   | \
9852    "pcap_dump_ftell.$ac_objext "* | \
9853  *" pcap_dump_ftell.$ac_objext "* ) ;;
9854  *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" ;;
9855esac
9856
9857
9858fi
9859
9860
9861
9862#
9863# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
9864# libraries (e.g., "-lsocket -lnsl" on Solaris).
9865#
9866# We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
9867# use AC_CHECK_FUNC which doesn't let us specify the right #includes
9868# to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
9869# resolver, and the way it defines inet_{ntop,pton} is rather strange;
9870# it does not ship with a libc symbol "inet_ntop()", it ships with
9871# "_inet_ntop()", and has a #define macro in one of the system headers
9872# to rename it.
9873#
9874echo "$as_me:$LINENO: checking for inet_ntop" >&5
9875echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
9876cat >conftest.$ac_ext <<_ACEOF
9877/* confdefs.h.  */
9878_ACEOF
9879cat confdefs.h >>conftest.$ac_ext
9880cat >>conftest.$ac_ext <<_ACEOF
9881/* end confdefs.h.  */
9882#include <sys/types.h>
9883#include <sys/socket.h>
9884#include <netinet/in.h>
9885#include <arpa/inet.h>
9886int
9887main ()
9888{
9889char src[4], dst[128];
9890inet_ntop(AF_INET, src, dst, sizeof(dst));
9891  ;
9892  return 0;
9893}
9894_ACEOF
9895rm -f conftest.$ac_objext conftest$ac_exeext
9896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9897  (eval $ac_link) 2>conftest.er1
9898  ac_status=$?
9899  grep -v '^ *+' conftest.er1 >conftest.err
9900  rm -f conftest.er1
9901  cat conftest.err >&5
9902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903  (exit $ac_status); } &&
9904	 { ac_try='test -z "$ac_c_werror_flag"
9905			 || test ! -s conftest.err'
9906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907  (eval $ac_try) 2>&5
9908  ac_status=$?
9909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910  (exit $ac_status); }; } &&
9911	 { ac_try='test -s conftest$ac_exeext'
9912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913  (eval $ac_try) 2>&5
9914  ac_status=$?
9915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916  (exit $ac_status); }; }; then
9917  echo "$as_me:$LINENO: result: yes" >&5
9918echo "${ECHO_T}yes" >&6
9919else
9920  echo "$as_me: failed program was:" >&5
9921sed 's/^/| /' conftest.$ac_ext >&5
9922
9923echo "$as_me:$LINENO: result: no" >&5
9924echo "${ECHO_T}no" >&6
9925	case $LIBOBJS in
9926    "inet_ntop.$ac_objext"   | \
9927  *" inet_ntop.$ac_objext"   | \
9928    "inet_ntop.$ac_objext "* | \
9929  *" inet_ntop.$ac_objext "* ) ;;
9930  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" ;;
9931esac
9932
9933fi
9934rm -f conftest.err conftest.$ac_objext \
9935      conftest$ac_exeext conftest.$ac_ext
9936echo "$as_me:$LINENO: checking for inet_pton" >&5
9937echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
9938cat >conftest.$ac_ext <<_ACEOF
9939/* confdefs.h.  */
9940_ACEOF
9941cat confdefs.h >>conftest.$ac_ext
9942cat >>conftest.$ac_ext <<_ACEOF
9943/* end confdefs.h.  */
9944#include <sys/types.h>
9945#include <sys/socket.h>
9946#include <netinet/in.h>
9947#include <arpa/inet.h>
9948int
9949main ()
9950{
9951char src[128], dst[4];
9952inet_pton(AF_INET, src, dst);
9953  ;
9954  return 0;
9955}
9956_ACEOF
9957rm -f conftest.$ac_objext conftest$ac_exeext
9958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959  (eval $ac_link) 2>conftest.er1
9960  ac_status=$?
9961  grep -v '^ *+' conftest.er1 >conftest.err
9962  rm -f conftest.er1
9963  cat conftest.err >&5
9964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965  (exit $ac_status); } &&
9966	 { ac_try='test -z "$ac_c_werror_flag"
9967			 || test ! -s conftest.err'
9968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969  (eval $ac_try) 2>&5
9970  ac_status=$?
9971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972  (exit $ac_status); }; } &&
9973	 { ac_try='test -s conftest$ac_exeext'
9974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975  (eval $ac_try) 2>&5
9976  ac_status=$?
9977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978  (exit $ac_status); }; }; then
9979  echo "$as_me:$LINENO: result: yes" >&5
9980echo "${ECHO_T}yes" >&6
9981else
9982  echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
9985echo "$as_me:$LINENO: result: no" >&5
9986echo "${ECHO_T}no" >&6
9987	case $LIBOBJS in
9988    "inet_pton.$ac_objext"   | \
9989  *" inet_pton.$ac_objext"   | \
9990    "inet_pton.$ac_objext "* | \
9991  *" inet_pton.$ac_objext "* ) ;;
9992  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" ;;
9993esac
9994
9995fi
9996rm -f conftest.err conftest.$ac_objext \
9997      conftest$ac_exeext conftest.$ac_ext
9998echo "$as_me:$LINENO: checking for inet_aton" >&5
9999echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
10000cat >conftest.$ac_ext <<_ACEOF
10001/* confdefs.h.  */
10002_ACEOF
10003cat confdefs.h >>conftest.$ac_ext
10004cat >>conftest.$ac_ext <<_ACEOF
10005/* end confdefs.h.  */
10006#include <sys/types.h>
10007#include <netinet/in.h>
10008#include <arpa/inet.h>
10009int
10010main ()
10011{
10012char src[128];
10013struct in_addr dst;
10014inet_aton(src, &dst);
10015  ;
10016  return 0;
10017}
10018_ACEOF
10019rm -f conftest.$ac_objext conftest$ac_exeext
10020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021  (eval $ac_link) 2>conftest.er1
10022  ac_status=$?
10023  grep -v '^ *+' conftest.er1 >conftest.err
10024  rm -f conftest.er1
10025  cat conftest.err >&5
10026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027  (exit $ac_status); } &&
10028	 { ac_try='test -z "$ac_c_werror_flag"
10029			 || test ! -s conftest.err'
10030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031  (eval $ac_try) 2>&5
10032  ac_status=$?
10033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034  (exit $ac_status); }; } &&
10035	 { ac_try='test -s conftest$ac_exeext'
10036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037  (eval $ac_try) 2>&5
10038  ac_status=$?
10039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040  (exit $ac_status); }; }; then
10041  echo "$as_me:$LINENO: result: yes" >&5
10042echo "${ECHO_T}yes" >&6
10043else
10044  echo "$as_me: failed program was:" >&5
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
10047echo "$as_me:$LINENO: result: no" >&5
10048echo "${ECHO_T}no" >&6
10049	case $LIBOBJS in
10050    "inet_aton.$ac_objext"   | \
10051  *" inet_aton.$ac_objext"   | \
10052    "inet_aton.$ac_objext "* | \
10053  *" inet_aton.$ac_objext "* ) ;;
10054  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
10055esac
10056
10057fi
10058rm -f conftest.err conftest.$ac_objext \
10059      conftest$ac_exeext conftest.$ac_ext
10060
10061#
10062# Check for these after AC_LBL_LIBPCAP, for the same reason.
10063#
10064# You are in a twisty little maze of UN*Xes, all different.
10065# Some might not have ether_ntohost().
10066# Some might have it, but not declare it in any header file.
10067# Some might have it, but declare it in <netinet/if_ether.h>.
10068# Some might have it, but declare it in <netinet/ether.h>
10069# (And some might have it but document it as something declared in
10070# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10071#
10072# Before you is a C compiler.
10073#
10074
10075for ac_func in ether_ntohost
10076do
10077as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10078echo "$as_me:$LINENO: checking for $ac_func" >&5
10079echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10080if eval "test \"\${$as_ac_var+set}\" = set"; then
10081  echo $ECHO_N "(cached) $ECHO_C" >&6
10082else
10083  cat >conftest.$ac_ext <<_ACEOF
10084/* confdefs.h.  */
10085_ACEOF
10086cat confdefs.h >>conftest.$ac_ext
10087cat >>conftest.$ac_ext <<_ACEOF
10088/* end confdefs.h.  */
10089/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10090   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10091#define $ac_func innocuous_$ac_func
10092
10093/* System header to define __stub macros and hopefully few prototypes,
10094    which can conflict with char $ac_func (); below.
10095    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10096    <limits.h> exists even on freestanding compilers.  */
10097
10098#ifdef __STDC__
10099# include <limits.h>
10100#else
10101# include <assert.h>
10102#endif
10103
10104#undef $ac_func
10105
10106/* Override any gcc2 internal prototype to avoid an error.  */
10107#ifdef __cplusplus
10108extern "C"
10109{
10110#endif
10111/* We use char because int might match the return type of a gcc2
10112   builtin and then its argument prototype would still apply.  */
10113char $ac_func ();
10114/* The GNU C library defines this for functions which it implements
10115    to always fail with ENOSYS.  Some functions are actually named
10116    something starting with __ and the normal name is an alias.  */
10117#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10118choke me
10119#else
10120char (*f) () = $ac_func;
10121#endif
10122#ifdef __cplusplus
10123}
10124#endif
10125
10126int
10127main ()
10128{
10129return f != $ac_func;
10130  ;
10131  return 0;
10132}
10133_ACEOF
10134rm -f conftest.$ac_objext conftest$ac_exeext
10135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136  (eval $ac_link) 2>conftest.er1
10137  ac_status=$?
10138  grep -v '^ *+' conftest.er1 >conftest.err
10139  rm -f conftest.er1
10140  cat conftest.err >&5
10141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142  (exit $ac_status); } &&
10143	 { ac_try='test -z "$ac_c_werror_flag"
10144			 || test ! -s conftest.err'
10145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146  (eval $ac_try) 2>&5
10147  ac_status=$?
10148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149  (exit $ac_status); }; } &&
10150	 { ac_try='test -s conftest$ac_exeext'
10151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152  (eval $ac_try) 2>&5
10153  ac_status=$?
10154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155  (exit $ac_status); }; }; then
10156  eval "$as_ac_var=yes"
10157else
10158  echo "$as_me: failed program was:" >&5
10159sed 's/^/| /' conftest.$ac_ext >&5
10160
10161eval "$as_ac_var=no"
10162fi
10163rm -f conftest.err conftest.$ac_objext \
10164      conftest$ac_exeext conftest.$ac_ext
10165fi
10166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10167echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10168if test `eval echo '${'$as_ac_var'}'` = yes; then
10169  cat >>confdefs.h <<_ACEOF
10170#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10171_ACEOF
10172
10173    echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10174echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
10175if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10176  echo $ECHO_N "(cached) $ECHO_C" >&6
10177else
10178
10179	if test "$cross_compiling" = yes; then
10180  ac_cv_buggy_ether_ntohost="not while cross-compiling"
10181else
10182  cat >conftest.$ac_ext <<_ACEOF
10183/* confdefs.h.  */
10184_ACEOF
10185cat confdefs.h >>conftest.$ac_ext
10186cat >>conftest.$ac_ext <<_ACEOF
10187/* end confdefs.h.  */
10188
10189		#include <netdb.h>
10190		#include <sys/types.h>
10191		#include <sys/param.h>
10192		#include <sys/socket.h>
10193
10194		int
10195		main(int argc, char **argv)
10196		{
10197			u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10198			char name[MAXHOSTNAMELEN];
10199
10200			ether_ntohost(name, (struct ether_addr *)ea);
10201			exit(0);
10202		}
10203
10204_ACEOF
10205rm -f conftest$ac_exeext
10206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10207  (eval $ac_link) 2>&5
10208  ac_status=$?
10209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212  (eval $ac_try) 2>&5
10213  ac_status=$?
10214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215  (exit $ac_status); }; }; then
10216  ac_cv_buggy_ether_ntohost=no
10217else
10218  echo "$as_me: program exited with status $ac_status" >&5
10219echo "$as_me: failed program was:" >&5
10220sed 's/^/| /' conftest.$ac_ext >&5
10221
10222( exit $ac_status )
10223ac_cv_buggy_ether_ntohost=yes
10224fi
10225rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10226fi
10227fi
10228echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10229echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
10230    if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10231	cat >>confdefs.h <<\_ACEOF
10232#define USE_ETHER_NTOHOST 1
10233_ACEOF
10234
10235    fi
10236
10237fi
10238done
10239
10240if test "$ac_cv_func_ether_ntohost" = yes -a \
10241    "$ac_cv_buggy_ether_ntohost" = "no"; then
10242	#
10243	# OK, we have ether_ntohost().  Do we have <netinet/if_ether.h>?
10244	#
10245	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10246		#
10247		# Yes.  Does it declare ether_ntohost()?
10248		#
10249		echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10250echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10251if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10252  echo $ECHO_N "(cached) $ECHO_C" >&6
10253else
10254  cat >conftest.$ac_ext <<_ACEOF
10255/* confdefs.h.  */
10256_ACEOF
10257cat confdefs.h >>conftest.$ac_ext
10258cat >>conftest.$ac_ext <<_ACEOF
10259/* end confdefs.h.  */
10260
10261#include <sys/types.h>
10262#include <sys/socket.h>
10263#include <netinet/in.h>
10264#include <arpa/inet.h>
10265struct mbuf;
10266struct rtentry;
10267#include <net/if.h>
10268#include <netinet/if_ether.h>
10269
10270
10271int
10272main ()
10273{
10274#ifndef ether_ntohost
10275  char *p = (char *) ether_ntohost;
10276#endif
10277
10278  ;
10279  return 0;
10280}
10281_ACEOF
10282rm -f conftest.$ac_objext
10283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10284  (eval $ac_compile) 2>conftest.er1
10285  ac_status=$?
10286  grep -v '^ *+' conftest.er1 >conftest.err
10287  rm -f conftest.er1
10288  cat conftest.err >&5
10289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290  (exit $ac_status); } &&
10291	 { ac_try='test -z "$ac_c_werror_flag"
10292			 || test ! -s conftest.err'
10293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294  (eval $ac_try) 2>&5
10295  ac_status=$?
10296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297  (exit $ac_status); }; } &&
10298	 { ac_try='test -s conftest.$ac_objext'
10299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300  (eval $ac_try) 2>&5
10301  ac_status=$?
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); }; }; then
10304  ac_cv_have_decl_ether_ntohost=yes
10305else
10306  echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
10309ac_cv_have_decl_ether_ntohost=no
10310fi
10311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10312fi
10313echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10314echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10315if test $ac_cv_have_decl_ether_ntohost = yes; then
10316
10317
10318cat >>confdefs.h <<\_ACEOF
10319#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10320_ACEOF
10321
10322
10323fi
10324
10325	fi
10326	#
10327	# Did that succeed?
10328	#
10329	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10330		#
10331		# No, how about <netinet/ether.h>, as on Linux?
10332		#
10333
10334for ac_header in netinet/ether.h
10335do
10336as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10337if eval "test \"\${$as_ac_Header+set}\" = set"; then
10338  echo "$as_me:$LINENO: checking for $ac_header" >&5
10339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10340if eval "test \"\${$as_ac_Header+set}\" = set"; then
10341  echo $ECHO_N "(cached) $ECHO_C" >&6
10342fi
10343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10345else
10346  # Is the header compilable?
10347echo "$as_me:$LINENO: checking $ac_header usability" >&5
10348echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10349cat >conftest.$ac_ext <<_ACEOF
10350/* confdefs.h.  */
10351_ACEOF
10352cat confdefs.h >>conftest.$ac_ext
10353cat >>conftest.$ac_ext <<_ACEOF
10354/* end confdefs.h.  */
10355$ac_includes_default
10356#include <$ac_header>
10357_ACEOF
10358rm -f conftest.$ac_objext
10359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10360  (eval $ac_compile) 2>conftest.er1
10361  ac_status=$?
10362  grep -v '^ *+' conftest.er1 >conftest.err
10363  rm -f conftest.er1
10364  cat conftest.err >&5
10365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366  (exit $ac_status); } &&
10367	 { ac_try='test -z "$ac_c_werror_flag"
10368			 || test ! -s conftest.err'
10369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370  (eval $ac_try) 2>&5
10371  ac_status=$?
10372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373  (exit $ac_status); }; } &&
10374	 { ac_try='test -s conftest.$ac_objext'
10375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376  (eval $ac_try) 2>&5
10377  ac_status=$?
10378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379  (exit $ac_status); }; }; then
10380  ac_header_compiler=yes
10381else
10382  echo "$as_me: failed program was:" >&5
10383sed 's/^/| /' conftest.$ac_ext >&5
10384
10385ac_header_compiler=no
10386fi
10387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10388echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10389echo "${ECHO_T}$ac_header_compiler" >&6
10390
10391# Is the header present?
10392echo "$as_me:$LINENO: checking $ac_header presence" >&5
10393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10394cat >conftest.$ac_ext <<_ACEOF
10395/* confdefs.h.  */
10396_ACEOF
10397cat confdefs.h >>conftest.$ac_ext
10398cat >>conftest.$ac_ext <<_ACEOF
10399/* end confdefs.h.  */
10400#include <$ac_header>
10401_ACEOF
10402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10403  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10404  ac_status=$?
10405  grep -v '^ *+' conftest.er1 >conftest.err
10406  rm -f conftest.er1
10407  cat conftest.err >&5
10408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409  (exit $ac_status); } >/dev/null; then
10410  if test -s conftest.err; then
10411    ac_cpp_err=$ac_c_preproc_warn_flag
10412    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10413  else
10414    ac_cpp_err=
10415  fi
10416else
10417  ac_cpp_err=yes
10418fi
10419if test -z "$ac_cpp_err"; then
10420  ac_header_preproc=yes
10421else
10422  echo "$as_me: failed program was:" >&5
10423sed 's/^/| /' conftest.$ac_ext >&5
10424
10425  ac_header_preproc=no
10426fi
10427rm -f conftest.err conftest.$ac_ext
10428echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10429echo "${ECHO_T}$ac_header_preproc" >&6
10430
10431# So?  What about this header?
10432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10433  yes:no: )
10434    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10436    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10437echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10438    ac_header_preproc=yes
10439    ;;
10440  no:yes:* )
10441    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10443    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10444echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10445    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10446echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10447    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10448echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10449    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10451    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10452echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10453    (
10454      cat <<\_ASBOX
10455## ------------------------------------------ ##
10456## Report this to the AC_PACKAGE_NAME lists.  ##
10457## ------------------------------------------ ##
10458_ASBOX
10459    ) |
10460      sed "s/^/$as_me: WARNING:     /" >&2
10461    ;;
10462esac
10463echo "$as_me:$LINENO: checking for $ac_header" >&5
10464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10465if eval "test \"\${$as_ac_Header+set}\" = set"; then
10466  echo $ECHO_N "(cached) $ECHO_C" >&6
10467else
10468  eval "$as_ac_Header=\$ac_header_preproc"
10469fi
10470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10472
10473fi
10474if test `eval echo '${'$as_ac_Header'}'` = yes; then
10475  cat >>confdefs.h <<_ACEOF
10476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10477_ACEOF
10478
10479fi
10480
10481done
10482
10483		if test "$ac_cv_header_netinet_ether_h" = yes; then
10484			#
10485			# We have it - does it declare ether_ntohost()?
10486			# Unset ac_cv_have_decl_ether_ntohost so we don't
10487			# treat the previous failure as a cached value and
10488			# suppress the next test.
10489			#
10490			unset ac_cv_have_decl_ether_ntohost
10491			echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10492echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10493if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10494  echo $ECHO_N "(cached) $ECHO_C" >&6
10495else
10496  cat >conftest.$ac_ext <<_ACEOF
10497/* confdefs.h.  */
10498_ACEOF
10499cat confdefs.h >>conftest.$ac_ext
10500cat >>conftest.$ac_ext <<_ACEOF
10501/* end confdefs.h.  */
10502
10503#include <netinet/ether.h>
10504
10505
10506int
10507main ()
10508{
10509#ifndef ether_ntohost
10510  char *p = (char *) ether_ntohost;
10511#endif
10512
10513  ;
10514  return 0;
10515}
10516_ACEOF
10517rm -f conftest.$ac_objext
10518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10519  (eval $ac_compile) 2>conftest.er1
10520  ac_status=$?
10521  grep -v '^ *+' conftest.er1 >conftest.err
10522  rm -f conftest.er1
10523  cat conftest.err >&5
10524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525  (exit $ac_status); } &&
10526	 { ac_try='test -z "$ac_c_werror_flag"
10527			 || test ! -s conftest.err'
10528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529  (eval $ac_try) 2>&5
10530  ac_status=$?
10531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532  (exit $ac_status); }; } &&
10533	 { ac_try='test -s conftest.$ac_objext'
10534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535  (eval $ac_try) 2>&5
10536  ac_status=$?
10537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538  (exit $ac_status); }; }; then
10539  ac_cv_have_decl_ether_ntohost=yes
10540else
10541  echo "$as_me: failed program was:" >&5
10542sed 's/^/| /' conftest.$ac_ext >&5
10543
10544ac_cv_have_decl_ether_ntohost=no
10545fi
10546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10547fi
10548echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10549echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10550if test $ac_cv_have_decl_ether_ntohost = yes; then
10551
10552
10553cat >>confdefs.h <<\_ACEOF
10554#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10555_ACEOF
10556
10557
10558fi
10559
10560		fi
10561	fi
10562	#
10563	# Is ether_ntohost() declared?
10564	#
10565	if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10566		#
10567		# No, we'll have to declare it ourselves.
10568		# Do we have "struct ether_addr"?
10569		#
10570		echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10571echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
10572if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10573  echo $ECHO_N "(cached) $ECHO_C" >&6
10574else
10575  cat >conftest.$ac_ext <<_ACEOF
10576/* confdefs.h.  */
10577_ACEOF
10578cat confdefs.h >>conftest.$ac_ext
10579cat >>conftest.$ac_ext <<_ACEOF
10580/* end confdefs.h.  */
10581
10582#include <sys/types.h>
10583#include <sys/socket.h>
10584#include <netinet/in.h>
10585#include <arpa/inet.h>
10586struct mbuf;
10587struct rtentry;
10588#include <net/if.h>
10589#include <netinet/if_ether.h>
10590
10591
10592int
10593main ()
10594{
10595if ((struct ether_addr *) 0)
10596  return 0;
10597if (sizeof (struct ether_addr))
10598  return 0;
10599  ;
10600  return 0;
10601}
10602_ACEOF
10603rm -f conftest.$ac_objext
10604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10605  (eval $ac_compile) 2>conftest.er1
10606  ac_status=$?
10607  grep -v '^ *+' conftest.er1 >conftest.err
10608  rm -f conftest.er1
10609  cat conftest.err >&5
10610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611  (exit $ac_status); } &&
10612	 { ac_try='test -z "$ac_c_werror_flag"
10613			 || test ! -s conftest.err'
10614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615  (eval $ac_try) 2>&5
10616  ac_status=$?
10617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618  (exit $ac_status); }; } &&
10619	 { ac_try='test -s conftest.$ac_objext'
10620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621  (eval $ac_try) 2>&5
10622  ac_status=$?
10623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624  (exit $ac_status); }; }; then
10625  ac_cv_type_struct_ether_addr=yes
10626else
10627  echo "$as_me: failed program was:" >&5
10628sed 's/^/| /' conftest.$ac_ext >&5
10629
10630ac_cv_type_struct_ether_addr=no
10631fi
10632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10633fi
10634echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10635echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
10636if test $ac_cv_type_struct_ether_addr = yes; then
10637
10638cat >>confdefs.h <<_ACEOF
10639#define HAVE_STRUCT_ETHER_ADDR 1
10640_ACEOF
10641
10642
10643fi
10644
10645
10646cat >>confdefs.h <<\_ACEOF
10647#define HAVE_DECL_ETHER_NTOHOST 0
10648_ACEOF
10649
10650	else
10651
10652cat >>confdefs.h <<\_ACEOF
10653#define HAVE_DECL_ETHER_NTOHOST 1
10654_ACEOF
10655
10656	fi
10657fi
10658
10659
10660	echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10661echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10662	if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10663  echo $ECHO_N "(cached) $ECHO_C" >&6
10664else
10665  cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h.  */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h.  */
10671
10672#		include <sys/types.h>
10673#		include <sys/socket.h>
10674int
10675main ()
10676{
10677u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10678  ;
10679  return 0;
10680}
10681_ACEOF
10682rm -f conftest.$ac_objext
10683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10684  (eval $ac_compile) 2>conftest.er1
10685  ac_status=$?
10686  grep -v '^ *+' conftest.er1 >conftest.err
10687  rm -f conftest.er1
10688  cat conftest.err >&5
10689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690  (exit $ac_status); } &&
10691	 { ac_try='test -z "$ac_c_werror_flag"
10692			 || test ! -s conftest.err'
10693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694  (eval $ac_try) 2>&5
10695  ac_status=$?
10696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697  (exit $ac_status); }; } &&
10698	 { ac_try='test -s conftest.$ac_objext'
10699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700  (eval $ac_try) 2>&5
10701  ac_status=$?
10702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703  (exit $ac_status); }; }; then
10704  ac_cv_sockaddr_has_sa_len=yes
10705else
10706  echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
10709ac_cv_sockaddr_has_sa_len=no
10710fi
10711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10712fi
10713
10714	echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10715echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
10716		if test $ac_cv_sockaddr_has_sa_len = yes ; then
10717			cat >>confdefs.h <<\_ACEOF
10718#define HAVE_SOCKADDR_SA_LEN 1
10719_ACEOF
10720
10721	fi
10722
10723if test "$ac_cv_sockaddr_has_sa_len" = no; then
10724	missing_includes=yes
10725fi
10726
10727
10728
10729
10730for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
10731do
10732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10733echo "$as_me:$LINENO: checking for $ac_func" >&5
10734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10735if eval "test \"\${$as_ac_var+set}\" = set"; then
10736  echo $ECHO_N "(cached) $ECHO_C" >&6
10737else
10738  cat >conftest.$ac_ext <<_ACEOF
10739/* confdefs.h.  */
10740_ACEOF
10741cat confdefs.h >>conftest.$ac_ext
10742cat >>conftest.$ac_ext <<_ACEOF
10743/* end confdefs.h.  */
10744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10745   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10746#define $ac_func innocuous_$ac_func
10747
10748/* System header to define __stub macros and hopefully few prototypes,
10749    which can conflict with char $ac_func (); below.
10750    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10751    <limits.h> exists even on freestanding compilers.  */
10752
10753#ifdef __STDC__
10754# include <limits.h>
10755#else
10756# include <assert.h>
10757#endif
10758
10759#undef $ac_func
10760
10761/* Override any gcc2 internal prototype to avoid an error.  */
10762#ifdef __cplusplus
10763extern "C"
10764{
10765#endif
10766/* We use char because int might match the return type of a gcc2
10767   builtin and then its argument prototype would still apply.  */
10768char $ac_func ();
10769/* The GNU C library defines this for functions which it implements
10770    to always fail with ENOSYS.  Some functions are actually named
10771    something starting with __ and the normal name is an alias.  */
10772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10773choke me
10774#else
10775char (*f) () = $ac_func;
10776#endif
10777#ifdef __cplusplus
10778}
10779#endif
10780
10781int
10782main ()
10783{
10784return f != $ac_func;
10785  ;
10786  return 0;
10787}
10788_ACEOF
10789rm -f conftest.$ac_objext conftest$ac_exeext
10790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10791  (eval $ac_link) 2>conftest.er1
10792  ac_status=$?
10793  grep -v '^ *+' conftest.er1 >conftest.err
10794  rm -f conftest.er1
10795  cat conftest.err >&5
10796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797  (exit $ac_status); } &&
10798	 { ac_try='test -z "$ac_c_werror_flag"
10799			 || test ! -s conftest.err'
10800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801  (eval $ac_try) 2>&5
10802  ac_status=$?
10803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804  (exit $ac_status); }; } &&
10805	 { ac_try='test -s conftest$ac_exeext'
10806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807  (eval $ac_try) 2>&5
10808  ac_status=$?
10809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810  (exit $ac_status); }; }; then
10811  eval "$as_ac_var=yes"
10812else
10813  echo "$as_me: failed program was:" >&5
10814sed 's/^/| /' conftest.$ac_ext >&5
10815
10816eval "$as_ac_var=no"
10817fi
10818rm -f conftest.err conftest.$ac_objext \
10819      conftest$ac_exeext conftest.$ac_ext
10820fi
10821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10823if test `eval echo '${'$as_ac_var'}'` = yes; then
10824  cat >>confdefs.h <<_ACEOF
10825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10826_ACEOF
10827
10828fi
10829done
10830
10831if test $ac_cv_func_pcap_findalldevs = "yes" ; then
10832    savedcflags="$CFLAGS"
10833    CFLAGS="$CFLAGS $V_INCLS"
10834    echo "$as_me:$LINENO: checking for pcap_if_t" >&5
10835echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
10836if test "${ac_cv_type_pcap_if_t+set}" = set; then
10837  echo $ECHO_N "(cached) $ECHO_C" >&6
10838else
10839  cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h.  */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h.  */
10845#include <pcap.h>
10846
10847int
10848main ()
10849{
10850if ((pcap_if_t *) 0)
10851  return 0;
10852if (sizeof (pcap_if_t))
10853  return 0;
10854  ;
10855  return 0;
10856}
10857_ACEOF
10858rm -f conftest.$ac_objext
10859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10860  (eval $ac_compile) 2>conftest.er1
10861  ac_status=$?
10862  grep -v '^ *+' conftest.er1 >conftest.err
10863  rm -f conftest.er1
10864  cat conftest.err >&5
10865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866  (exit $ac_status); } &&
10867	 { ac_try='test -z "$ac_c_werror_flag"
10868			 || test ! -s conftest.err'
10869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870  (eval $ac_try) 2>&5
10871  ac_status=$?
10872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873  (exit $ac_status); }; } &&
10874	 { ac_try='test -s conftest.$ac_objext'
10875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876  (eval $ac_try) 2>&5
10877  ac_status=$?
10878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879  (exit $ac_status); }; }; then
10880  ac_cv_type_pcap_if_t=yes
10881else
10882  echo "$as_me: failed program was:" >&5
10883sed 's/^/| /' conftest.$ac_ext >&5
10884
10885ac_cv_type_pcap_if_t=no
10886fi
10887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10888fi
10889echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
10890echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
10891if test $ac_cv_type_pcap_if_t = yes; then
10892
10893cat >>confdefs.h <<_ACEOF
10894#define HAVE_PCAP_IF_T 1
10895_ACEOF
10896
10897
10898fi
10899
10900    CFLAGS="$savedcflags"
10901fi
10902
10903if test $ac_cv_func_pcap_lib_version = "no" ; then
10904    echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
10905echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
10906    cat >conftest.$ac_ext <<_ACEOF
10907/* confdefs.h.  */
10908_ACEOF
10909cat confdefs.h >>conftest.$ac_ext
10910cat >>conftest.$ac_ext <<_ACEOF
10911/* end confdefs.h.  */
10912
10913int
10914main ()
10915{
10916
10917	extern char pcap_version[];
10918
10919	return (int)pcap_version;
10920
10921  ;
10922  return 0;
10923}
10924_ACEOF
10925rm -f conftest.$ac_objext conftest$ac_exeext
10926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10927  (eval $ac_link) 2>conftest.er1
10928  ac_status=$?
10929  grep -v '^ *+' conftest.er1 >conftest.err
10930  rm -f conftest.er1
10931  cat conftest.err >&5
10932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933  (exit $ac_status); } &&
10934	 { ac_try='test -z "$ac_c_werror_flag"
10935			 || test ! -s conftest.err'
10936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937  (eval $ac_try) 2>&5
10938  ac_status=$?
10939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940  (exit $ac_status); }; } &&
10941	 { ac_try='test -s conftest$ac_exeext'
10942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943  (eval $ac_try) 2>&5
10944  ac_status=$?
10945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946  (exit $ac_status); }; }; then
10947  ac_lbl_cv_pcap_version_defined=yes
10948else
10949  echo "$as_me: failed program was:" >&5
10950sed 's/^/| /' conftest.$ac_ext >&5
10951
10952ac_lbl_cv_pcap_version_defined=no
10953fi
10954rm -f conftest.err conftest.$ac_objext \
10955      conftest$ac_exeext conftest.$ac_ext
10956    if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
10957    	echo "$as_me:$LINENO: result: yes" >&5
10958echo "${ECHO_T}yes" >&6
10959	cat >>confdefs.h <<\_ACEOF
10960#define HAVE_PCAP_VERSION 1
10961_ACEOF
10962
10963    else
10964	echo "$as_me:$LINENO: result: no" >&5
10965echo "${ECHO_T}no" >&6
10966    fi
10967fi
10968echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
10969echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
10970cat >conftest.$ac_ext <<_ACEOF
10971/* confdefs.h.  */
10972_ACEOF
10973cat confdefs.h >>conftest.$ac_ext
10974cat >>conftest.$ac_ext <<_ACEOF
10975/* end confdefs.h.  */
10976
10977int
10978main ()
10979{
10980
10981	extern int pcap_debug;
10982
10983	return pcap_debug;
10984
10985  ;
10986  return 0;
10987}
10988_ACEOF
10989rm -f conftest.$ac_objext conftest$ac_exeext
10990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991  (eval $ac_link) 2>conftest.er1
10992  ac_status=$?
10993  grep -v '^ *+' conftest.er1 >conftest.err
10994  rm -f conftest.er1
10995  cat conftest.err >&5
10996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997  (exit $ac_status); } &&
10998	 { ac_try='test -z "$ac_c_werror_flag"
10999			 || test ! -s conftest.err'
11000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001  (eval $ac_try) 2>&5
11002  ac_status=$?
11003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004  (exit $ac_status); }; } &&
11005	 { ac_try='test -s conftest$ac_exeext'
11006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007  (eval $ac_try) 2>&5
11008  ac_status=$?
11009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010  (exit $ac_status); }; }; then
11011  ac_lbl_cv_pcap_debug_defined=yes
11012else
11013  echo "$as_me: failed program was:" >&5
11014sed 's/^/| /' conftest.$ac_ext >&5
11015
11016ac_lbl_cv_pcap_debug_defined=no
11017fi
11018rm -f conftest.err conftest.$ac_objext \
11019      conftest$ac_exeext conftest.$ac_ext
11020if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11021	echo "$as_me:$LINENO: result: yes" >&5
11022echo "${ECHO_T}yes" >&6
11023	cat >>confdefs.h <<\_ACEOF
11024#define HAVE_PCAP_DEBUG 1
11025_ACEOF
11026
11027else
11028	echo "$as_me:$LINENO: result: no" >&5
11029echo "${ECHO_T}no" >&6
11030	#
11031	# OK, what about "yydebug"?
11032	#
11033	echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11034echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
11035	cat >conftest.$ac_ext <<_ACEOF
11036/* confdefs.h.  */
11037_ACEOF
11038cat confdefs.h >>conftest.$ac_ext
11039cat >>conftest.$ac_ext <<_ACEOF
11040/* end confdefs.h.  */
11041
11042int
11043main ()
11044{
11045
11046		extern int yydebug;
11047
11048		return yydebug;
11049
11050  ;
11051  return 0;
11052}
11053_ACEOF
11054rm -f conftest.$ac_objext conftest$ac_exeext
11055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11056  (eval $ac_link) 2>conftest.er1
11057  ac_status=$?
11058  grep -v '^ *+' conftest.er1 >conftest.err
11059  rm -f conftest.er1
11060  cat conftest.err >&5
11061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062  (exit $ac_status); } &&
11063	 { ac_try='test -z "$ac_c_werror_flag"
11064			 || test ! -s conftest.err'
11065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066  (eval $ac_try) 2>&5
11067  ac_status=$?
11068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069  (exit $ac_status); }; } &&
11070	 { ac_try='test -s conftest$ac_exeext'
11071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072  (eval $ac_try) 2>&5
11073  ac_status=$?
11074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075  (exit $ac_status); }; }; then
11076  ac_lbl_cv_yydebug_defined=yes
11077else
11078  echo "$as_me: failed program was:" >&5
11079sed 's/^/| /' conftest.$ac_ext >&5
11080
11081ac_lbl_cv_yydebug_defined=no
11082fi
11083rm -f conftest.err conftest.$ac_objext \
11084      conftest$ac_exeext conftest.$ac_ext
11085	if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11086		echo "$as_me:$LINENO: result: yes" >&5
11087echo "${ECHO_T}yes" >&6
11088		cat >>confdefs.h <<\_ACEOF
11089#define HAVE_YYDEBUG 1
11090_ACEOF
11091
11092	else
11093		echo "$as_me:$LINENO: result: no" >&5
11094echo "${ECHO_T}no" >&6
11095	fi
11096fi
11097
11098for ac_func in bpf_dump
11099do
11100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11101echo "$as_me:$LINENO: checking for $ac_func" >&5
11102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11103if eval "test \"\${$as_ac_var+set}\" = set"; then
11104  echo $ECHO_N "(cached) $ECHO_C" >&6
11105else
11106  cat >conftest.$ac_ext <<_ACEOF
11107/* confdefs.h.  */
11108_ACEOF
11109cat confdefs.h >>conftest.$ac_ext
11110cat >>conftest.$ac_ext <<_ACEOF
11111/* end confdefs.h.  */
11112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11113   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11114#define $ac_func innocuous_$ac_func
11115
11116/* System header to define __stub macros and hopefully few prototypes,
11117    which can conflict with char $ac_func (); below.
11118    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11119    <limits.h> exists even on freestanding compilers.  */
11120
11121#ifdef __STDC__
11122# include <limits.h>
11123#else
11124# include <assert.h>
11125#endif
11126
11127#undef $ac_func
11128
11129/* Override any gcc2 internal prototype to avoid an error.  */
11130#ifdef __cplusplus
11131extern "C"
11132{
11133#endif
11134/* We use char because int might match the return type of a gcc2
11135   builtin and then its argument prototype would still apply.  */
11136char $ac_func ();
11137/* The GNU C library defines this for functions which it implements
11138    to always fail with ENOSYS.  Some functions are actually named
11139    something starting with __ and the normal name is an alias.  */
11140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11141choke me
11142#else
11143char (*f) () = $ac_func;
11144#endif
11145#ifdef __cplusplus
11146}
11147#endif
11148
11149int
11150main ()
11151{
11152return f != $ac_func;
11153  ;
11154  return 0;
11155}
11156_ACEOF
11157rm -f conftest.$ac_objext conftest$ac_exeext
11158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11159  (eval $ac_link) 2>conftest.er1
11160  ac_status=$?
11161  grep -v '^ *+' conftest.er1 >conftest.err
11162  rm -f conftest.er1
11163  cat conftest.err >&5
11164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165  (exit $ac_status); } &&
11166	 { ac_try='test -z "$ac_c_werror_flag"
11167			 || test ! -s conftest.err'
11168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169  (eval $ac_try) 2>&5
11170  ac_status=$?
11171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172  (exit $ac_status); }; } &&
11173	 { ac_try='test -s conftest$ac_exeext'
11174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175  (eval $ac_try) 2>&5
11176  ac_status=$?
11177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178  (exit $ac_status); }; }; then
11179  eval "$as_ac_var=yes"
11180else
11181  echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
11184eval "$as_ac_var=no"
11185fi
11186rm -f conftest.err conftest.$ac_objext \
11187      conftest$ac_exeext conftest.$ac_ext
11188fi
11189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11190echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11191if test `eval echo '${'$as_ac_var'}'` = yes; then
11192  cat >>confdefs.h <<_ACEOF
11193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11194_ACEOF
11195
11196else
11197  case $LIBOBJS in
11198    "$ac_func.$ac_objext"   | \
11199  *" $ac_func.$ac_objext"   | \
11200    "$ac_func.$ac_objext "* | \
11201  *" $ac_func.$ac_objext "* ) ;;
11202  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
11203esac
11204
11205fi
11206done
11207
11208
11209V_GROUP=0
11210if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11211	V_GROUP=wheel
11212fi
11213case "$host_os" in
11214
11215aix*)
11216		cat >>confdefs.h <<\_ACEOF
11217#define _SUN 1
11218_ACEOF
11219
11220	;;
11221
11222irix*)
11223	V_GROUP=sys
11224	;;
11225
11226osf*)
11227	V_GROUP=system
11228	;;
11229
11230solaris*)
11231	V_GROUP=sys
11232	;;
11233esac
11234
11235if test -f /dev/bpf0 ; then
11236	V_GROUP=bpf
11237fi
11238
11239
11240for ac_header in sys/bitypes.h
11241do
11242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11243if eval "test \"\${$as_ac_Header+set}\" = set"; then
11244  echo "$as_me:$LINENO: checking for $ac_header" >&5
11245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11246if eval "test \"\${$as_ac_Header+set}\" = set"; then
11247  echo $ECHO_N "(cached) $ECHO_C" >&6
11248fi
11249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11251else
11252  # Is the header compilable?
11253echo "$as_me:$LINENO: checking $ac_header usability" >&5
11254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11255cat >conftest.$ac_ext <<_ACEOF
11256/* confdefs.h.  */
11257_ACEOF
11258cat confdefs.h >>conftest.$ac_ext
11259cat >>conftest.$ac_ext <<_ACEOF
11260/* end confdefs.h.  */
11261$ac_includes_default
11262#include <$ac_header>
11263_ACEOF
11264rm -f conftest.$ac_objext
11265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11266  (eval $ac_compile) 2>conftest.er1
11267  ac_status=$?
11268  grep -v '^ *+' conftest.er1 >conftest.err
11269  rm -f conftest.er1
11270  cat conftest.err >&5
11271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272  (exit $ac_status); } &&
11273	 { ac_try='test -z "$ac_c_werror_flag"
11274			 || test ! -s conftest.err'
11275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276  (eval $ac_try) 2>&5
11277  ac_status=$?
11278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279  (exit $ac_status); }; } &&
11280	 { ac_try='test -s conftest.$ac_objext'
11281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282  (eval $ac_try) 2>&5
11283  ac_status=$?
11284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285  (exit $ac_status); }; }; then
11286  ac_header_compiler=yes
11287else
11288  echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
11291ac_header_compiler=no
11292fi
11293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11294echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295echo "${ECHO_T}$ac_header_compiler" >&6
11296
11297# Is the header present?
11298echo "$as_me:$LINENO: checking $ac_header presence" >&5
11299echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11300cat >conftest.$ac_ext <<_ACEOF
11301/* confdefs.h.  */
11302_ACEOF
11303cat confdefs.h >>conftest.$ac_ext
11304cat >>conftest.$ac_ext <<_ACEOF
11305/* end confdefs.h.  */
11306#include <$ac_header>
11307_ACEOF
11308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11309  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11310  ac_status=$?
11311  grep -v '^ *+' conftest.er1 >conftest.err
11312  rm -f conftest.er1
11313  cat conftest.err >&5
11314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315  (exit $ac_status); } >/dev/null; then
11316  if test -s conftest.err; then
11317    ac_cpp_err=$ac_c_preproc_warn_flag
11318    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11319  else
11320    ac_cpp_err=
11321  fi
11322else
11323  ac_cpp_err=yes
11324fi
11325if test -z "$ac_cpp_err"; then
11326  ac_header_preproc=yes
11327else
11328  echo "$as_me: failed program was:" >&5
11329sed 's/^/| /' conftest.$ac_ext >&5
11330
11331  ac_header_preproc=no
11332fi
11333rm -f conftest.err conftest.$ac_ext
11334echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11335echo "${ECHO_T}$ac_header_preproc" >&6
11336
11337# So?  What about this header?
11338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11339  yes:no: )
11340    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11341echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11342    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11343echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11344    ac_header_preproc=yes
11345    ;;
11346  no:yes:* )
11347    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11348echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11349    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11350echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11351    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11352echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11353    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11354echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11355    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11357    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11358echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11359    (
11360      cat <<\_ASBOX
11361## ------------------------------------------ ##
11362## Report this to the AC_PACKAGE_NAME lists.  ##
11363## ------------------------------------------ ##
11364_ASBOX
11365    ) |
11366      sed "s/^/$as_me: WARNING:     /" >&2
11367    ;;
11368esac
11369echo "$as_me:$LINENO: checking for $ac_header" >&5
11370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11371if eval "test \"\${$as_ac_Header+set}\" = set"; then
11372  echo $ECHO_N "(cached) $ECHO_C" >&6
11373else
11374  eval "$as_ac_Header=\$ac_header_preproc"
11375fi
11376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11378
11379fi
11380if test `eval echo '${'$as_ac_Header'}'` = yes; then
11381  cat >>confdefs.h <<_ACEOF
11382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11383_ACEOF
11384
11385fi
11386
11387done
11388
11389
11390echo "$as_me:$LINENO: checking for int8_t" >&5
11391echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
11392if test "${ac_cv_type_int8_t+set}" = set; then
11393  echo $ECHO_N "(cached) $ECHO_C" >&6
11394else
11395  cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h.  */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h.  */
11401$ac_includes_default
11402int
11403main ()
11404{
11405if ((int8_t *) 0)
11406  return 0;
11407if (sizeof (int8_t))
11408  return 0;
11409  ;
11410  return 0;
11411}
11412_ACEOF
11413rm -f conftest.$ac_objext
11414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11415  (eval $ac_compile) 2>conftest.er1
11416  ac_status=$?
11417  grep -v '^ *+' conftest.er1 >conftest.err
11418  rm -f conftest.er1
11419  cat conftest.err >&5
11420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421  (exit $ac_status); } &&
11422	 { ac_try='test -z "$ac_c_werror_flag"
11423			 || test ! -s conftest.err'
11424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425  (eval $ac_try) 2>&5
11426  ac_status=$?
11427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428  (exit $ac_status); }; } &&
11429	 { ac_try='test -s conftest.$ac_objext'
11430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431  (eval $ac_try) 2>&5
11432  ac_status=$?
11433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434  (exit $ac_status); }; }; then
11435  ac_cv_type_int8_t=yes
11436else
11437  echo "$as_me: failed program was:" >&5
11438sed 's/^/| /' conftest.$ac_ext >&5
11439
11440ac_cv_type_int8_t=no
11441fi
11442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11443fi
11444echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11445echo "${ECHO_T}$ac_cv_type_int8_t" >&6
11446if test $ac_cv_type_int8_t = yes; then
11447  :
11448else
11449
11450cat >>confdefs.h <<\_ACEOF
11451#define int8_t signed char
11452_ACEOF
11453
11454fi
11455
11456echo "$as_me:$LINENO: checking for u_int8_t" >&5
11457echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
11458if test "${ac_cv_type_u_int8_t+set}" = set; then
11459  echo $ECHO_N "(cached) $ECHO_C" >&6
11460else
11461  cat >conftest.$ac_ext <<_ACEOF
11462/* confdefs.h.  */
11463_ACEOF
11464cat confdefs.h >>conftest.$ac_ext
11465cat >>conftest.$ac_ext <<_ACEOF
11466/* end confdefs.h.  */
11467$ac_includes_default
11468#ifdef HAVE_SYS_BITYPES_H
11469#include <sys/bitypes.h>
11470#endif
11471
11472int
11473main ()
11474{
11475if ((u_int8_t *) 0)
11476  return 0;
11477if (sizeof (u_int8_t))
11478  return 0;
11479  ;
11480  return 0;
11481}
11482_ACEOF
11483rm -f conftest.$ac_objext
11484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11485  (eval $ac_compile) 2>conftest.er1
11486  ac_status=$?
11487  grep -v '^ *+' conftest.er1 >conftest.err
11488  rm -f conftest.er1
11489  cat conftest.err >&5
11490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491  (exit $ac_status); } &&
11492	 { ac_try='test -z "$ac_c_werror_flag"
11493			 || test ! -s conftest.err'
11494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495  (eval $ac_try) 2>&5
11496  ac_status=$?
11497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498  (exit $ac_status); }; } &&
11499	 { ac_try='test -s conftest.$ac_objext'
11500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501  (eval $ac_try) 2>&5
11502  ac_status=$?
11503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504  (exit $ac_status); }; }; then
11505  ac_cv_type_u_int8_t=yes
11506else
11507  echo "$as_me: failed program was:" >&5
11508sed 's/^/| /' conftest.$ac_ext >&5
11509
11510ac_cv_type_u_int8_t=no
11511fi
11512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11513fi
11514echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11515echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
11516if test $ac_cv_type_u_int8_t = yes; then
11517  :
11518else
11519
11520cat >>confdefs.h <<\_ACEOF
11521#define u_int8_t unsigned char
11522_ACEOF
11523
11524fi
11525
11526echo "$as_me:$LINENO: checking for int16_t" >&5
11527echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
11528if test "${ac_cv_type_int16_t+set}" = set; then
11529  echo $ECHO_N "(cached) $ECHO_C" >&6
11530else
11531  cat >conftest.$ac_ext <<_ACEOF
11532/* confdefs.h.  */
11533_ACEOF
11534cat confdefs.h >>conftest.$ac_ext
11535cat >>conftest.$ac_ext <<_ACEOF
11536/* end confdefs.h.  */
11537$ac_includes_default
11538int
11539main ()
11540{
11541if ((int16_t *) 0)
11542  return 0;
11543if (sizeof (int16_t))
11544  return 0;
11545  ;
11546  return 0;
11547}
11548_ACEOF
11549rm -f conftest.$ac_objext
11550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11551  (eval $ac_compile) 2>conftest.er1
11552  ac_status=$?
11553  grep -v '^ *+' conftest.er1 >conftest.err
11554  rm -f conftest.er1
11555  cat conftest.err >&5
11556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557  (exit $ac_status); } &&
11558	 { ac_try='test -z "$ac_c_werror_flag"
11559			 || test ! -s conftest.err'
11560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561  (eval $ac_try) 2>&5
11562  ac_status=$?
11563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564  (exit $ac_status); }; } &&
11565	 { ac_try='test -s conftest.$ac_objext'
11566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567  (eval $ac_try) 2>&5
11568  ac_status=$?
11569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570  (exit $ac_status); }; }; then
11571  ac_cv_type_int16_t=yes
11572else
11573  echo "$as_me: failed program was:" >&5
11574sed 's/^/| /' conftest.$ac_ext >&5
11575
11576ac_cv_type_int16_t=no
11577fi
11578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11579fi
11580echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11581echo "${ECHO_T}$ac_cv_type_int16_t" >&6
11582if test $ac_cv_type_int16_t = yes; then
11583  :
11584else
11585
11586cat >>confdefs.h <<\_ACEOF
11587#define int16_t short
11588_ACEOF
11589
11590fi
11591
11592echo "$as_me:$LINENO: checking for u_int16_t" >&5
11593echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
11594if test "${ac_cv_type_u_int16_t+set}" = set; then
11595  echo $ECHO_N "(cached) $ECHO_C" >&6
11596else
11597  cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h.  */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h.  */
11603$ac_includes_default
11604#ifdef HAVE_SYS_BITYPES_H
11605#include <sys/bitypes.h>
11606#endif
11607
11608int
11609main ()
11610{
11611if ((u_int16_t *) 0)
11612  return 0;
11613if (sizeof (u_int16_t))
11614  return 0;
11615  ;
11616  return 0;
11617}
11618_ACEOF
11619rm -f conftest.$ac_objext
11620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11621  (eval $ac_compile) 2>conftest.er1
11622  ac_status=$?
11623  grep -v '^ *+' conftest.er1 >conftest.err
11624  rm -f conftest.er1
11625  cat conftest.err >&5
11626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627  (exit $ac_status); } &&
11628	 { ac_try='test -z "$ac_c_werror_flag"
11629			 || test ! -s conftest.err'
11630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631  (eval $ac_try) 2>&5
11632  ac_status=$?
11633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634  (exit $ac_status); }; } &&
11635	 { ac_try='test -s conftest.$ac_objext'
11636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637  (eval $ac_try) 2>&5
11638  ac_status=$?
11639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640  (exit $ac_status); }; }; then
11641  ac_cv_type_u_int16_t=yes
11642else
11643  echo "$as_me: failed program was:" >&5
11644sed 's/^/| /' conftest.$ac_ext >&5
11645
11646ac_cv_type_u_int16_t=no
11647fi
11648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11649fi
11650echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11651echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
11652if test $ac_cv_type_u_int16_t = yes; then
11653  :
11654else
11655
11656cat >>confdefs.h <<\_ACEOF
11657#define u_int16_t unsigned short
11658_ACEOF
11659
11660fi
11661
11662echo "$as_me:$LINENO: checking for int32_t" >&5
11663echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
11664if test "${ac_cv_type_int32_t+set}" = set; then
11665  echo $ECHO_N "(cached) $ECHO_C" >&6
11666else
11667  cat >conftest.$ac_ext <<_ACEOF
11668/* confdefs.h.  */
11669_ACEOF
11670cat confdefs.h >>conftest.$ac_ext
11671cat >>conftest.$ac_ext <<_ACEOF
11672/* end confdefs.h.  */
11673$ac_includes_default
11674int
11675main ()
11676{
11677if ((int32_t *) 0)
11678  return 0;
11679if (sizeof (int32_t))
11680  return 0;
11681  ;
11682  return 0;
11683}
11684_ACEOF
11685rm -f conftest.$ac_objext
11686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687  (eval $ac_compile) 2>conftest.er1
11688  ac_status=$?
11689  grep -v '^ *+' conftest.er1 >conftest.err
11690  rm -f conftest.er1
11691  cat conftest.err >&5
11692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693  (exit $ac_status); } &&
11694	 { ac_try='test -z "$ac_c_werror_flag"
11695			 || test ! -s conftest.err'
11696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697  (eval $ac_try) 2>&5
11698  ac_status=$?
11699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700  (exit $ac_status); }; } &&
11701	 { ac_try='test -s conftest.$ac_objext'
11702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703  (eval $ac_try) 2>&5
11704  ac_status=$?
11705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706  (exit $ac_status); }; }; then
11707  ac_cv_type_int32_t=yes
11708else
11709  echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
11711
11712ac_cv_type_int32_t=no
11713fi
11714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11715fi
11716echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11717echo "${ECHO_T}$ac_cv_type_int32_t" >&6
11718if test $ac_cv_type_int32_t = yes; then
11719  :
11720else
11721
11722cat >>confdefs.h <<\_ACEOF
11723#define int32_t int
11724_ACEOF
11725
11726fi
11727
11728echo "$as_me:$LINENO: checking for u_int32_t" >&5
11729echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11730if test "${ac_cv_type_u_int32_t+set}" = set; then
11731  echo $ECHO_N "(cached) $ECHO_C" >&6
11732else
11733  cat >conftest.$ac_ext <<_ACEOF
11734/* confdefs.h.  */
11735_ACEOF
11736cat confdefs.h >>conftest.$ac_ext
11737cat >>conftest.$ac_ext <<_ACEOF
11738/* end confdefs.h.  */
11739$ac_includes_default
11740#ifdef HAVE_SYS_BITYPES_H
11741#include <sys/bitypes.h>
11742#endif
11743
11744int
11745main ()
11746{
11747if ((u_int32_t *) 0)
11748  return 0;
11749if (sizeof (u_int32_t))
11750  return 0;
11751  ;
11752  return 0;
11753}
11754_ACEOF
11755rm -f conftest.$ac_objext
11756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11757  (eval $ac_compile) 2>conftest.er1
11758  ac_status=$?
11759  grep -v '^ *+' conftest.er1 >conftest.err
11760  rm -f conftest.er1
11761  cat conftest.err >&5
11762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763  (exit $ac_status); } &&
11764	 { ac_try='test -z "$ac_c_werror_flag"
11765			 || test ! -s conftest.err'
11766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767  (eval $ac_try) 2>&5
11768  ac_status=$?
11769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770  (exit $ac_status); }; } &&
11771	 { ac_try='test -s conftest.$ac_objext'
11772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773  (eval $ac_try) 2>&5
11774  ac_status=$?
11775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776  (exit $ac_status); }; }; then
11777  ac_cv_type_u_int32_t=yes
11778else
11779  echo "$as_me: failed program was:" >&5
11780sed 's/^/| /' conftest.$ac_ext >&5
11781
11782ac_cv_type_u_int32_t=no
11783fi
11784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11785fi
11786echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11787echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
11788if test $ac_cv_type_u_int32_t = yes; then
11789  :
11790else
11791
11792cat >>confdefs.h <<\_ACEOF
11793#define u_int32_t unsigned int
11794_ACEOF
11795
11796fi
11797
11798echo "$as_me:$LINENO: checking for int64_t" >&5
11799echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
11800if test "${ac_cv_type_int64_t+set}" = set; then
11801  echo $ECHO_N "(cached) $ECHO_C" >&6
11802else
11803  cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h.  */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h.  */
11809$ac_includes_default
11810int
11811main ()
11812{
11813if ((int64_t *) 0)
11814  return 0;
11815if (sizeof (int64_t))
11816  return 0;
11817  ;
11818  return 0;
11819}
11820_ACEOF
11821rm -f conftest.$ac_objext
11822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823  (eval $ac_compile) 2>conftest.er1
11824  ac_status=$?
11825  grep -v '^ *+' conftest.er1 >conftest.err
11826  rm -f conftest.er1
11827  cat conftest.err >&5
11828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829  (exit $ac_status); } &&
11830	 { ac_try='test -z "$ac_c_werror_flag"
11831			 || test ! -s conftest.err'
11832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833  (eval $ac_try) 2>&5
11834  ac_status=$?
11835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836  (exit $ac_status); }; } &&
11837	 { ac_try='test -s conftest.$ac_objext'
11838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839  (eval $ac_try) 2>&5
11840  ac_status=$?
11841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842  (exit $ac_status); }; }; then
11843  ac_cv_type_int64_t=yes
11844else
11845  echo "$as_me: failed program was:" >&5
11846sed 's/^/| /' conftest.$ac_ext >&5
11847
11848ac_cv_type_int64_t=no
11849fi
11850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11851fi
11852echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11853echo "${ECHO_T}$ac_cv_type_int64_t" >&6
11854if test $ac_cv_type_int64_t = yes; then
11855  :
11856else
11857
11858cat >>confdefs.h <<\_ACEOF
11859#define int64_t long long
11860_ACEOF
11861
11862fi
11863
11864echo "$as_me:$LINENO: checking for u_int64_t" >&5
11865echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
11866if test "${ac_cv_type_u_int64_t+set}" = set; then
11867  echo $ECHO_N "(cached) $ECHO_C" >&6
11868else
11869  cat >conftest.$ac_ext <<_ACEOF
11870/* confdefs.h.  */
11871_ACEOF
11872cat confdefs.h >>conftest.$ac_ext
11873cat >>conftest.$ac_ext <<_ACEOF
11874/* end confdefs.h.  */
11875$ac_includes_default
11876#ifdef HAVE_SYS_BITYPES_H
11877#include <sys/bitypes.h>
11878#endif
11879
11880int
11881main ()
11882{
11883if ((u_int64_t *) 0)
11884  return 0;
11885if (sizeof (u_int64_t))
11886  return 0;
11887  ;
11888  return 0;
11889}
11890_ACEOF
11891rm -f conftest.$ac_objext
11892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11893  (eval $ac_compile) 2>conftest.er1
11894  ac_status=$?
11895  grep -v '^ *+' conftest.er1 >conftest.err
11896  rm -f conftest.er1
11897  cat conftest.err >&5
11898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899  (exit $ac_status); } &&
11900	 { ac_try='test -z "$ac_c_werror_flag"
11901			 || test ! -s conftest.err'
11902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903  (eval $ac_try) 2>&5
11904  ac_status=$?
11905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906  (exit $ac_status); }; } &&
11907	 { ac_try='test -s conftest.$ac_objext'
11908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909  (eval $ac_try) 2>&5
11910  ac_status=$?
11911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912  (exit $ac_status); }; }; then
11913  ac_cv_type_u_int64_t=yes
11914else
11915  echo "$as_me: failed program was:" >&5
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
11918ac_cv_type_u_int64_t=no
11919fi
11920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11921fi
11922echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11923echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
11924if test $ac_cv_type_u_int64_t = yes; then
11925  :
11926else
11927
11928cat >>confdefs.h <<\_ACEOF
11929#define u_int64_t unsigned long long
11930_ACEOF
11931
11932fi
11933
11934
11935#
11936# We can't just check for <inttypes.h> - some systems have one that
11937# doesn't define all the PRI[doxu]64 macros.
11938#
11939
11940for ac_header in inttypes.h
11941do
11942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11943if eval "test \"\${$as_ac_Header+set}\" = set"; then
11944  echo "$as_me:$LINENO: checking for $ac_header" >&5
11945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11946if eval "test \"\${$as_ac_Header+set}\" = set"; then
11947  echo $ECHO_N "(cached) $ECHO_C" >&6
11948fi
11949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11951else
11952  # Is the header compilable?
11953echo "$as_me:$LINENO: checking $ac_header usability" >&5
11954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11955cat >conftest.$ac_ext <<_ACEOF
11956/* confdefs.h.  */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h.  */
11961$ac_includes_default
11962#include <$ac_header>
11963_ACEOF
11964rm -f conftest.$ac_objext
11965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966  (eval $ac_compile) 2>conftest.er1
11967  ac_status=$?
11968  grep -v '^ *+' conftest.er1 >conftest.err
11969  rm -f conftest.er1
11970  cat conftest.err >&5
11971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972  (exit $ac_status); } &&
11973	 { ac_try='test -z "$ac_c_werror_flag"
11974			 || test ! -s conftest.err'
11975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976  (eval $ac_try) 2>&5
11977  ac_status=$?
11978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979  (exit $ac_status); }; } &&
11980	 { ac_try='test -s conftest.$ac_objext'
11981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982  (eval $ac_try) 2>&5
11983  ac_status=$?
11984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985  (exit $ac_status); }; }; then
11986  ac_header_compiler=yes
11987else
11988  echo "$as_me: failed program was:" >&5
11989sed 's/^/| /' conftest.$ac_ext >&5
11990
11991ac_header_compiler=no
11992fi
11993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11995echo "${ECHO_T}$ac_header_compiler" >&6
11996
11997# Is the header present?
11998echo "$as_me:$LINENO: checking $ac_header presence" >&5
11999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12000cat >conftest.$ac_ext <<_ACEOF
12001/* confdefs.h.  */
12002_ACEOF
12003cat confdefs.h >>conftest.$ac_ext
12004cat >>conftest.$ac_ext <<_ACEOF
12005/* end confdefs.h.  */
12006#include <$ac_header>
12007_ACEOF
12008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12009  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12010  ac_status=$?
12011  grep -v '^ *+' conftest.er1 >conftest.err
12012  rm -f conftest.er1
12013  cat conftest.err >&5
12014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015  (exit $ac_status); } >/dev/null; then
12016  if test -s conftest.err; then
12017    ac_cpp_err=$ac_c_preproc_warn_flag
12018    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12019  else
12020    ac_cpp_err=
12021  fi
12022else
12023  ac_cpp_err=yes
12024fi
12025if test -z "$ac_cpp_err"; then
12026  ac_header_preproc=yes
12027else
12028  echo "$as_me: failed program was:" >&5
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
12031  ac_header_preproc=no
12032fi
12033rm -f conftest.err conftest.$ac_ext
12034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12035echo "${ECHO_T}$ac_header_preproc" >&6
12036
12037# So?  What about this header?
12038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12039  yes:no: )
12040    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12044    ac_header_preproc=yes
12045    ;;
12046  no:yes:* )
12047    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12049    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12050echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12051    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12053    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12054echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12055    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12057    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12059    (
12060      cat <<\_ASBOX
12061## ------------------------------------------ ##
12062## Report this to the AC_PACKAGE_NAME lists.  ##
12063## ------------------------------------------ ##
12064_ASBOX
12065    ) |
12066      sed "s/^/$as_me: WARNING:     /" >&2
12067    ;;
12068esac
12069echo "$as_me:$LINENO: checking for $ac_header" >&5
12070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12071if eval "test \"\${$as_ac_Header+set}\" = set"; then
12072  echo $ECHO_N "(cached) $ECHO_C" >&6
12073else
12074  eval "$as_ac_Header=\$ac_header_preproc"
12075fi
12076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12078
12079fi
12080if test `eval echo '${'$as_ac_Header'}'` = yes; then
12081  cat >>confdefs.h <<_ACEOF
12082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12083_ACEOF
12084
12085    #
12086    # OK, we have inttypes.h, but does it define those macros?
12087    #
12088    echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12089echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
12090    cat >conftest.$ac_ext <<_ACEOF
12091
12092	/* confdefs.h.  */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12095cat >>conftest.$ac_ext <<_ACEOF
12096/* end confdefs.h.  */
12097
12098	    #include <inttypes.h>
12099	    #include <stdio.h>
12100	    #include <sys/types.h>
12101	    #ifdef HAVE_SYS_BITYPES_H
12102	    #include <sys/bitypes.h>
12103	    #endif
12104
12105	    main()
12106	    {
12107	      printf("%" PRId64 "\n", (u_int64_t)1);
12108	      printf("%" PRIo64 "\n", (u_int64_t)1);
12109	      printf("%" PRIx64 "\n", (u_int64_t)1);
12110	      printf("%" PRIu64 "\n", (u_int64_t)1);
12111	    }
12112
12113
12114_ACEOF
12115rm -f conftest.$ac_objext
12116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117  (eval $ac_compile) 2>conftest.er1
12118  ac_status=$?
12119  grep -v '^ *+' conftest.er1 >conftest.err
12120  rm -f conftest.er1
12121  cat conftest.err >&5
12122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123  (exit $ac_status); } &&
12124	 { ac_try='test -z "$ac_c_werror_flag"
12125			 || test ! -s conftest.err'
12126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127  (eval $ac_try) 2>&5
12128  ac_status=$?
12129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130  (exit $ac_status); }; } &&
12131	 { ac_try='test -s conftest.$ac_objext'
12132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133  (eval $ac_try) 2>&5
12134  ac_status=$?
12135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136  (exit $ac_status); }; }; then
12137
12138	echo "$as_me:$LINENO: result: yes" >&5
12139echo "${ECHO_T}yes" >&6
12140	ac_lbl_inttypes_h_defines_formats=yes
12141
12142else
12143  echo "$as_me: failed program was:" >&5
12144sed 's/^/| /' conftest.$ac_ext >&5
12145
12146
12147	echo "$as_me:$LINENO: result: no" >&5
12148echo "${ECHO_T}no" >&6
12149	ac_lbl_inttypes_h_defines_formats=no
12150
12151fi
12152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12153
12154else
12155
12156    #
12157    # We don't have inttypes.h, so it obviously can't define those
12158    # macros.
12159    #
12160    ac_lbl_inttypes_h_defines_formats=no
12161
12162fi
12163
12164done
12165
12166if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12167
12168    echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12169echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
12170    if test "$cross_compiling" = yes; then
12171  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12172See \`config.log' for more details." >&5
12173echo "$as_me: error: cannot run test program while cross compiling
12174See \`config.log' for more details." >&2;}
12175   { (exit 1); exit 1; }; }
12176else
12177  cat >conftest.$ac_ext <<_ACEOF
12178
12179	/* confdefs.h.  */
12180_ACEOF
12181cat confdefs.h >>conftest.$ac_ext
12182cat >>conftest.$ac_ext <<_ACEOF
12183/* end confdefs.h.  */
12184
12185#	    ifdef HAVE_INTTYPES_H
12186	    #include <inttypes.h>
12187#	    endif
12188#	    ifdef HAVE_SYS_BITYPES_H
12189            #include <sys/bitypes.h>
12190#	    endif
12191	    #include <stdio.h>
12192	    #include <sys/types.h>
12193
12194	    main()
12195	    {
12196	      u_int64_t t = 1;
12197	      char strbuf[16+1];
12198	      sprintf(strbuf, "%016lx", t << 32);
12199	      if (strcmp(strbuf, "0000000100000000") == 0)
12200		exit(0);
12201	      else
12202		exit(1);
12203	    }
12204
12205
12206_ACEOF
12207rm -f conftest$ac_exeext
12208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12209  (eval $ac_link) 2>&5
12210  ac_status=$?
12211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214  (eval $ac_try) 2>&5
12215  ac_status=$?
12216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217  (exit $ac_status); }; }; then
12218
12219	cat >>confdefs.h <<\_ACEOF
12220#define PRId64 "ld"
12221_ACEOF
12222
12223	cat >>confdefs.h <<\_ACEOF
12224#define PRIo64 "lo"
12225_ACEOF
12226
12227	cat >>confdefs.h <<\_ACEOF
12228#define PRIx64 "lx"
12229_ACEOF
12230
12231	cat >>confdefs.h <<\_ACEOF
12232#define PRIu64 "lu"
12233_ACEOF
12234
12235	echo "$as_me:$LINENO: result: yes" >&5
12236echo "${ECHO_T}yes" >&6
12237
12238else
12239  echo "$as_me: program exited with status $ac_status" >&5
12240echo "$as_me: failed program was:" >&5
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243( exit $ac_status )
12244
12245	echo "$as_me:$LINENO: result: no" >&5
12246echo "${ECHO_T}no" >&6
12247
12248
12249    echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
12250echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
12251    if test "$cross_compiling" = yes; then
12252  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12253See \`config.log' for more details." >&5
12254echo "$as_me: error: cannot run test program while cross compiling
12255See \`config.log' for more details." >&2;}
12256   { (exit 1); exit 1; }; }
12257else
12258  cat >conftest.$ac_ext <<_ACEOF
12259
12260	/* confdefs.h.  */
12261_ACEOF
12262cat confdefs.h >>conftest.$ac_ext
12263cat >>conftest.$ac_ext <<_ACEOF
12264/* end confdefs.h.  */
12265
12266#	    ifdef HAVE_INTTYPES_H
12267	    #include <inttypes.h>
12268#	    endif
12269#	    ifdef HAVE_SYS_BITYPES_H
12270            #include <sys/bitypes.h>
12271#	    endif
12272	    #include <stdio.h>
12273	    #include <sys/types.h>
12274
12275	    main()
12276	    {
12277	      u_int64_t t = 1;
12278	      char strbuf[16+1];
12279	      sprintf(strbuf, "%016llx", t << 32);
12280	      if (strcmp(strbuf, "0000000100000000") == 0)
12281		exit(0);
12282	      else
12283		exit(1);
12284	    }
12285
12286
12287_ACEOF
12288rm -f conftest$ac_exeext
12289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290  (eval $ac_link) 2>&5
12291  ac_status=$?
12292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295  (eval $ac_try) 2>&5
12296  ac_status=$?
12297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298  (exit $ac_status); }; }; then
12299
12300	cat >>confdefs.h <<\_ACEOF
12301#define PRId64 "lld"
12302_ACEOF
12303
12304	cat >>confdefs.h <<\_ACEOF
12305#define PRIo64 "llo"
12306_ACEOF
12307
12308	cat >>confdefs.h <<\_ACEOF
12309#define PRIx64 "llx"
12310_ACEOF
12311
12312	cat >>confdefs.h <<\_ACEOF
12313#define PRIu64 "llu"
12314_ACEOF
12315
12316	echo "$as_me:$LINENO: result: yes" >&5
12317echo "${ECHO_T}yes" >&6
12318
12319else
12320  echo "$as_me: program exited with status $ac_status" >&5
12321echo "$as_me: failed program was:" >&5
12322sed 's/^/| /' conftest.$ac_ext >&5
12323
12324( exit $ac_status )
12325
12326	echo "$as_me:$LINENO: result: no" >&5
12327echo "${ECHO_T}no" >&6
12328
12329
12330    echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12331echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
12332    if test "$cross_compiling" = yes; then
12333  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12334See \`config.log' for more details." >&5
12335echo "$as_me: error: cannot run test program while cross compiling
12336See \`config.log' for more details." >&2;}
12337   { (exit 1); exit 1; }; }
12338else
12339  cat >conftest.$ac_ext <<_ACEOF
12340
12341	/* confdefs.h.  */
12342_ACEOF
12343cat confdefs.h >>conftest.$ac_ext
12344cat >>conftest.$ac_ext <<_ACEOF
12345/* end confdefs.h.  */
12346
12347#	    ifdef HAVE_INTTYPES_H
12348	    #include <inttypes.h>
12349#	    endif
12350#	    ifdef HAVE_SYS_BITYPES_H
12351            #include <sys/bitypes.h>
12352#	    endif
12353	    #include <stdio.h>
12354	    #include <sys/types.h>
12355
12356	    main()
12357	    {
12358	      u_int64_t t = 1;
12359	      char strbuf[16+1];
12360	      sprintf(strbuf, "%016Lx", t << 32);
12361	      if (strcmp(strbuf, "0000000100000000") == 0)
12362		exit(0);
12363	      else
12364		exit(1);
12365	    }
12366
12367
12368_ACEOF
12369rm -f conftest$ac_exeext
12370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371  (eval $ac_link) 2>&5
12372  ac_status=$?
12373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376  (eval $ac_try) 2>&5
12377  ac_status=$?
12378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379  (exit $ac_status); }; }; then
12380
12381	cat >>confdefs.h <<\_ACEOF
12382#define PRId64 "Ld"
12383_ACEOF
12384
12385	cat >>confdefs.h <<\_ACEOF
12386#define PRIo64 "Lo"
12387_ACEOF
12388
12389	cat >>confdefs.h <<\_ACEOF
12390#define PRIx64 "Lx"
12391_ACEOF
12392
12393	cat >>confdefs.h <<\_ACEOF
12394#define PRIu64 "Lu"
12395_ACEOF
12396
12397	echo "$as_me:$LINENO: result: yes" >&5
12398echo "${ECHO_T}yes" >&6
12399
12400else
12401  echo "$as_me: program exited with status $ac_status" >&5
12402echo "$as_me: failed program was:" >&5
12403sed 's/^/| /' conftest.$ac_ext >&5
12404
12405( exit $ac_status )
12406
12407	echo "$as_me:$LINENO: result: no" >&5
12408echo "${ECHO_T}no" >&6
12409
12410
12411    echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12412echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
12413    if test "$cross_compiling" = yes; then
12414  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12415See \`config.log' for more details." >&5
12416echo "$as_me: error: cannot run test program while cross compiling
12417See \`config.log' for more details." >&2;}
12418   { (exit 1); exit 1; }; }
12419else
12420  cat >conftest.$ac_ext <<_ACEOF
12421
12422	/* confdefs.h.  */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h.  */
12427
12428#	    ifdef HAVE_INTTYPES_H
12429	    #include <inttypes.h>
12430#	    endif
12431#	    ifdef HAVE_SYS_BITYPES_H
12432            #include <sys/bitypes.h>
12433#	    endif
12434	    #include <stdio.h>
12435	    #include <sys/types.h>
12436
12437	    main()
12438	    {
12439	      u_int64_t t = 1;
12440	      char strbuf[16+1];
12441	      sprintf(strbuf, "%016qx", t << 32);
12442	      if (strcmp(strbuf, "0000000100000000") == 0)
12443		exit(0);
12444	      else
12445		exit(1);
12446	    }
12447
12448
12449_ACEOF
12450rm -f conftest$ac_exeext
12451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12452  (eval $ac_link) 2>&5
12453  ac_status=$?
12454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457  (eval $ac_try) 2>&5
12458  ac_status=$?
12459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460  (exit $ac_status); }; }; then
12461
12462	cat >>confdefs.h <<\_ACEOF
12463#define PRId64 "qd"
12464_ACEOF
12465
12466	cat >>confdefs.h <<\_ACEOF
12467#define PRIo64 "qo"
12468_ACEOF
12469
12470	cat >>confdefs.h <<\_ACEOF
12471#define PRIx64 "qx"
12472_ACEOF
12473
12474	cat >>confdefs.h <<\_ACEOF
12475#define PRIu64 "qu"
12476_ACEOF
12477
12478	echo "$as_me:$LINENO: result: yes" >&5
12479echo "${ECHO_T}yes" >&6
12480
12481else
12482  echo "$as_me: program exited with status $ac_status" >&5
12483echo "$as_me: failed program was:" >&5
12484sed 's/^/| /' conftest.$ac_ext >&5
12485
12486( exit $ac_status )
12487
12488	echo "$as_me:$LINENO: result: no" >&5
12489echo "${ECHO_T}no" >&6
12490
12491	          { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
12492echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
12493   { (exit 1); exit 1; }; }
12494
12495
12496fi
12497rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12498fi
12499
12500
12501
12502fi
12503rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12504fi
12505
12506
12507
12508fi
12509rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12510fi
12511
12512
12513
12514fi
12515rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12516fi
12517
12518fi
12519
12520rm -f os-proto.h
12521    if test "${LBL_CFLAGS+set}" = set; then
12522	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
12523    fi
12524    if test -f .devel ; then
12525	    if test "$GCC" = yes ; then
12526		    if test "${LBL_CFLAGS+set}" != set; then
12527			    if test "$ac_cv_prog_cc_g" = yes ; then
12528				    V_CCOPT="-g $V_CCOPT"
12529			    fi
12530			    V_CCOPT="$V_CCOPT -Wall"
12531			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
12532				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
12533			    fi
12534		    fi
12535	    else
12536		    case "$host_os" in
12537
12538		    irix6*)
12539			    V_CCOPT="$V_CCOPT -n32"
12540			    ;;
12541
12542		    *)
12543			    ;;
12544		    esac
12545	    fi
12546	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
12547	    name="lbl/os-$os.h"
12548	    if test -f $name ; then
12549		    ln -s $name os-proto.h
12550		    cat >>confdefs.h <<\_ACEOF
12551#define HAVE_OS_PROTO_H 1
12552_ACEOF
12553
12554	    else
12555		    { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
12556echo "$as_me: WARNING: can't find $name" >&2;}
12557	    fi
12558    fi
12559
12560echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
12561echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
12562    if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
12563  echo $ECHO_N "(cached) $ECHO_C" >&6
12564else
12565  cat >conftest.$ac_ext <<_ACEOF
12566/* confdefs.h.  */
12567_ACEOF
12568cat confdefs.h >>conftest.$ac_ext
12569cat >>conftest.$ac_ext <<_ACEOF
12570/* end confdefs.h.  */
12571
12572#	include <sys/types.h>
12573#	include <sys/socket.h>
12574int
12575main ()
12576{
12577u_int i = sizeof(((struct sockaddr *)0)->sa_len)
12578  ;
12579  return 0;
12580}
12581_ACEOF
12582rm -f conftest.$ac_objext
12583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12584  (eval $ac_compile) 2>conftest.er1
12585  ac_status=$?
12586  grep -v '^ *+' conftest.er1 >conftest.err
12587  rm -f conftest.er1
12588  cat conftest.err >&5
12589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590  (exit $ac_status); } &&
12591	 { ac_try='test -z "$ac_c_werror_flag"
12592			 || test ! -s conftest.err'
12593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594  (eval $ac_try) 2>&5
12595  ac_status=$?
12596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597  (exit $ac_status); }; } &&
12598	 { ac_try='test -s conftest.$ac_objext'
12599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600  (eval $ac_try) 2>&5
12601  ac_status=$?
12602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603  (exit $ac_status); }; }; then
12604  ac_cv_lbl_sockaddr_has_sa_len=yes
12605else
12606  echo "$as_me: failed program was:" >&5
12607sed 's/^/| /' conftest.$ac_ext >&5
12608
12609ac_cv_lbl_sockaddr_has_sa_len=no
12610fi
12611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12612fi
12613
12614    echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
12615echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
12616    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
12617	    cat >>confdefs.h <<\_ACEOF
12618#define HAVE_SOCKADDR_SA_LEN 1
12619_ACEOF
12620
12621    fi
12622
12623echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
12624echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
12625    if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
12626  echo $ECHO_N "(cached) $ECHO_C" >&6
12627else
12628  case "$host_cpu" in
12629
12630	#
12631	# These are CPU types where:
12632	#
12633	#	the CPU faults on an unaligned access, but at least some
12634	#	OSes that support that CPU catch the fault and simulate
12635	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
12636	#	the simulation is slow, so we don't want to use it;
12637	#
12638	#	the CPU, I infer (from the old
12639	#
12640	# XXX: should also check that they don't do weird things (like on arm)
12641	#
12642	#	comment) doesn't fault on unaligned accesses, but doesn't
12643	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
12644	#
12645	#	for whatever reason, the test program doesn't work
12646	#	(this has been claimed to be the case for several of those
12647	#	CPUs - I don't know what the problem is; the problem
12648	#	was reported as "the test program dumps core" for SuperH,
12649	#	but that's what the test program is *supposed* to do -
12650	#	it dumps core before it writes anything, so the test
12651	#	for an empty output file should find an empty output
12652	#	file and conclude that unaligned accesses don't work).
12653	#
12654	# This run-time test won't work if you're cross-compiling, so
12655	# in order to support cross-compiling for a particular CPU,
12656	# we have to wire in the list of CPU types anyway, as far as
12657	# I know, so perhaps we should just have a set of CPUs on
12658	# which we know it doesn't work, a set of CPUs on which we
12659	# know it does work, and have the script just fail on other
12660	# cpu types and update it when such a failure occurs.
12661	#
12662	alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
12663		ac_cv_lbl_unaligned_fail=yes
12664		;;
12665
12666	*)
12667		cat >conftest.c <<EOF
12668#		include <sys/types.h>
12669#		include <sys/wait.h>
12670#		include <stdio.h>
12671		unsigned char a[5] = { 1, 2, 3, 4, 5 };
12672		main() {
12673		unsigned int i;
12674		pid_t pid;
12675		int status;
12676		/* avoid "core dumped" message */
12677		pid = fork();
12678		if (pid <  0)
12679			exit(2);
12680		if (pid > 0) {
12681			/* parent */
12682			pid = waitpid(pid, &status, 0);
12683			if (pid < 0)
12684				exit(3);
12685			exit(!WIFEXITED(status));
12686		}
12687		/* child */
12688		i = *(unsigned int *)&a[1];
12689		printf("%d\n", i);
12690		exit(0);
12691		}
12692EOF
12693		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
12694		    conftest.c $LIBS >/dev/null 2>&1
12695		if test ! -x conftest ; then
12696						ac_cv_lbl_unaligned_fail=yes
12697		else
12698			./conftest >conftest.out
12699			if test ! -s conftest.out ; then
12700				ac_cv_lbl_unaligned_fail=yes
12701			else
12702				ac_cv_lbl_unaligned_fail=no
12703			fi
12704		fi
12705		rm -f conftest* core core.conftest
12706		;;
12707	esac
12708fi
12709
12710    echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
12711echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
12712    if test $ac_cv_lbl_unaligned_fail = yes ; then
12713	    cat >>confdefs.h <<\_ACEOF
12714#define LBL_ALIGN 1
12715_ACEOF
12716
12717    fi
12718
12719
12720	echo "$as_me:$LINENO: checking for h_errno" >&5
12721echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
12722	if test "${ac_cv_var_h_errno+set}" = set; then
12723  echo $ECHO_N "(cached) $ECHO_C" >&6
12724else
12725  cat >conftest.$ac_ext <<_ACEOF
12726/* confdefs.h.  */
12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h.  */
12731
12732#		include <sys/types.h>
12733#		include <netdb.h>
12734int
12735main ()
12736{
12737int foo = h_errno;
12738  ;
12739  return 0;
12740}
12741_ACEOF
12742rm -f conftest.$ac_objext
12743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12744  (eval $ac_compile) 2>conftest.er1
12745  ac_status=$?
12746  grep -v '^ *+' conftest.er1 >conftest.err
12747  rm -f conftest.er1
12748  cat conftest.err >&5
12749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750  (exit $ac_status); } &&
12751	 { ac_try='test -z "$ac_c_werror_flag"
12752			 || test ! -s conftest.err'
12753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754  (eval $ac_try) 2>&5
12755  ac_status=$?
12756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757  (exit $ac_status); }; } &&
12758	 { ac_try='test -s conftest.$ac_objext'
12759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760  (eval $ac_try) 2>&5
12761  ac_status=$?
12762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763  (exit $ac_status); }; }; then
12764  ac_cv_var_h_errno=yes
12765else
12766  echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
12769ac_cv_var_h_errno=no
12770fi
12771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12772fi
12773
12774	echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
12775echo "${ECHO_T}$ac_cv_var_h_errno" >&6
12776	if test "$ac_cv_var_h_errno" = "yes"; then
12777		cat >>confdefs.h <<\_ACEOF
12778#define HAVE_H_ERRNO 1
12779_ACEOF
12780
12781	fi
12782
12783
12784
12785# Check whether --with-crypto or --without-crypto was given.
12786if test "${with_crypto+set}" = set; then
12787  withval="$with_crypto"
12788
12789else
12790
12791echo "$as_me:$LINENO: checking for SSLeay" >&5
12792echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
12793ac_cv_ssleay_path=no
12794incdir=no
12795
12796#
12797# If Xprefix is set in the environment, use that value.
12798# XXX - this should arguably be done by having --with-crypto take an
12799# optional argument, and have that argument be used to set Xprefix
12800# if present.
12801#
12802if test -z "$Xprefix"; then
12803	Xprefix=`eval echo $prefix`
12804fi
12805
12806for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
12807	#
12808	# XXX - is there a better way to check if a given library is
12809	# in a given directory than checking each of the possible
12810	# shared library suffixes?
12811	#
12812	# Are there any other suffixes we need to look for?  Do we have to
12813	# worry about ".so.{version}"?
12814	#
12815	# Or should we just look for "libcrypto.*"?
12816	#
12817	if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
12818			          -f $dir/lib/libcrypto.so -o \
12819			          -f $dir/lib/libcrypto.sl -o \
12820				  -f $dir/lib/libcrypto.dylib \); then
12821		ac_cv_ssleay_path=$dir
12822	fi
12823	if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
12824		incdir="-I$dir/include"
12825	fi
12826	if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
12827		break;
12828	else
12829		ac_cv_ssleay_path=no
12830		incdir=no
12831	fi
12832done
12833echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
12834echo "${ECHO_T}$ac_cv_ssleay_path" >&6
12835if test "$ac_cv_ssleay_path" != no; then
12836	V_INCLS="$V_INCLS $incdir"
12837	LDFLAGS="-L$dir/lib $LDFLAGS"
12838	if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
12839		LIBS="$LIBS -lRSAglue"
12840	fi
12841	if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
12842		LIBS="$LIBS -lrsaref"
12843	fi
12844
12845echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
12846echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
12847if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12848  echo $ECHO_N "(cached) $ECHO_C" >&6
12849else
12850  ac_check_lib_save_LIBS=$LIBS
12851LIBS="-lcrypto  $LIBS"
12852cat >conftest.$ac_ext <<_ACEOF
12853/* confdefs.h.  */
12854_ACEOF
12855cat confdefs.h >>conftest.$ac_ext
12856cat >>conftest.$ac_ext <<_ACEOF
12857/* end confdefs.h.  */
12858
12859/* Override any gcc2 internal prototype to avoid an error.  */
12860#ifdef __cplusplus
12861extern "C"
12862#endif
12863/* We use char because int might match the return type of a gcc2
12864   builtin and then its argument prototype would still apply.  */
12865char DES_cbc_encrypt ();
12866int
12867main ()
12868{
12869DES_cbc_encrypt ();
12870  ;
12871  return 0;
12872}
12873_ACEOF
12874rm -f conftest.$ac_objext conftest$ac_exeext
12875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876  (eval $ac_link) 2>conftest.er1
12877  ac_status=$?
12878  grep -v '^ *+' conftest.er1 >conftest.err
12879  rm -f conftest.er1
12880  cat conftest.err >&5
12881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882  (exit $ac_status); } &&
12883	 { ac_try='test -z "$ac_c_werror_flag"
12884			 || test ! -s conftest.err'
12885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886  (eval $ac_try) 2>&5
12887  ac_status=$?
12888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889  (exit $ac_status); }; } &&
12890	 { ac_try='test -s conftest$ac_exeext'
12891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892  (eval $ac_try) 2>&5
12893  ac_status=$?
12894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895  (exit $ac_status); }; }; then
12896  ac_cv_lib_crypto_DES_cbc_encrypt=yes
12897else
12898  echo "$as_me: failed program was:" >&5
12899sed 's/^/| /' conftest.$ac_ext >&5
12900
12901ac_cv_lib_crypto_DES_cbc_encrypt=no
12902fi
12903rm -f conftest.err conftest.$ac_objext \
12904      conftest$ac_exeext conftest.$ac_ext
12905LIBS=$ac_check_lib_save_LIBS
12906fi
12907echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12908echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
12909if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12910  cat >>confdefs.h <<_ACEOF
12911#define HAVE_LIBCRYPTO 1
12912_ACEOF
12913
12914  LIBS="-lcrypto $LIBS"
12915
12916fi
12917
12918
12919	CPPFLAGS="$CPPFLAGS $V_INCLS"
12920
12921for ac_header in openssl/evp.h
12922do
12923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12924if eval "test \"\${$as_ac_Header+set}\" = set"; then
12925  echo "$as_me:$LINENO: checking for $ac_header" >&5
12926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12927if eval "test \"\${$as_ac_Header+set}\" = set"; then
12928  echo $ECHO_N "(cached) $ECHO_C" >&6
12929fi
12930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12932else
12933  # Is the header compilable?
12934echo "$as_me:$LINENO: checking $ac_header usability" >&5
12935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12936cat >conftest.$ac_ext <<_ACEOF
12937/* confdefs.h.  */
12938_ACEOF
12939cat confdefs.h >>conftest.$ac_ext
12940cat >>conftest.$ac_ext <<_ACEOF
12941/* end confdefs.h.  */
12942$ac_includes_default
12943#include <$ac_header>
12944_ACEOF
12945rm -f conftest.$ac_objext
12946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947  (eval $ac_compile) 2>conftest.er1
12948  ac_status=$?
12949  grep -v '^ *+' conftest.er1 >conftest.err
12950  rm -f conftest.er1
12951  cat conftest.err >&5
12952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953  (exit $ac_status); } &&
12954	 { ac_try='test -z "$ac_c_werror_flag"
12955			 || test ! -s conftest.err'
12956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957  (eval $ac_try) 2>&5
12958  ac_status=$?
12959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960  (exit $ac_status); }; } &&
12961	 { ac_try='test -s conftest.$ac_objext'
12962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963  (eval $ac_try) 2>&5
12964  ac_status=$?
12965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966  (exit $ac_status); }; }; then
12967  ac_header_compiler=yes
12968else
12969  echo "$as_me: failed program was:" >&5
12970sed 's/^/| /' conftest.$ac_ext >&5
12971
12972ac_header_compiler=no
12973fi
12974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12975echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12976echo "${ECHO_T}$ac_header_compiler" >&6
12977
12978# Is the header present?
12979echo "$as_me:$LINENO: checking $ac_header presence" >&5
12980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12981cat >conftest.$ac_ext <<_ACEOF
12982/* confdefs.h.  */
12983_ACEOF
12984cat confdefs.h >>conftest.$ac_ext
12985cat >>conftest.$ac_ext <<_ACEOF
12986/* end confdefs.h.  */
12987#include <$ac_header>
12988_ACEOF
12989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12990  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12991  ac_status=$?
12992  grep -v '^ *+' conftest.er1 >conftest.err
12993  rm -f conftest.er1
12994  cat conftest.err >&5
12995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996  (exit $ac_status); } >/dev/null; then
12997  if test -s conftest.err; then
12998    ac_cpp_err=$ac_c_preproc_warn_flag
12999    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13000  else
13001    ac_cpp_err=
13002  fi
13003else
13004  ac_cpp_err=yes
13005fi
13006if test -z "$ac_cpp_err"; then
13007  ac_header_preproc=yes
13008else
13009  echo "$as_me: failed program was:" >&5
13010sed 's/^/| /' conftest.$ac_ext >&5
13011
13012  ac_header_preproc=no
13013fi
13014rm -f conftest.err conftest.$ac_ext
13015echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13016echo "${ECHO_T}$ac_header_preproc" >&6
13017
13018# So?  What about this header?
13019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13020  yes:no: )
13021    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13023    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13025    ac_header_preproc=yes
13026    ;;
13027  no:yes:* )
13028    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13030    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13031echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13032    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13034    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13035echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13036    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13038    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13040    (
13041      cat <<\_ASBOX
13042## ------------------------------------------ ##
13043## Report this to the AC_PACKAGE_NAME lists.  ##
13044## ------------------------------------------ ##
13045_ASBOX
13046    ) |
13047      sed "s/^/$as_me: WARNING:     /" >&2
13048    ;;
13049esac
13050echo "$as_me:$LINENO: checking for $ac_header" >&5
13051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13052if eval "test \"\${$as_ac_Header+set}\" = set"; then
13053  echo $ECHO_N "(cached) $ECHO_C" >&6
13054else
13055  eval "$as_ac_Header=\$ac_header_preproc"
13056fi
13057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13059
13060fi
13061if test `eval echo '${'$as_ac_Header'}'` = yes; then
13062  cat >>confdefs.h <<_ACEOF
13063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13064_ACEOF
13065
13066fi
13067
13068done
13069
13070fi
13071
13072fi;
13073
13074if test "$missing_includes" = "yes"; then
13075	CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
13076	V_INCLS="$V_INCLS -I\$(srcdir)/missing"
13077fi
13078
13079
13080
13081
13082
13083
13084
13085
13086# Find a good install program.  We prefer a C program (faster),
13087# so one script is as good as another.  But avoid the broken or
13088# incompatible versions:
13089# SysV /etc/install, /usr/sbin/install
13090# SunOS /usr/etc/install
13091# IRIX /sbin/install
13092# AIX /bin/install
13093# AmigaOS /C/install, which installs bootblocks on floppy discs
13094# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13095# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13096# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13097# OS/2's system install, which has a completely different semantic
13098# ./install, which can be erroneously created by make from ./install.sh.
13099echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13100echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13101if test -z "$INSTALL"; then
13102if test "${ac_cv_path_install+set}" = set; then
13103  echo $ECHO_N "(cached) $ECHO_C" >&6
13104else
13105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106for as_dir in $PATH
13107do
13108  IFS=$as_save_IFS
13109  test -z "$as_dir" && as_dir=.
13110  # Account for people who put trailing slashes in PATH elements.
13111case $as_dir/ in
13112  ./ | .// | /cC/* | \
13113  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13114  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13115  /usr/ucb/* ) ;;
13116  *)
13117    # OSF1 and SCO ODT 3.0 have their own names for install.
13118    # Don't use installbsd from OSF since it installs stuff as root
13119    # by default.
13120    for ac_prog in ginstall scoinst install; do
13121      for ac_exec_ext in '' $ac_executable_extensions; do
13122	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13123	  if test $ac_prog = install &&
13124	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13125	    # AIX install.  It has an incompatible calling convention.
13126	    :
13127	  elif test $ac_prog = install &&
13128	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13129	    # program-specific install script used by HP pwplus--don't use.
13130	    :
13131	  else
13132	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13133	    break 3
13134	  fi
13135	fi
13136      done
13137    done
13138    ;;
13139esac
13140done
13141
13142
13143fi
13144  if test "${ac_cv_path_install+set}" = set; then
13145    INSTALL=$ac_cv_path_install
13146  else
13147    # As a last resort, use the slow shell script.  We don't cache a
13148    # path for INSTALL within a source directory, because that will
13149    # break other packages using the cache if that directory is
13150    # removed, or if the path is relative.
13151    INSTALL=$ac_install_sh
13152  fi
13153fi
13154echo "$as_me:$LINENO: result: $INSTALL" >&5
13155echo "${ECHO_T}$INSTALL" >&6
13156
13157# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13158# It thinks the first close brace ends the variable substitution.
13159test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13160
13161test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13162
13163test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13164
13165
13166          ac_config_headers="$ac_config_headers config.h"
13167
13168
13169          ac_config_commands="$ac_config_commands default-1"
13170
13171          ac_config_files="$ac_config_files Makefile"
13172cat >confcache <<\_ACEOF
13173# This file is a shell script that caches the results of configure
13174# tests run on this system so they can be shared between configure
13175# scripts and configure runs, see configure's option --config-cache.
13176# It is not useful on other systems.  If it contains results you don't
13177# want to keep, you may remove or edit it.
13178#
13179# config.status only pays attention to the cache file if you give it
13180# the --recheck option to rerun configure.
13181#
13182# `ac_cv_env_foo' variables (set or unset) will be overridden when
13183# loading this file, other *unset* `ac_cv_foo' will be assigned the
13184# following values.
13185
13186_ACEOF
13187
13188# The following way of writing the cache mishandles newlines in values,
13189# but we know of no workaround that is simple, portable, and efficient.
13190# So, don't put newlines in cache variables' values.
13191# Ultrix sh set writes to stderr and can't be redirected directly,
13192# and sets the high bit in the cache file unless we assign to the vars.
13193{
13194  (set) 2>&1 |
13195    case `(ac_space=' '; set | grep ac_space) 2>&1` in
13196    *ac_space=\ *)
13197      # `set' does not quote correctly, so add quotes (double-quote
13198      # substitution turns \\\\ into \\, and sed turns \\ into \).
13199      sed -n \
13200	"s/'/'\\\\''/g;
13201	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13202      ;;
13203    *)
13204      # `set' quotes correctly as required by POSIX, so do not add quotes.
13205      sed -n \
13206	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13207      ;;
13208    esac;
13209} |
13210  sed '
13211     t clear
13212     : clear
13213     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13214     t end
13215     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13216     : end' >>confcache
13217if diff $cache_file confcache >/dev/null 2>&1; then :; else
13218  if test -w $cache_file; then
13219    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13220    cat confcache >$cache_file
13221  else
13222    echo "not updating unwritable cache $cache_file"
13223  fi
13224fi
13225rm -f confcache
13226
13227test "x$prefix" = xNONE && prefix=$ac_default_prefix
13228# Let make expand exec_prefix.
13229test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13230
13231# VPATH may cause trouble with some makes, so we remove $(srcdir),
13232# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13233# trailing colons and then remove the whole line if VPATH becomes empty
13234# (actually we leave an empty line to preserve line numbers).
13235if test "x$srcdir" = x.; then
13236  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13237s/:*\$(srcdir):*/:/;
13238s/:*\${srcdir}:*/:/;
13239s/:*@srcdir@:*/:/;
13240s/^\([^=]*=[	 ]*\):*/\1/;
13241s/:*$//;
13242s/^[^=]*=[	 ]*$//;
13243}'
13244fi
13245
13246DEFS=-DHAVE_CONFIG_H
13247
13248ac_libobjs=
13249ac_ltlibobjs=
13250for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13251  # 1. Remove the extension, and $U if already installed.
13252  ac_i=`echo "$ac_i" |
13253	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13254  # 2. Add them.
13255  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13256  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13257done
13258LIBOBJS=$ac_libobjs
13259
13260LTLIBOBJS=$ac_ltlibobjs
13261
13262
13263
13264: ${CONFIG_STATUS=./config.status}
13265ac_clean_files_save=$ac_clean_files
13266ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13267{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13268echo "$as_me: creating $CONFIG_STATUS" >&6;}
13269cat >$CONFIG_STATUS <<_ACEOF
13270#! $SHELL
13271# Generated by $as_me.
13272# Run this file to recreate the current configuration.
13273# Compiler output produced by configure, useful for debugging
13274# configure, is in config.log if it exists.
13275
13276debug=false
13277ac_cs_recheck=false
13278ac_cs_silent=false
13279SHELL=\${CONFIG_SHELL-$SHELL}
13280_ACEOF
13281
13282cat >>$CONFIG_STATUS <<\_ACEOF
13283## --------------------- ##
13284## M4sh Initialization.  ##
13285## --------------------- ##
13286
13287# Be Bourne compatible
13288if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13289  emulate sh
13290  NULLCMD=:
13291  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13292  # is contrary to our usage.  Disable this feature.
13293  alias -g '${1+"$@"}'='"$@"'
13294elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13295  set -o posix
13296fi
13297DUALCASE=1; export DUALCASE # for MKS sh
13298
13299# Support unset when possible.
13300if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13301  as_unset=unset
13302else
13303  as_unset=false
13304fi
13305
13306
13307# Work around bugs in pre-3.0 UWIN ksh.
13308$as_unset ENV MAIL MAILPATH
13309PS1='$ '
13310PS2='> '
13311PS4='+ '
13312
13313# NLS nuisances.
13314for as_var in \
13315  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13316  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13317  LC_TELEPHONE LC_TIME
13318do
13319  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13320    eval $as_var=C; export $as_var
13321  else
13322    $as_unset $as_var
13323  fi
13324done
13325
13326# Required to use basename.
13327if expr a : '\(a\)' >/dev/null 2>&1; then
13328  as_expr=expr
13329else
13330  as_expr=false
13331fi
13332
13333if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13334  as_basename=basename
13335else
13336  as_basename=false
13337fi
13338
13339
13340# Name of the executable.
13341as_me=`$as_basename "$0" ||
13342$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13343	 X"$0" : 'X\(//\)$' \| \
13344	 X"$0" : 'X\(/\)$' \| \
13345	 .     : '\(.\)' 2>/dev/null ||
13346echo X/"$0" |
13347    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13348  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
13349  	  /^X\/\(\/\).*/{ s//\1/; q; }
13350  	  s/.*/./; q'`
13351
13352
13353# PATH needs CR, and LINENO needs CR and PATH.
13354# Avoid depending upon Character Ranges.
13355as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13356as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13357as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13358as_cr_digits='0123456789'
13359as_cr_alnum=$as_cr_Letters$as_cr_digits
13360
13361# The user is always right.
13362if test "${PATH_SEPARATOR+set}" != set; then
13363  echo "#! /bin/sh" >conf$$.sh
13364  echo  "exit 0"   >>conf$$.sh
13365  chmod +x conf$$.sh
13366  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13367    PATH_SEPARATOR=';'
13368  else
13369    PATH_SEPARATOR=:
13370  fi
13371  rm -f conf$$.sh
13372fi
13373
13374
13375  as_lineno_1=$LINENO
13376  as_lineno_2=$LINENO
13377  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13378  test "x$as_lineno_1" != "x$as_lineno_2" &&
13379  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13380  # Find who we are.  Look in the path if we contain no path at all
13381  # relative or not.
13382  case $0 in
13383    *[\\/]* ) as_myself=$0 ;;
13384    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385for as_dir in $PATH
13386do
13387  IFS=$as_save_IFS
13388  test -z "$as_dir" && as_dir=.
13389  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13390done
13391
13392       ;;
13393  esac
13394  # We did not find ourselves, most probably we were run as `sh COMMAND'
13395  # in which case we are not to be found in the path.
13396  if test "x$as_myself" = x; then
13397    as_myself=$0
13398  fi
13399  if test ! -f "$as_myself"; then
13400    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13401echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13402   { (exit 1); exit 1; }; }
13403  fi
13404  case $CONFIG_SHELL in
13405  '')
13406    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13408do
13409  IFS=$as_save_IFS
13410  test -z "$as_dir" && as_dir=.
13411  for as_base in sh bash ksh sh5; do
13412	 case $as_dir in
13413	 /*)
13414	   if ("$as_dir/$as_base" -c '
13415  as_lineno_1=$LINENO
13416  as_lineno_2=$LINENO
13417  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13418  test "x$as_lineno_1" != "x$as_lineno_2" &&
13419  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13420	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13421	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13422	     CONFIG_SHELL=$as_dir/$as_base
13423	     export CONFIG_SHELL
13424	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13425	   fi;;
13426	 esac
13427       done
13428done
13429;;
13430  esac
13431
13432  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13433  # uniformly replaced by the line number.  The first 'sed' inserts a
13434  # line-number line before each line; the second 'sed' does the real
13435  # work.  The second script uses 'N' to pair each line-number line
13436  # with the numbered line, and appends trailing '-' during
13437  # substitution so that $LINENO is not a special case at line end.
13438  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13439  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13440  sed '=' <$as_myself |
13441    sed '
13442      N
13443      s,$,-,
13444      : loop
13445      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13446      t loop
13447      s,-$,,
13448      s,^['$as_cr_digits']*\n,,
13449    ' >$as_me.lineno &&
13450  chmod +x $as_me.lineno ||
13451    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13452echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13453   { (exit 1); exit 1; }; }
13454
13455  # Don't try to exec as it changes $[0], causing all sort of problems
13456  # (the dirname of $[0] is not the place where we might find the
13457  # original and so on.  Autoconf is especially sensible to this).
13458  . ./$as_me.lineno
13459  # Exit status is that of the last command.
13460  exit
13461}
13462
13463
13464case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13465  *c*,-n*) ECHO_N= ECHO_C='
13466' ECHO_T='	' ;;
13467  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13468  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13469esac
13470
13471if expr a : '\(a\)' >/dev/null 2>&1; then
13472  as_expr=expr
13473else
13474  as_expr=false
13475fi
13476
13477rm -f conf$$ conf$$.exe conf$$.file
13478echo >conf$$.file
13479if ln -s conf$$.file conf$$ 2>/dev/null; then
13480  # We could just check for DJGPP; but this test a) works b) is more generic
13481  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13482  if test -f conf$$.exe; then
13483    # Don't use ln at all; we don't have any links
13484    as_ln_s='cp -p'
13485  else
13486    as_ln_s='ln -s'
13487  fi
13488elif ln conf$$.file conf$$ 2>/dev/null; then
13489  as_ln_s=ln
13490else
13491  as_ln_s='cp -p'
13492fi
13493rm -f conf$$ conf$$.exe conf$$.file
13494
13495if mkdir -p . 2>/dev/null; then
13496  as_mkdir_p=:
13497else
13498  test -d ./-p && rmdir ./-p
13499  as_mkdir_p=false
13500fi
13501
13502as_executable_p="test -f"
13503
13504# Sed expression to map a string onto a valid CPP name.
13505as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13506
13507# Sed expression to map a string onto a valid variable name.
13508as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13509
13510
13511# IFS
13512# We need space, tab and new line, in precisely that order.
13513as_nl='
13514'
13515IFS=" 	$as_nl"
13516
13517# CDPATH.
13518$as_unset CDPATH
13519
13520exec 6>&1
13521
13522# Open the log real soon, to keep \$[0] and so on meaningful, and to
13523# report actual input values of CONFIG_FILES etc. instead of their
13524# values after options handling.  Logging --version etc. is OK.
13525exec 5>>config.log
13526{
13527  echo
13528  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13529## Running $as_me. ##
13530_ASBOX
13531} >&5
13532cat >&5 <<_CSEOF
13533
13534This file was extended by $as_me, which was
13535generated by GNU Autoconf 2.59.  Invocation command line was
13536
13537  CONFIG_FILES    = $CONFIG_FILES
13538  CONFIG_HEADERS  = $CONFIG_HEADERS
13539  CONFIG_LINKS    = $CONFIG_LINKS
13540  CONFIG_COMMANDS = $CONFIG_COMMANDS
13541  $ $0 $@
13542
13543_CSEOF
13544echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13545echo >&5
13546_ACEOF
13547
13548# Files that config.status was made for.
13549if test -n "$ac_config_files"; then
13550  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13551fi
13552
13553if test -n "$ac_config_headers"; then
13554  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13555fi
13556
13557if test -n "$ac_config_links"; then
13558  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13559fi
13560
13561if test -n "$ac_config_commands"; then
13562  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13563fi
13564
13565cat >>$CONFIG_STATUS <<\_ACEOF
13566
13567ac_cs_usage="\
13568\`$as_me' instantiates files from templates according to the
13569current configuration.
13570
13571Usage: $0 [OPTIONS] [FILE]...
13572
13573  -h, --help       print this help, then exit
13574  -V, --version    print version number, then exit
13575  -q, --quiet      do not print progress messages
13576  -d, --debug      don't remove temporary files
13577      --recheck    update $as_me by reconfiguring in the same conditions
13578  --file=FILE[:TEMPLATE]
13579		   instantiate the configuration file FILE
13580  --header=FILE[:TEMPLATE]
13581		   instantiate the configuration header FILE
13582
13583Configuration files:
13584$config_files
13585
13586Configuration headers:
13587$config_headers
13588
13589Configuration commands:
13590$config_commands
13591
13592Report bugs to <bug-autoconf@gnu.org>."
13593_ACEOF
13594
13595cat >>$CONFIG_STATUS <<_ACEOF
13596ac_cs_version="\\
13597config.status
13598configured by $0, generated by GNU Autoconf 2.59,
13599  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13600
13601Copyright (C) 2003 Free Software Foundation, Inc.
13602This config.status script is free software; the Free Software Foundation
13603gives unlimited permission to copy, distribute and modify it."
13604srcdir=$srcdir
13605INSTALL="$INSTALL"
13606_ACEOF
13607
13608cat >>$CONFIG_STATUS <<\_ACEOF
13609# If no file are specified by the user, then we need to provide default
13610# value.  By we need to know if files were specified by the user.
13611ac_need_defaults=:
13612while test $# != 0
13613do
13614  case $1 in
13615  --*=*)
13616    ac_option=`expr "x$1" : 'x\([^=]*\)='`
13617    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13618    ac_shift=:
13619    ;;
13620  -*)
13621    ac_option=$1
13622    ac_optarg=$2
13623    ac_shift=shift
13624    ;;
13625  *) # This is not an option, so the user has probably given explicit
13626     # arguments.
13627     ac_option=$1
13628     ac_need_defaults=false;;
13629  esac
13630
13631  case $ac_option in
13632  # Handling of the options.
13633_ACEOF
13634cat >>$CONFIG_STATUS <<\_ACEOF
13635  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13636    ac_cs_recheck=: ;;
13637  --version | --vers* | -V )
13638    echo "$ac_cs_version"; exit 0 ;;
13639  --he | --h)
13640    # Conflict between --help and --header
13641    { { echo "$as_me:$LINENO: error: ambiguous option: $1
13642Try \`$0 --help' for more information." >&5
13643echo "$as_me: error: ambiguous option: $1
13644Try \`$0 --help' for more information." >&2;}
13645   { (exit 1); exit 1; }; };;
13646  --help | --hel | -h )
13647    echo "$ac_cs_usage"; exit 0 ;;
13648  --debug | --d* | -d )
13649    debug=: ;;
13650  --file | --fil | --fi | --f )
13651    $ac_shift
13652    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13653    ac_need_defaults=false;;
13654  --header | --heade | --head | --hea )
13655    $ac_shift
13656    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13657    ac_need_defaults=false;;
13658  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13659  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13660    ac_cs_silent=: ;;
13661
13662  # This is an error.
13663  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13664Try \`$0 --help' for more information." >&5
13665echo "$as_me: error: unrecognized option: $1
13666Try \`$0 --help' for more information." >&2;}
13667   { (exit 1); exit 1; }; } ;;
13668
13669  *) ac_config_targets="$ac_config_targets $1" ;;
13670
13671  esac
13672  shift
13673done
13674
13675ac_configure_extra_args=
13676
13677if $ac_cs_silent; then
13678  exec 6>/dev/null
13679  ac_configure_extra_args="$ac_configure_extra_args --silent"
13680fi
13681
13682_ACEOF
13683cat >>$CONFIG_STATUS <<_ACEOF
13684if \$ac_cs_recheck; then
13685  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13686  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13687fi
13688
13689_ACEOF
13690
13691cat >>$CONFIG_STATUS <<_ACEOF
13692#
13693# INIT-COMMANDS section.
13694#
13695
13696
13697
13698_ACEOF
13699
13700
13701
13702cat >>$CONFIG_STATUS <<\_ACEOF
13703for ac_config_target in $ac_config_targets
13704do
13705  case "$ac_config_target" in
13706  # Handling of arguments.
13707  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13708  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13709  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13710  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13711echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13712   { (exit 1); exit 1; }; };;
13713  esac
13714done
13715
13716# If the user did not use the arguments to specify the items to instantiate,
13717# then the envvar interface is used.  Set only those that are not.
13718# We use the long form for the default assignment because of an extremely
13719# bizarre bug on SunOS 4.1.3.
13720if $ac_need_defaults; then
13721  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13722  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13723  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13724fi
13725
13726# Have a temporary directory for convenience.  Make it in the build tree
13727# simply because there is no reason to put it here, and in addition,
13728# creating and moving files from /tmp can sometimes cause problems.
13729# Create a temporary directory, and hook for its removal unless debugging.
13730$debug ||
13731{
13732  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13733  trap '{ (exit 1); exit 1; }' 1 2 13 15
13734}
13735
13736# Create a (secure) tmp directory for tmp files.
13737
13738{
13739  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13740  test -n "$tmp" && test -d "$tmp"
13741}  ||
13742{
13743  tmp=./confstat$$-$RANDOM
13744  (umask 077 && mkdir $tmp)
13745} ||
13746{
13747   echo "$me: cannot create a temporary directory in ." >&2
13748   { (exit 1); exit 1; }
13749}
13750
13751_ACEOF
13752
13753cat >>$CONFIG_STATUS <<_ACEOF
13754
13755#
13756# CONFIG_FILES section.
13757#
13758
13759# No need to generate the scripts if there are no CONFIG_FILES.
13760# This happens for instance when ./config.status config.h
13761if test -n "\$CONFIG_FILES"; then
13762  # Protect against being on the right side of a sed subst in config.status.
13763  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13764   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13765s,@SHELL@,$SHELL,;t t
13766s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13767s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13768s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13769s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13770s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13771s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13772s,@exec_prefix@,$exec_prefix,;t t
13773s,@prefix@,$prefix,;t t
13774s,@program_transform_name@,$program_transform_name,;t t
13775s,@bindir@,$bindir,;t t
13776s,@sbindir@,$sbindir,;t t
13777s,@libexecdir@,$libexecdir,;t t
13778s,@datadir@,$datadir,;t t
13779s,@sysconfdir@,$sysconfdir,;t t
13780s,@sharedstatedir@,$sharedstatedir,;t t
13781s,@localstatedir@,$localstatedir,;t t
13782s,@libdir@,$libdir,;t t
13783s,@includedir@,$includedir,;t t
13784s,@oldincludedir@,$oldincludedir,;t t
13785s,@infodir@,$infodir,;t t
13786s,@mandir@,$mandir,;t t
13787s,@build_alias@,$build_alias,;t t
13788s,@host_alias@,$host_alias,;t t
13789s,@target_alias@,$target_alias,;t t
13790s,@DEFS@,$DEFS,;t t
13791s,@ECHO_C@,$ECHO_C,;t t
13792s,@ECHO_N@,$ECHO_N,;t t
13793s,@ECHO_T@,$ECHO_T,;t t
13794s,@LIBS@,$LIBS,;t t
13795s,@build@,$build,;t t
13796s,@build_cpu@,$build_cpu,;t t
13797s,@build_vendor@,$build_vendor,;t t
13798s,@build_os@,$build_os,;t t
13799s,@host@,$host,;t t
13800s,@host_cpu@,$host_cpu,;t t
13801s,@host_vendor@,$host_vendor,;t t
13802s,@host_os@,$host_os,;t t
13803s,@SHLICC2@,$SHLICC2,;t t
13804s,@CC@,$CC,;t t
13805s,@CFLAGS@,$CFLAGS,;t t
13806s,@LDFLAGS@,$LDFLAGS,;t t
13807s,@CPPFLAGS@,$CPPFLAGS,;t t
13808s,@ac_ct_CC@,$ac_ct_CC,;t t
13809s,@EXEEXT@,$EXEEXT,;t t
13810s,@OBJEXT@,$OBJEXT,;t t
13811s,@CPP@,$CPP,;t t
13812s,@EGREP@,$EGREP,;t t
13813s,@LIBOBJS@,$LIBOBJS,;t t
13814s,@V_CCOPT@,$V_CCOPT,;t t
13815s,@V_DEFS@,$V_DEFS,;t t
13816s,@V_GROUP@,$V_GROUP,;t t
13817s,@V_INCLS@,$V_INCLS,;t t
13818s,@V_PCAPDEP@,$V_PCAPDEP,;t t
13819s,@LOCALSRC@,$LOCALSRC,;t t
13820s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13821s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13822s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13823s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13824CEOF
13825
13826_ACEOF
13827
13828  cat >>$CONFIG_STATUS <<\_ACEOF
13829  # Split the substitutions into bite-sized pieces for seds with
13830  # small command number limits, like on Digital OSF/1 and HP-UX.
13831  ac_max_sed_lines=48
13832  ac_sed_frag=1 # Number of current file.
13833  ac_beg=1 # First line for current file.
13834  ac_end=$ac_max_sed_lines # Line after last line for current file.
13835  ac_more_lines=:
13836  ac_sed_cmds=
13837  while $ac_more_lines; do
13838    if test $ac_beg -gt 1; then
13839      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13840    else
13841      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13842    fi
13843    if test ! -s $tmp/subs.frag; then
13844      ac_more_lines=false
13845    else
13846      # The purpose of the label and of the branching condition is to
13847      # speed up the sed processing (if there are no `@' at all, there
13848      # is no need to browse any of the substitutions).
13849      # These are the two extra sed commands mentioned above.
13850      (echo ':t
13851  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13852      if test -z "$ac_sed_cmds"; then
13853	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13854      else
13855	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13856      fi
13857      ac_sed_frag=`expr $ac_sed_frag + 1`
13858      ac_beg=$ac_end
13859      ac_end=`expr $ac_end + $ac_max_sed_lines`
13860    fi
13861  done
13862  if test -z "$ac_sed_cmds"; then
13863    ac_sed_cmds=cat
13864  fi
13865fi # test -n "$CONFIG_FILES"
13866
13867_ACEOF
13868cat >>$CONFIG_STATUS <<\_ACEOF
13869for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13870  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13871  case $ac_file in
13872  - | *:- | *:-:* ) # input from stdin
13873	cat >$tmp/stdin
13874	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13875	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13876  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13877	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13878  * )   ac_file_in=$ac_file.in ;;
13879  esac
13880
13881  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13882  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13883$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13884	 X"$ac_file" : 'X\(//\)[^/]' \| \
13885	 X"$ac_file" : 'X\(//\)$' \| \
13886	 X"$ac_file" : 'X\(/\)' \| \
13887	 .     : '\(.\)' 2>/dev/null ||
13888echo X"$ac_file" |
13889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13890  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13891  	  /^X\(\/\/\)$/{ s//\1/; q; }
13892  	  /^X\(\/\).*/{ s//\1/; q; }
13893  	  s/.*/./; q'`
13894  { if $as_mkdir_p; then
13895    mkdir -p "$ac_dir"
13896  else
13897    as_dir="$ac_dir"
13898    as_dirs=
13899    while test ! -d "$as_dir"; do
13900      as_dirs="$as_dir $as_dirs"
13901      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13902$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13903	 X"$as_dir" : 'X\(//\)[^/]' \| \
13904	 X"$as_dir" : 'X\(//\)$' \| \
13905	 X"$as_dir" : 'X\(/\)' \| \
13906	 .     : '\(.\)' 2>/dev/null ||
13907echo X"$as_dir" |
13908    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13909  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13910  	  /^X\(\/\/\)$/{ s//\1/; q; }
13911  	  /^X\(\/\).*/{ s//\1/; q; }
13912  	  s/.*/./; q'`
13913    done
13914    test ! -n "$as_dirs" || mkdir $as_dirs
13915  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13916echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13917   { (exit 1); exit 1; }; }; }
13918
13919  ac_builddir=.
13920
13921if test "$ac_dir" != .; then
13922  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13923  # A "../" for each directory in $ac_dir_suffix.
13924  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13925else
13926  ac_dir_suffix= ac_top_builddir=
13927fi
13928
13929case $srcdir in
13930  .)  # No --srcdir option.  We are building in place.
13931    ac_srcdir=.
13932    if test -z "$ac_top_builddir"; then
13933       ac_top_srcdir=.
13934    else
13935       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13936    fi ;;
13937  [\\/]* | ?:[\\/]* )  # Absolute path.
13938    ac_srcdir=$srcdir$ac_dir_suffix;
13939    ac_top_srcdir=$srcdir ;;
13940  *) # Relative path.
13941    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13942    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13943esac
13944
13945# Do not use `cd foo && pwd` to compute absolute paths, because
13946# the directories may not exist.
13947case `pwd` in
13948.) ac_abs_builddir="$ac_dir";;
13949*)
13950  case "$ac_dir" in
13951  .) ac_abs_builddir=`pwd`;;
13952  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13953  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13954  esac;;
13955esac
13956case $ac_abs_builddir in
13957.) ac_abs_top_builddir=${ac_top_builddir}.;;
13958*)
13959  case ${ac_top_builddir}. in
13960  .) ac_abs_top_builddir=$ac_abs_builddir;;
13961  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13962  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13963  esac;;
13964esac
13965case $ac_abs_builddir in
13966.) ac_abs_srcdir=$ac_srcdir;;
13967*)
13968  case $ac_srcdir in
13969  .) ac_abs_srcdir=$ac_abs_builddir;;
13970  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13971  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13972  esac;;
13973esac
13974case $ac_abs_builddir in
13975.) ac_abs_top_srcdir=$ac_top_srcdir;;
13976*)
13977  case $ac_top_srcdir in
13978  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13979  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13980  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13981  esac;;
13982esac
13983
13984
13985  case $INSTALL in
13986  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13987  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13988  esac
13989
13990  if test x"$ac_file" != x-; then
13991    { echo "$as_me:$LINENO: creating $ac_file" >&5
13992echo "$as_me: creating $ac_file" >&6;}
13993    rm -f "$ac_file"
13994  fi
13995  # Let's still pretend it is `configure' which instantiates (i.e., don't
13996  # use $as_me), people would be surprised to read:
13997  #    /* config.h.  Generated by config.status.  */
13998  if test x"$ac_file" = x-; then
13999    configure_input=
14000  else
14001    configure_input="$ac_file.  "
14002  fi
14003  configure_input=$configure_input"Generated from `echo $ac_file_in |
14004				     sed 's,.*/,,'` by configure."
14005
14006  # First look for the input files in the build tree, otherwise in the
14007  # src tree.
14008  ac_file_inputs=`IFS=:
14009    for f in $ac_file_in; do
14010      case $f in
14011      -) echo $tmp/stdin ;;
14012      [\\/$]*)
14013	 # Absolute (can't be DOS-style, as IFS=:)
14014	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14015echo "$as_me: error: cannot find input file: $f" >&2;}
14016   { (exit 1); exit 1; }; }
14017	 echo "$f";;
14018      *) # Relative
14019	 if test -f "$f"; then
14020	   # Build tree
14021	   echo "$f"
14022	 elif test -f "$srcdir/$f"; then
14023	   # Source tree
14024	   echo "$srcdir/$f"
14025	 else
14026	   # /dev/null tree
14027	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14028echo "$as_me: error: cannot find input file: $f" >&2;}
14029   { (exit 1); exit 1; }; }
14030	 fi;;
14031      esac
14032    done` || { (exit 1); exit 1; }
14033_ACEOF
14034cat >>$CONFIG_STATUS <<_ACEOF
14035  sed "$ac_vpsub
14036$extrasub
14037_ACEOF
14038cat >>$CONFIG_STATUS <<\_ACEOF
14039:t
14040/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14041s,@configure_input@,$configure_input,;t t
14042s,@srcdir@,$ac_srcdir,;t t
14043s,@abs_srcdir@,$ac_abs_srcdir,;t t
14044s,@top_srcdir@,$ac_top_srcdir,;t t
14045s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14046s,@builddir@,$ac_builddir,;t t
14047s,@abs_builddir@,$ac_abs_builddir,;t t
14048s,@top_builddir@,$ac_top_builddir,;t t
14049s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14050s,@INSTALL@,$ac_INSTALL,;t t
14051" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14052  rm -f $tmp/stdin
14053  if test x"$ac_file" != x-; then
14054    mv $tmp/out $ac_file
14055  else
14056    cat $tmp/out
14057    rm -f $tmp/out
14058  fi
14059
14060done
14061_ACEOF
14062cat >>$CONFIG_STATUS <<\_ACEOF
14063
14064#
14065# CONFIG_HEADER section.
14066#
14067
14068# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14069# NAME is the cpp macro being defined and VALUE is the value it is being given.
14070#
14071# ac_d sets the value in "#define NAME VALUE" lines.
14072ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
14073ac_dB='[	 ].*$,\1#\2'
14074ac_dC=' '
14075ac_dD=',;t'
14076# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14077ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
14078ac_uB='$,\1#\2define\3'
14079ac_uC=' '
14080ac_uD=',;t'
14081
14082for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14083  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14084  case $ac_file in
14085  - | *:- | *:-:* ) # input from stdin
14086	cat >$tmp/stdin
14087	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14088	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14089  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14090	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14091  * )   ac_file_in=$ac_file.in ;;
14092  esac
14093
14094  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14095echo "$as_me: creating $ac_file" >&6;}
14096
14097  # First look for the input files in the build tree, otherwise in the
14098  # src tree.
14099  ac_file_inputs=`IFS=:
14100    for f in $ac_file_in; do
14101      case $f in
14102      -) echo $tmp/stdin ;;
14103      [\\/$]*)
14104	 # Absolute (can't be DOS-style, as IFS=:)
14105	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14106echo "$as_me: error: cannot find input file: $f" >&2;}
14107   { (exit 1); exit 1; }; }
14108	 # Do quote $f, to prevent DOS paths from being IFS'd.
14109	 echo "$f";;
14110      *) # Relative
14111	 if test -f "$f"; then
14112	   # Build tree
14113	   echo "$f"
14114	 elif test -f "$srcdir/$f"; then
14115	   # Source tree
14116	   echo "$srcdir/$f"
14117	 else
14118	   # /dev/null tree
14119	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14120echo "$as_me: error: cannot find input file: $f" >&2;}
14121   { (exit 1); exit 1; }; }
14122	 fi;;
14123      esac
14124    done` || { (exit 1); exit 1; }
14125  # Remove the trailing spaces.
14126  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
14127
14128_ACEOF
14129
14130# Transform confdefs.h into two sed scripts, `conftest.defines' and
14131# `conftest.undefs', that substitutes the proper values into
14132# config.h.in to produce config.h.  The first handles `#define'
14133# templates, and the second `#undef' templates.
14134# And first: Protect against being on the right side of a sed subst in
14135# config.status.  Protect against being in an unquoted here document
14136# in config.status.
14137rm -f conftest.defines conftest.undefs
14138# Using a here document instead of a string reduces the quoting nightmare.
14139# Putting comments in sed scripts is not portable.
14140#
14141# `end' is used to avoid that the second main sed command (meant for
14142# 0-ary CPP macros) applies to n-ary macro definitions.
14143# See the Autoconf documentation for `clear'.
14144cat >confdef2sed.sed <<\_ACEOF
14145s/[\\&,]/\\&/g
14146s,[\\$`],\\&,g
14147t clear
14148: clear
14149s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14150t end
14151s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14152: end
14153_ACEOF
14154# If some macros were called several times there might be several times
14155# the same #defines, which is useless.  Nevertheless, we may not want to
14156# sort them, since we want the *last* AC-DEFINE to be honored.
14157uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14158sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14159rm -f confdef2sed.sed
14160
14161# This sed command replaces #undef with comments.  This is necessary, for
14162# example, in the case of _POSIX_SOURCE, which is predefined and required
14163# on some systems where configure will not decide to define it.
14164cat >>conftest.undefs <<\_ACEOF
14165s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14166_ACEOF
14167
14168# Break up conftest.defines because some shells have a limit on the size
14169# of here documents, and old seds have small limits too (100 cmds).
14170echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14171echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14172echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14173echo '  :' >>$CONFIG_STATUS
14174rm -f conftest.tail
14175while grep . conftest.defines >/dev/null
14176do
14177  # Write a limited-size here document to $tmp/defines.sed.
14178  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14179  # Speed up: don't consider the non `#define' lines.
14180  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
14181  # Work around the forget-to-reset-the-flag bug.
14182  echo 't clr' >>$CONFIG_STATUS
14183  echo ': clr' >>$CONFIG_STATUS
14184  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14185  echo 'CEOF
14186  sed -f $tmp/defines.sed $tmp/in >$tmp/out
14187  rm -f $tmp/in
14188  mv $tmp/out $tmp/in
14189' >>$CONFIG_STATUS
14190  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14191  rm -f conftest.defines
14192  mv conftest.tail conftest.defines
14193done
14194rm -f conftest.defines
14195echo '  fi # grep' >>$CONFIG_STATUS
14196echo >>$CONFIG_STATUS
14197
14198# Break up conftest.undefs because some shells have a limit on the size
14199# of here documents, and old seds have small limits too (100 cmds).
14200echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14201rm -f conftest.tail
14202while grep . conftest.undefs >/dev/null
14203do
14204  # Write a limited-size here document to $tmp/undefs.sed.
14205  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14206  # Speed up: don't consider the non `#undef'
14207  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
14208  # Work around the forget-to-reset-the-flag bug.
14209  echo 't clr' >>$CONFIG_STATUS
14210  echo ': clr' >>$CONFIG_STATUS
14211  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14212  echo 'CEOF
14213  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14214  rm -f $tmp/in
14215  mv $tmp/out $tmp/in
14216' >>$CONFIG_STATUS
14217  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14218  rm -f conftest.undefs
14219  mv conftest.tail conftest.undefs
14220done
14221rm -f conftest.undefs
14222
14223cat >>$CONFIG_STATUS <<\_ACEOF
14224  # Let's still pretend it is `configure' which instantiates (i.e., don't
14225  # use $as_me), people would be surprised to read:
14226  #    /* config.h.  Generated by config.status.  */
14227  if test x"$ac_file" = x-; then
14228    echo "/* Generated by configure.  */" >$tmp/config.h
14229  else
14230    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14231  fi
14232  cat $tmp/in >>$tmp/config.h
14233  rm -f $tmp/in
14234  if test x"$ac_file" != x-; then
14235    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14236      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14237echo "$as_me: $ac_file is unchanged" >&6;}
14238    else
14239      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14240$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14241	 X"$ac_file" : 'X\(//\)[^/]' \| \
14242	 X"$ac_file" : 'X\(//\)$' \| \
14243	 X"$ac_file" : 'X\(/\)' \| \
14244	 .     : '\(.\)' 2>/dev/null ||
14245echo X"$ac_file" |
14246    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14247  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14248  	  /^X\(\/\/\)$/{ s//\1/; q; }
14249  	  /^X\(\/\).*/{ s//\1/; q; }
14250  	  s/.*/./; q'`
14251      { if $as_mkdir_p; then
14252    mkdir -p "$ac_dir"
14253  else
14254    as_dir="$ac_dir"
14255    as_dirs=
14256    while test ! -d "$as_dir"; do
14257      as_dirs="$as_dir $as_dirs"
14258      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14259$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14260	 X"$as_dir" : 'X\(//\)[^/]' \| \
14261	 X"$as_dir" : 'X\(//\)$' \| \
14262	 X"$as_dir" : 'X\(/\)' \| \
14263	 .     : '\(.\)' 2>/dev/null ||
14264echo X"$as_dir" |
14265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14266  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14267  	  /^X\(\/\/\)$/{ s//\1/; q; }
14268  	  /^X\(\/\).*/{ s//\1/; q; }
14269  	  s/.*/./; q'`
14270    done
14271    test ! -n "$as_dirs" || mkdir $as_dirs
14272  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14273echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14274   { (exit 1); exit 1; }; }; }
14275
14276      rm -f $ac_file
14277      mv $tmp/config.h $ac_file
14278    fi
14279  else
14280    cat $tmp/config.h
14281    rm -f $tmp/config.h
14282  fi
14283done
14284_ACEOF
14285cat >>$CONFIG_STATUS <<\_ACEOF
14286
14287#
14288# CONFIG_COMMANDS section.
14289#
14290for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14291  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14292  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14293  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14294$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14295	 X"$ac_dest" : 'X\(//\)[^/]' \| \
14296	 X"$ac_dest" : 'X\(//\)$' \| \
14297	 X"$ac_dest" : 'X\(/\)' \| \
14298	 .     : '\(.\)' 2>/dev/null ||
14299echo X"$ac_dest" |
14300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14301  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14302  	  /^X\(\/\/\)$/{ s//\1/; q; }
14303  	  /^X\(\/\).*/{ s//\1/; q; }
14304  	  s/.*/./; q'`
14305  { if $as_mkdir_p; then
14306    mkdir -p "$ac_dir"
14307  else
14308    as_dir="$ac_dir"
14309    as_dirs=
14310    while test ! -d "$as_dir"; do
14311      as_dirs="$as_dir $as_dirs"
14312      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14314	 X"$as_dir" : 'X\(//\)[^/]' \| \
14315	 X"$as_dir" : 'X\(//\)$' \| \
14316	 X"$as_dir" : 'X\(/\)' \| \
14317	 .     : '\(.\)' 2>/dev/null ||
14318echo X"$as_dir" |
14319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14320  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14321  	  /^X\(\/\/\)$/{ s//\1/; q; }
14322  	  /^X\(\/\).*/{ s//\1/; q; }
14323  	  s/.*/./; q'`
14324    done
14325    test ! -n "$as_dirs" || mkdir $as_dirs
14326  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14327echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14328   { (exit 1); exit 1; }; }; }
14329
14330  ac_builddir=.
14331
14332if test "$ac_dir" != .; then
14333  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14334  # A "../" for each directory in $ac_dir_suffix.
14335  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14336else
14337  ac_dir_suffix= ac_top_builddir=
14338fi
14339
14340case $srcdir in
14341  .)  # No --srcdir option.  We are building in place.
14342    ac_srcdir=.
14343    if test -z "$ac_top_builddir"; then
14344       ac_top_srcdir=.
14345    else
14346       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14347    fi ;;
14348  [\\/]* | ?:[\\/]* )  # Absolute path.
14349    ac_srcdir=$srcdir$ac_dir_suffix;
14350    ac_top_srcdir=$srcdir ;;
14351  *) # Relative path.
14352    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14353    ac_top_srcdir=$ac_top_builddir$srcdir ;;
14354esac
14355
14356# Do not use `cd foo && pwd` to compute absolute paths, because
14357# the directories may not exist.
14358case `pwd` in
14359.) ac_abs_builddir="$ac_dir";;
14360*)
14361  case "$ac_dir" in
14362  .) ac_abs_builddir=`pwd`;;
14363  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14364  *) ac_abs_builddir=`pwd`/"$ac_dir";;
14365  esac;;
14366esac
14367case $ac_abs_builddir in
14368.) ac_abs_top_builddir=${ac_top_builddir}.;;
14369*)
14370  case ${ac_top_builddir}. in
14371  .) ac_abs_top_builddir=$ac_abs_builddir;;
14372  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14373  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14374  esac;;
14375esac
14376case $ac_abs_builddir in
14377.) ac_abs_srcdir=$ac_srcdir;;
14378*)
14379  case $ac_srcdir in
14380  .) ac_abs_srcdir=$ac_abs_builddir;;
14381  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14382  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14383  esac;;
14384esac
14385case $ac_abs_builddir in
14386.) ac_abs_top_srcdir=$ac_top_srcdir;;
14387*)
14388  case $ac_top_srcdir in
14389  .) ac_abs_top_srcdir=$ac_abs_builddir;;
14390  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14391  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14392  esac;;
14393esac
14394
14395
14396  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14397echo "$as_me: executing $ac_dest commands" >&6;}
14398  case $ac_dest in
14399    default-1 ) if test -f .devel; then
14400	echo timestamp > stamp-h
14401	cat Makefile-devel-adds >> Makefile
14402	make depend
14403fi ;;
14404  esac
14405done
14406_ACEOF
14407
14408cat >>$CONFIG_STATUS <<\_ACEOF
14409
14410{ (exit 0); exit 0; }
14411_ACEOF
14412chmod +x $CONFIG_STATUS
14413ac_clean_files=$ac_clean_files_save
14414
14415
14416# configure is writing to config.log, and then calls config.status.
14417# config.status does its own redirection, appending to config.log.
14418# Unfortunately, on DOS this fails, as config.log is still kept open
14419# by configure, so config.status won't be able to write to it; its
14420# output is simply discarded.  So we exec the FD to /dev/null,
14421# effectively closing config.log, so it can be properly (re)opened and
14422# appended to by config.status.  When coming back to configure, we
14423# need to make the FD available again.
14424if test "$no_create" != yes; then
14425  ac_cs_success=:
14426  ac_config_status_args=
14427  test "$silent" = yes &&
14428    ac_config_status_args="$ac_config_status_args --quiet"
14429  exec 5>/dev/null
14430  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14431  exec 5>>config.log
14432  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14433  # would make configure fail if this is the last instruction.
14434  $ac_cs_success || { (exit 1); exit 1; }
14435fi
14436
14437exit 0
14438