xref: /freebsd/contrib/libpcap/configure (revision 7431dfd4580e850375fe5478d92ec770344db098)
1#! /bin/sh
2# From configure.in Revision: 1.168 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61.
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be more Bourne compatible
15DUALCASE=1; export DUALCASE # for MKS sh
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22  setopt NO_GLOB_SUBST
23else
24  case `(set -o) 2>/dev/null` in
25  *posix*) set -o posix ;;
26esac
27
28fi
29
30
31
32
33# PATH needs CR
34# Avoid depending upon Character Ranges.
35as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38as_cr_digits='0123456789'
39as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41# The user is always right.
42if test "${PATH_SEPARATOR+set}" != set; then
43  echo "#! /bin/sh" >conf$$.sh
44  echo  "exit 0"   >>conf$$.sh
45  chmod +x conf$$.sh
46  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47    PATH_SEPARATOR=';'
48  else
49    PATH_SEPARATOR=:
50  fi
51  rm -f conf$$.sh
52fi
53
54# Support unset when possible.
55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56  as_unset=unset
57else
58  as_unset=false
59fi
60
61
62# IFS
63# We need space, tab and new line, in precisely that order.  Quoting is
64# there to prevent editors from complaining about space-tab.
65# (If _AS_PATH_WALK were called with IFS unset, it would disable word
66# splitting by setting IFS to empty value.)
67as_nl='
68'
69IFS=" ""	$as_nl"
70
71# Find who we are.  Look in the path if we contain no directory separator.
72case $0 in
73  *[\\/]* ) as_myself=$0 ;;
74  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75for as_dir in $PATH
76do
77  IFS=$as_save_IFS
78  test -z "$as_dir" && as_dir=.
79  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80done
81IFS=$as_save_IFS
82
83     ;;
84esac
85# We did not find ourselves, most probably we were run as `sh COMMAND'
86# in which case we are not to be found in the path.
87if test "x$as_myself" = x; then
88  as_myself=$0
89fi
90if test ! -f "$as_myself"; then
91  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92  { (exit 1); exit 1; }
93fi
94
95# Work around bugs in pre-3.0 UWIN ksh.
96for as_var in ENV MAIL MAILPATH
97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98done
99PS1='$ '
100PS2='> '
101PS4='+ '
102
103# NLS nuisances.
104for as_var in \
105  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107  LC_TELEPHONE LC_TIME
108do
109  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110    eval $as_var=C; export $as_var
111  else
112    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113  fi
114done
115
116# Required to use basename.
117if expr a : '\(a\)' >/dev/null 2>&1 &&
118   test "X`expr 00001 : '.*\(...\)'`" = X001; then
119  as_expr=expr
120else
121  as_expr=false
122fi
123
124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125  as_basename=basename
126else
127  as_basename=false
128fi
129
130
131# Name of the executable.
132as_me=`$as_basename -- "$0" ||
133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134	 X"$0" : 'X\(//\)$' \| \
135	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136echo X/"$0" |
137    sed '/^.*\/\([^/][^/]*\)\/*$/{
138	    s//\1/
139	    q
140	  }
141	  /^X\/\(\/\/\)$/{
142	    s//\1/
143	    q
144	  }
145	  /^X\/\(\/\).*/{
146	    s//\1/
147	    q
148	  }
149	  s/.*/./; q'`
150
151# CDPATH.
152$as_unset CDPATH
153
154
155if test "x$CONFIG_SHELL" = x; then
156  if (eval ":") 2>/dev/null; then
157  as_have_required=yes
158else
159  as_have_required=no
160fi
161
162  if test $as_have_required = yes && 	 (eval ":
163(as_func_return () {
164  (exit \$1)
165}
166as_func_success () {
167  as_func_return 0
168}
169as_func_failure () {
170  as_func_return 1
171}
172as_func_ret_success () {
173  return 0
174}
175as_func_ret_failure () {
176  return 1
177}
178
179exitcode=0
180if as_func_success; then
181  :
182else
183  exitcode=1
184  echo as_func_success failed.
185fi
186
187if as_func_failure; then
188  exitcode=1
189  echo as_func_failure succeeded.
190fi
191
192if as_func_ret_success; then
193  :
194else
195  exitcode=1
196  echo as_func_ret_success failed.
197fi
198
199if as_func_ret_failure; then
200  exitcode=1
201  echo as_func_ret_failure succeeded.
202fi
203
204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205  :
206else
207  exitcode=1
208  echo positional parameters were not saved.
209fi
210
211test \$exitcode = 0) || { (exit 1); exit 1; }
212
213(
214  as_lineno_1=\$LINENO
215  as_lineno_2=\$LINENO
216  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218") 2> /dev/null; then
219  :
220else
221  as_candidate_shells=
222    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224do
225  IFS=$as_save_IFS
226  test -z "$as_dir" && as_dir=.
227  case $as_dir in
228	 /*)
229	   for as_base in sh bash ksh sh5; do
230	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231	   done;;
232       esac
233done
234IFS=$as_save_IFS
235
236
237      for as_shell in $as_candidate_shells $SHELL; do
238	 # Try only shells that exist, to save several forks.
239	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240		{ ("$as_shell") 2> /dev/null <<\_ASEOF
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in
250  *posix*) set -o posix ;;
251esac
252
253fi
254
255
256:
257_ASEOF
258}; then
259  CONFIG_SHELL=$as_shell
260	       as_have_required=yes
261	       if { "$as_shell" 2> /dev/null <<\_ASEOF
262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263  emulate sh
264  NULLCMD=:
265  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266  # is contrary to our usage.  Disable this feature.
267  alias -g '${1+"$@"}'='"$@"'
268  setopt NO_GLOB_SUBST
269else
270  case `(set -o) 2>/dev/null` in
271  *posix*) set -o posix ;;
272esac
273
274fi
275
276
277:
278(as_func_return () {
279  (exit $1)
280}
281as_func_success () {
282  as_func_return 0
283}
284as_func_failure () {
285  as_func_return 1
286}
287as_func_ret_success () {
288  return 0
289}
290as_func_ret_failure () {
291  return 1
292}
293
294exitcode=0
295if as_func_success; then
296  :
297else
298  exitcode=1
299  echo as_func_success failed.
300fi
301
302if as_func_failure; then
303  exitcode=1
304  echo as_func_failure succeeded.
305fi
306
307if as_func_ret_success; then
308  :
309else
310  exitcode=1
311  echo as_func_ret_success failed.
312fi
313
314if as_func_ret_failure; then
315  exitcode=1
316  echo as_func_ret_failure succeeded.
317fi
318
319if ( set x; as_func_ret_success y && test x = "$1" ); then
320  :
321else
322  exitcode=1
323  echo positional parameters were not saved.
324fi
325
326test $exitcode = 0) || { (exit 1); exit 1; }
327
328(
329  as_lineno_1=$LINENO
330  as_lineno_2=$LINENO
331  test "x$as_lineno_1" != "x$as_lineno_2" &&
332  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334_ASEOF
335}; then
336  break
337fi
338
339fi
340
341      done
342
343      if test "x$CONFIG_SHELL" != x; then
344  for as_var in BASH_ENV ENV
345        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346        done
347        export CONFIG_SHELL
348        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349fi
350
351
352    if test $as_have_required = no; then
353  echo This script requires a shell more modern than all the
354      echo shells that I found on your system.  Please install a
355      echo modern shell, or manually run the script under such a
356      echo shell if you do have one.
357      { (exit 1); exit 1; }
358fi
359
360
361fi
362
363fi
364
365
366
367(eval "as_func_return () {
368  (exit \$1)
369}
370as_func_success () {
371  as_func_return 0
372}
373as_func_failure () {
374  as_func_return 1
375}
376as_func_ret_success () {
377  return 0
378}
379as_func_ret_failure () {
380  return 1
381}
382
383exitcode=0
384if as_func_success; then
385  :
386else
387  exitcode=1
388  echo as_func_success failed.
389fi
390
391if as_func_failure; then
392  exitcode=1
393  echo as_func_failure succeeded.
394fi
395
396if as_func_ret_success; then
397  :
398else
399  exitcode=1
400  echo as_func_ret_success failed.
401fi
402
403if as_func_ret_failure; then
404  exitcode=1
405  echo as_func_ret_failure succeeded.
406fi
407
408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409  :
410else
411  exitcode=1
412  echo positional parameters were not saved.
413fi
414
415test \$exitcode = 0") || {
416  echo No shell found that supports shell functions.
417  echo Please tell autoconf@gnu.org about your system,
418  echo including any error possibly output before this
419  echo message
420}
421
422
423
424  as_lineno_1=$LINENO
425  as_lineno_2=$LINENO
426  test "x$as_lineno_1" != "x$as_lineno_2" &&
427  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430  # uniformly replaced by the line number.  The first 'sed' inserts a
431  # line-number line after each line using $LINENO; the second 'sed'
432  # does the real work.  The second script uses 'N' to pair each
433  # line-number line with the line containing $LINENO, and appends
434  # trailing '-' during substitution so that $LINENO is not a special
435  # case at line end.
436  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437  # scripts with optimization help from Paolo Bonzini.  Blame Lee
438  # E. McMahon (1931-1989) for sed's syntax.  :-)
439  sed -n '
440    p
441    /[$]LINENO/=
442  ' <$as_myself |
443    sed '
444      s/[$]LINENO.*/&-/
445      t lineno
446      b
447      :lineno
448      N
449      :loop
450      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451      t loop
452      s/-\n.*//
453    ' >$as_me.lineno &&
454  chmod +x "$as_me.lineno" ||
455    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456   { (exit 1); exit 1; }; }
457
458  # Don't try to exec as it changes $[0], causing all sort of problems
459  # (the dirname of $[0] is not the place where we might find the
460  # original and so on.  Autoconf is especially sensitive to this).
461  . "./$as_me.lineno"
462  # Exit status is that of the last command.
463  exit
464}
465
466
467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468  as_dirname=dirname
469else
470  as_dirname=false
471fi
472
473ECHO_C= ECHO_N= ECHO_T=
474case `echo -n x` in
475-n*)
476  case `echo 'x\c'` in
477  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
478  *)   ECHO_C='\c';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484if expr a : '\(a\)' >/dev/null 2>&1 &&
485   test "X`expr 00001 : '.*\(...\)'`" = X001; then
486  as_expr=expr
487else
488  as_expr=false
489fi
490
491rm -f conf$$ conf$$.exe conf$$.file
492if test -d conf$$.dir; then
493  rm -f conf$$.dir/conf$$.file
494else
495  rm -f conf$$.dir
496  mkdir conf$$.dir
497fi
498echo >conf$$.file
499if ln -s conf$$.file conf$$ 2>/dev/null; then
500  as_ln_s='ln -s'
501  # ... but there are two gotchas:
502  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504  # In both cases, we have to default to `cp -p'.
505  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506    as_ln_s='cp -p'
507elif ln conf$$.file conf$$ 2>/dev/null; then
508  as_ln_s=ln
509else
510  as_ln_s='cp -p'
511fi
512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513rmdir conf$$.dir 2>/dev/null
514
515if mkdir -p . 2>/dev/null; then
516  as_mkdir_p=:
517else
518  test -d ./-p && rmdir ./-p
519  as_mkdir_p=false
520fi
521
522if test -x / >/dev/null 2>&1; then
523  as_test_x='test -x'
524else
525  if ls -dL / >/dev/null 2>&1; then
526    as_ls_L_option=L
527  else
528    as_ls_L_option=
529  fi
530  as_test_x='
531    eval sh -c '\''
532      if test -d "$1"; then
533        test -d "$1/.";
534      else
535	case $1 in
536        -*)set "./$1";;
537	esac;
538	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539	???[sx]*):;;*)false;;esac;fi
540    '\'' sh
541  '
542fi
543as_executable_p=$as_test_x
544
545# Sed expression to map a string onto a valid CPP name.
546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548# Sed expression to map a string onto a valid variable name.
549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553exec 7<&0 </dev/null 6>&1
554
555# Name of the host.
556# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557# so uname gets run too.
558ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560#
561# Initializations.
562#
563ac_default_prefix=/usr/local
564ac_clean_files=
565ac_config_libobj_dir=.
566LIBOBJS=
567cross_compiling=no
568subdirs=
569MFLAGS=
570MAKEFLAGS=
571SHELL=${CONFIG_SHELL-/bin/sh}
572
573# Identity of this package.
574PACKAGE_NAME=
575PACKAGE_TARNAME=
576PACKAGE_VERSION=
577PACKAGE_STRING=
578PACKAGE_BUGREPORT=
579
580ac_unique_file="pcap.c"
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
584#ifdef HAVE_SYS_TYPES_H
585# include <sys/types.h>
586#endif
587#ifdef HAVE_SYS_STAT_H
588# include <sys/stat.h>
589#endif
590#ifdef STDC_HEADERS
591# include <stdlib.h>
592# include <stddef.h>
593#else
594# ifdef HAVE_STDLIB_H
595#  include <stdlib.h>
596# endif
597#endif
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600#  include <memory.h>
601# endif
602# include <string.h>
603#endif
604#ifdef HAVE_STRINGS_H
605# include <strings.h>
606#endif
607#ifdef HAVE_INTTYPES_H
608# include <inttypes.h>
609#endif
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
614# include <unistd.h>
615#endif"
616
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654build
655build_cpu
656build_vendor
657build_os
658host
659host_cpu
660host_vendor
661host_os
662target
663target_cpu
664target_vendor
665target_os
666SHLICC2
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674CPP
675GREP
676EGREP
677LIBOBJS
678HAVE_LINUX_TPACKET_AUXDATA
679V_LEX
680V_YACC
681RANLIB
682AR
683V_CCOPT
684V_DEFS
685V_FINDALLDEVS
686V_INCLS
687V_PCAP
688V_SHLIB_CMD
689V_SHLIB_OPT
690V_SONAME_OPT
691V_RPATH_OPT
692ADDLOBJS
693ADDLARCHIVEOBJS
694SSRC
695DYEXT
696MAN_FILE_FORMATS
697MAN_MISC_INFO
698PCAP_SUPPORT_USB
699USB_SRC
700PCAP_SUPPORT_NETFILTER
701NETFILTER_SRC
702PCAP_SUPPORT_BT
703BT_SRC
704PCAP_SUPPORT_CANUSB
705CANUSB_SRC
706PCAP_SUPPORT_CAN
707CAN_SRC
708INSTALL_PROGRAM
709INSTALL_SCRIPT
710INSTALL_DATA
711LTLIBOBJS'
712ac_subst_files=''
713      ac_precious_vars='build_alias
714host_alias
715target_alias
716CC
717CFLAGS
718LDFLAGS
719LIBS
720CPPFLAGS
721CPP'
722
723
724# Initialize some variables set by options.
725ac_init_help=
726ac_init_version=false
727# The variables have the same names as the options, with
728# dashes changed to underlines.
729cache_file=/dev/null
730exec_prefix=NONE
731no_create=
732no_recursion=
733prefix=NONE
734program_prefix=NONE
735program_suffix=NONE
736program_transform_name=s,x,x,
737silent=
738site=
739srcdir=
740verbose=
741x_includes=NONE
742x_libraries=NONE
743
744# Installation directory options.
745# These are left unexpanded so users can "make install exec_prefix=/foo"
746# and all the variables that are supposed to be based on exec_prefix
747# by default will actually change.
748# Use braces instead of parens because sh, perl, etc. also accept them.
749# (The list follows the same order as the GNU Coding Standards.)
750bindir='${exec_prefix}/bin'
751sbindir='${exec_prefix}/sbin'
752libexecdir='${exec_prefix}/libexec'
753datarootdir='${prefix}/share'
754datadir='${datarootdir}'
755sysconfdir='${prefix}/etc'
756sharedstatedir='${prefix}/com'
757localstatedir='${prefix}/var'
758includedir='${prefix}/include'
759oldincludedir='/usr/include'
760docdir='${datarootdir}/doc/${PACKAGE}'
761infodir='${datarootdir}/info'
762htmldir='${docdir}'
763dvidir='${docdir}'
764pdfdir='${docdir}'
765psdir='${docdir}'
766libdir='${exec_prefix}/lib'
767localedir='${datarootdir}/locale'
768mandir='${datarootdir}/man'
769
770ac_prev=
771ac_dashdash=
772for ac_option
773do
774  # If the previous option needs an argument, assign it.
775  if test -n "$ac_prev"; then
776    eval $ac_prev=\$ac_option
777    ac_prev=
778    continue
779  fi
780
781  case $ac_option in
782  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783  *)	ac_optarg=yes ;;
784  esac
785
786  # Accept the important Cygnus configure options, so we can diagnose typos.
787
788  case $ac_dashdash$ac_option in
789  --)
790    ac_dashdash=yes ;;
791
792  -bindir | --bindir | --bindi | --bind | --bin | --bi)
793    ac_prev=bindir ;;
794  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
795    bindir=$ac_optarg ;;
796
797  -build | --build | --buil | --bui | --bu)
798    ac_prev=build_alias ;;
799  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800    build_alias=$ac_optarg ;;
801
802  -cache-file | --cache-file | --cache-fil | --cache-fi \
803  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804    ac_prev=cache_file ;;
805  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807    cache_file=$ac_optarg ;;
808
809  --config-cache | -C)
810    cache_file=config.cache ;;
811
812  -datadir | --datadir | --datadi | --datad)
813    ac_prev=datadir ;;
814  -datadir=* | --datadir=* | --datadi=* | --datad=*)
815    datadir=$ac_optarg ;;
816
817  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818  | --dataroo | --dataro | --datar)
819    ac_prev=datarootdir ;;
820  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822    datarootdir=$ac_optarg ;;
823
824  -disable-* | --disable-*)
825    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826    # Reject names that are not valid shell variable names.
827    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
828      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
829   { (exit 1); exit 1; }; }
830    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
831    eval enable_$ac_feature=no ;;
832
833  -docdir | --docdir | --docdi | --doc | --do)
834    ac_prev=docdir ;;
835  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
836    docdir=$ac_optarg ;;
837
838  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
839    ac_prev=dvidir ;;
840  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
841    dvidir=$ac_optarg ;;
842
843  -enable-* | --enable-*)
844    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
845    # Reject names that are not valid shell variable names.
846    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848   { (exit 1); exit 1; }; }
849    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850    eval enable_$ac_feature=\$ac_optarg ;;
851
852  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
853  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
854  | --exec | --exe | --ex)
855    ac_prev=exec_prefix ;;
856  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
857  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
858  | --exec=* | --exe=* | --ex=*)
859    exec_prefix=$ac_optarg ;;
860
861  -gas | --gas | --ga | --g)
862    # Obsolete; use --with-gas.
863    with_gas=yes ;;
864
865  -help | --help | --hel | --he | -h)
866    ac_init_help=long ;;
867  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
868    ac_init_help=recursive ;;
869  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
870    ac_init_help=short ;;
871
872  -host | --host | --hos | --ho)
873    ac_prev=host_alias ;;
874  -host=* | --host=* | --hos=* | --ho=*)
875    host_alias=$ac_optarg ;;
876
877  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
878    ac_prev=htmldir ;;
879  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
880  | --ht=*)
881    htmldir=$ac_optarg ;;
882
883  -includedir | --includedir | --includedi | --included | --include \
884  | --includ | --inclu | --incl | --inc)
885    ac_prev=includedir ;;
886  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
887  | --includ=* | --inclu=* | --incl=* | --inc=*)
888    includedir=$ac_optarg ;;
889
890  -infodir | --infodir | --infodi | --infod | --info | --inf)
891    ac_prev=infodir ;;
892  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
893    infodir=$ac_optarg ;;
894
895  -libdir | --libdir | --libdi | --libd)
896    ac_prev=libdir ;;
897  -libdir=* | --libdir=* | --libdi=* | --libd=*)
898    libdir=$ac_optarg ;;
899
900  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
901  | --libexe | --libex | --libe)
902    ac_prev=libexecdir ;;
903  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
904  | --libexe=* | --libex=* | --libe=*)
905    libexecdir=$ac_optarg ;;
906
907  -localedir | --localedir | --localedi | --localed | --locale)
908    ac_prev=localedir ;;
909  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
910    localedir=$ac_optarg ;;
911
912  -localstatedir | --localstatedir | --localstatedi | --localstated \
913  | --localstate | --localstat | --localsta | --localst | --locals)
914    ac_prev=localstatedir ;;
915  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
916  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
917    localstatedir=$ac_optarg ;;
918
919  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
920    ac_prev=mandir ;;
921  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
922    mandir=$ac_optarg ;;
923
924  -nfp | --nfp | --nf)
925    # Obsolete; use --without-fp.
926    with_fp=no ;;
927
928  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
929  | --no-cr | --no-c | -n)
930    no_create=yes ;;
931
932  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
933  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
934    no_recursion=yes ;;
935
936  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
937  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
938  | --oldin | --oldi | --old | --ol | --o)
939    ac_prev=oldincludedir ;;
940  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
941  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
942  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
943    oldincludedir=$ac_optarg ;;
944
945  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
946    ac_prev=prefix ;;
947  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
948    prefix=$ac_optarg ;;
949
950  -program-prefix | --program-prefix | --program-prefi | --program-pref \
951  | --program-pre | --program-pr | --program-p)
952    ac_prev=program_prefix ;;
953  -program-prefix=* | --program-prefix=* | --program-prefi=* \
954  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
955    program_prefix=$ac_optarg ;;
956
957  -program-suffix | --program-suffix | --program-suffi | --program-suff \
958  | --program-suf | --program-su | --program-s)
959    ac_prev=program_suffix ;;
960  -program-suffix=* | --program-suffix=* | --program-suffi=* \
961  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
962    program_suffix=$ac_optarg ;;
963
964  -program-transform-name | --program-transform-name \
965  | --program-transform-nam | --program-transform-na \
966  | --program-transform-n | --program-transform- \
967  | --program-transform | --program-transfor \
968  | --program-transfo | --program-transf \
969  | --program-trans | --program-tran \
970  | --progr-tra | --program-tr | --program-t)
971    ac_prev=program_transform_name ;;
972  -program-transform-name=* | --program-transform-name=* \
973  | --program-transform-nam=* | --program-transform-na=* \
974  | --program-transform-n=* | --program-transform-=* \
975  | --program-transform=* | --program-transfor=* \
976  | --program-transfo=* | --program-transf=* \
977  | --program-trans=* | --program-tran=* \
978  | --progr-tra=* | --program-tr=* | --program-t=*)
979    program_transform_name=$ac_optarg ;;
980
981  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
982    ac_prev=pdfdir ;;
983  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
984    pdfdir=$ac_optarg ;;
985
986  -psdir | --psdir | --psdi | --psd | --ps)
987    ac_prev=psdir ;;
988  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
989    psdir=$ac_optarg ;;
990
991  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
992  | -silent | --silent | --silen | --sile | --sil)
993    silent=yes ;;
994
995  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
996    ac_prev=sbindir ;;
997  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
998  | --sbi=* | --sb=*)
999    sbindir=$ac_optarg ;;
1000
1001  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003  | --sharedst | --shareds | --shared | --share | --shar \
1004  | --sha | --sh)
1005    ac_prev=sharedstatedir ;;
1006  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1009  | --sha=* | --sh=*)
1010    sharedstatedir=$ac_optarg ;;
1011
1012  -site | --site | --sit)
1013    ac_prev=site ;;
1014  -site=* | --site=* | --sit=*)
1015    site=$ac_optarg ;;
1016
1017  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1018    ac_prev=srcdir ;;
1019  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020    srcdir=$ac_optarg ;;
1021
1022  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023  | --syscon | --sysco | --sysc | --sys | --sy)
1024    ac_prev=sysconfdir ;;
1025  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027    sysconfdir=$ac_optarg ;;
1028
1029  -target | --target | --targe | --targ | --tar | --ta | --t)
1030    ac_prev=target_alias ;;
1031  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032    target_alias=$ac_optarg ;;
1033
1034  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1035    verbose=yes ;;
1036
1037  -version | --version | --versio | --versi | --vers | -V)
1038    ac_init_version=: ;;
1039
1040  -with-* | --with-*)
1041    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042    # Reject names that are not valid shell variable names.
1043    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044      { echo "$as_me: error: invalid package name: $ac_package" >&2
1045   { (exit 1); exit 1; }; }
1046    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1047    eval with_$ac_package=\$ac_optarg ;;
1048
1049  -without-* | --without-*)
1050    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1051    # Reject names that are not valid shell variable names.
1052    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053      { echo "$as_me: error: invalid package name: $ac_package" >&2
1054   { (exit 1); exit 1; }; }
1055    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1056    eval with_$ac_package=no ;;
1057
1058  --x)
1059    # Obsolete; use --with-x.
1060    with_x=yes ;;
1061
1062  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1063  | --x-incl | --x-inc | --x-in | --x-i)
1064    ac_prev=x_includes ;;
1065  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1066  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1067    x_includes=$ac_optarg ;;
1068
1069  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1070  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1071    ac_prev=x_libraries ;;
1072  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1073  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1074    x_libraries=$ac_optarg ;;
1075
1076  -*) { echo "$as_me: error: unrecognized option: $ac_option
1077Try \`$0 --help' for more information." >&2
1078   { (exit 1); exit 1; }; }
1079    ;;
1080
1081  *=*)
1082    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1083    # Reject names that are not valid shell variable names.
1084    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1085      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1086   { (exit 1); exit 1; }; }
1087    eval $ac_envvar=\$ac_optarg
1088    export $ac_envvar ;;
1089
1090  *)
1091    # FIXME: should be removed in autoconf 3.0.
1092    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1093    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1095    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1096    ;;
1097
1098  esac
1099done
1100
1101if test -n "$ac_prev"; then
1102  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1103  { echo "$as_me: error: missing argument to $ac_option" >&2
1104   { (exit 1); exit 1; }; }
1105fi
1106
1107# Be sure to have absolute directory names.
1108for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1109		datadir sysconfdir sharedstatedir localstatedir includedir \
1110		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1111		libdir localedir mandir
1112do
1113  eval ac_val=\$$ac_var
1114  case $ac_val in
1115    [\\/$]* | ?:[\\/]* )  continue;;
1116    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1117  esac
1118  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1119   { (exit 1); exit 1; }; }
1120done
1121
1122# There might be people who depend on the old broken behavior: `$host'
1123# used to hold the argument of --host etc.
1124# FIXME: To remove some day.
1125build=$build_alias
1126host=$host_alias
1127target=$target_alias
1128
1129# FIXME: To remove some day.
1130if test "x$host_alias" != x; then
1131  if test "x$build_alias" = x; then
1132    cross_compiling=maybe
1133    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1134    If a cross compiler is detected then cross compile mode will be used." >&2
1135  elif test "x$build_alias" != "x$host_alias"; then
1136    cross_compiling=yes
1137  fi
1138fi
1139
1140ac_tool_prefix=
1141test -n "$host_alias" && ac_tool_prefix=$host_alias-
1142
1143test "$silent" = yes && exec 6>/dev/null
1144
1145
1146ac_pwd=`pwd` && test -n "$ac_pwd" &&
1147ac_ls_di=`ls -di .` &&
1148ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1149  { echo "$as_me: error: Working directory cannot be determined" >&2
1150   { (exit 1); exit 1; }; }
1151test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1152  { echo "$as_me: error: pwd does not report name of working directory" >&2
1153   { (exit 1); exit 1; }; }
1154
1155
1156# Find the source files, if location was not specified.
1157if test -z "$srcdir"; then
1158  ac_srcdir_defaulted=yes
1159  # Try the directory containing this script, then the parent directory.
1160  ac_confdir=`$as_dirname -- "$0" ||
1161$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1162	 X"$0" : 'X\(//\)[^/]' \| \
1163	 X"$0" : 'X\(//\)$' \| \
1164	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1165echo X"$0" |
1166    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1167	    s//\1/
1168	    q
1169	  }
1170	  /^X\(\/\/\)[^/].*/{
1171	    s//\1/
1172	    q
1173	  }
1174	  /^X\(\/\/\)$/{
1175	    s//\1/
1176	    q
1177	  }
1178	  /^X\(\/\).*/{
1179	    s//\1/
1180	    q
1181	  }
1182	  s/.*/./; q'`
1183  srcdir=$ac_confdir
1184  if test ! -r "$srcdir/$ac_unique_file"; then
1185    srcdir=..
1186  fi
1187else
1188  ac_srcdir_defaulted=no
1189fi
1190if test ! -r "$srcdir/$ac_unique_file"; then
1191  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1192  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1193   { (exit 1); exit 1; }; }
1194fi
1195ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1196ac_abs_confdir=`(
1197	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1198   { (exit 1); exit 1; }; }
1199	pwd)`
1200# When building in place, set srcdir=.
1201if test "$ac_abs_confdir" = "$ac_pwd"; then
1202  srcdir=.
1203fi
1204# Remove unnecessary trailing slashes from srcdir.
1205# Double slashes in file names in object file debugging info
1206# mess up M-x gdb in Emacs.
1207case $srcdir in
1208*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1209esac
1210for ac_var in $ac_precious_vars; do
1211  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1212  eval ac_env_${ac_var}_value=\$${ac_var}
1213  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1214  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1215done
1216
1217#
1218# Report the --help message.
1219#
1220if test "$ac_init_help" = "long"; then
1221  # Omit some internal or obsolete options to make the list less imposing.
1222  # This message is too long to be a string in the A/UX 3.1 sh.
1223  cat <<_ACEOF
1224\`configure' configures this package to adapt to many kinds of systems.
1225
1226Usage: $0 [OPTION]... [VAR=VALUE]...
1227
1228To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229VAR=VALUE.  See below for descriptions of some of the useful variables.
1230
1231Defaults for the options are specified in brackets.
1232
1233Configuration:
1234  -h, --help              display this help and exit
1235      --help=short        display options specific to this package
1236      --help=recursive    display the short help of all the included packages
1237  -V, --version           display version information and exit
1238  -q, --quiet, --silent   do not print \`checking...' messages
1239      --cache-file=FILE   cache test results in FILE [disabled]
1240  -C, --config-cache      alias for \`--cache-file=config.cache'
1241  -n, --no-create         do not create output files
1242      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1243
1244Installation directories:
1245  --prefix=PREFIX         install architecture-independent files in PREFIX
1246			  [$ac_default_prefix]
1247  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1248			  [PREFIX]
1249
1250By default, \`make install' will install all the files in
1251\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1252an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253for instance \`--prefix=\$HOME'.
1254
1255For better control, use the options below.
1256
1257Fine tuning of the installation directories:
1258  --bindir=DIR           user executables [EPREFIX/bin]
1259  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1260  --libexecdir=DIR       program executables [EPREFIX/libexec]
1261  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1262  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1263  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1264  --libdir=DIR           object code libraries [EPREFIX/lib]
1265  --includedir=DIR       C header files [PREFIX/include]
1266  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1267  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1268  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1269  --infodir=DIR          info documentation [DATAROOTDIR/info]
1270  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1271  --mandir=DIR           man documentation [DATAROOTDIR/man]
1272  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1273  --htmldir=DIR          html documentation [DOCDIR]
1274  --dvidir=DIR           dvi documentation [DOCDIR]
1275  --pdfdir=DIR           pdf documentation [DOCDIR]
1276  --psdir=DIR            ps documentation [DOCDIR]
1277_ACEOF
1278
1279  cat <<\_ACEOF
1280
1281System types:
1282  --build=BUILD     configure for building on BUILD [guessed]
1283  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1284  --target=TARGET   configure for building compilers for TARGET [HOST]
1285_ACEOF
1286fi
1287
1288if test -n "$ac_init_help"; then
1289
1290  cat <<\_ACEOF
1291
1292Optional Features:
1293  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1294  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1295  --disable-largefile     omit support for large files
1296  --disable-protochain    disable \"protochain\" insn
1297  --enable-ipv6           build IPv6-capable version [default=yes, if
1298                          getaddrinfo available]
1299  --enable-optimizer-dbg  build optimizer debugging code
1300  --enable-yydebug        build parser debugging code
1301  --disable-universal     don't build universal on OS X
1302  --enable-shared         build shared libraries [default=yes, if support
1303                          available]
1304  --enable-bluetooth      enable Bluetooth support [default=yes, if support
1305                          available]
1306  --enable-canusb         enable canusb support [default=yes, if support
1307                          available]
1308  --enable-can            enable CAN support [default=yes, if support
1309                          available]
1310
1311Optional Packages:
1312  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1313  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1314  --without-gcc           don't use gcc
1315  --with-sita             include SITA support
1316  --with-pcap=TYPE        use packet capture TYPE
1317  --without-libnl         disable libnl support [default=yes, on Linux, if
1318                          present]
1319  --with-dag[=DIR]        include Endace DAG support ["yes", "no" or DIR;
1320                          default="yes" on BSD and Linux if present]
1321  --with-dag-includes=DIR Endace DAG include directory
1322  --with-dag-libraries=DIR
1323                          Endace DAG library directory
1324  --with-septel[=DIR]     include Septel support (located in directory DIR, if
1325                          supplied). [default=yes, on Linux, if present]
1326  --with-snf[=DIR]        include Myricom SNF support ["yes", "no" or DIR;
1327                          default="yes" on BSD and Linux if present]
1328  --with-snf-includes=DIR Myricom SNF include directory
1329  --with-snf-libraries=DIR
1330                          Myricom SNF library directory
1331  --without-flex          don't use flex
1332  --without-bison         don't use bison
1333
1334Some influential environment variables:
1335  CC          C compiler command
1336  CFLAGS      C compiler flags
1337  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1338              nonstandard directory <lib dir>
1339  LIBS        libraries to pass to the linker, e.g. -l<library>
1340  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1341              you have headers in a nonstandard directory <include dir>
1342  CPP         C preprocessor
1343
1344Use these variables to override the choices made by `configure' or to help
1345it to find libraries and programs with nonstandard names/locations.
1346
1347_ACEOF
1348ac_status=$?
1349fi
1350
1351if test "$ac_init_help" = "recursive"; then
1352  # If there are subdirs, report their specific --help.
1353  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1354    test -d "$ac_dir" || continue
1355    ac_builddir=.
1356
1357case "$ac_dir" in
1358.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359*)
1360  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1361  # A ".." for each directory in $ac_dir_suffix.
1362  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1363  case $ac_top_builddir_sub in
1364  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1365  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1366  esac ;;
1367esac
1368ac_abs_top_builddir=$ac_pwd
1369ac_abs_builddir=$ac_pwd$ac_dir_suffix
1370# for backward compatibility:
1371ac_top_builddir=$ac_top_build_prefix
1372
1373case $srcdir in
1374  .)  # We are building in place.
1375    ac_srcdir=.
1376    ac_top_srcdir=$ac_top_builddir_sub
1377    ac_abs_top_srcdir=$ac_pwd ;;
1378  [\\/]* | ?:[\\/]* )  # Absolute name.
1379    ac_srcdir=$srcdir$ac_dir_suffix;
1380    ac_top_srcdir=$srcdir
1381    ac_abs_top_srcdir=$srcdir ;;
1382  *) # Relative name.
1383    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1384    ac_top_srcdir=$ac_top_build_prefix$srcdir
1385    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1386esac
1387ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1388
1389    cd "$ac_dir" || { ac_status=$?; continue; }
1390    # Check for guested configure.
1391    if test -f "$ac_srcdir/configure.gnu"; then
1392      echo &&
1393      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1394    elif test -f "$ac_srcdir/configure"; then
1395      echo &&
1396      $SHELL "$ac_srcdir/configure" --help=recursive
1397    else
1398      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1399    fi || ac_status=$?
1400    cd "$ac_pwd" || { ac_status=$?; break; }
1401  done
1402fi
1403
1404test -n "$ac_init_help" && exit $ac_status
1405if $ac_init_version; then
1406  cat <<\_ACEOF
1407configure
1408generated by GNU Autoconf 2.61
1409
1410Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14112002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1412This configure script is free software; the Free Software Foundation
1413gives unlimited permission to copy, distribute and modify it.
1414_ACEOF
1415  exit
1416fi
1417cat >config.log <<_ACEOF
1418This file contains any messages produced by compilers while
1419running configure, to aid debugging if configure makes a mistake.
1420
1421It was created by $as_me, which was
1422generated by GNU Autoconf 2.61.  Invocation command line was
1423
1424  $ $0 $@
1425
1426_ACEOF
1427exec 5>>config.log
1428{
1429cat <<_ASUNAME
1430## --------- ##
1431## Platform. ##
1432## --------- ##
1433
1434hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1435uname -m = `(uname -m) 2>/dev/null || echo unknown`
1436uname -r = `(uname -r) 2>/dev/null || echo unknown`
1437uname -s = `(uname -s) 2>/dev/null || echo unknown`
1438uname -v = `(uname -v) 2>/dev/null || echo unknown`
1439
1440/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1441/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1442
1443/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1444/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1445/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1446/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1447/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1448/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1449/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1450
1451_ASUNAME
1452
1453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454for as_dir in $PATH
1455do
1456  IFS=$as_save_IFS
1457  test -z "$as_dir" && as_dir=.
1458  echo "PATH: $as_dir"
1459done
1460IFS=$as_save_IFS
1461
1462} >&5
1463
1464cat >&5 <<_ACEOF
1465
1466
1467## ----------- ##
1468## Core tests. ##
1469## ----------- ##
1470
1471_ACEOF
1472
1473
1474# Keep a trace of the command line.
1475# Strip out --no-create and --no-recursion so they do not pile up.
1476# Strip out --silent because we don't want to record it for future runs.
1477# Also quote any args containing shell meta-characters.
1478# Make two passes to allow for proper duplicate-argument suppression.
1479ac_configure_args=
1480ac_configure_args0=
1481ac_configure_args1=
1482ac_must_keep_next=false
1483for ac_pass in 1 2
1484do
1485  for ac_arg
1486  do
1487    case $ac_arg in
1488    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1489    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1490    | -silent | --silent | --silen | --sile | --sil)
1491      continue ;;
1492    *\'*)
1493      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1494    esac
1495    case $ac_pass in
1496    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1497    2)
1498      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1499      if test $ac_must_keep_next = true; then
1500	ac_must_keep_next=false # Got value, back to normal.
1501      else
1502	case $ac_arg in
1503	  *=* | --config-cache | -C | -disable-* | --disable-* \
1504	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1505	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1506	  | -with-* | --with-* | -without-* | --without-* | --x)
1507	    case "$ac_configure_args0 " in
1508	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1509	    esac
1510	    ;;
1511	  -* ) ac_must_keep_next=true ;;
1512	esac
1513      fi
1514      ac_configure_args="$ac_configure_args '$ac_arg'"
1515      ;;
1516    esac
1517  done
1518done
1519$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1520$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1521
1522# When interrupted or exit'd, cleanup temporary files, and complete
1523# config.log.  We remove comments because anyway the quotes in there
1524# would cause problems or look ugly.
1525# WARNING: Use '\'' to represent an apostrophe within the trap.
1526# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1527trap 'exit_status=$?
1528  # Save into config.log some information that might help in debugging.
1529  {
1530    echo
1531
1532    cat <<\_ASBOX
1533## ---------------- ##
1534## Cache variables. ##
1535## ---------------- ##
1536_ASBOX
1537    echo
1538    # The following way of writing the cache mishandles newlines in values,
1539(
1540  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1541    eval ac_val=\$$ac_var
1542    case $ac_val in #(
1543    *${as_nl}*)
1544      case $ac_var in #(
1545      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1546echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1547      esac
1548      case $ac_var in #(
1549      _ | IFS | as_nl) ;; #(
1550      *) $as_unset $ac_var ;;
1551      esac ;;
1552    esac
1553  done
1554  (set) 2>&1 |
1555    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1556    *${as_nl}ac_space=\ *)
1557      sed -n \
1558	"s/'\''/'\''\\\\'\'''\''/g;
1559	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1560      ;; #(
1561    *)
1562      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1563      ;;
1564    esac |
1565    sort
1566)
1567    echo
1568
1569    cat <<\_ASBOX
1570## ----------------- ##
1571## Output variables. ##
1572## ----------------- ##
1573_ASBOX
1574    echo
1575    for ac_var in $ac_subst_vars
1576    do
1577      eval ac_val=\$$ac_var
1578      case $ac_val in
1579      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1580      esac
1581      echo "$ac_var='\''$ac_val'\''"
1582    done | sort
1583    echo
1584
1585    if test -n "$ac_subst_files"; then
1586      cat <<\_ASBOX
1587## ------------------- ##
1588## File substitutions. ##
1589## ------------------- ##
1590_ASBOX
1591      echo
1592      for ac_var in $ac_subst_files
1593      do
1594	eval ac_val=\$$ac_var
1595	case $ac_val in
1596	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597	esac
1598	echo "$ac_var='\''$ac_val'\''"
1599      done | sort
1600      echo
1601    fi
1602
1603    if test -s confdefs.h; then
1604      cat <<\_ASBOX
1605## ----------- ##
1606## confdefs.h. ##
1607## ----------- ##
1608_ASBOX
1609      echo
1610      cat confdefs.h
1611      echo
1612    fi
1613    test "$ac_signal" != 0 &&
1614      echo "$as_me: caught signal $ac_signal"
1615    echo "$as_me: exit $exit_status"
1616  } >&5
1617  rm -f core *.core core.conftest.* &&
1618    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1619    exit $exit_status
1620' 0
1621for ac_signal in 1 2 13 15; do
1622  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1623done
1624ac_signal=0
1625
1626# confdefs.h avoids OS command line length limits that DEFS can exceed.
1627rm -f -r conftest* confdefs.h
1628
1629# Predefined preprocessor variables.
1630
1631cat >>confdefs.h <<_ACEOF
1632#define PACKAGE_NAME "$PACKAGE_NAME"
1633_ACEOF
1634
1635
1636cat >>confdefs.h <<_ACEOF
1637#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1638_ACEOF
1639
1640
1641cat >>confdefs.h <<_ACEOF
1642#define PACKAGE_VERSION "$PACKAGE_VERSION"
1643_ACEOF
1644
1645
1646cat >>confdefs.h <<_ACEOF
1647#define PACKAGE_STRING "$PACKAGE_STRING"
1648_ACEOF
1649
1650
1651cat >>confdefs.h <<_ACEOF
1652#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1653_ACEOF
1654
1655
1656# Let the site file select an alternate cache file if it wants to.
1657# Prefer explicitly selected file to automatically selected ones.
1658if test -n "$CONFIG_SITE"; then
1659  set x "$CONFIG_SITE"
1660elif test "x$prefix" != xNONE; then
1661  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1662else
1663  set x "$ac_default_prefix/share/config.site" \
1664	"$ac_default_prefix/etc/config.site"
1665fi
1666shift
1667for ac_site_file
1668do
1669  if test -r "$ac_site_file"; then
1670    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1671echo "$as_me: loading site script $ac_site_file" >&6;}
1672    sed 's/^/| /' "$ac_site_file" >&5
1673    . "$ac_site_file"
1674  fi
1675done
1676
1677if test -r "$cache_file"; then
1678  # Some versions of bash will fail to source /dev/null (special
1679  # files actually), so we avoid doing that.
1680  if test -f "$cache_file"; then
1681    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1682echo "$as_me: loading cache $cache_file" >&6;}
1683    case $cache_file in
1684      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1685      *)                      . "./$cache_file";;
1686    esac
1687  fi
1688else
1689  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1690echo "$as_me: creating cache $cache_file" >&6;}
1691  >$cache_file
1692fi
1693
1694# Check that the precious variables saved in the cache have kept the same
1695# value.
1696ac_cache_corrupted=false
1697for ac_var in $ac_precious_vars; do
1698  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1699  eval ac_new_set=\$ac_env_${ac_var}_set
1700  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1701  eval ac_new_val=\$ac_env_${ac_var}_value
1702  case $ac_old_set,$ac_new_set in
1703    set,)
1704      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1705echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1706      ac_cache_corrupted=: ;;
1707    ,set)
1708      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1709echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1710      ac_cache_corrupted=: ;;
1711    ,);;
1712    *)
1713      if test "x$ac_old_val" != "x$ac_new_val"; then
1714	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1715echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1716	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1717echo "$as_me:   former value:  $ac_old_val" >&2;}
1718	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1719echo "$as_me:   current value: $ac_new_val" >&2;}
1720	ac_cache_corrupted=:
1721      fi;;
1722  esac
1723  # Pass precious variables to config.status.
1724  if test "$ac_new_set" = set; then
1725    case $ac_new_val in
1726    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1727    *) ac_arg=$ac_var=$ac_new_val ;;
1728    esac
1729    case " $ac_configure_args " in
1730      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1731      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1732    esac
1733  fi
1734done
1735if $ac_cache_corrupted; then
1736  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1737echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1738  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1739echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1740   { (exit 1); exit 1; }; }
1741fi
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759ac_ext=c
1760ac_cpp='$CPP $CPPFLAGS'
1761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1763ac_compiler_gnu=$ac_cv_c_compiler_gnu
1764
1765
1766
1767ac_aux_dir=
1768for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1769  if test -f "$ac_dir/install-sh"; then
1770    ac_aux_dir=$ac_dir
1771    ac_install_sh="$ac_aux_dir/install-sh -c"
1772    break
1773  elif test -f "$ac_dir/install.sh"; then
1774    ac_aux_dir=$ac_dir
1775    ac_install_sh="$ac_aux_dir/install.sh -c"
1776    break
1777  elif test -f "$ac_dir/shtool"; then
1778    ac_aux_dir=$ac_dir
1779    ac_install_sh="$ac_aux_dir/shtool install -c"
1780    break
1781  fi
1782done
1783if test -z "$ac_aux_dir"; then
1784  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1785echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1786   { (exit 1); exit 1; }; }
1787fi
1788
1789# These three variables are undocumented and unsupported,
1790# and are intended to be withdrawn in a future Autoconf release.
1791# They can cause serious problems if a builder's source tree is in a directory
1792# whose full name contains unusual characters.
1793ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1794ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1795ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1796
1797
1798# Make sure we can run config.sub.
1799$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1800  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1801echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1802   { (exit 1); exit 1; }; }
1803
1804{ echo "$as_me:$LINENO: checking build system type" >&5
1805echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1806if test "${ac_cv_build+set}" = set; then
1807  echo $ECHO_N "(cached) $ECHO_C" >&6
1808else
1809  ac_build_alias=$build_alias
1810test "x$ac_build_alias" = x &&
1811  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1812test "x$ac_build_alias" = x &&
1813  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1814echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1815   { (exit 1); exit 1; }; }
1816ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1817  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1818echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1819   { (exit 1); exit 1; }; }
1820
1821fi
1822{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1823echo "${ECHO_T}$ac_cv_build" >&6; }
1824case $ac_cv_build in
1825*-*-*) ;;
1826*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1827echo "$as_me: error: invalid value of canonical build" >&2;}
1828   { (exit 1); exit 1; }; };;
1829esac
1830build=$ac_cv_build
1831ac_save_IFS=$IFS; IFS='-'
1832set x $ac_cv_build
1833shift
1834build_cpu=$1
1835build_vendor=$2
1836shift; shift
1837# Remember, the first character of IFS is used to create $*,
1838# except with old shells:
1839build_os=$*
1840IFS=$ac_save_IFS
1841case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1842
1843
1844{ echo "$as_me:$LINENO: checking host system type" >&5
1845echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1846if test "${ac_cv_host+set}" = set; then
1847  echo $ECHO_N "(cached) $ECHO_C" >&6
1848else
1849  if test "x$host_alias" = x; then
1850  ac_cv_host=$ac_cv_build
1851else
1852  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1853    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1854echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1855   { (exit 1); exit 1; }; }
1856fi
1857
1858fi
1859{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1860echo "${ECHO_T}$ac_cv_host" >&6; }
1861case $ac_cv_host in
1862*-*-*) ;;
1863*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1864echo "$as_me: error: invalid value of canonical host" >&2;}
1865   { (exit 1); exit 1; }; };;
1866esac
1867host=$ac_cv_host
1868ac_save_IFS=$IFS; IFS='-'
1869set x $ac_cv_host
1870shift
1871host_cpu=$1
1872host_vendor=$2
1873shift; shift
1874# Remember, the first character of IFS is used to create $*,
1875# except with old shells:
1876host_os=$*
1877IFS=$ac_save_IFS
1878case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1879
1880
1881{ echo "$as_me:$LINENO: checking target system type" >&5
1882echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1883if test "${ac_cv_target+set}" = set; then
1884  echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886  if test "x$target_alias" = x; then
1887  ac_cv_target=$ac_cv_host
1888else
1889  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1890    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1891echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1892   { (exit 1); exit 1; }; }
1893fi
1894
1895fi
1896{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1897echo "${ECHO_T}$ac_cv_target" >&6; }
1898case $ac_cv_target in
1899*-*-*) ;;
1900*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1901echo "$as_me: error: invalid value of canonical target" >&2;}
1902   { (exit 1); exit 1; }; };;
1903esac
1904target=$ac_cv_target
1905ac_save_IFS=$IFS; IFS='-'
1906set x $ac_cv_target
1907shift
1908target_cpu=$1
1909target_vendor=$2
1910shift; shift
1911# Remember, the first character of IFS is used to create $*,
1912# except with old shells:
1913target_os=$*
1914IFS=$ac_save_IFS
1915case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1916
1917
1918# The aliases save the names the user supplied, while $host etc.
1919# will get canonicalized.
1920test -n "$target_alias" &&
1921  test "$program_prefix$program_suffix$program_transform_name" = \
1922    NONENONEs,x,x, &&
1923  program_prefix=${target_alias}-
1924
1925
1926
1927
1928
1929
1930
1931# Check whether --with-gcc was given.
1932if test "${with_gcc+set}" = set; then
1933  withval=$with_gcc;
1934fi
1935
1936    V_CCOPT="-O"
1937    V_INCLS=""
1938    if test "${srcdir}" != "." ; then
1939	    V_INCLS="-I\$(srcdir)"
1940    fi
1941    if test "${CFLAGS+set}" = set; then
1942	    LBL_CFLAGS="$CFLAGS"
1943    fi
1944    if test -z "$CC" ; then
1945	    case "$host_os" in
1946
1947	    bsdi*)
1948		    # Extract the first word of "shlicc2", so it can be a program name with args.
1949set dummy shlicc2; ac_word=$2
1950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1952if test "${ac_cv_prog_SHLICC2+set}" = set; then
1953  echo $ECHO_N "(cached) $ECHO_C" >&6
1954else
1955  if test -n "$SHLICC2"; then
1956  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1957else
1958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959for as_dir in $PATH
1960do
1961  IFS=$as_save_IFS
1962  test -z "$as_dir" && as_dir=.
1963  for ac_exec_ext in '' $ac_executable_extensions; do
1964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1965    ac_cv_prog_SHLICC2="yes"
1966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967    break 2
1968  fi
1969done
1970done
1971IFS=$as_save_IFS
1972
1973  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1974fi
1975fi
1976SHLICC2=$ac_cv_prog_SHLICC2
1977if test -n "$SHLICC2"; then
1978  { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1979echo "${ECHO_T}$SHLICC2" >&6; }
1980else
1981  { echo "$as_me:$LINENO: result: no" >&5
1982echo "${ECHO_T}no" >&6; }
1983fi
1984
1985
1986		    if test $SHLICC2 = yes ; then
1987			    CC=shlicc2
1988			    export CC
1989		    fi
1990		    ;;
1991	    esac
1992    fi
1993    if test -z "$CC" -a "$with_gcc" = no ; then
1994	    CC=cc
1995	    export CC
1996    fi
1997
1998ac_ext=c
1999ac_cpp='$CPP $CPPFLAGS'
2000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003if test -n "$ac_tool_prefix"; then
2004  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2005set dummy ${ac_tool_prefix}gcc; ac_word=$2
2006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2008if test "${ac_cv_prog_CC+set}" = set; then
2009  echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011  if test -n "$CC"; then
2012  ac_cv_prog_CC="$CC" # Let the user override the test.
2013else
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017  IFS=$as_save_IFS
2018  test -z "$as_dir" && as_dir=.
2019  for ac_exec_ext in '' $ac_executable_extensions; do
2020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2021    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023    break 2
2024  fi
2025done
2026done
2027IFS=$as_save_IFS
2028
2029fi
2030fi
2031CC=$ac_cv_prog_CC
2032if test -n "$CC"; then
2033  { echo "$as_me:$LINENO: result: $CC" >&5
2034echo "${ECHO_T}$CC" >&6; }
2035else
2036  { echo "$as_me:$LINENO: result: no" >&5
2037echo "${ECHO_T}no" >&6; }
2038fi
2039
2040
2041fi
2042if test -z "$ac_cv_prog_CC"; then
2043  ac_ct_CC=$CC
2044  # Extract the first word of "gcc", so it can be a program name with args.
2045set dummy gcc; ac_word=$2
2046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2048if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049  echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051  if test -n "$ac_ct_CC"; then
2052  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053else
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057  IFS=$as_save_IFS
2058  test -z "$as_dir" && as_dir=.
2059  for ac_exec_ext in '' $ac_executable_extensions; do
2060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2061    ac_cv_prog_ac_ct_CC="gcc"
2062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063    break 2
2064  fi
2065done
2066done
2067IFS=$as_save_IFS
2068
2069fi
2070fi
2071ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072if test -n "$ac_ct_CC"; then
2073  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074echo "${ECHO_T}$ac_ct_CC" >&6; }
2075else
2076  { echo "$as_me:$LINENO: result: no" >&5
2077echo "${ECHO_T}no" >&6; }
2078fi
2079
2080  if test "x$ac_ct_CC" = x; then
2081    CC=""
2082  else
2083    case $cross_compiling:$ac_tool_warned in
2084yes:)
2085{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2086whose name does not start with the host triplet.  If you think this
2087configuration is useful to you, please write to autoconf@gnu.org." >&5
2088echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2089whose name does not start with the host triplet.  If you think this
2090configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2091ac_tool_warned=yes ;;
2092esac
2093    CC=$ac_ct_CC
2094  fi
2095else
2096  CC="$ac_cv_prog_CC"
2097fi
2098
2099if test -z "$CC"; then
2100          if test -n "$ac_tool_prefix"; then
2101    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2102set dummy ${ac_tool_prefix}cc; ac_word=$2
2103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2105if test "${ac_cv_prog_CC+set}" = set; then
2106  echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108  if test -n "$CC"; then
2109  ac_cv_prog_CC="$CC" # Let the user override the test.
2110else
2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH
2113do
2114  IFS=$as_save_IFS
2115  test -z "$as_dir" && as_dir=.
2116  for ac_exec_ext in '' $ac_executable_extensions; do
2117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2118    ac_cv_prog_CC="${ac_tool_prefix}cc"
2119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120    break 2
2121  fi
2122done
2123done
2124IFS=$as_save_IFS
2125
2126fi
2127fi
2128CC=$ac_cv_prog_CC
2129if test -n "$CC"; then
2130  { echo "$as_me:$LINENO: result: $CC" >&5
2131echo "${ECHO_T}$CC" >&6; }
2132else
2133  { echo "$as_me:$LINENO: result: no" >&5
2134echo "${ECHO_T}no" >&6; }
2135fi
2136
2137
2138  fi
2139fi
2140if test -z "$CC"; then
2141  # Extract the first word of "cc", so it can be a program name with args.
2142set dummy cc; ac_word=$2
2143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145if test "${ac_cv_prog_CC+set}" = set; then
2146  echo $ECHO_N "(cached) $ECHO_C" >&6
2147else
2148  if test -n "$CC"; then
2149  ac_cv_prog_CC="$CC" # Let the user override the test.
2150else
2151  ac_prog_rejected=no
2152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153for as_dir in $PATH
2154do
2155  IFS=$as_save_IFS
2156  test -z "$as_dir" && as_dir=.
2157  for ac_exec_ext in '' $ac_executable_extensions; do
2158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2159    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2160       ac_prog_rejected=yes
2161       continue
2162     fi
2163    ac_cv_prog_CC="cc"
2164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165    break 2
2166  fi
2167done
2168done
2169IFS=$as_save_IFS
2170
2171if test $ac_prog_rejected = yes; then
2172  # We found a bogon in the path, so make sure we never use it.
2173  set dummy $ac_cv_prog_CC
2174  shift
2175  if test $# != 0; then
2176    # We chose a different compiler from the bogus one.
2177    # However, it has the same basename, so the bogon will be chosen
2178    # first if we set CC to just the basename; use the full file name.
2179    shift
2180    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2181  fi
2182fi
2183fi
2184fi
2185CC=$ac_cv_prog_CC
2186if test -n "$CC"; then
2187  { echo "$as_me:$LINENO: result: $CC" >&5
2188echo "${ECHO_T}$CC" >&6; }
2189else
2190  { echo "$as_me:$LINENO: result: no" >&5
2191echo "${ECHO_T}no" >&6; }
2192fi
2193
2194
2195fi
2196if test -z "$CC"; then
2197  if test -n "$ac_tool_prefix"; then
2198  for ac_prog in cl.exe
2199  do
2200    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2201set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2204if test "${ac_cv_prog_CC+set}" = set; then
2205  echo $ECHO_N "(cached) $ECHO_C" >&6
2206else
2207  if test -n "$CC"; then
2208  ac_cv_prog_CC="$CC" # Let the user override the test.
2209else
2210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211for as_dir in $PATH
2212do
2213  IFS=$as_save_IFS
2214  test -z "$as_dir" && as_dir=.
2215  for ac_exec_ext in '' $ac_executable_extensions; do
2216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2218    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219    break 2
2220  fi
2221done
2222done
2223IFS=$as_save_IFS
2224
2225fi
2226fi
2227CC=$ac_cv_prog_CC
2228if test -n "$CC"; then
2229  { echo "$as_me:$LINENO: result: $CC" >&5
2230echo "${ECHO_T}$CC" >&6; }
2231else
2232  { echo "$as_me:$LINENO: result: no" >&5
2233echo "${ECHO_T}no" >&6; }
2234fi
2235
2236
2237    test -n "$CC" && break
2238  done
2239fi
2240if test -z "$CC"; then
2241  ac_ct_CC=$CC
2242  for ac_prog in cl.exe
2243do
2244  # Extract the first word of "$ac_prog", so it can be a program name with args.
2245set dummy $ac_prog; ac_word=$2
2246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2249  echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251  if test -n "$ac_ct_CC"; then
2252  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2253else
2254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255for as_dir in $PATH
2256do
2257  IFS=$as_save_IFS
2258  test -z "$as_dir" && as_dir=.
2259  for ac_exec_ext in '' $ac_executable_extensions; do
2260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261    ac_cv_prog_ac_ct_CC="$ac_prog"
2262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263    break 2
2264  fi
2265done
2266done
2267IFS=$as_save_IFS
2268
2269fi
2270fi
2271ac_ct_CC=$ac_cv_prog_ac_ct_CC
2272if test -n "$ac_ct_CC"; then
2273  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2274echo "${ECHO_T}$ac_ct_CC" >&6; }
2275else
2276  { echo "$as_me:$LINENO: result: no" >&5
2277echo "${ECHO_T}no" >&6; }
2278fi
2279
2280
2281  test -n "$ac_ct_CC" && break
2282done
2283
2284  if test "x$ac_ct_CC" = x; then
2285    CC=""
2286  else
2287    case $cross_compiling:$ac_tool_warned in
2288yes:)
2289{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2290whose name does not start with the host triplet.  If you think this
2291configuration is useful to you, please write to autoconf@gnu.org." >&5
2292echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2293whose name does not start with the host triplet.  If you think this
2294configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2295ac_tool_warned=yes ;;
2296esac
2297    CC=$ac_ct_CC
2298  fi
2299fi
2300
2301fi
2302
2303
2304test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2305See \`config.log' for more details." >&5
2306echo "$as_me: error: no acceptable C compiler found in \$PATH
2307See \`config.log' for more details." >&2;}
2308   { (exit 1); exit 1; }; }
2309
2310# Provide some information about the compiler.
2311echo "$as_me:$LINENO: checking for C compiler version" >&5
2312ac_compiler=`set X $ac_compile; echo $2`
2313{ (ac_try="$ac_compiler --version >&5"
2314case "(($ac_try" in
2315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316  *) ac_try_echo=$ac_try;;
2317esac
2318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319  (eval "$ac_compiler --version >&5") 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }
2323{ (ac_try="$ac_compiler -v >&5"
2324case "(($ac_try" in
2325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326  *) ac_try_echo=$ac_try;;
2327esac
2328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329  (eval "$ac_compiler -v >&5") 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }
2333{ (ac_try="$ac_compiler -V >&5"
2334case "(($ac_try" in
2335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336  *) ac_try_echo=$ac_try;;
2337esac
2338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339  (eval "$ac_compiler -V >&5") 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }
2343
2344cat >conftest.$ac_ext <<_ACEOF
2345/* confdefs.h.  */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h.  */
2350
2351int
2352main ()
2353{
2354
2355  ;
2356  return 0;
2357}
2358_ACEOF
2359ac_clean_files_save=$ac_clean_files
2360ac_clean_files="$ac_clean_files a.out a.exe b.out"
2361# Try to create an executable without -o first, disregard a.out.
2362# It will help us diagnose broken compilers, and finding out an intuition
2363# of exeext.
2364{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2365echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2366ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2367#
2368# List of possible output files, starting from the most likely.
2369# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2370# only as a last resort.  b.out is created by i960 compilers.
2371ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2372#
2373# The IRIX 6 linker writes into existing files which may not be
2374# executable, retaining their permissions.  Remove them first so a
2375# subsequent execution test works.
2376ac_rmfiles=
2377for ac_file in $ac_files
2378do
2379  case $ac_file in
2380    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2381    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2382  esac
2383done
2384rm -f $ac_rmfiles
2385
2386if { (ac_try="$ac_link_default"
2387case "(($ac_try" in
2388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389  *) ac_try_echo=$ac_try;;
2390esac
2391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392  (eval "$ac_link_default") 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; then
2396  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2397# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2398# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2399# so that the user can short-circuit this test for compilers unknown to
2400# Autoconf.
2401for ac_file in $ac_files ''
2402do
2403  test -f "$ac_file" || continue
2404  case $ac_file in
2405    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2406	;;
2407    [ab].out )
2408	# We found the default executable, but exeext='' is most
2409	# certainly right.
2410	break;;
2411    *.* )
2412        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2413	then :; else
2414	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2415	fi
2416	# We set ac_cv_exeext here because the later test for it is not
2417	# safe: cross compilers may not add the suffix if given an `-o'
2418	# argument, so we may need to know it at that point already.
2419	# Even if this section looks crufty: it has the advantage of
2420	# actually working.
2421	break;;
2422    * )
2423	break;;
2424  esac
2425done
2426test "$ac_cv_exeext" = no && ac_cv_exeext=
2427
2428else
2429  ac_file=''
2430fi
2431
2432{ echo "$as_me:$LINENO: result: $ac_file" >&5
2433echo "${ECHO_T}$ac_file" >&6; }
2434if test -z "$ac_file"; then
2435  echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2439See \`config.log' for more details." >&5
2440echo "$as_me: error: C compiler cannot create executables
2441See \`config.log' for more details." >&2;}
2442   { (exit 77); exit 77; }; }
2443fi
2444
2445ac_exeext=$ac_cv_exeext
2446
2447# Check that the compiler produces executables we can run.  If not, either
2448# the compiler is broken, or we cross compile.
2449{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2450echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2451# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2452# If not cross compiling, check that we can run a simple program.
2453if test "$cross_compiling" != yes; then
2454  if { ac_try='./$ac_file'
2455  { (case "(($ac_try" in
2456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457  *) ac_try_echo=$ac_try;;
2458esac
2459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460  (eval "$ac_try") 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; }; then
2464    cross_compiling=no
2465  else
2466    if test "$cross_compiling" = maybe; then
2467	cross_compiling=yes
2468    else
2469	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2470If you meant to cross compile, use \`--host'.
2471See \`config.log' for more details." >&5
2472echo "$as_me: error: cannot run C compiled programs.
2473If you meant to cross compile, use \`--host'.
2474See \`config.log' for more details." >&2;}
2475   { (exit 1); exit 1; }; }
2476    fi
2477  fi
2478fi
2479{ echo "$as_me:$LINENO: result: yes" >&5
2480echo "${ECHO_T}yes" >&6; }
2481
2482rm -f a.out a.exe conftest$ac_cv_exeext b.out
2483ac_clean_files=$ac_clean_files_save
2484# Check that the compiler produces executables we can run.  If not, either
2485# the compiler is broken, or we cross compile.
2486{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2487echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2488{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2489echo "${ECHO_T}$cross_compiling" >&6; }
2490
2491{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2492echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2493if { (ac_try="$ac_link"
2494case "(($ac_try" in
2495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496  *) ac_try_echo=$ac_try;;
2497esac
2498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499  (eval "$ac_link") 2>&5
2500  ac_status=$?
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); }; then
2503  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2504# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2505# work properly (i.e., refer to `conftest.exe'), while it won't with
2506# `rm'.
2507for ac_file in conftest.exe conftest conftest.*; do
2508  test -f "$ac_file" || continue
2509  case $ac_file in
2510    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2511    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2512	  break;;
2513    * ) break;;
2514  esac
2515done
2516else
2517  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2518See \`config.log' for more details." >&5
2519echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2520See \`config.log' for more details." >&2;}
2521   { (exit 1); exit 1; }; }
2522fi
2523
2524rm -f conftest$ac_cv_exeext
2525{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2526echo "${ECHO_T}$ac_cv_exeext" >&6; }
2527
2528rm -f conftest.$ac_ext
2529EXEEXT=$ac_cv_exeext
2530ac_exeext=$EXEEXT
2531{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2532echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2533if test "${ac_cv_objext+set}" = set; then
2534  echo $ECHO_N "(cached) $ECHO_C" >&6
2535else
2536  cat >conftest.$ac_ext <<_ACEOF
2537/* confdefs.h.  */
2538_ACEOF
2539cat confdefs.h >>conftest.$ac_ext
2540cat >>conftest.$ac_ext <<_ACEOF
2541/* end confdefs.h.  */
2542
2543int
2544main ()
2545{
2546
2547  ;
2548  return 0;
2549}
2550_ACEOF
2551rm -f conftest.o conftest.obj
2552if { (ac_try="$ac_compile"
2553case "(($ac_try" in
2554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555  *) ac_try_echo=$ac_try;;
2556esac
2557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558  (eval "$ac_compile") 2>&5
2559  ac_status=$?
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); }; then
2562  for ac_file in conftest.o conftest.obj conftest.*; do
2563  test -f "$ac_file" || continue;
2564  case $ac_file in
2565    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2566    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2567       break;;
2568  esac
2569done
2570else
2571  echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2575See \`config.log' for more details." >&5
2576echo "$as_me: error: cannot compute suffix of object files: cannot compile
2577See \`config.log' for more details." >&2;}
2578   { (exit 1); exit 1; }; }
2579fi
2580
2581rm -f conftest.$ac_cv_objext conftest.$ac_ext
2582fi
2583{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2584echo "${ECHO_T}$ac_cv_objext" >&6; }
2585OBJEXT=$ac_cv_objext
2586ac_objext=$OBJEXT
2587{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2588echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2589if test "${ac_cv_c_compiler_gnu+set}" = set; then
2590  echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592  cat >conftest.$ac_ext <<_ACEOF
2593/* confdefs.h.  */
2594_ACEOF
2595cat confdefs.h >>conftest.$ac_ext
2596cat >>conftest.$ac_ext <<_ACEOF
2597/* end confdefs.h.  */
2598
2599int
2600main ()
2601{
2602#ifndef __GNUC__
2603       choke me
2604#endif
2605
2606  ;
2607  return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (ac_try="$ac_compile"
2612case "(($ac_try" in
2613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614  *) ac_try_echo=$ac_try;;
2615esac
2616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617  (eval "$ac_compile") 2>conftest.er1
2618  ac_status=$?
2619  grep -v '^ *+' conftest.er1 >conftest.err
2620  rm -f conftest.er1
2621  cat conftest.err >&5
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); } && {
2624	 test -z "$ac_c_werror_flag" ||
2625	 test ! -s conftest.err
2626       } && test -s conftest.$ac_objext; then
2627  ac_compiler_gnu=yes
2628else
2629  echo "$as_me: failed program was:" >&5
2630sed 's/^/| /' conftest.$ac_ext >&5
2631
2632	ac_compiler_gnu=no
2633fi
2634
2635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636ac_cv_c_compiler_gnu=$ac_compiler_gnu
2637
2638fi
2639{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2640echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2641GCC=`test $ac_compiler_gnu = yes && echo yes`
2642ac_test_CFLAGS=${CFLAGS+set}
2643ac_save_CFLAGS=$CFLAGS
2644{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2645echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2646if test "${ac_cv_prog_cc_g+set}" = set; then
2647  echo $ECHO_N "(cached) $ECHO_C" >&6
2648else
2649  ac_save_c_werror_flag=$ac_c_werror_flag
2650   ac_c_werror_flag=yes
2651   ac_cv_prog_cc_g=no
2652   CFLAGS="-g"
2653   cat >conftest.$ac_ext <<_ACEOF
2654/* confdefs.h.  */
2655_ACEOF
2656cat confdefs.h >>conftest.$ac_ext
2657cat >>conftest.$ac_ext <<_ACEOF
2658/* end confdefs.h.  */
2659
2660int
2661main ()
2662{
2663
2664  ;
2665  return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext
2669if { (ac_try="$ac_compile"
2670case "(($ac_try" in
2671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672  *) ac_try_echo=$ac_try;;
2673esac
2674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675  (eval "$ac_compile") 2>conftest.er1
2676  ac_status=$?
2677  grep -v '^ *+' conftest.er1 >conftest.err
2678  rm -f conftest.er1
2679  cat conftest.err >&5
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); } && {
2682	 test -z "$ac_c_werror_flag" ||
2683	 test ! -s conftest.err
2684       } && test -s conftest.$ac_objext; then
2685  ac_cv_prog_cc_g=yes
2686else
2687  echo "$as_me: failed program was:" >&5
2688sed 's/^/| /' conftest.$ac_ext >&5
2689
2690	CFLAGS=""
2691      cat >conftest.$ac_ext <<_ACEOF
2692/* confdefs.h.  */
2693_ACEOF
2694cat confdefs.h >>conftest.$ac_ext
2695cat >>conftest.$ac_ext <<_ACEOF
2696/* end confdefs.h.  */
2697
2698int
2699main ()
2700{
2701
2702  ;
2703  return 0;
2704}
2705_ACEOF
2706rm -f conftest.$ac_objext
2707if { (ac_try="$ac_compile"
2708case "(($ac_try" in
2709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710  *) ac_try_echo=$ac_try;;
2711esac
2712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713  (eval "$ac_compile") 2>conftest.er1
2714  ac_status=$?
2715  grep -v '^ *+' conftest.er1 >conftest.err
2716  rm -f conftest.er1
2717  cat conftest.err >&5
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); } && {
2720	 test -z "$ac_c_werror_flag" ||
2721	 test ! -s conftest.err
2722       } && test -s conftest.$ac_objext; then
2723  :
2724else
2725  echo "$as_me: failed program was:" >&5
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
2728	ac_c_werror_flag=$ac_save_c_werror_flag
2729	 CFLAGS="-g"
2730	 cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h.  */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h.  */
2736
2737int
2738main ()
2739{
2740
2741  ;
2742  return 0;
2743}
2744_ACEOF
2745rm -f conftest.$ac_objext
2746if { (ac_try="$ac_compile"
2747case "(($ac_try" in
2748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749  *) ac_try_echo=$ac_try;;
2750esac
2751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752  (eval "$ac_compile") 2>conftest.er1
2753  ac_status=$?
2754  grep -v '^ *+' conftest.er1 >conftest.err
2755  rm -f conftest.er1
2756  cat conftest.err >&5
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); } && {
2759	 test -z "$ac_c_werror_flag" ||
2760	 test ! -s conftest.err
2761       } && test -s conftest.$ac_objext; then
2762  ac_cv_prog_cc_g=yes
2763else
2764  echo "$as_me: failed program was:" >&5
2765sed 's/^/| /' conftest.$ac_ext >&5
2766
2767
2768fi
2769
2770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771fi
2772
2773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774fi
2775
2776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2777   ac_c_werror_flag=$ac_save_c_werror_flag
2778fi
2779{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2780echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2781if test "$ac_test_CFLAGS" = set; then
2782  CFLAGS=$ac_save_CFLAGS
2783elif test $ac_cv_prog_cc_g = yes; then
2784  if test "$GCC" = yes; then
2785    CFLAGS="-g -O2"
2786  else
2787    CFLAGS="-g"
2788  fi
2789else
2790  if test "$GCC" = yes; then
2791    CFLAGS="-O2"
2792  else
2793    CFLAGS=
2794  fi
2795fi
2796{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2797echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2798if test "${ac_cv_prog_cc_c89+set}" = set; then
2799  echo $ECHO_N "(cached) $ECHO_C" >&6
2800else
2801  ac_cv_prog_cc_c89=no
2802ac_save_CC=$CC
2803cat >conftest.$ac_ext <<_ACEOF
2804/* confdefs.h.  */
2805_ACEOF
2806cat confdefs.h >>conftest.$ac_ext
2807cat >>conftest.$ac_ext <<_ACEOF
2808/* end confdefs.h.  */
2809#include <stdarg.h>
2810#include <stdio.h>
2811#include <sys/types.h>
2812#include <sys/stat.h>
2813/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2814struct buf { int x; };
2815FILE * (*rcsopen) (struct buf *, struct stat *, int);
2816static char *e (p, i)
2817     char **p;
2818     int i;
2819{
2820  return p[i];
2821}
2822static char *f (char * (*g) (char **, int), char **p, ...)
2823{
2824  char *s;
2825  va_list v;
2826  va_start (v,p);
2827  s = g (p, va_arg (v,int));
2828  va_end (v);
2829  return s;
2830}
2831
2832/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2833   function prototypes and stuff, but not '\xHH' hex character constants.
2834   These don't provoke an error unfortunately, instead are silently treated
2835   as 'x'.  The following induces an error, until -std is added to get
2836   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2837   array size at least.  It's necessary to write '\x00'==0 to get something
2838   that's true only with -std.  */
2839int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2840
2841/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2842   inside strings and character constants.  */
2843#define FOO(x) 'x'
2844int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2845
2846int test (int i, double x);
2847struct s1 {int (*f) (int a);};
2848struct s2 {int (*f) (double a);};
2849int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2850int argc;
2851char **argv;
2852int
2853main ()
2854{
2855return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2856  ;
2857  return 0;
2858}
2859_ACEOF
2860for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2861	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2862do
2863  CC="$ac_save_CC $ac_arg"
2864  rm -f conftest.$ac_objext
2865if { (ac_try="$ac_compile"
2866case "(($ac_try" in
2867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868  *) ac_try_echo=$ac_try;;
2869esac
2870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871  (eval "$ac_compile") 2>conftest.er1
2872  ac_status=$?
2873  grep -v '^ *+' conftest.er1 >conftest.err
2874  rm -f conftest.er1
2875  cat conftest.err >&5
2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877  (exit $ac_status); } && {
2878	 test -z "$ac_c_werror_flag" ||
2879	 test ! -s conftest.err
2880       } && test -s conftest.$ac_objext; then
2881  ac_cv_prog_cc_c89=$ac_arg
2882else
2883  echo "$as_me: failed program was:" >&5
2884sed 's/^/| /' conftest.$ac_ext >&5
2885
2886
2887fi
2888
2889rm -f core conftest.err conftest.$ac_objext
2890  test "x$ac_cv_prog_cc_c89" != "xno" && break
2891done
2892rm -f conftest.$ac_ext
2893CC=$ac_save_CC
2894
2895fi
2896# AC_CACHE_VAL
2897case "x$ac_cv_prog_cc_c89" in
2898  x)
2899    { echo "$as_me:$LINENO: result: none needed" >&5
2900echo "${ECHO_T}none needed" >&6; } ;;
2901  xno)
2902    { echo "$as_me:$LINENO: result: unsupported" >&5
2903echo "${ECHO_T}unsupported" >&6; } ;;
2904  *)
2905    CC="$CC $ac_cv_prog_cc_c89"
2906    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2907echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2908esac
2909
2910
2911ac_ext=c
2912ac_cpp='$CPP $CPPFLAGS'
2913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916
2917
2918
2919
2920
2921    if test "$GCC" = yes ; then
2922	    if test "$SHLICC2" = yes ; then
2923		    ac_cv_lbl_gcc_vers=2
2924		    V_CCOPT="-O2"
2925	    else
2926		    { echo "$as_me:$LINENO: checking gcc version" >&5
2927echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2928		    if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2929  echo $ECHO_N "(cached) $ECHO_C" >&6
2930else
2931  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2932			    sed -e '/^gcc version /!d' \
2933				-e 's/^gcc version //' \
2934				-e 's/ .*//' -e 's/^[^0-9]*//' \
2935				-e 's/\..*//'`
2936fi
2937
2938		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2939echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2940		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2941			    V_CCOPT="-O2"
2942		    fi
2943	    fi
2944    else
2945	    { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2946echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2947	    if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2948  echo $ECHO_N "(cached) $ECHO_C" >&6
2949else
2950
2951cat >conftest.$ac_ext <<_ACEOF
2952/* confdefs.h.  */
2953_ACEOF
2954cat confdefs.h >>conftest.$ac_ext
2955cat >>conftest.$ac_ext <<_ACEOF
2956/* end confdefs.h.  */
2957#include <sys/types.h>
2958int
2959main ()
2960{
2961int frob(int, char *)
2962  ;
2963  return 0;
2964}
2965_ACEOF
2966rm -f conftest.$ac_objext
2967if { (ac_try="$ac_compile"
2968case "(($ac_try" in
2969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970  *) ac_try_echo=$ac_try;;
2971esac
2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973  (eval "$ac_compile") 2>conftest.er1
2974  ac_status=$?
2975  grep -v '^ *+' conftest.er1 >conftest.err
2976  rm -f conftest.er1
2977  cat conftest.err >&5
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); } && {
2980	 test -z "$ac_c_werror_flag" ||
2981	 test ! -s conftest.err
2982       } && test -s conftest.$ac_objext; then
2983  ac_cv_lbl_cc_ansi_prototypes=yes
2984else
2985  echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988	ac_cv_lbl_cc_ansi_prototypes=no
2989fi
2990
2991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992fi
2993
2994	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2995echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2996	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2997		    case "$host_os" in
2998
2999		    hpux*)
3000			    { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
3001echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
3002			    savedcflags="$CFLAGS"
3003			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3004			    if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
3005  echo $ECHO_N "(cached) $ECHO_C" >&6
3006else
3007  cat >conftest.$ac_ext <<_ACEOF
3008/* confdefs.h.  */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h.  */
3013#include <sys/types.h>
3014int
3015main ()
3016{
3017int frob(int, char *)
3018  ;
3019  return 0;
3020}
3021_ACEOF
3022rm -f conftest.$ac_objext
3023if { (ac_try="$ac_compile"
3024case "(($ac_try" in
3025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026  *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029  (eval "$ac_compile") 2>conftest.er1
3030  ac_status=$?
3031  grep -v '^ *+' conftest.er1 >conftest.err
3032  rm -f conftest.er1
3033  cat conftest.err >&5
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); } && {
3036	 test -z "$ac_c_werror_flag" ||
3037	 test ! -s conftest.err
3038       } && test -s conftest.$ac_objext; then
3039  ac_cv_lbl_cc_hpux_cc_aa=yes
3040else
3041  echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044	ac_cv_lbl_cc_hpux_cc_aa=no
3045fi
3046
3047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048fi
3049
3050			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3051echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3052			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3053				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3054echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3055   { (exit 1); exit 1; }; }
3056			    fi
3057			    CFLAGS="$savedcflags"
3058			    V_CCOPT="-Aa $V_CCOPT"
3059
3060cat >>confdefs.h <<\_ACEOF
3061#define _HPUX_SOURCE 1
3062_ACEOF
3063
3064			    ;;
3065
3066		    osf*)
3067			    { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3068echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3069			    savedcflags="$CFLAGS"
3070			    CFLAGS="-std1"
3071			    if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3072  echo $ECHO_N "(cached) $ECHO_C" >&6
3073else
3074  cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h.  */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h.  */
3080#include <sys/types.h>
3081int
3082main ()
3083{
3084int frob(int, char *)
3085  ;
3086  return 0;
3087}
3088_ACEOF
3089rm -f conftest.$ac_objext
3090if { (ac_try="$ac_compile"
3091case "(($ac_try" in
3092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093  *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096  (eval "$ac_compile") 2>conftest.er1
3097  ac_status=$?
3098  grep -v '^ *+' conftest.er1 >conftest.err
3099  rm -f conftest.er1
3100  cat conftest.err >&5
3101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); } && {
3103	 test -z "$ac_c_werror_flag" ||
3104	 test ! -s conftest.err
3105       } && test -s conftest.$ac_objext; then
3106  ac_cv_lbl_cc_osf1_cc_std1=yes
3107else
3108  echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111	ac_cv_lbl_cc_osf1_cc_std1=no
3112fi
3113
3114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115fi
3116
3117			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3118echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3119			    if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3120				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3121echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3122   { (exit 1); exit 1; }; }
3123			    fi
3124			    CFLAGS="$savedcflags"
3125			    V_CCOPT="-std1 $V_CCOPT"
3126			    ;;
3127
3128		    *)
3129			    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3130echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3131   { (exit 1); exit 1; }; }
3132			    ;;
3133		    esac
3134	    fi
3135	    V_INCLS="$V_INCLS -I/usr/local/include"
3136	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
3137
3138	    case "$host_os" in
3139
3140	    irix*)
3141		    V_CCOPT="$V_CCOPT -xansi -signed -g3"
3142		    ;;
3143
3144	    osf*)
3145	    	    #
3146		    # Presumed to be DEC OSF/1, Digital UNIX, or
3147		    # Tru64 UNIX.
3148		    #
3149		    V_CCOPT="$V_CCOPT -g3"
3150		    ;;
3151
3152	    ultrix*)
3153		    { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3154echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3155		    if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3156  echo $ECHO_N "(cached) $ECHO_C" >&6
3157else
3158  cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h.  */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h.  */
3164#include <sys/types.h>
3165int
3166main ()
3167{
3168struct a { int b; };
3169			    void c(const struct a *)
3170  ;
3171  return 0;
3172}
3173_ACEOF
3174rm -f conftest.$ac_objext
3175if { (ac_try="$ac_compile"
3176case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181  (eval "$ac_compile") 2>conftest.er1
3182  ac_status=$?
3183  grep -v '^ *+' conftest.er1 >conftest.err
3184  rm -f conftest.er1
3185  cat conftest.err >&5
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); } && {
3188	 test -z "$ac_c_werror_flag" ||
3189	 test ! -s conftest.err
3190       } && test -s conftest.$ac_objext; then
3191  ac_cv_lbl_cc_const_proto=yes
3192else
3193  echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196	ac_cv_lbl_cc_const_proto=no
3197fi
3198
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200fi
3201
3202		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3203echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3204		    if test $ac_cv_lbl_cc_const_proto = no ; then
3205
3206cat >>confdefs.h <<\_ACEOF
3207#define const
3208_ACEOF
3209
3210		    fi
3211		    ;;
3212	    esac
3213    fi
3214
3215
3216    if test "$GCC" = yes ; then
3217	    #
3218	    # On platforms where we build a shared library:
3219	    #
3220	    #	add options to generate position-independent code,
3221	    #	if necessary (it's the default in AIX and Darwin/OS X);
3222	    #
3223	    #	define option to set the soname of the shared library,
3224	    #	if the OS supports that;
3225	    #
3226	    #	add options to specify, at link time, a directory to
3227	    #	add to the run-time search path, if that's necessary.
3228	    #
3229	    V_SHLIB_CMD="\$(CC)"
3230	    V_SHLIB_OPT="-shared"
3231	    case "$host_os" in
3232
3233	    aix*)
3234		    ;;
3235
3236	    freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3237	    	    #
3238		    # Platforms where the linker is the GNU linker
3239		    # or accepts command-line arguments like
3240		    # those the GNU linker accepts.
3241		    #
3242		    # Some instruction sets require -fPIC on some
3243		    # operating systems.  Check for them.  If you
3244		    # have a combination that requires it, add it
3245		    # here.
3246		    #
3247		    PIC_OPT=-fpic
3248		    case "$host_cpu" in
3249
3250		    sparc64*)
3251			case "$host_os" in
3252
3253			freebsd*|openbsd*)
3254			    PIC_OPT=-fPIC
3255			    ;;
3256			esac
3257			;;
3258		    esac
3259		    V_CCOPT="$V_CCOPT $PIC_OPT"
3260		    V_SONAME_OPT="-Wl,-soname,"
3261		    V_RPATH_OPT="-Wl,-rpath,"
3262		    ;;
3263
3264	    hpux*)
3265		    V_CCOPT="$V_CCOPT -fpic"
3266	    	    #
3267		    # XXX - this assumes GCC is using the HP linker,
3268		    # rather than the GNU linker, and that the "+h"
3269		    # option is used on all HP-UX platforms, both .sl
3270		    # and .so.
3271		    #
3272		    V_SONAME_OPT="-Wl,+h,"
3273		    #
3274		    # By default, directories specifed with -L
3275		    # are added to the run-time search path, so
3276		    # we don't add them in pcap-config.
3277		    #
3278		    ;;
3279
3280	    solaris*)
3281		    V_CCOPT="$V_CCOPT -fpic"
3282		    #
3283		    # XXX - this assumes GCC is using the Sun linker,
3284		    # rather than the GNU linker.
3285		    #
3286		    V_SONAME_OPT="-Wl,-h,"
3287		    V_RPATH_OPT="-Wl,-R,"
3288		    ;;
3289	    esac
3290    else
3291	    #
3292	    # Set the appropriate compiler flags and, on platforms
3293	    # where we build a shared library:
3294	    #
3295	    #	add options to generate position-independent code,
3296	    #	if necessary (it's the default in Darwin/OS X);
3297	    #
3298	    #	if we generate ".so" shared libraries, define the
3299	    #	appropriate options for building the shared library;
3300	    #
3301	    #	add options to specify, at link time, a directory to
3302	    #	add to the run-time search path, if that's necessary.
3303	    #
3304	    # Note: spaces after V_SONAME_OPT are significant; on
3305	    # some platforms the soname is passed with a GCC-like
3306	    # "-Wl,-soname,{soname}" option, with the soname part
3307	    # of the option, while on other platforms the C compiler
3308	    # driver takes it as a regular option with the soname
3309	    # following the option.  The same applies to V_RPATH_OPT.
3310	    #
3311	    case "$host_os" in
3312
3313	    aix*)
3314		    V_SHLIB_CMD="\$(CC)"
3315		    V_SHLIB_OPT="-G -bnoentry -bexpall"
3316		    ;;
3317
3318	    freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3319		    #
3320		    # "cc" is GCC.
3321		    #
3322		    V_CCOPT="$V_CCOPT -fpic"
3323		    V_SHLIB_CMD="\$(CC)"
3324		    V_SHLIB_OPT="-shared"
3325		    V_SONAME_OPT="-Wl,-soname,"
3326		    V_RPATH_OPT="-Wl,-rpath,"
3327		    ;;
3328
3329	    hpux*)
3330		    V_CCOPT="$V_CCOPT +z"
3331		    V_SHLIB_CMD="\$(LD)"
3332		    V_SHLIB_OPT="-b"
3333		    V_SONAME_OPT="+h "
3334		    #
3335		    # By default, directories specifed with -L
3336		    # are added to the run-time search path, so
3337		    # we don't add them in pcap-config.
3338		    #
3339		    ;;
3340
3341	    osf*)
3342	    	    #
3343		    # Presumed to be DEC OSF/1, Digital UNIX, or
3344		    # Tru64 UNIX.
3345		    #
3346		    V_SHLIB_CMD="\$(CC)"
3347		    V_SHLIB_OPT="-shared"
3348		    V_SONAME_OPT="-soname "
3349		    V_RPATH_OPT="-rpath "
3350		    ;;
3351
3352	    solaris*)
3353		    V_CCOPT="$V_CCOPT -Kpic"
3354		    V_SHLIB_CMD="\$(CC)"
3355		    V_SHLIB_OPT="-G"
3356		    V_SONAME_OPT="-h "
3357		    V_RPATH_OPT="-R"
3358		    ;;
3359	    esac
3360    fi
3361
3362{ echo "$as_me:$LINENO: checking for inline" >&5
3363echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3364    save_CFLAGS="$CFLAGS"
3365    CFLAGS="$V_CCOPT"
3366    if test "${ac_cv_lbl_inline+set}" = set; then
3367  echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369
3370	ac_cv_lbl_inline=""
3371	ac_lbl_cc_inline=no
3372	for ac_lbl_inline in inline __inline__ __inline
3373	do
3374	    cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h.  */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h.  */
3380#define inline $ac_lbl_inline
3381		static inline struct iltest *foo(void);
3382		struct iltest {
3383		    int iltest1;
3384		    int iltest2;
3385		};
3386
3387		static inline struct iltest *
3388		foo()
3389		{
3390		    static struct iltest xxx;
3391
3392		    return &xxx;
3393		}
3394int
3395main ()
3396{
3397
3398  ;
3399  return 0;
3400}
3401_ACEOF
3402rm -f conftest.$ac_objext
3403if { (ac_try="$ac_compile"
3404case "(($ac_try" in
3405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406  *) ac_try_echo=$ac_try;;
3407esac
3408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409  (eval "$ac_compile") 2>conftest.er1
3410  ac_status=$?
3411  grep -v '^ *+' conftest.er1 >conftest.err
3412  rm -f conftest.er1
3413  cat conftest.err >&5
3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); } && {
3416	 test -z "$ac_c_werror_flag" ||
3417	 test ! -s conftest.err
3418       } && test -s conftest.$ac_objext; then
3419  ac_lbl_cc_inline=yes
3420else
3421  echo "$as_me: failed program was:" >&5
3422sed 's/^/| /' conftest.$ac_ext >&5
3423
3424
3425fi
3426
3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428	    if test "$ac_lbl_cc_inline" = yes ; then
3429		break;
3430	    fi
3431	done
3432	if test "$ac_lbl_cc_inline" = yes ; then
3433	    ac_cv_lbl_inline=$ac_lbl_inline
3434	fi
3435fi
3436
3437    CFLAGS="$save_CFLAGS"
3438    if test ! -z "$ac_cv_lbl_inline" ; then
3439	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3440echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3441    else
3442	{ echo "$as_me:$LINENO: result: no" >&5
3443echo "${ECHO_T}no" >&6; }
3444    fi
3445
3446cat >>confdefs.h <<_ACEOF
3447#define inline $ac_cv_lbl_inline
3448_ACEOF
3449
3450
3451{ echo "$as_me:$LINENO: checking for __attribute__" >&5
3452echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3453if test "${ac_cv___attribute__+set}" = set; then
3454  echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456
3457cat >conftest.$ac_ext <<_ACEOF
3458/* confdefs.h.  */
3459_ACEOF
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h.  */
3463
3464#include <stdlib.h>
3465
3466static void foo(void) __attribute__ ((noreturn));
3467
3468static void
3469foo(void)
3470{
3471  exit(1);
3472}
3473
3474int
3475main(int argc, char **argv)
3476{
3477  foo();
3478}
3479
3480_ACEOF
3481rm -f conftest.$ac_objext
3482if { (ac_try="$ac_compile"
3483case "(($ac_try" in
3484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485  *) ac_try_echo=$ac_try;;
3486esac
3487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488  (eval "$ac_compile") 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } && {
3495	 test -z "$ac_c_werror_flag" ||
3496	 test ! -s conftest.err
3497       } && test -s conftest.$ac_objext; then
3498  ac_cv___attribute__=yes
3499else
3500  echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503	ac_cv___attribute__=no
3504fi
3505
3506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507fi
3508
3509if test "$ac_cv___attribute__" = "yes"; then
3510
3511cat >>confdefs.h <<\_ACEOF
3512#define HAVE___ATTRIBUTE__ 1
3513_ACEOF
3514
3515  V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3516else
3517  V_DEFS="$V_DEFS -D_U_=\"\""
3518fi
3519{ echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3520echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3521
3522
3523ac_ext=c
3524ac_cpp='$CPP $CPPFLAGS'
3525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3529echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3530# On Suns, sometimes $CPP names a directory.
3531if test -n "$CPP" && test -d "$CPP"; then
3532  CPP=
3533fi
3534if test -z "$CPP"; then
3535  if test "${ac_cv_prog_CPP+set}" = set; then
3536  echo $ECHO_N "(cached) $ECHO_C" >&6
3537else
3538      # Double quotes because CPP needs to be expanded
3539    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3540    do
3541      ac_preproc_ok=false
3542for ac_c_preproc_warn_flag in '' yes
3543do
3544  # Use a header file that comes with gcc, so configuring glibc
3545  # with a fresh cross-compiler works.
3546  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547  # <limits.h> exists even on freestanding compilers.
3548  # On the NeXT, cc -E runs the code through the compiler's parser,
3549  # not just through cpp. "Syntax error" is here to catch this case.
3550  cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h.  */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h.  */
3556#ifdef __STDC__
3557# include <limits.h>
3558#else
3559# include <assert.h>
3560#endif
3561		     Syntax error
3562_ACEOF
3563if { (ac_try="$ac_cpp conftest.$ac_ext"
3564case "(($ac_try" in
3565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566  *) ac_try_echo=$ac_try;;
3567esac
3568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570  ac_status=$?
3571  grep -v '^ *+' conftest.er1 >conftest.err
3572  rm -f conftest.er1
3573  cat conftest.err >&5
3574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575  (exit $ac_status); } >/dev/null && {
3576	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3577	 test ! -s conftest.err
3578       }; then
3579  :
3580else
3581  echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584  # Broken: fails on valid input.
3585continue
3586fi
3587
3588rm -f conftest.err conftest.$ac_ext
3589
3590  # OK, works on sane cases.  Now check whether nonexistent headers
3591  # can be detected and how.
3592  cat >conftest.$ac_ext <<_ACEOF
3593/* confdefs.h.  */
3594_ACEOF
3595cat confdefs.h >>conftest.$ac_ext
3596cat >>conftest.$ac_ext <<_ACEOF
3597/* end confdefs.h.  */
3598#include <ac_nonexistent.h>
3599_ACEOF
3600if { (ac_try="$ac_cpp conftest.$ac_ext"
3601case "(($ac_try" in
3602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603  *) ac_try_echo=$ac_try;;
3604esac
3605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3607  ac_status=$?
3608  grep -v '^ *+' conftest.er1 >conftest.err
3609  rm -f conftest.er1
3610  cat conftest.err >&5
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); } >/dev/null && {
3613	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3614	 test ! -s conftest.err
3615       }; then
3616  # Broken: success on invalid input.
3617continue
3618else
3619  echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622  # Passes both tests.
3623ac_preproc_ok=:
3624break
3625fi
3626
3627rm -f conftest.err conftest.$ac_ext
3628
3629done
3630# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631rm -f conftest.err conftest.$ac_ext
3632if $ac_preproc_ok; then
3633  break
3634fi
3635
3636    done
3637    ac_cv_prog_CPP=$CPP
3638
3639fi
3640  CPP=$ac_cv_prog_CPP
3641else
3642  ac_cv_prog_CPP=$CPP
3643fi
3644{ echo "$as_me:$LINENO: result: $CPP" >&5
3645echo "${ECHO_T}$CPP" >&6; }
3646ac_preproc_ok=false
3647for ac_c_preproc_warn_flag in '' yes
3648do
3649  # Use a header file that comes with gcc, so configuring glibc
3650  # with a fresh cross-compiler works.
3651  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652  # <limits.h> exists even on freestanding compilers.
3653  # On the NeXT, cc -E runs the code through the compiler's parser,
3654  # not just through cpp. "Syntax error" is here to catch this case.
3655  cat >conftest.$ac_ext <<_ACEOF
3656/* confdefs.h.  */
3657_ACEOF
3658cat confdefs.h >>conftest.$ac_ext
3659cat >>conftest.$ac_ext <<_ACEOF
3660/* end confdefs.h.  */
3661#ifdef __STDC__
3662# include <limits.h>
3663#else
3664# include <assert.h>
3665#endif
3666		     Syntax error
3667_ACEOF
3668if { (ac_try="$ac_cpp conftest.$ac_ext"
3669case "(($ac_try" in
3670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671  *) ac_try_echo=$ac_try;;
3672esac
3673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3675  ac_status=$?
3676  grep -v '^ *+' conftest.er1 >conftest.err
3677  rm -f conftest.er1
3678  cat conftest.err >&5
3679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680  (exit $ac_status); } >/dev/null && {
3681	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3682	 test ! -s conftest.err
3683       }; then
3684  :
3685else
3686  echo "$as_me: failed program was:" >&5
3687sed 's/^/| /' conftest.$ac_ext >&5
3688
3689  # Broken: fails on valid input.
3690continue
3691fi
3692
3693rm -f conftest.err conftest.$ac_ext
3694
3695  # OK, works on sane cases.  Now check whether nonexistent headers
3696  # can be detected and how.
3697  cat >conftest.$ac_ext <<_ACEOF
3698/* confdefs.h.  */
3699_ACEOF
3700cat confdefs.h >>conftest.$ac_ext
3701cat >>conftest.$ac_ext <<_ACEOF
3702/* end confdefs.h.  */
3703#include <ac_nonexistent.h>
3704_ACEOF
3705if { (ac_try="$ac_cpp conftest.$ac_ext"
3706case "(($ac_try" in
3707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708  *) ac_try_echo=$ac_try;;
3709esac
3710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3712  ac_status=$?
3713  grep -v '^ *+' conftest.er1 >conftest.err
3714  rm -f conftest.er1
3715  cat conftest.err >&5
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); } >/dev/null && {
3718	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3719	 test ! -s conftest.err
3720       }; then
3721  # Broken: success on invalid input.
3722continue
3723else
3724  echo "$as_me: failed program was:" >&5
3725sed 's/^/| /' conftest.$ac_ext >&5
3726
3727  # Passes both tests.
3728ac_preproc_ok=:
3729break
3730fi
3731
3732rm -f conftest.err conftest.$ac_ext
3733
3734done
3735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3736rm -f conftest.err conftest.$ac_ext
3737if $ac_preproc_ok; then
3738  :
3739else
3740  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3741See \`config.log' for more details." >&5
3742echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3743See \`config.log' for more details." >&2;}
3744   { (exit 1); exit 1; }; }
3745fi
3746
3747ac_ext=c
3748ac_cpp='$CPP $CPPFLAGS'
3749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753
3754{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3755echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3756if test "${ac_cv_path_GREP+set}" = set; then
3757  echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759  # Extract the first word of "grep ggrep" to use in msg output
3760if test -z "$GREP"; then
3761set dummy grep ggrep; ac_prog_name=$2
3762if test "${ac_cv_path_GREP+set}" = set; then
3763  echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765  ac_path_GREP_found=false
3766# Loop through the user's path and test for each of PROGNAME-LIST
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3769do
3770  IFS=$as_save_IFS
3771  test -z "$as_dir" && as_dir=.
3772  for ac_prog in grep ggrep; do
3773  for ac_exec_ext in '' $ac_executable_extensions; do
3774    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3775    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3776    # Check for GNU ac_path_GREP and select it if it is found.
3777  # Check for GNU $ac_path_GREP
3778case `"$ac_path_GREP" --version 2>&1` in
3779*GNU*)
3780  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3781*)
3782  ac_count=0
3783  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3784  while :
3785  do
3786    cat "conftest.in" "conftest.in" >"conftest.tmp"
3787    mv "conftest.tmp" "conftest.in"
3788    cp "conftest.in" "conftest.nl"
3789    echo 'GREP' >> "conftest.nl"
3790    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3791    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3792    ac_count=`expr $ac_count + 1`
3793    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3794      # Best one so far, save it but keep looking for a better one
3795      ac_cv_path_GREP="$ac_path_GREP"
3796      ac_path_GREP_max=$ac_count
3797    fi
3798    # 10*(2^10) chars as input seems more than enough
3799    test $ac_count -gt 10 && break
3800  done
3801  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3802esac
3803
3804
3805    $ac_path_GREP_found && break 3
3806  done
3807done
3808
3809done
3810IFS=$as_save_IFS
3811
3812
3813fi
3814
3815GREP="$ac_cv_path_GREP"
3816if test -z "$GREP"; then
3817  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3818echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3819   { (exit 1); exit 1; }; }
3820fi
3821
3822else
3823  ac_cv_path_GREP=$GREP
3824fi
3825
3826
3827fi
3828{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3829echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3830 GREP="$ac_cv_path_GREP"
3831
3832
3833{ echo "$as_me:$LINENO: checking for egrep" >&5
3834echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3835if test "${ac_cv_path_EGREP+set}" = set; then
3836  echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3839   then ac_cv_path_EGREP="$GREP -E"
3840   else
3841     # Extract the first word of "egrep" to use in msg output
3842if test -z "$EGREP"; then
3843set dummy egrep; ac_prog_name=$2
3844if test "${ac_cv_path_EGREP+set}" = set; then
3845  echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
3847  ac_path_EGREP_found=false
3848# Loop through the user's path and test for each of PROGNAME-LIST
3849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3851do
3852  IFS=$as_save_IFS
3853  test -z "$as_dir" && as_dir=.
3854  for ac_prog in egrep; do
3855  for ac_exec_ext in '' $ac_executable_extensions; do
3856    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3857    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3858    # Check for GNU ac_path_EGREP and select it if it is found.
3859  # Check for GNU $ac_path_EGREP
3860case `"$ac_path_EGREP" --version 2>&1` in
3861*GNU*)
3862  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3863*)
3864  ac_count=0
3865  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3866  while :
3867  do
3868    cat "conftest.in" "conftest.in" >"conftest.tmp"
3869    mv "conftest.tmp" "conftest.in"
3870    cp "conftest.in" "conftest.nl"
3871    echo 'EGREP' >> "conftest.nl"
3872    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3873    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3874    ac_count=`expr $ac_count + 1`
3875    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3876      # Best one so far, save it but keep looking for a better one
3877      ac_cv_path_EGREP="$ac_path_EGREP"
3878      ac_path_EGREP_max=$ac_count
3879    fi
3880    # 10*(2^10) chars as input seems more than enough
3881    test $ac_count -gt 10 && break
3882  done
3883  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3884esac
3885
3886
3887    $ac_path_EGREP_found && break 3
3888  done
3889done
3890
3891done
3892IFS=$as_save_IFS
3893
3894
3895fi
3896
3897EGREP="$ac_cv_path_EGREP"
3898if test -z "$EGREP"; then
3899  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3900echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3901   { (exit 1); exit 1; }; }
3902fi
3903
3904else
3905  ac_cv_path_EGREP=$EGREP
3906fi
3907
3908
3909   fi
3910fi
3911{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3912echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3913 EGREP="$ac_cv_path_EGREP"
3914
3915
3916{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3917echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3918if test "${ac_cv_header_stdc+set}" = set; then
3919  echo $ECHO_N "(cached) $ECHO_C" >&6
3920else
3921  cat >conftest.$ac_ext <<_ACEOF
3922/* confdefs.h.  */
3923_ACEOF
3924cat confdefs.h >>conftest.$ac_ext
3925cat >>conftest.$ac_ext <<_ACEOF
3926/* end confdefs.h.  */
3927#include <stdlib.h>
3928#include <stdarg.h>
3929#include <string.h>
3930#include <float.h>
3931
3932int
3933main ()
3934{
3935
3936  ;
3937  return 0;
3938}
3939_ACEOF
3940rm -f conftest.$ac_objext
3941if { (ac_try="$ac_compile"
3942case "(($ac_try" in
3943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944  *) ac_try_echo=$ac_try;;
3945esac
3946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947  (eval "$ac_compile") 2>conftest.er1
3948  ac_status=$?
3949  grep -v '^ *+' conftest.er1 >conftest.err
3950  rm -f conftest.er1
3951  cat conftest.err >&5
3952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953  (exit $ac_status); } && {
3954	 test -z "$ac_c_werror_flag" ||
3955	 test ! -s conftest.err
3956       } && test -s conftest.$ac_objext; then
3957  ac_cv_header_stdc=yes
3958else
3959  echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
3961
3962	ac_cv_header_stdc=no
3963fi
3964
3965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966
3967if test $ac_cv_header_stdc = yes; then
3968  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3969  cat >conftest.$ac_ext <<_ACEOF
3970/* confdefs.h.  */
3971_ACEOF
3972cat confdefs.h >>conftest.$ac_ext
3973cat >>conftest.$ac_ext <<_ACEOF
3974/* end confdefs.h.  */
3975#include <string.h>
3976
3977_ACEOF
3978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3979  $EGREP "memchr" >/dev/null 2>&1; then
3980  :
3981else
3982  ac_cv_header_stdc=no
3983fi
3984rm -f conftest*
3985
3986fi
3987
3988if test $ac_cv_header_stdc = yes; then
3989  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3990  cat >conftest.$ac_ext <<_ACEOF
3991/* confdefs.h.  */
3992_ACEOF
3993cat confdefs.h >>conftest.$ac_ext
3994cat >>conftest.$ac_ext <<_ACEOF
3995/* end confdefs.h.  */
3996#include <stdlib.h>
3997
3998_ACEOF
3999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4000  $EGREP "free" >/dev/null 2>&1; then
4001  :
4002else
4003  ac_cv_header_stdc=no
4004fi
4005rm -f conftest*
4006
4007fi
4008
4009if test $ac_cv_header_stdc = yes; then
4010  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4011  if test "$cross_compiling" = yes; then
4012  :
4013else
4014  cat >conftest.$ac_ext <<_ACEOF
4015/* confdefs.h.  */
4016_ACEOF
4017cat confdefs.h >>conftest.$ac_ext
4018cat >>conftest.$ac_ext <<_ACEOF
4019/* end confdefs.h.  */
4020#include <ctype.h>
4021#include <stdlib.h>
4022#if ((' ' & 0x0FF) == 0x020)
4023# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4024# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4025#else
4026# define ISLOWER(c) \
4027		   (('a' <= (c) && (c) <= 'i') \
4028		     || ('j' <= (c) && (c) <= 'r') \
4029		     || ('s' <= (c) && (c) <= 'z'))
4030# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4031#endif
4032
4033#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4034int
4035main ()
4036{
4037  int i;
4038  for (i = 0; i < 256; i++)
4039    if (XOR (islower (i), ISLOWER (i))
4040	|| toupper (i) != TOUPPER (i))
4041      return 2;
4042  return 0;
4043}
4044_ACEOF
4045rm -f conftest$ac_exeext
4046if { (ac_try="$ac_link"
4047case "(($ac_try" in
4048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049  *) ac_try_echo=$ac_try;;
4050esac
4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052  (eval "$ac_link") 2>&5
4053  ac_status=$?
4054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4056  { (case "(($ac_try" in
4057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058  *) ac_try_echo=$ac_try;;
4059esac
4060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061  (eval "$ac_try") 2>&5
4062  ac_status=$?
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); }; }; then
4065  :
4066else
4067  echo "$as_me: program exited with status $ac_status" >&5
4068echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071( exit $ac_status )
4072ac_cv_header_stdc=no
4073fi
4074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4075fi
4076
4077
4078fi
4079fi
4080{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4081echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4082if test $ac_cv_header_stdc = yes; then
4083
4084cat >>confdefs.h <<\_ACEOF
4085#define STDC_HEADERS 1
4086_ACEOF
4087
4088fi
4089
4090# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4101		  inttypes.h stdint.h unistd.h
4102do
4103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4104{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4107  echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109  cat >conftest.$ac_ext <<_ACEOF
4110/* confdefs.h.  */
4111_ACEOF
4112cat confdefs.h >>conftest.$ac_ext
4113cat >>conftest.$ac_ext <<_ACEOF
4114/* end confdefs.h.  */
4115$ac_includes_default
4116
4117#include <$ac_header>
4118_ACEOF
4119rm -f conftest.$ac_objext
4120if { (ac_try="$ac_compile"
4121case "(($ac_try" in
4122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123  *) ac_try_echo=$ac_try;;
4124esac
4125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126  (eval "$ac_compile") 2>conftest.er1
4127  ac_status=$?
4128  grep -v '^ *+' conftest.er1 >conftest.err
4129  rm -f conftest.er1
4130  cat conftest.err >&5
4131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132  (exit $ac_status); } && {
4133	 test -z "$ac_c_werror_flag" ||
4134	 test ! -s conftest.err
4135       } && test -s conftest.$ac_objext; then
4136  eval "$as_ac_Header=yes"
4137else
4138  echo "$as_me: failed program was:" >&5
4139sed 's/^/| /' conftest.$ac_ext >&5
4140
4141	eval "$as_ac_Header=no"
4142fi
4143
4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145fi
4146ac_res=`eval echo '${'$as_ac_Header'}'`
4147	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4148echo "${ECHO_T}$ac_res" >&6; }
4149if test `eval echo '${'$as_ac_Header'}'` = yes; then
4150  cat >>confdefs.h <<_ACEOF
4151#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4152_ACEOF
4153
4154fi
4155
4156done
4157
4158
4159
4160for ac_header in sys/bitypes.h
4161do
4162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4164  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4167  echo $ECHO_N "(cached) $ECHO_C" >&6
4168fi
4169ac_res=`eval echo '${'$as_ac_Header'}'`
4170	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4171echo "${ECHO_T}$ac_res" >&6; }
4172else
4173  # Is the header compilable?
4174{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4176cat >conftest.$ac_ext <<_ACEOF
4177/* confdefs.h.  */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
4181/* end confdefs.h.  */
4182$ac_includes_default
4183#include <$ac_header>
4184_ACEOF
4185rm -f conftest.$ac_objext
4186if { (ac_try="$ac_compile"
4187case "(($ac_try" in
4188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189  *) ac_try_echo=$ac_try;;
4190esac
4191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192  (eval "$ac_compile") 2>conftest.er1
4193  ac_status=$?
4194  grep -v '^ *+' conftest.er1 >conftest.err
4195  rm -f conftest.er1
4196  cat conftest.err >&5
4197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198  (exit $ac_status); } && {
4199	 test -z "$ac_c_werror_flag" ||
4200	 test ! -s conftest.err
4201       } && test -s conftest.$ac_objext; then
4202  ac_header_compiler=yes
4203else
4204  echo "$as_me: failed program was:" >&5
4205sed 's/^/| /' conftest.$ac_ext >&5
4206
4207	ac_header_compiler=no
4208fi
4209
4210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4212echo "${ECHO_T}$ac_header_compiler" >&6; }
4213
4214# Is the header present?
4215{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4216echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4217cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h.  */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h.  */
4223#include <$ac_header>
4224_ACEOF
4225if { (ac_try="$ac_cpp conftest.$ac_ext"
4226case "(($ac_try" in
4227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228  *) ac_try_echo=$ac_try;;
4229esac
4230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4232  ac_status=$?
4233  grep -v '^ *+' conftest.er1 >conftest.err
4234  rm -f conftest.er1
4235  cat conftest.err >&5
4236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237  (exit $ac_status); } >/dev/null && {
4238	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4239	 test ! -s conftest.err
4240       }; then
4241  ac_header_preproc=yes
4242else
4243  echo "$as_me: failed program was:" >&5
4244sed 's/^/| /' conftest.$ac_ext >&5
4245
4246  ac_header_preproc=no
4247fi
4248
4249rm -f conftest.err conftest.$ac_ext
4250{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4251echo "${ECHO_T}$ac_header_preproc" >&6; }
4252
4253# So?  What about this header?
4254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4255  yes:no: )
4256    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4257echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4258    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4259echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4260    ac_header_preproc=yes
4261    ;;
4262  no:yes:* )
4263    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4264echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4265    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4266echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4267    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4268echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4269    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4270echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4271    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4272echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4273    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4274echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4275
4276    ;;
4277esac
4278{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4281  echo $ECHO_N "(cached) $ECHO_C" >&6
4282else
4283  eval "$as_ac_Header=\$ac_header_preproc"
4284fi
4285ac_res=`eval echo '${'$as_ac_Header'}'`
4286	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4287echo "${ECHO_T}$ac_res" >&6; }
4288
4289fi
4290if test `eval echo '${'$as_ac_Header'}'` = yes; then
4291  cat >>confdefs.h <<_ACEOF
4292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4293_ACEOF
4294
4295fi
4296
4297done
4298
4299
4300{ echo "$as_me:$LINENO: checking for int8_t" >&5
4301echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4302if test "${ac_cv_type_int8_t+set}" = set; then
4303  echo $ECHO_N "(cached) $ECHO_C" >&6
4304else
4305  cat >conftest.$ac_ext <<_ACEOF
4306/* confdefs.h.  */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h.  */
4311$ac_includes_default
4312#ifdef HAVE_SYS_BITYPES_H
4313#include <sys/bitypes.h>
4314#endif
4315
4316typedef int8_t ac__type_new_;
4317int
4318main ()
4319{
4320if ((ac__type_new_ *) 0)
4321  return 0;
4322if (sizeof (ac__type_new_))
4323  return 0;
4324  ;
4325  return 0;
4326}
4327_ACEOF
4328rm -f conftest.$ac_objext
4329if { (ac_try="$ac_compile"
4330case "(($ac_try" in
4331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332  *) ac_try_echo=$ac_try;;
4333esac
4334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335  (eval "$ac_compile") 2>conftest.er1
4336  ac_status=$?
4337  grep -v '^ *+' conftest.er1 >conftest.err
4338  rm -f conftest.er1
4339  cat conftest.err >&5
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); } && {
4342	 test -z "$ac_c_werror_flag" ||
4343	 test ! -s conftest.err
4344       } && test -s conftest.$ac_objext; then
4345  ac_cv_type_int8_t=yes
4346else
4347  echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
4350	ac_cv_type_int8_t=no
4351fi
4352
4353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354fi
4355{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4356echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4357if test $ac_cv_type_int8_t = yes; then
4358  :
4359else
4360
4361cat >>confdefs.h <<\_ACEOF
4362#define int8_t signed char
4363_ACEOF
4364
4365fi
4366
4367{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
4368echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4369if test "${ac_cv_type_u_int8_t+set}" = set; then
4370  echo $ECHO_N "(cached) $ECHO_C" >&6
4371else
4372  cat >conftest.$ac_ext <<_ACEOF
4373/* confdefs.h.  */
4374_ACEOF
4375cat confdefs.h >>conftest.$ac_ext
4376cat >>conftest.$ac_ext <<_ACEOF
4377/* end confdefs.h.  */
4378$ac_includes_default
4379#ifdef HAVE_SYS_BITYPES_H
4380#include <sys/bitypes.h>
4381#endif
4382
4383typedef u_int8_t ac__type_new_;
4384int
4385main ()
4386{
4387if ((ac__type_new_ *) 0)
4388  return 0;
4389if (sizeof (ac__type_new_))
4390  return 0;
4391  ;
4392  return 0;
4393}
4394_ACEOF
4395rm -f conftest.$ac_objext
4396if { (ac_try="$ac_compile"
4397case "(($ac_try" in
4398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399  *) ac_try_echo=$ac_try;;
4400esac
4401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402  (eval "$ac_compile") 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	 test -z "$ac_c_werror_flag" ||
4410	 test ! -s conftest.err
4411       } && test -s conftest.$ac_objext; then
4412  ac_cv_type_u_int8_t=yes
4413else
4414  echo "$as_me: failed program was:" >&5
4415sed 's/^/| /' conftest.$ac_ext >&5
4416
4417	ac_cv_type_u_int8_t=no
4418fi
4419
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421fi
4422{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4423echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4424if test $ac_cv_type_u_int8_t = yes; then
4425  :
4426else
4427
4428cat >>confdefs.h <<\_ACEOF
4429#define u_int8_t unsigned char
4430_ACEOF
4431
4432fi
4433
4434{ echo "$as_me:$LINENO: checking for int16_t" >&5
4435echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4436if test "${ac_cv_type_int16_t+set}" = set; then
4437  echo $ECHO_N "(cached) $ECHO_C" >&6
4438else
4439  cat >conftest.$ac_ext <<_ACEOF
4440/* confdefs.h.  */
4441_ACEOF
4442cat confdefs.h >>conftest.$ac_ext
4443cat >>conftest.$ac_ext <<_ACEOF
4444/* end confdefs.h.  */
4445$ac_includes_default
4446typedef int16_t ac__type_new_;
4447int
4448main ()
4449{
4450if ((ac__type_new_ *) 0)
4451  return 0;
4452if (sizeof (ac__type_new_))
4453  return 0;
4454  ;
4455  return 0;
4456}
4457_ACEOF
4458rm -f conftest.$ac_objext
4459if { (ac_try="$ac_compile"
4460case "(($ac_try" in
4461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462  *) ac_try_echo=$ac_try;;
4463esac
4464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465  (eval "$ac_compile") 2>conftest.er1
4466  ac_status=$?
4467  grep -v '^ *+' conftest.er1 >conftest.err
4468  rm -f conftest.er1
4469  cat conftest.err >&5
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); } && {
4472	 test -z "$ac_c_werror_flag" ||
4473	 test ! -s conftest.err
4474       } && test -s conftest.$ac_objext; then
4475  ac_cv_type_int16_t=yes
4476else
4477  echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480	ac_cv_type_int16_t=no
4481fi
4482
4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484fi
4485{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4486echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4487if test $ac_cv_type_int16_t = yes; then
4488  :
4489else
4490
4491cat >>confdefs.h <<\_ACEOF
4492#define int16_t short
4493_ACEOF
4494
4495	$ac_includes_default
4496#ifdef HAVE_SYS_BITYPES_H
4497#include <sys/bitypes.h>
4498#endif
4499fi
4500
4501{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
4502echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4503if test "${ac_cv_type_u_int16_t+set}" = set; then
4504  echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
4506  cat >conftest.$ac_ext <<_ACEOF
4507/* confdefs.h.  */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h.  */
4512$ac_includes_default
4513#ifdef HAVE_SYS_BITYPES_H
4514#include <sys/bitypes.h>
4515#endif
4516
4517typedef u_int16_t ac__type_new_;
4518int
4519main ()
4520{
4521if ((ac__type_new_ *) 0)
4522  return 0;
4523if (sizeof (ac__type_new_))
4524  return 0;
4525  ;
4526  return 0;
4527}
4528_ACEOF
4529rm -f conftest.$ac_objext
4530if { (ac_try="$ac_compile"
4531case "(($ac_try" in
4532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533  *) ac_try_echo=$ac_try;;
4534esac
4535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536  (eval "$ac_compile") 2>conftest.er1
4537  ac_status=$?
4538  grep -v '^ *+' conftest.er1 >conftest.err
4539  rm -f conftest.er1
4540  cat conftest.err >&5
4541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542  (exit $ac_status); } && {
4543	 test -z "$ac_c_werror_flag" ||
4544	 test ! -s conftest.err
4545       } && test -s conftest.$ac_objext; then
4546  ac_cv_type_u_int16_t=yes
4547else
4548  echo "$as_me: failed program was:" >&5
4549sed 's/^/| /' conftest.$ac_ext >&5
4550
4551	ac_cv_type_u_int16_t=no
4552fi
4553
4554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555fi
4556{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4557echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4558if test $ac_cv_type_u_int16_t = yes; then
4559  :
4560else
4561
4562cat >>confdefs.h <<\_ACEOF
4563#define u_int16_t unsigned short
4564_ACEOF
4565
4566fi
4567
4568{ echo "$as_me:$LINENO: checking for int32_t" >&5
4569echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4570if test "${ac_cv_type_int32_t+set}" = set; then
4571  echo $ECHO_N "(cached) $ECHO_C" >&6
4572else
4573  cat >conftest.$ac_ext <<_ACEOF
4574/* confdefs.h.  */
4575_ACEOF
4576cat confdefs.h >>conftest.$ac_ext
4577cat >>conftest.$ac_ext <<_ACEOF
4578/* end confdefs.h.  */
4579$ac_includes_default
4580#ifdef HAVE_SYS_BITYPES_H
4581#include <sys/bitypes.h>
4582#endif
4583
4584typedef int32_t ac__type_new_;
4585int
4586main ()
4587{
4588if ((ac__type_new_ *) 0)
4589  return 0;
4590if (sizeof (ac__type_new_))
4591  return 0;
4592  ;
4593  return 0;
4594}
4595_ACEOF
4596rm -f conftest.$ac_objext
4597if { (ac_try="$ac_compile"
4598case "(($ac_try" in
4599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600  *) ac_try_echo=$ac_try;;
4601esac
4602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603  (eval "$ac_compile") 2>conftest.er1
4604  ac_status=$?
4605  grep -v '^ *+' conftest.er1 >conftest.err
4606  rm -f conftest.er1
4607  cat conftest.err >&5
4608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609  (exit $ac_status); } && {
4610	 test -z "$ac_c_werror_flag" ||
4611	 test ! -s conftest.err
4612       } && test -s conftest.$ac_objext; then
4613  ac_cv_type_int32_t=yes
4614else
4615  echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618	ac_cv_type_int32_t=no
4619fi
4620
4621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622fi
4623{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4624echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4625if test $ac_cv_type_int32_t = yes; then
4626  :
4627else
4628
4629cat >>confdefs.h <<\_ACEOF
4630#define int32_t int
4631_ACEOF
4632
4633fi
4634
4635{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
4636echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4637if test "${ac_cv_type_u_int32_t+set}" = set; then
4638  echo $ECHO_N "(cached) $ECHO_C" >&6
4639else
4640  cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h.  */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h.  */
4646$ac_includes_default
4647#ifdef HAVE_SYS_BITYPES_H
4648#include <sys/bitypes.h>
4649#endif
4650
4651typedef u_int32_t ac__type_new_;
4652int
4653main ()
4654{
4655if ((ac__type_new_ *) 0)
4656  return 0;
4657if (sizeof (ac__type_new_))
4658  return 0;
4659  ;
4660  return 0;
4661}
4662_ACEOF
4663rm -f conftest.$ac_objext
4664if { (ac_try="$ac_compile"
4665case "(($ac_try" in
4666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667  *) ac_try_echo=$ac_try;;
4668esac
4669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670  (eval "$ac_compile") 2>conftest.er1
4671  ac_status=$?
4672  grep -v '^ *+' conftest.er1 >conftest.err
4673  rm -f conftest.er1
4674  cat conftest.err >&5
4675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676  (exit $ac_status); } && {
4677	 test -z "$ac_c_werror_flag" ||
4678	 test ! -s conftest.err
4679       } && test -s conftest.$ac_objext; then
4680  ac_cv_type_u_int32_t=yes
4681else
4682  echo "$as_me: failed program was:" >&5
4683sed 's/^/| /' conftest.$ac_ext >&5
4684
4685	ac_cv_type_u_int32_t=no
4686fi
4687
4688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689fi
4690{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4691echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4692if test $ac_cv_type_u_int32_t = yes; then
4693  :
4694else
4695
4696cat >>confdefs.h <<\_ACEOF
4697#define u_int32_t unsigned int
4698_ACEOF
4699
4700fi
4701
4702{ echo "$as_me:$LINENO: checking for int64_t" >&5
4703echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4704if test "${ac_cv_type_int64_t+set}" = set; then
4705  echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
4707  cat >conftest.$ac_ext <<_ACEOF
4708/* confdefs.h.  */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h.  */
4713$ac_includes_default
4714#ifdef HAVE_SYS_BITYPES_H
4715#include <sys/bitypes.h>
4716#endif
4717
4718typedef int64_t ac__type_new_;
4719int
4720main ()
4721{
4722if ((ac__type_new_ *) 0)
4723  return 0;
4724if (sizeof (ac__type_new_))
4725  return 0;
4726  ;
4727  return 0;
4728}
4729_ACEOF
4730rm -f conftest.$ac_objext
4731if { (ac_try="$ac_compile"
4732case "(($ac_try" in
4733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734  *) ac_try_echo=$ac_try;;
4735esac
4736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737  (eval "$ac_compile") 2>conftest.er1
4738  ac_status=$?
4739  grep -v '^ *+' conftest.er1 >conftest.err
4740  rm -f conftest.er1
4741  cat conftest.err >&5
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); } && {
4744	 test -z "$ac_c_werror_flag" ||
4745	 test ! -s conftest.err
4746       } && test -s conftest.$ac_objext; then
4747  ac_cv_type_int64_t=yes
4748else
4749  echo "$as_me: failed program was:" >&5
4750sed 's/^/| /' conftest.$ac_ext >&5
4751
4752	ac_cv_type_int64_t=no
4753fi
4754
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756fi
4757{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4758echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4759if test $ac_cv_type_int64_t = yes; then
4760  :
4761else
4762
4763cat >>confdefs.h <<\_ACEOF
4764#define int64_t long long
4765_ACEOF
4766
4767fi
4768
4769{ echo "$as_me:$LINENO: checking for u_int64_t" >&5
4770echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4771if test "${ac_cv_type_u_int64_t+set}" = set; then
4772  echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774  cat >conftest.$ac_ext <<_ACEOF
4775/* confdefs.h.  */
4776_ACEOF
4777cat confdefs.h >>conftest.$ac_ext
4778cat >>conftest.$ac_ext <<_ACEOF
4779/* end confdefs.h.  */
4780$ac_includes_default
4781#ifdef HAVE_SYS_BITYPES_H
4782#include <sys/bitypes.h>
4783#endif
4784
4785typedef u_int64_t ac__type_new_;
4786int
4787main ()
4788{
4789if ((ac__type_new_ *) 0)
4790  return 0;
4791if (sizeof (ac__type_new_))
4792  return 0;
4793  ;
4794  return 0;
4795}
4796_ACEOF
4797rm -f conftest.$ac_objext
4798if { (ac_try="$ac_compile"
4799case "(($ac_try" in
4800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801  *) ac_try_echo=$ac_try;;
4802esac
4803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804  (eval "$ac_compile") 2>conftest.er1
4805  ac_status=$?
4806  grep -v '^ *+' conftest.er1 >conftest.err
4807  rm -f conftest.er1
4808  cat conftest.err >&5
4809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810  (exit $ac_status); } && {
4811	 test -z "$ac_c_werror_flag" ||
4812	 test ! -s conftest.err
4813       } && test -s conftest.$ac_objext; then
4814  ac_cv_type_u_int64_t=yes
4815else
4816  echo "$as_me: failed program was:" >&5
4817sed 's/^/| /' conftest.$ac_ext >&5
4818
4819	ac_cv_type_u_int64_t=no
4820fi
4821
4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823fi
4824{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4825echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4826if test $ac_cv_type_u_int64_t = yes; then
4827  :
4828else
4829
4830cat >>confdefs.h <<\_ACEOF
4831#define u_int64_t unsigned long long
4832_ACEOF
4833
4834fi
4835
4836
4837#
4838# Try to arrange for large file support.
4839#
4840# Check whether --enable-largefile was given.
4841if test "${enable_largefile+set}" = set; then
4842  enableval=$enable_largefile;
4843fi
4844
4845if test "$enable_largefile" != no; then
4846
4847  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4848echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4849if test "${ac_cv_sys_largefile_CC+set}" = set; then
4850  echo $ECHO_N "(cached) $ECHO_C" >&6
4851else
4852  ac_cv_sys_largefile_CC=no
4853     if test "$GCC" != yes; then
4854       ac_save_CC=$CC
4855       while :; do
4856	 # IRIX 6.2 and later do not support large files by default,
4857	 # so use the C compiler's -n32 option if that helps.
4858	 cat >conftest.$ac_ext <<_ACEOF
4859/* confdefs.h.  */
4860_ACEOF
4861cat confdefs.h >>conftest.$ac_ext
4862cat >>conftest.$ac_ext <<_ACEOF
4863/* end confdefs.h.  */
4864#include <sys/types.h>
4865 /* Check that off_t can represent 2**63 - 1 correctly.
4866    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4867    since some C++ compilers masquerading as C compilers
4868    incorrectly reject 9223372036854775807.  */
4869#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4870  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4871		       && LARGE_OFF_T % 2147483647 == 1)
4872		      ? 1 : -1];
4873int
4874main ()
4875{
4876
4877  ;
4878  return 0;
4879}
4880_ACEOF
4881	 rm -f conftest.$ac_objext
4882if { (ac_try="$ac_compile"
4883case "(($ac_try" in
4884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885  *) ac_try_echo=$ac_try;;
4886esac
4887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888  (eval "$ac_compile") 2>conftest.er1
4889  ac_status=$?
4890  grep -v '^ *+' conftest.er1 >conftest.err
4891  rm -f conftest.er1
4892  cat conftest.err >&5
4893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894  (exit $ac_status); } && {
4895	 test -z "$ac_c_werror_flag" ||
4896	 test ! -s conftest.err
4897       } && test -s conftest.$ac_objext; then
4898  break
4899else
4900  echo "$as_me: failed program was:" >&5
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903
4904fi
4905
4906rm -f core conftest.err conftest.$ac_objext
4907	 CC="$CC -n32"
4908	 rm -f conftest.$ac_objext
4909if { (ac_try="$ac_compile"
4910case "(($ac_try" in
4911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912  *) ac_try_echo=$ac_try;;
4913esac
4914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915  (eval "$ac_compile") 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); } && {
4922	 test -z "$ac_c_werror_flag" ||
4923	 test ! -s conftest.err
4924       } && test -s conftest.$ac_objext; then
4925  ac_cv_sys_largefile_CC=' -n32'; break
4926else
4927  echo "$as_me: failed program was:" >&5
4928sed 's/^/| /' conftest.$ac_ext >&5
4929
4930
4931fi
4932
4933rm -f core conftest.err conftest.$ac_objext
4934	 break
4935       done
4936       CC=$ac_save_CC
4937       rm -f conftest.$ac_ext
4938    fi
4939fi
4940{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4941echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4942  if test "$ac_cv_sys_largefile_CC" != no; then
4943    CC=$CC$ac_cv_sys_largefile_CC
4944  fi
4945
4946  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4947echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4948if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4949  echo $ECHO_N "(cached) $ECHO_C" >&6
4950else
4951  while :; do
4952  cat >conftest.$ac_ext <<_ACEOF
4953/* confdefs.h.  */
4954_ACEOF
4955cat confdefs.h >>conftest.$ac_ext
4956cat >>conftest.$ac_ext <<_ACEOF
4957/* end confdefs.h.  */
4958#include <sys/types.h>
4959 /* Check that off_t can represent 2**63 - 1 correctly.
4960    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4961    since some C++ compilers masquerading as C compilers
4962    incorrectly reject 9223372036854775807.  */
4963#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4964  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4965		       && LARGE_OFF_T % 2147483647 == 1)
4966		      ? 1 : -1];
4967int
4968main ()
4969{
4970
4971  ;
4972  return 0;
4973}
4974_ACEOF
4975rm -f conftest.$ac_objext
4976if { (ac_try="$ac_compile"
4977case "(($ac_try" in
4978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979  *) ac_try_echo=$ac_try;;
4980esac
4981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982  (eval "$ac_compile") 2>conftest.er1
4983  ac_status=$?
4984  grep -v '^ *+' conftest.er1 >conftest.err
4985  rm -f conftest.er1
4986  cat conftest.err >&5
4987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988  (exit $ac_status); } && {
4989	 test -z "$ac_c_werror_flag" ||
4990	 test ! -s conftest.err
4991       } && test -s conftest.$ac_objext; then
4992  ac_cv_sys_file_offset_bits=no; break
4993else
4994  echo "$as_me: failed program was:" >&5
4995sed 's/^/| /' conftest.$ac_ext >&5
4996
4997
4998fi
4999
5000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001  cat >conftest.$ac_ext <<_ACEOF
5002/* confdefs.h.  */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h.  */
5007#define _FILE_OFFSET_BITS 64
5008#include <sys/types.h>
5009 /* Check that off_t can represent 2**63 - 1 correctly.
5010    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5011    since some C++ compilers masquerading as C compilers
5012    incorrectly reject 9223372036854775807.  */
5013#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5014  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5015		       && LARGE_OFF_T % 2147483647 == 1)
5016		      ? 1 : -1];
5017int
5018main ()
5019{
5020
5021  ;
5022  return 0;
5023}
5024_ACEOF
5025rm -f conftest.$ac_objext
5026if { (ac_try="$ac_compile"
5027case "(($ac_try" in
5028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029  *) ac_try_echo=$ac_try;;
5030esac
5031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032  (eval "$ac_compile") 2>conftest.er1
5033  ac_status=$?
5034  grep -v '^ *+' conftest.er1 >conftest.err
5035  rm -f conftest.er1
5036  cat conftest.err >&5
5037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038  (exit $ac_status); } && {
5039	 test -z "$ac_c_werror_flag" ||
5040	 test ! -s conftest.err
5041       } && test -s conftest.$ac_objext; then
5042  ac_cv_sys_file_offset_bits=64; break
5043else
5044  echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047
5048fi
5049
5050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051  ac_cv_sys_file_offset_bits=unknown
5052  break
5053done
5054fi
5055{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5056echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5057case $ac_cv_sys_file_offset_bits in #(
5058  no | unknown) ;;
5059  *)
5060cat >>confdefs.h <<_ACEOF
5061#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5062_ACEOF
5063;;
5064esac
5065rm -f conftest*
5066  if test $ac_cv_sys_file_offset_bits = unknown; then
5067    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5068echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5069if test "${ac_cv_sys_large_files+set}" = set; then
5070  echo $ECHO_N "(cached) $ECHO_C" >&6
5071else
5072  while :; do
5073  cat >conftest.$ac_ext <<_ACEOF
5074/* confdefs.h.  */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h.  */
5079#include <sys/types.h>
5080 /* Check that off_t can represent 2**63 - 1 correctly.
5081    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5082    since some C++ compilers masquerading as C compilers
5083    incorrectly reject 9223372036854775807.  */
5084#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5085  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5086		       && LARGE_OFF_T % 2147483647 == 1)
5087		      ? 1 : -1];
5088int
5089main ()
5090{
5091
5092  ;
5093  return 0;
5094}
5095_ACEOF
5096rm -f conftest.$ac_objext
5097if { (ac_try="$ac_compile"
5098case "(($ac_try" in
5099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100  *) ac_try_echo=$ac_try;;
5101esac
5102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103  (eval "$ac_compile") 2>conftest.er1
5104  ac_status=$?
5105  grep -v '^ *+' conftest.er1 >conftest.err
5106  rm -f conftest.er1
5107  cat conftest.err >&5
5108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109  (exit $ac_status); } && {
5110	 test -z "$ac_c_werror_flag" ||
5111	 test ! -s conftest.err
5112       } && test -s conftest.$ac_objext; then
5113  ac_cv_sys_large_files=no; break
5114else
5115  echo "$as_me: failed program was:" >&5
5116sed 's/^/| /' conftest.$ac_ext >&5
5117
5118
5119fi
5120
5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122  cat >conftest.$ac_ext <<_ACEOF
5123/* confdefs.h.  */
5124_ACEOF
5125cat confdefs.h >>conftest.$ac_ext
5126cat >>conftest.$ac_ext <<_ACEOF
5127/* end confdefs.h.  */
5128#define _LARGE_FILES 1
5129#include <sys/types.h>
5130 /* Check that off_t can represent 2**63 - 1 correctly.
5131    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5132    since some C++ compilers masquerading as C compilers
5133    incorrectly reject 9223372036854775807.  */
5134#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5135  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5136		       && LARGE_OFF_T % 2147483647 == 1)
5137		      ? 1 : -1];
5138int
5139main ()
5140{
5141
5142  ;
5143  return 0;
5144}
5145_ACEOF
5146rm -f conftest.$ac_objext
5147if { (ac_try="$ac_compile"
5148case "(($ac_try" in
5149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150  *) ac_try_echo=$ac_try;;
5151esac
5152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153  (eval "$ac_compile") 2>conftest.er1
5154  ac_status=$?
5155  grep -v '^ *+' conftest.er1 >conftest.err
5156  rm -f conftest.er1
5157  cat conftest.err >&5
5158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159  (exit $ac_status); } && {
5160	 test -z "$ac_c_werror_flag" ||
5161	 test ! -s conftest.err
5162       } && test -s conftest.$ac_objext; then
5163  ac_cv_sys_large_files=1; break
5164else
5165  echo "$as_me: failed program was:" >&5
5166sed 's/^/| /' conftest.$ac_ext >&5
5167
5168
5169fi
5170
5171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172  ac_cv_sys_large_files=unknown
5173  break
5174done
5175fi
5176{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5177echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5178case $ac_cv_sys_large_files in #(
5179  no | unknown) ;;
5180  *)
5181cat >>confdefs.h <<_ACEOF
5182#define _LARGE_FILES $ac_cv_sys_large_files
5183_ACEOF
5184;;
5185esac
5186rm -f conftest*
5187  fi
5188fi
5189
5190{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5191echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5192if test "${ac_cv_sys_largefile_source+set}" = set; then
5193  echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195  while :; do
5196  cat >conftest.$ac_ext <<_ACEOF
5197/* confdefs.h.  */
5198_ACEOF
5199cat confdefs.h >>conftest.$ac_ext
5200cat >>conftest.$ac_ext <<_ACEOF
5201/* end confdefs.h.  */
5202#include <stdio.h>
5203int
5204main ()
5205{
5206return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5207  ;
5208  return 0;
5209}
5210_ACEOF
5211rm -f conftest.$ac_objext conftest$ac_exeext
5212if { (ac_try="$ac_link"
5213case "(($ac_try" in
5214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215  *) ac_try_echo=$ac_try;;
5216esac
5217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218  (eval "$ac_link") 2>conftest.er1
5219  ac_status=$?
5220  grep -v '^ *+' conftest.er1 >conftest.err
5221  rm -f conftest.er1
5222  cat conftest.err >&5
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); } && {
5225	 test -z "$ac_c_werror_flag" ||
5226	 test ! -s conftest.err
5227       } && test -s conftest$ac_exeext &&
5228       $as_test_x conftest$ac_exeext; then
5229  ac_cv_sys_largefile_source=no; break
5230else
5231  echo "$as_me: failed program was:" >&5
5232sed 's/^/| /' conftest.$ac_ext >&5
5233
5234
5235fi
5236
5237rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5238      conftest$ac_exeext conftest.$ac_ext
5239  cat >conftest.$ac_ext <<_ACEOF
5240/* confdefs.h.  */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h.  */
5245#define _LARGEFILE_SOURCE 1
5246#include <stdio.h>
5247int
5248main ()
5249{
5250return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5251  ;
5252  return 0;
5253}
5254_ACEOF
5255rm -f conftest.$ac_objext conftest$ac_exeext
5256if { (ac_try="$ac_link"
5257case "(($ac_try" in
5258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259  *) ac_try_echo=$ac_try;;
5260esac
5261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262  (eval "$ac_link") 2>conftest.er1
5263  ac_status=$?
5264  grep -v '^ *+' conftest.er1 >conftest.err
5265  rm -f conftest.er1
5266  cat conftest.err >&5
5267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268  (exit $ac_status); } && {
5269	 test -z "$ac_c_werror_flag" ||
5270	 test ! -s conftest.err
5271       } && test -s conftest$ac_exeext &&
5272       $as_test_x conftest$ac_exeext; then
5273  ac_cv_sys_largefile_source=1; break
5274else
5275  echo "$as_me: failed program was:" >&5
5276sed 's/^/| /' conftest.$ac_ext >&5
5277
5278
5279fi
5280
5281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5282      conftest$ac_exeext conftest.$ac_ext
5283  ac_cv_sys_largefile_source=unknown
5284  break
5285done
5286fi
5287{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5288echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5289case $ac_cv_sys_largefile_source in #(
5290  no | unknown) ;;
5291  *)
5292cat >>confdefs.h <<_ACEOF
5293#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5294_ACEOF
5295;;
5296esac
5297rm -f conftest*
5298
5299# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5300# in glibc 2.1.3, but that breaks too many other things.
5301# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5302if test $ac_cv_sys_largefile_source != unknown; then
5303
5304cat >>confdefs.h <<\_ACEOF
5305#define HAVE_FSEEKO 1
5306_ACEOF
5307
5308fi
5309
5310
5311
5312
5313
5314
5315for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5316do
5317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5319  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5322  echo $ECHO_N "(cached) $ECHO_C" >&6
5323fi
5324ac_res=`eval echo '${'$as_ac_Header'}'`
5325	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5326echo "${ECHO_T}$ac_res" >&6; }
5327else
5328  # Is the header compilable?
5329{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5330echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5331cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h.  */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h.  */
5337$ac_includes_default
5338#include <$ac_header>
5339_ACEOF
5340rm -f conftest.$ac_objext
5341if { (ac_try="$ac_compile"
5342case "(($ac_try" in
5343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344  *) ac_try_echo=$ac_try;;
5345esac
5346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347  (eval "$ac_compile") 2>conftest.er1
5348  ac_status=$?
5349  grep -v '^ *+' conftest.er1 >conftest.err
5350  rm -f conftest.er1
5351  cat conftest.err >&5
5352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353  (exit $ac_status); } && {
5354	 test -z "$ac_c_werror_flag" ||
5355	 test ! -s conftest.err
5356       } && test -s conftest.$ac_objext; then
5357  ac_header_compiler=yes
5358else
5359  echo "$as_me: failed program was:" >&5
5360sed 's/^/| /' conftest.$ac_ext >&5
5361
5362	ac_header_compiler=no
5363fi
5364
5365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5367echo "${ECHO_T}$ac_header_compiler" >&6; }
5368
5369# Is the header present?
5370{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5372cat >conftest.$ac_ext <<_ACEOF
5373/* confdefs.h.  */
5374_ACEOF
5375cat confdefs.h >>conftest.$ac_ext
5376cat >>conftest.$ac_ext <<_ACEOF
5377/* end confdefs.h.  */
5378#include <$ac_header>
5379_ACEOF
5380if { (ac_try="$ac_cpp conftest.$ac_ext"
5381case "(($ac_try" in
5382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383  *) ac_try_echo=$ac_try;;
5384esac
5385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5387  ac_status=$?
5388  grep -v '^ *+' conftest.er1 >conftest.err
5389  rm -f conftest.er1
5390  cat conftest.err >&5
5391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392  (exit $ac_status); } >/dev/null && {
5393	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5394	 test ! -s conftest.err
5395       }; then
5396  ac_header_preproc=yes
5397else
5398  echo "$as_me: failed program was:" >&5
5399sed 's/^/| /' conftest.$ac_ext >&5
5400
5401  ac_header_preproc=no
5402fi
5403
5404rm -f conftest.err conftest.$ac_ext
5405{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5406echo "${ECHO_T}$ac_header_preproc" >&6; }
5407
5408# So?  What about this header?
5409case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5410  yes:no: )
5411    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5412echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5413    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5414echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5415    ac_header_preproc=yes
5416    ;;
5417  no:yes:* )
5418    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5419echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5420    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5421echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5422    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5423echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5424    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5425echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5426    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5427echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5428    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5429echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5430
5431    ;;
5432esac
5433{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5436  echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438  eval "$as_ac_Header=\$ac_header_preproc"
5439fi
5440ac_res=`eval echo '${'$as_ac_Header'}'`
5441	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5442echo "${ECHO_T}$ac_res" >&6; }
5443
5444fi
5445if test `eval echo '${'$as_ac_Header'}'` = yes; then
5446  cat >>confdefs.h <<_ACEOF
5447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5448_ACEOF
5449
5450fi
5451
5452done
5453
5454
5455for ac_header in linux/types.h
5456do
5457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5459  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5462  echo $ECHO_N "(cached) $ECHO_C" >&6
5463fi
5464ac_res=`eval echo '${'$as_ac_Header'}'`
5465	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5466echo "${ECHO_T}$ac_res" >&6; }
5467else
5468  # Is the header compilable?
5469{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5471cat >conftest.$ac_ext <<_ACEOF
5472/* confdefs.h.  */
5473_ACEOF
5474cat confdefs.h >>conftest.$ac_ext
5475cat >>conftest.$ac_ext <<_ACEOF
5476/* end confdefs.h.  */
5477$ac_includes_default
5478#include <$ac_header>
5479_ACEOF
5480rm -f conftest.$ac_objext
5481if { (ac_try="$ac_compile"
5482case "(($ac_try" in
5483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484  *) ac_try_echo=$ac_try;;
5485esac
5486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487  (eval "$ac_compile") 2>conftest.er1
5488  ac_status=$?
5489  grep -v '^ *+' conftest.er1 >conftest.err
5490  rm -f conftest.er1
5491  cat conftest.err >&5
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); } && {
5494	 test -z "$ac_c_werror_flag" ||
5495	 test ! -s conftest.err
5496       } && test -s conftest.$ac_objext; then
5497  ac_header_compiler=yes
5498else
5499  echo "$as_me: failed program was:" >&5
5500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502	ac_header_compiler=no
5503fi
5504
5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5507echo "${ECHO_T}$ac_header_compiler" >&6; }
5508
5509# Is the header present?
5510{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5512cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h.  */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h.  */
5518#include <$ac_header>
5519_ACEOF
5520if { (ac_try="$ac_cpp conftest.$ac_ext"
5521case "(($ac_try" in
5522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523  *) ac_try_echo=$ac_try;;
5524esac
5525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5527  ac_status=$?
5528  grep -v '^ *+' conftest.er1 >conftest.err
5529  rm -f conftest.er1
5530  cat conftest.err >&5
5531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532  (exit $ac_status); } >/dev/null && {
5533	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5534	 test ! -s conftest.err
5535       }; then
5536  ac_header_preproc=yes
5537else
5538  echo "$as_me: failed program was:" >&5
5539sed 's/^/| /' conftest.$ac_ext >&5
5540
5541  ac_header_preproc=no
5542fi
5543
5544rm -f conftest.err conftest.$ac_ext
5545{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5546echo "${ECHO_T}$ac_header_preproc" >&6; }
5547
5548# So?  What about this header?
5549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5550  yes:no: )
5551    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5553    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5555    ac_header_preproc=yes
5556    ;;
5557  no:yes:* )
5558    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5560    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5561echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5562    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5564    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5565echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5566    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5568    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5570
5571    ;;
5572esac
5573{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5576  echo $ECHO_N "(cached) $ECHO_C" >&6
5577else
5578  eval "$as_ac_Header=\$ac_header_preproc"
5579fi
5580ac_res=`eval echo '${'$as_ac_Header'}'`
5581	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5582echo "${ECHO_T}$ac_res" >&6; }
5583
5584fi
5585if test `eval echo '${'$as_ac_Header'}'` = yes; then
5586  cat >>confdefs.h <<_ACEOF
5587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5588_ACEOF
5589
5590fi
5591
5592done
5593
5594
5595
5596
5597for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h
5598do
5599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5601  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5604  echo $ECHO_N "(cached) $ECHO_C" >&6
5605fi
5606ac_res=`eval echo '${'$as_ac_Header'}'`
5607	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5608echo "${ECHO_T}$ac_res" >&6; }
5609else
5610  # Is the header compilable?
5611{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5612echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5613cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h.  */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h.  */
5619$ac_includes_default
5620#include <$ac_header>
5621_ACEOF
5622rm -f conftest.$ac_objext
5623if { (ac_try="$ac_compile"
5624case "(($ac_try" in
5625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626  *) ac_try_echo=$ac_try;;
5627esac
5628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629  (eval "$ac_compile") 2>conftest.er1
5630  ac_status=$?
5631  grep -v '^ *+' conftest.er1 >conftest.err
5632  rm -f conftest.er1
5633  cat conftest.err >&5
5634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635  (exit $ac_status); } && {
5636	 test -z "$ac_c_werror_flag" ||
5637	 test ! -s conftest.err
5638       } && test -s conftest.$ac_objext; then
5639  ac_header_compiler=yes
5640else
5641  echo "$as_me: failed program was:" >&5
5642sed 's/^/| /' conftest.$ac_ext >&5
5643
5644	ac_header_compiler=no
5645fi
5646
5647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649echo "${ECHO_T}$ac_header_compiler" >&6; }
5650
5651# Is the header present?
5652{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5654cat >conftest.$ac_ext <<_ACEOF
5655/* confdefs.h.  */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h.  */
5660#include <$ac_header>
5661_ACEOF
5662if { (ac_try="$ac_cpp conftest.$ac_ext"
5663case "(($ac_try" in
5664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665  *) ac_try_echo=$ac_try;;
5666esac
5667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669  ac_status=$?
5670  grep -v '^ *+' conftest.er1 >conftest.err
5671  rm -f conftest.er1
5672  cat conftest.err >&5
5673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674  (exit $ac_status); } >/dev/null && {
5675	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5676	 test ! -s conftest.err
5677       }; then
5678  ac_header_preproc=yes
5679else
5680  echo "$as_me: failed program was:" >&5
5681sed 's/^/| /' conftest.$ac_ext >&5
5682
5683  ac_header_preproc=no
5684fi
5685
5686rm -f conftest.err conftest.$ac_ext
5687{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5688echo "${ECHO_T}$ac_header_preproc" >&6; }
5689
5690# So?  What about this header?
5691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5692  yes:no: )
5693    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5694echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5695    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5696echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5697    ac_header_preproc=yes
5698    ;;
5699  no:yes:* )
5700    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5701echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5702    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5703echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5704    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5705echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5706    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5707echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5708    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5709echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5710    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5711echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5712
5713    ;;
5714esac
5715{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5718  echo $ECHO_N "(cached) $ECHO_C" >&6
5719else
5720  eval "$as_ac_Header=\$ac_header_preproc"
5721fi
5722ac_res=`eval echo '${'$as_ac_Header'}'`
5723	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5724echo "${ECHO_T}$ac_res" >&6; }
5725
5726fi
5727if test `eval echo '${'$as_ac_Header'}'` = yes; then
5728  cat >>confdefs.h <<_ACEOF
5729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5730_ACEOF
5731
5732fi
5733
5734done
5735
5736
5737for ac_header in net/pfvar.h
5738do
5739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5740{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5743  echo $ECHO_N "(cached) $ECHO_C" >&6
5744else
5745  cat >conftest.$ac_ext <<_ACEOF
5746/* confdefs.h.  */
5747_ACEOF
5748cat confdefs.h >>conftest.$ac_ext
5749cat >>conftest.$ac_ext <<_ACEOF
5750/* end confdefs.h.  */
5751#include <sys/types.h>
5752#include <sys/socket.h>
5753#include <net/if.h>
5754
5755#include <$ac_header>
5756_ACEOF
5757rm -f conftest.$ac_objext
5758if { (ac_try="$ac_compile"
5759case "(($ac_try" in
5760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761  *) ac_try_echo=$ac_try;;
5762esac
5763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764  (eval "$ac_compile") 2>conftest.er1
5765  ac_status=$?
5766  grep -v '^ *+' conftest.er1 >conftest.err
5767  rm -f conftest.er1
5768  cat conftest.err >&5
5769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770  (exit $ac_status); } && {
5771	 test -z "$ac_c_werror_flag" ||
5772	 test ! -s conftest.err
5773       } && test -s conftest.$ac_objext; then
5774  eval "$as_ac_Header=yes"
5775else
5776  echo "$as_me: failed program was:" >&5
5777sed 's/^/| /' conftest.$ac_ext >&5
5778
5779	eval "$as_ac_Header=no"
5780fi
5781
5782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783fi
5784ac_res=`eval echo '${'$as_ac_Header'}'`
5785	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5786echo "${ECHO_T}$ac_res" >&6; }
5787if test `eval echo '${'$as_ac_Header'}'` = yes; then
5788  cat >>confdefs.h <<_ACEOF
5789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5790_ACEOF
5791
5792fi
5793
5794done
5795
5796if test "$ac_cv_header_net_pfvar_h" = yes; then
5797	#
5798	# Check for various PF actions.
5799	#
5800	{ echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5801echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5802	cat >conftest.$ac_ext <<_ACEOF
5803/* confdefs.h.  */
5804_ACEOF
5805cat confdefs.h >>conftest.$ac_ext
5806cat >>conftest.$ac_ext <<_ACEOF
5807/* end confdefs.h.  */
5808#include <sys/types.h>
5809	    #include <sys/socket.h>
5810	    #include <net/if.h>
5811	    #include <net/pfvar.h>
5812int
5813main ()
5814{
5815return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5816  ;
5817  return 0;
5818}
5819_ACEOF
5820rm -f conftest.$ac_objext
5821if { (ac_try="$ac_compile"
5822case "(($ac_try" in
5823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824  *) ac_try_echo=$ac_try;;
5825esac
5826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827  (eval "$ac_compile") 2>conftest.er1
5828  ac_status=$?
5829  grep -v '^ *+' conftest.er1 >conftest.err
5830  rm -f conftest.er1
5831  cat conftest.err >&5
5832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833  (exit $ac_status); } && {
5834	 test -z "$ac_c_werror_flag" ||
5835	 test ! -s conftest.err
5836       } && test -s conftest.$ac_objext; then
5837
5838		{ echo "$as_me:$LINENO: result: yes" >&5
5839echo "${ECHO_T}yes" >&6; }
5840
5841cat >>confdefs.h <<\_ACEOF
5842#define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5843_ACEOF
5844
5845
5846else
5847  echo "$as_me: failed program was:" >&5
5848sed 's/^/| /' conftest.$ac_ext >&5
5849
5850	{ echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6; }
5852fi
5853
5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855fi
5856
5857for ac_header in netinet/if_ether.h
5858do
5859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5860{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5863  echo $ECHO_N "(cached) $ECHO_C" >&6
5864else
5865  cat >conftest.$ac_ext <<_ACEOF
5866/* confdefs.h.  */
5867_ACEOF
5868cat confdefs.h >>conftest.$ac_ext
5869cat >>conftest.$ac_ext <<_ACEOF
5870/* end confdefs.h.  */
5871#include <sys/types.h>
5872#include <sys/socket.h>
5873
5874#include <$ac_header>
5875_ACEOF
5876rm -f conftest.$ac_objext
5877if { (ac_try="$ac_compile"
5878case "(($ac_try" in
5879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880  *) ac_try_echo=$ac_try;;
5881esac
5882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883  (eval "$ac_compile") 2>conftest.er1
5884  ac_status=$?
5885  grep -v '^ *+' conftest.er1 >conftest.err
5886  rm -f conftest.er1
5887  cat conftest.err >&5
5888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889  (exit $ac_status); } && {
5890	 test -z "$ac_c_werror_flag" ||
5891	 test ! -s conftest.err
5892       } && test -s conftest.$ac_objext; then
5893  eval "$as_ac_Header=yes"
5894else
5895  echo "$as_me: failed program was:" >&5
5896sed 's/^/| /' conftest.$ac_ext >&5
5897
5898	eval "$as_ac_Header=no"
5899fi
5900
5901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902fi
5903ac_res=`eval echo '${'$as_ac_Header'}'`
5904	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5905echo "${ECHO_T}$ac_res" >&6; }
5906if test `eval echo '${'$as_ac_Header'}'` = yes; then
5907  cat >>confdefs.h <<_ACEOF
5908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5909_ACEOF
5910
5911fi
5912
5913done
5914
5915if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5916	#
5917	# The simple test didn't work.
5918	# Do we need to include <net/if.h> first?
5919	# Unset ac_cv_header_netinet_if_ether_h so we don't
5920	# treat the previous failure as a cached value and
5921	# suppress the next test.
5922	#
5923	{ echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5924echo "$as_me: Rechecking with some additional includes" >&6;}
5925	unset ac_cv_header_netinet_if_ether_h
5926
5927for ac_header in netinet/if_ether.h
5928do
5929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5930{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5933  echo $ECHO_N "(cached) $ECHO_C" >&6
5934else
5935  cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h.  */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h.  */
5941#include <sys/types.h>
5942#include <sys/socket.h>
5943#include <netinet/in.h>
5944struct mbuf;
5945struct rtentry;
5946#include <net/if.h>
5947
5948#include <$ac_header>
5949_ACEOF
5950rm -f conftest.$ac_objext
5951if { (ac_try="$ac_compile"
5952case "(($ac_try" in
5953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954  *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957  (eval "$ac_compile") 2>conftest.er1
5958  ac_status=$?
5959  grep -v '^ *+' conftest.er1 >conftest.err
5960  rm -f conftest.er1
5961  cat conftest.err >&5
5962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963  (exit $ac_status); } && {
5964	 test -z "$ac_c_werror_flag" ||
5965	 test ! -s conftest.err
5966       } && test -s conftest.$ac_objext; then
5967  eval "$as_ac_Header=yes"
5968else
5969  echo "$as_me: failed program was:" >&5
5970sed 's/^/| /' conftest.$ac_ext >&5
5971
5972	eval "$as_ac_Header=no"
5973fi
5974
5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976fi
5977ac_res=`eval echo '${'$as_ac_Header'}'`
5978	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5979echo "${ECHO_T}$ac_res" >&6; }
5980if test `eval echo '${'$as_ac_Header'}'` = yes; then
5981  cat >>confdefs.h <<_ACEOF
5982#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5983_ACEOF
5984
5985fi
5986
5987done
5988
5989fi
5990
5991if test "$GCC" = yes ; then
5992	    { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5993echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5994	    if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5995  echo $ECHO_N "(cached) $ECHO_C" >&6
5996else
5997  cat >conftest.$ac_ext <<_ACEOF
5998/* confdefs.h.  */
5999_ACEOF
6000cat confdefs.h >>conftest.$ac_ext
6001cat >>conftest.$ac_ext <<_ACEOF
6002/* end confdefs.h.  */
6003/*
6004		     * This generates a "duplicate case value" when fixincludes
6005		     * has not be run.
6006		     */
6007#		include <sys/types.h>
6008#		include <sys/time.h>
6009#		include <sys/ioctl.h>
6010#		ifdef HAVE_SYS_IOCCOM_H
6011#		include <sys/ioccom.h>
6012#		endif
6013int
6014main ()
6015{
6016switch (0) {
6017		    case _IO('A', 1):;
6018		    case _IO('B', 1):;
6019		    }
6020  ;
6021  return 0;
6022}
6023_ACEOF
6024rm -f conftest.$ac_objext
6025if { (ac_try="$ac_compile"
6026case "(($ac_try" in
6027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028  *) ac_try_echo=$ac_try;;
6029esac
6030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031  (eval "$ac_compile") 2>conftest.er1
6032  ac_status=$?
6033  grep -v '^ *+' conftest.er1 >conftest.err
6034  rm -f conftest.er1
6035  cat conftest.err >&5
6036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037  (exit $ac_status); } && {
6038	 test -z "$ac_c_werror_flag" ||
6039	 test ! -s conftest.err
6040       } && test -s conftest.$ac_objext; then
6041  ac_cv_lbl_gcc_fixincludes=yes
6042else
6043  echo "$as_me: failed program was:" >&5
6044sed 's/^/| /' conftest.$ac_ext >&5
6045
6046	ac_cv_lbl_gcc_fixincludes=no
6047fi
6048
6049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050fi
6051
6052	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
6053echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
6054	    if test $ac_cv_lbl_gcc_fixincludes = no ; then
6055		    # Don't cache failure
6056		    unset ac_cv_lbl_gcc_fixincludes
6057		    { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
6058echo "$as_me: error: see the INSTALL for more info" >&2;}
6059   { (exit 1); exit 1; }; }
6060	    fi
6061    fi
6062
6063
6064
6065for ac_func in strerror strlcpy
6066do
6067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6068{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6070if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6071  echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073  cat >conftest.$ac_ext <<_ACEOF
6074/* confdefs.h.  */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h.  */
6079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6080   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6081#define $ac_func innocuous_$ac_func
6082
6083/* System header to define __stub macros and hopefully few prototypes,
6084    which can conflict with char $ac_func (); below.
6085    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086    <limits.h> exists even on freestanding compilers.  */
6087
6088#ifdef __STDC__
6089# include <limits.h>
6090#else
6091# include <assert.h>
6092#endif
6093
6094#undef $ac_func
6095
6096/* Override any GCC internal prototype to avoid an error.
6097   Use char because int might match the return type of a GCC
6098   builtin and then its argument prototype would still apply.  */
6099#ifdef __cplusplus
6100extern "C"
6101#endif
6102char $ac_func ();
6103/* The GNU C library defines this for functions which it implements
6104    to always fail with ENOSYS.  Some functions are actually named
6105    something starting with __ and the normal name is an alias.  */
6106#if defined __stub_$ac_func || defined __stub___$ac_func
6107choke me
6108#endif
6109
6110int
6111main ()
6112{
6113return $ac_func ();
6114  ;
6115  return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext conftest$ac_exeext
6119if { (ac_try="$ac_link"
6120case "(($ac_try" in
6121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122  *) ac_try_echo=$ac_try;;
6123esac
6124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125  (eval "$ac_link") 2>conftest.er1
6126  ac_status=$?
6127  grep -v '^ *+' conftest.er1 >conftest.err
6128  rm -f conftest.er1
6129  cat conftest.err >&5
6130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131  (exit $ac_status); } && {
6132	 test -z "$ac_c_werror_flag" ||
6133	 test ! -s conftest.err
6134       } && test -s conftest$ac_exeext &&
6135       $as_test_x conftest$ac_exeext; then
6136  eval "$as_ac_var=yes"
6137else
6138  echo "$as_me: failed program was:" >&5
6139sed 's/^/| /' conftest.$ac_ext >&5
6140
6141	eval "$as_ac_var=no"
6142fi
6143
6144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6145      conftest$ac_exeext conftest.$ac_ext
6146fi
6147ac_res=`eval echo '${'$as_ac_var'}'`
6148	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6149echo "${ECHO_T}$ac_res" >&6; }
6150if test `eval echo '${'$as_ac_var'}'` = yes; then
6151  cat >>confdefs.h <<_ACEOF
6152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6153_ACEOF
6154
6155fi
6156done
6157
6158
6159needsnprintf=no
6160
6161
6162for ac_func in vsnprintf snprintf
6163do
6164as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6165{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6167if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6168  echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170  cat >conftest.$ac_ext <<_ACEOF
6171/* confdefs.h.  */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h.  */
6176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6177   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6178#define $ac_func innocuous_$ac_func
6179
6180/* System header to define __stub macros and hopefully few prototypes,
6181    which can conflict with char $ac_func (); below.
6182    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6183    <limits.h> exists even on freestanding compilers.  */
6184
6185#ifdef __STDC__
6186# include <limits.h>
6187#else
6188# include <assert.h>
6189#endif
6190
6191#undef $ac_func
6192
6193/* Override any GCC internal prototype to avoid an error.
6194   Use char because int might match the return type of a GCC
6195   builtin and then its argument prototype would still apply.  */
6196#ifdef __cplusplus
6197extern "C"
6198#endif
6199char $ac_func ();
6200/* The GNU C library defines this for functions which it implements
6201    to always fail with ENOSYS.  Some functions are actually named
6202    something starting with __ and the normal name is an alias.  */
6203#if defined __stub_$ac_func || defined __stub___$ac_func
6204choke me
6205#endif
6206
6207int
6208main ()
6209{
6210return $ac_func ();
6211  ;
6212  return 0;
6213}
6214_ACEOF
6215rm -f conftest.$ac_objext conftest$ac_exeext
6216if { (ac_try="$ac_link"
6217case "(($ac_try" in
6218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219  *) ac_try_echo=$ac_try;;
6220esac
6221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222  (eval "$ac_link") 2>conftest.er1
6223  ac_status=$?
6224  grep -v '^ *+' conftest.er1 >conftest.err
6225  rm -f conftest.er1
6226  cat conftest.err >&5
6227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228  (exit $ac_status); } && {
6229	 test -z "$ac_c_werror_flag" ||
6230	 test ! -s conftest.err
6231       } && test -s conftest$ac_exeext &&
6232       $as_test_x conftest$ac_exeext; then
6233  eval "$as_ac_var=yes"
6234else
6235  echo "$as_me: failed program was:" >&5
6236sed 's/^/| /' conftest.$ac_ext >&5
6237
6238	eval "$as_ac_var=no"
6239fi
6240
6241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6242      conftest$ac_exeext conftest.$ac_ext
6243fi
6244ac_res=`eval echo '${'$as_ac_var'}'`
6245	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6246echo "${ECHO_T}$ac_res" >&6; }
6247if test `eval echo '${'$as_ac_var'}'` = yes; then
6248  cat >>confdefs.h <<_ACEOF
6249#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6250_ACEOF
6251
6252else
6253  needsnprintf=yes
6254fi
6255done
6256
6257if test $needsnprintf = yes; then
6258	case " $LIBOBJS " in
6259  *" snprintf.$ac_objext "* ) ;;
6260  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6261 ;;
6262esac
6263
6264fi
6265
6266#
6267# Do this before checking for ether_hostton(), as it's a
6268# "gethostbyname() -ish function".
6269#
6270
6271    # Most operating systems have gethostbyname() in the default searched
6272    # libraries (i.e. libc):
6273    # Some OSes (eg. Solaris) place it in libnsl
6274    # Some strange OSes (SINIX) have it in libsocket:
6275    { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6276echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6277if test "${ac_cv_search_gethostbyname+set}" = set; then
6278  echo $ECHO_N "(cached) $ECHO_C" >&6
6279else
6280  ac_func_search_save_LIBS=$LIBS
6281cat >conftest.$ac_ext <<_ACEOF
6282/* confdefs.h.  */
6283_ACEOF
6284cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h.  */
6287
6288/* Override any GCC internal prototype to avoid an error.
6289   Use char because int might match the return type of a GCC
6290   builtin and then its argument prototype would still apply.  */
6291#ifdef __cplusplus
6292extern "C"
6293#endif
6294char gethostbyname ();
6295int
6296main ()
6297{
6298return gethostbyname ();
6299  ;
6300  return 0;
6301}
6302_ACEOF
6303for ac_lib in '' nsl socket resolv; do
6304  if test -z "$ac_lib"; then
6305    ac_res="none required"
6306  else
6307    ac_res=-l$ac_lib
6308    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6309  fi
6310  rm -f conftest.$ac_objext conftest$ac_exeext
6311if { (ac_try="$ac_link"
6312case "(($ac_try" in
6313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314  *) ac_try_echo=$ac_try;;
6315esac
6316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317  (eval "$ac_link") 2>conftest.er1
6318  ac_status=$?
6319  grep -v '^ *+' conftest.er1 >conftest.err
6320  rm -f conftest.er1
6321  cat conftest.err >&5
6322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323  (exit $ac_status); } && {
6324	 test -z "$ac_c_werror_flag" ||
6325	 test ! -s conftest.err
6326       } && test -s conftest$ac_exeext &&
6327       $as_test_x conftest$ac_exeext; then
6328  ac_cv_search_gethostbyname=$ac_res
6329else
6330  echo "$as_me: failed program was:" >&5
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
6333
6334fi
6335
6336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6337      conftest$ac_exeext
6338  if test "${ac_cv_search_gethostbyname+set}" = set; then
6339  break
6340fi
6341done
6342if test "${ac_cv_search_gethostbyname+set}" = set; then
6343  :
6344else
6345  ac_cv_search_gethostbyname=no
6346fi
6347rm conftest.$ac_ext
6348LIBS=$ac_func_search_save_LIBS
6349fi
6350{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6351echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6352ac_res=$ac_cv_search_gethostbyname
6353if test "$ac_res" != no; then
6354  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6355
6356fi
6357
6358    # Unfortunately libsocket sometimes depends on libnsl and
6359    # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6360    if test "$ac_cv_search_gethostbyname" = "no"
6361    then
6362	{ echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6363echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6364if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6365  echo $ECHO_N "(cached) $ECHO_C" >&6
6366else
6367  ac_check_lib_save_LIBS=$LIBS
6368LIBS="-lsocket -lnsl $LIBS"
6369cat >conftest.$ac_ext <<_ACEOF
6370/* confdefs.h.  */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
6374/* end confdefs.h.  */
6375
6376/* Override any GCC internal prototype to avoid an error.
6377   Use char because int might match the return type of a GCC
6378   builtin and then its argument prototype would still apply.  */
6379#ifdef __cplusplus
6380extern "C"
6381#endif
6382char gethostbyname ();
6383int
6384main ()
6385{
6386return gethostbyname ();
6387  ;
6388  return 0;
6389}
6390_ACEOF
6391rm -f conftest.$ac_objext conftest$ac_exeext
6392if { (ac_try="$ac_link"
6393case "(($ac_try" in
6394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395  *) ac_try_echo=$ac_try;;
6396esac
6397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398  (eval "$ac_link") 2>conftest.er1
6399  ac_status=$?
6400  grep -v '^ *+' conftest.er1 >conftest.err
6401  rm -f conftest.er1
6402  cat conftest.err >&5
6403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404  (exit $ac_status); } && {
6405	 test -z "$ac_c_werror_flag" ||
6406	 test ! -s conftest.err
6407       } && test -s conftest$ac_exeext &&
6408       $as_test_x conftest$ac_exeext; then
6409  ac_cv_lib_socket_gethostbyname=yes
6410else
6411  echo "$as_me: failed program was:" >&5
6412sed 's/^/| /' conftest.$ac_ext >&5
6413
6414	ac_cv_lib_socket_gethostbyname=no
6415fi
6416
6417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6418      conftest$ac_exeext conftest.$ac_ext
6419LIBS=$ac_check_lib_save_LIBS
6420fi
6421{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6422echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6423if test $ac_cv_lib_socket_gethostbyname = yes; then
6424  LIBS="-lsocket -lnsl $LIBS"
6425fi
6426
6427    fi
6428    { echo "$as_me:$LINENO: checking for library containing socket" >&5
6429echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6430if test "${ac_cv_search_socket+set}" = set; then
6431  echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433  ac_func_search_save_LIBS=$LIBS
6434cat >conftest.$ac_ext <<_ACEOF
6435/* confdefs.h.  */
6436_ACEOF
6437cat confdefs.h >>conftest.$ac_ext
6438cat >>conftest.$ac_ext <<_ACEOF
6439/* end confdefs.h.  */
6440
6441/* Override any GCC internal prototype to avoid an error.
6442   Use char because int might match the return type of a GCC
6443   builtin and then its argument prototype would still apply.  */
6444#ifdef __cplusplus
6445extern "C"
6446#endif
6447char socket ();
6448int
6449main ()
6450{
6451return socket ();
6452  ;
6453  return 0;
6454}
6455_ACEOF
6456for ac_lib in '' socket; do
6457  if test -z "$ac_lib"; then
6458    ac_res="none required"
6459  else
6460    ac_res=-l$ac_lib
6461    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6462  fi
6463  rm -f conftest.$ac_objext conftest$ac_exeext
6464if { (ac_try="$ac_link"
6465case "(($ac_try" in
6466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467  *) ac_try_echo=$ac_try;;
6468esac
6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470  (eval "$ac_link") 2>conftest.er1
6471  ac_status=$?
6472  grep -v '^ *+' conftest.er1 >conftest.err
6473  rm -f conftest.er1
6474  cat conftest.err >&5
6475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476  (exit $ac_status); } && {
6477	 test -z "$ac_c_werror_flag" ||
6478	 test ! -s conftest.err
6479       } && test -s conftest$ac_exeext &&
6480       $as_test_x conftest$ac_exeext; then
6481  ac_cv_search_socket=$ac_res
6482else
6483  echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
6485
6486
6487fi
6488
6489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6490      conftest$ac_exeext
6491  if test "${ac_cv_search_socket+set}" = set; then
6492  break
6493fi
6494done
6495if test "${ac_cv_search_socket+set}" = set; then
6496  :
6497else
6498  ac_cv_search_socket=no
6499fi
6500rm conftest.$ac_ext
6501LIBS=$ac_func_search_save_LIBS
6502fi
6503{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6504echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6505ac_res=$ac_cv_search_socket
6506if test "$ac_res" != no; then
6507  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6508
6509else
6510  { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6511echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6512if test "${ac_cv_lib_socket_socket+set}" = set; then
6513  echo $ECHO_N "(cached) $ECHO_C" >&6
6514else
6515  ac_check_lib_save_LIBS=$LIBS
6516LIBS="-lsocket -lnsl $LIBS"
6517cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h.  */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h.  */
6523
6524/* Override any GCC internal prototype to avoid an error.
6525   Use char because int might match the return type of a GCC
6526   builtin and then its argument prototype would still apply.  */
6527#ifdef __cplusplus
6528extern "C"
6529#endif
6530char socket ();
6531int
6532main ()
6533{
6534return socket ();
6535  ;
6536  return 0;
6537}
6538_ACEOF
6539rm -f conftest.$ac_objext conftest$ac_exeext
6540if { (ac_try="$ac_link"
6541case "(($ac_try" in
6542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543  *) ac_try_echo=$ac_try;;
6544esac
6545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546  (eval "$ac_link") 2>conftest.er1
6547  ac_status=$?
6548  grep -v '^ *+' conftest.er1 >conftest.err
6549  rm -f conftest.er1
6550  cat conftest.err >&5
6551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552  (exit $ac_status); } && {
6553	 test -z "$ac_c_werror_flag" ||
6554	 test ! -s conftest.err
6555       } && test -s conftest$ac_exeext &&
6556       $as_test_x conftest$ac_exeext; then
6557  ac_cv_lib_socket_socket=yes
6558else
6559  echo "$as_me: failed program was:" >&5
6560sed 's/^/| /' conftest.$ac_ext >&5
6561
6562	ac_cv_lib_socket_socket=no
6563fi
6564
6565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6566      conftest$ac_exeext conftest.$ac_ext
6567LIBS=$ac_check_lib_save_LIBS
6568fi
6569{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6570echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6571if test $ac_cv_lib_socket_socket = yes; then
6572  LIBS="-lsocket -lnsl $LIBS"
6573fi
6574
6575fi
6576
6577    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6578    { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6579echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6580if test "${ac_cv_search_putmsg+set}" = set; then
6581  echo $ECHO_N "(cached) $ECHO_C" >&6
6582else
6583  ac_func_search_save_LIBS=$LIBS
6584cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h.  */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h.  */
6590
6591/* Override any GCC internal prototype to avoid an error.
6592   Use char because int might match the return type of a GCC
6593   builtin and then its argument prototype would still apply.  */
6594#ifdef __cplusplus
6595extern "C"
6596#endif
6597char putmsg ();
6598int
6599main ()
6600{
6601return putmsg ();
6602  ;
6603  return 0;
6604}
6605_ACEOF
6606for ac_lib in '' str; do
6607  if test -z "$ac_lib"; then
6608    ac_res="none required"
6609  else
6610    ac_res=-l$ac_lib
6611    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6612  fi
6613  rm -f conftest.$ac_objext conftest$ac_exeext
6614if { (ac_try="$ac_link"
6615case "(($ac_try" in
6616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6617  *) ac_try_echo=$ac_try;;
6618esac
6619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620  (eval "$ac_link") 2>conftest.er1
6621  ac_status=$?
6622  grep -v '^ *+' conftest.er1 >conftest.err
6623  rm -f conftest.er1
6624  cat conftest.err >&5
6625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); } && {
6627	 test -z "$ac_c_werror_flag" ||
6628	 test ! -s conftest.err
6629       } && test -s conftest$ac_exeext &&
6630       $as_test_x conftest$ac_exeext; then
6631  ac_cv_search_putmsg=$ac_res
6632else
6633  echo "$as_me: failed program was:" >&5
6634sed 's/^/| /' conftest.$ac_ext >&5
6635
6636
6637fi
6638
6639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6640      conftest$ac_exeext
6641  if test "${ac_cv_search_putmsg+set}" = set; then
6642  break
6643fi
6644done
6645if test "${ac_cv_search_putmsg+set}" = set; then
6646  :
6647else
6648  ac_cv_search_putmsg=no
6649fi
6650rm conftest.$ac_ext
6651LIBS=$ac_func_search_save_LIBS
6652fi
6653{ echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6654echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6655ac_res=$ac_cv_search_putmsg
6656if test "$ac_res" != no; then
6657  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6658
6659fi
6660
6661
6662
6663#
6664# You are in a twisty little maze of UN*Xes, all different.
6665# Some might not have ether_hostton().
6666# Some might have it, but not declare it in any header file.
6667# Some might have it, but declare it in <netinet/if_ether.h>.
6668# Some might have it, but declare it in <netinet/ether.h>
6669# (And some might have it but document it as something declared in
6670# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6671#
6672# Before you is a C compiler.
6673#
6674
6675for ac_func in ether_hostton
6676do
6677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6678{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6680if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6681  echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
6683  cat >conftest.$ac_ext <<_ACEOF
6684/* confdefs.h.  */
6685_ACEOF
6686cat confdefs.h >>conftest.$ac_ext
6687cat >>conftest.$ac_ext <<_ACEOF
6688/* end confdefs.h.  */
6689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6690   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6691#define $ac_func innocuous_$ac_func
6692
6693/* System header to define __stub macros and hopefully few prototypes,
6694    which can conflict with char $ac_func (); below.
6695    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6696    <limits.h> exists even on freestanding compilers.  */
6697
6698#ifdef __STDC__
6699# include <limits.h>
6700#else
6701# include <assert.h>
6702#endif
6703
6704#undef $ac_func
6705
6706/* Override any GCC internal prototype to avoid an error.
6707   Use char because int might match the return type of a GCC
6708   builtin and then its argument prototype would still apply.  */
6709#ifdef __cplusplus
6710extern "C"
6711#endif
6712char $ac_func ();
6713/* The GNU C library defines this for functions which it implements
6714    to always fail with ENOSYS.  Some functions are actually named
6715    something starting with __ and the normal name is an alias.  */
6716#if defined __stub_$ac_func || defined __stub___$ac_func
6717choke me
6718#endif
6719
6720int
6721main ()
6722{
6723return $ac_func ();
6724  ;
6725  return 0;
6726}
6727_ACEOF
6728rm -f conftest.$ac_objext conftest$ac_exeext
6729if { (ac_try="$ac_link"
6730case "(($ac_try" in
6731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732  *) ac_try_echo=$ac_try;;
6733esac
6734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735  (eval "$ac_link") 2>conftest.er1
6736  ac_status=$?
6737  grep -v '^ *+' conftest.er1 >conftest.err
6738  rm -f conftest.er1
6739  cat conftest.err >&5
6740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741  (exit $ac_status); } && {
6742	 test -z "$ac_c_werror_flag" ||
6743	 test ! -s conftest.err
6744       } && test -s conftest$ac_exeext &&
6745       $as_test_x conftest$ac_exeext; then
6746  eval "$as_ac_var=yes"
6747else
6748  echo "$as_me: failed program was:" >&5
6749sed 's/^/| /' conftest.$ac_ext >&5
6750
6751	eval "$as_ac_var=no"
6752fi
6753
6754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6755      conftest$ac_exeext conftest.$ac_ext
6756fi
6757ac_res=`eval echo '${'$as_ac_var'}'`
6758	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6759echo "${ECHO_T}$ac_res" >&6; }
6760if test `eval echo '${'$as_ac_var'}'` = yes; then
6761  cat >>confdefs.h <<_ACEOF
6762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6763_ACEOF
6764
6765fi
6766done
6767
6768if test "$ac_cv_func_ether_hostton" = yes; then
6769	#
6770	# OK, we have ether_hostton().  Do we have <netinet/if_ether.h>?
6771	#
6772	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6773		#
6774		# Yes.  Does it declare ether_hostton()?
6775		#
6776		{ echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6777echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6778if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6779  echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781  cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h.  */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h.  */
6787
6788#include <sys/types.h>
6789#include <sys/socket.h>
6790#include <netinet/in.h>
6791#include <arpa/inet.h>
6792struct mbuf;
6793struct rtentry;
6794#include <net/if.h>
6795#include <netinet/if_ether.h>
6796
6797
6798int
6799main ()
6800{
6801#ifndef ether_hostton
6802  (void) ether_hostton;
6803#endif
6804
6805  ;
6806  return 0;
6807}
6808_ACEOF
6809rm -f conftest.$ac_objext
6810if { (ac_try="$ac_compile"
6811case "(($ac_try" in
6812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813  *) ac_try_echo=$ac_try;;
6814esac
6815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816  (eval "$ac_compile") 2>conftest.er1
6817  ac_status=$?
6818  grep -v '^ *+' conftest.er1 >conftest.err
6819  rm -f conftest.er1
6820  cat conftest.err >&5
6821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822  (exit $ac_status); } && {
6823	 test -z "$ac_c_werror_flag" ||
6824	 test ! -s conftest.err
6825       } && test -s conftest.$ac_objext; then
6826  ac_cv_have_decl_ether_hostton=yes
6827else
6828  echo "$as_me: failed program was:" >&5
6829sed 's/^/| /' conftest.$ac_ext >&5
6830
6831	ac_cv_have_decl_ether_hostton=no
6832fi
6833
6834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835fi
6836{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6837echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6838if test $ac_cv_have_decl_ether_hostton = yes; then
6839
6840
6841cat >>confdefs.h <<\_ACEOF
6842#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6843_ACEOF
6844
6845
6846fi
6847
6848	fi
6849	#
6850	# Did that succeed?
6851	#
6852	if test "$ac_cv_have_decl_ether_hostton" != yes; then
6853		#
6854		# No, how about <netinet/ether.h>, as on Linux?
6855		#
6856
6857for ac_header in netinet/ether.h
6858do
6859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6861  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6864  echo $ECHO_N "(cached) $ECHO_C" >&6
6865fi
6866ac_res=`eval echo '${'$as_ac_Header'}'`
6867	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6868echo "${ECHO_T}$ac_res" >&6; }
6869else
6870  # Is the header compilable?
6871{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6872echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6873cat >conftest.$ac_ext <<_ACEOF
6874/* confdefs.h.  */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h.  */
6879$ac_includes_default
6880#include <$ac_header>
6881_ACEOF
6882rm -f conftest.$ac_objext
6883if { (ac_try="$ac_compile"
6884case "(($ac_try" in
6885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886  *) ac_try_echo=$ac_try;;
6887esac
6888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889  (eval "$ac_compile") 2>conftest.er1
6890  ac_status=$?
6891  grep -v '^ *+' conftest.er1 >conftest.err
6892  rm -f conftest.er1
6893  cat conftest.err >&5
6894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895  (exit $ac_status); } && {
6896	 test -z "$ac_c_werror_flag" ||
6897	 test ! -s conftest.err
6898       } && test -s conftest.$ac_objext; then
6899  ac_header_compiler=yes
6900else
6901  echo "$as_me: failed program was:" >&5
6902sed 's/^/| /' conftest.$ac_ext >&5
6903
6904	ac_header_compiler=no
6905fi
6906
6907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6909echo "${ECHO_T}$ac_header_compiler" >&6; }
6910
6911# Is the header present?
6912{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6914cat >conftest.$ac_ext <<_ACEOF
6915/* confdefs.h.  */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h.  */
6920#include <$ac_header>
6921_ACEOF
6922if { (ac_try="$ac_cpp conftest.$ac_ext"
6923case "(($ac_try" in
6924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925  *) ac_try_echo=$ac_try;;
6926esac
6927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6928  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6929  ac_status=$?
6930  grep -v '^ *+' conftest.er1 >conftest.err
6931  rm -f conftest.er1
6932  cat conftest.err >&5
6933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934  (exit $ac_status); } >/dev/null && {
6935	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6936	 test ! -s conftest.err
6937       }; then
6938  ac_header_preproc=yes
6939else
6940  echo "$as_me: failed program was:" >&5
6941sed 's/^/| /' conftest.$ac_ext >&5
6942
6943  ac_header_preproc=no
6944fi
6945
6946rm -f conftest.err conftest.$ac_ext
6947{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6948echo "${ECHO_T}$ac_header_preproc" >&6; }
6949
6950# So?  What about this header?
6951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6952  yes:no: )
6953    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6955    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6957    ac_header_preproc=yes
6958    ;;
6959  no:yes:* )
6960    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6962    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6963echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6964    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6966    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6967echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6968    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6970    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6972
6973    ;;
6974esac
6975{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6978  echo $ECHO_N "(cached) $ECHO_C" >&6
6979else
6980  eval "$as_ac_Header=\$ac_header_preproc"
6981fi
6982ac_res=`eval echo '${'$as_ac_Header'}'`
6983	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6984echo "${ECHO_T}$ac_res" >&6; }
6985
6986fi
6987if test `eval echo '${'$as_ac_Header'}'` = yes; then
6988  cat >>confdefs.h <<_ACEOF
6989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6990_ACEOF
6991
6992fi
6993
6994done
6995
6996		if test "$ac_cv_header_netinet_ether_h" = yes; then
6997			#
6998			# We have it - does it declare ether_hostton()?
6999			# Unset ac_cv_have_decl_ether_hostton so we don't
7000			# treat the previous failure as a cached value and
7001			# suppress the next test.
7002			#
7003			unset ac_cv_have_decl_ether_hostton
7004			{ echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
7005echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
7006if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
7007  echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009  cat >conftest.$ac_ext <<_ACEOF
7010/* confdefs.h.  */
7011_ACEOF
7012cat confdefs.h >>conftest.$ac_ext
7013cat >>conftest.$ac_ext <<_ACEOF
7014/* end confdefs.h.  */
7015
7016#include <netinet/ether.h>
7017
7018
7019int
7020main ()
7021{
7022#ifndef ether_hostton
7023  (void) ether_hostton;
7024#endif
7025
7026  ;
7027  return 0;
7028}
7029_ACEOF
7030rm -f conftest.$ac_objext
7031if { (ac_try="$ac_compile"
7032case "(($ac_try" in
7033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034  *) ac_try_echo=$ac_try;;
7035esac
7036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7037  (eval "$ac_compile") 2>conftest.er1
7038  ac_status=$?
7039  grep -v '^ *+' conftest.er1 >conftest.err
7040  rm -f conftest.er1
7041  cat conftest.err >&5
7042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043  (exit $ac_status); } && {
7044	 test -z "$ac_c_werror_flag" ||
7045	 test ! -s conftest.err
7046       } && test -s conftest.$ac_objext; then
7047  ac_cv_have_decl_ether_hostton=yes
7048else
7049  echo "$as_me: failed program was:" >&5
7050sed 's/^/| /' conftest.$ac_ext >&5
7051
7052	ac_cv_have_decl_ether_hostton=no
7053fi
7054
7055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056fi
7057{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
7058echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
7059if test $ac_cv_have_decl_ether_hostton = yes; then
7060
7061
7062cat >>confdefs.h <<\_ACEOF
7063#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
7064_ACEOF
7065
7066
7067fi
7068
7069		fi
7070	fi
7071	#
7072	# Is ether_hostton() declared?
7073	#
7074	if test "$ac_cv_have_decl_ether_hostton" != yes; then
7075		#
7076		# No, we'll have to declare it ourselves.
7077		# Do we have "struct ether_addr"?
7078		#
7079		{ echo "$as_me:$LINENO: checking for struct ether_addr" >&5
7080echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
7081if test "${ac_cv_type_struct_ether_addr+set}" = set; then
7082  echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084  cat >conftest.$ac_ext <<_ACEOF
7085/* confdefs.h.  */
7086_ACEOF
7087cat confdefs.h >>conftest.$ac_ext
7088cat >>conftest.$ac_ext <<_ACEOF
7089/* end confdefs.h.  */
7090
7091#include <sys/types.h>
7092#include <sys/socket.h>
7093#include <netinet/in.h>
7094#include <arpa/inet.h>
7095struct mbuf;
7096struct rtentry;
7097#include <net/if.h>
7098#include <netinet/if_ether.h>
7099
7100
7101typedef struct ether_addr ac__type_new_;
7102int
7103main ()
7104{
7105if ((ac__type_new_ *) 0)
7106  return 0;
7107if (sizeof (ac__type_new_))
7108  return 0;
7109  ;
7110  return 0;
7111}
7112_ACEOF
7113rm -f conftest.$ac_objext
7114if { (ac_try="$ac_compile"
7115case "(($ac_try" in
7116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117  *) ac_try_echo=$ac_try;;
7118esac
7119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120  (eval "$ac_compile") 2>conftest.er1
7121  ac_status=$?
7122  grep -v '^ *+' conftest.er1 >conftest.err
7123  rm -f conftest.er1
7124  cat conftest.err >&5
7125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126  (exit $ac_status); } && {
7127	 test -z "$ac_c_werror_flag" ||
7128	 test ! -s conftest.err
7129       } && test -s conftest.$ac_objext; then
7130  ac_cv_type_struct_ether_addr=yes
7131else
7132  echo "$as_me: failed program was:" >&5
7133sed 's/^/| /' conftest.$ac_ext >&5
7134
7135	ac_cv_type_struct_ether_addr=no
7136fi
7137
7138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139fi
7140{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
7141echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
7142if test $ac_cv_type_struct_ether_addr = yes; then
7143
7144cat >>confdefs.h <<_ACEOF
7145#define HAVE_STRUCT_ETHER_ADDR 1
7146_ACEOF
7147
7148
7149fi
7150
7151
7152cat >>confdefs.h <<\_ACEOF
7153#define HAVE_DECL_ETHER_HOSTTON 0
7154_ACEOF
7155
7156	else
7157
7158cat >>confdefs.h <<\_ACEOF
7159#define HAVE_DECL_ETHER_HOSTTON 1
7160_ACEOF
7161
7162	fi
7163fi
7164
7165{ echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
7166echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
7167# Check whether --enable-protochain was given.
7168if test "${enable_protochain+set}" = set; then
7169  enableval=$enable_protochain;
7170fi
7171
7172case "x$enable_protochain" in
7173xyes)	enable_protochain=enabled	;;
7174xno)	enable_protochain=disabled	;;
7175x)	enable_protochain=enabled	;;
7176esac
7177
7178if test "$enable_protochain" = "disabled"; then
7179
7180cat >>confdefs.h <<\_ACEOF
7181#define NO_PROTOCHAIN 1
7182_ACEOF
7183
7184fi
7185{ echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
7186echo "${ECHO_T}${enable_protochain}" >&6; }
7187
7188#
7189# SITA support is mutually exclusive with native capture support;
7190# "--with-sita" selects SITA support.
7191#
7192
7193# Check whether --with-sita was given.
7194if test "${with_sita+set}" = set; then
7195  withval=$with_sita;
7196	if test ! "x$withval" = "xno" ; then
7197
7198cat >>confdefs.h <<\_ACEOF
7199#define SITA 1
7200_ACEOF
7201
7202		{ echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
7203echo "$as_me: Enabling SITA ACN support" >&6;}
7204		V_PCAP=sita
7205		V_FINDALLDEVS=sita
7206	fi
7207
7208else
7209
7210if test -z "$with_pcap" && test "$cross_compiling" = yes; then
7211	{ { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
7212echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
7213   { (exit 1); exit 1; }; }
7214fi
7215
7216# Check whether --with-pcap was given.
7217if test "${with_pcap+set}" = set; then
7218  withval=$with_pcap;
7219fi
7220
7221{ echo "$as_me:$LINENO: checking packet capture type" >&5
7222echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
7223if test ! -z "$with_pcap" ; then
7224	V_PCAP="$withval"
7225elif test -r /dev/bpf -o -h /dev/bpf ; then
7226	#
7227	# Cloning BPF device.
7228	#
7229	V_PCAP=bpf
7230
7231cat >>confdefs.h <<\_ACEOF
7232#define HAVE_CLONING_BPF 1
7233_ACEOF
7234
7235elif test -r /dev/bpf0 ; then
7236	V_PCAP=bpf
7237elif test -r /usr/include/net/pfilt.h ; then
7238	V_PCAP=pf
7239elif test -r /dev/enet ; then
7240	V_PCAP=enet
7241elif test -r /dev/nit ; then
7242	V_PCAP=snit
7243elif test -r /usr/include/sys/net/nit.h ; then
7244	V_PCAP=nit
7245elif test -r /usr/include/linux/socket.h ; then
7246	V_PCAP=linux
7247elif test -r /usr/include/net/raw.h ; then
7248	V_PCAP=snoop
7249elif test -r /usr/include/odmi.h ; then
7250	#
7251	# On AIX, the BPF devices might not yet be present - they're
7252	# created the first time libpcap runs after booting.
7253	# We check for odmi.h instead.
7254	#
7255	V_PCAP=bpf
7256elif test -c /dev/bpf0 ; then		# check again in case not readable
7257	V_PCAP=bpf
7258elif test -r /usr/include/sys/dlpi.h ; then
7259	V_PCAP=dlpi
7260elif test -c /dev/enet ; then		# check again in case not readable
7261	V_PCAP=enet
7262elif test -c /dev/nit ; then		# check again in case not readable
7263	V_PCAP=snit
7264else
7265	V_PCAP=null
7266fi
7267{ echo "$as_me:$LINENO: result: $V_PCAP" >&5
7268echo "${ECHO_T}$V_PCAP" >&6; }
7269
7270#
7271# Do capture-mechanism-dependent tests.
7272#
7273case "$V_PCAP" in
7274dlpi)
7275	#
7276	# Checks to see if Solaris has the public libdlpi(3LIB) library.
7277	# Note: The existence of /usr/include/libdlpi.h does not mean it is the
7278	# public libdlpi(3LIB) version. Before libdlpi was made public, a
7279	# private version also existed, which did not have the same APIs.
7280	# Due to a gcc bug, the default search path for 32-bit libraries does
7281	# not include /lib, we add it explicitly here.
7282	# [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
7283	# Also, due to the bug above applications that link to libpcap with
7284	# libdlpi will have to add "-L/lib" option to "configure".
7285	#
7286	saved_ldflags=$LDFLAGS
7287	LDFLAGS="$LIBS -L/lib"
7288	{ echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
7289echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
7290if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
7291  echo $ECHO_N "(cached) $ECHO_C" >&6
7292else
7293  ac_check_lib_save_LIBS=$LIBS
7294LIBS="-ldlpi  $LIBS"
7295cat >conftest.$ac_ext <<_ACEOF
7296/* confdefs.h.  */
7297_ACEOF
7298cat confdefs.h >>conftest.$ac_ext
7299cat >>conftest.$ac_ext <<_ACEOF
7300/* end confdefs.h.  */
7301
7302/* Override any GCC internal prototype to avoid an error.
7303   Use char because int might match the return type of a GCC
7304   builtin and then its argument prototype would still apply.  */
7305#ifdef __cplusplus
7306extern "C"
7307#endif
7308char dlpi_walk ();
7309int
7310main ()
7311{
7312return dlpi_walk ();
7313  ;
7314  return 0;
7315}
7316_ACEOF
7317rm -f conftest.$ac_objext conftest$ac_exeext
7318if { (ac_try="$ac_link"
7319case "(($ac_try" in
7320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321  *) ac_try_echo=$ac_try;;
7322esac
7323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324  (eval "$ac_link") 2>conftest.er1
7325  ac_status=$?
7326  grep -v '^ *+' conftest.er1 >conftest.err
7327  rm -f conftest.er1
7328  cat conftest.err >&5
7329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330  (exit $ac_status); } && {
7331	 test -z "$ac_c_werror_flag" ||
7332	 test ! -s conftest.err
7333       } && test -s conftest$ac_exeext &&
7334       $as_test_x conftest$ac_exeext; then
7335  ac_cv_lib_dlpi_dlpi_walk=yes
7336else
7337  echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340	ac_cv_lib_dlpi_dlpi_walk=no
7341fi
7342
7343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7344      conftest$ac_exeext conftest.$ac_ext
7345LIBS=$ac_check_lib_save_LIBS
7346fi
7347{ echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7348echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7349if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7350  LIBS="-ldlpi $LIBS"
7351		V_PCAP=libdlpi
7352
7353cat >>confdefs.h <<\_ACEOF
7354#define HAVE_LIBDLPI 1
7355_ACEOF
7356
7357else
7358  V_PCAP=dlpi
7359fi
7360
7361	LDFLAGS=$saved_ldflags
7362
7363	#
7364	# Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7365	# versions of DLPI.
7366	#
7367	{ echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7368echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7369	if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7370  echo $ECHO_N "(cached) $ECHO_C" >&6
7371else
7372  cat >conftest.$ac_ext <<_ACEOF
7373/* confdefs.h.  */
7374_ACEOF
7375cat confdefs.h >>conftest.$ac_ext
7376cat >>conftest.$ac_ext <<_ACEOF
7377/* end confdefs.h.  */
7378
7379			#include <sys/types.h>
7380			#include <sys/time.h>
7381			#include <sys/dlpi.h>
7382
7383int
7384main ()
7385{
7386int i = DL_PROMISC_PHYS;
7387  ;
7388  return 0;
7389}
7390_ACEOF
7391rm -f conftest.$ac_objext
7392if { (ac_try="$ac_compile"
7393case "(($ac_try" in
7394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395  *) ac_try_echo=$ac_try;;
7396esac
7397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398  (eval "$ac_compile") 2>conftest.er1
7399  ac_status=$?
7400  grep -v '^ *+' conftest.er1 >conftest.err
7401  rm -f conftest.er1
7402  cat conftest.err >&5
7403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404  (exit $ac_status); } && {
7405	 test -z "$ac_c_werror_flag" ||
7406	 test ! -s conftest.err
7407       } && test -s conftest.$ac_objext; then
7408  ac_cv_sys_dlpi_usable=yes
7409else
7410  echo "$as_me: failed program was:" >&5
7411sed 's/^/| /' conftest.$ac_ext >&5
7412
7413	ac_cv_sys_dlpi_usable=no
7414fi
7415
7416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417fi
7418
7419	{ echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7420echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7421	if test $ac_cv_sys_dlpi_usable = no ; then
7422		{ { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7423echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7424   { (exit 1); exit 1; }; }
7425	fi
7426
7427	#
7428	# Check whether we have a /dev/dlpi device or have multiple devices.
7429	#
7430	{ echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7431echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7432	if test -c /dev/dlpi ; then
7433		{ echo "$as_me:$LINENO: result: yes" >&5
7434echo "${ECHO_T}yes" >&6; }
7435
7436cat >>confdefs.h <<\_ACEOF
7437#define HAVE_DEV_DLPI 1
7438_ACEOF
7439
7440	else
7441		{ echo "$as_me:$LINENO: result: no" >&5
7442echo "${ECHO_T}no" >&6; }
7443		dir="/dev/dlpi"
7444		{ echo "$as_me:$LINENO: checking for $dir directory" >&5
7445echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7446		if test -d $dir ; then
7447			{ echo "$as_me:$LINENO: result: yes" >&5
7448echo "${ECHO_T}yes" >&6; }
7449
7450cat >>confdefs.h <<_ACEOF
7451#define PCAP_DEV_PREFIX "$dir"
7452_ACEOF
7453
7454		else
7455			{ echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6; }
7457		fi
7458	fi
7459
7460	#
7461	# This check is for Solaris with DLPI support for passive modes.
7462	# See dlpi(7P) for more details.
7463	#
7464	{ echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7465echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7466       if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7467  echo $ECHO_N "(cached) $ECHO_C" >&6
7468else
7469  cat >conftest.$ac_ext <<_ACEOF
7470/* confdefs.h.  */
7471_ACEOF
7472cat confdefs.h >>conftest.$ac_ext
7473cat >>conftest.$ac_ext <<_ACEOF
7474/* end confdefs.h.  */
7475
7476#       include <sys/types.h>
7477#       include <sys/dlpi.h>
7478int
7479main ()
7480{
7481u_int i = sizeof(dl_passive_req_t)
7482  ;
7483  return 0;
7484}
7485_ACEOF
7486rm -f conftest.$ac_objext
7487if { (ac_try="$ac_compile"
7488case "(($ac_try" in
7489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490  *) ac_try_echo=$ac_try;;
7491esac
7492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493  (eval "$ac_compile") 2>conftest.er1
7494  ac_status=$?
7495  grep -v '^ *+' conftest.er1 >conftest.err
7496  rm -f conftest.er1
7497  cat conftest.err >&5
7498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499  (exit $ac_status); } && {
7500	 test -z "$ac_c_werror_flag" ||
7501	 test ! -s conftest.err
7502       } && test -s conftest.$ac_objext; then
7503  ac_cv_lbl_has_dl_passive_req_t=yes
7504else
7505  echo "$as_me: failed program was:" >&5
7506sed 's/^/| /' conftest.$ac_ext >&5
7507
7508	ac_cv_lbl_has_dl_passive_req_t=no
7509fi
7510
7511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512fi
7513
7514    { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7515echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7516    if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7517
7518cat >>confdefs.h <<\_ACEOF
7519#define HAVE_DLPI_PASSIVE 1
7520_ACEOF
7521
7522    fi
7523	;;
7524
7525linux)
7526	#
7527	# Do we have the wireless extensions?
7528	#
7529
7530for ac_header in linux/wireless.h
7531do
7532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7533{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7536  echo $ECHO_N "(cached) $ECHO_C" >&6
7537else
7538  cat >conftest.$ac_ext <<_ACEOF
7539/* confdefs.h.  */
7540_ACEOF
7541cat confdefs.h >>conftest.$ac_ext
7542cat >>conftest.$ac_ext <<_ACEOF
7543/* end confdefs.h.  */
7544
7545#include <sys/socket.h>
7546#include <linux/if.h>
7547#include <linux/types.h>
7548
7549
7550#include <$ac_header>
7551_ACEOF
7552rm -f conftest.$ac_objext
7553if { (ac_try="$ac_compile"
7554case "(($ac_try" in
7555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556  *) ac_try_echo=$ac_try;;
7557esac
7558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559  (eval "$ac_compile") 2>conftest.er1
7560  ac_status=$?
7561  grep -v '^ *+' conftest.er1 >conftest.err
7562  rm -f conftest.er1
7563  cat conftest.err >&5
7564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565  (exit $ac_status); } && {
7566	 test -z "$ac_c_werror_flag" ||
7567	 test ! -s conftest.err
7568       } && test -s conftest.$ac_objext; then
7569  eval "$as_ac_Header=yes"
7570else
7571  echo "$as_me: failed program was:" >&5
7572sed 's/^/| /' conftest.$ac_ext >&5
7573
7574	eval "$as_ac_Header=no"
7575fi
7576
7577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578fi
7579ac_res=`eval echo '${'$as_ac_Header'}'`
7580	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7581echo "${ECHO_T}$ac_res" >&6; }
7582if test `eval echo '${'$as_ac_Header'}'` = yes; then
7583  cat >>confdefs.h <<_ACEOF
7584#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7585_ACEOF
7586
7587fi
7588
7589done
7590
7591
7592	#
7593	# Do we have libnl?
7594	#
7595
7596# Check whether --with-libnl was given.
7597if test "${with_libnl+set}" = set; then
7598  withval=$with_libnl; with_libnl=$withval
7599fi
7600
7601
7602	if test x$with_libnl != xno ; then
7603		have_any_nl="no"
7604
7605		#
7606		# Try libnl 3.x first.
7607		#
7608		{ echo "$as_me:$LINENO: checking for nl_socket_alloc in -lnl-3" >&5
7609echo $ECHO_N "checking for nl_socket_alloc in -lnl-3... $ECHO_C" >&6; }
7610if test "${ac_cv_lib_nl_3_nl_socket_alloc+set}" = set; then
7611  echo $ECHO_N "(cached) $ECHO_C" >&6
7612else
7613  ac_check_lib_save_LIBS=$LIBS
7614LIBS="-lnl-3  $LIBS"
7615cat >conftest.$ac_ext <<_ACEOF
7616/* confdefs.h.  */
7617_ACEOF
7618cat confdefs.h >>conftest.$ac_ext
7619cat >>conftest.$ac_ext <<_ACEOF
7620/* end confdefs.h.  */
7621
7622/* Override any GCC internal prototype to avoid an error.
7623   Use char because int might match the return type of a GCC
7624   builtin and then its argument prototype would still apply.  */
7625#ifdef __cplusplus
7626extern "C"
7627#endif
7628char nl_socket_alloc ();
7629int
7630main ()
7631{
7632return nl_socket_alloc ();
7633  ;
7634  return 0;
7635}
7636_ACEOF
7637rm -f conftest.$ac_objext conftest$ac_exeext
7638if { (ac_try="$ac_link"
7639case "(($ac_try" in
7640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641  *) ac_try_echo=$ac_try;;
7642esac
7643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644  (eval "$ac_link") 2>conftest.er1
7645  ac_status=$?
7646  grep -v '^ *+' conftest.er1 >conftest.err
7647  rm -f conftest.er1
7648  cat conftest.err >&5
7649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650  (exit $ac_status); } && {
7651	 test -z "$ac_c_werror_flag" ||
7652	 test ! -s conftest.err
7653       } && test -s conftest$ac_exeext &&
7654       $as_test_x conftest$ac_exeext; then
7655  ac_cv_lib_nl_3_nl_socket_alloc=yes
7656else
7657  echo "$as_me: failed program was:" >&5
7658sed 's/^/| /' conftest.$ac_ext >&5
7659
7660	ac_cv_lib_nl_3_nl_socket_alloc=no
7661fi
7662
7663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7664      conftest$ac_exeext conftest.$ac_ext
7665LIBS=$ac_check_lib_save_LIBS
7666fi
7667{ echo "$as_me:$LINENO: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
7668echo "${ECHO_T}$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
7669if test $ac_cv_lib_nl_3_nl_socket_alloc = yes; then
7670
7671			#
7672			# Yes, we have libnl 3.x.
7673			#
7674			LIBS="-lnl-genl-3 -lnl-3 $LIBS"
7675
7676cat >>confdefs.h <<\_ACEOF
7677#define HAVE_LIBNL 1
7678_ACEOF
7679
7680
7681cat >>confdefs.h <<\_ACEOF
7682#define HAVE_LIBNL_3_x 1
7683_ACEOF
7684
7685
7686cat >>confdefs.h <<\_ACEOF
7687#define HAVE_LIBNL_NLE 1
7688_ACEOF
7689
7690
7691cat >>confdefs.h <<\_ACEOF
7692#define HAVE_LIBNL_SOCKETS 1
7693_ACEOF
7694
7695			V_INCLS="$V_INCLS -I/usr/include/libnl3"
7696			have_any_nl="yes"
7697
7698fi
7699
7700
7701		if test x$have_any_nl = xno ; then
7702			#
7703			# Try libnl 2.x
7704			#
7705			{ echo "$as_me:$LINENO: checking for nl_socket_alloc in -lnl" >&5
7706echo $ECHO_N "checking for nl_socket_alloc in -lnl... $ECHO_C" >&6; }
7707if test "${ac_cv_lib_nl_nl_socket_alloc+set}" = set; then
7708  echo $ECHO_N "(cached) $ECHO_C" >&6
7709else
7710  ac_check_lib_save_LIBS=$LIBS
7711LIBS="-lnl  $LIBS"
7712cat >conftest.$ac_ext <<_ACEOF
7713/* confdefs.h.  */
7714_ACEOF
7715cat confdefs.h >>conftest.$ac_ext
7716cat >>conftest.$ac_ext <<_ACEOF
7717/* end confdefs.h.  */
7718
7719/* Override any GCC internal prototype to avoid an error.
7720   Use char because int might match the return type of a GCC
7721   builtin and then its argument prototype would still apply.  */
7722#ifdef __cplusplus
7723extern "C"
7724#endif
7725char nl_socket_alloc ();
7726int
7727main ()
7728{
7729return nl_socket_alloc ();
7730  ;
7731  return 0;
7732}
7733_ACEOF
7734rm -f conftest.$ac_objext conftest$ac_exeext
7735if { (ac_try="$ac_link"
7736case "(($ac_try" in
7737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738  *) ac_try_echo=$ac_try;;
7739esac
7740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741  (eval "$ac_link") 2>conftest.er1
7742  ac_status=$?
7743  grep -v '^ *+' conftest.er1 >conftest.err
7744  rm -f conftest.er1
7745  cat conftest.err >&5
7746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747  (exit $ac_status); } && {
7748	 test -z "$ac_c_werror_flag" ||
7749	 test ! -s conftest.err
7750       } && test -s conftest$ac_exeext &&
7751       $as_test_x conftest$ac_exeext; then
7752  ac_cv_lib_nl_nl_socket_alloc=yes
7753else
7754  echo "$as_me: failed program was:" >&5
7755sed 's/^/| /' conftest.$ac_ext >&5
7756
7757	ac_cv_lib_nl_nl_socket_alloc=no
7758fi
7759
7760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7761      conftest$ac_exeext conftest.$ac_ext
7762LIBS=$ac_check_lib_save_LIBS
7763fi
7764{ echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
7765echo "${ECHO_T}$ac_cv_lib_nl_nl_socket_alloc" >&6; }
7766if test $ac_cv_lib_nl_nl_socket_alloc = yes; then
7767
7768				#
7769				# Yes, we have libnl 2.x.
7770				#
7771				LIBS="-lnl-genl -lnl $LIBS"
7772
7773cat >>confdefs.h <<\_ACEOF
7774#define HAVE_LIBNL 1
7775_ACEOF
7776
7777
7778cat >>confdefs.h <<\_ACEOF
7779#define HAVE_LIBNL_2_x 1
7780_ACEOF
7781
7782
7783cat >>confdefs.h <<\_ACEOF
7784#define HAVE_LIBNL_NLE 1
7785_ACEOF
7786
7787
7788cat >>confdefs.h <<\_ACEOF
7789#define HAVE_LIBNL_SOCKETS 1
7790_ACEOF
7791
7792				have_any_nl="yes"
7793
7794fi
7795
7796		fi
7797
7798		if test x$have_any_nl = xno ; then
7799			#
7800			# No, we don't; do we have libnl 1.x?
7801			#
7802			{ echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7803echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7804if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7805  echo $ECHO_N "(cached) $ECHO_C" >&6
7806else
7807  ac_check_lib_save_LIBS=$LIBS
7808LIBS="-lnl  $LIBS"
7809cat >conftest.$ac_ext <<_ACEOF
7810/* confdefs.h.  */
7811_ACEOF
7812cat confdefs.h >>conftest.$ac_ext
7813cat >>conftest.$ac_ext <<_ACEOF
7814/* end confdefs.h.  */
7815
7816/* Override any GCC internal prototype to avoid an error.
7817   Use char because int might match the return type of a GCC
7818   builtin and then its argument prototype would still apply.  */
7819#ifdef __cplusplus
7820extern "C"
7821#endif
7822char nl_handle_alloc ();
7823int
7824main ()
7825{
7826return nl_handle_alloc ();
7827  ;
7828  return 0;
7829}
7830_ACEOF
7831rm -f conftest.$ac_objext conftest$ac_exeext
7832if { (ac_try="$ac_link"
7833case "(($ac_try" in
7834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835  *) ac_try_echo=$ac_try;;
7836esac
7837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838  (eval "$ac_link") 2>conftest.er1
7839  ac_status=$?
7840  grep -v '^ *+' conftest.er1 >conftest.err
7841  rm -f conftest.er1
7842  cat conftest.err >&5
7843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844  (exit $ac_status); } && {
7845	 test -z "$ac_c_werror_flag" ||
7846	 test ! -s conftest.err
7847       } && test -s conftest$ac_exeext &&
7848       $as_test_x conftest$ac_exeext; then
7849  ac_cv_lib_nl_nl_handle_alloc=yes
7850else
7851  echo "$as_me: failed program was:" >&5
7852sed 's/^/| /' conftest.$ac_ext >&5
7853
7854	ac_cv_lib_nl_nl_handle_alloc=no
7855fi
7856
7857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7858      conftest$ac_exeext conftest.$ac_ext
7859LIBS=$ac_check_lib_save_LIBS
7860fi
7861{ echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7862echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7863if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7864
7865				#
7866				# Yes.
7867				#
7868				LIBS="-lnl $LIBS"
7869
7870cat >>confdefs.h <<\_ACEOF
7871#define HAVE_LIBNL 1
7872_ACEOF
7873
7874				have_any_nl="yes"
7875
7876fi
7877
7878		fi
7879
7880		if test x$have_any_nl = xno ; then
7881			#
7882			# No, we don't have libnl at all.
7883			#
7884			if test x$with_libnl = xyes ; then
7885				{ { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7886echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7887   { (exit 1); exit 1; }; }
7888			fi
7889		fi
7890	fi
7891
7892
7893for ac_header in linux/ethtool.h
7894do
7895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7896{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7899  echo $ECHO_N "(cached) $ECHO_C" >&6
7900else
7901  cat >conftest.$ac_ext <<_ACEOF
7902/* confdefs.h.  */
7903_ACEOF
7904cat confdefs.h >>conftest.$ac_ext
7905cat >>conftest.$ac_ext <<_ACEOF
7906/* end confdefs.h.  */
7907
7908$ac_includes_default
7909#include <linux/types.h>
7910
7911
7912#include <$ac_header>
7913_ACEOF
7914rm -f conftest.$ac_objext
7915if { (ac_try="$ac_compile"
7916case "(($ac_try" in
7917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918  *) ac_try_echo=$ac_try;;
7919esac
7920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921  (eval "$ac_compile") 2>conftest.er1
7922  ac_status=$?
7923  grep -v '^ *+' conftest.er1 >conftest.err
7924  rm -f conftest.er1
7925  cat conftest.err >&5
7926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927  (exit $ac_status); } && {
7928	 test -z "$ac_c_werror_flag" ||
7929	 test ! -s conftest.err
7930       } && test -s conftest.$ac_objext; then
7931  eval "$as_ac_Header=yes"
7932else
7933  echo "$as_me: failed program was:" >&5
7934sed 's/^/| /' conftest.$ac_ext >&5
7935
7936	eval "$as_ac_Header=no"
7937fi
7938
7939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940fi
7941ac_res=`eval echo '${'$as_ac_Header'}'`
7942	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7943echo "${ECHO_T}$ac_res" >&6; }
7944if test `eval echo '${'$as_ac_Header'}'` = yes; then
7945  cat >>confdefs.h <<_ACEOF
7946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7947_ACEOF
7948
7949fi
7950
7951done
7952
7953	{ echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7954echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7955   if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7956  echo $ECHO_N "(cached) $ECHO_C" >&6
7957else
7958  cat >conftest.$ac_ext <<_ACEOF
7959/* confdefs.h.  */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
7963/* end confdefs.h.  */
7964
7965#  include <linux/if_packet.h>
7966int
7967main ()
7968{
7969struct tpacket_stats stats
7970  ;
7971  return 0;
7972}
7973_ACEOF
7974rm -f conftest.$ac_objext
7975if { (ac_try="$ac_compile"
7976case "(($ac_try" in
7977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978  *) ac_try_echo=$ac_try;;
7979esac
7980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981  (eval "$ac_compile") 2>conftest.er1
7982  ac_status=$?
7983  grep -v '^ *+' conftest.er1 >conftest.err
7984  rm -f conftest.er1
7985  cat conftest.err >&5
7986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987  (exit $ac_status); } && {
7988	 test -z "$ac_c_werror_flag" ||
7989	 test ! -s conftest.err
7990       } && test -s conftest.$ac_objext; then
7991  ac_cv_lbl_tpacket_stats=yes
7992else
7993  echo "$as_me: failed program was:" >&5
7994sed 's/^/| /' conftest.$ac_ext >&5
7995
7996	ac_cv_lbl_tpacket_stats=no
7997fi
7998
7999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000fi
8001
8002   { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
8003echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
8004   if test $ac_cv_lbl_tpacket_stats = yes; then
8005
8006cat >>confdefs.h <<\_ACEOF
8007#define HAVE_TPACKET_STATS 1
8008_ACEOF
8009
8010   fi
8011	{ echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
8012echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
8013    if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then
8014  echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016  cat >conftest.$ac_ext <<_ACEOF
8017/* confdefs.h.  */
8018_ACEOF
8019cat confdefs.h >>conftest.$ac_ext
8020cat >>conftest.$ac_ext <<_ACEOF
8021/* end confdefs.h.  */
8022
8023#	include <sys/types.h>
8024#	include <linux/if_packet.h>
8025int
8026main ()
8027{
8028u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
8029  ;
8030  return 0;
8031}
8032_ACEOF
8033rm -f conftest.$ac_objext
8034if { (ac_try="$ac_compile"
8035case "(($ac_try" in
8036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037  *) ac_try_echo=$ac_try;;
8038esac
8039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040  (eval "$ac_compile") 2>conftest.er1
8041  ac_status=$?
8042  grep -v '^ *+' conftest.er1 >conftest.err
8043  rm -f conftest.er1
8044  cat conftest.err >&5
8045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046  (exit $ac_status); } && {
8047	 test -z "$ac_c_werror_flag" ||
8048	 test ! -s conftest.err
8049       } && test -s conftest.$ac_objext; then
8050  ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
8051else
8052  echo "$as_me: failed program was:" >&5
8053sed 's/^/| /' conftest.$ac_ext >&5
8054
8055	ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
8056fi
8057
8058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059fi
8060
8061    { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
8062echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
8063    if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
8064	    HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
8065
8066
8067cat >>confdefs.h <<\_ACEOF
8068#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
8069_ACEOF
8070
8071    fi
8072	;;
8073
8074bpf)
8075	#
8076	# Check whether we have the *BSD-style ioctls.
8077	#
8078
8079for ac_header in net/if_media.h
8080do
8081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8086  echo $ECHO_N "(cached) $ECHO_C" >&6
8087fi
8088ac_res=`eval echo '${'$as_ac_Header'}'`
8089	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8090echo "${ECHO_T}$ac_res" >&6; }
8091else
8092  # Is the header compilable?
8093{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8095cat >conftest.$ac_ext <<_ACEOF
8096/* confdefs.h.  */
8097_ACEOF
8098cat confdefs.h >>conftest.$ac_ext
8099cat >>conftest.$ac_ext <<_ACEOF
8100/* end confdefs.h.  */
8101$ac_includes_default
8102#include <$ac_header>
8103_ACEOF
8104rm -f conftest.$ac_objext
8105if { (ac_try="$ac_compile"
8106case "(($ac_try" in
8107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108  *) ac_try_echo=$ac_try;;
8109esac
8110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111  (eval "$ac_compile") 2>conftest.er1
8112  ac_status=$?
8113  grep -v '^ *+' conftest.er1 >conftest.err
8114  rm -f conftest.er1
8115  cat conftest.err >&5
8116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117  (exit $ac_status); } && {
8118	 test -z "$ac_c_werror_flag" ||
8119	 test ! -s conftest.err
8120       } && test -s conftest.$ac_objext; then
8121  ac_header_compiler=yes
8122else
8123  echo "$as_me: failed program was:" >&5
8124sed 's/^/| /' conftest.$ac_ext >&5
8125
8126	ac_header_compiler=no
8127fi
8128
8129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8131echo "${ECHO_T}$ac_header_compiler" >&6; }
8132
8133# Is the header present?
8134{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8135echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8136cat >conftest.$ac_ext <<_ACEOF
8137/* confdefs.h.  */
8138_ACEOF
8139cat confdefs.h >>conftest.$ac_ext
8140cat >>conftest.$ac_ext <<_ACEOF
8141/* end confdefs.h.  */
8142#include <$ac_header>
8143_ACEOF
8144if { (ac_try="$ac_cpp conftest.$ac_ext"
8145case "(($ac_try" in
8146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147  *) ac_try_echo=$ac_try;;
8148esac
8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8151  ac_status=$?
8152  grep -v '^ *+' conftest.er1 >conftest.err
8153  rm -f conftest.er1
8154  cat conftest.err >&5
8155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156  (exit $ac_status); } >/dev/null && {
8157	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8158	 test ! -s conftest.err
8159       }; then
8160  ac_header_preproc=yes
8161else
8162  echo "$as_me: failed program was:" >&5
8163sed 's/^/| /' conftest.$ac_ext >&5
8164
8165  ac_header_preproc=no
8166fi
8167
8168rm -f conftest.err conftest.$ac_ext
8169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8170echo "${ECHO_T}$ac_header_preproc" >&6; }
8171
8172# So?  What about this header?
8173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8174  yes:no: )
8175    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8177    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8179    ac_header_preproc=yes
8180    ;;
8181  no:yes:* )
8182    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8184    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8185echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8186    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8188    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8189echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8190    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8192    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8194
8195    ;;
8196esac
8197{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8200  echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
8202  eval "$as_ac_Header=\$ac_header_preproc"
8203fi
8204ac_res=`eval echo '${'$as_ac_Header'}'`
8205	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8206echo "${ECHO_T}$ac_res" >&6; }
8207
8208fi
8209if test `eval echo '${'$as_ac_Header'}'` = yes; then
8210  cat >>confdefs.h <<_ACEOF
8211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8212_ACEOF
8213
8214fi
8215
8216done
8217
8218
8219	{ echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
8220echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
8221	cat >conftest.$ac_ext <<_ACEOF
8222/* confdefs.h.  */
8223_ACEOF
8224cat confdefs.h >>conftest.$ac_ext
8225cat >>conftest.$ac_ext <<_ACEOF
8226/* end confdefs.h.  */
8227#include <sys/socket.h>
8228	    #include <sys/ioctl.h>
8229	    #include <net/if.h>
8230	    #include <net/bpf.h>
8231int
8232main ()
8233{
8234return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
8235  ;
8236  return 0;
8237}
8238_ACEOF
8239rm -f conftest.$ac_objext
8240if { (ac_try="$ac_compile"
8241case "(($ac_try" in
8242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243  *) ac_try_echo=$ac_try;;
8244esac
8245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246  (eval "$ac_compile") 2>conftest.er1
8247  ac_status=$?
8248  grep -v '^ *+' conftest.er1 >conftest.err
8249  rm -f conftest.er1
8250  cat conftest.err >&5
8251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252  (exit $ac_status); } && {
8253	 test -z "$ac_c_werror_flag" ||
8254	 test ! -s conftest.err
8255       } && test -s conftest.$ac_objext; then
8256
8257		{ echo "$as_me:$LINENO: result: yes" >&5
8258echo "${ECHO_T}yes" >&6; }
8259
8260cat >>confdefs.h <<\_ACEOF
8261#define HAVE_ZEROCOPY_BPF 1
8262_ACEOF
8263
8264
8265else
8266  echo "$as_me: failed program was:" >&5
8267sed 's/^/| /' conftest.$ac_ext >&5
8268
8269	{ echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6; }
8271fi
8272
8273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274
8275	    #
8276	    # Check whether we have struct BPF_TIMEVAL.
8277	    #
8278	    { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
8279echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
8280if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
8281  echo $ECHO_N "(cached) $ECHO_C" >&6
8282else
8283  cat >conftest.$ac_ext <<_ACEOF
8284/* confdefs.h.  */
8285_ACEOF
8286cat confdefs.h >>conftest.$ac_ext
8287cat >>conftest.$ac_ext <<_ACEOF
8288/* end confdefs.h.  */
8289
8290#include <sys/types.h>
8291#include <sys/ioctl.h>
8292#ifdef HAVE_SYS_IOCCOM_H
8293#include <sys/ioccom.h>
8294#endif
8295#include <net/bpf.h>
8296
8297
8298typedef struct BPF_TIMEVAL ac__type_new_;
8299int
8300main ()
8301{
8302if ((ac__type_new_ *) 0)
8303  return 0;
8304if (sizeof (ac__type_new_))
8305  return 0;
8306  ;
8307  return 0;
8308}
8309_ACEOF
8310rm -f conftest.$ac_objext
8311if { (ac_try="$ac_compile"
8312case "(($ac_try" in
8313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314  *) ac_try_echo=$ac_try;;
8315esac
8316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317  (eval "$ac_compile") 2>conftest.er1
8318  ac_status=$?
8319  grep -v '^ *+' conftest.er1 >conftest.err
8320  rm -f conftest.er1
8321  cat conftest.err >&5
8322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323  (exit $ac_status); } && {
8324	 test -z "$ac_c_werror_flag" ||
8325	 test ! -s conftest.err
8326       } && test -s conftest.$ac_objext; then
8327  ac_cv_type_struct_BPF_TIMEVAL=yes
8328else
8329  echo "$as_me: failed program was:" >&5
8330sed 's/^/| /' conftest.$ac_ext >&5
8331
8332	ac_cv_type_struct_BPF_TIMEVAL=no
8333fi
8334
8335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336fi
8337{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
8338echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
8339if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
8340
8341cat >>confdefs.h <<_ACEOF
8342#define HAVE_STRUCT_BPF_TIMEVAL 1
8343_ACEOF
8344
8345
8346fi
8347
8348	;;
8349
8350dag)
8351	V_DEFS="$V_DEFS -DDAG_ONLY"
8352	;;
8353
8354septel)
8355	V_DEFS="$V_DEFS -DSEPTEL_ONLY"
8356	;;
8357
8358snf)
8359	V_DEFS="$V_DEFS -DSNF_ONLY"
8360	;;
8361
8362null)
8363	{ echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
8364echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
8365	{ echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
8366echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
8367	;;
8368esac
8369
8370if test "$V_PCAP" = null
8371then
8372	#
8373	# We can't capture, so we can't open any capture
8374	# devices, so we won't return any interfaces.
8375	#
8376	V_FINDALLDEVS=null
8377else
8378	{ echo "$as_me:$LINENO: checking for getifaddrs" >&5
8379echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
8380if test "${ac_cv_func_getifaddrs+set}" = set; then
8381  echo $ECHO_N "(cached) $ECHO_C" >&6
8382else
8383  cat >conftest.$ac_ext <<_ACEOF
8384/* confdefs.h.  */
8385_ACEOF
8386cat confdefs.h >>conftest.$ac_ext
8387cat >>conftest.$ac_ext <<_ACEOF
8388/* end confdefs.h.  */
8389/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
8390   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8391#define getifaddrs innocuous_getifaddrs
8392
8393/* System header to define __stub macros and hopefully few prototypes,
8394    which can conflict with char getifaddrs (); below.
8395    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8396    <limits.h> exists even on freestanding compilers.  */
8397
8398#ifdef __STDC__
8399# include <limits.h>
8400#else
8401# include <assert.h>
8402#endif
8403
8404#undef getifaddrs
8405
8406/* Override any GCC internal prototype to avoid an error.
8407   Use char because int might match the return type of a GCC
8408   builtin and then its argument prototype would still apply.  */
8409#ifdef __cplusplus
8410extern "C"
8411#endif
8412char getifaddrs ();
8413/* The GNU C library defines this for functions which it implements
8414    to always fail with ENOSYS.  Some functions are actually named
8415    something starting with __ and the normal name is an alias.  */
8416#if defined __stub_getifaddrs || defined __stub___getifaddrs
8417choke me
8418#endif
8419
8420int
8421main ()
8422{
8423return getifaddrs ();
8424  ;
8425  return 0;
8426}
8427_ACEOF
8428rm -f conftest.$ac_objext conftest$ac_exeext
8429if { (ac_try="$ac_link"
8430case "(($ac_try" in
8431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432  *) ac_try_echo=$ac_try;;
8433esac
8434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435  (eval "$ac_link") 2>conftest.er1
8436  ac_status=$?
8437  grep -v '^ *+' conftest.er1 >conftest.err
8438  rm -f conftest.er1
8439  cat conftest.err >&5
8440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441  (exit $ac_status); } && {
8442	 test -z "$ac_c_werror_flag" ||
8443	 test ! -s conftest.err
8444       } && test -s conftest$ac_exeext &&
8445       $as_test_x conftest$ac_exeext; then
8446  ac_cv_func_getifaddrs=yes
8447else
8448  echo "$as_me: failed program was:" >&5
8449sed 's/^/| /' conftest.$ac_ext >&5
8450
8451	ac_cv_func_getifaddrs=no
8452fi
8453
8454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8455      conftest$ac_exeext conftest.$ac_ext
8456fi
8457{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
8458echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
8459if test $ac_cv_func_getifaddrs = yes; then
8460
8461		#
8462		# We have "getifaddrs()"; make sure we have <ifaddrs.h>
8463		# as well, just in case some platform is really weird.
8464		#
8465		if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8466  { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8467echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8468if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8469  echo $ECHO_N "(cached) $ECHO_C" >&6
8470fi
8471{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8472echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8473else
8474  # Is the header compilable?
8475{ echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
8476echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
8477cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h.  */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h.  */
8483$ac_includes_default
8484#include <ifaddrs.h>
8485_ACEOF
8486rm -f conftest.$ac_objext
8487if { (ac_try="$ac_compile"
8488case "(($ac_try" in
8489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490  *) ac_try_echo=$ac_try;;
8491esac
8492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493  (eval "$ac_compile") 2>conftest.er1
8494  ac_status=$?
8495  grep -v '^ *+' conftest.er1 >conftest.err
8496  rm -f conftest.er1
8497  cat conftest.err >&5
8498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499  (exit $ac_status); } && {
8500	 test -z "$ac_c_werror_flag" ||
8501	 test ! -s conftest.err
8502       } && test -s conftest.$ac_objext; then
8503  ac_header_compiler=yes
8504else
8505  echo "$as_me: failed program was:" >&5
8506sed 's/^/| /' conftest.$ac_ext >&5
8507
8508	ac_header_compiler=no
8509fi
8510
8511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8512{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513echo "${ECHO_T}$ac_header_compiler" >&6; }
8514
8515# Is the header present?
8516{ echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
8517echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
8518cat >conftest.$ac_ext <<_ACEOF
8519/* confdefs.h.  */
8520_ACEOF
8521cat confdefs.h >>conftest.$ac_ext
8522cat >>conftest.$ac_ext <<_ACEOF
8523/* end confdefs.h.  */
8524#include <ifaddrs.h>
8525_ACEOF
8526if { (ac_try="$ac_cpp conftest.$ac_ext"
8527case "(($ac_try" in
8528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529  *) ac_try_echo=$ac_try;;
8530esac
8531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8533  ac_status=$?
8534  grep -v '^ *+' conftest.er1 >conftest.err
8535  rm -f conftest.er1
8536  cat conftest.err >&5
8537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538  (exit $ac_status); } >/dev/null && {
8539	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8540	 test ! -s conftest.err
8541       }; then
8542  ac_header_preproc=yes
8543else
8544  echo "$as_me: failed program was:" >&5
8545sed 's/^/| /' conftest.$ac_ext >&5
8546
8547  ac_header_preproc=no
8548fi
8549
8550rm -f conftest.err conftest.$ac_ext
8551{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8552echo "${ECHO_T}$ac_header_preproc" >&6; }
8553
8554# So?  What about this header?
8555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8556  yes:no: )
8557    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
8558echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8559    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
8560echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
8561    ac_header_preproc=yes
8562    ;;
8563  no:yes:* )
8564    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
8565echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
8566    { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&5
8567echo "$as_me: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&2;}
8568    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
8569echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
8570    { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&5
8571echo "$as_me: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8572    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
8573echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
8574    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
8575echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
8576
8577    ;;
8578esac
8579{ echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8580echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8581if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8582  echo $ECHO_N "(cached) $ECHO_C" >&6
8583else
8584  ac_cv_header_ifaddrs_h=$ac_header_preproc
8585fi
8586{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8587echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8588
8589fi
8590if test $ac_cv_header_ifaddrs_h = yes; then
8591
8592		    #
8593		    # We have the header, so we use "getifaddrs()" to
8594		    # get the list of interfaces.
8595		    #
8596		    V_FINDALLDEVS=getad
8597
8598else
8599
8600		    #
8601		    # We don't have the header - give up.
8602		    # XXX - we could also fall back on some other
8603		    # mechanism, but, for now, this'll catch this
8604		    # problem so that we can at least try to figure
8605		    # out something to do on systems with "getifaddrs()"
8606		    # but without "ifaddrs.h", if there is something
8607		    # we can do on those systems.
8608		    #
8609		    { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8610echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8611   { (exit 1); exit 1; }; }
8612
8613fi
8614
8615
8616
8617else
8618
8619		#
8620		# Well, we don't have "getifaddrs()", so we have to use
8621		# some other mechanism; determine what that mechanism is.
8622		#
8623		# The first thing we use is the type of capture mechanism,
8624		# which is somewhat of a proxy for the OS we're using.
8625		#
8626		case "$V_PCAP" in
8627
8628		dlpi|libdlpi)
8629
8630
8631for ac_header in sys/bufmod.h sys/dlpi_ext.h
8632do
8633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8635  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8638  echo $ECHO_N "(cached) $ECHO_C" >&6
8639fi
8640ac_res=`eval echo '${'$as_ac_Header'}'`
8641	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8642echo "${ECHO_T}$ac_res" >&6; }
8643else
8644  # Is the header compilable?
8645{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8647cat >conftest.$ac_ext <<_ACEOF
8648/* confdefs.h.  */
8649_ACEOF
8650cat confdefs.h >>conftest.$ac_ext
8651cat >>conftest.$ac_ext <<_ACEOF
8652/* end confdefs.h.  */
8653$ac_includes_default
8654#include <$ac_header>
8655_ACEOF
8656rm -f conftest.$ac_objext
8657if { (ac_try="$ac_compile"
8658case "(($ac_try" in
8659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660  *) ac_try_echo=$ac_try;;
8661esac
8662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663  (eval "$ac_compile") 2>conftest.er1
8664  ac_status=$?
8665  grep -v '^ *+' conftest.er1 >conftest.err
8666  rm -f conftest.er1
8667  cat conftest.err >&5
8668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669  (exit $ac_status); } && {
8670	 test -z "$ac_c_werror_flag" ||
8671	 test ! -s conftest.err
8672       } && test -s conftest.$ac_objext; then
8673  ac_header_compiler=yes
8674else
8675  echo "$as_me: failed program was:" >&5
8676sed 's/^/| /' conftest.$ac_ext >&5
8677
8678	ac_header_compiler=no
8679fi
8680
8681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8683echo "${ECHO_T}$ac_header_compiler" >&6; }
8684
8685# Is the header present?
8686{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8687echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8688cat >conftest.$ac_ext <<_ACEOF
8689/* confdefs.h.  */
8690_ACEOF
8691cat confdefs.h >>conftest.$ac_ext
8692cat >>conftest.$ac_ext <<_ACEOF
8693/* end confdefs.h.  */
8694#include <$ac_header>
8695_ACEOF
8696if { (ac_try="$ac_cpp conftest.$ac_ext"
8697case "(($ac_try" in
8698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699  *) ac_try_echo=$ac_try;;
8700esac
8701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8703  ac_status=$?
8704  grep -v '^ *+' conftest.er1 >conftest.err
8705  rm -f conftest.er1
8706  cat conftest.err >&5
8707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708  (exit $ac_status); } >/dev/null && {
8709	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8710	 test ! -s conftest.err
8711       }; then
8712  ac_header_preproc=yes
8713else
8714  echo "$as_me: failed program was:" >&5
8715sed 's/^/| /' conftest.$ac_ext >&5
8716
8717  ac_header_preproc=no
8718fi
8719
8720rm -f conftest.err conftest.$ac_ext
8721{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8722echo "${ECHO_T}$ac_header_preproc" >&6; }
8723
8724# So?  What about this header?
8725case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8726  yes:no: )
8727    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8728echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8729    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8730echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8731    ac_header_preproc=yes
8732    ;;
8733  no:yes:* )
8734    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8735echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8736    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8737echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8738    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8739echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8740    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8741echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8742    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8743echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8744    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8745echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8746
8747    ;;
8748esac
8749{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8752  echo $ECHO_N "(cached) $ECHO_C" >&6
8753else
8754  eval "$as_ac_Header=\$ac_header_preproc"
8755fi
8756ac_res=`eval echo '${'$as_ac_Header'}'`
8757	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8758echo "${ECHO_T}$ac_res" >&6; }
8759
8760fi
8761if test `eval echo '${'$as_ac_Header'}'` = yes; then
8762  cat >>confdefs.h <<_ACEOF
8763#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8764_ACEOF
8765
8766fi
8767
8768done
8769
8770			#
8771			# This might be Solaris 8 or later, with
8772			# SIOCGLIFCONF, or it might be some other OS
8773			# or some older version of Solaris, with
8774			# just SIOCGIFCONF.
8775			#
8776			{ echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8777echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8778			if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8779  echo $ECHO_N "(cached) $ECHO_C" >&6
8780else
8781  cat >conftest.$ac_ext <<_ACEOF
8782/* confdefs.h.  */
8783_ACEOF
8784cat confdefs.h >>conftest.$ac_ext
8785cat >>conftest.$ac_ext <<_ACEOF
8786/* end confdefs.h.  */
8787#include <sys/param.h>
8788				#include <sys/file.h>
8789				#include <sys/ioctl.h>
8790				#include <sys/socket.h>
8791				#include <sys/sockio.h>
8792int
8793main ()
8794{
8795ioctl(0, SIOCGLIFCONF, (char *)0);
8796  ;
8797  return 0;
8798}
8799_ACEOF
8800rm -f conftest.$ac_objext
8801if { (ac_try="$ac_compile"
8802case "(($ac_try" in
8803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804  *) ac_try_echo=$ac_try;;
8805esac
8806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807  (eval "$ac_compile") 2>conftest.er1
8808  ac_status=$?
8809  grep -v '^ *+' conftest.er1 >conftest.err
8810  rm -f conftest.er1
8811  cat conftest.err >&5
8812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813  (exit $ac_status); } && {
8814	 test -z "$ac_c_werror_flag" ||
8815	 test ! -s conftest.err
8816       } && test -s conftest.$ac_objext; then
8817  ac_cv_lbl_have_siocglifconf=yes
8818else
8819  echo "$as_me: failed program was:" >&5
8820sed 's/^/| /' conftest.$ac_ext >&5
8821
8822	ac_cv_lbl_have_siocglifconf=no
8823fi
8824
8825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826fi
8827
8828			{ echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8829echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8830			if test $ac_cv_lbl_have_siocglifconf = yes ; then
8831				V_FINDALLDEVS=glifc
8832			else
8833				V_FINDALLDEVS=gifc
8834			fi
8835			#
8836			# Needed for common functions used by pcap-[dlpi,libdlpi].c
8837			#
8838		 	SSRC="dlpisubs.c"
8839			;;
8840
8841		*)
8842			#
8843			# Assume we just have SIOCGIFCONF.
8844			# (XXX - on at least later Linux kernels, there's
8845			# another mechanism, and we should be using that
8846			# instead.)
8847			#
8848			V_FINDALLDEVS=gifc
8849			;;
8850		esac
8851fi
8852
8853fi
8854
8855fi
8856
8857
8858{ echo "$as_me:$LINENO: checking for socklen_t" >&5
8859echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8860cat >conftest.$ac_ext <<_ACEOF
8861/* confdefs.h.  */
8862_ACEOF
8863cat confdefs.h >>conftest.$ac_ext
8864cat >>conftest.$ac_ext <<_ACEOF
8865/* end confdefs.h.  */
8866
8867	#include <sys/types.h>
8868	#include <sys/socket.h>
8869
8870int
8871main ()
8872{
8873 socklen_t x;
8874  ;
8875  return 0;
8876}
8877_ACEOF
8878rm -f conftest.$ac_objext
8879if { (ac_try="$ac_compile"
8880case "(($ac_try" in
8881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882  *) ac_try_echo=$ac_try;;
8883esac
8884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885  (eval "$ac_compile") 2>conftest.er1
8886  ac_status=$?
8887  grep -v '^ *+' conftest.er1 >conftest.err
8888  rm -f conftest.er1
8889  cat conftest.err >&5
8890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891  (exit $ac_status); } && {
8892	 test -z "$ac_c_werror_flag" ||
8893	 test ! -s conftest.err
8894       } && test -s conftest.$ac_objext; then
8895  have_socklen_t=yes
8896else
8897  echo "$as_me: failed program was:" >&5
8898sed 's/^/| /' conftest.$ac_ext >&5
8899
8900	have_socklen_t=no
8901fi
8902
8903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904if test "x$have_socklen_t" = "xyes"; then
8905
8906cat >>confdefs.h <<\_ACEOF
8907#define HAVE_SOCKLEN_T 1
8908_ACEOF
8909
8910fi
8911{ echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8912echo "${ECHO_T}$have_socklen_t" >&6; }
8913
8914# Check whether --enable-ipv6 was given.
8915if test "${enable_ipv6+set}" = set; then
8916  enableval=$enable_ipv6;
8917else
8918  enable_ipv6=ifavailable
8919fi
8920
8921if test "$enable_ipv6" != "no"; then
8922	{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8923echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8924if test "${ac_cv_func_getaddrinfo+set}" = set; then
8925  echo $ECHO_N "(cached) $ECHO_C" >&6
8926else
8927  cat >conftest.$ac_ext <<_ACEOF
8928/* confdefs.h.  */
8929_ACEOF
8930cat confdefs.h >>conftest.$ac_ext
8931cat >>conftest.$ac_ext <<_ACEOF
8932/* end confdefs.h.  */
8933/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8934   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8935#define getaddrinfo innocuous_getaddrinfo
8936
8937/* System header to define __stub macros and hopefully few prototypes,
8938    which can conflict with char getaddrinfo (); below.
8939    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8940    <limits.h> exists even on freestanding compilers.  */
8941
8942#ifdef __STDC__
8943# include <limits.h>
8944#else
8945# include <assert.h>
8946#endif
8947
8948#undef getaddrinfo
8949
8950/* Override any GCC internal prototype to avoid an error.
8951   Use char because int might match the return type of a GCC
8952   builtin and then its argument prototype would still apply.  */
8953#ifdef __cplusplus
8954extern "C"
8955#endif
8956char getaddrinfo ();
8957/* The GNU C library defines this for functions which it implements
8958    to always fail with ENOSYS.  Some functions are actually named
8959    something starting with __ and the normal name is an alias.  */
8960#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8961choke me
8962#endif
8963
8964int
8965main ()
8966{
8967return getaddrinfo ();
8968  ;
8969  return 0;
8970}
8971_ACEOF
8972rm -f conftest.$ac_objext conftest$ac_exeext
8973if { (ac_try="$ac_link"
8974case "(($ac_try" in
8975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976  *) ac_try_echo=$ac_try;;
8977esac
8978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979  (eval "$ac_link") 2>conftest.er1
8980  ac_status=$?
8981  grep -v '^ *+' conftest.er1 >conftest.err
8982  rm -f conftest.er1
8983  cat conftest.err >&5
8984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985  (exit $ac_status); } && {
8986	 test -z "$ac_c_werror_flag" ||
8987	 test ! -s conftest.err
8988       } && test -s conftest$ac_exeext &&
8989       $as_test_x conftest$ac_exeext; then
8990  ac_cv_func_getaddrinfo=yes
8991else
8992  echo "$as_me: failed program was:" >&5
8993sed 's/^/| /' conftest.$ac_ext >&5
8994
8995	ac_cv_func_getaddrinfo=no
8996fi
8997
8998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8999      conftest$ac_exeext conftest.$ac_ext
9000fi
9001{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
9002echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
9003if test $ac_cv_func_getaddrinfo = yes; then
9004
9005
9006cat >>confdefs.h <<\_ACEOF
9007#define INET6 1
9008_ACEOF
9009
9010
9011else
9012
9013		if test "$enable_ipv6" != "ifavailable"; then
9014			{ { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
9015See \`config.log' for more details." >&5
9016echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
9017See \`config.log' for more details." >&2;}
9018   { (exit 1); exit 1; }; }
9019		fi
9020
9021fi
9022
9023fi
9024
9025{ echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
9026echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
9027# Check whether --enable-optimizer-dbg was given.
9028if test "${enable_optimizer_dbg+set}" = set; then
9029  enableval=$enable_optimizer_dbg;
9030fi
9031
9032if test "$enable_optimizer_dbg" = "yes"; then
9033
9034cat >>confdefs.h <<\_ACEOF
9035#define BDEBUG 1
9036_ACEOF
9037
9038fi
9039{ echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
9040echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
9041
9042{ echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
9043echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
9044# Check whether --enable-yydebug was given.
9045if test "${enable_yydebug+set}" = set; then
9046  enableval=$enable_yydebug;
9047fi
9048
9049if test "$enable_yydebug" = "yes"; then
9050
9051cat >>confdefs.h <<\_ACEOF
9052#define YYDEBUG 1
9053_ACEOF
9054
9055fi
9056{ echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
9057echo "${ECHO_T}${enable_yydebug-no}" >&6; }
9058
9059# Check for Endace DAG card support.
9060
9061# Check whether --with-dag was given.
9062if test "${with_dag+set}" = set; then
9063  withval=$with_dag;
9064	if test "$withval" = no
9065	then
9066		# User doesn't want DAG support.
9067		want_dag=no
9068	elif test "$withval" = yes
9069	then
9070		# User wants DAG support but hasn't specified a directory.
9071		want_dag=yes
9072	else
9073		# User wants DAG support and has specified a directory, so use the provided value.
9074		want_dag=yes
9075		dag_root=$withval
9076	fi
9077
9078else
9079
9080	#
9081	# Use DAG API if present, otherwise don't
9082	#
9083	want_dag=ifpresent
9084
9085fi
9086
9087
9088
9089# Check whether --with-dag-includes was given.
9090if test "${with_dag_includes+set}" = set; then
9091  withval=$with_dag_includes;
9092	# User wants DAG support and has specified a header directory, so use the provided value.
9093	want_dag=yes
9094	dag_include_dir=$withval
9095
9096fi
9097
9098
9099
9100# Check whether --with-dag-libraries was given.
9101if test "${with_dag_libraries+set}" = set; then
9102  withval=$with_dag_libraries;
9103	# User wants DAG support and has specified a library directory, so use the provided value.
9104	want_dag=yes
9105	dag_lib_dir=$withval
9106
9107fi
9108
9109
9110case "$V_PCAP" in
9111linux|bpf|dag)
9112	#
9113	# We support the DAG API if we're on Linux or BSD, or if we're
9114	# building a DAG-only libpcap.
9115	#
9116	;;
9117*)
9118	#
9119	# If the user explicitly requested DAG, tell them it's not
9120	# supported.
9121	#
9122	# If they expressed no preference, don't include it.
9123	#
9124	if test $want_dag = yes; then
9125		{ { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
9126echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
9127   { (exit 1); exit 1; }; }
9128	elif test $want_dag = yes; then
9129		want_dag=no
9130	fi
9131	;;
9132esac
9133
9134ac_cv_lbl_dag_api=no
9135if test "$want_dag" != no; then
9136
9137	{ echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
9138echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
9139
9140	# If necessary, set default paths for DAG API headers and libraries.
9141	if test -z "$dag_root"; then
9142	    dag_root=/usr/local
9143	fi
9144
9145	if test -z "$dag_include_dir"; then
9146		dag_include_dir="$dag_root/include"
9147	fi
9148
9149	if test -z "$dag_lib_dir"; then
9150	    dag_lib_dir="$dag_root/lib"
9151	fi
9152
9153	if test -z "$dag_tools_dir"; then
9154	    dag_tools_dir="$dag_root/tools"
9155	fi
9156
9157	if test -r $dag_include_dir/dagapi.h; then
9158		ac_cv_lbl_dag_api=yes
9159	fi
9160	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
9161echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
9162fi
9163
9164if test $ac_cv_lbl_dag_api = yes; then
9165	V_INCLS="$V_INCLS -I$dag_include_dir"
9166
9167	if test $V_PCAP != dag ; then
9168		 SSRC="pcap-dag.c"
9169	fi
9170
9171	# See if we can find a general version string.
9172	# Don't need to save and restore LIBS to prevent -ldag being
9173	# included if there's a found-action (arg 3).
9174	saved_ldflags=$LDFLAGS
9175	LDFLAGS="-L$dag_lib_dir"
9176	{ echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
9177echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
9178if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
9179  echo $ECHO_N "(cached) $ECHO_C" >&6
9180else
9181  ac_check_lib_save_LIBS=$LIBS
9182LIBS="-ldag  $LIBS"
9183cat >conftest.$ac_ext <<_ACEOF
9184/* confdefs.h.  */
9185_ACEOF
9186cat confdefs.h >>conftest.$ac_ext
9187cat >>conftest.$ac_ext <<_ACEOF
9188/* end confdefs.h.  */
9189
9190/* Override any GCC internal prototype to avoid an error.
9191   Use char because int might match the return type of a GCC
9192   builtin and then its argument prototype would still apply.  */
9193#ifdef __cplusplus
9194extern "C"
9195#endif
9196char dag_attach_stream ();
9197int
9198main ()
9199{
9200return dag_attach_stream ();
9201  ;
9202  return 0;
9203}
9204_ACEOF
9205rm -f conftest.$ac_objext conftest$ac_exeext
9206if { (ac_try="$ac_link"
9207case "(($ac_try" in
9208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209  *) ac_try_echo=$ac_try;;
9210esac
9211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212  (eval "$ac_link") 2>conftest.er1
9213  ac_status=$?
9214  grep -v '^ *+' conftest.er1 >conftest.err
9215  rm -f conftest.er1
9216  cat conftest.err >&5
9217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218  (exit $ac_status); } && {
9219	 test -z "$ac_c_werror_flag" ||
9220	 test ! -s conftest.err
9221       } && test -s conftest$ac_exeext &&
9222       $as_test_x conftest$ac_exeext; then
9223  ac_cv_lib_dag_dag_attach_stream=yes
9224else
9225  echo "$as_me: failed program was:" >&5
9226sed 's/^/| /' conftest.$ac_ext >&5
9227
9228	ac_cv_lib_dag_dag_attach_stream=no
9229fi
9230
9231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9232      conftest$ac_exeext conftest.$ac_ext
9233LIBS=$ac_check_lib_save_LIBS
9234fi
9235{ echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
9236echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
9237if test $ac_cv_lib_dag_dag_attach_stream = yes; then
9238  dag_streams="1"
9239else
9240  dag_streams="0"
9241fi
9242
9243	{ echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
9244echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
9245if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
9246  echo $ECHO_N "(cached) $ECHO_C" >&6
9247else
9248  ac_check_lib_save_LIBS=$LIBS
9249LIBS="-ldag  $LIBS"
9250cat >conftest.$ac_ext <<_ACEOF
9251/* confdefs.h.  */
9252_ACEOF
9253cat confdefs.h >>conftest.$ac_ext
9254cat >>conftest.$ac_ext <<_ACEOF
9255/* end confdefs.h.  */
9256
9257/* Override any GCC internal prototype to avoid an error.
9258   Use char because int might match the return type of a GCC
9259   builtin and then its argument prototype would still apply.  */
9260#ifdef __cplusplus
9261extern "C"
9262#endif
9263char dag_get_erf_types ();
9264int
9265main ()
9266{
9267return dag_get_erf_types ();
9268  ;
9269  return 0;
9270}
9271_ACEOF
9272rm -f conftest.$ac_objext conftest$ac_exeext
9273if { (ac_try="$ac_link"
9274case "(($ac_try" in
9275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276  *) ac_try_echo=$ac_try;;
9277esac
9278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279  (eval "$ac_link") 2>conftest.er1
9280  ac_status=$?
9281  grep -v '^ *+' conftest.er1 >conftest.err
9282  rm -f conftest.er1
9283  cat conftest.err >&5
9284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285  (exit $ac_status); } && {
9286	 test -z "$ac_c_werror_flag" ||
9287	 test ! -s conftest.err
9288       } && test -s conftest$ac_exeext &&
9289       $as_test_x conftest$ac_exeext; then
9290  ac_cv_lib_dag_dag_get_erf_types=yes
9291else
9292  echo "$as_me: failed program was:" >&5
9293sed 's/^/| /' conftest.$ac_ext >&5
9294
9295	ac_cv_lib_dag_dag_get_erf_types=no
9296fi
9297
9298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9299      conftest$ac_exeext conftest.$ac_ext
9300LIBS=$ac_check_lib_save_LIBS
9301fi
9302{ echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
9303echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
9304if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
9305
9306
9307cat >>confdefs.h <<\_ACEOF
9308#define HAVE_DAG_GET_ERF_TYPES 1
9309_ACEOF
9310
9311fi
9312
9313	{ echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
9314echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
9315if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
9316  echo $ECHO_N "(cached) $ECHO_C" >&6
9317else
9318  ac_check_lib_save_LIBS=$LIBS
9319LIBS="-ldag  $LIBS"
9320cat >conftest.$ac_ext <<_ACEOF
9321/* confdefs.h.  */
9322_ACEOF
9323cat confdefs.h >>conftest.$ac_ext
9324cat >>conftest.$ac_ext <<_ACEOF
9325/* end confdefs.h.  */
9326
9327/* Override any GCC internal prototype to avoid an error.
9328   Use char because int might match the return type of a GCC
9329   builtin and then its argument prototype would still apply.  */
9330#ifdef __cplusplus
9331extern "C"
9332#endif
9333char dag_get_stream_erf_types ();
9334int
9335main ()
9336{
9337return dag_get_stream_erf_types ();
9338  ;
9339  return 0;
9340}
9341_ACEOF
9342rm -f conftest.$ac_objext conftest$ac_exeext
9343if { (ac_try="$ac_link"
9344case "(($ac_try" in
9345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346  *) ac_try_echo=$ac_try;;
9347esac
9348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349  (eval "$ac_link") 2>conftest.er1
9350  ac_status=$?
9351  grep -v '^ *+' conftest.er1 >conftest.err
9352  rm -f conftest.er1
9353  cat conftest.err >&5
9354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355  (exit $ac_status); } && {
9356	 test -z "$ac_c_werror_flag" ||
9357	 test ! -s conftest.err
9358       } && test -s conftest$ac_exeext &&
9359       $as_test_x conftest$ac_exeext; then
9360  ac_cv_lib_dag_dag_get_stream_erf_types=yes
9361else
9362  echo "$as_me: failed program was:" >&5
9363sed 's/^/| /' conftest.$ac_ext >&5
9364
9365	ac_cv_lib_dag_dag_get_stream_erf_types=no
9366fi
9367
9368rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9369      conftest$ac_exeext conftest.$ac_ext
9370LIBS=$ac_check_lib_save_LIBS
9371fi
9372{ echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
9373echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
9374if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
9375
9376
9377cat >>confdefs.h <<\_ACEOF
9378#define HAVE_DAG_GET_STREAM_ERF_TYPES 1
9379_ACEOF
9380
9381fi
9382
9383
9384	LDFLAGS=$saved_ldflags
9385
9386	if test "$dag_streams" = 1; then
9387
9388cat >>confdefs.h <<\_ACEOF
9389#define HAVE_DAG_STREAMS_API 1
9390_ACEOF
9391
9392		LIBS="$LIBS -ldag"
9393		LDFLAGS="$LDFLAGS -L$dag_lib_dir"
9394
9395		{ echo "$as_me:$LINENO: checking for vdag_set_device_info in -lvdag" >&5
9396echo $ECHO_N "checking for vdag_set_device_info in -lvdag... $ECHO_C" >&6; }
9397if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then
9398  echo $ECHO_N "(cached) $ECHO_C" >&6
9399else
9400  ac_check_lib_save_LIBS=$LIBS
9401LIBS="-lvdag  $LIBS"
9402cat >conftest.$ac_ext <<_ACEOF
9403/* confdefs.h.  */
9404_ACEOF
9405cat confdefs.h >>conftest.$ac_ext
9406cat >>conftest.$ac_ext <<_ACEOF
9407/* end confdefs.h.  */
9408
9409/* Override any GCC internal prototype to avoid an error.
9410   Use char because int might match the return type of a GCC
9411   builtin and then its argument prototype would still apply.  */
9412#ifdef __cplusplus
9413extern "C"
9414#endif
9415char vdag_set_device_info ();
9416int
9417main ()
9418{
9419return vdag_set_device_info ();
9420  ;
9421  return 0;
9422}
9423_ACEOF
9424rm -f conftest.$ac_objext conftest$ac_exeext
9425if { (ac_try="$ac_link"
9426case "(($ac_try" in
9427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428  *) ac_try_echo=$ac_try;;
9429esac
9430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431  (eval "$ac_link") 2>conftest.er1
9432  ac_status=$?
9433  grep -v '^ *+' conftest.er1 >conftest.err
9434  rm -f conftest.er1
9435  cat conftest.err >&5
9436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437  (exit $ac_status); } && {
9438	 test -z "$ac_c_werror_flag" ||
9439	 test ! -s conftest.err
9440       } && test -s conftest$ac_exeext &&
9441       $as_test_x conftest$ac_exeext; then
9442  ac_cv_lib_vdag_vdag_set_device_info=yes
9443else
9444  echo "$as_me: failed program was:" >&5
9445sed 's/^/| /' conftest.$ac_ext >&5
9446
9447	ac_cv_lib_vdag_vdag_set_device_info=no
9448fi
9449
9450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9451      conftest$ac_exeext conftest.$ac_ext
9452LIBS=$ac_check_lib_save_LIBS
9453fi
9454{ echo "$as_me:$LINENO: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
9455echo "${ECHO_T}$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
9456if test $ac_cv_lib_vdag_vdag_set_device_info = yes; then
9457  ac_dag_have_vdag="1"
9458else
9459  ac_dag_have_vdag="0"
9460fi
9461
9462		if test "$ac_dag_have_vdag" = 1; then
9463
9464cat >>confdefs.h <<\_ACEOF
9465#define HAVE_DAG_VDAG 1
9466_ACEOF
9467
9468			LIBS="$LIBS -lpthread"
9469		fi
9470	fi
9471
9472
9473cat >>confdefs.h <<\_ACEOF
9474#define HAVE_DAG_API 1
9475_ACEOF
9476
9477fi
9478
9479{ echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
9480echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
9481
9482if test $ac_cv_lbl_dag_api = no; then
9483	{ echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6; }
9485	if test "$want_dag" = yes; then
9486        	# User wanted DAG support but we couldn't find it.
9487		{ { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
9488echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
9489   { (exit 1); exit 1; }; }
9490	fi
9491
9492	if test "$V_PCAP" = dag; then
9493		# User requested "dag" capture type but the DAG API wasn't
9494		# found.
9495		{ { 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
9496echo "$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;}
9497   { (exit 1); exit 1; }; }
9498	fi
9499else
9500	{ echo "$as_me:$LINENO: result: yes" >&5
9501echo "${ECHO_T}yes" >&6; }
9502fi
9503
9504
9505# Check whether --with-septel was given.
9506if test "${with_septel+set}" = set; then
9507  withval=$with_septel;
9508	if test "$withval" = no
9509	then
9510		want_septel=no
9511	elif test "$withval" = yes
9512	then
9513		want_septel=yes
9514		septel_root=
9515	else
9516		want_septel=yes
9517		septel_root=$withval
9518	fi
9519
9520else
9521
9522	#
9523	# Use Septel API if present, otherwise don't
9524	#
9525	want_septel=ifpresent
9526	septel_root=./../septel
9527
9528fi
9529
9530ac_cv_lbl_septel_api=no
9531case "$V_PCAP" in
9532linux|septel)
9533	#
9534	# We support the Septel API if we're on Linux, or if we're building
9535	# a Septel-only libpcap.
9536	#
9537	;;
9538*)
9539	#
9540	# If the user explicitly requested Septel, tell them it's not
9541	# supported.
9542	#
9543	# If they expressed no preference, don't include it.
9544	#
9545	if test $want_septel = yes; then
9546		{ { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9547echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9548   { (exit 1); exit 1; }; }
9549	elif test $want_septel = yes; then
9550		want_septel=no
9551	fi
9552	;;
9553esac
9554
9555if test "$with_septel" != no; then
9556	{ echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9557echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9558
9559	if test -z "$septel_root"; then
9560		septel_root=$srcdir/../septel
9561	fi
9562
9563	septel_tools_dir="$septel_root"
9564	septel_include_dir="$septel_root/INC"
9565
9566	ac_cv_lbl_septel_api=no
9567	if test -r "$septel_include_dir/msg.h"; then
9568		V_INCLS="$V_INCLS -I$septel_include_dir"
9569		ADDLOBJS="$ADDLOBJS $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"
9570		ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $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"
9571
9572		if test "$V_PCAP" != septel ; then
9573			 SSRC="pcap-septel.c"
9574		fi
9575		ac_cv_lbl_septel_api=yes
9576	fi
9577
9578	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9579echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9580	if test $ac_cv_lbl_septel_api = no; then
9581		if test "$want_septel" = yes; then
9582			{ { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9583echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9584   { (exit 1); exit 1; }; }
9585		fi
9586	else
9587
9588cat >>confdefs.h <<\_ACEOF
9589#define HAVE_SEPTEL_API 1
9590_ACEOF
9591
9592	fi
9593fi
9594
9595if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9596	{ { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9597echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9598   { (exit 1); exit 1; }; }
9599fi
9600
9601# Check for Myricom SNF support.
9602
9603# Check whether --with-snf was given.
9604if test "${with_snf+set}" = set; then
9605  withval=$with_snf;
9606	if test "$withval" = no
9607	then
9608		# User explicitly doesn't want SNF
9609		want_snf=no
9610	elif test "$withval" = yes
9611	then
9612		# User wants SNF support but hasn't specific a directory.
9613		want_snf=yes
9614	else
9615		# User wants SNF support with a specified directory.
9616		want_snf=yes
9617		snf_root=$withval
9618	fi
9619
9620else
9621
9622	#
9623	# Use Sniffer API if present, otherwise don't
9624	#
9625	want_snf=ifpresent
9626
9627fi
9628
9629
9630
9631# Check whether --with-snf-includes was given.
9632if test "${with_snf_includes+set}" = set; then
9633  withval=$with_snf_includes;
9634	# User wants SNF with specific header directory
9635	want_snf=yes
9636	snf_include_dir=$withval
9637
9638fi
9639
9640
9641
9642# Check whether --with-snf-libraries was given.
9643if test "${with_snf_libraries+set}" = set; then
9644  withval=$with_snf_libraries;
9645	# User wants SNF with specific lib directory
9646	want_snf=yes
9647	snf_lib_dir=$withval
9648
9649fi
9650
9651
9652case "$V_PCAP" in
9653bpf|linux|snf)
9654	#
9655	# We support the Sniffer API if we're on BSD, Linux, or if we're
9656	# building a Sniffer-only libpcap.
9657	#
9658	;;
9659*)
9660	#
9661	# If the user explicitly requested Sniffer, tell them it's not
9662	# supported.
9663	#
9664	# If they expressed no preference, don't include it.
9665	#
9666	if test $want_snf = yes; then
9667		{ { echo "$as_me:$LINENO: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&5
9668echo "$as_me: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&2;}
9669   { (exit 1); exit 1; }; }
9670	elif test $want_snf = yes; then
9671		want_snf=no
9672	fi
9673	;;
9674esac
9675
9676ac_cv_lbl_snf_api=no
9677if test "$with_snf" != no; then
9678
9679	{ echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API" >&5
9680echo $ECHO_N "checking whether we have Myricom Sniffer API... $ECHO_C" >&6; }
9681
9682	if test -z "$snf_root"; then
9683		snf_root=/opt/snf
9684	fi
9685
9686	if test -z "$snf_include_dir"; then
9687		snf_include_dir="$snf_root/include"
9688	fi
9689
9690	if test -z "$snf_lib_dir"; then
9691		snf_lib_dir="$snf_root/lib"
9692	fi
9693
9694	if test -f "$snf_include_dir/snf.h"; then
9695		ac_cv_lbl_snf_api=yes
9696	fi
9697	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
9698echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9699
9700	if test $ac_cv_lbl_snf_api = no; then
9701		if test "$want_snf" = yes; then
9702			{ { echo "$as_me:$LINENO: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&5
9703echo "$as_me: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&2;}
9704   { (exit 1); exit 1; }; }
9705		fi
9706	else
9707		saved_ldflags=$LDFLAGS
9708		LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9709		{ echo "$as_me:$LINENO: checking for snf_init in -lsnf" >&5
9710echo $ECHO_N "checking for snf_init in -lsnf... $ECHO_C" >&6; }
9711if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9712  echo $ECHO_N "(cached) $ECHO_C" >&6
9713else
9714  ac_check_lib_save_LIBS=$LIBS
9715LIBS="-lsnf  $LIBS"
9716cat >conftest.$ac_ext <<_ACEOF
9717/* confdefs.h.  */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h.  */
9722
9723/* Override any GCC internal prototype to avoid an error.
9724   Use char because int might match the return type of a GCC
9725   builtin and then its argument prototype would still apply.  */
9726#ifdef __cplusplus
9727extern "C"
9728#endif
9729char snf_init ();
9730int
9731main ()
9732{
9733return snf_init ();
9734  ;
9735  return 0;
9736}
9737_ACEOF
9738rm -f conftest.$ac_objext conftest$ac_exeext
9739if { (ac_try="$ac_link"
9740case "(($ac_try" in
9741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742  *) ac_try_echo=$ac_try;;
9743esac
9744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745  (eval "$ac_link") 2>conftest.er1
9746  ac_status=$?
9747  grep -v '^ *+' conftest.er1 >conftest.err
9748  rm -f conftest.er1
9749  cat conftest.err >&5
9750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751  (exit $ac_status); } && {
9752	 test -z "$ac_c_werror_flag" ||
9753	 test ! -s conftest.err
9754       } && test -s conftest$ac_exeext &&
9755       $as_test_x conftest$ac_exeext; then
9756  ac_cv_lib_snf_snf_init=yes
9757else
9758  echo "$as_me: failed program was:" >&5
9759sed 's/^/| /' conftest.$ac_ext >&5
9760
9761	ac_cv_lib_snf_snf_init=no
9762fi
9763
9764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765      conftest$ac_exeext conftest.$ac_ext
9766LIBS=$ac_check_lib_save_LIBS
9767fi
9768{ echo "$as_me:$LINENO: result: $ac_cv_lib_snf_snf_init" >&5
9769echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9770if test $ac_cv_lib_snf_snf_init = yes; then
9771  ac_cv_lbl_snf_api="yes"
9772else
9773  ac_cv_lbl_snf_api="no"
9774fi
9775
9776		LDFLAGS="$saved_ldflags"
9777
9778		if test $ac_cv_lbl_snf_api = no; then
9779			if test "$want_snf" = yes; then
9780				{ { echo "$as_me:$LINENO: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&5
9781echo "$as_me: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&2;}
9782   { (exit 1); exit 1; }; }
9783			fi
9784		else
9785			V_INCLS="$V_INCLS -I$snf_include_dir"
9786			LIBS="$LIBS -lsnf"
9787			LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9788			if test "$V_PCAP" != snf ; then
9789				SSRC="pcap-snf.c"
9790			fi
9791
9792cat >>confdefs.h <<\_ACEOF
9793#define HAVE_SNF_API 1
9794_ACEOF
9795
9796		fi
9797	fi
9798fi
9799
9800if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9801	{ { echo "$as_me:$LINENO: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&5
9802echo "$as_me: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&2;}
9803   { (exit 1); exit 1; }; }
9804fi
9805
9806
9807# Check whether --with-flex was given.
9808if test "${with_flex+set}" = set; then
9809  withval=$with_flex;
9810fi
9811
9812
9813# Check whether --with-bison was given.
9814if test "${with_bison+set}" = set; then
9815  withval=$with_bison;
9816fi
9817
9818    if test "$with_flex" = no ; then
9819	    V_LEX=lex
9820    else
9821	    for ac_prog in flex
9822do
9823  # Extract the first word of "$ac_prog", so it can be a program name with args.
9824set dummy $ac_prog; ac_word=$2
9825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9827if test "${ac_cv_prog_V_LEX+set}" = set; then
9828  echo $ECHO_N "(cached) $ECHO_C" >&6
9829else
9830  if test -n "$V_LEX"; then
9831  ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9832else
9833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834for as_dir in $PATH
9835do
9836  IFS=$as_save_IFS
9837  test -z "$as_dir" && as_dir=.
9838  for ac_exec_ext in '' $ac_executable_extensions; do
9839  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840    ac_cv_prog_V_LEX="$ac_prog"
9841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9842    break 2
9843  fi
9844done
9845done
9846IFS=$as_save_IFS
9847
9848fi
9849fi
9850V_LEX=$ac_cv_prog_V_LEX
9851if test -n "$V_LEX"; then
9852  { echo "$as_me:$LINENO: result: $V_LEX" >&5
9853echo "${ECHO_T}$V_LEX" >&6; }
9854else
9855  { echo "$as_me:$LINENO: result: no" >&5
9856echo "${ECHO_T}no" >&6; }
9857fi
9858
9859
9860  test -n "$V_LEX" && break
9861done
9862test -n "$V_LEX" || V_LEX="lex"
9863
9864    fi
9865    if test "$V_LEX" = flex ; then
9866	    # The -V flag was added in 2.4
9867	    { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9868echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9869	    if test "${ac_cv_lbl_flex_v24+set}" = set; then
9870  echo $ECHO_N "(cached) $ECHO_C" >&6
9871else
9872  if flex -V >/dev/null 2>&1; then
9873			ac_cv_lbl_flex_v24=yes
9874		else
9875			ac_cv_lbl_flex_v24=no
9876		fi
9877fi
9878
9879	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9880echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9881	    if test $ac_cv_lbl_flex_v24 = no ; then
9882		    s="2.4 or higher required"
9883		    { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9884echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9885		    V_LEX=lex
9886	    fi
9887    fi
9888    if test "$with_bison" = no ; then
9889	    V_YACC=yacc
9890    else
9891	    for ac_prog in bison
9892do
9893  # Extract the first word of "$ac_prog", so it can be a program name with args.
9894set dummy $ac_prog; ac_word=$2
9895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9897if test "${ac_cv_prog_V_YACC+set}" = set; then
9898  echo $ECHO_N "(cached) $ECHO_C" >&6
9899else
9900  if test -n "$V_YACC"; then
9901  ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9902else
9903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904for as_dir in $PATH
9905do
9906  IFS=$as_save_IFS
9907  test -z "$as_dir" && as_dir=.
9908  for ac_exec_ext in '' $ac_executable_extensions; do
9909  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910    ac_cv_prog_V_YACC="$ac_prog"
9911    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9912    break 2
9913  fi
9914done
9915done
9916IFS=$as_save_IFS
9917
9918fi
9919fi
9920V_YACC=$ac_cv_prog_V_YACC
9921if test -n "$V_YACC"; then
9922  { echo "$as_me:$LINENO: result: $V_YACC" >&5
9923echo "${ECHO_T}$V_YACC" >&6; }
9924else
9925  { echo "$as_me:$LINENO: result: no" >&5
9926echo "${ECHO_T}no" >&6; }
9927fi
9928
9929
9930  test -n "$V_YACC" && break
9931done
9932test -n "$V_YACC" || V_YACC="yacc"
9933
9934    fi
9935    if test "$V_YACC" = bison ; then
9936	    V_YACC="$V_YACC -y"
9937    fi
9938    if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9939	    { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9940echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9941	    V_LEX=lex
9942	    V_YACC=yacc
9943    fi
9944    if test "$V_LEX" = flex -a -n "pcap_" ; then
9945	    V_LEX="$V_LEX -Ppcap_"
9946	    V_YACC="$V_YACC -p pcap_"
9947    else
9948
9949cat >>confdefs.h <<\_ACEOF
9950#define NEED_YYPARSE_WRAPPER 1
9951_ACEOF
9952
9953    fi
9954if test "$V_LEX" = lex ; then
9955# Some versions of lex can't handle the definitions section of scanner.l .
9956# Try lexing it and complain if it can't deal.
9957	{ echo "$as_me:$LINENO: checking for capable lex" >&5
9958echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9959if test "${tcpdump_cv_capable_lex+set}" = set; then
9960  echo $ECHO_N "(cached) $ECHO_C" >&6
9961else
9962  if lex -t scanner.l > /dev/null 2>&1; then
9963			tcpdump_cv_capable_lex=yes
9964		else
9965			tcpdump_cv_capable_lex=insufficient
9966		fi
9967fi
9968{ echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9969echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9970	if test $tcpdump_cv_capable_lex = insufficient ; then
9971		{ { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9972 libpcap.  flex is a lex replacement that has many advantages, including
9973 being able to compile libpcap.  For more information, see
9974 http://www.gnu.org/software/flex/flex.html ." >&5
9975echo "$as_me: error: Your operating system's lex is insufficient to compile
9976 libpcap.  flex is a lex replacement that has many advantages, including
9977 being able to compile libpcap.  For more information, see
9978 http://www.gnu.org/software/flex/flex.html ." >&2;}
9979   { (exit 1); exit 1; }; }
9980	fi
9981fi
9982
9983#
9984# Assume, by default, no support for shared libraries and V7/BSD convention
9985# for man pages (file formats in section 5, miscellaneous info in section 7).
9986# Individual cases can override this.
9987#
9988DYEXT="none"
9989MAN_FILE_FORMATS=5
9990MAN_MISC_INFO=7
9991case "$host_os" in
9992
9993aix*)
9994
9995cat >>confdefs.h <<\_ACEOF
9996#define _SUN 1
9997_ACEOF
9998
9999
10000	#
10001	# AIX makes it fun to build shared and static libraries,
10002	# because they're *both* ".a" archive libraries.  We
10003	# build the static library for the benefit of the traditional
10004	# scheme of building libpcap and tcpdump in subdirectories of
10005	# the same directory, with tcpdump statically linked with the
10006	# libpcap in question, but we also build a shared library as
10007	# "libpcap.shareda" and install *it*, rather than the static
10008	# library, as "libpcap.a".
10009	#
10010	DYEXT="shareda"
10011
10012	case "$V_PCAP" in
10013
10014	dlpi)
10015		#
10016		# If we're using DLPI, applications will need to
10017		# use /lib/pse.exp if present, as we use the
10018		# STREAMS routines.
10019		#
10020		pseexe="/lib/pse.exp"
10021		{ echo "$as_me:$LINENO: checking for $pseexe" >&5
10022echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
10023		if test -f $pseexe ; then
10024			{ echo "$as_me:$LINENO: result: yes" >&5
10025echo "${ECHO_T}yes" >&6; }
10026			LIBS="-I:$pseexe"
10027		fi
10028		;;
10029
10030	bpf)
10031		#
10032		# If we're using BPF, we need "-lodm" and "-lcfg", as
10033		# we use them to load the BPF module.
10034		#
10035		LIBS="-lodm -lcfg"
10036		;;
10037	esac
10038	;;
10039
10040darwin*)
10041	DYEXT="dylib"
10042	V_CCOPT="$V_CCOPT -fno-common"
10043	# Check whether --enable-universal was given.
10044if test "${enable_universal+set}" = set; then
10045  enableval=$enable_universal;
10046fi
10047
10048	if test "$enable_universal" != "no"; then
10049		case "$host_os" in
10050
10051		darwin9.*)
10052			#
10053			# Leopard.  Build for 32-bit PowerPC, 64-bit
10054			# PowerPC, x86, and x86-64, with 32-bit PowerPC
10055			# first.  (That's what Apple does.)
10056			#
10057			V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
10058			LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
10059			;;
10060
10061		darwin10.*)
10062			#
10063			# Snow Leopard.  Build for x86-64, x86, and
10064			# 32-bit PowerPC, with x86-64 first.  (That's
10065			# what Apple does, even though Snow Leopard
10066			# doesn't run on PPC, so PPC libpcap runs under
10067			# Rosetta, and Rosetta doesn't support BPF
10068			# ioctls, so PPC programs can't do live
10069			# captures.)
10070			#
10071			V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
10072			LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
10073			;;
10074
10075		darwin11.*)
10076			#
10077			# Lion.  Build for x86-64 and x86, with x86-64
10078			# first.  (That's probably what Apple does,
10079			# given that Rosetta is gone.)
10080			#
10081			V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
10082			LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
10083			;;
10084		esac
10085	fi
10086	;;
10087
10088hpux9*)
10089
10090cat >>confdefs.h <<\_ACEOF
10091#define HAVE_HPUX9 1
10092_ACEOF
10093
10094
10095	#
10096	# Use System V conventions for man pages.
10097	#
10098	MAN_FILE_FORMATS=4
10099	MAN_MISC_INFO=5
10100	;;
10101
10102hpux10.0*)
10103
10104	#
10105	# Use System V conventions for man pages.
10106	#
10107	MAN_FILE_FORMATS=4
10108	MAN_MISC_INFO=5
10109	;;
10110
10111hpux10.1*)
10112
10113	#
10114	# Use System V conventions for man pages.
10115	#
10116	MAN_FILE_FORMATS=4
10117	MAN_MISC_INFO=5
10118	;;
10119
10120hpux*)
10121
10122cat >>confdefs.h <<\_ACEOF
10123#define HAVE_HPUX10_20_OR_LATER 1
10124_ACEOF
10125
10126	if test "`uname -m`" = "ia64"; then
10127		DYEXT="so"
10128	else
10129		DYEXT="sl"
10130	fi
10131
10132	#
10133	# "-b" builds a shared library; "+h" sets the soname.
10134	#
10135	SHLIB_OPT="-b"
10136	SONAME_OPT="+h"
10137
10138	#
10139	# Use System V conventions for man pages.
10140	#
10141	MAN_FILE_FORMATS=4
10142	MAN_MISC_INFO=5
10143	;;
10144
10145irix*)
10146	#
10147	# Use System V conventions for man pages.
10148	#
10149	MAN_FILE_FORMATS=4
10150	MAN_MISC_INFO=5
10151	;;
10152
10153linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
10154	DYEXT="so"
10155
10156	#
10157	# Compiler assumed to be GCC; run-time linker may require a -R
10158	# flag.
10159	#
10160	if test "$libdir" != "/usr/lib"; then
10161		V_RFLAGS=-Wl,-R$libdir
10162	fi
10163	;;
10164
10165osf*)
10166	DYEXT="so"
10167
10168	#
10169	# Use System V conventions for man pages.
10170	#
10171	MAN_FILE_FORMATS=4
10172	MAN_MISC_INFO=5
10173	;;
10174
10175sinix*)
10176	{ echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
10177echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
10178	if test "${ac_cv_cc_sinix_defined+set}" = set; then
10179  echo $ECHO_N "(cached) $ECHO_C" >&6
10180else
10181  cat >conftest.$ac_ext <<_ACEOF
10182/* confdefs.h.  */
10183_ACEOF
10184cat confdefs.h >>conftest.$ac_ext
10185cat >>conftest.$ac_ext <<_ACEOF
10186/* end confdefs.h.  */
10187
10188int
10189main ()
10190{
10191int i = sinix;
10192  ;
10193  return 0;
10194}
10195_ACEOF
10196rm -f conftest.$ac_objext
10197if { (ac_try="$ac_compile"
10198case "(($ac_try" in
10199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200  *) ac_try_echo=$ac_try;;
10201esac
10202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203  (eval "$ac_compile") 2>conftest.er1
10204  ac_status=$?
10205  grep -v '^ *+' conftest.er1 >conftest.err
10206  rm -f conftest.er1
10207  cat conftest.err >&5
10208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209  (exit $ac_status); } && {
10210	 test -z "$ac_c_werror_flag" ||
10211	 test ! -s conftest.err
10212       } && test -s conftest.$ac_objext; then
10213  ac_cv_cc_sinix_defined=yes
10214else
10215  echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
10218	ac_cv_cc_sinix_defined=no
10219fi
10220
10221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10222fi
10223
10224	    { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
10225echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
10226	    if test $ac_cv_cc_sinix_defined = no ; then
10227
10228cat >>confdefs.h <<\_ACEOF
10229#define sinix 1
10230_ACEOF
10231
10232	    fi
10233	;;
10234
10235solaris*)
10236
10237cat >>confdefs.h <<\_ACEOF
10238#define HAVE_SOLARIS 1
10239_ACEOF
10240
10241
10242	DYEXT="so"
10243	#
10244	# Use System V conventions for man pages.
10245	#
10246	MAN_FILE_FORMATS=4
10247	MAN_MISC_INFO=5
10248	;;
10249esac
10250
10251# Check whether --enable-shared was given.
10252if test "${enable_shared+set}" = set; then
10253  enableval=$enable_shared;
10254fi
10255
10256test "x$enable_shared" = "xno" && DYEXT="none"
10257
10258if test -n "$ac_tool_prefix"; then
10259  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10260set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10263if test "${ac_cv_prog_RANLIB+set}" = set; then
10264  echo $ECHO_N "(cached) $ECHO_C" >&6
10265else
10266  if test -n "$RANLIB"; then
10267  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10268else
10269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270for as_dir in $PATH
10271do
10272  IFS=$as_save_IFS
10273  test -z "$as_dir" && as_dir=.
10274  for ac_exec_ext in '' $ac_executable_extensions; do
10275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10276    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10277    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10278    break 2
10279  fi
10280done
10281done
10282IFS=$as_save_IFS
10283
10284fi
10285fi
10286RANLIB=$ac_cv_prog_RANLIB
10287if test -n "$RANLIB"; then
10288  { echo "$as_me:$LINENO: result: $RANLIB" >&5
10289echo "${ECHO_T}$RANLIB" >&6; }
10290else
10291  { echo "$as_me:$LINENO: result: no" >&5
10292echo "${ECHO_T}no" >&6; }
10293fi
10294
10295
10296fi
10297if test -z "$ac_cv_prog_RANLIB"; then
10298  ac_ct_RANLIB=$RANLIB
10299  # Extract the first word of "ranlib", so it can be a program name with args.
10300set dummy ranlib; ac_word=$2
10301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10303if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10304  echo $ECHO_N "(cached) $ECHO_C" >&6
10305else
10306  if test -n "$ac_ct_RANLIB"; then
10307  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10308else
10309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310for as_dir in $PATH
10311do
10312  IFS=$as_save_IFS
10313  test -z "$as_dir" && as_dir=.
10314  for ac_exec_ext in '' $ac_executable_extensions; do
10315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10316    ac_cv_prog_ac_ct_RANLIB="ranlib"
10317    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10318    break 2
10319  fi
10320done
10321done
10322IFS=$as_save_IFS
10323
10324fi
10325fi
10326ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10327if test -n "$ac_ct_RANLIB"; then
10328  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10329echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
10330else
10331  { echo "$as_me:$LINENO: result: no" >&5
10332echo "${ECHO_T}no" >&6; }
10333fi
10334
10335  if test "x$ac_ct_RANLIB" = x; then
10336    RANLIB=":"
10337  else
10338    case $cross_compiling:$ac_tool_warned in
10339yes:)
10340{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10341whose name does not start with the host triplet.  If you think this
10342configuration is useful to you, please write to autoconf@gnu.org." >&5
10343echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10344whose name does not start with the host triplet.  If you think this
10345configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10346ac_tool_warned=yes ;;
10347esac
10348    RANLIB=$ac_ct_RANLIB
10349  fi
10350else
10351  RANLIB="$ac_cv_prog_RANLIB"
10352fi
10353
10354if test -n "$ac_tool_prefix"; then
10355  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10356set dummy ${ac_tool_prefix}ar; ac_word=$2
10357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10359if test "${ac_cv_prog_AR+set}" = set; then
10360  echo $ECHO_N "(cached) $ECHO_C" >&6
10361else
10362  if test -n "$AR"; then
10363  ac_cv_prog_AR="$AR" # Let the user override the test.
10364else
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368  IFS=$as_save_IFS
10369  test -z "$as_dir" && as_dir=.
10370  for ac_exec_ext in '' $ac_executable_extensions; do
10371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10372    ac_cv_prog_AR="${ac_tool_prefix}ar"
10373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374    break 2
10375  fi
10376done
10377done
10378IFS=$as_save_IFS
10379
10380fi
10381fi
10382AR=$ac_cv_prog_AR
10383if test -n "$AR"; then
10384  { echo "$as_me:$LINENO: result: $AR" >&5
10385echo "${ECHO_T}$AR" >&6; }
10386else
10387  { echo "$as_me:$LINENO: result: no" >&5
10388echo "${ECHO_T}no" >&6; }
10389fi
10390
10391
10392fi
10393if test -z "$ac_cv_prog_AR"; then
10394  ac_ct_AR=$AR
10395  # Extract the first word of "ar", so it can be a program name with args.
10396set dummy ar; ac_word=$2
10397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10399if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10400  echo $ECHO_N "(cached) $ECHO_C" >&6
10401else
10402  if test -n "$ac_ct_AR"; then
10403  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10404else
10405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406for as_dir in $PATH
10407do
10408  IFS=$as_save_IFS
10409  test -z "$as_dir" && as_dir=.
10410  for ac_exec_ext in '' $ac_executable_extensions; do
10411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412    ac_cv_prog_ac_ct_AR="ar"
10413    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10414    break 2
10415  fi
10416done
10417done
10418IFS=$as_save_IFS
10419
10420fi
10421fi
10422ac_ct_AR=$ac_cv_prog_ac_ct_AR
10423if test -n "$ac_ct_AR"; then
10424  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10425echo "${ECHO_T}$ac_ct_AR" >&6; }
10426else
10427  { echo "$as_me:$LINENO: result: no" >&5
10428echo "${ECHO_T}no" >&6; }
10429fi
10430
10431  if test "x$ac_ct_AR" = x; then
10432    AR=""
10433  else
10434    case $cross_compiling:$ac_tool_warned in
10435yes:)
10436{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10437whose name does not start with the host triplet.  If you think this
10438configuration is useful to you, please write to autoconf@gnu.org." >&5
10439echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10440whose name does not start with the host triplet.  If you think this
10441configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10442ac_tool_warned=yes ;;
10443esac
10444    AR=$ac_ct_AR
10445  fi
10446else
10447  AR="$ac_cv_prog_AR"
10448fi
10449
10450
10451rm -f os-proto.h
10452    if test "${LBL_CFLAGS+set}" = set; then
10453	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10454    fi
10455    if test -f .devel ; then
10456	    if test "$GCC" = yes ; then
10457		    if test "${LBL_CFLAGS+set}" != set; then
10458			    if test "$ac_cv_prog_cc_g" = yes ; then
10459				    V_CCOPT="-g $V_CCOPT"
10460			    fi
10461			    V_CCOPT="$V_CCOPT -Wall"
10462			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10463				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
10464			    fi
10465		    fi
10466	    else
10467		    case "$host_os" in
10468
10469		    irix6*)
10470			    V_CCOPT="$V_CCOPT -n32"
10471			    ;;
10472
10473		    *)
10474			    ;;
10475		    esac
10476	    fi
10477	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10478	    name="lbl/os-$os.h"
10479	    if test -f $name ; then
10480		    ln -s $name os-proto.h
10481
10482cat >>confdefs.h <<\_ACEOF
10483#define HAVE_OS_PROTO_H 1
10484_ACEOF
10485
10486	    else
10487		    { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10488echo "$as_me: WARNING: can't find $name" >&2;}
10489	    fi
10490    fi
10491
10492{ echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
10493echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
10494    if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10495  echo $ECHO_N "(cached) $ECHO_C" >&6
10496else
10497  cat >conftest.$ac_ext <<_ACEOF
10498/* confdefs.h.  */
10499_ACEOF
10500cat confdefs.h >>conftest.$ac_ext
10501cat >>conftest.$ac_ext <<_ACEOF
10502/* end confdefs.h.  */
10503
10504#	include <sys/types.h>
10505#	include <sys/socket.h>
10506int
10507main ()
10508{
10509u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10510  ;
10511  return 0;
10512}
10513_ACEOF
10514rm -f conftest.$ac_objext
10515if { (ac_try="$ac_compile"
10516case "(($ac_try" in
10517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518  *) ac_try_echo=$ac_try;;
10519esac
10520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521  (eval "$ac_compile") 2>conftest.er1
10522  ac_status=$?
10523  grep -v '^ *+' conftest.er1 >conftest.err
10524  rm -f conftest.er1
10525  cat conftest.err >&5
10526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527  (exit $ac_status); } && {
10528	 test -z "$ac_c_werror_flag" ||
10529	 test ! -s conftest.err
10530       } && test -s conftest.$ac_objext; then
10531  ac_cv_lbl_sockaddr_has_sa_len=yes
10532else
10533  echo "$as_me: failed program was:" >&5
10534sed 's/^/| /' conftest.$ac_ext >&5
10535
10536	ac_cv_lbl_sockaddr_has_sa_len=no
10537fi
10538
10539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540fi
10541
10542    { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10543echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
10544    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10545
10546cat >>confdefs.h <<\_ACEOF
10547#define HAVE_SOCKADDR_SA_LEN 1
10548_ACEOF
10549
10550    fi
10551
10552{ echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
10553echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
10554    if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
10555  echo $ECHO_N "(cached) $ECHO_C" >&6
10556else
10557  cat >conftest.$ac_ext <<_ACEOF
10558/* confdefs.h.  */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h.  */
10563
10564#	include <sys/types.h>
10565#	include <sys/socket.h>
10566int
10567main ()
10568{
10569u_int i = sizeof (struct sockaddr_storage)
10570  ;
10571  return 0;
10572}
10573_ACEOF
10574rm -f conftest.$ac_objext
10575if { (ac_try="$ac_compile"
10576case "(($ac_try" in
10577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578  *) ac_try_echo=$ac_try;;
10579esac
10580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581  (eval "$ac_compile") 2>conftest.er1
10582  ac_status=$?
10583  grep -v '^ *+' conftest.er1 >conftest.err
10584  rm -f conftest.er1
10585  cat conftest.err >&5
10586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587  (exit $ac_status); } && {
10588	 test -z "$ac_c_werror_flag" ||
10589	 test ! -s conftest.err
10590       } && test -s conftest.$ac_objext; then
10591  ac_cv_lbl_has_sockaddr_storage=yes
10592else
10593  echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
10596	ac_cv_lbl_has_sockaddr_storage=no
10597fi
10598
10599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600fi
10601
10602    { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
10603echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
10604    if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
10605
10606cat >>confdefs.h <<\_ACEOF
10607#define HAVE_SOCKADDR_STORAGE 1
10608_ACEOF
10609
10610    fi
10611
10612{ echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
10613echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
10614    if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
10615  echo $ECHO_N "(cached) $ECHO_C" >&6
10616else
10617  cat >conftest.$ac_ext <<_ACEOF
10618/* confdefs.h.  */
10619_ACEOF
10620cat confdefs.h >>conftest.$ac_ext
10621cat >>conftest.$ac_ext <<_ACEOF
10622/* end confdefs.h.  */
10623
10624#	include <sys/types.h>
10625#	include <sys/dlpi.h>
10626#	include <sys/dlpi_ext.h>
10627int
10628main ()
10629{
10630u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
10631  ;
10632  return 0;
10633}
10634_ACEOF
10635rm -f conftest.$ac_objext
10636if { (ac_try="$ac_compile"
10637case "(($ac_try" in
10638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639  *) ac_try_echo=$ac_try;;
10640esac
10641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642  (eval "$ac_compile") 2>conftest.er1
10643  ac_status=$?
10644  grep -v '^ *+' conftest.er1 >conftest.err
10645  rm -f conftest.er1
10646  cat conftest.err >&5
10647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648  (exit $ac_status); } && {
10649	 test -z "$ac_c_werror_flag" ||
10650	 test ! -s conftest.err
10651       } && test -s conftest.$ac_objext; then
10652  ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10653else
10654  echo "$as_me: failed program was:" >&5
10655sed 's/^/| /' conftest.$ac_ext >&5
10656
10657	ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10658fi
10659
10660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661fi
10662
10663    { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10664echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10665    if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10666
10667cat >>confdefs.h <<\_ACEOF
10668#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10669_ACEOF
10670
10671    fi
10672
10673{ echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10674echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
10675    if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10676  echo $ECHO_N "(cached) $ECHO_C" >&6
10677else
10678  case "$host_cpu" in
10679
10680	#
10681	# These are CPU types where:
10682	#
10683	#	the CPU faults on an unaligned access, but at least some
10684	#	OSes that support that CPU catch the fault and simulate
10685	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10686	#	the simulation is slow, so we don't want to use it;
10687	#
10688	#	the CPU, I infer (from the old
10689	#
10690	# XXX: should also check that they don't do weird things (like on arm)
10691	#
10692	#	comment) doesn't fault on unaligned accesses, but doesn't
10693	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
10694	#
10695	#	for whatever reason, the test program doesn't work
10696	#	(this has been claimed to be the case for several of those
10697	#	CPUs - I don't know what the problem is; the problem
10698	#	was reported as "the test program dumps core" for SuperH,
10699	#	but that's what the test program is *supposed* to do -
10700	#	it dumps core before it writes anything, so the test
10701	#	for an empty output file should find an empty output
10702	#	file and conclude that unaligned accesses don't work).
10703	#
10704	# This run-time test won't work if you're cross-compiling, so
10705	# in order to support cross-compiling for a particular CPU,
10706	# we have to wire in the list of CPU types anyway, as far as
10707	# I know, so perhaps we should just have a set of CPUs on
10708	# which we know it doesn't work, a set of CPUs on which we
10709	# know it does work, and have the script just fail on other
10710	# cpu types and update it when such a failure occurs.
10711	#
10712	alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10713		ac_cv_lbl_unaligned_fail=yes
10714		;;
10715
10716	*)
10717		cat >conftest.c <<EOF
10718#		include <sys/types.h>
10719#		include <sys/wait.h>
10720#		include <stdio.h>
10721		unsigned char a[5] = { 1, 2, 3, 4, 5 };
10722		main() {
10723		unsigned int i;
10724		pid_t pid;
10725		int status;
10726		/* avoid "core dumped" message */
10727		pid = fork();
10728		if (pid <  0)
10729			exit(2);
10730		if (pid > 0) {
10731			/* parent */
10732			pid = waitpid(pid, &status, 0);
10733			if (pid < 0)
10734				exit(3);
10735			exit(!WIFEXITED(status));
10736		}
10737		/* child */
10738		i = *(unsigned int *)&a[1];
10739		printf("%d\n", i);
10740		exit(0);
10741		}
10742EOF
10743		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10744		    conftest.c $LIBS >/dev/null 2>&1
10745		if test ! -x conftest ; then
10746						ac_cv_lbl_unaligned_fail=yes
10747		else
10748			./conftest >conftest.out
10749			if test ! -s conftest.out ; then
10750				ac_cv_lbl_unaligned_fail=yes
10751			else
10752				ac_cv_lbl_unaligned_fail=no
10753			fi
10754		fi
10755		rm -f -r conftest* core core.conftest
10756		;;
10757	esac
10758fi
10759
10760    { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10761echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10762    if test $ac_cv_lbl_unaligned_fail = yes ; then
10763
10764cat >>confdefs.h <<\_ACEOF
10765#define LBL_ALIGN 1
10766_ACEOF
10767
10768    fi
10769
10770#
10771# Makefile.in includes rules to generate version.h, so we assume
10772# that it will be generated if autoconf is used.
10773#
10774
10775cat >>confdefs.h <<\_ACEOF
10776#define HAVE_VERSION_H 1
10777_ACEOF
10778
10779
10780rm -f net
10781ln -s ${srcdir}/bpf/net net
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801{ echo "$as_me:$LINENO: checking for USB sniffing support" >&5
10802echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
10803case "$host_os" in
10804linux*)
10805
10806cat >>confdefs.h <<\_ACEOF
10807#define PCAP_SUPPORT_USB 1
10808_ACEOF
10809
10810	USB_SRC=pcap-usb-linux.c
10811	{ echo "$as_me:$LINENO: result: yes" >&5
10812echo "${ECHO_T}yes" >&6; }
10813	ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10814	if test $? -ne 0 ; then
10815	  ac_usb_dev_name="usbmon"
10816	fi
10817
10818cat >>confdefs.h <<_ACEOF
10819#define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10820_ACEOF
10821
10822	{ echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10823echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10824	#
10825	# Do we have a version of <linux/compiler.h> available?
10826	# If so, we might need it for <linux/usbdevice_fs.h>.
10827	#
10828
10829for ac_header in linux/compiler.h
10830do
10831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10833  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10836  echo $ECHO_N "(cached) $ECHO_C" >&6
10837fi
10838ac_res=`eval echo '${'$as_ac_Header'}'`
10839	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10840echo "${ECHO_T}$ac_res" >&6; }
10841else
10842  # Is the header compilable?
10843{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10845cat >conftest.$ac_ext <<_ACEOF
10846/* confdefs.h.  */
10847_ACEOF
10848cat confdefs.h >>conftest.$ac_ext
10849cat >>conftest.$ac_ext <<_ACEOF
10850/* end confdefs.h.  */
10851$ac_includes_default
10852#include <$ac_header>
10853_ACEOF
10854rm -f conftest.$ac_objext
10855if { (ac_try="$ac_compile"
10856case "(($ac_try" in
10857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858  *) ac_try_echo=$ac_try;;
10859esac
10860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861  (eval "$ac_compile") 2>conftest.er1
10862  ac_status=$?
10863  grep -v '^ *+' conftest.er1 >conftest.err
10864  rm -f conftest.er1
10865  cat conftest.err >&5
10866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867  (exit $ac_status); } && {
10868	 test -z "$ac_c_werror_flag" ||
10869	 test ! -s conftest.err
10870       } && test -s conftest.$ac_objext; then
10871  ac_header_compiler=yes
10872else
10873  echo "$as_me: failed program was:" >&5
10874sed 's/^/| /' conftest.$ac_ext >&5
10875
10876	ac_header_compiler=no
10877fi
10878
10879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10881echo "${ECHO_T}$ac_header_compiler" >&6; }
10882
10883# Is the header present?
10884{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10885echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10886cat >conftest.$ac_ext <<_ACEOF
10887/* confdefs.h.  */
10888_ACEOF
10889cat confdefs.h >>conftest.$ac_ext
10890cat >>conftest.$ac_ext <<_ACEOF
10891/* end confdefs.h.  */
10892#include <$ac_header>
10893_ACEOF
10894if { (ac_try="$ac_cpp conftest.$ac_ext"
10895case "(($ac_try" in
10896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897  *) ac_try_echo=$ac_try;;
10898esac
10899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10901  ac_status=$?
10902  grep -v '^ *+' conftest.er1 >conftest.err
10903  rm -f conftest.er1
10904  cat conftest.err >&5
10905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906  (exit $ac_status); } >/dev/null && {
10907	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10908	 test ! -s conftest.err
10909       }; then
10910  ac_header_preproc=yes
10911else
10912  echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915  ac_header_preproc=no
10916fi
10917
10918rm -f conftest.err conftest.$ac_ext
10919{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10920echo "${ECHO_T}$ac_header_preproc" >&6; }
10921
10922# So?  What about this header?
10923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10924  yes:no: )
10925    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10926echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10927    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10928echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10929    ac_header_preproc=yes
10930    ;;
10931  no:yes:* )
10932    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10933echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10934    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10935echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10936    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10937echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10938    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10939echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10940    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10941echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10942    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10943echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10944
10945    ;;
10946esac
10947{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950  echo $ECHO_N "(cached) $ECHO_C" >&6
10951else
10952  eval "$as_ac_Header=\$ac_header_preproc"
10953fi
10954ac_res=`eval echo '${'$as_ac_Header'}'`
10955	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10956echo "${ECHO_T}$ac_res" >&6; }
10957
10958fi
10959if test `eval echo '${'$as_ac_Header'}'` = yes; then
10960  cat >>confdefs.h <<_ACEOF
10961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10962_ACEOF
10963
10964fi
10965
10966done
10967
10968	if test "$ac_cv_header_linux_compiler_h" = yes; then
10969	  #
10970	  # Yes - include it when testing for <linux/usbdevice_fs.h>.
10971	  #
10972
10973for ac_header in linux/usbdevice_fs.h
10974do
10975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10976{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10979  echo $ECHO_N "(cached) $ECHO_C" >&6
10980else
10981  cat >conftest.$ac_ext <<_ACEOF
10982/* confdefs.h.  */
10983_ACEOF
10984cat confdefs.h >>conftest.$ac_ext
10985cat >>conftest.$ac_ext <<_ACEOF
10986/* end confdefs.h.  */
10987#include <linux/compiler.h>
10988
10989#include <$ac_header>
10990_ACEOF
10991rm -f conftest.$ac_objext
10992if { (ac_try="$ac_compile"
10993case "(($ac_try" in
10994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995  *) ac_try_echo=$ac_try;;
10996esac
10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998  (eval "$ac_compile") 2>conftest.er1
10999  ac_status=$?
11000  grep -v '^ *+' conftest.er1 >conftest.err
11001  rm -f conftest.er1
11002  cat conftest.err >&5
11003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004  (exit $ac_status); } && {
11005	 test -z "$ac_c_werror_flag" ||
11006	 test ! -s conftest.err
11007       } && test -s conftest.$ac_objext; then
11008  eval "$as_ac_Header=yes"
11009else
11010  echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013	eval "$as_ac_Header=no"
11014fi
11015
11016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017fi
11018ac_res=`eval echo '${'$as_ac_Header'}'`
11019	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11020echo "${ECHO_T}$ac_res" >&6; }
11021if test `eval echo '${'$as_ac_Header'}'` = yes; then
11022  cat >>confdefs.h <<_ACEOF
11023#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11024_ACEOF
11025
11026fi
11027
11028done
11029
11030	else
11031
11032for ac_header in linux/usbdevice_fs.h
11033do
11034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11036  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11039  echo $ECHO_N "(cached) $ECHO_C" >&6
11040fi
11041ac_res=`eval echo '${'$as_ac_Header'}'`
11042	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11043echo "${ECHO_T}$ac_res" >&6; }
11044else
11045  # Is the header compilable?
11046{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11047echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11048cat >conftest.$ac_ext <<_ACEOF
11049/* confdefs.h.  */
11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h.  */
11054$ac_includes_default
11055#include <$ac_header>
11056_ACEOF
11057rm -f conftest.$ac_objext
11058if { (ac_try="$ac_compile"
11059case "(($ac_try" in
11060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061  *) ac_try_echo=$ac_try;;
11062esac
11063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064  (eval "$ac_compile") 2>conftest.er1
11065  ac_status=$?
11066  grep -v '^ *+' conftest.er1 >conftest.err
11067  rm -f conftest.er1
11068  cat conftest.err >&5
11069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070  (exit $ac_status); } && {
11071	 test -z "$ac_c_werror_flag" ||
11072	 test ! -s conftest.err
11073       } && test -s conftest.$ac_objext; then
11074  ac_header_compiler=yes
11075else
11076  echo "$as_me: failed program was:" >&5
11077sed 's/^/| /' conftest.$ac_ext >&5
11078
11079	ac_header_compiler=no
11080fi
11081
11082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11083{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11084echo "${ECHO_T}$ac_header_compiler" >&6; }
11085
11086# Is the header present?
11087{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11089cat >conftest.$ac_ext <<_ACEOF
11090/* confdefs.h.  */
11091_ACEOF
11092cat confdefs.h >>conftest.$ac_ext
11093cat >>conftest.$ac_ext <<_ACEOF
11094/* end confdefs.h.  */
11095#include <$ac_header>
11096_ACEOF
11097if { (ac_try="$ac_cpp conftest.$ac_ext"
11098case "(($ac_try" in
11099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100  *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11104  ac_status=$?
11105  grep -v '^ *+' conftest.er1 >conftest.err
11106  rm -f conftest.er1
11107  cat conftest.err >&5
11108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109  (exit $ac_status); } >/dev/null && {
11110	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11111	 test ! -s conftest.err
11112       }; then
11113  ac_header_preproc=yes
11114else
11115  echo "$as_me: failed program was:" >&5
11116sed 's/^/| /' conftest.$ac_ext >&5
11117
11118  ac_header_preproc=no
11119fi
11120
11121rm -f conftest.err conftest.$ac_ext
11122{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11123echo "${ECHO_T}$ac_header_preproc" >&6; }
11124
11125# So?  What about this header?
11126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11127  yes:no: )
11128    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11130    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11132    ac_header_preproc=yes
11133    ;;
11134  no:yes:* )
11135    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11137    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11138echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11139    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11141    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11142echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11143    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11145    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11147
11148    ;;
11149esac
11150{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153  echo $ECHO_N "(cached) $ECHO_C" >&6
11154else
11155  eval "$as_ac_Header=\$ac_header_preproc"
11156fi
11157ac_res=`eval echo '${'$as_ac_Header'}'`
11158	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11159echo "${ECHO_T}$ac_res" >&6; }
11160
11161fi
11162if test `eval echo '${'$as_ac_Header'}'` = yes; then
11163  cat >>confdefs.h <<_ACEOF
11164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11165_ACEOF
11166
11167fi
11168
11169done
11170
11171	fi
11172	if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
11173	  #
11174	  # OK, does it define bRequestType?  Older versions of the kernel
11175	  # define fields with names like "requesttype, "request", and
11176	  # "value", rather than "bRequestType", "bRequest", and
11177	  # "wValue".
11178	  #
11179	  { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
11180echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
11181	  if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
11182  echo $ECHO_N "(cached) $ECHO_C" >&6
11183else
11184  cat >conftest.$ac_ext <<_ACEOF
11185/* confdefs.h.  */
11186_ACEOF
11187cat confdefs.h >>conftest.$ac_ext
11188cat >>conftest.$ac_ext <<_ACEOF
11189/* end confdefs.h.  */
11190
11191$ac_includes_default
11192#ifdef HAVE_SYS_BITYPES_H
11193#include <sys/bitypes.h>
11194#endif
11195#ifdef HAVE_LINUX_COMPILER_H
11196#include <linux/compiler.h>
11197#endif
11198#include <linux/usbdevice_fs.h>
11199int
11200main ()
11201{
11202u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
11203  ;
11204  return 0;
11205}
11206_ACEOF
11207rm -f conftest.$ac_objext
11208if { (ac_try="$ac_compile"
11209case "(($ac_try" in
11210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211  *) ac_try_echo=$ac_try;;
11212esac
11213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214  (eval "$ac_compile") 2>conftest.er1
11215  ac_status=$?
11216  grep -v '^ *+' conftest.er1 >conftest.err
11217  rm -f conftest.er1
11218  cat conftest.err >&5
11219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220  (exit $ac_status); } && {
11221	 test -z "$ac_c_werror_flag" ||
11222	 test ! -s conftest.err
11223       } && test -s conftest.$ac_objext; then
11224  ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
11225else
11226  echo "$as_me: failed program was:" >&5
11227sed 's/^/| /' conftest.$ac_ext >&5
11228
11229	ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
11230fi
11231
11232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233fi
11234
11235	    { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
11236echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
11237	    if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
11238
11239cat >>confdefs.h <<\_ACEOF
11240#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
11241_ACEOF
11242
11243	    fi
11244	fi
11245	;;
11246*)
11247	{ echo "$as_me:$LINENO: result: no" >&5
11248echo "${ECHO_T}no" >&6; }
11249	;;
11250esac
11251
11252
11253
11254{ echo "$as_me:$LINENO: checking whether the platform could support netfilter sniffing" >&5
11255echo $ECHO_N "checking whether the platform could support netfilter sniffing... $ECHO_C" >&6; }
11256case "$host_os" in
11257linux*)
11258	{ echo "$as_me:$LINENO: result: yes" >&5
11259echo "${ECHO_T}yes" >&6; }
11260	#
11261	# Life's too short to deal with trying to get this to compile
11262	# if you don't get the right types defined with
11263	# __KERNEL_STRICT_NAMES getting defined by some other include.
11264	#
11265	# Check whether the includes Just Work.  If not, don't turn on
11266	# netfilter support.
11267	#
11268	{ echo "$as_me:$LINENO: checking whether we can compile the netfilter support" >&5
11269echo $ECHO_N "checking whether we can compile the netfilter support... $ECHO_C" >&6; }
11270	if test "${ac_cv_netfilter_can_compile+set}" = set; then
11271  echo $ECHO_N "(cached) $ECHO_C" >&6
11272else
11273  cat >conftest.$ac_ext <<_ACEOF
11274/* confdefs.h.  */
11275_ACEOF
11276cat confdefs.h >>conftest.$ac_ext
11277cat >>conftest.$ac_ext <<_ACEOF
11278/* end confdefs.h.  */
11279
11280$ac_includes_default
11281#include <sys/socket.h>
11282#include <netinet/in.h>
11283#include <linux/types.h>
11284
11285#include <linux/netlink.h>
11286#include <linux/netfilter.h>
11287#include <linux/netfilter/nfnetlink.h>
11288#include <linux/netfilter/nfnetlink_log.h>
11289#include <linux/netfilter/nfnetlink_queue.h>
11290int
11291main ()
11292{
11293
11294  ;
11295  return 0;
11296}
11297_ACEOF
11298rm -f conftest.$ac_objext
11299if { (ac_try="$ac_compile"
11300case "(($ac_try" in
11301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302  *) ac_try_echo=$ac_try;;
11303esac
11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305  (eval "$ac_compile") 2>conftest.er1
11306  ac_status=$?
11307  grep -v '^ *+' conftest.er1 >conftest.err
11308  rm -f conftest.er1
11309  cat conftest.err >&5
11310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311  (exit $ac_status); } && {
11312	 test -z "$ac_c_werror_flag" ||
11313	 test ! -s conftest.err
11314       } && test -s conftest.$ac_objext; then
11315  ac_cv_netfilter_can_compile=yes
11316else
11317  echo "$as_me: failed program was:" >&5
11318sed 's/^/| /' conftest.$ac_ext >&5
11319
11320	ac_cv_netfilter_can_compile=no
11321fi
11322
11323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324fi
11325
11326	{ echo "$as_me:$LINENO: result: $ac_cv_netfilter_can_compile" >&5
11327echo "${ECHO_T}$ac_cv_netfilter_can_compile" >&6; }
11328	if test $ac_cv_netfilter_can_compile = yes ; then
11329
11330cat >>confdefs.h <<\_ACEOF
11331#define PCAP_SUPPORT_NETFILTER 1
11332_ACEOF
11333
11334	  NETFILTER_SRC=pcap-netfilter-linux.c
11335	fi
11336	;;
11337*)
11338	{ echo "$as_me:$LINENO: result: no" >&5
11339echo "${ECHO_T}no" >&6; }
11340	;;
11341esac
11342
11343
11344
11345# Check whether --enable-bluetooth was given.
11346if test "${enable_bluetooth+set}" = set; then
11347  enableval=$enable_bluetooth;
11348else
11349  enable_bluetooth=yes
11350fi
11351
11352
11353if test "x$enable_bluetooth" != "xno" ; then
11354		case "$host_os" in
11355	linux*)
11356		if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11357  { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11358echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11359if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11360  echo $ECHO_N "(cached) $ECHO_C" >&6
11361fi
11362{ echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11363echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11364else
11365  # Is the header compilable?
11366{ echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
11367echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
11368cat >conftest.$ac_ext <<_ACEOF
11369/* confdefs.h.  */
11370_ACEOF
11371cat confdefs.h >>conftest.$ac_ext
11372cat >>conftest.$ac_ext <<_ACEOF
11373/* end confdefs.h.  */
11374$ac_includes_default
11375#include <bluetooth/bluetooth.h>
11376_ACEOF
11377rm -f conftest.$ac_objext
11378if { (ac_try="$ac_compile"
11379case "(($ac_try" in
11380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381  *) ac_try_echo=$ac_try;;
11382esac
11383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384  (eval "$ac_compile") 2>conftest.er1
11385  ac_status=$?
11386  grep -v '^ *+' conftest.er1 >conftest.err
11387  rm -f conftest.er1
11388  cat conftest.err >&5
11389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390  (exit $ac_status); } && {
11391	 test -z "$ac_c_werror_flag" ||
11392	 test ! -s conftest.err
11393       } && test -s conftest.$ac_objext; then
11394  ac_header_compiler=yes
11395else
11396  echo "$as_me: failed program was:" >&5
11397sed 's/^/| /' conftest.$ac_ext >&5
11398
11399	ac_header_compiler=no
11400fi
11401
11402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11403{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11404echo "${ECHO_T}$ac_header_compiler" >&6; }
11405
11406# Is the header present?
11407{ echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
11408echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
11409cat >conftest.$ac_ext <<_ACEOF
11410/* confdefs.h.  */
11411_ACEOF
11412cat confdefs.h >>conftest.$ac_ext
11413cat >>conftest.$ac_ext <<_ACEOF
11414/* end confdefs.h.  */
11415#include <bluetooth/bluetooth.h>
11416_ACEOF
11417if { (ac_try="$ac_cpp conftest.$ac_ext"
11418case "(($ac_try" in
11419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420  *) ac_try_echo=$ac_try;;
11421esac
11422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11424  ac_status=$?
11425  grep -v '^ *+' conftest.er1 >conftest.err
11426  rm -f conftest.er1
11427  cat conftest.err >&5
11428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429  (exit $ac_status); } >/dev/null && {
11430	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11431	 test ! -s conftest.err
11432       }; then
11433  ac_header_preproc=yes
11434else
11435  echo "$as_me: failed program was:" >&5
11436sed 's/^/| /' conftest.$ac_ext >&5
11437
11438  ac_header_preproc=no
11439fi
11440
11441rm -f conftest.err conftest.$ac_ext
11442{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11443echo "${ECHO_T}$ac_header_preproc" >&6; }
11444
11445# So?  What about this header?
11446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11447  yes:no: )
11448    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
11449echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11450    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
11451echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
11452    ac_header_preproc=yes
11453    ;;
11454  no:yes:* )
11455    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
11456echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
11457    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&5
11458echo "$as_me: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&2;}
11459    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
11460echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
11461    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&5
11462echo "$as_me: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11463    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
11464echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
11465    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
11466echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
11467
11468    ;;
11469esac
11470{ echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11471echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11472if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11473  echo $ECHO_N "(cached) $ECHO_C" >&6
11474else
11475  ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
11476fi
11477{ echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11478echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11479
11480fi
11481if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
11482
11483
11484cat >>confdefs.h <<\_ACEOF
11485#define PCAP_SUPPORT_BT 1
11486_ACEOF
11487
11488		  BT_SRC=pcap-bt-linux.c
11489		  { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
11490echo "$as_me: Bluetooth sniffing is supported" >&6;}
11491
11492		  #
11493		  # OK, does struct sockaddr_hci have an hci_channel
11494		  # member?
11495		  #
11496		  { echo "$as_me:$LINENO: checking if struct sockaddr_hci has hci_channel member" >&5
11497echo $ECHO_N "checking if struct sockaddr_hci has hci_channel member... $ECHO_C" >&6; }
11498		  if test "${ac_cv_lbl_sockaddr_hci_has_hci_channel+set}" = set; then
11499  echo $ECHO_N "(cached) $ECHO_C" >&6
11500else
11501  cat >conftest.$ac_ext <<_ACEOF
11502/* confdefs.h.  */
11503_ACEOF
11504cat confdefs.h >>conftest.$ac_ext
11505cat >>conftest.$ac_ext <<_ACEOF
11506/* end confdefs.h.  */
11507
11508#include <bluetooth/bluetooth.h>
11509#include <bluetooth/hci.h>
11510
11511int
11512main ()
11513{
11514u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
11515  ;
11516  return 0;
11517}
11518_ACEOF
11519rm -f conftest.$ac_objext
11520if { (ac_try="$ac_compile"
11521case "(($ac_try" in
11522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523  *) ac_try_echo=$ac_try;;
11524esac
11525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526  (eval "$ac_compile") 2>conftest.er1
11527  ac_status=$?
11528  grep -v '^ *+' conftest.er1 >conftest.err
11529  rm -f conftest.er1
11530  cat conftest.err >&5
11531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532  (exit $ac_status); } && {
11533	 test -z "$ac_c_werror_flag" ||
11534	 test ! -s conftest.err
11535       } && test -s conftest.$ac_objext; then
11536  ac_cv_lbl_sockaddr_hci_has_hci_channel=yes
11537else
11538  echo "$as_me: failed program was:" >&5
11539sed 's/^/| /' conftest.$ac_ext >&5
11540
11541	ac_cv_lbl_sockaddr_hci_has_hci_channel=no
11542fi
11543
11544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545fi
11546
11547		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
11548echo "${ECHO_T}$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
11549		    if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
11550
11551cat >>confdefs.h <<\_ACEOF
11552#define SOCKADDR_HCI_HAS_HCI_CHANNEL
11553_ACEOF
11554
11555		    fi
11556
11557else
11558  { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
11559echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
11560
11561fi
11562
11563
11564		;;
11565	*)
11566		{ echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
11567echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
11568		;;
11569	esac
11570
11571
11572fi
11573
11574# Check whether --enable-canusb was given.
11575if test "${enable_canusb+set}" = set; then
11576  enableval=$enable_canusb;
11577else
11578  enable_canusb=yes
11579fi
11580
11581
11582if test "x$enable_canusb" != "xno" ; then
11583		case "$host_os" in
11584	linux*)
11585		if test "${ac_cv_header_libusb_1_0_libusb_h+set}" = set; then
11586  { echo "$as_me:$LINENO: checking for libusb-1.0/libusb.h" >&5
11587echo $ECHO_N "checking for libusb-1.0/libusb.h... $ECHO_C" >&6; }
11588if test "${ac_cv_header_libusb_1_0_libusb_h+set}" = set; then
11589  echo $ECHO_N "(cached) $ECHO_C" >&6
11590fi
11591{ echo "$as_me:$LINENO: result: $ac_cv_header_libusb_1_0_libusb_h" >&5
11592echo "${ECHO_T}$ac_cv_header_libusb_1_0_libusb_h" >&6; }
11593else
11594  # Is the header compilable?
11595{ echo "$as_me:$LINENO: checking libusb-1.0/libusb.h usability" >&5
11596echo $ECHO_N "checking libusb-1.0/libusb.h usability... $ECHO_C" >&6; }
11597cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h.  */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h.  */
11603$ac_includes_default
11604#include <libusb-1.0/libusb.h>
11605_ACEOF
11606rm -f conftest.$ac_objext
11607if { (ac_try="$ac_compile"
11608case "(($ac_try" in
11609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610  *) ac_try_echo=$ac_try;;
11611esac
11612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613  (eval "$ac_compile") 2>conftest.er1
11614  ac_status=$?
11615  grep -v '^ *+' conftest.er1 >conftest.err
11616  rm -f conftest.er1
11617  cat conftest.err >&5
11618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619  (exit $ac_status); } && {
11620	 test -z "$ac_c_werror_flag" ||
11621	 test ! -s conftest.err
11622       } && test -s conftest.$ac_objext; then
11623  ac_header_compiler=yes
11624else
11625  echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628	ac_header_compiler=no
11629fi
11630
11631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633echo "${ECHO_T}$ac_header_compiler" >&6; }
11634
11635# Is the header present?
11636{ echo "$as_me:$LINENO: checking libusb-1.0/libusb.h presence" >&5
11637echo $ECHO_N "checking libusb-1.0/libusb.h presence... $ECHO_C" >&6; }
11638cat >conftest.$ac_ext <<_ACEOF
11639/* confdefs.h.  */
11640_ACEOF
11641cat confdefs.h >>conftest.$ac_ext
11642cat >>conftest.$ac_ext <<_ACEOF
11643/* end confdefs.h.  */
11644#include <libusb-1.0/libusb.h>
11645_ACEOF
11646if { (ac_try="$ac_cpp conftest.$ac_ext"
11647case "(($ac_try" in
11648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649  *) ac_try_echo=$ac_try;;
11650esac
11651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11653  ac_status=$?
11654  grep -v '^ *+' conftest.er1 >conftest.err
11655  rm -f conftest.er1
11656  cat conftest.err >&5
11657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658  (exit $ac_status); } >/dev/null && {
11659	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11660	 test ! -s conftest.err
11661       }; then
11662  ac_header_preproc=yes
11663else
11664  echo "$as_me: failed program was:" >&5
11665sed 's/^/| /' conftest.$ac_ext >&5
11666
11667  ac_header_preproc=no
11668fi
11669
11670rm -f conftest.err conftest.$ac_ext
11671{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11672echo "${ECHO_T}$ac_header_preproc" >&6; }
11673
11674# So?  What about this header?
11675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11676  yes:no: )
11677    { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: accepted by the compiler, rejected by the preprocessor!" >&5
11678echo "$as_me: WARNING: libusb-1.0/libusb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11679    { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: proceeding with the compiler's result" >&5
11680echo "$as_me: WARNING: libusb-1.0/libusb.h: proceeding with the compiler's result" >&2;}
11681    ac_header_preproc=yes
11682    ;;
11683  no:yes:* )
11684    { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: present but cannot be compiled" >&5
11685echo "$as_me: WARNING: libusb-1.0/libusb.h: present but cannot be compiled" >&2;}
11686    { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h:     check for missing prerequisite headers?" >&5
11687echo "$as_me: WARNING: libusb-1.0/libusb.h:     check for missing prerequisite headers?" >&2;}
11688    { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: see the Autoconf documentation" >&5
11689echo "$as_me: WARNING: libusb-1.0/libusb.h: see the Autoconf documentation" >&2;}
11690    { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h:     section \"Present But Cannot Be Compiled\"" >&5
11691echo "$as_me: WARNING: libusb-1.0/libusb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11692    { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: proceeding with the preprocessor's result" >&5
11693echo "$as_me: WARNING: libusb-1.0/libusb.h: proceeding with the preprocessor's result" >&2;}
11694    { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: in the future, the compiler will take precedence" >&5
11695echo "$as_me: WARNING: libusb-1.0/libusb.h: in the future, the compiler will take precedence" >&2;}
11696
11697    ;;
11698esac
11699{ echo "$as_me:$LINENO: checking for libusb-1.0/libusb.h" >&5
11700echo $ECHO_N "checking for libusb-1.0/libusb.h... $ECHO_C" >&6; }
11701if test "${ac_cv_header_libusb_1_0_libusb_h+set}" = set; then
11702  echo $ECHO_N "(cached) $ECHO_C" >&6
11703else
11704  ac_cv_header_libusb_1_0_libusb_h=$ac_header_preproc
11705fi
11706{ echo "$as_me:$LINENO: result: $ac_cv_header_libusb_1_0_libusb_h" >&5
11707echo "${ECHO_T}$ac_cv_header_libusb_1_0_libusb_h" >&6; }
11708
11709fi
11710if test $ac_cv_header_libusb_1_0_libusb_h = yes; then
11711
11712
11713cat >>confdefs.h <<\_ACEOF
11714#define PCAP_SUPPORT_CANUSB 1
11715_ACEOF
11716
11717		    CANUSB_SRC=pcap-canusb-linux.c
11718		    LIBS="-lusb-1.0 -lpthread $LIBS"
11719		    { echo "$as_me:$LINENO: canusb sniffing is supported" >&5
11720echo "$as_me: canusb sniffing is supported" >&6;}
11721
11722else
11723  { echo "$as_me:$LINENO: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&5
11724echo "$as_me: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&6;}
11725
11726fi
11727
11728
11729		;;
11730	*)
11731		{ echo "$as_me:$LINENO: no canusb support implemented for $host_os" >&5
11732echo "$as_me: no canusb support implemented for $host_os" >&6;}
11733		;;
11734	esac
11735
11736
11737fi
11738
11739# Check whether --enable-can was given.
11740if test "${enable_can+set}" = set; then
11741  enableval=$enable_can;
11742else
11743  enable_can=yes
11744fi
11745
11746
11747if test "x$enable_can" != "xno" ; then
11748		case "$host_os" in
11749	linux*)
11750		{ echo "$as_me:$LINENO: checking for linux/can.h" >&5
11751echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
11752if test "${ac_cv_header_linux_can_h+set}" = set; then
11753  echo $ECHO_N "(cached) $ECHO_C" >&6
11754else
11755  cat >conftest.$ac_ext <<_ACEOF
11756/* confdefs.h.  */
11757_ACEOF
11758cat confdefs.h >>conftest.$ac_ext
11759cat >>conftest.$ac_ext <<_ACEOF
11760/* end confdefs.h.  */
11761#include <sys/socket.h>
11762
11763
11764#include <linux/can.h>
11765_ACEOF
11766rm -f conftest.$ac_objext
11767if { (ac_try="$ac_compile"
11768case "(($ac_try" in
11769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770  *) ac_try_echo=$ac_try;;
11771esac
11772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773  (eval "$ac_compile") 2>conftest.er1
11774  ac_status=$?
11775  grep -v '^ *+' conftest.er1 >conftest.err
11776  rm -f conftest.er1
11777  cat conftest.err >&5
11778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779  (exit $ac_status); } && {
11780	 test -z "$ac_c_werror_flag" ||
11781	 test ! -s conftest.err
11782       } && test -s conftest.$ac_objext; then
11783  ac_cv_header_linux_can_h=yes
11784else
11785  echo "$as_me: failed program was:" >&5
11786sed 's/^/| /' conftest.$ac_ext >&5
11787
11788	ac_cv_header_linux_can_h=no
11789fi
11790
11791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11792fi
11793{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
11794echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
11795if test $ac_cv_header_linux_can_h = yes; then
11796
11797cat >>confdefs.h <<\_ACEOF
11798#define PCAP_SUPPORT_CAN 1
11799_ACEOF
11800
11801			CAN_SRC=pcap-can-linux.c
11802			{ echo "$as_me:$LINENO: CAN sniffing is supported" >&5
11803echo "$as_me: CAN sniffing is supported" >&6;}
11804else
11805  { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
11806echo "$as_me: CAN sniffing is not supported" >&6;}
11807fi
11808
11809
11810		;;
11811	*)
11812		{ echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
11813echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
11814		;;
11815	esac
11816
11817
11818fi
11819
11820case "$host_os" in
11821linux*)
11822
11823for ac_header in linux/net_tstamp.h
11824do
11825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11829if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830  echo $ECHO_N "(cached) $ECHO_C" >&6
11831fi
11832ac_res=`eval echo '${'$as_ac_Header'}'`
11833	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11834echo "${ECHO_T}$ac_res" >&6; }
11835else
11836  # Is the header compilable?
11837{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11838echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11839cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h.  */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h.  */
11845$ac_includes_default
11846#include <$ac_header>
11847_ACEOF
11848rm -f conftest.$ac_objext
11849if { (ac_try="$ac_compile"
11850case "(($ac_try" in
11851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852  *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855  (eval "$ac_compile") 2>conftest.er1
11856  ac_status=$?
11857  grep -v '^ *+' conftest.er1 >conftest.err
11858  rm -f conftest.er1
11859  cat conftest.err >&5
11860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861  (exit $ac_status); } && {
11862	 test -z "$ac_c_werror_flag" ||
11863	 test ! -s conftest.err
11864       } && test -s conftest.$ac_objext; then
11865  ac_header_compiler=yes
11866else
11867  echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870	ac_header_compiler=no
11871fi
11872
11873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11875echo "${ECHO_T}$ac_header_compiler" >&6; }
11876
11877# Is the header present?
11878{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11880cat >conftest.$ac_ext <<_ACEOF
11881/* confdefs.h.  */
11882_ACEOF
11883cat confdefs.h >>conftest.$ac_ext
11884cat >>conftest.$ac_ext <<_ACEOF
11885/* end confdefs.h.  */
11886#include <$ac_header>
11887_ACEOF
11888if { (ac_try="$ac_cpp conftest.$ac_ext"
11889case "(($ac_try" in
11890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891  *) ac_try_echo=$ac_try;;
11892esac
11893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11895  ac_status=$?
11896  grep -v '^ *+' conftest.er1 >conftest.err
11897  rm -f conftest.er1
11898  cat conftest.err >&5
11899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900  (exit $ac_status); } >/dev/null && {
11901	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11902	 test ! -s conftest.err
11903       }; then
11904  ac_header_preproc=yes
11905else
11906  echo "$as_me: failed program was:" >&5
11907sed 's/^/| /' conftest.$ac_ext >&5
11908
11909  ac_header_preproc=no
11910fi
11911
11912rm -f conftest.err conftest.$ac_ext
11913{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11914echo "${ECHO_T}$ac_header_preproc" >&6; }
11915
11916# So?  What about this header?
11917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11918  yes:no: )
11919    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11920echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11921    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11922echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11923    ac_header_preproc=yes
11924    ;;
11925  no:yes:* )
11926    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11927echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11928    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11929echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11930    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11931echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11932    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11933echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11934    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11936    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11937echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11938
11939    ;;
11940esac
11941{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11944  echo $ECHO_N "(cached) $ECHO_C" >&6
11945else
11946  eval "$as_ac_Header=\$ac_header_preproc"
11947fi
11948ac_res=`eval echo '${'$as_ac_Header'}'`
11949	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11950echo "${ECHO_T}$ac_res" >&6; }
11951
11952fi
11953if test `eval echo '${'$as_ac_Header'}'` = yes; then
11954  cat >>confdefs.h <<_ACEOF
11955#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956_ACEOF
11957
11958fi
11959
11960done
11961
11962	;;
11963*)
11964	{ echo "$as_me:$LINENO: no hardware timestamp support implemented for $host_os" >&5
11965echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
11966	;;
11967esac
11968
11969# Find a good install program.  We prefer a C program (faster),
11970# so one script is as good as another.  But avoid the broken or
11971# incompatible versions:
11972# SysV /etc/install, /usr/sbin/install
11973# SunOS /usr/etc/install
11974# IRIX /sbin/install
11975# AIX /bin/install
11976# AmigaOS /C/install, which installs bootblocks on floppy discs
11977# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11978# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11979# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11980# OS/2's system install, which has a completely different semantic
11981# ./install, which can be erroneously created by make from ./install.sh.
11982{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11983echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11984if test -z "$INSTALL"; then
11985if test "${ac_cv_path_install+set}" = set; then
11986  echo $ECHO_N "(cached) $ECHO_C" >&6
11987else
11988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989for as_dir in $PATH
11990do
11991  IFS=$as_save_IFS
11992  test -z "$as_dir" && as_dir=.
11993  # Account for people who put trailing slashes in PATH elements.
11994case $as_dir/ in
11995  ./ | .// | /cC/* | \
11996  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11997  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11998  /usr/ucb/* ) ;;
11999  *)
12000    # OSF1 and SCO ODT 3.0 have their own names for install.
12001    # Don't use installbsd from OSF since it installs stuff as root
12002    # by default.
12003    for ac_prog in ginstall scoinst install; do
12004      for ac_exec_ext in '' $ac_executable_extensions; do
12005	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12006	  if test $ac_prog = install &&
12007	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12008	    # AIX install.  It has an incompatible calling convention.
12009	    :
12010	  elif test $ac_prog = install &&
12011	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12012	    # program-specific install script used by HP pwplus--don't use.
12013	    :
12014	  else
12015	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12016	    break 3
12017	  fi
12018	fi
12019      done
12020    done
12021    ;;
12022esac
12023done
12024IFS=$as_save_IFS
12025
12026
12027fi
12028  if test "${ac_cv_path_install+set}" = set; then
12029    INSTALL=$ac_cv_path_install
12030  else
12031    # As a last resort, use the slow shell script.  Don't cache a
12032    # value for INSTALL within a source directory, because that will
12033    # break other packages using the cache if that directory is
12034    # removed, or if the value is a relative name.
12035    INSTALL=$ac_install_sh
12036  fi
12037fi
12038{ echo "$as_me:$LINENO: result: $INSTALL" >&5
12039echo "${ECHO_T}$INSTALL" >&6; }
12040
12041# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12042# It thinks the first close brace ends the variable substitution.
12043test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12044
12045test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12046
12047test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12048
12049
12050ac_config_headers="$ac_config_headers config.h"
12051
12052
12053ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
12054
12055cat >confcache <<\_ACEOF
12056# This file is a shell script that caches the results of configure
12057# tests run on this system so they can be shared between configure
12058# scripts and configure runs, see configure's option --config-cache.
12059# It is not useful on other systems.  If it contains results you don't
12060# want to keep, you may remove or edit it.
12061#
12062# config.status only pays attention to the cache file if you give it
12063# the --recheck option to rerun configure.
12064#
12065# `ac_cv_env_foo' variables (set or unset) will be overridden when
12066# loading this file, other *unset* `ac_cv_foo' will be assigned the
12067# following values.
12068
12069_ACEOF
12070
12071# The following way of writing the cache mishandles newlines in values,
12072# but we know of no workaround that is simple, portable, and efficient.
12073# So, we kill variables containing newlines.
12074# Ultrix sh set writes to stderr and can't be redirected directly,
12075# and sets the high bit in the cache file unless we assign to the vars.
12076(
12077  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12078    eval ac_val=\$$ac_var
12079    case $ac_val in #(
12080    *${as_nl}*)
12081      case $ac_var in #(
12082      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12083echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12084      esac
12085      case $ac_var in #(
12086      _ | IFS | as_nl) ;; #(
12087      *) $as_unset $ac_var ;;
12088      esac ;;
12089    esac
12090  done
12091
12092  (set) 2>&1 |
12093    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12094    *${as_nl}ac_space=\ *)
12095      # `set' does not quote correctly, so add quotes (double-quote
12096      # substitution turns \\\\ into \\, and sed turns \\ into \).
12097      sed -n \
12098	"s/'/'\\\\''/g;
12099	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12100      ;; #(
12101    *)
12102      # `set' quotes correctly as required by POSIX, so do not add quotes.
12103      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12104      ;;
12105    esac |
12106    sort
12107) |
12108  sed '
12109     /^ac_cv_env_/b end
12110     t clear
12111     :clear
12112     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12113     t end
12114     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12115     :end' >>confcache
12116if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12117  if test -w "$cache_file"; then
12118    test "x$cache_file" != "x/dev/null" &&
12119      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12120echo "$as_me: updating cache $cache_file" >&6;}
12121    cat confcache >$cache_file
12122  else
12123    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12124echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12125  fi
12126fi
12127rm -f confcache
12128
12129test "x$prefix" = xNONE && prefix=$ac_default_prefix
12130# Let make expand exec_prefix.
12131test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12132
12133DEFS=-DHAVE_CONFIG_H
12134
12135ac_libobjs=
12136ac_ltlibobjs=
12137for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12138  # 1. Remove the extension, and $U if already installed.
12139  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12140  ac_i=`echo "$ac_i" | sed "$ac_script"`
12141  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12142  #    will be set to the directory where LIBOBJS objects are built.
12143  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12144  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12145done
12146LIBOBJS=$ac_libobjs
12147
12148LTLIBOBJS=$ac_ltlibobjs
12149
12150
12151
12152: ${CONFIG_STATUS=./config.status}
12153ac_clean_files_save=$ac_clean_files
12154ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12155{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12156echo "$as_me: creating $CONFIG_STATUS" >&6;}
12157cat >$CONFIG_STATUS <<_ACEOF
12158#! $SHELL
12159# Generated by $as_me.
12160# Run this file to recreate the current configuration.
12161# Compiler output produced by configure, useful for debugging
12162# configure, is in config.log if it exists.
12163
12164debug=false
12165ac_cs_recheck=false
12166ac_cs_silent=false
12167SHELL=\${CONFIG_SHELL-$SHELL}
12168_ACEOF
12169
12170cat >>$CONFIG_STATUS <<\_ACEOF
12171## --------------------- ##
12172## M4sh Initialization.  ##
12173## --------------------- ##
12174
12175# Be more Bourne compatible
12176DUALCASE=1; export DUALCASE # for MKS sh
12177if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12178  emulate sh
12179  NULLCMD=:
12180  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12181  # is contrary to our usage.  Disable this feature.
12182  alias -g '${1+"$@"}'='"$@"'
12183  setopt NO_GLOB_SUBST
12184else
12185  case `(set -o) 2>/dev/null` in
12186  *posix*) set -o posix ;;
12187esac
12188
12189fi
12190
12191
12192
12193
12194# PATH needs CR
12195# Avoid depending upon Character Ranges.
12196as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12197as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12198as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12199as_cr_digits='0123456789'
12200as_cr_alnum=$as_cr_Letters$as_cr_digits
12201
12202# The user is always right.
12203if test "${PATH_SEPARATOR+set}" != set; then
12204  echo "#! /bin/sh" >conf$$.sh
12205  echo  "exit 0"   >>conf$$.sh
12206  chmod +x conf$$.sh
12207  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12208    PATH_SEPARATOR=';'
12209  else
12210    PATH_SEPARATOR=:
12211  fi
12212  rm -f conf$$.sh
12213fi
12214
12215# Support unset when possible.
12216if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12217  as_unset=unset
12218else
12219  as_unset=false
12220fi
12221
12222
12223# IFS
12224# We need space, tab and new line, in precisely that order.  Quoting is
12225# there to prevent editors from complaining about space-tab.
12226# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12227# splitting by setting IFS to empty value.)
12228as_nl='
12229'
12230IFS=" ""	$as_nl"
12231
12232# Find who we are.  Look in the path if we contain no directory separator.
12233case $0 in
12234  *[\\/]* ) as_myself=$0 ;;
12235  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238  IFS=$as_save_IFS
12239  test -z "$as_dir" && as_dir=.
12240  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12241done
12242IFS=$as_save_IFS
12243
12244     ;;
12245esac
12246# We did not find ourselves, most probably we were run as `sh COMMAND'
12247# in which case we are not to be found in the path.
12248if test "x$as_myself" = x; then
12249  as_myself=$0
12250fi
12251if test ! -f "$as_myself"; then
12252  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12253  { (exit 1); exit 1; }
12254fi
12255
12256# Work around bugs in pre-3.0 UWIN ksh.
12257for as_var in ENV MAIL MAILPATH
12258do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12259done
12260PS1='$ '
12261PS2='> '
12262PS4='+ '
12263
12264# NLS nuisances.
12265for as_var in \
12266  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12267  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12268  LC_TELEPHONE LC_TIME
12269do
12270  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12271    eval $as_var=C; export $as_var
12272  else
12273    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12274  fi
12275done
12276
12277# Required to use basename.
12278if expr a : '\(a\)' >/dev/null 2>&1 &&
12279   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12280  as_expr=expr
12281else
12282  as_expr=false
12283fi
12284
12285if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12286  as_basename=basename
12287else
12288  as_basename=false
12289fi
12290
12291
12292# Name of the executable.
12293as_me=`$as_basename -- "$0" ||
12294$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12295	 X"$0" : 'X\(//\)$' \| \
12296	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12297echo X/"$0" |
12298    sed '/^.*\/\([^/][^/]*\)\/*$/{
12299	    s//\1/
12300	    q
12301	  }
12302	  /^X\/\(\/\/\)$/{
12303	    s//\1/
12304	    q
12305	  }
12306	  /^X\/\(\/\).*/{
12307	    s//\1/
12308	    q
12309	  }
12310	  s/.*/./; q'`
12311
12312# CDPATH.
12313$as_unset CDPATH
12314
12315
12316
12317  as_lineno_1=$LINENO
12318  as_lineno_2=$LINENO
12319  test "x$as_lineno_1" != "x$as_lineno_2" &&
12320  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12321
12322  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12323  # uniformly replaced by the line number.  The first 'sed' inserts a
12324  # line-number line after each line using $LINENO; the second 'sed'
12325  # does the real work.  The second script uses 'N' to pair each
12326  # line-number line with the line containing $LINENO, and appends
12327  # trailing '-' during substitution so that $LINENO is not a special
12328  # case at line end.
12329  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12330  # scripts with optimization help from Paolo Bonzini.  Blame Lee
12331  # E. McMahon (1931-1989) for sed's syntax.  :-)
12332  sed -n '
12333    p
12334    /[$]LINENO/=
12335  ' <$as_myself |
12336    sed '
12337      s/[$]LINENO.*/&-/
12338      t lineno
12339      b
12340      :lineno
12341      N
12342      :loop
12343      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12344      t loop
12345      s/-\n.*//
12346    ' >$as_me.lineno &&
12347  chmod +x "$as_me.lineno" ||
12348    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12349   { (exit 1); exit 1; }; }
12350
12351  # Don't try to exec as it changes $[0], causing all sort of problems
12352  # (the dirname of $[0] is not the place where we might find the
12353  # original and so on.  Autoconf is especially sensitive to this).
12354  . "./$as_me.lineno"
12355  # Exit status is that of the last command.
12356  exit
12357}
12358
12359
12360if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12361  as_dirname=dirname
12362else
12363  as_dirname=false
12364fi
12365
12366ECHO_C= ECHO_N= ECHO_T=
12367case `echo -n x` in
12368-n*)
12369  case `echo 'x\c'` in
12370  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12371  *)   ECHO_C='\c';;
12372  esac;;
12373*)
12374  ECHO_N='-n';;
12375esac
12376
12377if expr a : '\(a\)' >/dev/null 2>&1 &&
12378   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12379  as_expr=expr
12380else
12381  as_expr=false
12382fi
12383
12384rm -f conf$$ conf$$.exe conf$$.file
12385if test -d conf$$.dir; then
12386  rm -f conf$$.dir/conf$$.file
12387else
12388  rm -f conf$$.dir
12389  mkdir conf$$.dir
12390fi
12391echo >conf$$.file
12392if ln -s conf$$.file conf$$ 2>/dev/null; then
12393  as_ln_s='ln -s'
12394  # ... but there are two gotchas:
12395  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12396  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12397  # In both cases, we have to default to `cp -p'.
12398  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12399    as_ln_s='cp -p'
12400elif ln conf$$.file conf$$ 2>/dev/null; then
12401  as_ln_s=ln
12402else
12403  as_ln_s='cp -p'
12404fi
12405rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12406rmdir conf$$.dir 2>/dev/null
12407
12408if mkdir -p . 2>/dev/null; then
12409  as_mkdir_p=:
12410else
12411  test -d ./-p && rmdir ./-p
12412  as_mkdir_p=false
12413fi
12414
12415if test -x / >/dev/null 2>&1; then
12416  as_test_x='test -x'
12417else
12418  if ls -dL / >/dev/null 2>&1; then
12419    as_ls_L_option=L
12420  else
12421    as_ls_L_option=
12422  fi
12423  as_test_x='
12424    eval sh -c '\''
12425      if test -d "$1"; then
12426        test -d "$1/.";
12427      else
12428	case $1 in
12429        -*)set "./$1";;
12430	esac;
12431	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12432	???[sx]*):;;*)false;;esac;fi
12433    '\'' sh
12434  '
12435fi
12436as_executable_p=$as_test_x
12437
12438# Sed expression to map a string onto a valid CPP name.
12439as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12440
12441# Sed expression to map a string onto a valid variable name.
12442as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12443
12444
12445exec 6>&1
12446
12447# Save the log message, to keep $[0] and so on meaningful, and to
12448# report actual input values of CONFIG_FILES etc. instead of their
12449# values after options handling.
12450ac_log="
12451This file was extended by $as_me, which was
12452generated by GNU Autoconf 2.61.  Invocation command line was
12453
12454  CONFIG_FILES    = $CONFIG_FILES
12455  CONFIG_HEADERS  = $CONFIG_HEADERS
12456  CONFIG_LINKS    = $CONFIG_LINKS
12457  CONFIG_COMMANDS = $CONFIG_COMMANDS
12458  $ $0 $@
12459
12460on `(hostname || uname -n) 2>/dev/null | sed 1q`
12461"
12462
12463_ACEOF
12464
12465cat >>$CONFIG_STATUS <<_ACEOF
12466# Files that config.status was made for.
12467config_files="$ac_config_files"
12468config_headers="$ac_config_headers"
12469
12470_ACEOF
12471
12472cat >>$CONFIG_STATUS <<\_ACEOF
12473ac_cs_usage="\
12474\`$as_me' instantiates files from templates according to the
12475current configuration.
12476
12477Usage: $0 [OPTIONS] [FILE]...
12478
12479  -h, --help       print this help, then exit
12480  -V, --version    print version number and configuration settings, then exit
12481  -q, --quiet      do not print progress messages
12482  -d, --debug      don't remove temporary files
12483      --recheck    update $as_me by reconfiguring in the same conditions
12484  --file=FILE[:TEMPLATE]
12485		   instantiate the configuration file FILE
12486  --header=FILE[:TEMPLATE]
12487		   instantiate the configuration header FILE
12488
12489Configuration files:
12490$config_files
12491
12492Configuration headers:
12493$config_headers
12494
12495Report bugs to <bug-autoconf@gnu.org>."
12496
12497_ACEOF
12498cat >>$CONFIG_STATUS <<_ACEOF
12499ac_cs_version="\\
12500config.status
12501configured by $0, generated by GNU Autoconf 2.61,
12502  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12503
12504Copyright (C) 2006 Free Software Foundation, Inc.
12505This config.status script is free software; the Free Software Foundation
12506gives unlimited permission to copy, distribute and modify it."
12507
12508ac_pwd='$ac_pwd'
12509srcdir='$srcdir'
12510INSTALL='$INSTALL'
12511_ACEOF
12512
12513cat >>$CONFIG_STATUS <<\_ACEOF
12514# If no file are specified by the user, then we need to provide default
12515# value.  By we need to know if files were specified by the user.
12516ac_need_defaults=:
12517while test $# != 0
12518do
12519  case $1 in
12520  --*=*)
12521    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12522    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12523    ac_shift=:
12524    ;;
12525  *)
12526    ac_option=$1
12527    ac_optarg=$2
12528    ac_shift=shift
12529    ;;
12530  esac
12531
12532  case $ac_option in
12533  # Handling of the options.
12534  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12535    ac_cs_recheck=: ;;
12536  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12537    echo "$ac_cs_version"; exit ;;
12538  --debug | --debu | --deb | --de | --d | -d )
12539    debug=: ;;
12540  --file | --fil | --fi | --f )
12541    $ac_shift
12542    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12543    ac_need_defaults=false;;
12544  --header | --heade | --head | --hea )
12545    $ac_shift
12546    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12547    ac_need_defaults=false;;
12548  --he | --h)
12549    # Conflict between --help and --header
12550    { echo "$as_me: error: ambiguous option: $1
12551Try \`$0 --help' for more information." >&2
12552   { (exit 1); exit 1; }; };;
12553  --help | --hel | -h )
12554    echo "$ac_cs_usage"; exit ;;
12555  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12556  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12557    ac_cs_silent=: ;;
12558
12559  # This is an error.
12560  -*) { echo "$as_me: error: unrecognized option: $1
12561Try \`$0 --help' for more information." >&2
12562   { (exit 1); exit 1; }; } ;;
12563
12564  *) ac_config_targets="$ac_config_targets $1"
12565     ac_need_defaults=false ;;
12566
12567  esac
12568  shift
12569done
12570
12571ac_configure_extra_args=
12572
12573if $ac_cs_silent; then
12574  exec 6>/dev/null
12575  ac_configure_extra_args="$ac_configure_extra_args --silent"
12576fi
12577
12578_ACEOF
12579cat >>$CONFIG_STATUS <<_ACEOF
12580if \$ac_cs_recheck; then
12581  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12582  CONFIG_SHELL=$SHELL
12583  export CONFIG_SHELL
12584  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12585fi
12586
12587_ACEOF
12588cat >>$CONFIG_STATUS <<\_ACEOF
12589exec 5>>config.log
12590{
12591  echo
12592  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12593## Running $as_me. ##
12594_ASBOX
12595  echo "$ac_log"
12596} >&5
12597
12598_ACEOF
12599cat >>$CONFIG_STATUS <<_ACEOF
12600_ACEOF
12601
12602cat >>$CONFIG_STATUS <<\_ACEOF
12603
12604# Handling of arguments.
12605for ac_config_target in $ac_config_targets
12606do
12607  case $ac_config_target in
12608    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12609    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12610    "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
12611    "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
12612    "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
12613    "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
12614    "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
12615    "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
12616    "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
12617    "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
12618    "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
12619    "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
12620    "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
12621    "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
12622    "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
12623
12624  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12625echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12626   { (exit 1); exit 1; }; };;
12627  esac
12628done
12629
12630
12631# If the user did not use the arguments to specify the items to instantiate,
12632# then the envvar interface is used.  Set only those that are not.
12633# We use the long form for the default assignment because of an extremely
12634# bizarre bug on SunOS 4.1.3.
12635if $ac_need_defaults; then
12636  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12637  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12638fi
12639
12640# Have a temporary directory for convenience.  Make it in the build tree
12641# simply because there is no reason against having it here, and in addition,
12642# creating and moving files from /tmp can sometimes cause problems.
12643# Hook for its removal unless debugging.
12644# Note that there is a small window in which the directory will not be cleaned:
12645# after its creation but before its name has been assigned to `$tmp'.
12646$debug ||
12647{
12648  tmp=
12649  trap 'exit_status=$?
12650  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12651' 0
12652  trap '{ (exit 1); exit 1; }' 1 2 13 15
12653}
12654# Create a (secure) tmp directory for tmp files.
12655
12656{
12657  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12658  test -n "$tmp" && test -d "$tmp"
12659}  ||
12660{
12661  tmp=./conf$$-$RANDOM
12662  (umask 077 && mkdir "$tmp")
12663} ||
12664{
12665   echo "$me: cannot create a temporary directory in ." >&2
12666   { (exit 1); exit 1; }
12667}
12668
12669#
12670# Set up the sed scripts for CONFIG_FILES section.
12671#
12672
12673# No need to generate the scripts if there are no CONFIG_FILES.
12674# This happens for instance when ./config.status config.h
12675if test -n "$CONFIG_FILES"; then
12676
12677_ACEOF
12678
12679
12680
12681ac_delim='%!_!# '
12682for ac_last_try in false false false false false :; do
12683  cat >conf$$subs.sed <<_ACEOF
12684SHELL!$SHELL$ac_delim
12685PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12686PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12687PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12688PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12689PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12690PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12691exec_prefix!$exec_prefix$ac_delim
12692prefix!$prefix$ac_delim
12693program_transform_name!$program_transform_name$ac_delim
12694bindir!$bindir$ac_delim
12695sbindir!$sbindir$ac_delim
12696libexecdir!$libexecdir$ac_delim
12697datarootdir!$datarootdir$ac_delim
12698datadir!$datadir$ac_delim
12699sysconfdir!$sysconfdir$ac_delim
12700sharedstatedir!$sharedstatedir$ac_delim
12701localstatedir!$localstatedir$ac_delim
12702includedir!$includedir$ac_delim
12703oldincludedir!$oldincludedir$ac_delim
12704docdir!$docdir$ac_delim
12705infodir!$infodir$ac_delim
12706htmldir!$htmldir$ac_delim
12707dvidir!$dvidir$ac_delim
12708pdfdir!$pdfdir$ac_delim
12709psdir!$psdir$ac_delim
12710libdir!$libdir$ac_delim
12711localedir!$localedir$ac_delim
12712mandir!$mandir$ac_delim
12713DEFS!$DEFS$ac_delim
12714ECHO_C!$ECHO_C$ac_delim
12715ECHO_N!$ECHO_N$ac_delim
12716ECHO_T!$ECHO_T$ac_delim
12717LIBS!$LIBS$ac_delim
12718build_alias!$build_alias$ac_delim
12719host_alias!$host_alias$ac_delim
12720target_alias!$target_alias$ac_delim
12721build!$build$ac_delim
12722build_cpu!$build_cpu$ac_delim
12723build_vendor!$build_vendor$ac_delim
12724build_os!$build_os$ac_delim
12725host!$host$ac_delim
12726host_cpu!$host_cpu$ac_delim
12727host_vendor!$host_vendor$ac_delim
12728host_os!$host_os$ac_delim
12729target!$target$ac_delim
12730target_cpu!$target_cpu$ac_delim
12731target_vendor!$target_vendor$ac_delim
12732target_os!$target_os$ac_delim
12733SHLICC2!$SHLICC2$ac_delim
12734CC!$CC$ac_delim
12735CFLAGS!$CFLAGS$ac_delim
12736LDFLAGS!$LDFLAGS$ac_delim
12737CPPFLAGS!$CPPFLAGS$ac_delim
12738ac_ct_CC!$ac_ct_CC$ac_delim
12739EXEEXT!$EXEEXT$ac_delim
12740OBJEXT!$OBJEXT$ac_delim
12741CPP!$CPP$ac_delim
12742GREP!$GREP$ac_delim
12743EGREP!$EGREP$ac_delim
12744LIBOBJS!$LIBOBJS$ac_delim
12745HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
12746V_LEX!$V_LEX$ac_delim
12747V_YACC!$V_YACC$ac_delim
12748RANLIB!$RANLIB$ac_delim
12749AR!$AR$ac_delim
12750V_CCOPT!$V_CCOPT$ac_delim
12751V_DEFS!$V_DEFS$ac_delim
12752V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
12753V_INCLS!$V_INCLS$ac_delim
12754V_PCAP!$V_PCAP$ac_delim
12755V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
12756V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
12757V_SONAME_OPT!$V_SONAME_OPT$ac_delim
12758V_RPATH_OPT!$V_RPATH_OPT$ac_delim
12759ADDLOBJS!$ADDLOBJS$ac_delim
12760ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
12761SSRC!$SSRC$ac_delim
12762DYEXT!$DYEXT$ac_delim
12763MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12764MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12765PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
12766USB_SRC!$USB_SRC$ac_delim
12767PCAP_SUPPORT_NETFILTER!$PCAP_SUPPORT_NETFILTER$ac_delim
12768NETFILTER_SRC!$NETFILTER_SRC$ac_delim
12769PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
12770BT_SRC!$BT_SRC$ac_delim
12771PCAP_SUPPORT_CANUSB!$PCAP_SUPPORT_CANUSB$ac_delim
12772CANUSB_SRC!$CANUSB_SRC$ac_delim
12773PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
12774CAN_SRC!$CAN_SRC$ac_delim
12775INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12776INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12777INSTALL_DATA!$INSTALL_DATA$ac_delim
12778LTLIBOBJS!$LTLIBOBJS$ac_delim
12779_ACEOF
12780
12781  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
12782    break
12783  elif $ac_last_try; then
12784    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12785echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12786   { (exit 1); exit 1; }; }
12787  else
12788    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12789  fi
12790done
12791
12792ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12793if test -n "$ac_eof"; then
12794  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12795  ac_eof=`expr $ac_eof + 1`
12796fi
12797
12798cat >>$CONFIG_STATUS <<_ACEOF
12799cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12800/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12801_ACEOF
12802sed '
12803s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12804s/^/s,@/; s/!/@,|#_!!_#|/
12805:n
12806t n
12807s/'"$ac_delim"'$/,g/; t
12808s/$/\\/; p
12809N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12810' >>$CONFIG_STATUS <conf$$subs.sed
12811rm -f conf$$subs.sed
12812cat >>$CONFIG_STATUS <<_ACEOF
12813:end
12814s/|#_!!_#|//g
12815CEOF$ac_eof
12816_ACEOF
12817
12818
12819# VPATH may cause trouble with some makes, so we remove $(srcdir),
12820# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12821# trailing colons and then remove the whole line if VPATH becomes empty
12822# (actually we leave an empty line to preserve line numbers).
12823if test "x$srcdir" = x.; then
12824  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12825s/:*\$(srcdir):*/:/
12826s/:*\${srcdir}:*/:/
12827s/:*@srcdir@:*/:/
12828s/^\([^=]*=[	 ]*\):*/\1/
12829s/:*$//
12830s/^[^=]*=[	 ]*$//
12831}'
12832fi
12833
12834cat >>$CONFIG_STATUS <<\_ACEOF
12835fi # test -n "$CONFIG_FILES"
12836
12837
12838for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
12839do
12840  case $ac_tag in
12841  :[FHLC]) ac_mode=$ac_tag; continue;;
12842  esac
12843  case $ac_mode$ac_tag in
12844  :[FHL]*:*);;
12845  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12846echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12847   { (exit 1); exit 1; }; };;
12848  :[FH]-) ac_tag=-:-;;
12849  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12850  esac
12851  ac_save_IFS=$IFS
12852  IFS=:
12853  set x $ac_tag
12854  IFS=$ac_save_IFS
12855  shift
12856  ac_file=$1
12857  shift
12858
12859  case $ac_mode in
12860  :L) ac_source=$1;;
12861  :[FH])
12862    ac_file_inputs=
12863    for ac_f
12864    do
12865      case $ac_f in
12866      -) ac_f="$tmp/stdin";;
12867      *) # Look for the file first in the build tree, then in the source tree
12868	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12869	 # because $ac_f cannot contain `:'.
12870	 test -f "$ac_f" ||
12871	   case $ac_f in
12872	   [\\/$]*) false;;
12873	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12874	   esac ||
12875	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12876echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12877   { (exit 1); exit 1; }; };;
12878      esac
12879      ac_file_inputs="$ac_file_inputs $ac_f"
12880    done
12881
12882    # Let's still pretend it is `configure' which instantiates (i.e., don't
12883    # use $as_me), people would be surprised to read:
12884    #    /* config.h.  Generated by config.status.  */
12885    configure_input="Generated from "`IFS=:
12886	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12887    if test x"$ac_file" != x-; then
12888      configure_input="$ac_file.  $configure_input"
12889      { echo "$as_me:$LINENO: creating $ac_file" >&5
12890echo "$as_me: creating $ac_file" >&6;}
12891    fi
12892
12893    case $ac_tag in
12894    *:-:* | *:-) cat >"$tmp/stdin";;
12895    esac
12896    ;;
12897  esac
12898
12899  ac_dir=`$as_dirname -- "$ac_file" ||
12900$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12901	 X"$ac_file" : 'X\(//\)[^/]' \| \
12902	 X"$ac_file" : 'X\(//\)$' \| \
12903	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12904echo X"$ac_file" |
12905    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12906	    s//\1/
12907	    q
12908	  }
12909	  /^X\(\/\/\)[^/].*/{
12910	    s//\1/
12911	    q
12912	  }
12913	  /^X\(\/\/\)$/{
12914	    s//\1/
12915	    q
12916	  }
12917	  /^X\(\/\).*/{
12918	    s//\1/
12919	    q
12920	  }
12921	  s/.*/./; q'`
12922  { as_dir="$ac_dir"
12923  case $as_dir in #(
12924  -*) as_dir=./$as_dir;;
12925  esac
12926  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12927    as_dirs=
12928    while :; do
12929      case $as_dir in #(
12930      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12931      *) as_qdir=$as_dir;;
12932      esac
12933      as_dirs="'$as_qdir' $as_dirs"
12934      as_dir=`$as_dirname -- "$as_dir" ||
12935$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12936	 X"$as_dir" : 'X\(//\)[^/]' \| \
12937	 X"$as_dir" : 'X\(//\)$' \| \
12938	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12939echo X"$as_dir" |
12940    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12941	    s//\1/
12942	    q
12943	  }
12944	  /^X\(\/\/\)[^/].*/{
12945	    s//\1/
12946	    q
12947	  }
12948	  /^X\(\/\/\)$/{
12949	    s//\1/
12950	    q
12951	  }
12952	  /^X\(\/\).*/{
12953	    s//\1/
12954	    q
12955	  }
12956	  s/.*/./; q'`
12957      test -d "$as_dir" && break
12958    done
12959    test -z "$as_dirs" || eval "mkdir $as_dirs"
12960  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12961echo "$as_me: error: cannot create directory $as_dir" >&2;}
12962   { (exit 1); exit 1; }; }; }
12963  ac_builddir=.
12964
12965case "$ac_dir" in
12966.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12967*)
12968  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12969  # A ".." for each directory in $ac_dir_suffix.
12970  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12971  case $ac_top_builddir_sub in
12972  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12973  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12974  esac ;;
12975esac
12976ac_abs_top_builddir=$ac_pwd
12977ac_abs_builddir=$ac_pwd$ac_dir_suffix
12978# for backward compatibility:
12979ac_top_builddir=$ac_top_build_prefix
12980
12981case $srcdir in
12982  .)  # We are building in place.
12983    ac_srcdir=.
12984    ac_top_srcdir=$ac_top_builddir_sub
12985    ac_abs_top_srcdir=$ac_pwd ;;
12986  [\\/]* | ?:[\\/]* )  # Absolute name.
12987    ac_srcdir=$srcdir$ac_dir_suffix;
12988    ac_top_srcdir=$srcdir
12989    ac_abs_top_srcdir=$srcdir ;;
12990  *) # Relative name.
12991    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12992    ac_top_srcdir=$ac_top_build_prefix$srcdir
12993    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12994esac
12995ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12996
12997
12998  case $ac_mode in
12999  :F)
13000  #
13001  # CONFIG_FILE
13002  #
13003
13004  case $INSTALL in
13005  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13006  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13007  esac
13008_ACEOF
13009
13010cat >>$CONFIG_STATUS <<\_ACEOF
13011# If the template does not know about datarootdir, expand it.
13012# FIXME: This hack should be removed a few years after 2.60.
13013ac_datarootdir_hack=; ac_datarootdir_seen=
13014
13015case `sed -n '/datarootdir/ {
13016  p
13017  q
13018}
13019/@datadir@/p
13020/@docdir@/p
13021/@infodir@/p
13022/@localedir@/p
13023/@mandir@/p
13024' $ac_file_inputs` in
13025*datarootdir*) ac_datarootdir_seen=yes;;
13026*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13027  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13028echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13029_ACEOF
13030cat >>$CONFIG_STATUS <<_ACEOF
13031  ac_datarootdir_hack='
13032  s&@datadir@&$datadir&g
13033  s&@docdir@&$docdir&g
13034  s&@infodir@&$infodir&g
13035  s&@localedir@&$localedir&g
13036  s&@mandir@&$mandir&g
13037    s&\\\${datarootdir}&$datarootdir&g' ;;
13038esac
13039_ACEOF
13040
13041# Neutralize VPATH when `$srcdir' = `.'.
13042# Shell code in configure.ac might set extrasub.
13043# FIXME: do we really want to maintain this feature?
13044cat >>$CONFIG_STATUS <<_ACEOF
13045  sed "$ac_vpsub
13046$extrasub
13047_ACEOF
13048cat >>$CONFIG_STATUS <<\_ACEOF
13049:t
13050/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13051s&@configure_input@&$configure_input&;t t
13052s&@top_builddir@&$ac_top_builddir_sub&;t t
13053s&@srcdir@&$ac_srcdir&;t t
13054s&@abs_srcdir@&$ac_abs_srcdir&;t t
13055s&@top_srcdir@&$ac_top_srcdir&;t t
13056s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13057s&@builddir@&$ac_builddir&;t t
13058s&@abs_builddir@&$ac_abs_builddir&;t t
13059s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13060s&@INSTALL@&$ac_INSTALL&;t t
13061$ac_datarootdir_hack
13062" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
13063
13064test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13065  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13066  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13067  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13068which seems to be undefined.  Please make sure it is defined." >&5
13069echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13070which seems to be undefined.  Please make sure it is defined." >&2;}
13071
13072  rm -f "$tmp/stdin"
13073  case $ac_file in
13074  -) cat "$tmp/out"; rm -f "$tmp/out";;
13075  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13076  esac
13077 ;;
13078  :H)
13079  #
13080  # CONFIG_HEADER
13081  #
13082_ACEOF
13083
13084# Transform confdefs.h into a sed script `conftest.defines', that
13085# substitutes the proper values into config.h.in to produce config.h.
13086rm -f conftest.defines conftest.tail
13087# First, append a space to every undef/define line, to ease matching.
13088echo 's/$/ /' >conftest.defines
13089# Then, protect against being on the right side of a sed subst, or in
13090# an unquoted here document, in config.status.  If some macros were
13091# called several times there might be several #defines for the same
13092# symbol, which is useless.  But do not sort them, since the last
13093# AC_DEFINE must be honored.
13094ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13095# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13096# NAME is the cpp macro being defined, VALUE is the value it is being given.
13097# PARAMS is the parameter list in the macro definition--in most cases, it's
13098# just an empty string.
13099ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
13100ac_dB='\\)[	 (].*,\\1define\\2'
13101ac_dC=' '
13102ac_dD=' ,'
13103
13104uniq confdefs.h |
13105  sed -n '
13106	t rset
13107	:rset
13108	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
13109	t ok
13110	d
13111	:ok
13112	s/[\\&,]/\\&/g
13113	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13114	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13115  ' >>conftest.defines
13116
13117# Remove the space that was appended to ease matching.
13118# Then replace #undef with comments.  This is necessary, for
13119# example, in the case of _POSIX_SOURCE, which is predefined and required
13120# on some systems where configure will not decide to define it.
13121# (The regexp can be short, since the line contains either #define or #undef.)
13122echo 's/ $//
13123s,^[	 #]*u.*,/* & */,' >>conftest.defines
13124
13125# Break up conftest.defines:
13126ac_max_sed_lines=50
13127
13128# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13129# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13130# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13131# et cetera.
13132ac_in='$ac_file_inputs'
13133ac_out='"$tmp/out1"'
13134ac_nxt='"$tmp/out2"'
13135
13136while :
13137do
13138  # Write a here document:
13139    cat >>$CONFIG_STATUS <<_ACEOF
13140    # First, check the format of the line:
13141    cat >"\$tmp/defines.sed" <<\\CEOF
13142/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
13143/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
13144b
13145:def
13146_ACEOF
13147  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13148  echo 'CEOF
13149    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13150  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13151  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13152  grep . conftest.tail >/dev/null || break
13153  rm -f conftest.defines
13154  mv conftest.tail conftest.defines
13155done
13156rm -f conftest.defines conftest.tail
13157
13158echo "ac_result=$ac_in" >>$CONFIG_STATUS
13159cat >>$CONFIG_STATUS <<\_ACEOF
13160  if test x"$ac_file" != x-; then
13161    echo "/* $configure_input  */" >"$tmp/config.h"
13162    cat "$ac_result" >>"$tmp/config.h"
13163    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13164      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13165echo "$as_me: $ac_file is unchanged" >&6;}
13166    else
13167      rm -f $ac_file
13168      mv "$tmp/config.h" $ac_file
13169    fi
13170  else
13171    echo "/* $configure_input  */"
13172    cat "$ac_result"
13173  fi
13174  rm -f "$tmp/out12"
13175 ;;
13176
13177
13178  esac
13179
13180done # for ac_tag
13181
13182
13183{ (exit 0); exit 0; }
13184_ACEOF
13185chmod +x $CONFIG_STATUS
13186ac_clean_files=$ac_clean_files_save
13187
13188
13189# configure is writing to config.log, and then calls config.status.
13190# config.status does its own redirection, appending to config.log.
13191# Unfortunately, on DOS this fails, as config.log is still kept open
13192# by configure, so config.status won't be able to write to it; its
13193# output is simply discarded.  So we exec the FD to /dev/null,
13194# effectively closing config.log, so it can be properly (re)opened and
13195# appended to by config.status.  When coming back to configure, we
13196# need to make the FD available again.
13197if test "$no_create" != yes; then
13198  ac_cs_success=:
13199  ac_config_status_args=
13200  test "$silent" = yes &&
13201    ac_config_status_args="$ac_config_status_args --quiet"
13202  exec 5>/dev/null
13203  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13204  exec 5>>config.log
13205  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13206  # would make configure fail if this is the last instruction.
13207  $ac_cs_success || { (exit 1); exit 1; }
13208fi
13209
13210
13211if test -f .devel ; then
13212	make depend
13213fi
13214exit 0
13215