1#! /bin/sh
2# From configure.in Revision: 1.120.2.8 .
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="pcap.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 target target_cpu target_vendor target_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_LEX V_YACC RANLIB ac_ct_RANLIB V_CCOPT V_DEFS V_INCLS V_LIBS V_PCAP V_FINDALLDEVS V_RANLIB SSRC DYEXT 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  --target=TARGET   configure for building compilers for TARGET [HOST]
839_ACEOF
840fi
841
842if test -n "$ac_init_help"; then
843
844  cat <<\_ACEOF
845
846Optional Features:
847  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
848  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
849  --disable-protochain    disable \"protochain\" insn
850  --enable-ipv6           build IPv6-capable version
851  --enable-optimizer-dbg  build optimizer debugging code
852  --enable-yydebug        build parser debugging code
853
854Optional Packages:
855  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
856  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
857  --without-gcc           don't use gcc
858  --with-pcap=TYPE        use packet capture TYPE
859  --with-dag[=DIR]        include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
860  --with-dag-includes=DIR   Endace DAG include directory
861  --with-dag-libraries=DIR  Endace DAG library directory
862  --with-septel[=DIR]     include Septel support (located in directory DIR, if supplied).  default=yes, on Linux, if present
863  --without-flex          don't use flex
864  --without-bison         don't use bison
865
866Some influential environment variables:
867  CC          C compiler command
868  CFLAGS      C compiler flags
869  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
870              nonstandard directory <lib dir>
871  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
872              headers in a nonstandard directory <include dir>
873  CPP         C preprocessor
874
875Use these variables to override the choices made by `configure' or to help
876it to find libraries and programs with nonstandard names/locations.
877
878_ACEOF
879fi
880
881if test "$ac_init_help" = "recursive"; then
882  # If there are subdirs, report their specific --help.
883  ac_popdir=`pwd`
884  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885    test -d $ac_dir || continue
886    ac_builddir=.
887
888if test "$ac_dir" != .; then
889  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890  # A "../" for each directory in $ac_dir_suffix.
891  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892else
893  ac_dir_suffix= ac_top_builddir=
894fi
895
896case $srcdir in
897  .)  # No --srcdir option.  We are building in place.
898    ac_srcdir=.
899    if test -z "$ac_top_builddir"; then
900       ac_top_srcdir=.
901    else
902       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903    fi ;;
904  [\\/]* | ?:[\\/]* )  # Absolute path.
905    ac_srcdir=$srcdir$ac_dir_suffix;
906    ac_top_srcdir=$srcdir ;;
907  *) # Relative path.
908    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909    ac_top_srcdir=$ac_top_builddir$srcdir ;;
910esac
911
912# Do not use `cd foo && pwd` to compute absolute paths, because
913# the directories may not exist.
914case `pwd` in
915.) ac_abs_builddir="$ac_dir";;
916*)
917  case "$ac_dir" in
918  .) ac_abs_builddir=`pwd`;;
919  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
920  *) ac_abs_builddir=`pwd`/"$ac_dir";;
921  esac;;
922esac
923case $ac_abs_builddir in
924.) ac_abs_top_builddir=${ac_top_builddir}.;;
925*)
926  case ${ac_top_builddir}. in
927  .) ac_abs_top_builddir=$ac_abs_builddir;;
928  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
929  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930  esac;;
931esac
932case $ac_abs_builddir in
933.) ac_abs_srcdir=$ac_srcdir;;
934*)
935  case $ac_srcdir in
936  .) ac_abs_srcdir=$ac_abs_builddir;;
937  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
938  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939  esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_top_srcdir=$ac_top_srcdir;;
943*)
944  case $ac_top_srcdir in
945  .) ac_abs_top_srcdir=$ac_abs_builddir;;
946  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
947  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
948  esac;;
949esac
950
951    cd $ac_dir
952    # Check for guested configure; otherwise get Cygnus style configure.
953    if test -f $ac_srcdir/configure.gnu; then
954      echo
955      $SHELL $ac_srcdir/configure.gnu  --help=recursive
956    elif test -f $ac_srcdir/configure; then
957      echo
958      $SHELL $ac_srcdir/configure  --help=recursive
959    elif test -f $ac_srcdir/configure.ac ||
960	   test -f $ac_srcdir/configure.in; then
961      echo
962      $ac_configure --help
963    else
964      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965    fi
966    cd $ac_popdir
967  done
968fi
969
970test -n "$ac_init_help" && exit 0
971if $ac_init_version; then
972  cat <<\_ACEOF
973
974Copyright (C) 2003 Free Software Foundation, Inc.
975This configure script is free software; the Free Software Foundation
976gives unlimited permission to copy, distribute and modify it.
977_ACEOF
978  exit 0
979fi
980exec 5>config.log
981cat >&5 <<_ACEOF
982This file contains any messages produced by compilers while
983running configure, to aid debugging if configure makes a mistake.
984
985It was created by $as_me, which was
986generated by GNU Autoconf 2.59.  Invocation command line was
987
988  $ $0 $@
989
990_ACEOF
991{
992cat <<_ASUNAME
993## --------- ##
994## Platform. ##
995## --------- ##
996
997hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998uname -m = `(uname -m) 2>/dev/null || echo unknown`
999uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001uname -v = `(uname -v) 2>/dev/null || echo unknown`
1002
1003/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1005
1006/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1007/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1008/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1010/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1011/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1012/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1013
1014_ASUNAME
1015
1016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017for as_dir in $PATH
1018do
1019  IFS=$as_save_IFS
1020  test -z "$as_dir" && as_dir=.
1021  echo "PATH: $as_dir"
1022done
1023
1024} >&5
1025
1026cat >&5 <<_ACEOF
1027
1028
1029## ----------- ##
1030## Core tests. ##
1031## ----------- ##
1032
1033_ACEOF
1034
1035
1036# Keep a trace of the command line.
1037# Strip out --no-create and --no-recursion so they do not pile up.
1038# Strip out --silent because we don't want to record it for future runs.
1039# Also quote any args containing shell meta-characters.
1040# Make two passes to allow for proper duplicate-argument suppression.
1041ac_configure_args=
1042ac_configure_args0=
1043ac_configure_args1=
1044ac_sep=
1045ac_must_keep_next=false
1046for ac_pass in 1 2
1047do
1048  for ac_arg
1049  do
1050    case $ac_arg in
1051    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053    | -silent | --silent | --silen | --sile | --sil)
1054      continue ;;
1055    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057    esac
1058    case $ac_pass in
1059    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1060    2)
1061      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062      if test $ac_must_keep_next = true; then
1063	ac_must_keep_next=false # Got value, back to normal.
1064      else
1065	case $ac_arg in
1066	  *=* | --config-cache | -C | -disable-* | --disable-* \
1067	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069	  | -with-* | --with-* | -without-* | --without-* | --x)
1070	    case "$ac_configure_args0 " in
1071	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1072	    esac
1073	    ;;
1074	  -* ) ac_must_keep_next=true ;;
1075	esac
1076      fi
1077      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078      # Get rid of the leading space.
1079      ac_sep=" "
1080      ;;
1081    esac
1082  done
1083done
1084$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1086
1087# When interrupted or exit'd, cleanup temporary files, and complete
1088# config.log.  We remove comments because anyway the quotes in there
1089# would cause problems or look ugly.
1090# WARNING: Be sure not to use single quotes in there, as some shells,
1091# such as our DU 5.0 friend, will then `close' the trap.
1092trap 'exit_status=$?
1093  # Save into config.log some information that might help in debugging.
1094  {
1095    echo
1096
1097    cat <<\_ASBOX
1098## ---------------- ##
1099## Cache variables. ##
1100## ---------------- ##
1101_ASBOX
1102    echo
1103    # The following way of writing the cache mishandles newlines in values,
1104{
1105  (set) 2>&1 |
1106    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107    *ac_space=\ *)
1108      sed -n \
1109	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111      ;;
1112    *)
1113      sed -n \
1114	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1115      ;;
1116    esac;
1117}
1118    echo
1119
1120    cat <<\_ASBOX
1121## ----------------- ##
1122## Output variables. ##
1123## ----------------- ##
1124_ASBOX
1125    echo
1126    for ac_var in $ac_subst_vars
1127    do
1128      eval ac_val=$`echo $ac_var`
1129      echo "$ac_var='"'"'$ac_val'"'"'"
1130    done | sort
1131    echo
1132
1133    if test -n "$ac_subst_files"; then
1134      cat <<\_ASBOX
1135## ------------- ##
1136## Output files. ##
1137## ------------- ##
1138_ASBOX
1139      echo
1140      for ac_var in $ac_subst_files
1141      do
1142	eval ac_val=$`echo $ac_var`
1143	echo "$ac_var='"'"'$ac_val'"'"'"
1144      done | sort
1145      echo
1146    fi
1147
1148    if test -s confdefs.h; then
1149      cat <<\_ASBOX
1150## ----------- ##
1151## confdefs.h. ##
1152## ----------- ##
1153_ASBOX
1154      echo
1155      sed "/^$/d" confdefs.h | sort
1156      echo
1157    fi
1158    test "$ac_signal" != 0 &&
1159      echo "$as_me: caught signal $ac_signal"
1160    echo "$as_me: exit $exit_status"
1161  } >&5
1162  rm -f core *.core &&
1163  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164    exit $exit_status
1165     ' 0
1166for ac_signal in 1 2 13 15; do
1167  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168done
1169ac_signal=0
1170
1171# confdefs.h avoids OS command line length limits that DEFS can exceed.
1172rm -rf conftest* confdefs.h
1173# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1174echo >confdefs.h
1175
1176# Predefined preprocessor variables.
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_NAME "$PACKAGE_NAME"
1180_ACEOF
1181
1182
1183cat >>confdefs.h <<_ACEOF
1184#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185_ACEOF
1186
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_VERSION "$PACKAGE_VERSION"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_STRING "$PACKAGE_STRING"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200_ACEOF
1201
1202
1203# Let the site file select an alternate cache file if it wants to.
1204# Prefer explicitly selected file to automatically selected ones.
1205if test -z "$CONFIG_SITE"; then
1206  if test "x$prefix" != xNONE; then
1207    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208  else
1209    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1210  fi
1211fi
1212for ac_site_file in $CONFIG_SITE; do
1213  if test -r "$ac_site_file"; then
1214    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215echo "$as_me: loading site script $ac_site_file" >&6;}
1216    sed 's/^/| /' "$ac_site_file" >&5
1217    . "$ac_site_file"
1218  fi
1219done
1220
1221if test -r "$cache_file"; then
1222  # Some versions of bash will fail to source /dev/null (special
1223  # files actually), so we avoid doing that.
1224  if test -f "$cache_file"; then
1225    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226echo "$as_me: loading cache $cache_file" >&6;}
1227    case $cache_file in
1228      [\\/]* | ?:[\\/]* ) . $cache_file;;
1229      *)                      . ./$cache_file;;
1230    esac
1231  fi
1232else
1233  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234echo "$as_me: creating cache $cache_file" >&6;}
1235  >$cache_file
1236fi
1237
1238# Check that the precious variables saved in the cache have kept the same
1239# value.
1240ac_cache_corrupted=false
1241for ac_var in `(set) 2>&1 |
1242	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244  eval ac_new_set=\$ac_env_${ac_var}_set
1245  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246  eval ac_new_val="\$ac_env_${ac_var}_value"
1247  case $ac_old_set,$ac_new_set in
1248    set,)
1249      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251      ac_cache_corrupted=: ;;
1252    ,set)
1253      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255      ac_cache_corrupted=: ;;
1256    ,);;
1257    *)
1258      if test "x$ac_old_val" != "x$ac_new_val"; then
1259	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1262echo "$as_me:   former value:  $ac_old_val" >&2;}
1263	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1264echo "$as_me:   current value: $ac_new_val" >&2;}
1265	ac_cache_corrupted=:
1266      fi;;
1267  esac
1268  # Pass precious variables to config.status.
1269  if test "$ac_new_set" = set; then
1270    case $ac_new_val in
1271    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273    *) ac_arg=$ac_var=$ac_new_val ;;
1274    esac
1275    case " $ac_configure_args " in
1276      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1277      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278    esac
1279  fi
1280done
1281if $ac_cache_corrupted; then
1282  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286   { (exit 1); exit 1; }; }
1287fi
1288
1289ac_ext=c
1290ac_cpp='$CPP $CPPFLAGS'
1291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293ac_compiler_gnu=$ac_cv_c_compiler_gnu
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314ac_aux_dir=
1315for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1316  if test -f $ac_dir/install-sh; then
1317    ac_aux_dir=$ac_dir
1318    ac_install_sh="$ac_aux_dir/install-sh -c"
1319    break
1320  elif test -f $ac_dir/install.sh; then
1321    ac_aux_dir=$ac_dir
1322    ac_install_sh="$ac_aux_dir/install.sh -c"
1323    break
1324  elif test -f $ac_dir/shtool; then
1325    ac_aux_dir=$ac_dir
1326    ac_install_sh="$ac_aux_dir/shtool install -c"
1327    break
1328  fi
1329done
1330if test -z "$ac_aux_dir"; then
1331  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1332echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1333   { (exit 1); exit 1; }; }
1334fi
1335ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1336ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1337ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1338
1339# Make sure we can run config.sub.
1340$ac_config_sub sun4 >/dev/null 2>&1 ||
1341  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1342echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1343   { (exit 1); exit 1; }; }
1344
1345echo "$as_me:$LINENO: checking build system type" >&5
1346echo $ECHO_N "checking build system type... $ECHO_C" >&6
1347if test "${ac_cv_build+set}" = set; then
1348  echo $ECHO_N "(cached) $ECHO_C" >&6
1349else
1350  ac_cv_build_alias=$build_alias
1351test -z "$ac_cv_build_alias" &&
1352  ac_cv_build_alias=`$ac_config_guess`
1353test -z "$ac_cv_build_alias" &&
1354  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1355echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1356   { (exit 1); exit 1; }; }
1357ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1358  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1359echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1360   { (exit 1); exit 1; }; }
1361
1362fi
1363echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1364echo "${ECHO_T}$ac_cv_build" >&6
1365build=$ac_cv_build
1366build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1367build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1368build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1369
1370
1371echo "$as_me:$LINENO: checking host system type" >&5
1372echo $ECHO_N "checking host system type... $ECHO_C" >&6
1373if test "${ac_cv_host+set}" = set; then
1374  echo $ECHO_N "(cached) $ECHO_C" >&6
1375else
1376  ac_cv_host_alias=$host_alias
1377test -z "$ac_cv_host_alias" &&
1378  ac_cv_host_alias=$ac_cv_build_alias
1379ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1380  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1381echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1382   { (exit 1); exit 1; }; }
1383
1384fi
1385echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1386echo "${ECHO_T}$ac_cv_host" >&6
1387host=$ac_cv_host
1388host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1389host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1390host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391
1392
1393echo "$as_me:$LINENO: checking target system type" >&5
1394echo $ECHO_N "checking target system type... $ECHO_C" >&6
1395if test "${ac_cv_target+set}" = set; then
1396  echo $ECHO_N "(cached) $ECHO_C" >&6
1397else
1398  ac_cv_target_alias=$target_alias
1399test "x$ac_cv_target_alias" = "x" &&
1400  ac_cv_target_alias=$ac_cv_host_alias
1401ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1402  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1403echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1404   { (exit 1); exit 1; }; }
1405
1406fi
1407echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1408echo "${ECHO_T}$ac_cv_target" >&6
1409target=$ac_cv_target
1410target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1411target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1412target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413
1414
1415# The aliases save the names the user supplied, while $host etc.
1416# will get canonicalized.
1417test -n "$target_alias" &&
1418  test "$program_prefix$program_suffix$program_transform_name" = \
1419    NONENONEs,x,x, &&
1420  program_prefix=${target_alias}-
1421
1422
1423
1424
1425
1426
1427# Check whether --with-gcc or --without-gcc was given.
1428if test "${with_gcc+set}" = set; then
1429  withval="$with_gcc"
1430
1431fi;
1432    V_CCOPT="-O"
1433    V_INCLS=""
1434    if test "${srcdir}" != "." ; then
1435	    V_INCLS="-I\$(srcdir)"
1436    fi
1437    if test "${CFLAGS+set}" = set; then
1438	    LBL_CFLAGS="$CFLAGS"
1439    fi
1440    if test -z "$CC" ; then
1441	    case "$target_os" in
1442
1443	    bsdi*)
1444		    # Extract the first word of "shlicc2", so it can be a program name with args.
1445set dummy shlicc2; ac_word=$2
1446echo "$as_me:$LINENO: checking for $ac_word" >&5
1447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1448if test "${ac_cv_prog_SHLICC2+set}" = set; then
1449  echo $ECHO_N "(cached) $ECHO_C" >&6
1450else
1451  if test -n "$SHLICC2"; then
1452  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1453else
1454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455for as_dir in $PATH
1456do
1457  IFS=$as_save_IFS
1458  test -z "$as_dir" && as_dir=.
1459  for ac_exec_ext in '' $ac_executable_extensions; do
1460  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1461    ac_cv_prog_SHLICC2="yes"
1462    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463    break 2
1464  fi
1465done
1466done
1467
1468  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1469fi
1470fi
1471SHLICC2=$ac_cv_prog_SHLICC2
1472if test -n "$SHLICC2"; then
1473  echo "$as_me:$LINENO: result: $SHLICC2" >&5
1474echo "${ECHO_T}$SHLICC2" >&6
1475else
1476  echo "$as_me:$LINENO: result: no" >&5
1477echo "${ECHO_T}no" >&6
1478fi
1479
1480		    if test $SHLICC2 = yes ; then
1481			    CC=shlicc2
1482			    export CC
1483		    fi
1484		    ;;
1485	    esac
1486    fi
1487    if test -z "$CC" -a "$with_gcc" = no ; then
1488	    CC=cc
1489	    export CC
1490    fi
1491    ac_ext=c
1492ac_cpp='$CPP $CPPFLAGS'
1493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495ac_compiler_gnu=$ac_cv_c_compiler_gnu
1496if test -n "$ac_tool_prefix"; then
1497  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1498set dummy ${ac_tool_prefix}gcc; ac_word=$2
1499echo "$as_me:$LINENO: checking for $ac_word" >&5
1500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501if test "${ac_cv_prog_CC+set}" = set; then
1502  echo $ECHO_N "(cached) $ECHO_C" >&6
1503else
1504  if test -n "$CC"; then
1505  ac_cv_prog_CC="$CC" # Let the user override the test.
1506else
1507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508for as_dir in $PATH
1509do
1510  IFS=$as_save_IFS
1511  test -z "$as_dir" && as_dir=.
1512  for ac_exec_ext in '' $ac_executable_extensions; do
1513  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1515    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1516    break 2
1517  fi
1518done
1519done
1520
1521fi
1522fi
1523CC=$ac_cv_prog_CC
1524if test -n "$CC"; then
1525  echo "$as_me:$LINENO: result: $CC" >&5
1526echo "${ECHO_T}$CC" >&6
1527else
1528  echo "$as_me:$LINENO: result: no" >&5
1529echo "${ECHO_T}no" >&6
1530fi
1531
1532fi
1533if test -z "$ac_cv_prog_CC"; then
1534  ac_ct_CC=$CC
1535  # Extract the first word of "gcc", so it can be a program name with args.
1536set dummy gcc; ac_word=$2
1537echo "$as_me:$LINENO: checking for $ac_word" >&5
1538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1540  echo $ECHO_N "(cached) $ECHO_C" >&6
1541else
1542  if test -n "$ac_ct_CC"; then
1543  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1544else
1545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546for as_dir in $PATH
1547do
1548  IFS=$as_save_IFS
1549  test -z "$as_dir" && as_dir=.
1550  for ac_exec_ext in '' $ac_executable_extensions; do
1551  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1552    ac_cv_prog_ac_ct_CC="gcc"
1553    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554    break 2
1555  fi
1556done
1557done
1558
1559fi
1560fi
1561ac_ct_CC=$ac_cv_prog_ac_ct_CC
1562if test -n "$ac_ct_CC"; then
1563  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1564echo "${ECHO_T}$ac_ct_CC" >&6
1565else
1566  echo "$as_me:$LINENO: result: no" >&5
1567echo "${ECHO_T}no" >&6
1568fi
1569
1570  CC=$ac_ct_CC
1571else
1572  CC="$ac_cv_prog_CC"
1573fi
1574
1575if test -z "$CC"; then
1576  if test -n "$ac_tool_prefix"; then
1577  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1578set dummy ${ac_tool_prefix}cc; ac_word=$2
1579echo "$as_me:$LINENO: checking for $ac_word" >&5
1580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581if test "${ac_cv_prog_CC+set}" = set; then
1582  echo $ECHO_N "(cached) $ECHO_C" >&6
1583else
1584  if test -n "$CC"; then
1585  ac_cv_prog_CC="$CC" # Let the user override the test.
1586else
1587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588for as_dir in $PATH
1589do
1590  IFS=$as_save_IFS
1591  test -z "$as_dir" && as_dir=.
1592  for ac_exec_ext in '' $ac_executable_extensions; do
1593  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594    ac_cv_prog_CC="${ac_tool_prefix}cc"
1595    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1596    break 2
1597  fi
1598done
1599done
1600
1601fi
1602fi
1603CC=$ac_cv_prog_CC
1604if test -n "$CC"; then
1605  echo "$as_me:$LINENO: result: $CC" >&5
1606echo "${ECHO_T}$CC" >&6
1607else
1608  echo "$as_me:$LINENO: result: no" >&5
1609echo "${ECHO_T}no" >&6
1610fi
1611
1612fi
1613if test -z "$ac_cv_prog_CC"; then
1614  ac_ct_CC=$CC
1615  # Extract the first word of "cc", so it can be a program name with args.
1616set dummy cc; ac_word=$2
1617echo "$as_me:$LINENO: checking for $ac_word" >&5
1618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1620  echo $ECHO_N "(cached) $ECHO_C" >&6
1621else
1622  if test -n "$ac_ct_CC"; then
1623  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1624else
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628  IFS=$as_save_IFS
1629  test -z "$as_dir" && as_dir=.
1630  for ac_exec_ext in '' $ac_executable_extensions; do
1631  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632    ac_cv_prog_ac_ct_CC="cc"
1633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634    break 2
1635  fi
1636done
1637done
1638
1639fi
1640fi
1641ac_ct_CC=$ac_cv_prog_ac_ct_CC
1642if test -n "$ac_ct_CC"; then
1643  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1644echo "${ECHO_T}$ac_ct_CC" >&6
1645else
1646  echo "$as_me:$LINENO: result: no" >&5
1647echo "${ECHO_T}no" >&6
1648fi
1649
1650  CC=$ac_ct_CC
1651else
1652  CC="$ac_cv_prog_CC"
1653fi
1654
1655fi
1656if test -z "$CC"; then
1657  # Extract the first word of "cc", so it can be a program name with args.
1658set dummy cc; ac_word=$2
1659echo "$as_me:$LINENO: checking for $ac_word" >&5
1660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661if test "${ac_cv_prog_CC+set}" = set; then
1662  echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
1664  if test -n "$CC"; then
1665  ac_cv_prog_CC="$CC" # Let the user override the test.
1666else
1667  ac_prog_rejected=no
1668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669for as_dir in $PATH
1670do
1671  IFS=$as_save_IFS
1672  test -z "$as_dir" && as_dir=.
1673  for ac_exec_ext in '' $ac_executable_extensions; do
1674  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1676       ac_prog_rejected=yes
1677       continue
1678     fi
1679    ac_cv_prog_CC="cc"
1680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681    break 2
1682  fi
1683done
1684done
1685
1686if test $ac_prog_rejected = yes; then
1687  # We found a bogon in the path, so make sure we never use it.
1688  set dummy $ac_cv_prog_CC
1689  shift
1690  if test $# != 0; then
1691    # We chose a different compiler from the bogus one.
1692    # However, it has the same basename, so the bogon will be chosen
1693    # first if we set CC to just the basename; use the full file name.
1694    shift
1695    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1696  fi
1697fi
1698fi
1699fi
1700CC=$ac_cv_prog_CC
1701if test -n "$CC"; then
1702  echo "$as_me:$LINENO: result: $CC" >&5
1703echo "${ECHO_T}$CC" >&6
1704else
1705  echo "$as_me:$LINENO: result: no" >&5
1706echo "${ECHO_T}no" >&6
1707fi
1708
1709fi
1710if test -z "$CC"; then
1711  if test -n "$ac_tool_prefix"; then
1712  for ac_prog in cl
1713  do
1714    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1715set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1716echo "$as_me:$LINENO: checking for $ac_word" >&5
1717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718if test "${ac_cv_prog_CC+set}" = set; then
1719  echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721  if test -n "$CC"; then
1722  ac_cv_prog_CC="$CC" # Let the user override the test.
1723else
1724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725for as_dir in $PATH
1726do
1727  IFS=$as_save_IFS
1728  test -z "$as_dir" && as_dir=.
1729  for ac_exec_ext in '' $ac_executable_extensions; do
1730  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1732    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733    break 2
1734  fi
1735done
1736done
1737
1738fi
1739fi
1740CC=$ac_cv_prog_CC
1741if test -n "$CC"; then
1742  echo "$as_me:$LINENO: result: $CC" >&5
1743echo "${ECHO_T}$CC" >&6
1744else
1745  echo "$as_me:$LINENO: result: no" >&5
1746echo "${ECHO_T}no" >&6
1747fi
1748
1749    test -n "$CC" && break
1750  done
1751fi
1752if test -z "$CC"; then
1753  ac_ct_CC=$CC
1754  for ac_prog in cl
1755do
1756  # Extract the first word of "$ac_prog", so it can be a program name with args.
1757set dummy $ac_prog; ac_word=$2
1758echo "$as_me:$LINENO: checking for $ac_word" >&5
1759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1761  echo $ECHO_N "(cached) $ECHO_C" >&6
1762else
1763  if test -n "$ac_ct_CC"; then
1764  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1765else
1766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767for as_dir in $PATH
1768do
1769  IFS=$as_save_IFS
1770  test -z "$as_dir" && as_dir=.
1771  for ac_exec_ext in '' $ac_executable_extensions; do
1772  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773    ac_cv_prog_ac_ct_CC="$ac_prog"
1774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775    break 2
1776  fi
1777done
1778done
1779
1780fi
1781fi
1782ac_ct_CC=$ac_cv_prog_ac_ct_CC
1783if test -n "$ac_ct_CC"; then
1784  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1785echo "${ECHO_T}$ac_ct_CC" >&6
1786else
1787  echo "$as_me:$LINENO: result: no" >&5
1788echo "${ECHO_T}no" >&6
1789fi
1790
1791  test -n "$ac_ct_CC" && break
1792done
1793
1794  CC=$ac_ct_CC
1795fi
1796
1797fi
1798
1799
1800test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1801See \`config.log' for more details." >&5
1802echo "$as_me: error: no acceptable C compiler found in \$PATH
1803See \`config.log' for more details." >&2;}
1804   { (exit 1); exit 1; }; }
1805
1806# Provide some information about the compiler.
1807echo "$as_me:$LINENO:" \
1808     "checking for C compiler version" >&5
1809ac_compiler=`set X $ac_compile; echo $2`
1810{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1811  (eval $ac_compiler --version </dev/null >&5) 2>&5
1812  ac_status=$?
1813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814  (exit $ac_status); }
1815{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1816  (eval $ac_compiler -v </dev/null >&5) 2>&5
1817  ac_status=$?
1818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819  (exit $ac_status); }
1820{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1821  (eval $ac_compiler -V </dev/null >&5) 2>&5
1822  ac_status=$?
1823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824  (exit $ac_status); }
1825
1826cat >conftest.$ac_ext <<_ACEOF
1827/* confdefs.h.  */
1828_ACEOF
1829cat confdefs.h >>conftest.$ac_ext
1830cat >>conftest.$ac_ext <<_ACEOF
1831/* end confdefs.h.  */
1832
1833int
1834main ()
1835{
1836
1837  ;
1838  return 0;
1839}
1840_ACEOF
1841ac_clean_files_save=$ac_clean_files
1842ac_clean_files="$ac_clean_files a.out a.exe b.out"
1843# Try to create an executable without -o first, disregard a.out.
1844# It will help us diagnose broken compilers, and finding out an intuition
1845# of exeext.
1846echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1847echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1848ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1849if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1850  (eval $ac_link_default) 2>&5
1851  ac_status=$?
1852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853  (exit $ac_status); }; then
1854  # Find the output, starting from the most likely.  This scheme is
1855# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1856# resort.
1857
1858# Be careful to initialize this variable, since it used to be cached.
1859# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1860ac_cv_exeext=
1861# b.out is created by i960 compilers.
1862for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1863do
1864  test -f "$ac_file" || continue
1865  case $ac_file in
1866    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1867	;;
1868    conftest.$ac_ext )
1869	# This is the source file.
1870	;;
1871    [ab].out )
1872	# We found the default executable, but exeext='' is most
1873	# certainly right.
1874	break;;
1875    *.* )
1876	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1877	# FIXME: I believe we export ac_cv_exeext for Libtool,
1878	# but it would be cool to find out if it's true.  Does anybody
1879	# maintain Libtool? --akim.
1880	export ac_cv_exeext
1881	break;;
1882    * )
1883	break;;
1884  esac
1885done
1886else
1887  echo "$as_me: failed program was:" >&5
1888sed 's/^/| /' conftest.$ac_ext >&5
1889
1890{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1891See \`config.log' for more details." >&5
1892echo "$as_me: error: C compiler cannot create executables
1893See \`config.log' for more details." >&2;}
1894   { (exit 77); exit 77; }; }
1895fi
1896
1897ac_exeext=$ac_cv_exeext
1898echo "$as_me:$LINENO: result: $ac_file" >&5
1899echo "${ECHO_T}$ac_file" >&6
1900
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 the C compiler works" >&5
1904echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1905# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1906# If not cross compiling, check that we can run a simple program.
1907if test "$cross_compiling" != yes; then
1908  if { ac_try='./$ac_file'
1909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910  (eval $ac_try) 2>&5
1911  ac_status=$?
1912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913  (exit $ac_status); }; }; then
1914    cross_compiling=no
1915  else
1916    if test "$cross_compiling" = maybe; then
1917	cross_compiling=yes
1918    else
1919	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1920If you meant to cross compile, use \`--host'.
1921See \`config.log' for more details." >&5
1922echo "$as_me: error: cannot run C compiled programs.
1923If you meant to cross compile, use \`--host'.
1924See \`config.log' for more details." >&2;}
1925   { (exit 1); exit 1; }; }
1926    fi
1927  fi
1928fi
1929echo "$as_me:$LINENO: result: yes" >&5
1930echo "${ECHO_T}yes" >&6
1931
1932rm -f a.out a.exe conftest$ac_cv_exeext b.out
1933ac_clean_files=$ac_clean_files_save
1934# Check the compiler produces executables we can run.  If not, either
1935# the compiler is broken, or we cross compile.
1936echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1937echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1938echo "$as_me:$LINENO: result: $cross_compiling" >&5
1939echo "${ECHO_T}$cross_compiling" >&6
1940
1941echo "$as_me:$LINENO: checking for suffix of executables" >&5
1942echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1944  (eval $ac_link) 2>&5
1945  ac_status=$?
1946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947  (exit $ac_status); }; then
1948  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1949# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1950# work properly (i.e., refer to `conftest.exe'), while it won't with
1951# `rm'.
1952for ac_file in conftest.exe conftest conftest.*; do
1953  test -f "$ac_file" || continue
1954  case $ac_file in
1955    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1956    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1957	  export ac_cv_exeext
1958	  break;;
1959    * ) break;;
1960  esac
1961done
1962else
1963  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1964See \`config.log' for more details." >&5
1965echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1966See \`config.log' for more details." >&2;}
1967   { (exit 1); exit 1; }; }
1968fi
1969
1970rm -f conftest$ac_cv_exeext
1971echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1972echo "${ECHO_T}$ac_cv_exeext" >&6
1973
1974rm -f conftest.$ac_ext
1975EXEEXT=$ac_cv_exeext
1976ac_exeext=$EXEEXT
1977echo "$as_me:$LINENO: checking for suffix of object files" >&5
1978echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1979if test "${ac_cv_objext+set}" = set; then
1980  echo $ECHO_N "(cached) $ECHO_C" >&6
1981else
1982  cat >conftest.$ac_ext <<_ACEOF
1983/* confdefs.h.  */
1984_ACEOF
1985cat confdefs.h >>conftest.$ac_ext
1986cat >>conftest.$ac_ext <<_ACEOF
1987/* end confdefs.h.  */
1988
1989int
1990main ()
1991{
1992
1993  ;
1994  return 0;
1995}
1996_ACEOF
1997rm -f conftest.o conftest.obj
1998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1999  (eval $ac_compile) 2>&5
2000  ac_status=$?
2001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002  (exit $ac_status); }; then
2003  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2004  case $ac_file in
2005    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2006    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2007       break;;
2008  esac
2009done
2010else
2011  echo "$as_me: failed program was:" >&5
2012sed 's/^/| /' conftest.$ac_ext >&5
2013
2014{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2015See \`config.log' for more details." >&5
2016echo "$as_me: error: cannot compute suffix of object files: cannot compile
2017See \`config.log' for more details." >&2;}
2018   { (exit 1); exit 1; }; }
2019fi
2020
2021rm -f conftest.$ac_cv_objext conftest.$ac_ext
2022fi
2023echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2024echo "${ECHO_T}$ac_cv_objext" >&6
2025OBJEXT=$ac_cv_objext
2026ac_objext=$OBJEXT
2027echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2028echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2029if test "${ac_cv_c_compiler_gnu+set}" = set; then
2030  echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032  cat >conftest.$ac_ext <<_ACEOF
2033/* confdefs.h.  */
2034_ACEOF
2035cat confdefs.h >>conftest.$ac_ext
2036cat >>conftest.$ac_ext <<_ACEOF
2037/* end confdefs.h.  */
2038
2039int
2040main ()
2041{
2042#ifndef __GNUC__
2043       choke me
2044#endif
2045
2046  ;
2047  return 0;
2048}
2049_ACEOF
2050rm -f conftest.$ac_objext
2051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052  (eval $ac_compile) 2>conftest.er1
2053  ac_status=$?
2054  grep -v '^ *+' conftest.er1 >conftest.err
2055  rm -f conftest.er1
2056  cat conftest.err >&5
2057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058  (exit $ac_status); } &&
2059	 { ac_try='test -z "$ac_c_werror_flag"
2060			 || test ! -s conftest.err'
2061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062  (eval $ac_try) 2>&5
2063  ac_status=$?
2064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065  (exit $ac_status); }; } &&
2066	 { ac_try='test -s conftest.$ac_objext'
2067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068  (eval $ac_try) 2>&5
2069  ac_status=$?
2070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071  (exit $ac_status); }; }; then
2072  ac_compiler_gnu=yes
2073else
2074  echo "$as_me: failed program was:" >&5
2075sed 's/^/| /' conftest.$ac_ext >&5
2076
2077ac_compiler_gnu=no
2078fi
2079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2080ac_cv_c_compiler_gnu=$ac_compiler_gnu
2081
2082fi
2083echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2084echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2085GCC=`test $ac_compiler_gnu = yes && echo yes`
2086ac_test_CFLAGS=${CFLAGS+set}
2087ac_save_CFLAGS=$CFLAGS
2088CFLAGS="-g"
2089echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2090echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2091if test "${ac_cv_prog_cc_g+set}" = set; then
2092  echo $ECHO_N "(cached) $ECHO_C" >&6
2093else
2094  cat >conftest.$ac_ext <<_ACEOF
2095/* confdefs.h.  */
2096_ACEOF
2097cat confdefs.h >>conftest.$ac_ext
2098cat >>conftest.$ac_ext <<_ACEOF
2099/* end confdefs.h.  */
2100
2101int
2102main ()
2103{
2104
2105  ;
2106  return 0;
2107}
2108_ACEOF
2109rm -f conftest.$ac_objext
2110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111  (eval $ac_compile) 2>conftest.er1
2112  ac_status=$?
2113  grep -v '^ *+' conftest.er1 >conftest.err
2114  rm -f conftest.er1
2115  cat conftest.err >&5
2116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117  (exit $ac_status); } &&
2118	 { ac_try='test -z "$ac_c_werror_flag"
2119			 || test ! -s conftest.err'
2120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121  (eval $ac_try) 2>&5
2122  ac_status=$?
2123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124  (exit $ac_status); }; } &&
2125	 { ac_try='test -s conftest.$ac_objext'
2126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127  (eval $ac_try) 2>&5
2128  ac_status=$?
2129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130  (exit $ac_status); }; }; then
2131  ac_cv_prog_cc_g=yes
2132else
2133  echo "$as_me: failed program was:" >&5
2134sed 's/^/| /' conftest.$ac_ext >&5
2135
2136ac_cv_prog_cc_g=no
2137fi
2138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2139fi
2140echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2141echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2142if test "$ac_test_CFLAGS" = set; then
2143  CFLAGS=$ac_save_CFLAGS
2144elif test $ac_cv_prog_cc_g = yes; then
2145  if test "$GCC" = yes; then
2146    CFLAGS="-g -O2"
2147  else
2148    CFLAGS="-g"
2149  fi
2150else
2151  if test "$GCC" = yes; then
2152    CFLAGS="-O2"
2153  else
2154    CFLAGS=
2155  fi
2156fi
2157echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2158echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2159if test "${ac_cv_prog_cc_stdc+set}" = set; then
2160  echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162  ac_cv_prog_cc_stdc=no
2163ac_save_CC=$CC
2164cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h.  */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h.  */
2170#include <stdarg.h>
2171#include <stdio.h>
2172#include <sys/types.h>
2173#include <sys/stat.h>
2174/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2175struct buf { int x; };
2176FILE * (*rcsopen) (struct buf *, struct stat *, int);
2177static char *e (p, i)
2178     char **p;
2179     int i;
2180{
2181  return p[i];
2182}
2183static char *f (char * (*g) (char **, int), char **p, ...)
2184{
2185  char *s;
2186  va_list v;
2187  va_start (v,p);
2188  s = g (p, va_arg (v,int));
2189  va_end (v);
2190  return s;
2191}
2192
2193/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2194   function prototypes and stuff, but not '\xHH' hex character constants.
2195   These don't provoke an error unfortunately, instead are silently treated
2196   as 'x'.  The following induces an error, until -std1 is added to get
2197   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2198   array size at least.  It's necessary to write '\x00'==0 to get something
2199   that's true only with -std1.  */
2200int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2201
2202int test (int i, double x);
2203struct s1 {int (*f) (int a);};
2204struct s2 {int (*f) (double a);};
2205int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2206int argc;
2207char **argv;
2208int
2209main ()
2210{
2211return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216# Don't try gcc -ansi; that turns off useful extensions and
2217# breaks some systems' header files.
2218# AIX			-qlanglvl=ansi
2219# Ultrix and OSF/1	-std1
2220# HP-UX 10.20 and later	-Ae
2221# HP-UX older versions	-Aa -D_HPUX_SOURCE
2222# SVR4			-Xc -D__EXTENSIONS__
2223for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2224do
2225  CC="$ac_save_CC $ac_arg"
2226  rm -f conftest.$ac_objext
2227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228  (eval $ac_compile) 2>conftest.er1
2229  ac_status=$?
2230  grep -v '^ *+' conftest.er1 >conftest.err
2231  rm -f conftest.er1
2232  cat conftest.err >&5
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); } &&
2235	 { ac_try='test -z "$ac_c_werror_flag"
2236			 || test ! -s conftest.err'
2237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238  (eval $ac_try) 2>&5
2239  ac_status=$?
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); }; } &&
2242	 { ac_try='test -s conftest.$ac_objext'
2243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244  (eval $ac_try) 2>&5
2245  ac_status=$?
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); }; }; then
2248  ac_cv_prog_cc_stdc=$ac_arg
2249break
2250else
2251  echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254fi
2255rm -f conftest.err conftest.$ac_objext
2256done
2257rm -f conftest.$ac_ext conftest.$ac_objext
2258CC=$ac_save_CC
2259
2260fi
2261
2262case "x$ac_cv_prog_cc_stdc" in
2263  x|xno)
2264    echo "$as_me:$LINENO: result: none needed" >&5
2265echo "${ECHO_T}none needed" >&6 ;;
2266  *)
2267    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2268echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2269    CC="$CC $ac_cv_prog_cc_stdc" ;;
2270esac
2271
2272# Some people use a C++ compiler to compile C.  Since we use `exit',
2273# in C++ we need to declare it.  In case someone uses the same compiler
2274# for both compiling C and C++ we need to have the C++ compiler decide
2275# the declaration of exit, since it's the most demanding environment.
2276cat >conftest.$ac_ext <<_ACEOF
2277#ifndef __cplusplus
2278  choke me
2279#endif
2280_ACEOF
2281rm -f conftest.$ac_objext
2282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283  (eval $ac_compile) 2>conftest.er1
2284  ac_status=$?
2285  grep -v '^ *+' conftest.er1 >conftest.err
2286  rm -f conftest.er1
2287  cat conftest.err >&5
2288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289  (exit $ac_status); } &&
2290	 { ac_try='test -z "$ac_c_werror_flag"
2291			 || test ! -s conftest.err'
2292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293  (eval $ac_try) 2>&5
2294  ac_status=$?
2295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296  (exit $ac_status); }; } &&
2297	 { ac_try='test -s conftest.$ac_objext'
2298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299  (eval $ac_try) 2>&5
2300  ac_status=$?
2301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302  (exit $ac_status); }; }; then
2303  for ac_declaration in \
2304   '' \
2305   'extern "C" void std::exit (int) throw (); using std::exit;' \
2306   'extern "C" void std::exit (int); using std::exit;' \
2307   'extern "C" void exit (int) throw ();' \
2308   'extern "C" void exit (int);' \
2309   'void exit (int);'
2310do
2311  cat >conftest.$ac_ext <<_ACEOF
2312/* confdefs.h.  */
2313_ACEOF
2314cat confdefs.h >>conftest.$ac_ext
2315cat >>conftest.$ac_ext <<_ACEOF
2316/* end confdefs.h.  */
2317$ac_declaration
2318#include <stdlib.h>
2319int
2320main ()
2321{
2322exit (42);
2323  ;
2324  return 0;
2325}
2326_ACEOF
2327rm -f conftest.$ac_objext
2328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329  (eval $ac_compile) 2>conftest.er1
2330  ac_status=$?
2331  grep -v '^ *+' conftest.er1 >conftest.err
2332  rm -f conftest.er1
2333  cat conftest.err >&5
2334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335  (exit $ac_status); } &&
2336	 { ac_try='test -z "$ac_c_werror_flag"
2337			 || test ! -s conftest.err'
2338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339  (eval $ac_try) 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }; } &&
2343	 { ac_try='test -s conftest.$ac_objext'
2344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345  (eval $ac_try) 2>&5
2346  ac_status=$?
2347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348  (exit $ac_status); }; }; then
2349  :
2350else
2351  echo "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354continue
2355fi
2356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357  cat >conftest.$ac_ext <<_ACEOF
2358/* confdefs.h.  */
2359_ACEOF
2360cat confdefs.h >>conftest.$ac_ext
2361cat >>conftest.$ac_ext <<_ACEOF
2362/* end confdefs.h.  */
2363$ac_declaration
2364int
2365main ()
2366{
2367exit (42);
2368  ;
2369  return 0;
2370}
2371_ACEOF
2372rm -f conftest.$ac_objext
2373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374  (eval $ac_compile) 2>conftest.er1
2375  ac_status=$?
2376  grep -v '^ *+' conftest.er1 >conftest.err
2377  rm -f conftest.er1
2378  cat conftest.err >&5
2379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380  (exit $ac_status); } &&
2381	 { ac_try='test -z "$ac_c_werror_flag"
2382			 || test ! -s conftest.err'
2383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384  (eval $ac_try) 2>&5
2385  ac_status=$?
2386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387  (exit $ac_status); }; } &&
2388	 { ac_try='test -s conftest.$ac_objext'
2389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390  (eval $ac_try) 2>&5
2391  ac_status=$?
2392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393  (exit $ac_status); }; }; then
2394  break
2395else
2396  echo "$as_me: failed program was:" >&5
2397sed 's/^/| /' conftest.$ac_ext >&5
2398
2399fi
2400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401done
2402rm -f conftest*
2403if test -n "$ac_declaration"; then
2404  echo '#ifdef __cplusplus' >>confdefs.h
2405  echo $ac_declaration      >>confdefs.h
2406  echo '#endif'             >>confdefs.h
2407fi
2408
2409else
2410  echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
2412
2413fi
2414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2415ac_ext=c
2416ac_cpp='$CPP $CPPFLAGS'
2417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419ac_compiler_gnu=$ac_cv_c_compiler_gnu
2420
2421    if test "$GCC" = yes ; then
2422	    if test "$SHLICC2" = yes ; then
2423		    ac_cv_lbl_gcc_vers=2
2424		    V_CCOPT="-O2"
2425	    else
2426		    echo "$as_me:$LINENO: checking gcc version" >&5
2427echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2428		    if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2429  echo $ECHO_N "(cached) $ECHO_C" >&6
2430else
2431  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2432			    sed -e '/^gcc version /!d' \
2433				-e 's/^gcc version //' \
2434				-e 's/ .*//' -e 's/^[^0-9]*//' \
2435				-e 's/\..*//'`
2436fi
2437
2438		    echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2439echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2440		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2441			    V_CCOPT="-O2"
2442		    fi
2443	    fi
2444    else
2445	    echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2446echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2447	    if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2448  echo $ECHO_N "(cached) $ECHO_C" >&6
2449else
2450
2451cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h.  */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h.  */
2457#include <sys/types.h>
2458int
2459main ()
2460{
2461int frob(int, char *)
2462  ;
2463  return 0;
2464}
2465_ACEOF
2466rm -f conftest.$ac_objext
2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468  (eval $ac_compile) 2>conftest.er1
2469  ac_status=$?
2470  grep -v '^ *+' conftest.er1 >conftest.err
2471  rm -f conftest.er1
2472  cat conftest.err >&5
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); } &&
2475	 { ac_try='test -z "$ac_c_werror_flag"
2476			 || test ! -s conftest.err'
2477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478  (eval $ac_try) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }; } &&
2482	 { ac_try='test -s conftest.$ac_objext'
2483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484  (eval $ac_try) 2>&5
2485  ac_status=$?
2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487  (exit $ac_status); }; }; then
2488  ac_cv_lbl_cc_ansi_prototypes=yes
2489else
2490  echo "$as_me: failed program was:" >&5
2491sed 's/^/| /' conftest.$ac_ext >&5
2492
2493ac_cv_lbl_cc_ansi_prototypes=no
2494fi
2495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496fi
2497
2498	    echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2499echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2500	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2501		    case "$target_os" in
2502
2503		    hpux*)
2504			    echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2505echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2506			    savedcflags="$CFLAGS"
2507			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2508			    if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2509  echo $ECHO_N "(cached) $ECHO_C" >&6
2510else
2511  cat >conftest.$ac_ext <<_ACEOF
2512/* confdefs.h.  */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h.  */
2517#include <sys/types.h>
2518int
2519main ()
2520{
2521int frob(int, char *)
2522  ;
2523  return 0;
2524}
2525_ACEOF
2526rm -f conftest.$ac_objext
2527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528  (eval $ac_compile) 2>conftest.er1
2529  ac_status=$?
2530  grep -v '^ *+' conftest.er1 >conftest.err
2531  rm -f conftest.er1
2532  cat conftest.err >&5
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); } &&
2535	 { ac_try='test -z "$ac_c_werror_flag"
2536			 || test ! -s conftest.err'
2537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538  (eval $ac_try) 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); }; } &&
2542	 { ac_try='test -s conftest.$ac_objext'
2543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544  (eval $ac_try) 2>&5
2545  ac_status=$?
2546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547  (exit $ac_status); }; }; then
2548  ac_cv_lbl_cc_hpux_cc_aa=yes
2549else
2550  echo "$as_me: failed program was:" >&5
2551sed 's/^/| /' conftest.$ac_ext >&5
2552
2553ac_cv_lbl_cc_hpux_cc_aa=no
2554fi
2555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556fi
2557
2558			    echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2559echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2560			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2561				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2562echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2563   { (exit 1); exit 1; }; }
2564			    fi
2565			    CFLAGS="$savedcflags"
2566			    V_CCOPT="-Aa $V_CCOPT"
2567
2568cat >>confdefs.h <<\_ACEOF
2569#define _HPUX_SOURCE 1
2570_ACEOF
2571
2572			    ;;
2573
2574		    *)
2575			    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2576echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2577   { (exit 1); exit 1; }; }
2578			    ;;
2579		    esac
2580	    fi
2581	    V_INCLS="$V_INCLS -I/usr/local/include"
2582	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
2583
2584	    case "$target_os" in
2585
2586	    irix*)
2587		    V_CCOPT="$V_CCOPT -xansi -signed -g3"
2588		    ;;
2589
2590	    osf*)
2591		    V_CCOPT="$V_CCOPT -std1 -g3"
2592		    ;;
2593
2594	    ultrix*)
2595		    echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2596echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2597		    if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2598  echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
2600  cat >conftest.$ac_ext <<_ACEOF
2601/* confdefs.h.  */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h.  */
2606#include <sys/types.h>
2607int
2608main ()
2609{
2610struct a { int b; };
2611			    void c(const struct a *)
2612  ;
2613  return 0;
2614}
2615_ACEOF
2616rm -f conftest.$ac_objext
2617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618  (eval $ac_compile) 2>conftest.er1
2619  ac_status=$?
2620  grep -v '^ *+' conftest.er1 >conftest.err
2621  rm -f conftest.er1
2622  cat conftest.err >&5
2623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624  (exit $ac_status); } &&
2625	 { ac_try='test -z "$ac_c_werror_flag"
2626			 || test ! -s conftest.err'
2627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628  (eval $ac_try) 2>&5
2629  ac_status=$?
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); }; } &&
2632	 { ac_try='test -s conftest.$ac_objext'
2633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634  (eval $ac_try) 2>&5
2635  ac_status=$?
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); }; }; then
2638  ac_cv_lbl_cc_const_proto=yes
2639else
2640  echo "$as_me: failed program was:" >&5
2641sed 's/^/| /' conftest.$ac_ext >&5
2642
2643ac_cv_lbl_cc_const_proto=no
2644fi
2645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646fi
2647
2648		    echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2649echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2650		    if test $ac_cv_lbl_cc_const_proto = no ; then
2651			    cat >>confdefs.h <<\_ACEOF
2652#define const
2653_ACEOF
2654
2655		    fi
2656		    ;;
2657	    esac
2658    fi
2659
2660echo "$as_me:$LINENO: checking for inline" >&5
2661echo $ECHO_N "checking for inline... $ECHO_C" >&6
2662    save_CFLAGS="$CFLAGS"
2663    CFLAGS="$V_CCOPT"
2664    if test "${ac_cv_lbl_inline+set}" = set; then
2665  echo $ECHO_N "(cached) $ECHO_C" >&6
2666else
2667
2668	ac_cv_lbl_inline=""
2669	ac_lbl_cc_inline=no
2670	for ac_lbl_inline in inline __inline__ __inline
2671	do
2672	    cat >conftest.$ac_ext <<_ACEOF
2673/* confdefs.h.  */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h.  */
2678#define inline $ac_lbl_inline
2679		static inline struct iltest *foo(void);
2680		struct iltest {
2681		    int iltest1;
2682		    int iltest2;
2683		};
2684
2685		static inline struct iltest *
2686		foo()
2687		{
2688		    static struct iltest xxx;
2689
2690		    return &xxx;
2691		}
2692int
2693main ()
2694{
2695
2696  ;
2697  return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
2701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702  (eval $ac_compile) 2>conftest.er1
2703  ac_status=$?
2704  grep -v '^ *+' conftest.er1 >conftest.err
2705  rm -f conftest.er1
2706  cat conftest.err >&5
2707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708  (exit $ac_status); } &&
2709	 { ac_try='test -z "$ac_c_werror_flag"
2710			 || test ! -s conftest.err'
2711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712  (eval $ac_try) 2>&5
2713  ac_status=$?
2714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715  (exit $ac_status); }; } &&
2716	 { ac_try='test -s conftest.$ac_objext'
2717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718  (eval $ac_try) 2>&5
2719  ac_status=$?
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); }; }; then
2722  ac_lbl_cc_inline=yes
2723else
2724  echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727fi
2728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729	    if test "$ac_lbl_cc_inline" = yes ; then
2730		break;
2731	    fi
2732	done
2733	if test "$ac_lbl_cc_inline" = yes ; then
2734	    ac_cv_lbl_inline=$ac_lbl_inline
2735	fi
2736fi
2737
2738    CFLAGS="$save_CFLAGS"
2739    if test ! -z "$ac_cv_lbl_inline" ; then
2740	echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2741echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2742    else
2743	echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6
2745    fi
2746
2747cat >>confdefs.h <<_ACEOF
2748#define inline $ac_cv_lbl_inline
2749_ACEOF
2750
2751
2752echo "$as_me:$LINENO: checking for __attribute__" >&5
2753echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2754if test "${ac_cv___attribute__+set}" = set; then
2755  echo $ECHO_N "(cached) $ECHO_C" >&6
2756else
2757
2758cat >conftest.$ac_ext <<_ACEOF
2759/* confdefs.h.  */
2760_ACEOF
2761cat confdefs.h >>conftest.$ac_ext
2762cat >>conftest.$ac_ext <<_ACEOF
2763/* end confdefs.h.  */
2764
2765#include <stdlib.h>
2766
2767static void foo(void) __attribute__ ((noreturn));
2768
2769static void
2770foo(void)
2771{
2772  exit(1);
2773}
2774
2775int
2776main(int argc, char **argv)
2777{
2778  foo();
2779}
2780
2781_ACEOF
2782rm -f conftest.$ac_objext
2783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784  (eval $ac_compile) 2>conftest.er1
2785  ac_status=$?
2786  grep -v '^ *+' conftest.er1 >conftest.err
2787  rm -f conftest.er1
2788  cat conftest.err >&5
2789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790  (exit $ac_status); } &&
2791	 { ac_try='test -z "$ac_c_werror_flag"
2792			 || test ! -s conftest.err'
2793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794  (eval $ac_try) 2>&5
2795  ac_status=$?
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); }; } &&
2798	 { ac_try='test -s conftest.$ac_objext'
2799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800  (eval $ac_try) 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); }; }; then
2804  ac_cv___attribute__=yes
2805else
2806  echo "$as_me: failed program was:" >&5
2807sed 's/^/| /' conftest.$ac_ext >&5
2808
2809ac_cv___attribute__=no
2810fi
2811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812fi
2813
2814if test "$ac_cv___attribute__" = "yes"; then
2815
2816cat >>confdefs.h <<\_ACEOF
2817#define HAVE___ATTRIBUTE__ 1
2818_ACEOF
2819
2820  V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2821else
2822  V_DEFS="$V_DEFS -D_U_=\"\""
2823fi
2824echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2825echo "${ECHO_T}$ac_cv___attribute__" >&6
2826
2827
2828echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
2829echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
2830    if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
2831  echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
2833  cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h.  */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h.  */
2839
2840#	include "confdefs.h"
2841#	include <sys/types.h>
2842#	if STDC_HEADERS
2843#	include <stdlib.h>
2844#	include <stddef.h>
2845#	endif
2846int
2847main ()
2848{
2849u_int8_t i
2850  ;
2851  return 0;
2852}
2853_ACEOF
2854rm -f conftest.$ac_objext
2855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2856  (eval $ac_compile) 2>conftest.er1
2857  ac_status=$?
2858  grep -v '^ *+' conftest.er1 >conftest.err
2859  rm -f conftest.er1
2860  cat conftest.err >&5
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); } &&
2863	 { ac_try='test -z "$ac_c_werror_flag"
2864			 || test ! -s conftest.err'
2865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866  (eval $ac_try) 2>&5
2867  ac_status=$?
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); }; } &&
2870	 { ac_try='test -s conftest.$ac_objext'
2871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872  (eval $ac_try) 2>&5
2873  ac_status=$?
2874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875  (exit $ac_status); }; }; then
2876  ac_cv_lbl_have_u_int8_t=yes
2877else
2878  echo "$as_me: failed program was:" >&5
2879sed 's/^/| /' conftest.$ac_ext >&5
2880
2881ac_cv_lbl_have_u_int8_t=no
2882fi
2883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2884fi
2885
2886    echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
2887echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
2888    if test $ac_cv_lbl_have_u_int8_t = no ; then
2889
2890cat >>confdefs.h <<\_ACEOF
2891#define u_int8_t u_char
2892_ACEOF
2893
2894    fi
2895echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
2896echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
2897    if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
2898  echo $ECHO_N "(cached) $ECHO_C" >&6
2899else
2900  cat >conftest.$ac_ext <<_ACEOF
2901/* confdefs.h.  */
2902_ACEOF
2903cat confdefs.h >>conftest.$ac_ext
2904cat >>conftest.$ac_ext <<_ACEOF
2905/* end confdefs.h.  */
2906
2907#	include "confdefs.h"
2908#	include <sys/types.h>
2909#	if STDC_HEADERS
2910#	include <stdlib.h>
2911#	include <stddef.h>
2912#	endif
2913int
2914main ()
2915{
2916u_int16_t i
2917  ;
2918  return 0;
2919}
2920_ACEOF
2921rm -f conftest.$ac_objext
2922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923  (eval $ac_compile) 2>conftest.er1
2924  ac_status=$?
2925  grep -v '^ *+' conftest.er1 >conftest.err
2926  rm -f conftest.er1
2927  cat conftest.err >&5
2928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929  (exit $ac_status); } &&
2930	 { ac_try='test -z "$ac_c_werror_flag"
2931			 || test ! -s conftest.err'
2932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933  (eval $ac_try) 2>&5
2934  ac_status=$?
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); }; } &&
2937	 { ac_try='test -s conftest.$ac_objext'
2938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939  (eval $ac_try) 2>&5
2940  ac_status=$?
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); }; }; then
2943  ac_cv_lbl_have_u_int16_t=yes
2944else
2945  echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948ac_cv_lbl_have_u_int16_t=no
2949fi
2950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951fi
2952
2953    echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
2954echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
2955    if test $ac_cv_lbl_have_u_int16_t = no ; then
2956
2957cat >>confdefs.h <<\_ACEOF
2958#define u_int16_t u_short
2959_ACEOF
2960
2961    fi
2962echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
2963echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
2964    if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
2965  echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
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
2974#	include "confdefs.h"
2975#	include <sys/types.h>
2976#	if STDC_HEADERS
2977#	include <stdlib.h>
2978#	include <stddef.h>
2979#	endif
2980int
2981main ()
2982{
2983u_int32_t i
2984  ;
2985  return 0;
2986}
2987_ACEOF
2988rm -f conftest.$ac_objext
2989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990  (eval $ac_compile) 2>conftest.er1
2991  ac_status=$?
2992  grep -v '^ *+' conftest.er1 >conftest.err
2993  rm -f conftest.er1
2994  cat conftest.err >&5
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); } &&
2997	 { ac_try='test -z "$ac_c_werror_flag"
2998			 || test ! -s conftest.err'
2999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000  (eval $ac_try) 2>&5
3001  ac_status=$?
3002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003  (exit $ac_status); }; } &&
3004	 { ac_try='test -s conftest.$ac_objext'
3005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006  (eval $ac_try) 2>&5
3007  ac_status=$?
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); }; }; then
3010  ac_cv_lbl_have_u_int32_t=yes
3011else
3012  echo "$as_me: failed program was:" >&5
3013sed 's/^/| /' conftest.$ac_ext >&5
3014
3015ac_cv_lbl_have_u_int32_t=no
3016fi
3017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3018fi
3019
3020    echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
3021echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
3022    if test $ac_cv_lbl_have_u_int32_t = no ; then
3023
3024cat >>confdefs.h <<\_ACEOF
3025#define u_int32_t u_int
3026_ACEOF
3027
3028    fi
3029
3030ac_ext=c
3031ac_cpp='$CPP $CPPFLAGS'
3032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3036echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3037# On Suns, sometimes $CPP names a directory.
3038if test -n "$CPP" && test -d "$CPP"; then
3039  CPP=
3040fi
3041if test -z "$CPP"; then
3042  if test "${ac_cv_prog_CPP+set}" = set; then
3043  echo $ECHO_N "(cached) $ECHO_C" >&6
3044else
3045      # Double quotes because CPP needs to be expanded
3046    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3047    do
3048      ac_preproc_ok=false
3049for ac_c_preproc_warn_flag in '' yes
3050do
3051  # Use a header file that comes with gcc, so configuring glibc
3052  # with a fresh cross-compiler works.
3053  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3054  # <limits.h> exists even on freestanding compilers.
3055  # On the NeXT, cc -E runs the code through the compiler's parser,
3056  # not just through cpp. "Syntax error" is here to catch this case.
3057  cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h.  */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h.  */
3063#ifdef __STDC__
3064# include <limits.h>
3065#else
3066# include <assert.h>
3067#endif
3068		     Syntax error
3069_ACEOF
3070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3072  ac_status=$?
3073  grep -v '^ *+' conftest.er1 >conftest.err
3074  rm -f conftest.er1
3075  cat conftest.err >&5
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); } >/dev/null; then
3078  if test -s conftest.err; then
3079    ac_cpp_err=$ac_c_preproc_warn_flag
3080    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3081  else
3082    ac_cpp_err=
3083  fi
3084else
3085  ac_cpp_err=yes
3086fi
3087if test -z "$ac_cpp_err"; then
3088  :
3089else
3090  echo "$as_me: failed program was:" >&5
3091sed 's/^/| /' conftest.$ac_ext >&5
3092
3093  # Broken: fails on valid input.
3094continue
3095fi
3096rm -f conftest.err conftest.$ac_ext
3097
3098  # OK, works on sane cases.  Now check whether non-existent headers
3099  # can be detected and how.
3100  cat >conftest.$ac_ext <<_ACEOF
3101/* confdefs.h.  */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
3105/* end confdefs.h.  */
3106#include <ac_nonexistent.h>
3107_ACEOF
3108if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3110  ac_status=$?
3111  grep -v '^ *+' conftest.er1 >conftest.err
3112  rm -f conftest.er1
3113  cat conftest.err >&5
3114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115  (exit $ac_status); } >/dev/null; then
3116  if test -s conftest.err; then
3117    ac_cpp_err=$ac_c_preproc_warn_flag
3118    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3119  else
3120    ac_cpp_err=
3121  fi
3122else
3123  ac_cpp_err=yes
3124fi
3125if test -z "$ac_cpp_err"; then
3126  # Broken: success on invalid input.
3127continue
3128else
3129  echo "$as_me: failed program was:" >&5
3130sed 's/^/| /' conftest.$ac_ext >&5
3131
3132  # Passes both tests.
3133ac_preproc_ok=:
3134break
3135fi
3136rm -f conftest.err conftest.$ac_ext
3137
3138done
3139# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140rm -f conftest.err conftest.$ac_ext
3141if $ac_preproc_ok; then
3142  break
3143fi
3144
3145    done
3146    ac_cv_prog_CPP=$CPP
3147
3148fi
3149  CPP=$ac_cv_prog_CPP
3150else
3151  ac_cv_prog_CPP=$CPP
3152fi
3153echo "$as_me:$LINENO: result: $CPP" >&5
3154echo "${ECHO_T}$CPP" >&6
3155ac_preproc_ok=false
3156for ac_c_preproc_warn_flag in '' yes
3157do
3158  # Use a header file that comes with gcc, so configuring glibc
3159  # with a fresh cross-compiler works.
3160  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3161  # <limits.h> exists even on freestanding compilers.
3162  # On the NeXT, cc -E runs the code through the compiler's parser,
3163  # not just through cpp. "Syntax error" is here to catch this case.
3164  cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h.  */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h.  */
3170#ifdef __STDC__
3171# include <limits.h>
3172#else
3173# include <assert.h>
3174#endif
3175		     Syntax error
3176_ACEOF
3177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3179  ac_status=$?
3180  grep -v '^ *+' conftest.er1 >conftest.err
3181  rm -f conftest.er1
3182  cat conftest.err >&5
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); } >/dev/null; then
3185  if test -s conftest.err; then
3186    ac_cpp_err=$ac_c_preproc_warn_flag
3187    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3188  else
3189    ac_cpp_err=
3190  fi
3191else
3192  ac_cpp_err=yes
3193fi
3194if test -z "$ac_cpp_err"; then
3195  :
3196else
3197  echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200  # Broken: fails on valid input.
3201continue
3202fi
3203rm -f conftest.err conftest.$ac_ext
3204
3205  # OK, works on sane cases.  Now check whether non-existent headers
3206  # can be detected and how.
3207  cat >conftest.$ac_ext <<_ACEOF
3208/* confdefs.h.  */
3209_ACEOF
3210cat confdefs.h >>conftest.$ac_ext
3211cat >>conftest.$ac_ext <<_ACEOF
3212/* end confdefs.h.  */
3213#include <ac_nonexistent.h>
3214_ACEOF
3215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3216  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3217  ac_status=$?
3218  grep -v '^ *+' conftest.er1 >conftest.err
3219  rm -f conftest.er1
3220  cat conftest.err >&5
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); } >/dev/null; then
3223  if test -s conftest.err; then
3224    ac_cpp_err=$ac_c_preproc_warn_flag
3225    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3226  else
3227    ac_cpp_err=
3228  fi
3229else
3230  ac_cpp_err=yes
3231fi
3232if test -z "$ac_cpp_err"; then
3233  # Broken: success on invalid input.
3234continue
3235else
3236  echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
3239  # Passes both tests.
3240ac_preproc_ok=:
3241break
3242fi
3243rm -f conftest.err conftest.$ac_ext
3244
3245done
3246# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3247rm -f conftest.err conftest.$ac_ext
3248if $ac_preproc_ok; then
3249  :
3250else
3251  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3252See \`config.log' for more details." >&5
3253echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3254See \`config.log' for more details." >&2;}
3255   { (exit 1); exit 1; }; }
3256fi
3257
3258ac_ext=c
3259ac_cpp='$CPP $CPPFLAGS'
3260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263
3264
3265echo "$as_me:$LINENO: checking for egrep" >&5
3266echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3267if test "${ac_cv_prog_egrep+set}" = set; then
3268  echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3271    then ac_cv_prog_egrep='grep -E'
3272    else ac_cv_prog_egrep='egrep'
3273    fi
3274fi
3275echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3276echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3277 EGREP=$ac_cv_prog_egrep
3278
3279
3280echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3281echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3282if test "${ac_cv_header_stdc+set}" = set; then
3283  echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
3285  cat >conftest.$ac_ext <<_ACEOF
3286/* confdefs.h.  */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h.  */
3291#include <stdlib.h>
3292#include <stdarg.h>
3293#include <string.h>
3294#include <float.h>
3295
3296int
3297main ()
3298{
3299
3300  ;
3301  return 0;
3302}
3303_ACEOF
3304rm -f conftest.$ac_objext
3305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306  (eval $ac_compile) 2>conftest.er1
3307  ac_status=$?
3308  grep -v '^ *+' conftest.er1 >conftest.err
3309  rm -f conftest.er1
3310  cat conftest.err >&5
3311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312  (exit $ac_status); } &&
3313	 { ac_try='test -z "$ac_c_werror_flag"
3314			 || test ! -s conftest.err'
3315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316  (eval $ac_try) 2>&5
3317  ac_status=$?
3318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319  (exit $ac_status); }; } &&
3320	 { ac_try='test -s conftest.$ac_objext'
3321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322  (eval $ac_try) 2>&5
3323  ac_status=$?
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); }; }; then
3326  ac_cv_header_stdc=yes
3327else
3328  echo "$as_me: failed program was:" >&5
3329sed 's/^/| /' conftest.$ac_ext >&5
3330
3331ac_cv_header_stdc=no
3332fi
3333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3334
3335if test $ac_cv_header_stdc = yes; then
3336  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3337  cat >conftest.$ac_ext <<_ACEOF
3338/* confdefs.h.  */
3339_ACEOF
3340cat confdefs.h >>conftest.$ac_ext
3341cat >>conftest.$ac_ext <<_ACEOF
3342/* end confdefs.h.  */
3343#include <string.h>
3344
3345_ACEOF
3346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3347  $EGREP "memchr" >/dev/null 2>&1; then
3348  :
3349else
3350  ac_cv_header_stdc=no
3351fi
3352rm -f conftest*
3353
3354fi
3355
3356if test $ac_cv_header_stdc = yes; then
3357  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3358  cat >conftest.$ac_ext <<_ACEOF
3359/* confdefs.h.  */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h.  */
3364#include <stdlib.h>
3365
3366_ACEOF
3367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3368  $EGREP "free" >/dev/null 2>&1; then
3369  :
3370else
3371  ac_cv_header_stdc=no
3372fi
3373rm -f conftest*
3374
3375fi
3376
3377if test $ac_cv_header_stdc = yes; then
3378  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3379  if test "$cross_compiling" = yes; then
3380  :
3381else
3382  cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h.  */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h.  */
3388#include <ctype.h>
3389#if ((' ' & 0x0FF) == 0x020)
3390# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3391# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3392#else
3393# define ISLOWER(c) \
3394		   (('a' <= (c) && (c) <= 'i') \
3395		     || ('j' <= (c) && (c) <= 'r') \
3396		     || ('s' <= (c) && (c) <= 'z'))
3397# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3398#endif
3399
3400#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3401int
3402main ()
3403{
3404  int i;
3405  for (i = 0; i < 256; i++)
3406    if (XOR (islower (i), ISLOWER (i))
3407	|| toupper (i) != TOUPPER (i))
3408      exit(2);
3409  exit (0);
3410}
3411_ACEOF
3412rm -f conftest$ac_exeext
3413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3414  (eval $ac_link) 2>&5
3415  ac_status=$?
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419  (eval $ac_try) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); }; }; then
3423  :
3424else
3425  echo "$as_me: program exited with status $ac_status" >&5
3426echo "$as_me: failed program was:" >&5
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
3429( exit $ac_status )
3430ac_cv_header_stdc=no
3431fi
3432rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3433fi
3434fi
3435fi
3436echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3437echo "${ECHO_T}$ac_cv_header_stdc" >&6
3438if test $ac_cv_header_stdc = yes; then
3439
3440cat >>confdefs.h <<\_ACEOF
3441#define STDC_HEADERS 1
3442_ACEOF
3443
3444fi
3445
3446# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3457		  inttypes.h stdint.h unistd.h
3458do
3459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3460echo "$as_me:$LINENO: checking for $ac_header" >&5
3461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3462if eval "test \"\${$as_ac_Header+set}\" = set"; then
3463  echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465  cat >conftest.$ac_ext <<_ACEOF
3466/* confdefs.h.  */
3467_ACEOF
3468cat confdefs.h >>conftest.$ac_ext
3469cat >>conftest.$ac_ext <<_ACEOF
3470/* end confdefs.h.  */
3471$ac_includes_default
3472
3473#include <$ac_header>
3474_ACEOF
3475rm -f conftest.$ac_objext
3476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477  (eval $ac_compile) 2>conftest.er1
3478  ac_status=$?
3479  grep -v '^ *+' conftest.er1 >conftest.err
3480  rm -f conftest.er1
3481  cat conftest.err >&5
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); } &&
3484	 { ac_try='test -z "$ac_c_werror_flag"
3485			 || test ! -s conftest.err'
3486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487  (eval $ac_try) 2>&5
3488  ac_status=$?
3489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490  (exit $ac_status); }; } &&
3491	 { ac_try='test -s conftest.$ac_objext'
3492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493  (eval $ac_try) 2>&5
3494  ac_status=$?
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); }; }; then
3497  eval "$as_ac_Header=yes"
3498else
3499  echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502eval "$as_ac_Header=no"
3503fi
3504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3505fi
3506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3508if test `eval echo '${'$as_ac_Header'}'` = yes; then
3509  cat >>confdefs.h <<_ACEOF
3510#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3511_ACEOF
3512
3513fi
3514
3515done
3516
3517
3518
3519
3520
3521for ac_header in sys/ioccom.h sys/sockio.h limits.h
3522do
3523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3524if eval "test \"\${$as_ac_Header+set}\" = set"; then
3525  echo "$as_me:$LINENO: checking for $ac_header" >&5
3526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3527if eval "test \"\${$as_ac_Header+set}\" = set"; then
3528  echo $ECHO_N "(cached) $ECHO_C" >&6
3529fi
3530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3532else
3533  # Is the header compilable?
3534echo "$as_me:$LINENO: checking $ac_header usability" >&5
3535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3536cat >conftest.$ac_ext <<_ACEOF
3537/* confdefs.h.  */
3538_ACEOF
3539cat confdefs.h >>conftest.$ac_ext
3540cat >>conftest.$ac_ext <<_ACEOF
3541/* end confdefs.h.  */
3542$ac_includes_default
3543#include <$ac_header>
3544_ACEOF
3545rm -f conftest.$ac_objext
3546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547  (eval $ac_compile) 2>conftest.er1
3548  ac_status=$?
3549  grep -v '^ *+' conftest.er1 >conftest.err
3550  rm -f conftest.er1
3551  cat conftest.err >&5
3552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553  (exit $ac_status); } &&
3554	 { ac_try='test -z "$ac_c_werror_flag"
3555			 || test ! -s conftest.err'
3556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557  (eval $ac_try) 2>&5
3558  ac_status=$?
3559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560  (exit $ac_status); }; } &&
3561	 { ac_try='test -s conftest.$ac_objext'
3562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563  (eval $ac_try) 2>&5
3564  ac_status=$?
3565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566  (exit $ac_status); }; }; then
3567  ac_header_compiler=yes
3568else
3569  echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572ac_header_compiler=no
3573fi
3574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3575echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3576echo "${ECHO_T}$ac_header_compiler" >&6
3577
3578# Is the header present?
3579echo "$as_me:$LINENO: checking $ac_header presence" >&5
3580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3581cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h.  */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
3586/* end confdefs.h.  */
3587#include <$ac_header>
3588_ACEOF
3589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3590  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3591  ac_status=$?
3592  grep -v '^ *+' conftest.er1 >conftest.err
3593  rm -f conftest.er1
3594  cat conftest.err >&5
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); } >/dev/null; then
3597  if test -s conftest.err; then
3598    ac_cpp_err=$ac_c_preproc_warn_flag
3599    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3600  else
3601    ac_cpp_err=
3602  fi
3603else
3604  ac_cpp_err=yes
3605fi
3606if test -z "$ac_cpp_err"; then
3607  ac_header_preproc=yes
3608else
3609  echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
3612  ac_header_preproc=no
3613fi
3614rm -f conftest.err conftest.$ac_ext
3615echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3616echo "${ECHO_T}$ac_header_preproc" >&6
3617
3618# So?  What about this header?
3619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3620  yes:no: )
3621    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3623    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3625    ac_header_preproc=yes
3626    ;;
3627  no:yes:* )
3628    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3630    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3631echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3632    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3634    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3635echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3636    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3638    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3640    (
3641      cat <<\_ASBOX
3642## ------------------------------------------ ##
3643## Report this to the AC_PACKAGE_NAME lists.  ##
3644## ------------------------------------------ ##
3645_ASBOX
3646    ) |
3647      sed "s/^/$as_me: WARNING:     /" >&2
3648    ;;
3649esac
3650echo "$as_me:$LINENO: checking for $ac_header" >&5
3651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3652if eval "test \"\${$as_ac_Header+set}\" = set"; then
3653  echo $ECHO_N "(cached) $ECHO_C" >&6
3654else
3655  eval "$as_ac_Header=\$ac_header_preproc"
3656fi
3657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3659
3660fi
3661if test `eval echo '${'$as_ac_Header'}'` = yes; then
3662  cat >>confdefs.h <<_ACEOF
3663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3664_ACEOF
3665
3666fi
3667
3668done
3669
3670
3671for ac_header in netinet/if_ether.h
3672do
3673as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3674echo "$as_me:$LINENO: checking for $ac_header" >&5
3675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3676if eval "test \"\${$as_ac_Header+set}\" = set"; then
3677  echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679  cat >conftest.$ac_ext <<_ACEOF
3680/* confdefs.h.  */
3681_ACEOF
3682cat confdefs.h >>conftest.$ac_ext
3683cat >>conftest.$ac_ext <<_ACEOF
3684/* end confdefs.h.  */
3685#include <sys/types.h>
3686#include <sys/socket.h>
3687
3688#include <$ac_header>
3689_ACEOF
3690rm -f conftest.$ac_objext
3691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3692  (eval $ac_compile) 2>conftest.er1
3693  ac_status=$?
3694  grep -v '^ *+' conftest.er1 >conftest.err
3695  rm -f conftest.er1
3696  cat conftest.err >&5
3697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698  (exit $ac_status); } &&
3699	 { ac_try='test -z "$ac_c_werror_flag"
3700			 || test ! -s conftest.err'
3701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702  (eval $ac_try) 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }; } &&
3706	 { ac_try='test -s conftest.$ac_objext'
3707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708  (eval $ac_try) 2>&5
3709  ac_status=$?
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); }; }; then
3712  eval "$as_ac_Header=yes"
3713else
3714  echo "$as_me: failed program was:" >&5
3715sed 's/^/| /' conftest.$ac_ext >&5
3716
3717eval "$as_ac_Header=no"
3718fi
3719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3720fi
3721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3723if test `eval echo '${'$as_ac_Header'}'` = yes; then
3724  cat >>confdefs.h <<_ACEOF
3725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3726_ACEOF
3727
3728fi
3729
3730done
3731
3732if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3733	#
3734	# The simple test didn't work.
3735	# Do we need to include <net/if.h> first?
3736	# Unset ac_cv_header_netinet_if_ether_h so we don't
3737	# treat the previous failure as a cached value and
3738	# suppress the next test.
3739	#
3740	{ echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3741echo "$as_me: Rechecking with some additional includes" >&6;}
3742	unset ac_cv_header_netinet_if_ether_h
3743
3744for ac_header in netinet/if_ether.h
3745do
3746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3747echo "$as_me:$LINENO: checking for $ac_header" >&5
3748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3749if eval "test \"\${$as_ac_Header+set}\" = set"; then
3750  echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752  cat >conftest.$ac_ext <<_ACEOF
3753/* confdefs.h.  */
3754_ACEOF
3755cat confdefs.h >>conftest.$ac_ext
3756cat >>conftest.$ac_ext <<_ACEOF
3757/* end confdefs.h.  */
3758#include <sys/types.h>
3759#include <sys/socket.h>
3760#include <netinet/in.h>
3761struct mbuf;
3762struct rtentry;
3763#include <net/if.h>
3764
3765#include <$ac_header>
3766_ACEOF
3767rm -f conftest.$ac_objext
3768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769  (eval $ac_compile) 2>conftest.er1
3770  ac_status=$?
3771  grep -v '^ *+' conftest.er1 >conftest.err
3772  rm -f conftest.er1
3773  cat conftest.err >&5
3774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775  (exit $ac_status); } &&
3776	 { ac_try='test -z "$ac_c_werror_flag"
3777			 || test ! -s conftest.err'
3778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779  (eval $ac_try) 2>&5
3780  ac_status=$?
3781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782  (exit $ac_status); }; } &&
3783	 { ac_try='test -s conftest.$ac_objext'
3784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785  (eval $ac_try) 2>&5
3786  ac_status=$?
3787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788  (exit $ac_status); }; }; then
3789  eval "$as_ac_Header=yes"
3790else
3791  echo "$as_me: failed program was:" >&5
3792sed 's/^/| /' conftest.$ac_ext >&5
3793
3794eval "$as_ac_Header=no"
3795fi
3796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3797fi
3798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3800if test `eval echo '${'$as_ac_Header'}'` = yes; then
3801  cat >>confdefs.h <<_ACEOF
3802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3803_ACEOF
3804
3805fi
3806
3807done
3808
3809fi
3810
3811if test "$GCC" = yes ; then
3812	    echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
3813echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6
3814	    if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
3815  echo $ECHO_N "(cached) $ECHO_C" >&6
3816else
3817  cat >conftest.$ac_ext <<_ACEOF
3818/* confdefs.h.  */
3819_ACEOF
3820cat confdefs.h >>conftest.$ac_ext
3821cat >>conftest.$ac_ext <<_ACEOF
3822/* end confdefs.h.  */
3823/*
3824		     * This generates a "duplicate case value" when fixincludes
3825		     * has not be run.
3826		     */
3827#		include <sys/types.h>
3828#		include <sys/time.h>
3829#		include <sys/ioctl.h>
3830#		ifdef HAVE_SYS_IOCCOM_H
3831#		include <sys/ioccom.h>
3832#		endif
3833int
3834main ()
3835{
3836switch (0) {
3837		    case _IO('A', 1):;
3838		    case _IO('B', 1):;
3839		    }
3840  ;
3841  return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext
3845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846  (eval $ac_compile) 2>conftest.er1
3847  ac_status=$?
3848  grep -v '^ *+' conftest.er1 >conftest.err
3849  rm -f conftest.er1
3850  cat conftest.err >&5
3851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852  (exit $ac_status); } &&
3853	 { ac_try='test -z "$ac_c_werror_flag"
3854			 || test ! -s conftest.err'
3855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856  (eval $ac_try) 2>&5
3857  ac_status=$?
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); }; } &&
3860	 { ac_try='test -s conftest.$ac_objext'
3861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862  (eval $ac_try) 2>&5
3863  ac_status=$?
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); }; }; then
3866  ac_cv_lbl_gcc_fixincludes=yes
3867else
3868  echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871ac_cv_lbl_gcc_fixincludes=no
3872fi
3873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874fi
3875
3876#	    echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
3877#echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6
3878#	    if test $ac_cv_lbl_gcc_fixincludes = no ; then
3879#		    # Don't cache failure
3880#		    unset ac_cv_lbl_gcc_fixincludes
3881#		    { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
3882#echo "$as_me: error: see the INSTALL for more info" >&2;}
3883#   { (exit 1); exit 1; }; }
3884#	    fi
3885   fi
3886
3887
3888
3889for ac_func in strerror strlcpy
3890do
3891as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3892echo "$as_me:$LINENO: checking for $ac_func" >&5
3893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3894if eval "test \"\${$as_ac_var+set}\" = set"; then
3895  echo $ECHO_N "(cached) $ECHO_C" >&6
3896else
3897  cat >conftest.$ac_ext <<_ACEOF
3898/* confdefs.h.  */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h.  */
3903/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3904   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3905#define $ac_func innocuous_$ac_func
3906
3907/* System header to define __stub macros and hopefully few prototypes,
3908    which can conflict with char $ac_func (); below.
3909    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3910    <limits.h> exists even on freestanding compilers.  */
3911
3912#ifdef __STDC__
3913# include <limits.h>
3914#else
3915# include <assert.h>
3916#endif
3917
3918#undef $ac_func
3919
3920/* Override any gcc2 internal prototype to avoid an error.  */
3921#ifdef __cplusplus
3922extern "C"
3923{
3924#endif
3925/* We use char because int might match the return type of a gcc2
3926   builtin and then its argument prototype would still apply.  */
3927char $ac_func ();
3928/* The GNU C library defines this for functions which it implements
3929    to always fail with ENOSYS.  Some functions are actually named
3930    something starting with __ and the normal name is an alias.  */
3931#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3932choke me
3933#else
3934char (*f) () = $ac_func;
3935#endif
3936#ifdef __cplusplus
3937}
3938#endif
3939
3940int
3941main ()
3942{
3943return f != $ac_func;
3944  ;
3945  return 0;
3946}
3947_ACEOF
3948rm -f conftest.$ac_objext conftest$ac_exeext
3949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3950  (eval $ac_link) 2>conftest.er1
3951  ac_status=$?
3952  grep -v '^ *+' conftest.er1 >conftest.err
3953  rm -f conftest.er1
3954  cat conftest.err >&5
3955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956  (exit $ac_status); } &&
3957	 { ac_try='test -z "$ac_c_werror_flag"
3958			 || test ! -s conftest.err'
3959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960  (eval $ac_try) 2>&5
3961  ac_status=$?
3962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963  (exit $ac_status); }; } &&
3964	 { ac_try='test -s conftest$ac_exeext'
3965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966  (eval $ac_try) 2>&5
3967  ac_status=$?
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); }; }; then
3970  eval "$as_ac_var=yes"
3971else
3972  echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
3975eval "$as_ac_var=no"
3976fi
3977rm -f conftest.err conftest.$ac_objext \
3978      conftest$ac_exeext conftest.$ac_ext
3979fi
3980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3981echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3982if test `eval echo '${'$as_ac_var'}'` = yes; then
3983  cat >>confdefs.h <<_ACEOF
3984#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3985_ACEOF
3986
3987fi
3988done
3989
3990
3991needsnprintf=no
3992
3993
3994for ac_func in vsnprintf snprintf
3995do
3996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3997echo "$as_me:$LINENO: checking for $ac_func" >&5
3998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3999if eval "test \"\${$as_ac_var+set}\" = set"; then
4000  echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002  cat >conftest.$ac_ext <<_ACEOF
4003/* confdefs.h.  */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h.  */
4008/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4009   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4010#define $ac_func innocuous_$ac_func
4011
4012/* System header to define __stub macros and hopefully few prototypes,
4013    which can conflict with char $ac_func (); below.
4014    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4015    <limits.h> exists even on freestanding compilers.  */
4016
4017#ifdef __STDC__
4018# include <limits.h>
4019#else
4020# include <assert.h>
4021#endif
4022
4023#undef $ac_func
4024
4025/* Override any gcc2 internal prototype to avoid an error.  */
4026#ifdef __cplusplus
4027extern "C"
4028{
4029#endif
4030/* We use char because int might match the return type of a gcc2
4031   builtin and then its argument prototype would still apply.  */
4032char $ac_func ();
4033/* The GNU C library defines this for functions which it implements
4034    to always fail with ENOSYS.  Some functions are actually named
4035    something starting with __ and the normal name is an alias.  */
4036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4037choke me
4038#else
4039char (*f) () = $ac_func;
4040#endif
4041#ifdef __cplusplus
4042}
4043#endif
4044
4045int
4046main ()
4047{
4048return f != $ac_func;
4049  ;
4050  return 0;
4051}
4052_ACEOF
4053rm -f conftest.$ac_objext conftest$ac_exeext
4054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4055  (eval $ac_link) 2>conftest.er1
4056  ac_status=$?
4057  grep -v '^ *+' conftest.er1 >conftest.err
4058  rm -f conftest.er1
4059  cat conftest.err >&5
4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061  (exit $ac_status); } &&
4062	 { ac_try='test -z "$ac_c_werror_flag"
4063			 || test ! -s conftest.err'
4064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065  (eval $ac_try) 2>&5
4066  ac_status=$?
4067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068  (exit $ac_status); }; } &&
4069	 { ac_try='test -s conftest$ac_exeext'
4070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071  (eval $ac_try) 2>&5
4072  ac_status=$?
4073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074  (exit $ac_status); }; }; then
4075  eval "$as_ac_var=yes"
4076else
4077  echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
4080eval "$as_ac_var=no"
4081fi
4082rm -f conftest.err conftest.$ac_objext \
4083      conftest$ac_exeext conftest.$ac_ext
4084fi
4085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4087if test `eval echo '${'$as_ac_var'}'` = yes; then
4088  cat >>confdefs.h <<_ACEOF
4089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4090_ACEOF
4091
4092else
4093  needsnprintf=yes
4094fi
4095done
4096
4097if test $needsnprintf = yes; then
4098	case $LIBOBJS in
4099    "snprintf.$ac_objext"   | \
4100  *" snprintf.$ac_objext"   | \
4101    "snprintf.$ac_objext "* | \
4102  *" snprintf.$ac_objext "* ) ;;
4103  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
4104esac
4105
4106fi
4107
4108#
4109# Do this before checking for ether_hostton(), as it's a
4110# "gethostbyname() -ish function".
4111#
4112
4113    # Most operating systems have gethostbyname() in the default searched
4114    # libraries (i.e. libc):
4115    # Some OSes (eg. Solaris) place it in libnsl
4116    # Some strange OSes (SINIX) have it in libsocket:
4117    echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4118echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
4119if test "${ac_cv_search_gethostbyname+set}" = set; then
4120  echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122  ac_func_search_save_LIBS=$LIBS
4123ac_cv_search_gethostbyname=no
4124cat >conftest.$ac_ext <<_ACEOF
4125/* confdefs.h.  */
4126_ACEOF
4127cat confdefs.h >>conftest.$ac_ext
4128cat >>conftest.$ac_ext <<_ACEOF
4129/* end confdefs.h.  */
4130
4131/* Override any gcc2 internal prototype to avoid an error.  */
4132#ifdef __cplusplus
4133extern "C"
4134#endif
4135/* We use char because int might match the return type of a gcc2
4136   builtin and then its argument prototype would still apply.  */
4137char gethostbyname ();
4138int
4139main ()
4140{
4141gethostbyname ();
4142  ;
4143  return 0;
4144}
4145_ACEOF
4146rm -f conftest.$ac_objext conftest$ac_exeext
4147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4148  (eval $ac_link) 2>conftest.er1
4149  ac_status=$?
4150  grep -v '^ *+' conftest.er1 >conftest.err
4151  rm -f conftest.er1
4152  cat conftest.err >&5
4153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154  (exit $ac_status); } &&
4155	 { ac_try='test -z "$ac_c_werror_flag"
4156			 || test ! -s conftest.err'
4157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158  (eval $ac_try) 2>&5
4159  ac_status=$?
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); }; } &&
4162	 { ac_try='test -s conftest$ac_exeext'
4163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164  (eval $ac_try) 2>&5
4165  ac_status=$?
4166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167  (exit $ac_status); }; }; then
4168  ac_cv_search_gethostbyname="none required"
4169else
4170  echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173fi
4174rm -f conftest.err conftest.$ac_objext \
4175      conftest$ac_exeext conftest.$ac_ext
4176if test "$ac_cv_search_gethostbyname" = no; then
4177  for ac_lib in nsl socket resolv; do
4178    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4179    cat >conftest.$ac_ext <<_ACEOF
4180/* confdefs.h.  */
4181_ACEOF
4182cat confdefs.h >>conftest.$ac_ext
4183cat >>conftest.$ac_ext <<_ACEOF
4184/* end confdefs.h.  */
4185
4186/* Override any gcc2 internal prototype to avoid an error.  */
4187#ifdef __cplusplus
4188extern "C"
4189#endif
4190/* We use char because int might match the return type of a gcc2
4191   builtin and then its argument prototype would still apply.  */
4192char gethostbyname ();
4193int
4194main ()
4195{
4196gethostbyname ();
4197  ;
4198  return 0;
4199}
4200_ACEOF
4201rm -f conftest.$ac_objext conftest$ac_exeext
4202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4203  (eval $ac_link) 2>conftest.er1
4204  ac_status=$?
4205  grep -v '^ *+' conftest.er1 >conftest.err
4206  rm -f conftest.er1
4207  cat conftest.err >&5
4208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209  (exit $ac_status); } &&
4210	 { ac_try='test -z "$ac_c_werror_flag"
4211			 || test ! -s conftest.err'
4212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213  (eval $ac_try) 2>&5
4214  ac_status=$?
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); }; } &&
4217	 { ac_try='test -s conftest$ac_exeext'
4218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219  (eval $ac_try) 2>&5
4220  ac_status=$?
4221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222  (exit $ac_status); }; }; then
4223  ac_cv_search_gethostbyname="-l$ac_lib"
4224break
4225else
4226  echo "$as_me: failed program was:" >&5
4227sed 's/^/| /' conftest.$ac_ext >&5
4228
4229fi
4230rm -f conftest.err conftest.$ac_objext \
4231      conftest$ac_exeext conftest.$ac_ext
4232  done
4233fi
4234LIBS=$ac_func_search_save_LIBS
4235fi
4236echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4237echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
4238if test "$ac_cv_search_gethostbyname" != no; then
4239  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
4240
4241fi
4242
4243    # Unfortunately libsocket sometimes depends on libnsl and
4244    # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4245    if test "$ac_cv_search_gethostbyname" = "no"
4246    then
4247	echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4248echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
4249if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4250  echo $ECHO_N "(cached) $ECHO_C" >&6
4251else
4252  ac_check_lib_save_LIBS=$LIBS
4253LIBS="-lsocket -lnsl $LIBS"
4254cat >conftest.$ac_ext <<_ACEOF
4255/* confdefs.h.  */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h.  */
4260
4261/* Override any gcc2 internal prototype to avoid an error.  */
4262#ifdef __cplusplus
4263extern "C"
4264#endif
4265/* We use char because int might match the return type of a gcc2
4266   builtin and then its argument prototype would still apply.  */
4267char gethostbyname ();
4268int
4269main ()
4270{
4271gethostbyname ();
4272  ;
4273  return 0;
4274}
4275_ACEOF
4276rm -f conftest.$ac_objext conftest$ac_exeext
4277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4278  (eval $ac_link) 2>conftest.er1
4279  ac_status=$?
4280  grep -v '^ *+' conftest.er1 >conftest.err
4281  rm -f conftest.er1
4282  cat conftest.err >&5
4283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284  (exit $ac_status); } &&
4285	 { ac_try='test -z "$ac_c_werror_flag"
4286			 || test ! -s conftest.err'
4287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288  (eval $ac_try) 2>&5
4289  ac_status=$?
4290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291  (exit $ac_status); }; } &&
4292	 { ac_try='test -s conftest$ac_exeext'
4293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294  (eval $ac_try) 2>&5
4295  ac_status=$?
4296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297  (exit $ac_status); }; }; then
4298  ac_cv_lib_socket_gethostbyname=yes
4299else
4300  echo "$as_me: failed program was:" >&5
4301sed 's/^/| /' conftest.$ac_ext >&5
4302
4303ac_cv_lib_socket_gethostbyname=no
4304fi
4305rm -f conftest.err conftest.$ac_objext \
4306      conftest$ac_exeext conftest.$ac_ext
4307LIBS=$ac_check_lib_save_LIBS
4308fi
4309echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4310echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
4311if test $ac_cv_lib_socket_gethostbyname = yes; then
4312  LIBS="-lsocket -lnsl $LIBS"
4313fi
4314
4315    fi
4316    echo "$as_me:$LINENO: checking for library containing socket" >&5
4317echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
4318if test "${ac_cv_search_socket+set}" = set; then
4319  echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321  ac_func_search_save_LIBS=$LIBS
4322ac_cv_search_socket=no
4323cat >conftest.$ac_ext <<_ACEOF
4324/* confdefs.h.  */
4325_ACEOF
4326cat confdefs.h >>conftest.$ac_ext
4327cat >>conftest.$ac_ext <<_ACEOF
4328/* end confdefs.h.  */
4329
4330/* Override any gcc2 internal prototype to avoid an error.  */
4331#ifdef __cplusplus
4332extern "C"
4333#endif
4334/* We use char because int might match the return type of a gcc2
4335   builtin and then its argument prototype would still apply.  */
4336char socket ();
4337int
4338main ()
4339{
4340socket ();
4341  ;
4342  return 0;
4343}
4344_ACEOF
4345rm -f conftest.$ac_objext conftest$ac_exeext
4346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4347  (eval $ac_link) 2>conftest.er1
4348  ac_status=$?
4349  grep -v '^ *+' conftest.er1 >conftest.err
4350  rm -f conftest.er1
4351  cat conftest.err >&5
4352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353  (exit $ac_status); } &&
4354	 { ac_try='test -z "$ac_c_werror_flag"
4355			 || test ! -s conftest.err'
4356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357  (eval $ac_try) 2>&5
4358  ac_status=$?
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); }; } &&
4361	 { ac_try='test -s conftest$ac_exeext'
4362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363  (eval $ac_try) 2>&5
4364  ac_status=$?
4365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366  (exit $ac_status); }; }; then
4367  ac_cv_search_socket="none required"
4368else
4369  echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372fi
4373rm -f conftest.err conftest.$ac_objext \
4374      conftest$ac_exeext conftest.$ac_ext
4375if test "$ac_cv_search_socket" = no; then
4376  for ac_lib in socket; do
4377    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4378    cat >conftest.$ac_ext <<_ACEOF
4379/* confdefs.h.  */
4380_ACEOF
4381cat confdefs.h >>conftest.$ac_ext
4382cat >>conftest.$ac_ext <<_ACEOF
4383/* end confdefs.h.  */
4384
4385/* Override any gcc2 internal prototype to avoid an error.  */
4386#ifdef __cplusplus
4387extern "C"
4388#endif
4389/* We use char because int might match the return type of a gcc2
4390   builtin and then its argument prototype would still apply.  */
4391char socket ();
4392int
4393main ()
4394{
4395socket ();
4396  ;
4397  return 0;
4398}
4399_ACEOF
4400rm -f conftest.$ac_objext conftest$ac_exeext
4401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4402  (eval $ac_link) 2>conftest.er1
4403  ac_status=$?
4404  grep -v '^ *+' conftest.er1 >conftest.err
4405  rm -f conftest.er1
4406  cat conftest.err >&5
4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408  (exit $ac_status); } &&
4409	 { ac_try='test -z "$ac_c_werror_flag"
4410			 || test ! -s conftest.err'
4411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412  (eval $ac_try) 2>&5
4413  ac_status=$?
4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415  (exit $ac_status); }; } &&
4416	 { ac_try='test -s conftest$ac_exeext'
4417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418  (eval $ac_try) 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); }; }; then
4422  ac_cv_search_socket="-l$ac_lib"
4423break
4424else
4425  echo "$as_me: failed program was:" >&5
4426sed 's/^/| /' conftest.$ac_ext >&5
4427
4428fi
4429rm -f conftest.err conftest.$ac_objext \
4430      conftest$ac_exeext conftest.$ac_ext
4431  done
4432fi
4433LIBS=$ac_func_search_save_LIBS
4434fi
4435echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4436echo "${ECHO_T}$ac_cv_search_socket" >&6
4437if test "$ac_cv_search_socket" != no; then
4438  test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
4439
4440else
4441  echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4442echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4443if test "${ac_cv_lib_socket_socket+set}" = set; then
4444  echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446  ac_check_lib_save_LIBS=$LIBS
4447LIBS="-lsocket -lnsl $LIBS"
4448cat >conftest.$ac_ext <<_ACEOF
4449/* confdefs.h.  */
4450_ACEOF
4451cat confdefs.h >>conftest.$ac_ext
4452cat >>conftest.$ac_ext <<_ACEOF
4453/* end confdefs.h.  */
4454
4455/* Override any gcc2 internal prototype to avoid an error.  */
4456#ifdef __cplusplus
4457extern "C"
4458#endif
4459/* We use char because int might match the return type of a gcc2
4460   builtin and then its argument prototype would still apply.  */
4461char socket ();
4462int
4463main ()
4464{
4465socket ();
4466  ;
4467  return 0;
4468}
4469_ACEOF
4470rm -f conftest.$ac_objext conftest$ac_exeext
4471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4472  (eval $ac_link) 2>conftest.er1
4473  ac_status=$?
4474  grep -v '^ *+' conftest.er1 >conftest.err
4475  rm -f conftest.er1
4476  cat conftest.err >&5
4477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478  (exit $ac_status); } &&
4479	 { ac_try='test -z "$ac_c_werror_flag"
4480			 || test ! -s conftest.err'
4481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482  (eval $ac_try) 2>&5
4483  ac_status=$?
4484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485  (exit $ac_status); }; } &&
4486	 { ac_try='test -s conftest$ac_exeext'
4487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488  (eval $ac_try) 2>&5
4489  ac_status=$?
4490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491  (exit $ac_status); }; }; then
4492  ac_cv_lib_socket_socket=yes
4493else
4494  echo "$as_me: failed program was:" >&5
4495sed 's/^/| /' conftest.$ac_ext >&5
4496
4497ac_cv_lib_socket_socket=no
4498fi
4499rm -f conftest.err conftest.$ac_objext \
4500      conftest$ac_exeext conftest.$ac_ext
4501LIBS=$ac_check_lib_save_LIBS
4502fi
4503echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4504echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4505if test $ac_cv_lib_socket_socket = yes; then
4506  LIBS="-lsocket -lnsl $LIBS"
4507fi
4508
4509fi
4510
4511    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
4512    echo "$as_me:$LINENO: checking for library containing putmsg" >&5
4513echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
4514if test "${ac_cv_search_putmsg+set}" = set; then
4515  echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517  ac_func_search_save_LIBS=$LIBS
4518ac_cv_search_putmsg=no
4519cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h.  */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h.  */
4525
4526/* Override any gcc2 internal prototype to avoid an error.  */
4527#ifdef __cplusplus
4528extern "C"
4529#endif
4530/* We use char because int might match the return type of a gcc2
4531   builtin and then its argument prototype would still apply.  */
4532char putmsg ();
4533int
4534main ()
4535{
4536putmsg ();
4537  ;
4538  return 0;
4539}
4540_ACEOF
4541rm -f conftest.$ac_objext conftest$ac_exeext
4542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4543  (eval $ac_link) 2>conftest.er1
4544  ac_status=$?
4545  grep -v '^ *+' conftest.er1 >conftest.err
4546  rm -f conftest.er1
4547  cat conftest.err >&5
4548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549  (exit $ac_status); } &&
4550	 { ac_try='test -z "$ac_c_werror_flag"
4551			 || test ! -s conftest.err'
4552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553  (eval $ac_try) 2>&5
4554  ac_status=$?
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); }; } &&
4557	 { ac_try='test -s conftest$ac_exeext'
4558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559  (eval $ac_try) 2>&5
4560  ac_status=$?
4561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562  (exit $ac_status); }; }; then
4563  ac_cv_search_putmsg="none required"
4564else
4565  echo "$as_me: failed program was:" >&5
4566sed 's/^/| /' conftest.$ac_ext >&5
4567
4568fi
4569rm -f conftest.err conftest.$ac_objext \
4570      conftest$ac_exeext conftest.$ac_ext
4571if test "$ac_cv_search_putmsg" = no; then
4572  for ac_lib in str; do
4573    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4574    cat >conftest.$ac_ext <<_ACEOF
4575/* confdefs.h.  */
4576_ACEOF
4577cat confdefs.h >>conftest.$ac_ext
4578cat >>conftest.$ac_ext <<_ACEOF
4579/* end confdefs.h.  */
4580
4581/* Override any gcc2 internal prototype to avoid an error.  */
4582#ifdef __cplusplus
4583extern "C"
4584#endif
4585/* We use char because int might match the return type of a gcc2
4586   builtin and then its argument prototype would still apply.  */
4587char putmsg ();
4588int
4589main ()
4590{
4591putmsg ();
4592  ;
4593  return 0;
4594}
4595_ACEOF
4596rm -f conftest.$ac_objext conftest$ac_exeext
4597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598  (eval $ac_link) 2>conftest.er1
4599  ac_status=$?
4600  grep -v '^ *+' conftest.er1 >conftest.err
4601  rm -f conftest.er1
4602  cat conftest.err >&5
4603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604  (exit $ac_status); } &&
4605	 { ac_try='test -z "$ac_c_werror_flag"
4606			 || test ! -s conftest.err'
4607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608  (eval $ac_try) 2>&5
4609  ac_status=$?
4610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611  (exit $ac_status); }; } &&
4612	 { ac_try='test -s conftest$ac_exeext'
4613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614  (eval $ac_try) 2>&5
4615  ac_status=$?
4616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617  (exit $ac_status); }; }; then
4618  ac_cv_search_putmsg="-l$ac_lib"
4619break
4620else
4621  echo "$as_me: failed program was:" >&5
4622sed 's/^/| /' conftest.$ac_ext >&5
4623
4624fi
4625rm -f conftest.err conftest.$ac_objext \
4626      conftest$ac_exeext conftest.$ac_ext
4627  done
4628fi
4629LIBS=$ac_func_search_save_LIBS
4630fi
4631echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
4632echo "${ECHO_T}$ac_cv_search_putmsg" >&6
4633if test "$ac_cv_search_putmsg" != no; then
4634  test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
4635
4636fi
4637
4638
4639
4640#
4641# You are in a twisty little maze of UN*Xes, all different.
4642# Some might not have ether_hostton().
4643# Some might have it, but not declare it in any header file.
4644# Some might have it, but declare it in <netinet/if_ether.h>.
4645# Some might have it, but declare it in <netinet/ether.h>
4646# (And some might have it but document it as something declared in
4647# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
4648#
4649# Before you is a C compiler.
4650#
4651
4652for ac_func in ether_hostton
4653do
4654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4655echo "$as_me:$LINENO: checking for $ac_func" >&5
4656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4657if eval "test \"\${$as_ac_var+set}\" = set"; then
4658  echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660  cat >conftest.$ac_ext <<_ACEOF
4661/* confdefs.h.  */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h.  */
4666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4667   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4668#define $ac_func innocuous_$ac_func
4669
4670/* System header to define __stub macros and hopefully few prototypes,
4671    which can conflict with char $ac_func (); below.
4672    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4673    <limits.h> exists even on freestanding compilers.  */
4674
4675#ifdef __STDC__
4676# include <limits.h>
4677#else
4678# include <assert.h>
4679#endif
4680
4681#undef $ac_func
4682
4683/* Override any gcc2 internal prototype to avoid an error.  */
4684#ifdef __cplusplus
4685extern "C"
4686{
4687#endif
4688/* We use char because int might match the return type of a gcc2
4689   builtin and then its argument prototype would still apply.  */
4690char $ac_func ();
4691/* The GNU C library defines this for functions which it implements
4692    to always fail with ENOSYS.  Some functions are actually named
4693    something starting with __ and the normal name is an alias.  */
4694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4695choke me
4696#else
4697char (*f) () = $ac_func;
4698#endif
4699#ifdef __cplusplus
4700}
4701#endif
4702
4703int
4704main ()
4705{
4706return f != $ac_func;
4707  ;
4708  return 0;
4709}
4710_ACEOF
4711rm -f conftest.$ac_objext conftest$ac_exeext
4712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713  (eval $ac_link) 2>conftest.er1
4714  ac_status=$?
4715  grep -v '^ *+' conftest.er1 >conftest.err
4716  rm -f conftest.er1
4717  cat conftest.err >&5
4718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719  (exit $ac_status); } &&
4720	 { ac_try='test -z "$ac_c_werror_flag"
4721			 || test ! -s conftest.err'
4722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723  (eval $ac_try) 2>&5
4724  ac_status=$?
4725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726  (exit $ac_status); }; } &&
4727	 { ac_try='test -s conftest$ac_exeext'
4728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729  (eval $ac_try) 2>&5
4730  ac_status=$?
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); }; }; then
4733  eval "$as_ac_var=yes"
4734else
4735  echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738eval "$as_ac_var=no"
4739fi
4740rm -f conftest.err conftest.$ac_objext \
4741      conftest$ac_exeext conftest.$ac_ext
4742fi
4743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4744echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4745if test `eval echo '${'$as_ac_var'}'` = yes; then
4746  cat >>confdefs.h <<_ACEOF
4747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4748_ACEOF
4749
4750fi
4751done
4752
4753if test "$ac_cv_func_ether_hostton" = yes; then
4754	#
4755	# OK, we have ether_hostton().  Do we have <netinet/if_ether.h>?
4756	#
4757	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
4758		#
4759		# Yes.  Does it declare ether_hostton()?
4760		#
4761		echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
4762echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
4763if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
4764  echo $ECHO_N "(cached) $ECHO_C" >&6
4765else
4766  cat >conftest.$ac_ext <<_ACEOF
4767/* confdefs.h.  */
4768_ACEOF
4769cat confdefs.h >>conftest.$ac_ext
4770cat >>conftest.$ac_ext <<_ACEOF
4771/* end confdefs.h.  */
4772
4773#include <sys/types.h>
4774#include <sys/socket.h>
4775#include <netinet/in.h>
4776#include <arpa/inet.h>
4777struct mbuf;
4778struct rtentry;
4779#include <net/if.h>
4780#include <netinet/if_ether.h>
4781
4782
4783int
4784main ()
4785{
4786#ifndef ether_hostton
4787  char *p = (char *) ether_hostton;
4788#endif
4789
4790  ;
4791  return 0;
4792}
4793_ACEOF
4794rm -f conftest.$ac_objext
4795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796  (eval $ac_compile) 2>conftest.er1
4797  ac_status=$?
4798  grep -v '^ *+' conftest.er1 >conftest.err
4799  rm -f conftest.er1
4800  cat conftest.err >&5
4801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802  (exit $ac_status); } &&
4803	 { ac_try='test -z "$ac_c_werror_flag"
4804			 || test ! -s conftest.err'
4805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806  (eval $ac_try) 2>&5
4807  ac_status=$?
4808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809  (exit $ac_status); }; } &&
4810	 { ac_try='test -s conftest.$ac_objext'
4811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812  (eval $ac_try) 2>&5
4813  ac_status=$?
4814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815  (exit $ac_status); }; }; then
4816  ac_cv_have_decl_ether_hostton=yes
4817else
4818  echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821ac_cv_have_decl_ether_hostton=no
4822fi
4823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824fi
4825echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
4826echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
4827if test $ac_cv_have_decl_ether_hostton = yes; then
4828
4829
4830cat >>confdefs.h <<\_ACEOF
4831#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
4832_ACEOF
4833
4834
4835fi
4836
4837	fi
4838	#
4839	# Did that succeed?
4840	#
4841	if test "$ac_cv_have_decl_ether_hostton" != yes; then
4842		#
4843		# No, how about <netinet/ether.h>, as on Linux?
4844		#
4845
4846for ac_header in netinet/ether.h
4847do
4848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4849if eval "test \"\${$as_ac_Header+set}\" = set"; then
4850  echo "$as_me:$LINENO: checking for $ac_header" >&5
4851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853  echo $ECHO_N "(cached) $ECHO_C" >&6
4854fi
4855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4857else
4858  # Is the header compilable?
4859echo "$as_me:$LINENO: checking $ac_header usability" >&5
4860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4861cat >conftest.$ac_ext <<_ACEOF
4862/* confdefs.h.  */
4863_ACEOF
4864cat confdefs.h >>conftest.$ac_ext
4865cat >>conftest.$ac_ext <<_ACEOF
4866/* end confdefs.h.  */
4867$ac_includes_default
4868#include <$ac_header>
4869_ACEOF
4870rm -f conftest.$ac_objext
4871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4872  (eval $ac_compile) 2>conftest.er1
4873  ac_status=$?
4874  grep -v '^ *+' conftest.er1 >conftest.err
4875  rm -f conftest.er1
4876  cat conftest.err >&5
4877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878  (exit $ac_status); } &&
4879	 { ac_try='test -z "$ac_c_werror_flag"
4880			 || test ! -s conftest.err'
4881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882  (eval $ac_try) 2>&5
4883  ac_status=$?
4884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885  (exit $ac_status); }; } &&
4886	 { ac_try='test -s conftest.$ac_objext'
4887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888  (eval $ac_try) 2>&5
4889  ac_status=$?
4890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891  (exit $ac_status); }; }; then
4892  ac_header_compiler=yes
4893else
4894  echo "$as_me: failed program was:" >&5
4895sed 's/^/| /' conftest.$ac_ext >&5
4896
4897ac_header_compiler=no
4898fi
4899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4900echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4901echo "${ECHO_T}$ac_header_compiler" >&6
4902
4903# Is the header present?
4904echo "$as_me:$LINENO: checking $ac_header presence" >&5
4905echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4906cat >conftest.$ac_ext <<_ACEOF
4907/* confdefs.h.  */
4908_ACEOF
4909cat confdefs.h >>conftest.$ac_ext
4910cat >>conftest.$ac_ext <<_ACEOF
4911/* end confdefs.h.  */
4912#include <$ac_header>
4913_ACEOF
4914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4915  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4916  ac_status=$?
4917  grep -v '^ *+' conftest.er1 >conftest.err
4918  rm -f conftest.er1
4919  cat conftest.err >&5
4920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921  (exit $ac_status); } >/dev/null; then
4922  if test -s conftest.err; then
4923    ac_cpp_err=$ac_c_preproc_warn_flag
4924    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4925  else
4926    ac_cpp_err=
4927  fi
4928else
4929  ac_cpp_err=yes
4930fi
4931if test -z "$ac_cpp_err"; then
4932  ac_header_preproc=yes
4933else
4934  echo "$as_me: failed program was:" >&5
4935sed 's/^/| /' conftest.$ac_ext >&5
4936
4937  ac_header_preproc=no
4938fi
4939rm -f conftest.err conftest.$ac_ext
4940echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4941echo "${ECHO_T}$ac_header_preproc" >&6
4942
4943# So?  What about this header?
4944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4945  yes:no: )
4946    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4947echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4948    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4949echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4950    ac_header_preproc=yes
4951    ;;
4952  no:yes:* )
4953    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4954echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4955    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4956echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4957    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4958echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4959    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4960echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4961    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4962echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4963    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4964echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4965    (
4966      cat <<\_ASBOX
4967## ------------------------------------------ ##
4968## Report this to the AC_PACKAGE_NAME lists.  ##
4969## ------------------------------------------ ##
4970_ASBOX
4971    ) |
4972      sed "s/^/$as_me: WARNING:     /" >&2
4973    ;;
4974esac
4975echo "$as_me:$LINENO: checking for $ac_header" >&5
4976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4977if eval "test \"\${$as_ac_Header+set}\" = set"; then
4978  echo $ECHO_N "(cached) $ECHO_C" >&6
4979else
4980  eval "$as_ac_Header=\$ac_header_preproc"
4981fi
4982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4984
4985fi
4986if test `eval echo '${'$as_ac_Header'}'` = yes; then
4987  cat >>confdefs.h <<_ACEOF
4988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4989_ACEOF
4990
4991fi
4992
4993done
4994
4995		if test "$ac_cv_header_netinet_ether_h" = yes; then
4996			#
4997			# We have it - does it declare ether_hostton()?
4998			# Unset ac_cv_have_decl_ether_hostton so we don't
4999			# treat the previous failure as a cached value and
5000			# suppress the next test.
5001			#
5002			unset ac_cv_have_decl_ether_hostton
5003			echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5004echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6
5005if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5006  echo $ECHO_N "(cached) $ECHO_C" >&6
5007else
5008  cat >conftest.$ac_ext <<_ACEOF
5009/* confdefs.h.  */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h.  */
5014
5015#include <netinet/ether.h>
5016
5017
5018int
5019main ()
5020{
5021#ifndef ether_hostton
5022  char *p = (char *) ether_hostton;
5023#endif
5024
5025  ;
5026  return 0;
5027}
5028_ACEOF
5029rm -f conftest.$ac_objext
5030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031  (eval $ac_compile) 2>conftest.er1
5032  ac_status=$?
5033  grep -v '^ *+' conftest.er1 >conftest.err
5034  rm -f conftest.er1
5035  cat conftest.err >&5
5036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037  (exit $ac_status); } &&
5038	 { ac_try='test -z "$ac_c_werror_flag"
5039			 || test ! -s conftest.err'
5040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041  (eval $ac_try) 2>&5
5042  ac_status=$?
5043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044  (exit $ac_status); }; } &&
5045	 { ac_try='test -s conftest.$ac_objext'
5046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047  (eval $ac_try) 2>&5
5048  ac_status=$?
5049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050  (exit $ac_status); }; }; then
5051  ac_cv_have_decl_ether_hostton=yes
5052else
5053  echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056ac_cv_have_decl_ether_hostton=no
5057fi
5058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5059fi
5060echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5061echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6
5062if test $ac_cv_have_decl_ether_hostton = yes; then
5063
5064
5065cat >>confdefs.h <<\_ACEOF
5066#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
5067_ACEOF
5068
5069
5070fi
5071
5072		fi
5073	fi
5074	#
5075	# Is ether_hostton() declared?
5076	#
5077	if test "$ac_cv_have_decl_ether_hostton" != yes; then
5078		#
5079		# No, we'll have to declare it ourselves.
5080		# Do we have "struct ether_addr"?
5081		#
5082		echo "$as_me:$LINENO: checking for struct ether_addr" >&5
5083echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
5084if test "${ac_cv_type_struct_ether_addr+set}" = set; then
5085  echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087  cat >conftest.$ac_ext <<_ACEOF
5088/* confdefs.h.  */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h.  */
5093
5094#include <sys/types.h>
5095#include <sys/socket.h>
5096#include <netinet/in.h>
5097#include <arpa/inet.h>
5098struct mbuf;
5099struct rtentry;
5100#include <net/if.h>
5101#include <netinet/if_ether.h>
5102
5103
5104int
5105main ()
5106{
5107if ((struct ether_addr *) 0)
5108  return 0;
5109if (sizeof (struct ether_addr))
5110  return 0;
5111  ;
5112  return 0;
5113}
5114_ACEOF
5115rm -f conftest.$ac_objext
5116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117  (eval $ac_compile) 2>conftest.er1
5118  ac_status=$?
5119  grep -v '^ *+' conftest.er1 >conftest.err
5120  rm -f conftest.er1
5121  cat conftest.err >&5
5122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123  (exit $ac_status); } &&
5124	 { ac_try='test -z "$ac_c_werror_flag"
5125			 || test ! -s conftest.err'
5126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127  (eval $ac_try) 2>&5
5128  ac_status=$?
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); }; } &&
5131	 { ac_try='test -s conftest.$ac_objext'
5132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133  (eval $ac_try) 2>&5
5134  ac_status=$?
5135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136  (exit $ac_status); }; }; then
5137  ac_cv_type_struct_ether_addr=yes
5138else
5139  echo "$as_me: failed program was:" >&5
5140sed 's/^/| /' conftest.$ac_ext >&5
5141
5142ac_cv_type_struct_ether_addr=no
5143fi
5144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5145fi
5146echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
5147echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
5148if test $ac_cv_type_struct_ether_addr = yes; then
5149
5150cat >>confdefs.h <<_ACEOF
5151#define HAVE_STRUCT_ETHER_ADDR 1
5152_ACEOF
5153
5154
5155fi
5156
5157
5158cat >>confdefs.h <<\_ACEOF
5159#define HAVE_DECL_ETHER_HOSTTON 0
5160_ACEOF
5161
5162	else
5163
5164cat >>confdefs.h <<\_ACEOF
5165#define HAVE_DECL_ETHER_HOSTTON 1
5166_ACEOF
5167
5168	fi
5169fi
5170
5171echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
5172echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6
5173# Check whether --enable-protochain or --disable-protochain was given.
5174if test "${enable_protochain+set}" = set; then
5175  enableval="$enable_protochain"
5176
5177fi;
5178case "x$enable_protochain" in
5179xyes)	enable_protochain=enabled	;;
5180xno)	enable_protochain=disabled	;;
5181x)	enable_protochain=enabled	;;
5182esac
5183
5184if test "$enable_protochain" = "disabled"; then
5185
5186cat >>confdefs.h <<\_ACEOF
5187#define NO_PROTOCHAIN 1
5188_ACEOF
5189
5190fi
5191echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
5192echo "${ECHO_T}${enable_protochain}" >&6
5193
5194if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5195	{ { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
5196echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
5197   { (exit 1); exit 1; }; }
5198fi
5199
5200# Check whether --with-pcap or --without-pcap was given.
5201if test "${with_pcap+set}" = set; then
5202  withval="$with_pcap"
5203
5204fi;
5205echo "$as_me:$LINENO: checking packet capture type" >&5
5206echo $ECHO_N "checking packet capture type... $ECHO_C" >&6
5207if test ! -z "$with_pcap" ; then
5208	V_PCAP="$withval"
5209elif test -r /dev/bpf0 ; then
5210	V_PCAP=bpf
5211elif test -r /usr/include/net/pfilt.h ; then
5212	V_PCAP=pf
5213elif test -r /dev/enet ; then
5214	V_PCAP=enet
5215elif test -r /dev/nit ; then
5216	V_PCAP=snit
5217elif test -r /usr/include/sys/net/nit.h ; then
5218	V_PCAP=nit
5219elif test -r /usr/include/linux/socket.h ; then
5220	V_PCAP=linux
5221elif test -r /usr/include/net/raw.h ; then
5222	V_PCAP=snoop
5223elif test -r /usr/include/odmi.h ; then
5224	#
5225	# On AIX, the BPF devices might not yet be present - they're
5226	# created the first time libpcap runs after booting.
5227	# We check for odmi.h instead.
5228	#
5229	V_PCAP=bpf
5230elif test -r /usr/include/sys/dlpi.h ; then
5231	V_PCAP=dlpi
5232elif test -c /dev/bpf0 ; then		# check again in case not readable
5233	V_PCAP=bpf
5234elif test -c /dev/enet ; then		# check again in case not readable
5235	V_PCAP=enet
5236elif test -c /dev/nit ; then		# check again in case not readable
5237	V_PCAP=snit
5238elif test -r /boot/system ; then
5239	V_PCAP=haiku
5240else
5241	V_PCAP=null
5242fi
5243echo "$as_me:$LINENO: result: $V_PCAP" >&5
5244echo "${ECHO_T}$V_PCAP" >&6
5245
5246if test "$V_PCAP" = null
5247then
5248	#
5249	# We can't capture, so we can't open any capture
5250	# devices, so we won't return any interfaces.
5251	#
5252	V_FINDALLDEVS=null
5253else
5254	echo "$as_me:$LINENO: checking for getifaddrs" >&5
5255echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
5256if test "${ac_cv_func_getifaddrs+set}" = set; then
5257  echo $ECHO_N "(cached) $ECHO_C" >&6
5258else
5259  cat >conftest.$ac_ext <<_ACEOF
5260/* confdefs.h.  */
5261_ACEOF
5262cat confdefs.h >>conftest.$ac_ext
5263cat >>conftest.$ac_ext <<_ACEOF
5264/* end confdefs.h.  */
5265/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
5266   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5267#define getifaddrs innocuous_getifaddrs
5268
5269/* System header to define __stub macros and hopefully few prototypes,
5270    which can conflict with char getifaddrs (); below.
5271    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272    <limits.h> exists even on freestanding compilers.  */
5273
5274#ifdef __STDC__
5275# include <limits.h>
5276#else
5277# include <assert.h>
5278#endif
5279
5280#undef getifaddrs
5281
5282/* Override any gcc2 internal prototype to avoid an error.  */
5283#ifdef __cplusplus
5284extern "C"
5285{
5286#endif
5287/* We use char because int might match the return type of a gcc2
5288   builtin and then its argument prototype would still apply.  */
5289char getifaddrs ();
5290/* The GNU C library defines this for functions which it implements
5291    to always fail with ENOSYS.  Some functions are actually named
5292    something starting with __ and the normal name is an alias.  */
5293#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
5294choke me
5295#else
5296char (*f) () = getifaddrs;
5297#endif
5298#ifdef __cplusplus
5299}
5300#endif
5301
5302int
5303main ()
5304{
5305return f != getifaddrs;
5306  ;
5307  return 0;
5308}
5309_ACEOF
5310rm -f conftest.$ac_objext conftest$ac_exeext
5311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5312  (eval $ac_link) 2>conftest.er1
5313  ac_status=$?
5314  grep -v '^ *+' conftest.er1 >conftest.err
5315  rm -f conftest.er1
5316  cat conftest.err >&5
5317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318  (exit $ac_status); } &&
5319	 { ac_try='test -z "$ac_c_werror_flag"
5320			 || test ! -s conftest.err'
5321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322  (eval $ac_try) 2>&5
5323  ac_status=$?
5324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325  (exit $ac_status); }; } &&
5326	 { ac_try='test -s conftest$ac_exeext'
5327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328  (eval $ac_try) 2>&5
5329  ac_status=$?
5330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331  (exit $ac_status); }; }; then
5332  ac_cv_func_getifaddrs=yes
5333else
5334  echo "$as_me: failed program was:" >&5
5335sed 's/^/| /' conftest.$ac_ext >&5
5336
5337ac_cv_func_getifaddrs=no
5338fi
5339rm -f conftest.err conftest.$ac_objext \
5340      conftest$ac_exeext conftest.$ac_ext
5341fi
5342echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
5343echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
5344if test $ac_cv_func_getifaddrs = yes; then
5345
5346		#
5347		# We have "getifaddrs()"; make sure we have <ifaddrs.h>
5348		# as well, just in case some platform is really weird.
5349		#
5350		if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5351  echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5352echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
5353if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5354  echo $ECHO_N "(cached) $ECHO_C" >&6
5355fi
5356echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5357echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
5358else
5359  # Is the header compilable?
5360echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
5361echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6
5362cat >conftest.$ac_ext <<_ACEOF
5363/* confdefs.h.  */
5364_ACEOF
5365cat confdefs.h >>conftest.$ac_ext
5366cat >>conftest.$ac_ext <<_ACEOF
5367/* end confdefs.h.  */
5368$ac_includes_default
5369#include <ifaddrs.h>
5370_ACEOF
5371rm -f conftest.$ac_objext
5372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373  (eval $ac_compile) 2>conftest.er1
5374  ac_status=$?
5375  grep -v '^ *+' conftest.er1 >conftest.err
5376  rm -f conftest.er1
5377  cat conftest.err >&5
5378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379  (exit $ac_status); } &&
5380	 { ac_try='test -z "$ac_c_werror_flag"
5381			 || test ! -s conftest.err'
5382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383  (eval $ac_try) 2>&5
5384  ac_status=$?
5385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386  (exit $ac_status); }; } &&
5387	 { ac_try='test -s conftest.$ac_objext'
5388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389  (eval $ac_try) 2>&5
5390  ac_status=$?
5391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392  (exit $ac_status); }; }; then
5393  ac_header_compiler=yes
5394else
5395  echo "$as_me: failed program was:" >&5
5396sed 's/^/| /' conftest.$ac_ext >&5
5397
5398ac_header_compiler=no
5399fi
5400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5401echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5402echo "${ECHO_T}$ac_header_compiler" >&6
5403
5404# Is the header present?
5405echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
5406echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6
5407cat >conftest.$ac_ext <<_ACEOF
5408/* confdefs.h.  */
5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h.  */
5413#include <ifaddrs.h>
5414_ACEOF
5415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5416  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5417  ac_status=$?
5418  grep -v '^ *+' conftest.er1 >conftest.err
5419  rm -f conftest.er1
5420  cat conftest.err >&5
5421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422  (exit $ac_status); } >/dev/null; then
5423  if test -s conftest.err; then
5424    ac_cpp_err=$ac_c_preproc_warn_flag
5425    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5426  else
5427    ac_cpp_err=
5428  fi
5429else
5430  ac_cpp_err=yes
5431fi
5432if test -z "$ac_cpp_err"; then
5433  ac_header_preproc=yes
5434else
5435  echo "$as_me: failed program was:" >&5
5436sed 's/^/| /' conftest.$ac_ext >&5
5437
5438  ac_header_preproc=no
5439fi
5440rm -f conftest.err conftest.$ac_ext
5441echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5442echo "${ECHO_T}$ac_header_preproc" >&6
5443
5444# So?  What about this header?
5445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5446  yes:no: )
5447    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5448echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5449    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
5450echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
5451    ac_header_preproc=yes
5452    ;;
5453  no:yes:* )
5454    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5455echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5456    { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&5
5457echo "$as_me: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&2;}
5458    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
5459echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
5460    { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&5
5461echo "$as_me: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5462    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5463echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5464    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
5465echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
5466    (
5467      cat <<\_ASBOX
5468## ------------------------------------------ ##
5469## Report this to the AC_PACKAGE_NAME lists.  ##
5470## ------------------------------------------ ##
5471_ASBOX
5472    ) |
5473      sed "s/^/$as_me: WARNING:     /" >&2
5474    ;;
5475esac
5476echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5477echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6
5478if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5479  echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481  ac_cv_header_ifaddrs_h=$ac_header_preproc
5482fi
5483echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5484echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6
5485
5486fi
5487if test $ac_cv_header_ifaddrs_h = yes; then
5488
5489		    #
5490		    # We have the header, so we use "getifaddrs()" to
5491		    # get the list of interfaces.
5492		    #
5493		    V_FINDALLDEVS=getad
5494
5495else
5496
5497		    #
5498		    # We don't have the header - give up.
5499		    # XXX - we could also fall back on some other
5500		    # mechanism, but, for now, this'll catch this
5501		    # problem so that we can at least try to figure
5502		    # out something to do on systems with "getifaddrs()"
5503		    # but without "ifaddrs.h", if there is something
5504		    # we can do on those systems.
5505		    #
5506		    { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
5507echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
5508   { (exit 1); exit 1; }; }
5509
5510fi
5511
5512
5513
5514else
5515
5516		#
5517		# Well, we don't have "getifaddrs()", so we have to use
5518		# some other mechanism; determine what that mechanism is.
5519		#
5520		# The first thing we use is the type of capture mechanism,
5521		# which is somewhat of a proxy for the OS we're using.
5522		#
5523		case "$V_PCAP" in
5524
5525		dlpi)
5526			#
5527			# This might be Solaris 8 or later, with
5528			# SIOCGLIFCONF, or it might be some other OS
5529			# or some older version of Solaris, with
5530			# just SIOCGIFCONF.
5531			#
5532			echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
5533echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6
5534			if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
5535  echo $ECHO_N "(cached) $ECHO_C" >&6
5536else
5537  cat >conftest.$ac_ext <<_ACEOF
5538/* confdefs.h.  */
5539_ACEOF
5540cat confdefs.h >>conftest.$ac_ext
5541cat >>conftest.$ac_ext <<_ACEOF
5542/* end confdefs.h.  */
5543#include <sys/param.h>
5544				#include <sys/file.h>
5545				#include <sys/ioctl.h>
5546				#include <sys/socket.h>
5547				#include <sys/sockio.h>
5548int
5549main ()
5550{
5551ioctl(0, SIOCGLIFCONF, (char *)0);
5552  ;
5553  return 0;
5554}
5555_ACEOF
5556rm -f conftest.$ac_objext
5557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558  (eval $ac_compile) 2>conftest.er1
5559  ac_status=$?
5560  grep -v '^ *+' conftest.er1 >conftest.err
5561  rm -f conftest.er1
5562  cat conftest.err >&5
5563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); } &&
5565	 { ac_try='test -z "$ac_c_werror_flag"
5566			 || test ! -s conftest.err'
5567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568  (eval $ac_try) 2>&5
5569  ac_status=$?
5570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571  (exit $ac_status); }; } &&
5572	 { ac_try='test -s conftest.$ac_objext'
5573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574  (eval $ac_try) 2>&5
5575  ac_status=$?
5576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577  (exit $ac_status); }; }; then
5578  ac_cv_lbl_have_siocglifconf=yes
5579else
5580  echo "$as_me: failed program was:" >&5
5581sed 's/^/| /' conftest.$ac_ext >&5
5582
5583ac_cv_lbl_have_siocglifconf=no
5584fi
5585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5586fi
5587
5588			echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
5589echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6
5590			if test $ac_cv_lbl_have_siocglifconf = yes ; then
5591				V_FINDALLDEVS=glifc
5592			else
5593				V_FINDALLDEVS=gifc
5594			fi
5595			;;
5596
5597		*)
5598			#
5599			# Assume we just have SIOCGIFCONF.
5600			# (XXX - on at least later Linux kernels, there's
5601			# another mechanism, and we should be using that
5602			# instead.)
5603			#
5604			V_FINDALLDEVS=gifc
5605			;;
5606		esac
5607fi
5608
5609fi
5610
5611echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5
5612echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6
5613# Check whether --enable-ipv6 or --disable-ipv6 was given.
5614if test "${enable_ipv6+set}" = set; then
5615  enableval="$enable_ipv6"
5616
5617fi;
5618if test "$enable_ipv6" = "yes"; then
5619
5620cat >>confdefs.h <<\_ACEOF
5621#define INET6 1
5622_ACEOF
5623
5624fi
5625echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5
5626echo "${ECHO_T}${enable_ipv6-no}" >&6
5627
5628echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
5629echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6
5630# Check whether --enable-optimizer-dbg or --disable-optimizer-dbg was given.
5631if test "${enable_optimizer_dbg+set}" = set; then
5632  enableval="$enable_optimizer_dbg"
5633
5634fi;
5635if test "$enable_optimizer_dbg" = "yes"; then
5636
5637cat >>confdefs.h <<\_ACEOF
5638#define BDEBUG 1
5639_ACEOF
5640
5641fi
5642echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
5643echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6
5644
5645echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
5646echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6
5647# Check whether --enable-yydebug or --disable-yydebug was given.
5648if test "${enable_yydebug+set}" = set; then
5649  enableval="$enable_yydebug"
5650
5651fi;
5652if test "$enable_yydebug" = "yes"; then
5653
5654cat >>confdefs.h <<\_ACEOF
5655#define YYDEBUG 1
5656_ACEOF
5657
5658fi
5659echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
5660echo "${ECHO_T}${enable_yydebug-no}" >&6
5661
5662case "$V_PCAP" in
5663
5664dlpi)
5665
5666
5667for ac_header in sys/bufmod.h sys/dlpi_ext.h
5668do
5669as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5670if eval "test \"\${$as_ac_Header+set}\" = set"; then
5671  echo "$as_me:$LINENO: checking for $ac_header" >&5
5672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5673if eval "test \"\${$as_ac_Header+set}\" = set"; then
5674  echo $ECHO_N "(cached) $ECHO_C" >&6
5675fi
5676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5678else
5679  # Is the header compilable?
5680echo "$as_me:$LINENO: checking $ac_header usability" >&5
5681echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5682cat >conftest.$ac_ext <<_ACEOF
5683/* confdefs.h.  */
5684_ACEOF
5685cat confdefs.h >>conftest.$ac_ext
5686cat >>conftest.$ac_ext <<_ACEOF
5687/* end confdefs.h.  */
5688$ac_includes_default
5689#include <$ac_header>
5690_ACEOF
5691rm -f conftest.$ac_objext
5692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693  (eval $ac_compile) 2>conftest.er1
5694  ac_status=$?
5695  grep -v '^ *+' conftest.er1 >conftest.err
5696  rm -f conftest.er1
5697  cat conftest.err >&5
5698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699  (exit $ac_status); } &&
5700	 { ac_try='test -z "$ac_c_werror_flag"
5701			 || test ! -s conftest.err'
5702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703  (eval $ac_try) 2>&5
5704  ac_status=$?
5705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706  (exit $ac_status); }; } &&
5707	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5713  ac_header_compiler=yes
5714else
5715  echo "$as_me: failed program was:" >&5
5716sed 's/^/| /' conftest.$ac_ext >&5
5717
5718ac_header_compiler=no
5719fi
5720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5721echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5722echo "${ECHO_T}$ac_header_compiler" >&6
5723
5724# Is the header present?
5725echo "$as_me:$LINENO: checking $ac_header presence" >&5
5726echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5727cat >conftest.$ac_ext <<_ACEOF
5728/* confdefs.h.  */
5729_ACEOF
5730cat confdefs.h >>conftest.$ac_ext
5731cat >>conftest.$ac_ext <<_ACEOF
5732/* end confdefs.h.  */
5733#include <$ac_header>
5734_ACEOF
5735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5736  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5737  ac_status=$?
5738  grep -v '^ *+' conftest.er1 >conftest.err
5739  rm -f conftest.er1
5740  cat conftest.err >&5
5741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742  (exit $ac_status); } >/dev/null; then
5743  if test -s conftest.err; then
5744    ac_cpp_err=$ac_c_preproc_warn_flag
5745    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5746  else
5747    ac_cpp_err=
5748  fi
5749else
5750  ac_cpp_err=yes
5751fi
5752if test -z "$ac_cpp_err"; then
5753  ac_header_preproc=yes
5754else
5755  echo "$as_me: failed program was:" >&5
5756sed 's/^/| /' conftest.$ac_ext >&5
5757
5758  ac_header_preproc=no
5759fi
5760rm -f conftest.err conftest.$ac_ext
5761echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5762echo "${ECHO_T}$ac_header_preproc" >&6
5763
5764# So?  What about this header?
5765case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5766  yes:no: )
5767    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5768echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5769    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5770echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5771    ac_header_preproc=yes
5772    ;;
5773  no:yes:* )
5774    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5775echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5776    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5777echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5778    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5779echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5780    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5781echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5782    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5783echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5784    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5785echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5786    (
5787      cat <<\_ASBOX
5788## ------------------------------------------ ##
5789## Report this to the AC_PACKAGE_NAME lists.  ##
5790## ------------------------------------------ ##
5791_ASBOX
5792    ) |
5793      sed "s/^/$as_me: WARNING:     /" >&2
5794    ;;
5795esac
5796echo "$as_me:$LINENO: checking for $ac_header" >&5
5797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5798if eval "test \"\${$as_ac_Header+set}\" = set"; then
5799  echo $ECHO_N "(cached) $ECHO_C" >&6
5800else
5801  eval "$as_ac_Header=\$ac_header_preproc"
5802fi
5803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5805
5806fi
5807if test `eval echo '${'$as_ac_Header'}'` = yes; then
5808  cat >>confdefs.h <<_ACEOF
5809#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5810_ACEOF
5811
5812fi
5813
5814done
5815
5816	echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
5817echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
5818	if test -c /dev/dlpi ; then
5819		echo "$as_me:$LINENO: result: yes" >&5
5820echo "${ECHO_T}yes" >&6
5821
5822cat >>confdefs.h <<\_ACEOF
5823#define HAVE_DEV_DLPI 1
5824_ACEOF
5825
5826	else
5827		echo "$as_me:$LINENO: result: no" >&5
5828echo "${ECHO_T}no" >&6
5829		dir="/dev/dlpi"
5830		echo "$as_me:$LINENO: checking for $dir directory" >&5
5831echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
5832		if test -d $dir ; then
5833			echo "$as_me:$LINENO: result: yes" >&5
5834echo "${ECHO_T}yes" >&6
5835
5836cat >>confdefs.h <<_ACEOF
5837#define PCAP_DEV_PREFIX "$dir"
5838_ACEOF
5839
5840		else
5841			echo "$as_me:$LINENO: result: no" >&5
5842echo "${ECHO_T}no" >&6
5843		fi
5844	fi
5845	;;
5846
5847linux)
5848	echo "$as_me:$LINENO: checking Linux kernel version" >&5
5849echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
5850 	if test "$cross_compiling" = yes; then
5851 		if test "${ac_cv_linux_vers+set}" = set; then
5852  echo $ECHO_N "(cached) $ECHO_C" >&6
5853else
5854  ac_cv_linux_vers=unknown
5855fi
5856
5857 	else
5858 		if test "${ac_cv_linux_vers+set}" = set; then
5859  echo $ECHO_N "(cached) $ECHO_C" >&6
5860else
5861  ac_cv_linux_vers=`uname -r 2>&1 | \
5862 			sed -n -e '$s/.* //' -e '$s/\..*//p'`
5863fi
5864
5865 	fi
5866	echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
5867echo "${ECHO_T}$ac_cv_linux_vers" >&6
5868 	if test $ac_cv_linux_vers = unknown ; then
5869 		{ { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
5870echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
5871   { (exit 1); exit 1; }; }
5872 	fi
5873	if test $ac_cv_linux_vers -lt 2 ; then
5874		{ { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
5875echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
5876   { (exit 1); exit 1; }; }
5877	fi
5878	echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
5879echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6
5880   if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
5881  echo $ECHO_N "(cached) $ECHO_C" >&6
5882else
5883  cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h.  */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h.  */
5889
5890#  include <linux/if_packet.h>
5891int
5892main ()
5893{
5894struct tpacket_stats stats
5895  ;
5896  return 0;
5897}
5898_ACEOF
5899rm -f conftest.$ac_objext
5900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901  (eval $ac_compile) 2>conftest.er1
5902  ac_status=$?
5903  grep -v '^ *+' conftest.er1 >conftest.err
5904  rm -f conftest.er1
5905  cat conftest.err >&5
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); } &&
5908	 { ac_try='test -z "$ac_c_werror_flag"
5909			 || test ! -s conftest.err'
5910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911  (eval $ac_try) 2>&5
5912  ac_status=$?
5913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914  (exit $ac_status); }; } &&
5915	 { ac_try='test -s conftest.$ac_objext'
5916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917  (eval $ac_try) 2>&5
5918  ac_status=$?
5919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920  (exit $ac_status); }; }; then
5921  ac_cv_lbl_tpacket_stats=yes
5922else
5923  echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
5925
5926ac_cv_lbl_tpacket_stats=no
5927fi
5928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5929fi
5930
5931   echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
5932echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6
5933   if test $ac_cv_lbl_tpacket_stats = yes; then
5934
5935cat >>confdefs.h <<\_ACEOF
5936#define HAVE_TPACKET_STATS 1
5937_ACEOF
5938
5939   fi
5940	;;
5941
5942dag)
5943	V_DEFS="$V_DEFS -DDAG_ONLY"
5944	;;
5945
5946septel)
5947	V_DEFS="$V_DEFS -DSEPTEL_ONLY"
5948	;;
5949
5950null)
5951	{ echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
5952echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5953	{ echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
5954echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5955	;;
5956
5957esac
5958
5959echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
5960echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6
5961if test -r /proc/net/dev ; then
5962	ac_cv_lbl_proc_net_dev=yes
5963else
5964	ac_cv_lbl_proc_net_dev=no
5965fi
5966if test $ac_cv_lbl_proc_net_dev = yes; then
5967
5968cat >>confdefs.h <<\_ACEOF
5969#define HAVE_PROC_NET_DEV 1
5970_ACEOF
5971
5972fi
5973echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
5974echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6
5975
5976# Check for Endace DAG card support.
5977
5978# Check whether --with-dag or --without-dag was given.
5979if test "${with_dag+set}" = set; then
5980  withval="$with_dag"
5981
5982	if test "$withval" = no
5983	then
5984		# User doesn't want DAG support.
5985		want_dag=no
5986	elif test "$withval" = yes
5987	then
5988		# User wants DAG support but hasn't specified a directory.
5989		want_dag=yes
5990	else
5991		# User wants DAG support and has specified a directory, so use the provided value.
5992		want_dag=yes
5993		dag_root=$withval
5994	fi
5995
5996else
5997
5998	#
5999	# Use DAG API if present, otherwise don't
6000	#
6001	want_dag=ifpresent
6002
6003fi;
6004
6005
6006# Check whether --with-dag-includes or --without-dag-includes was given.
6007if test "${with_dag_includes+set}" = set; then
6008  withval="$with_dag_includes"
6009
6010	# User wants DAG support and has specified a header directory, so use the provided value.
6011	want_dag=yes
6012	dag_include_dir=$withval
6013
6014fi;
6015
6016
6017# Check whether --with-dag-libraries or --without-dag-libraries was given.
6018if test "${with_dag_libraries+set}" = set; then
6019  withval="$with_dag_libraries"
6020
6021	# User wants DAG support and has specified a library directory, so use the provided value.
6022	want_dag=yes
6023	dag_lib_dir=$withval
6024
6025fi;
6026
6027case "$V_PCAP" in
6028linux|bpf|dag)
6029	#
6030	# We support the DAG API if we're on Linux or BSD, or if we're
6031	# building a DAG-only libpcap.
6032	#
6033	;;
6034*)
6035	#
6036	# If the user explicitly requested DAG, tell them it's not
6037	# supported.
6038	#
6039	# If they expressed no preference, don't include it.
6040	#
6041	if test $want_dag = yes; then
6042		{ { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
6043echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
6044   { (exit 1); exit 1; }; }
6045	elif test $want_dag = yes; then
6046		want_dag=no
6047	fi
6048	;;
6049esac
6050
6051ac_cv_lbl_dag_api=no
6052if test "$want_dag" != no; then
6053
6054	echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
6055echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6
6056
6057	# If necessary, set default paths for DAG API headers and libraries.
6058	if test -z "$dag_root"; then
6059	    dag_root=/usr/local
6060	fi
6061
6062	if test -z "$dag_include_dir"; then
6063		dag_include_dir="$dag_root/include"
6064	fi
6065
6066	if test -z "$dag_lib_dir"; then
6067	    dag_lib_dir="$dag_root/lib"
6068	fi
6069
6070	if test -z "$dag_tools_dir"; then
6071	    dag_tools_dir="$dag_root/tools"
6072		fi
6073
6074	if test -r $dag_include_dir/dagapi.h; then
6075		ac_cv_lbl_dag_api=yes
6076	fi
6077	echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
6078echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6
6079fi
6080
6081if test $ac_cv_lbl_dag_api = yes; then
6082
6083	echo "$as_me:$LINENO: checking dagapi.o" >&5
6084echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6
6085	dagapi_obj=no
6086	if test -r $dag_tools_dir/dagapi.o; then
6087		# 2.4.x.
6088		dagapi_obj=$dag_tools_dir/dagapi.o
6089	elif test -r $dag_lib_dir/dagapi.o; then
6090		# 2.5.x.
6091		dagapi_obj=$dag_lib_dir/dagapi.o
6092	elif test -r $dag_lib_dir/libdag.a; then
6093		# 2.5.x.
6094		ar x $dag_lib_dir/libdag.a dagapi.o
6095		if test -r ./dagapi.o; then
6096		    dagapi_obj=./dagapi.o
6097		fi
6098	fi
6099
6100	if test $dagapi_obj = no; then
6101		echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&5
6102echo "${ECHO_T}no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&6
6103			ac_cv_lbl_dag_api=no
6104	else
6105		echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
6106echo "${ECHO_T}yes ($dagapi_obj)" >&6
6107	fi
6108fi
6109
6110if test $ac_cv_lbl_dag_api = yes; then
6111
6112	echo "$as_me:$LINENO: checking dagopts.o" >&5
6113echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6
6114	dagopts_obj=no
6115	if test -r $dag_tools_dir/dagopts.o; then
6116		# 2.4.x.
6117		dagopts_obj=$dag_tools_dir/dagopts.o
6118	elif test -r $dag_lib_dir/dagopts.o; then
6119		# 2.5.x.
6120		dagopts_obj=$dag_lib_dir/dagopts.o
6121	elif test -r $dag_lib_dir/libdag.a; then
6122		# 2.5.x.
6123		ar x $dag_lib_dir/libdag.a dagopts.o
6124		if test -r ./dagopts.o; then
6125		    dagopts_obj=./dagopts.o
6126		fi
6127	fi
6128
6129	if test $dagopts_obj = no; then
6130		echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&5
6131echo "${ECHO_T}no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&6
6132		ac_cv_lbl_dag_api=no
6133	else
6134		echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
6135echo "${ECHO_T}yes ($dagopts_obj)" >&6
6136	fi
6137fi
6138
6139if test $ac_cv_lbl_dag_api = yes; then
6140	# Under 2.5.x only we need to add dagreg.o.
6141	if test -r $dag_include_dir/dagreg.h; then
6142		echo "$as_me:$LINENO: checking dagreg.o" >&5
6143echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6
6144		dagreg_obj=no
6145		if test -r $dag_lib_dir/dagreg.o; then
6146			# Object file is ready and waiting.
6147			dagreg_obj=$dag_lib_dir/dagreg.o
6148		elif test -r $dag_lib_dir/libdag.a; then
6149			# Extract from libdag.a.
6150			ar x $dag_lib_dir/libdag.a dagreg.o
6151			if test -r ./dagreg.o; then
6152				dagreg_obj=./dagreg.o
6153			fi
6154		fi
6155
6156		if test $dagreg_obj = no; then
6157			echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_lib_dir/libdag.a)" >&5
6158echo "${ECHO_T}no (checked $dag_lib_dir  $dag_lib_dir/libdag.a)" >&6
6159			ac_cv_lbl_dag_api=no
6160		else
6161			echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
6162echo "${ECHO_T}yes ($dagreg_obj)" >&6
6163		fi
6164	fi
6165fi
6166
6167if test $ac_cv_lbl_dag_api = yes; then
6168	V_INCLS="$V_INCLS -I$dag_include_dir"
6169	V_LIBS="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
6170	if test $V_PCAP != dag ; then
6171		 SSRC="pcap-dag.c"
6172	fi
6173
6174	# See if we can find a general version string.
6175	# Don't need to save and restore LIBS to prevent -ldag being
6176	# included if there's a found-action (arg 3).
6177	saved_ldflags=$LDFLAGS
6178	LDFLAGS="-L$dag_lib_dir"
6179	echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
6180echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6
6181if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
6182  echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184  ac_check_lib_save_LIBS=$LIBS
6185LIBS="-ldag  $LIBS"
6186cat >conftest.$ac_ext <<_ACEOF
6187/* confdefs.h.  */
6188_ACEOF
6189cat confdefs.h >>conftest.$ac_ext
6190cat >>conftest.$ac_ext <<_ACEOF
6191/* end confdefs.h.  */
6192
6193/* Override any gcc2 internal prototype to avoid an error.  */
6194#ifdef __cplusplus
6195extern "C"
6196#endif
6197/* We use char because int might match the return type of a gcc2
6198   builtin and then its argument prototype would still apply.  */
6199char dag_attach_stream ();
6200int
6201main ()
6202{
6203dag_attach_stream ();
6204  ;
6205  return 0;
6206}
6207_ACEOF
6208rm -f conftest.$ac_objext conftest$ac_exeext
6209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6210  (eval $ac_link) 2>conftest.er1
6211  ac_status=$?
6212  grep -v '^ *+' conftest.er1 >conftest.err
6213  rm -f conftest.er1
6214  cat conftest.err >&5
6215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216  (exit $ac_status); } &&
6217	 { ac_try='test -z "$ac_c_werror_flag"
6218			 || test ! -s conftest.err'
6219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220  (eval $ac_try) 2>&5
6221  ac_status=$?
6222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223  (exit $ac_status); }; } &&
6224	 { ac_try='test -s conftest$ac_exeext'
6225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226  (eval $ac_try) 2>&5
6227  ac_status=$?
6228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229  (exit $ac_status); }; }; then
6230  ac_cv_lib_dag_dag_attach_stream=yes
6231else
6232  echo "$as_me: failed program was:" >&5
6233sed 's/^/| /' conftest.$ac_ext >&5
6234
6235ac_cv_lib_dag_dag_attach_stream=no
6236fi
6237rm -f conftest.err conftest.$ac_objext \
6238      conftest$ac_exeext conftest.$ac_ext
6239LIBS=$ac_check_lib_save_LIBS
6240fi
6241echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6242echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6
6243if test $ac_cv_lib_dag_dag_attach_stream = yes; then
6244  dag_version="2.5.x"
6245else
6246  dag_version="2.4.x"
6247fi
6248
6249	echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
6250echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6
6251if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
6252  echo $ECHO_N "(cached) $ECHO_C" >&6
6253else
6254  ac_check_lib_save_LIBS=$LIBS
6255LIBS="-ldag  $LIBS"
6256cat >conftest.$ac_ext <<_ACEOF
6257/* confdefs.h.  */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h.  */
6262
6263/* Override any gcc2 internal prototype to avoid an error.  */
6264#ifdef __cplusplus
6265extern "C"
6266#endif
6267/* We use char because int might match the return type of a gcc2
6268   builtin and then its argument prototype would still apply.  */
6269char dag_get_erf_types ();
6270int
6271main ()
6272{
6273dag_get_erf_types ();
6274  ;
6275  return 0;
6276}
6277_ACEOF
6278rm -f conftest.$ac_objext conftest$ac_exeext
6279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280  (eval $ac_link) 2>conftest.er1
6281  ac_status=$?
6282  grep -v '^ *+' conftest.er1 >conftest.err
6283  rm -f conftest.er1
6284  cat conftest.err >&5
6285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286  (exit $ac_status); } &&
6287	 { ac_try='test -z "$ac_c_werror_flag"
6288			 || test ! -s conftest.err'
6289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290  (eval $ac_try) 2>&5
6291  ac_status=$?
6292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293  (exit $ac_status); }; } &&
6294	 { ac_try='test -s conftest$ac_exeext'
6295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296  (eval $ac_try) 2>&5
6297  ac_status=$?
6298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299  (exit $ac_status); }; }; then
6300  ac_cv_lib_dag_dag_get_erf_types=yes
6301else
6302  echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305ac_cv_lib_dag_dag_get_erf_types=no
6306fi
6307rm -f conftest.err conftest.$ac_objext \
6308      conftest$ac_exeext conftest.$ac_ext
6309LIBS=$ac_check_lib_save_LIBS
6310fi
6311echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6312echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6
6313if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
6314
6315
6316cat >>confdefs.h <<\_ACEOF
6317#define HAVE_DAG_GET_ERF_TYPES 1
6318_ACEOF
6319
6320
6321fi
6322
6323	LDFLAGS=$saved_ldflags
6324
6325	if test "$dag_version" = 2.5.x; then
6326
6327cat >>confdefs.h <<\_ACEOF
6328#define HAVE_DAG_STREAMS_API 1
6329_ACEOF
6330
6331	fi
6332
6333	# See if we can find a specific version string.
6334	echo "$as_me:$LINENO: checking the DAG API version" >&5
6335echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6
6336	if test -r "$dag_root/VERSION"; then
6337		dag_version="`cat $dag_root/VERSION`"
6338	fi
6339	echo "$as_me:$LINENO: result: $dag_version" >&5
6340echo "${ECHO_T}$dag_version" >&6
6341
6342cat >>confdefs.h <<\_ACEOF
6343#define HAVE_DAG_API 1
6344_ACEOF
6345
6346fi
6347
6348if test $ac_cv_lbl_dag_api = no; then
6349	if test "$want_dag" = yes; then
6350        	# User wanted DAG support but we couldn't find it.
6351		{ { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
6352echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
6353   { (exit 1); exit 1; }; }
6354	fi
6355
6356	if test "$V_PCAP" = dag; then
6357		# User requested "dag" capture type but the DAG API wasn't
6358		# found.
6359		{ { echo "$as_me:$LINENO: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&5
6360echo "$as_me: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&2;}
6361   { (exit 1); exit 1; }; }
6362	fi
6363fi
6364
6365
6366# Check whether --with-septel or --without-septel was given.
6367if test "${with_septel+set}" = set; then
6368  withval="$with_septel"
6369
6370	if test "$withval" = no
6371	then
6372		want_septel=no
6373	elif test "$withval" = yes
6374	then
6375		want_septel=yes
6376		septel_root=
6377	else
6378		want_septel=yes
6379		septel_root=$withval
6380	fi
6381
6382else
6383
6384	#
6385	# Use Septel API if present, otherwise don't
6386	#
6387	want_septel=ifpresent
6388	septel_root=./../septel
6389
6390fi;
6391ac_cv_lbl_septel_api=no
6392case "$V_PCAP" in
6393linux|septel)
6394	#
6395	# We support the Septel API if we're on Linux, or if we're building
6396	# a Septel-only libpcap.
6397	#
6398	;;
6399*)
6400	#
6401	# If the user explicitly requested Septel, tell them it's not
6402	# supported.
6403	#
6404	# If they expressed no preference, don't include it.
6405	#
6406	if test $want_septel = yes; then
6407		{ { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
6408echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
6409   { (exit 1); exit 1; }; }
6410	elif test $want_septel = yes; then
6411		want_septel=no
6412	fi
6413	;;
6414esac
6415
6416if test "$with_septel" != no; then
6417	echo "$as_me:$LINENO: checking whether we have Septel API" >&5
6418echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6
6419
6420	if test -z "$septel_root"; then
6421		septel_root=$srcdir/../septel
6422
6423	fi
6424
6425	septel_tools_dir="$septel_root"
6426	septel_include_dir="$septel_root/INC"
6427	DEF="-DHAVE_SEPTEL_API"
6428
6429	ac_cv_lbl_septel_api=no
6430	if test -r "$septel_include_dir/msg.h"; then
6431		V_INCLS="$V_INCLS -I$septel_include_dir"
6432		V_DEFS="$V_DEFS $DEF"
6433		V_LIBS="$V_LIBS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o "
6434
6435		if test "$V_PCAP" != septel ; then
6436			 SSRC="pcap-septel.c"
6437
6438		fi
6439		ac_cv_lbl_septel_api=yes
6440	fi
6441
6442	echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
6443echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6
6444	if test $ac_cv_lbl_septel_api = no; then
6445		if test "$want_septel" = yes; then
6446			{ { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
6447echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
6448   { (exit 1); exit 1; }; }
6449		fi
6450	else
6451
6452cat >>confdefs.h <<\_ACEOF
6453#define HAVE_SEPTEL_API 1
6454_ACEOF
6455
6456	fi
6457fi
6458
6459if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
6460	{ { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
6461echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
6462   { (exit 1); exit 1; }; }
6463fi
6464
6465
6466
6467# Check whether --with-flex or --without-flex was given.
6468if test "${with_flex+set}" = set; then
6469  withval="$with_flex"
6470
6471fi;
6472
6473# Check whether --with-bison or --without-bison was given.
6474if test "${with_bison+set}" = set; then
6475  withval="$with_bison"
6476
6477fi;
6478    if test "$with_flex" = no ; then
6479	    V_LEX=lex
6480    else
6481	    for ac_prog in flex
6482do
6483  # Extract the first word of "$ac_prog", so it can be a program name with args.
6484set dummy $ac_prog; ac_word=$2
6485echo "$as_me:$LINENO: checking for $ac_word" >&5
6486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6487if test "${ac_cv_prog_V_LEX+set}" = set; then
6488  echo $ECHO_N "(cached) $ECHO_C" >&6
6489else
6490  if test -n "$V_LEX"; then
6491  ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496  IFS=$as_save_IFS
6497  test -z "$as_dir" && as_dir=.
6498  for ac_exec_ext in '' $ac_executable_extensions; do
6499  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500    ac_cv_prog_V_LEX="$ac_prog"
6501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502    break 2
6503  fi
6504done
6505done
6506
6507fi
6508fi
6509V_LEX=$ac_cv_prog_V_LEX
6510if test -n "$V_LEX"; then
6511  echo "$as_me:$LINENO: result: $V_LEX" >&5
6512echo "${ECHO_T}$V_LEX" >&6
6513else
6514  echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
6516fi
6517
6518  test -n "$V_LEX" && break
6519done
6520test -n "$V_LEX" || V_LEX="lex"
6521
6522    fi
6523    if test "$V_LEX" = flex ; then
6524	    # The -V flag was added in 2.4
6525	    echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
6526echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6
6527	    if test "${ac_cv_lbl_flex_v24+set}" = set; then
6528  echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
6530  if flex -V >/dev/null 2>&1; then
6531			ac_cv_lbl_flex_v24=yes
6532		else
6533			ac_cv_lbl_flex_v24=no
6534		fi
6535fi
6536
6537	    echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
6538echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6
6539	    if test $ac_cv_lbl_flex_v24 = no ; then
6540		    s="2.4 or higher required"
6541		    { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
6542echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
6543		    V_LEX=lex
6544	    fi
6545    fi
6546    if test "$with_bison" = no ; then
6547	    V_YACC=yacc
6548    else
6549	    for ac_prog in bison
6550do
6551  # Extract the first word of "$ac_prog", so it can be a program name with args.
6552set dummy $ac_prog; ac_word=$2
6553echo "$as_me:$LINENO: checking for $ac_word" >&5
6554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6555if test "${ac_cv_prog_V_YACC+set}" = set; then
6556  echo $ECHO_N "(cached) $ECHO_C" >&6
6557else
6558  if test -n "$V_YACC"; then
6559  ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
6560else
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564  IFS=$as_save_IFS
6565  test -z "$as_dir" && as_dir=.
6566  for ac_exec_ext in '' $ac_executable_extensions; do
6567  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568    ac_cv_prog_V_YACC="$ac_prog"
6569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570    break 2
6571  fi
6572done
6573done
6574
6575fi
6576fi
6577V_YACC=$ac_cv_prog_V_YACC
6578if test -n "$V_YACC"; then
6579  echo "$as_me:$LINENO: result: $V_YACC" >&5
6580echo "${ECHO_T}$V_YACC" >&6
6581else
6582  echo "$as_me:$LINENO: result: no" >&5
6583echo "${ECHO_T}no" >&6
6584fi
6585
6586  test -n "$V_YACC" && break
6587done
6588test -n "$V_YACC" || V_YACC="yacc"
6589
6590    fi
6591    if test "$V_YACC" = bison ; then
6592	    V_YACC="$V_YACC -y"
6593    fi
6594    if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
6595	    { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
6596echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
6597	    V_LEX=lex
6598	    V_YACC=yacc
6599    fi
6600    if test "$V_LEX" = flex -a -n "pcap_" ; then
6601	    V_LEX="$V_LEX -Ppcap_"
6602	    V_YACC="$V_YACC -p pcap_"
6603    fi
6604if test "$V_LEX" = lex ; then
6605# Some versions of lex can't handle the definitions section of scanner.l .
6606# Try lexing it and complain if it can't deal.
6607	echo "$as_me:$LINENO: checking for capable lex" >&5
6608echo $ECHO_N "checking for capable lex... $ECHO_C" >&6
6609if test "${tcpdump_cv_capable_lex+set}" = set; then
6610  echo $ECHO_N "(cached) $ECHO_C" >&6
6611else
6612  if lex -t scanner.l > /dev/null 2>&1; then
6613			tcpdump_cv_capable_lex=yes
6614		else
6615			tcpdump_cv_capable_lex=insufficient
6616		fi
6617fi
6618echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
6619echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6
6620	if test $tcpdump_cv_capable_lex = insufficient ; then
6621		{ { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
6622 libpcap.  flex is a lex replacement that has many advantages, including
6623 being able to compile libpcap.  For more information, see
6624 http://www.gnu.org/software/flex/flex.html ." >&5
6625echo "$as_me: error: Your operating system's lex is insufficient to compile
6626 libpcap.  flex is a lex replacement that has many advantages, including
6627 being able to compile libpcap.  For more information, see
6628 http://www.gnu.org/software/flex/flex.html ." >&2;}
6629   { (exit 1); exit 1; }; }
6630	fi
6631fi
6632
6633DYEXT="so"
6634case "$host_os" in
6635
6636aix*)
6637
6638cat >>confdefs.h <<\_ACEOF
6639#define _SUN 1
6640_ACEOF
6641
6642	;;
6643
6644hpux9*)
6645
6646cat >>confdefs.h <<\_ACEOF
6647#define HAVE_HPUX9 1
6648_ACEOF
6649
6650	;;
6651
6652hpux10.0*)
6653	;;
6654
6655hpux10.1*)
6656	;;
6657
6658hpux*)
6659
6660cat >>confdefs.h <<\_ACEOF
6661#define HAVE_HPUX10_20_OR_LATER 1
6662_ACEOF
6663
6664	;;
6665
6666sinix*)
6667	echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
6668echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6
6669	if test "${ac_cv_cc_sinix_defined+set}" = set; then
6670  echo $ECHO_N "(cached) $ECHO_C" >&6
6671else
6672  cat >conftest.$ac_ext <<_ACEOF
6673/* confdefs.h.  */
6674_ACEOF
6675cat confdefs.h >>conftest.$ac_ext
6676cat >>conftest.$ac_ext <<_ACEOF
6677/* end confdefs.h.  */
6678
6679int
6680main ()
6681{
6682int i = sinix;
6683  ;
6684  return 0;
6685}
6686_ACEOF
6687rm -f conftest.$ac_objext
6688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689  (eval $ac_compile) 2>conftest.er1
6690  ac_status=$?
6691  grep -v '^ *+' conftest.er1 >conftest.err
6692  rm -f conftest.er1
6693  cat conftest.err >&5
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); } &&
6696	 { ac_try='test -z "$ac_c_werror_flag"
6697			 || test ! -s conftest.err'
6698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699  (eval $ac_try) 2>&5
6700  ac_status=$?
6701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702  (exit $ac_status); }; } &&
6703	 { ac_try='test -s conftest.$ac_objext'
6704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705  (eval $ac_try) 2>&5
6706  ac_status=$?
6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708  (exit $ac_status); }; }; then
6709  ac_cv_cc_sinix_defined=yes
6710else
6711  echo "$as_me: failed program was:" >&5
6712sed 's/^/| /' conftest.$ac_ext >&5
6713
6714ac_cv_cc_sinix_defined=no
6715fi
6716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6717fi
6718
6719	    echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
6720echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6
6721	    if test $ac_cv_cc_sinix_defined = no ; then
6722
6723cat >>confdefs.h <<\_ACEOF
6724#define sinix 1
6725_ACEOF
6726
6727	    fi
6728	;;
6729
6730solaris*)
6731
6732cat >>confdefs.h <<\_ACEOF
6733#define HAVE_SOLARIS 1
6734_ACEOF
6735
6736	;;
6737
6738darwin*)
6739	DYEXT="dylib"
6740	V_CCOPT="$V_CCOPT -fno-common"
6741	;;
6742esac
6743
6744if test -n "$ac_tool_prefix"; then
6745  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6746set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6747echo "$as_me:$LINENO: checking for $ac_word" >&5
6748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6749if test "${ac_cv_prog_RANLIB+set}" = set; then
6750  echo $ECHO_N "(cached) $ECHO_C" >&6
6751else
6752  if test -n "$RANLIB"; then
6753  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6754else
6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758  IFS=$as_save_IFS
6759  test -z "$as_dir" && as_dir=.
6760  for ac_exec_ext in '' $ac_executable_extensions; do
6761  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6763    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764    break 2
6765  fi
6766done
6767done
6768
6769fi
6770fi
6771RANLIB=$ac_cv_prog_RANLIB
6772if test -n "$RANLIB"; then
6773  echo "$as_me:$LINENO: result: $RANLIB" >&5
6774echo "${ECHO_T}$RANLIB" >&6
6775else
6776  echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6
6778fi
6779
6780fi
6781if test -z "$ac_cv_prog_RANLIB"; then
6782  ac_ct_RANLIB=$RANLIB
6783  # Extract the first word of "ranlib", so it can be a program name with args.
6784set dummy ranlib; ac_word=$2
6785echo "$as_me:$LINENO: checking for $ac_word" >&5
6786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6787if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6788  echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790  if test -n "$ac_ct_RANLIB"; then
6791  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6792else
6793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794for as_dir in $PATH
6795do
6796  IFS=$as_save_IFS
6797  test -z "$as_dir" && as_dir=.
6798  for ac_exec_ext in '' $ac_executable_extensions; do
6799  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6800    ac_cv_prog_ac_ct_RANLIB="ranlib"
6801    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802    break 2
6803  fi
6804done
6805done
6806
6807  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6808fi
6809fi
6810ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6811if test -n "$ac_ct_RANLIB"; then
6812  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6813echo "${ECHO_T}$ac_ct_RANLIB" >&6
6814else
6815  echo "$as_me:$LINENO: result: no" >&5
6816echo "${ECHO_T}no" >&6
6817fi
6818
6819  RANLIB=$ac_ct_RANLIB
6820else
6821  RANLIB="$ac_cv_prog_RANLIB"
6822fi
6823
6824
6825rm -f os-proto.h
6826    if test "${LBL_CFLAGS+set}" = set; then
6827	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
6828    fi
6829    if test -f .devel ; then
6830	    if test "$GCC" = yes ; then
6831		    if test "${LBL_CFLAGS+set}" != set; then
6832			    if test "$ac_cv_prog_cc_g" = yes ; then
6833				    V_CCOPT="-g $V_CCOPT"
6834			    fi
6835			    V_CCOPT="$V_CCOPT -Wall"
6836			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
6837				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
6838			    fi
6839		    fi
6840	    else
6841		    case "$target_os" in
6842
6843		    irix6*)
6844			    V_CCOPT="$V_CCOPT -n32"
6845			    ;;
6846
6847		    *)
6848			    ;;
6849		    esac
6850	    fi
6851	    os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
6852	    name="lbl/os-$os.h"
6853	    if test -f $name ; then
6854		    ln -s $name os-proto.h
6855
6856cat >>confdefs.h <<\_ACEOF
6857#define HAVE_OS_PROTO_H 1
6858_ACEOF
6859
6860	    else
6861		    { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
6862echo "$as_me: WARNING: can't find $name" >&2;}
6863	    fi
6864    fi
6865
6866echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
6867echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
6868    if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
6869  echo $ECHO_N "(cached) $ECHO_C" >&6
6870else
6871  cat >conftest.$ac_ext <<_ACEOF
6872/* confdefs.h.  */
6873_ACEOF
6874cat confdefs.h >>conftest.$ac_ext
6875cat >>conftest.$ac_ext <<_ACEOF
6876/* end confdefs.h.  */
6877
6878#	include <sys/types.h>
6879#	include <sys/socket.h>
6880int
6881main ()
6882{
6883u_int i = sizeof(((struct sockaddr *)0)->sa_len)
6884  ;
6885  return 0;
6886}
6887_ACEOF
6888rm -f conftest.$ac_objext
6889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890  (eval $ac_compile) 2>conftest.er1
6891  ac_status=$?
6892  grep -v '^ *+' conftest.er1 >conftest.err
6893  rm -f conftest.er1
6894  cat conftest.err >&5
6895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896  (exit $ac_status); } &&
6897	 { ac_try='test -z "$ac_c_werror_flag"
6898			 || test ! -s conftest.err'
6899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900  (eval $ac_try) 2>&5
6901  ac_status=$?
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); }; } &&
6904	 { ac_try='test -s conftest.$ac_objext'
6905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906  (eval $ac_try) 2>&5
6907  ac_status=$?
6908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909  (exit $ac_status); }; }; then
6910  ac_cv_lbl_sockaddr_has_sa_len=yes
6911else
6912  echo "$as_me: failed program was:" >&5
6913sed 's/^/| /' conftest.$ac_ext >&5
6914
6915ac_cv_lbl_sockaddr_has_sa_len=no
6916fi
6917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6918fi
6919
6920    echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
6921echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
6922    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
6923
6924cat >>confdefs.h <<\_ACEOF
6925#define HAVE_SOCKADDR_SA_LEN 1
6926_ACEOF
6927
6928    fi
6929
6930echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
6931echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6
6932    if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
6933  echo $ECHO_N "(cached) $ECHO_C" >&6
6934else
6935  cat >conftest.$ac_ext <<_ACEOF
6936/* confdefs.h.  */
6937_ACEOF
6938cat confdefs.h >>conftest.$ac_ext
6939cat >>conftest.$ac_ext <<_ACEOF
6940/* end confdefs.h.  */
6941
6942#	include <sys/types.h>
6943#	include <sys/socket.h>
6944int
6945main ()
6946{
6947u_int i = sizeof (struct sockaddr_storage)
6948  ;
6949  return 0;
6950}
6951_ACEOF
6952rm -f conftest.$ac_objext
6953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6954  (eval $ac_compile) 2>conftest.er1
6955  ac_status=$?
6956  grep -v '^ *+' conftest.er1 >conftest.err
6957  rm -f conftest.er1
6958  cat conftest.err >&5
6959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960  (exit $ac_status); } &&
6961	 { ac_try='test -z "$ac_c_werror_flag"
6962			 || test ! -s conftest.err'
6963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964  (eval $ac_try) 2>&5
6965  ac_status=$?
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); }; } &&
6968	 { ac_try='test -s conftest.$ac_objext'
6969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970  (eval $ac_try) 2>&5
6971  ac_status=$?
6972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973  (exit $ac_status); }; }; then
6974  ac_cv_lbl_has_sockaddr_storage=yes
6975else
6976  echo "$as_me: failed program was:" >&5
6977sed 's/^/| /' conftest.$ac_ext >&5
6978
6979ac_cv_lbl_has_sockaddr_storage=no
6980fi
6981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6982fi
6983
6984    echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
6985echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6
6986    if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
6987
6988cat >>confdefs.h <<\_ACEOF
6989#define HAVE_SOCKADDR_STORAGE 1
6990_ACEOF
6991
6992    fi
6993
6994echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
6995echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6
6996    if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
6997  echo $ECHO_N "(cached) $ECHO_C" >&6
6998else
6999  cat >conftest.$ac_ext <<_ACEOF
7000/* confdefs.h.  */
7001_ACEOF
7002cat confdefs.h >>conftest.$ac_ext
7003cat >>conftest.$ac_ext <<_ACEOF
7004/* end confdefs.h.  */
7005
7006#	include <sys/types.h>
7007#	include <sys/dlpi.h>
7008#	include <sys/dlpi_ext.h>
7009int
7010main ()
7011{
7012u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
7013  ;
7014  return 0;
7015}
7016_ACEOF
7017rm -f conftest.$ac_objext
7018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7019  (eval $ac_compile) 2>conftest.er1
7020  ac_status=$?
7021  grep -v '^ *+' conftest.er1 >conftest.err
7022  rm -f conftest.er1
7023  cat conftest.err >&5
7024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025  (exit $ac_status); } &&
7026	 { ac_try='test -z "$ac_c_werror_flag"
7027			 || test ! -s conftest.err'
7028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029  (eval $ac_try) 2>&5
7030  ac_status=$?
7031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032  (exit $ac_status); }; } &&
7033	 { ac_try='test -s conftest.$ac_objext'
7034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035  (eval $ac_try) 2>&5
7036  ac_status=$?
7037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038  (exit $ac_status); }; }; then
7039  ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
7040else
7041  echo "$as_me: failed program was:" >&5
7042sed 's/^/| /' conftest.$ac_ext >&5
7043
7044ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
7045fi
7046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7047fi
7048
7049    echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
7050echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6
7051    if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
7052
7053cat >>confdefs.h <<\_ACEOF
7054#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
7055_ACEOF
7056
7057    fi
7058
7059echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
7060echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
7061    if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
7062  echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064  case "$host_cpu" in
7065
7066	#
7067	# These are CPU types where:
7068	#
7069	#	the CPU faults on an unaligned access, but at least some
7070	#	OSes that support that CPU catch the fault and simulate
7071	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7072	#	the simulation is slow, so we don't want to use it;
7073	#
7074	#	the CPU, I infer (from the old
7075	#
7076	# XXX: should also check that they don't do weird things (like on arm)
7077	#
7078	#	comment) doesn't fault on unaligned accesses, but doesn't
7079	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
7080	#
7081	#	for whatever reason, the test program doesn't work
7082	#	(this has been claimed to be the case for several of those
7083	#	CPUs - I don't know what the problem is; the problem
7084	#	was reported as "the test program dumps core" for SuperH,
7085	#	but that's what the test program is *supposed* to do -
7086	#	it dumps core before it writes anything, so the test
7087	#	for an empty output file should find an empty output
7088	#	file and conclude that unaligned accesses don't work).
7089	#
7090	# This run-time test won't work if you're cross-compiling, so
7091	# in order to support cross-compiling for a particular CPU,
7092	# we have to wire in the list of CPU types anyway, as far as
7093	# I know, so perhaps we should just have a set of CPUs on
7094	# which we know it doesn't work, a set of CPUs on which we
7095	# know it does work, and have the script just fail on other
7096	# cpu types and update it when such a failure occurs.
7097	#
7098	alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
7099		ac_cv_lbl_unaligned_fail=yes
7100		;;
7101
7102	*)
7103		cat >conftest.c <<EOF
7104#		include <sys/types.h>
7105#		include <sys/wait.h>
7106#		include <stdio.h>
7107		unsigned char a[5] = { 1, 2, 3, 4, 5 };
7108		main() {
7109		unsigned int i;
7110		pid_t pid;
7111		int status;
7112		/* avoid "core dumped" message */
7113		pid = fork();
7114		if (pid <  0)
7115			exit(2);
7116		if (pid > 0) {
7117			/* parent */
7118			pid = waitpid(pid, &status, 0);
7119			if (pid < 0)
7120				exit(3);
7121			exit(!WIFEXITED(status));
7122		}
7123		/* child */
7124		i = *(unsigned int *)&a[1];
7125		printf("%d\n", i);
7126		exit(0);
7127		}
7128EOF
7129		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
7130		    conftest.c $LIBS >/dev/null 2>&1
7131		if test ! -x conftest ; then
7132						ac_cv_lbl_unaligned_fail=yes
7133		else
7134			./conftest >conftest.out
7135			if test ! -s conftest.out ; then
7136				ac_cv_lbl_unaligned_fail=yes
7137			else
7138				ac_cv_lbl_unaligned_fail=no
7139			fi
7140		fi
7141		rm -f conftest* core core.conftest
7142		;;
7143	esac
7144fi
7145
7146    echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
7147echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
7148    if test $ac_cv_lbl_unaligned_fail = yes ; then
7149
7150cat >>confdefs.h <<\_ACEOF
7151#define LBL_ALIGN 1
7152_ACEOF
7153
7154    fi
7155
7156#
7157# Makefile.in includes rules to generate version.h, so we assume
7158# that it will be generated if autoconf is used.
7159#
7160
7161cat >>confdefs.h <<\_ACEOF
7162#define HAVE_VERSION_H 1
7163_ACEOF
7164
7165
7166rm -f net
7167ln -s ${srcdir}/bpf/net net
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181# Find a good install program.  We prefer a C program (faster),
7182# so one script is as good as another.  But avoid the broken or
7183# incompatible versions:
7184# SysV /etc/install, /usr/sbin/install
7185# SunOS /usr/etc/install
7186# IRIX /sbin/install
7187# AIX /bin/install
7188# AmigaOS /C/install, which installs bootblocks on floppy discs
7189# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7190# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7191# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7192# OS/2's system install, which has a completely different semantic
7193# ./install, which can be erroneously created by make from ./install.sh.
7194echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7195echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7196if test -z "$INSTALL"; then
7197if test "${ac_cv_path_install+set}" = set; then
7198  echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203  IFS=$as_save_IFS
7204  test -z "$as_dir" && as_dir=.
7205  # Account for people who put trailing slashes in PATH elements.
7206case $as_dir/ in
7207  ./ | .// | /cC/* | \
7208  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7209  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7210  /usr/ucb/* ) ;;
7211  *)
7212    # OSF1 and SCO ODT 3.0 have their own names for install.
7213    # Don't use installbsd from OSF since it installs stuff as root
7214    # by default.
7215    for ac_prog in ginstall scoinst install; do
7216      for ac_exec_ext in '' $ac_executable_extensions; do
7217	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7218	  if test $ac_prog = install &&
7219	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7220	    # AIX install.  It has an incompatible calling convention.
7221	    :
7222	  elif test $ac_prog = install &&
7223	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7224	    # program-specific install script used by HP pwplus--don't use.
7225	    :
7226	  else
7227	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7228	    break 3
7229	  fi
7230	fi
7231      done
7232    done
7233    ;;
7234esac
7235done
7236
7237
7238fi
7239  if test "${ac_cv_path_install+set}" = set; then
7240    INSTALL=$ac_cv_path_install
7241  else
7242    # As a last resort, use the slow shell script.  We don't cache a
7243    # path for INSTALL within a source directory, because that will
7244    # break other packages using the cache if that directory is
7245    # removed, or if the path is relative.
7246    INSTALL=$ac_install_sh
7247  fi
7248fi
7249echo "$as_me:$LINENO: result: $INSTALL" >&5
7250echo "${ECHO_T}$INSTALL" >&6
7251
7252# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7253# It thinks the first close brace ends the variable substitution.
7254test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7255
7256test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7257
7258test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7259
7260
7261          ac_config_headers="$ac_config_headers config.h"
7262
7263
7264          ac_config_files="$ac_config_files Makefile"
7265cat >confcache <<\_ACEOF
7266# This file is a shell script that caches the results of configure
7267# tests run on this system so they can be shared between configure
7268# scripts and configure runs, see configure's option --config-cache.
7269# It is not useful on other systems.  If it contains results you don't
7270# want to keep, you may remove or edit it.
7271#
7272# config.status only pays attention to the cache file if you give it
7273# the --recheck option to rerun configure.
7274#
7275# `ac_cv_env_foo' variables (set or unset) will be overridden when
7276# loading this file, other *unset* `ac_cv_foo' will be assigned the
7277# following values.
7278
7279_ACEOF
7280
7281# The following way of writing the cache mishandles newlines in values,
7282# but we know of no workaround that is simple, portable, and efficient.
7283# So, don't put newlines in cache variables' values.
7284# Ultrix sh set writes to stderr and can't be redirected directly,
7285# and sets the high bit in the cache file unless we assign to the vars.
7286{
7287  (set) 2>&1 |
7288    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7289    *ac_space=\ *)
7290      # `set' does not quote correctly, so add quotes (double-quote
7291      # substitution turns \\\\ into \\, and sed turns \\ into \).
7292      sed -n \
7293	"s/'/'\\\\''/g;
7294	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7295      ;;
7296    *)
7297      # `set' quotes correctly as required by POSIX, so do not add quotes.
7298      sed -n \
7299	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7300      ;;
7301    esac;
7302} |
7303  sed '
7304     t clear
7305     : clear
7306     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7307     t end
7308     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7309     : end' >>confcache
7310if diff $cache_file confcache >/dev/null 2>&1; then :; else
7311  if test -w $cache_file; then
7312    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7313    cat confcache >$cache_file
7314  else
7315    echo "not updating unwritable cache $cache_file"
7316  fi
7317fi
7318rm -f confcache
7319
7320test "x$prefix" = xNONE && prefix=$ac_default_prefix
7321# Let make expand exec_prefix.
7322test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7323
7324# VPATH may cause trouble with some makes, so we remove $(srcdir),
7325# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7326# trailing colons and then remove the whole line if VPATH becomes empty
7327# (actually we leave an empty line to preserve line numbers).
7328if test "x$srcdir" = x.; then
7329  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
7330s/:*\$(srcdir):*/:/;
7331s/:*\${srcdir}:*/:/;
7332s/:*@srcdir@:*/:/;
7333s/^\([^=]*=[	 ]*\):*/\1/;
7334s/:*$//;
7335s/^[^=]*=[	 ]*$//;
7336}'
7337fi
7338
7339DEFS=-DHAVE_CONFIG_H
7340
7341ac_libobjs=
7342ac_ltlibobjs=
7343for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7344  # 1. Remove the extension, and $U if already installed.
7345  ac_i=`echo "$ac_i" |
7346	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7347  # 2. Add them.
7348  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7349  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7350done
7351LIBOBJS=$ac_libobjs
7352
7353LTLIBOBJS=$ac_ltlibobjs
7354
7355
7356
7357: ${CONFIG_STATUS=./config.status}
7358ac_clean_files_save=$ac_clean_files
7359ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7360{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7361echo "$as_me: creating $CONFIG_STATUS" >&6;}
7362cat >$CONFIG_STATUS <<_ACEOF
7363#! $SHELL
7364# Generated by $as_me.
7365# Run this file to recreate the current configuration.
7366# Compiler output produced by configure, useful for debugging
7367# configure, is in config.log if it exists.
7368
7369debug=false
7370ac_cs_recheck=false
7371ac_cs_silent=false
7372SHELL=\${CONFIG_SHELL-$SHELL}
7373_ACEOF
7374
7375cat >>$CONFIG_STATUS <<\_ACEOF
7376## --------------------- ##
7377## M4sh Initialization.  ##
7378## --------------------- ##
7379
7380# Be Bourne compatible
7381if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7382  emulate sh
7383  NULLCMD=:
7384  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7385  # is contrary to our usage.  Disable this feature.
7386  alias -g '${1+"$@"}'='"$@"'
7387elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7388  set -o posix
7389fi
7390DUALCASE=1; export DUALCASE # for MKS sh
7391
7392# Support unset when possible.
7393if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7394  as_unset=unset
7395else
7396  as_unset=false
7397fi
7398
7399
7400# Work around bugs in pre-3.0 UWIN ksh.
7401$as_unset ENV MAIL MAILPATH
7402PS1='$ '
7403PS2='> '
7404PS4='+ '
7405
7406# NLS nuisances.
7407for as_var in \
7408  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7409  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7410  LC_TELEPHONE LC_TIME
7411do
7412  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7413    eval $as_var=C; export $as_var
7414  else
7415    $as_unset $as_var
7416  fi
7417done
7418
7419# Required to use basename.
7420if expr a : '\(a\)' >/dev/null 2>&1; then
7421  as_expr=expr
7422else
7423  as_expr=false
7424fi
7425
7426if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7427  as_basename=basename
7428else
7429  as_basename=false
7430fi
7431
7432
7433# Name of the executable.
7434as_me=`$as_basename "$0" ||
7435$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7436	 X"$0" : 'X\(//\)$' \| \
7437	 X"$0" : 'X\(/\)$' \| \
7438	 .     : '\(.\)' 2>/dev/null ||
7439echo X/"$0" |
7440    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7441  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
7442  	  /^X\/\(\/\).*/{ s//\1/; q; }
7443  	  s/.*/./; q'`
7444
7445
7446# PATH needs CR, and LINENO needs CR and PATH.
7447# Avoid depending upon Character Ranges.
7448as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7449as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7450as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7451as_cr_digits='0123456789'
7452as_cr_alnum=$as_cr_Letters$as_cr_digits
7453
7454# The user is always right.
7455if test "${PATH_SEPARATOR+set}" != set; then
7456  echo "#! /bin/sh" >conf$$.sh
7457  echo  "exit 0"   >>conf$$.sh
7458  chmod +x conf$$.sh
7459  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7460    PATH_SEPARATOR=';'
7461  else
7462    PATH_SEPARATOR=:
7463  fi
7464  rm -f conf$$.sh
7465fi
7466
7467
7468  as_lineno_1=$LINENO
7469  as_lineno_2=$LINENO
7470  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7471  test "x$as_lineno_1" != "x$as_lineno_2" &&
7472  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7473  # Find who we are.  Look in the path if we contain no path at all
7474  # relative or not.
7475  case $0 in
7476    *[\\/]* ) as_myself=$0 ;;
7477    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480  IFS=$as_save_IFS
7481  test -z "$as_dir" && as_dir=.
7482  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7483done
7484
7485       ;;
7486  esac
7487  # We did not find ourselves, most probably we were run as `sh COMMAND'
7488  # in which case we are not to be found in the path.
7489  if test "x$as_myself" = x; then
7490    as_myself=$0
7491  fi
7492  if test ! -f "$as_myself"; then
7493    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7494echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7495   { (exit 1); exit 1; }; }
7496  fi
7497  case $CONFIG_SHELL in
7498  '')
7499    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7501do
7502  IFS=$as_save_IFS
7503  test -z "$as_dir" && as_dir=.
7504  for as_base in sh bash ksh sh5; do
7505	 case $as_dir in
7506	 /*)
7507	   if ("$as_dir/$as_base" -c '
7508  as_lineno_1=$LINENO
7509  as_lineno_2=$LINENO
7510  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7511  test "x$as_lineno_1" != "x$as_lineno_2" &&
7512  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7513	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7514	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7515	     CONFIG_SHELL=$as_dir/$as_base
7516	     export CONFIG_SHELL
7517	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7518	   fi;;
7519	 esac
7520       done
7521done
7522;;
7523  esac
7524
7525  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7526  # uniformly replaced by the line number.  The first 'sed' inserts a
7527  # line-number line before each line; the second 'sed' does the real
7528  # work.  The second script uses 'N' to pair each line-number line
7529  # with the numbered line, and appends trailing '-' during
7530  # substitution so that $LINENO is not a special case at line end.
7531  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7532  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7533  sed '=' <$as_myself |
7534    sed '
7535      N
7536      s,$,-,
7537      : loop
7538      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7539      t loop
7540      s,-$,,
7541      s,^['$as_cr_digits']*\n,,
7542    ' >$as_me.lineno &&
7543  chmod +x $as_me.lineno ||
7544    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7545echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7546   { (exit 1); exit 1; }; }
7547
7548  # Don't try to exec as it changes $[0], causing all sort of problems
7549  # (the dirname of $[0] is not the place where we might find the
7550  # original and so on.  Autoconf is especially sensible to this).
7551  . ./$as_me.lineno
7552  # Exit status is that of the last command.
7553  exit
7554}
7555
7556
7557case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7558  *c*,-n*) ECHO_N= ECHO_C='
7559' ECHO_T='	' ;;
7560  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7561  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7562esac
7563
7564if expr a : '\(a\)' >/dev/null 2>&1; then
7565  as_expr=expr
7566else
7567  as_expr=false
7568fi
7569
7570rm -f conf$$ conf$$.exe conf$$.file
7571echo >conf$$.file
7572if ln -s conf$$.file conf$$ 2>/dev/null; then
7573  # We could just check for DJGPP; but this test a) works b) is more generic
7574  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7575  if test -f conf$$.exe; then
7576    # Don't use ln at all; we don't have any links
7577    as_ln_s='cp -p'
7578  else
7579    as_ln_s='ln -s'
7580  fi
7581elif ln conf$$.file conf$$ 2>/dev/null; then
7582  as_ln_s=ln
7583else
7584  as_ln_s='cp -p'
7585fi
7586rm -f conf$$ conf$$.exe conf$$.file
7587
7588if mkdir -p . 2>/dev/null; then
7589  as_mkdir_p=:
7590else
7591  test -d ./-p && rmdir ./-p
7592  as_mkdir_p=false
7593fi
7594
7595as_executable_p="test -f"
7596
7597# Sed expression to map a string onto a valid CPP name.
7598as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7599
7600# Sed expression to map a string onto a valid variable name.
7601as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7602
7603
7604# IFS
7605# We need space, tab and new line, in precisely that order.
7606as_nl='
7607'
7608IFS=" 	$as_nl"
7609
7610# CDPATH.
7611$as_unset CDPATH
7612
7613exec 6>&1
7614
7615# Open the log real soon, to keep \$[0] and so on meaningful, and to
7616# report actual input values of CONFIG_FILES etc. instead of their
7617# values after options handling.  Logging --version etc. is OK.
7618exec 5>>config.log
7619{
7620  echo
7621  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7622## Running $as_me. ##
7623_ASBOX
7624} >&5
7625cat >&5 <<_CSEOF
7626
7627This file was extended by $as_me, which was
7628generated by GNU Autoconf 2.59.  Invocation command line was
7629
7630  CONFIG_FILES    = $CONFIG_FILES
7631  CONFIG_HEADERS  = $CONFIG_HEADERS
7632  CONFIG_LINKS    = $CONFIG_LINKS
7633  CONFIG_COMMANDS = $CONFIG_COMMANDS
7634  $ $0 $@
7635
7636_CSEOF
7637echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7638echo >&5
7639_ACEOF
7640
7641# Files that config.status was made for.
7642if test -n "$ac_config_files"; then
7643  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7644fi
7645
7646if test -n "$ac_config_headers"; then
7647  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7648fi
7649
7650if test -n "$ac_config_links"; then
7651  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7652fi
7653
7654if test -n "$ac_config_commands"; then
7655  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7656fi
7657
7658cat >>$CONFIG_STATUS <<\_ACEOF
7659
7660ac_cs_usage="\
7661\`$as_me' instantiates files from templates according to the
7662current configuration.
7663
7664Usage: $0 [OPTIONS] [FILE]...
7665
7666  -h, --help       print this help, then exit
7667  -V, --version    print version number, then exit
7668  -q, --quiet      do not print progress messages
7669  -d, --debug      don't remove temporary files
7670      --recheck    update $as_me by reconfiguring in the same conditions
7671  --file=FILE[:TEMPLATE]
7672		   instantiate the configuration file FILE
7673  --header=FILE[:TEMPLATE]
7674		   instantiate the configuration header FILE
7675
7676Configuration files:
7677$config_files
7678
7679Configuration headers:
7680$config_headers
7681
7682Report bugs to <bug-autoconf@gnu.org>."
7683_ACEOF
7684
7685cat >>$CONFIG_STATUS <<_ACEOF
7686ac_cs_version="\\
7687config.status
7688configured by $0, generated by GNU Autoconf 2.59,
7689  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7690
7691Copyright (C) 2003 Free Software Foundation, Inc.
7692This config.status script is free software; the Free Software Foundation
7693gives unlimited permission to copy, distribute and modify it."
7694srcdir=$srcdir
7695INSTALL="$INSTALL"
7696_ACEOF
7697
7698cat >>$CONFIG_STATUS <<\_ACEOF
7699# If no file are specified by the user, then we need to provide default
7700# value.  By we need to know if files were specified by the user.
7701ac_need_defaults=:
7702while test $# != 0
7703do
7704  case $1 in
7705  --*=*)
7706    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7707    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7708    ac_shift=:
7709    ;;
7710  -*)
7711    ac_option=$1
7712    ac_optarg=$2
7713    ac_shift=shift
7714    ;;
7715  *) # This is not an option, so the user has probably given explicit
7716     # arguments.
7717     ac_option=$1
7718     ac_need_defaults=false;;
7719  esac
7720
7721  case $ac_option in
7722  # Handling of the options.
7723_ACEOF
7724cat >>$CONFIG_STATUS <<\_ACEOF
7725  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7726    ac_cs_recheck=: ;;
7727  --version | --vers* | -V )
7728    echo "$ac_cs_version"; exit 0 ;;
7729  --he | --h)
7730    # Conflict between --help and --header
7731    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7732Try \`$0 --help' for more information." >&5
7733echo "$as_me: error: ambiguous option: $1
7734Try \`$0 --help' for more information." >&2;}
7735   { (exit 1); exit 1; }; };;
7736  --help | --hel | -h )
7737    echo "$ac_cs_usage"; exit 0 ;;
7738  --debug | --d* | -d )
7739    debug=: ;;
7740  --file | --fil | --fi | --f )
7741    $ac_shift
7742    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7743    ac_need_defaults=false;;
7744  --header | --heade | --head | --hea )
7745    $ac_shift
7746    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7747    ac_need_defaults=false;;
7748  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7749  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7750    ac_cs_silent=: ;;
7751
7752  # This is an error.
7753  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7754Try \`$0 --help' for more information." >&5
7755echo "$as_me: error: unrecognized option: $1
7756Try \`$0 --help' for more information." >&2;}
7757   { (exit 1); exit 1; }; } ;;
7758
7759  *) ac_config_targets="$ac_config_targets $1" ;;
7760
7761  esac
7762  shift
7763done
7764
7765ac_configure_extra_args=
7766
7767if $ac_cs_silent; then
7768  exec 6>/dev/null
7769  ac_configure_extra_args="$ac_configure_extra_args --silent"
7770fi
7771
7772_ACEOF
7773cat >>$CONFIG_STATUS <<_ACEOF
7774if \$ac_cs_recheck; then
7775  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7776  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7777fi
7778
7779_ACEOF
7780
7781
7782
7783
7784
7785cat >>$CONFIG_STATUS <<\_ACEOF
7786for ac_config_target in $ac_config_targets
7787do
7788  case "$ac_config_target" in
7789  # Handling of arguments.
7790  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7791  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7792  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7793echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7794   { (exit 1); exit 1; }; };;
7795  esac
7796done
7797
7798# If the user did not use the arguments to specify the items to instantiate,
7799# then the envvar interface is used.  Set only those that are not.
7800# We use the long form for the default assignment because of an extremely
7801# bizarre bug on SunOS 4.1.3.
7802if $ac_need_defaults; then
7803  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7804  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7805fi
7806
7807# Have a temporary directory for convenience.  Make it in the build tree
7808# simply because there is no reason to put it here, and in addition,
7809# creating and moving files from /tmp can sometimes cause problems.
7810# Create a temporary directory, and hook for its removal unless debugging.
7811$debug ||
7812{
7813  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7814  trap '{ (exit 1); exit 1; }' 1 2 13 15
7815}
7816
7817# Create a (secure) tmp directory for tmp files.
7818
7819{
7820  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7821  test -n "$tmp" && test -d "$tmp"
7822}  ||
7823{
7824  tmp=./confstat$$-$RANDOM
7825  (umask 077 && mkdir $tmp)
7826} ||
7827{
7828   echo "$me: cannot create a temporary directory in ." >&2
7829   { (exit 1); exit 1; }
7830}
7831
7832_ACEOF
7833
7834cat >>$CONFIG_STATUS <<_ACEOF
7835
7836#
7837# CONFIG_FILES section.
7838#
7839
7840# No need to generate the scripts if there are no CONFIG_FILES.
7841# This happens for instance when ./config.status config.h
7842if test -n "\$CONFIG_FILES"; then
7843  # Protect against being on the right side of a sed subst in config.status.
7844  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7845   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7846s,@SHELL@,$SHELL,;t t
7847s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7848s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7849s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7850s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7851s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7852s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7853s,@exec_prefix@,$exec_prefix,;t t
7854s,@prefix@,$prefix,;t t
7855s,@program_transform_name@,$program_transform_name,;t t
7856s,@bindir@,$bindir,;t t
7857s,@sbindir@,$sbindir,;t t
7858s,@libexecdir@,$libexecdir,;t t
7859s,@datadir@,$datadir,;t t
7860s,@sysconfdir@,$sysconfdir,;t t
7861s,@sharedstatedir@,$sharedstatedir,;t t
7862s,@localstatedir@,$localstatedir,;t t
7863s,@libdir@,$libdir,;t t
7864s,@includedir@,$includedir,;t t
7865s,@oldincludedir@,$oldincludedir,;t t
7866s,@infodir@,$infodir,;t t
7867s,@mandir@,$mandir,;t t
7868s,@build_alias@,$build_alias,;t t
7869s,@host_alias@,$host_alias,;t t
7870s,@target_alias@,$target_alias,;t t
7871s,@DEFS@,$DEFS,;t t
7872s,@ECHO_C@,$ECHO_C,;t t
7873s,@ECHO_N@,$ECHO_N,;t t
7874s,@ECHO_T@,$ECHO_T,;t t
7875s,@LIBS@,$LIBS,;t t
7876s,@build@,$build,;t t
7877s,@build_cpu@,$build_cpu,;t t
7878s,@build_vendor@,$build_vendor,;t t
7879s,@build_os@,$build_os,;t t
7880s,@host@,$host,;t t
7881s,@host_cpu@,$host_cpu,;t t
7882s,@host_vendor@,$host_vendor,;t t
7883s,@host_os@,$host_os,;t t
7884s,@target@,$target,;t t
7885s,@target_cpu@,$target_cpu,;t t
7886s,@target_vendor@,$target_vendor,;t t
7887s,@target_os@,$target_os,;t t
7888s,@SHLICC2@,$SHLICC2,;t t
7889s,@CC@,$CC,;t t
7890s,@CFLAGS@,$CFLAGS,;t t
7891s,@LDFLAGS@,$LDFLAGS,;t t
7892s,@CPPFLAGS@,$CPPFLAGS,;t t
7893s,@ac_ct_CC@,$ac_ct_CC,;t t
7894s,@EXEEXT@,$EXEEXT,;t t
7895s,@OBJEXT@,$OBJEXT,;t t
7896s,@CPP@,$CPP,;t t
7897s,@EGREP@,$EGREP,;t t
7898s,@LIBOBJS@,$LIBOBJS,;t t
7899s,@V_LEX@,$V_LEX,;t t
7900s,@V_YACC@,$V_YACC,;t t
7901s,@RANLIB@,$RANLIB,;t t
7902s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7903s,@V_CCOPT@,$V_CCOPT,;t t
7904s,@V_DEFS@,$V_DEFS,;t t
7905s,@V_INCLS@,$V_INCLS,;t t
7906s,@V_LIBS@,$V_LIBS,;t t
7907s,@V_PCAP@,$V_PCAP,;t t
7908s,@V_FINDALLDEVS@,$V_FINDALLDEVS,;t t
7909s,@V_RANLIB@,$V_RANLIB,;t t
7910s,@SSRC@,$SSRC,;t t
7911s,@DYEXT@,$DYEXT,;t t
7912s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7913s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7914s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7915s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7916CEOF
7917
7918_ACEOF
7919
7920  cat >>$CONFIG_STATUS <<\_ACEOF
7921  # Split the substitutions into bite-sized pieces for seds with
7922  # small command number limits, like on Digital OSF/1 and HP-UX.
7923  ac_max_sed_lines=48
7924  ac_sed_frag=1 # Number of current file.
7925  ac_beg=1 # First line for current file.
7926  ac_end=$ac_max_sed_lines # Line after last line for current file.
7927  ac_more_lines=:
7928  ac_sed_cmds=
7929  while $ac_more_lines; do
7930    if test $ac_beg -gt 1; then
7931      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7932    else
7933      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7934    fi
7935    if test ! -s $tmp/subs.frag; then
7936      ac_more_lines=false
7937    else
7938      # The purpose of the label and of the branching condition is to
7939      # speed up the sed processing (if there are no `@' at all, there
7940      # is no need to browse any of the substitutions).
7941      # These are the two extra sed commands mentioned above.
7942      (echo ':t
7943  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7944      if test -z "$ac_sed_cmds"; then
7945	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7946      else
7947	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7948      fi
7949      ac_sed_frag=`expr $ac_sed_frag + 1`
7950      ac_beg=$ac_end
7951      ac_end=`expr $ac_end + $ac_max_sed_lines`
7952    fi
7953  done
7954  if test -z "$ac_sed_cmds"; then
7955    ac_sed_cmds=cat
7956  fi
7957fi # test -n "$CONFIG_FILES"
7958
7959_ACEOF
7960cat >>$CONFIG_STATUS <<\_ACEOF
7961for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7962  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7963  case $ac_file in
7964  - | *:- | *:-:* ) # input from stdin
7965	cat >$tmp/stdin
7966	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7967	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7968  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7969	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7970  * )   ac_file_in=$ac_file.in ;;
7971  esac
7972
7973  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7974  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7975$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7976	 X"$ac_file" : 'X\(//\)[^/]' \| \
7977	 X"$ac_file" : 'X\(//\)$' \| \
7978	 X"$ac_file" : 'X\(/\)' \| \
7979	 .     : '\(.\)' 2>/dev/null ||
7980echo X"$ac_file" |
7981    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7982  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7983  	  /^X\(\/\/\)$/{ s//\1/; q; }
7984  	  /^X\(\/\).*/{ s//\1/; q; }
7985  	  s/.*/./; q'`
7986  { if $as_mkdir_p; then
7987    mkdir -p "$ac_dir"
7988  else
7989    as_dir="$ac_dir"
7990    as_dirs=
7991    while test ! -d "$as_dir"; do
7992      as_dirs="$as_dir $as_dirs"
7993      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7994$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7995	 X"$as_dir" : 'X\(//\)[^/]' \| \
7996	 X"$as_dir" : 'X\(//\)$' \| \
7997	 X"$as_dir" : 'X\(/\)' \| \
7998	 .     : '\(.\)' 2>/dev/null ||
7999echo X"$as_dir" |
8000    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8001  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8002  	  /^X\(\/\/\)$/{ s//\1/; q; }
8003  	  /^X\(\/\).*/{ s//\1/; q; }
8004  	  s/.*/./; q'`
8005    done
8006    test ! -n "$as_dirs" || mkdir $as_dirs
8007  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8008echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8009   { (exit 1); exit 1; }; }; }
8010
8011  ac_builddir=.
8012
8013if test "$ac_dir" != .; then
8014  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8015  # A "../" for each directory in $ac_dir_suffix.
8016  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8017else
8018  ac_dir_suffix= ac_top_builddir=
8019fi
8020
8021case $srcdir in
8022  .)  # No --srcdir option.  We are building in place.
8023    ac_srcdir=.
8024    if test -z "$ac_top_builddir"; then
8025       ac_top_srcdir=.
8026    else
8027       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8028    fi ;;
8029  [\\/]* | ?:[\\/]* )  # Absolute path.
8030    ac_srcdir=$srcdir$ac_dir_suffix;
8031    ac_top_srcdir=$srcdir ;;
8032  *) # Relative path.
8033    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8034    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8035esac
8036
8037# Do not use `cd foo && pwd` to compute absolute paths, because
8038# the directories may not exist.
8039case `pwd` in
8040.) ac_abs_builddir="$ac_dir";;
8041*)
8042  case "$ac_dir" in
8043  .) ac_abs_builddir=`pwd`;;
8044  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8045  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8046  esac;;
8047esac
8048case $ac_abs_builddir in
8049.) ac_abs_top_builddir=${ac_top_builddir}.;;
8050*)
8051  case ${ac_top_builddir}. in
8052  .) ac_abs_top_builddir=$ac_abs_builddir;;
8053  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8054  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8055  esac;;
8056esac
8057case $ac_abs_builddir in
8058.) ac_abs_srcdir=$ac_srcdir;;
8059*)
8060  case $ac_srcdir in
8061  .) ac_abs_srcdir=$ac_abs_builddir;;
8062  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8063  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8064  esac;;
8065esac
8066case $ac_abs_builddir in
8067.) ac_abs_top_srcdir=$ac_top_srcdir;;
8068*)
8069  case $ac_top_srcdir in
8070  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8071  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8072  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8073  esac;;
8074esac
8075
8076
8077  case $INSTALL in
8078  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8079  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8080  esac
8081
8082  if test x"$ac_file" != x-; then
8083    { echo "$as_me:$LINENO: creating $ac_file" >&5
8084echo "$as_me: creating $ac_file" >&6;}
8085    rm -f "$ac_file"
8086  fi
8087  # Let's still pretend it is `configure' which instantiates (i.e., don't
8088  # use $as_me), people would be surprised to read:
8089  #    /* config.h.  Generated by config.status.  */
8090  if test x"$ac_file" = x-; then
8091    configure_input=
8092  else
8093    configure_input="$ac_file.  "
8094  fi
8095  configure_input=$configure_input"Generated from `echo $ac_file_in |
8096				     sed 's,.*/,,'` by configure."
8097
8098  # First look for the input files in the build tree, otherwise in the
8099  # src tree.
8100  ac_file_inputs=`IFS=:
8101    for f in $ac_file_in; do
8102      case $f in
8103      -) echo $tmp/stdin ;;
8104      [\\/$]*)
8105	 # Absolute (can't be DOS-style, as IFS=:)
8106	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8107echo "$as_me: error: cannot find input file: $f" >&2;}
8108   { (exit 1); exit 1; }; }
8109	 echo "$f";;
8110      *) # Relative
8111	 if test -f "$f"; then
8112	   # Build tree
8113	   echo "$f"
8114	 elif test -f "$srcdir/$f"; then
8115	   # Source tree
8116	   echo "$srcdir/$f"
8117	 else
8118	   # /dev/null tree
8119	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8120echo "$as_me: error: cannot find input file: $f" >&2;}
8121   { (exit 1); exit 1; }; }
8122	 fi;;
8123      esac
8124    done` || { (exit 1); exit 1; }
8125_ACEOF
8126cat >>$CONFIG_STATUS <<_ACEOF
8127  sed "$ac_vpsub
8128$extrasub
8129_ACEOF
8130cat >>$CONFIG_STATUS <<\_ACEOF
8131:t
8132/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8133s,@configure_input@,$configure_input,;t t
8134s,@srcdir@,$ac_srcdir,;t t
8135s,@abs_srcdir@,$ac_abs_srcdir,;t t
8136s,@top_srcdir@,$ac_top_srcdir,;t t
8137s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8138s,@builddir@,$ac_builddir,;t t
8139s,@abs_builddir@,$ac_abs_builddir,;t t
8140s,@top_builddir@,$ac_top_builddir,;t t
8141s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8142s,@INSTALL@,$ac_INSTALL,;t t
8143" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8144  rm -f $tmp/stdin
8145  if test x"$ac_file" != x-; then
8146    mv $tmp/out $ac_file
8147  else
8148    cat $tmp/out
8149    rm -f $tmp/out
8150  fi
8151
8152done
8153_ACEOF
8154cat >>$CONFIG_STATUS <<\_ACEOF
8155
8156#
8157# CONFIG_HEADER section.
8158#
8159
8160# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8161# NAME is the cpp macro being defined and VALUE is the value it is being given.
8162#
8163# ac_d sets the value in "#define NAME VALUE" lines.
8164ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
8165ac_dB='[	 ].*$,\1#\2'
8166ac_dC=' '
8167ac_dD=',;t'
8168# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8169ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
8170ac_uB='$,\1#\2define\3'
8171ac_uC=' '
8172ac_uD=',;t'
8173
8174for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8175  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8176  case $ac_file in
8177  - | *:- | *:-:* ) # input from stdin
8178	cat >$tmp/stdin
8179	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8180	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8181  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8182	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8183  * )   ac_file_in=$ac_file.in ;;
8184  esac
8185
8186  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8187echo "$as_me: creating $ac_file" >&6;}
8188
8189  # First look for the input files in the build tree, otherwise in the
8190  # src tree.
8191  ac_file_inputs=`IFS=:
8192    for f in $ac_file_in; do
8193      case $f in
8194      -) echo $tmp/stdin ;;
8195      [\\/$]*)
8196	 # Absolute (can't be DOS-style, as IFS=:)
8197	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8198echo "$as_me: error: cannot find input file: $f" >&2;}
8199   { (exit 1); exit 1; }; }
8200	 # Do quote $f, to prevent DOS paths from being IFS'd.
8201	 echo "$f";;
8202      *) # Relative
8203	 if test -f "$f"; then
8204	   # Build tree
8205	   echo "$f"
8206	 elif test -f "$srcdir/$f"; then
8207	   # Source tree
8208	   echo "$srcdir/$f"
8209	 else
8210	   # /dev/null tree
8211	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8212echo "$as_me: error: cannot find input file: $f" >&2;}
8213   { (exit 1); exit 1; }; }
8214	 fi;;
8215      esac
8216    done` || { (exit 1); exit 1; }
8217  # Remove the trailing spaces.
8218  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
8219
8220_ACEOF
8221
8222# Transform confdefs.h into two sed scripts, `conftest.defines' and
8223# `conftest.undefs', that substitutes the proper values into
8224# config.h.in to produce config.h.  The first handles `#define'
8225# templates, and the second `#undef' templates.
8226# And first: Protect against being on the right side of a sed subst in
8227# config.status.  Protect against being in an unquoted here document
8228# in config.status.
8229rm -f conftest.defines conftest.undefs
8230# Using a here document instead of a string reduces the quoting nightmare.
8231# Putting comments in sed scripts is not portable.
8232#
8233# `end' is used to avoid that the second main sed command (meant for
8234# 0-ary CPP macros) applies to n-ary macro definitions.
8235# See the Autoconf documentation for `clear'.
8236cat >confdef2sed.sed <<\_ACEOF
8237s/[\\&,]/\\&/g
8238s,[\\$`],\\&,g
8239t clear
8240: clear
8241s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8242t end
8243s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8244: end
8245_ACEOF
8246# If some macros were called several times there might be several times
8247# the same #defines, which is useless.  Nevertheless, we may not want to
8248# sort them, since we want the *last* AC-DEFINE to be honored.
8249uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8250sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8251rm -f confdef2sed.sed
8252
8253# This sed command replaces #undef with comments.  This is necessary, for
8254# example, in the case of _POSIX_SOURCE, which is predefined and required
8255# on some systems where configure will not decide to define it.
8256cat >>conftest.undefs <<\_ACEOF
8257s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8258_ACEOF
8259
8260# Break up conftest.defines because some shells have a limit on the size
8261# of here documents, and old seds have small limits too (100 cmds).
8262echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8263echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8264echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8265echo '  :' >>$CONFIG_STATUS
8266rm -f conftest.tail
8267while grep . conftest.defines >/dev/null
8268do
8269  # Write a limited-size here document to $tmp/defines.sed.
8270  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8271  # Speed up: don't consider the non `#define' lines.
8272  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
8273  # Work around the forget-to-reset-the-flag bug.
8274  echo 't clr' >>$CONFIG_STATUS
8275  echo ': clr' >>$CONFIG_STATUS
8276  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8277  echo 'CEOF
8278  sed -f $tmp/defines.sed $tmp/in >$tmp/out
8279  rm -f $tmp/in
8280  mv $tmp/out $tmp/in
8281' >>$CONFIG_STATUS
8282  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8283  rm -f conftest.defines
8284  mv conftest.tail conftest.defines
8285done
8286rm -f conftest.defines
8287echo '  fi # grep' >>$CONFIG_STATUS
8288echo >>$CONFIG_STATUS
8289
8290# Break up conftest.undefs because some shells have a limit on the size
8291# of here documents, and old seds have small limits too (100 cmds).
8292echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8293rm -f conftest.tail
8294while grep . conftest.undefs >/dev/null
8295do
8296  # Write a limited-size here document to $tmp/undefs.sed.
8297  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8298  # Speed up: don't consider the non `#undef'
8299  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
8300  # Work around the forget-to-reset-the-flag bug.
8301  echo 't clr' >>$CONFIG_STATUS
8302  echo ': clr' >>$CONFIG_STATUS
8303  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8304  echo 'CEOF
8305  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8306  rm -f $tmp/in
8307  mv $tmp/out $tmp/in
8308' >>$CONFIG_STATUS
8309  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8310  rm -f conftest.undefs
8311  mv conftest.tail conftest.undefs
8312done
8313rm -f conftest.undefs
8314
8315cat >>$CONFIG_STATUS <<\_ACEOF
8316  # Let's still pretend it is `configure' which instantiates (i.e., don't
8317  # use $as_me), people would be surprised to read:
8318  #    /* config.h.  Generated by config.status.  */
8319  if test x"$ac_file" = x-; then
8320    echo "/* Generated by configure.  */" >$tmp/config.h
8321  else
8322    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8323  fi
8324  cat $tmp/in >>$tmp/config.h
8325  rm -f $tmp/in
8326  if test x"$ac_file" != x-; then
8327    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8328      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8329echo "$as_me: $ac_file is unchanged" >&6;}
8330    else
8331      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8332$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8333	 X"$ac_file" : 'X\(//\)[^/]' \| \
8334	 X"$ac_file" : 'X\(//\)$' \| \
8335	 X"$ac_file" : 'X\(/\)' \| \
8336	 .     : '\(.\)' 2>/dev/null ||
8337echo X"$ac_file" |
8338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8339  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8340  	  /^X\(\/\/\)$/{ s//\1/; q; }
8341  	  /^X\(\/\).*/{ s//\1/; q; }
8342  	  s/.*/./; q'`
8343      { if $as_mkdir_p; then
8344    mkdir -p "$ac_dir"
8345  else
8346    as_dir="$ac_dir"
8347    as_dirs=
8348    while test ! -d "$as_dir"; do
8349      as_dirs="$as_dir $as_dirs"
8350      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8352	 X"$as_dir" : 'X\(//\)[^/]' \| \
8353	 X"$as_dir" : 'X\(//\)$' \| \
8354	 X"$as_dir" : 'X\(/\)' \| \
8355	 .     : '\(.\)' 2>/dev/null ||
8356echo X"$as_dir" |
8357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8358  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8359  	  /^X\(\/\/\)$/{ s//\1/; q; }
8360  	  /^X\(\/\).*/{ s//\1/; q; }
8361  	  s/.*/./; q'`
8362    done
8363    test ! -n "$as_dirs" || mkdir $as_dirs
8364  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8365echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8366   { (exit 1); exit 1; }; }; }
8367
8368      rm -f $ac_file
8369      mv $tmp/config.h $ac_file
8370    fi
8371  else
8372    cat $tmp/config.h
8373    rm -f $tmp/config.h
8374  fi
8375done
8376_ACEOF
8377
8378cat >>$CONFIG_STATUS <<\_ACEOF
8379
8380{ (exit 0); exit 0; }
8381_ACEOF
8382chmod +x $CONFIG_STATUS
8383ac_clean_files=$ac_clean_files_save
8384
8385
8386# configure is writing to config.log, and then calls config.status.
8387# config.status does its own redirection, appending to config.log.
8388# Unfortunately, on DOS this fails, as config.log is still kept open
8389# by configure, so config.status won't be able to write to it; its
8390# output is simply discarded.  So we exec the FD to /dev/null,
8391# effectively closing config.log, so it can be properly (re)opened and
8392# appended to by config.status.  When coming back to configure, we
8393# need to make the FD available again.
8394if test "$no_create" != yes; then
8395  ac_cs_success=:
8396  ac_config_status_args=
8397  test "$silent" = yes &&
8398    ac_config_status_args="$ac_config_status_args --quiet"
8399  exec 5>/dev/null
8400  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8401  exec 5>>config.log
8402  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8403  # would make configure fail if this is the last instruction.
8404  $ac_cs_success || { (exit 1); exit 1; }
8405fi
8406
8407
8408if test -f .devel ; then
8409	make depend
8410fi
8411exit 0
8412